2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.71.
6 # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## -------------------- ##
13 ## M4sh Initialization. ##
14 ## -------------------- ##
16 # Be more Bourne compatible
17 DUALCASE=1; export DUALCASE # for MKS sh
19 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
23 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24 # is contrary to our usage. Disable this feature.
25 alias -g '${1+"$@"}'='"$@"'
28 case `(set -o) 2>/dev/null` in #(
38 # Reset variables that may have inherited troublesome values from
41 # IFS needs to be set, to space, tab, and newline, in precisely that order.
42 # (If _AS_PATH_WALK were called with IFS unset, it would have the
43 # side effect of setting IFS to empty, thus disabling word splitting.)
44 # Quoting is to prevent editors from complaining about space-tab.
54 # Ensure predictable behavior from utilities with locale-dependent output.
60 # We cannot yet rely on "unset" to work, but we need these variables
61 # to be unset--not just set to an empty or harmless value--now, to
62 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
63 # also avoids known problems related to "unset" and subshell syntax
64 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
65 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
66 do eval test \${$as_var+y} \
67 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
70 # Ensure that fds 0, 1, and 2 are open.
71 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
72 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
73 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
75 # The user is always right.
76 if ${PATH_SEPARATOR+false} :; then
78 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
79 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # Find who we are. Look in the path if we contain no directory separator.
88 *[\\/]* ) as_myself=$0 ;;
89 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115 # Use a proper internal environment variable to ensure we don't fall
116 # into an infinite loop, continuously re-executing ourselves.
117 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
118 _as_can_reexec=no; export _as_can_reexec;
119 # We cannot yet assume a decent shell, so we have to provide a
120 # neutralization value for shells without unset; and this also
121 # works around shells that cannot unset nonexistent variables.
122 # Preserve -v and -x to the replacement shell.
125 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
127 *v*x* | *x*v* ) as_opts=-vx ;;
132 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
133 # Admittedly, this is quite paranoid, since all the known shells bail
134 # out after a failed `exec'.
135 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
138 # We don't want this to propagate to other subprocesses.
139 { _as_can_reexec=; unset _as_can_reexec;}
140 if test "x$CONFIG_SHELL" = x; then
141 as_bourne_compatible="as_nop=:
142 if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
146 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
147 # is contrary to our usage. Disable this feature.
148 alias -g '\${1+\"\$@\"}'='\"\$@\"'
151 case \`(set -o) 2>/dev/null\` in #(
159 as_required="as_fn_return () { (exit \$1); }
160 as_fn_success () { as_fn_return 0; }
161 as_fn_failure () { as_fn_return 1; }
162 as_fn_ret_success () { return 0; }
163 as_fn_ret_failure () { return 1; }
166 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
167 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
168 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
169 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
170 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
174 exitcode=1; echo positional parameters were not saved.
176 test x\$exitcode = x0 || exit 1
177 blah=\$(echo \$(echo blah))
178 test x\"\$blah\" = xblah || exit 1
180 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
181 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
182 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
183 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
184 test \$(( 1 + 1 )) = 2 || exit 1"
185 if (eval "$as_required") 2>/dev/null
191 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
197 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
203 *) as_dir=$as_dir/ ;;
208 for as_base in sh bash ksh sh5; do
209 # Try only shells that exist, to save several forks.
210 as_shell=$as_dir$as_base
211 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
212 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
214 CONFIG_SHELL=$as_shell as_have_required=yes
215 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
229 if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
230 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
232 CONFIG_SHELL=$SHELL as_have_required=yes
237 if test "x$CONFIG_SHELL" != x
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 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
260 if test x$as_have_required = xno
262 printf "%s\n" "$0: This script requires a shell more modern than all"
263 printf "%s\n" "$0: the shells that I found on your system."
264 if test ${ZSH_VERSION+y} ; then
265 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
266 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
268 printf "%s\n" "$0: Please tell bug-autoconf@gnu.org about your system,
269 $0: including any error possibly output before this
270 $0: message. Then install a modern shell, or manually run
271 $0: the script under such a shell if you do have one."
277 SHELL=${CONFIG_SHELL-/bin/sh}
279 # Unset more variables known to interfere with behavior of common tools.
280 CLICOLOR_FORCE= GREP_OPTIONS=
281 unset CLICOLOR_FORCE GREP_OPTIONS
283 ## --------------------- ##
284 ## M4sh Shell Functions. ##
285 ## --------------------- ##
288 # Portably unset VAR.
291 { eval $1=; unset $1;}
296 # as_fn_set_status STATUS
297 # -----------------------
298 # Set $? to STATUS, without forking.
306 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
315 # Do nothing but, unlike ":", preserve the value of $?.
324 # Create "$as_dir" as a directory, including parents if necessary.
329 -*) as_dir=./$as_dir;;
331 test -d "$as_dir" || eval $as_mkdir_p || {
335 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
338 as_dirs="'$as_qdir' $as_dirs"
339 as_dir=`$as_dirname -- "$as_dir" ||
340 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
341 X"$as_dir" : 'X\(//\)[^/]' \| \
342 X"$as_dir" : 'X\(//\)$' \| \
343 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
344 printf "%s\n" X"$as_dir" |
345 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
362 test -d "$as_dir" && break
364 test -z "$as_dirs" || eval "mkdir $as_dirs"
365 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
370 # as_fn_executable_p FILE
371 # -----------------------
372 # Test if FILE is an executable regular file.
373 as_fn_executable_p ()
375 test -f "$1" && test -x "$1"
376 } # as_fn_executable_p
377 # as_fn_append VAR VALUE
378 # ----------------------
379 # Append the text in VALUE to the end of the definition contained in VAR. Take
380 # advantage of any shell optimizations that allow amortized linear growth over
381 # repeated appends, instead of the typical quadratic growth present in naive
383 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
385 eval 'as_fn_append ()
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
410 as_val=`expr "$@" || test $? -eq 1`
416 # Do nothing but, unlike ":", preserve the value of $?.
423 # as_fn_error STATUS ERROR [LINENO LOG_FD]
424 # ----------------------------------------
425 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
426 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
427 # script with STATUS, using 1 if that was 0.
430 as_status=$1; test $as_status -eq 0 && as_status=1
432 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
433 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
435 printf "%s\n" "$as_me: error: $2" >&2
436 as_fn_exit $as_status
439 if expr a : '\(a\)' >/dev/null 2>&1 &&
440 test "X`expr 00001 : '.*\(...\)'`" = X001; then
446 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
452 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
458 as_me=`$as_basename -- "$0" ||
459 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
460 X"$0" : 'X\(//\)$' \| \
461 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
462 printf "%s\n" X/"$0" |
463 sed '/^.*\/\([^/][^/]*\)\/*$/{
477 # Avoid depending upon Character Ranges.
478 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
479 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
480 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
481 as_cr_digits='0123456789'
482 as_cr_alnum=$as_cr_Letters$as_cr_digits
485 as_lineno_1=$LINENO as_lineno_1a=$LINENO
486 as_lineno_2=$LINENO as_lineno_2a=$LINENO
487 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
488 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
489 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
501 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
505 chmod +x "$as_me.lineno" ||
506 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
508 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
509 # already done that, so ensure we don't try to do so again and fall
510 # in an infinite loop. This has already happened in practice.
511 _as_can_reexec=no; export _as_can_reexec
512 # Don't try to exec as it changes $[0], causing all sort of problems
513 # (the dirname of $[0] is not the place where we might find the
514 # original and so on. Autoconf is especially sensitive to this).
516 # Exit status is that of the last command.
521 # Determine whether it's possible to make 'echo' print without a newline.
522 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
523 # for compatibility with existing Makefiles.
524 ECHO_C= ECHO_N= ECHO_T=
525 case `echo -n x` in #(((((
527 case `echo 'xy\c'` in
528 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
530 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
537 # For backward compatibility with old third-party macros, we provide
538 # the shell variables $as_echo and $as_echo_n. New code should use
539 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
540 as_echo='printf %s\n'
541 as_echo_n='printf %s'
544 rm -f conf$$ conf$$.exe conf$$.file
545 if test -d conf$$.dir; then
546 rm -f conf$$.dir/conf$$.file
549 mkdir conf$$.dir 2>/dev/null
551 if (echo >conf$$.file) 2>/dev/null; then
552 if ln -s conf$$.file conf$$ 2>/dev/null; then
554 # ... but there are two gotchas:
555 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
556 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
557 # In both cases, we have to default to `cp -pR'.
558 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
560 elif ln conf$$.file conf$$ 2>/dev/null; then
568 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
569 rmdir conf$$.dir 2>/dev/null
571 if mkdir -p . 2>/dev/null; then
572 as_mkdir_p='mkdir -p "$as_dir"'
574 test -d ./-p && rmdir ./-p
579 as_executable_p=as_fn_executable_p
581 # Sed expression to map a string onto a valid CPP name.
582 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
584 # Sed expression to map a string onto a valid variable name.
585 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
588 test -n "$DJDIR" || exec 7<&0 </dev/null
592 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
593 # so uname gets run too.
594 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
599 ac_default_prefix=/usr/local
601 ac_config_libobj_dir=.
608 # Identity of this package.
616 ac_unique_file="version.h"
617 # Factoring default headers for most tests.
618 ac_includes_default="\
629 #ifdef HAVE_INTTYPES_H
630 # include <inttypes.h>
635 #ifdef HAVE_STRINGS_H
636 # include <strings.h>
638 #ifdef HAVE_SYS_TYPES_H
639 # include <sys/types.h>
641 #ifdef HAVE_SYS_STAT_H
642 # include <sys/stat.h>
651 ac_subst_vars='LTLIBOBJS
654 systemd_system_unit_dir
742 XGETTEXT_EXTRA_OPTIONS
743 MSGMERGE_FOR_MSGFMT_OPTION
750 GETTEXT_MACRO_VERSION
868 program_transform_name
879 ac_subst_files='MCONFIG
885 PUBLIC_CONFIG_HEADER'
887 enable_option_checking
893 enable_maintainer_mode
894 enable_symlink_install
895 enable_relative_symlinks
896 enable_symlink_relative_symlinks
898 enable_verbose_makecmds
907 enable_developer_features
917 enable_e2initrd_helper
924 enable_bmap_stats_ops
940 with_systemd_unit_dir
942 ac_precious_vars='build_alias
963 # Initialize some variables set by options.
965 ac_init_version=false
966 ac_unrecognized_opts=
968 # The variables have the same names as the options, with
969 # dashes changed to underlines.
977 program_transform_name=s,x,x,
985 # Installation directory options.
986 # These are left unexpanded so users can "make install exec_prefix=/foo"
987 # and all the variables that are supposed to be based on exec_prefix
988 # by default will actually change.
989 # Use braces instead of parens because sh, perl, etc. also accept them.
990 # (The list follows the same order as the GNU Coding Standards.)
991 bindir='${exec_prefix}/bin'
992 sbindir='${exec_prefix}/sbin'
993 libexecdir='${exec_prefix}/libexec'
994 datarootdir='${prefix}/share'
995 datadir='${datarootdir}'
996 sysconfdir='${prefix}/etc'
997 sharedstatedir='${prefix}/com'
998 localstatedir='${prefix}/var'
999 runstatedir='${localstatedir}/run'
1000 includedir='${prefix}/include'
1001 oldincludedir='/usr/include'
1002 docdir='${datarootdir}/doc/${PACKAGE}'
1003 infodir='${datarootdir}/info'
1008 libdir='${exec_prefix}/lib'
1009 localedir='${datarootdir}/locale'
1010 mandir='${datarootdir}/man'
1016 # If the previous option needs an argument, assign it.
1017 if test -n "$ac_prev"; then
1018 eval $ac_prev=\$ac_option
1024 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1029 case $ac_dashdash$ac_option in
1033 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1035 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1036 bindir=$ac_optarg ;;
1038 -build | --build | --buil | --bui | --bu)
1039 ac_prev=build_alias ;;
1040 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1041 build_alias=$ac_optarg ;;
1043 -cache-file | --cache-file | --cache-fil | --cache-fi \
1044 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1045 ac_prev=cache_file ;;
1046 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1047 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1048 cache_file=$ac_optarg ;;
1050 --config-cache | -C)
1051 cache_file=config.cache ;;
1053 -datadir | --datadir | --datadi | --datad)
1055 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1056 datadir=$ac_optarg ;;
1058 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1059 | --dataroo | --dataro | --datar)
1060 ac_prev=datarootdir ;;
1061 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1062 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1063 datarootdir=$ac_optarg ;;
1065 -disable-* | --disable-*)
1066 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1067 # Reject names that are not valid shell variable names.
1068 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1069 as_fn_error $? "invalid feature name: \`$ac_useropt'"
1070 ac_useropt_orig=$ac_useropt
1071 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1072 case $ac_user_opts in
1074 "enable_$ac_useropt"
1076 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1077 ac_unrecognized_sep=', ';;
1079 eval enable_$ac_useropt=no ;;
1081 -docdir | --docdir | --docdi | --doc | --do)
1083 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1084 docdir=$ac_optarg ;;
1086 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1088 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1089 dvidir=$ac_optarg ;;
1091 -enable-* | --enable-*)
1092 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1093 # Reject names that are not valid shell variable names.
1094 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1095 as_fn_error $? "invalid feature name: \`$ac_useropt'"
1096 ac_useropt_orig=$ac_useropt
1097 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1098 case $ac_user_opts in
1100 "enable_$ac_useropt"
1102 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1103 ac_unrecognized_sep=', ';;
1105 eval enable_$ac_useropt=\$ac_optarg ;;
1107 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1108 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1109 | --exec | --exe | --ex)
1110 ac_prev=exec_prefix ;;
1111 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1112 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1113 | --exec=* | --exe=* | --ex=*)
1114 exec_prefix=$ac_optarg ;;
1116 -gas | --gas | --ga | --g)
1117 # Obsolete; use --with-gas.
1120 -help | --help | --hel | --he | -h)
1121 ac_init_help=long ;;
1122 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1123 ac_init_help=recursive ;;
1124 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1125 ac_init_help=short ;;
1127 -host | --host | --hos | --ho)
1128 ac_prev=host_alias ;;
1129 -host=* | --host=* | --hos=* | --ho=*)
1130 host_alias=$ac_optarg ;;
1132 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1134 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1136 htmldir=$ac_optarg ;;
1138 -includedir | --includedir | --includedi | --included | --include \
1139 | --includ | --inclu | --incl | --inc)
1140 ac_prev=includedir ;;
1141 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1142 | --includ=* | --inclu=* | --incl=* | --inc=*)
1143 includedir=$ac_optarg ;;
1145 -infodir | --infodir | --infodi | --infod | --info | --inf)
1147 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1148 infodir=$ac_optarg ;;
1150 -libdir | --libdir | --libdi | --libd)
1152 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1153 libdir=$ac_optarg ;;
1155 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1156 | --libexe | --libex | --libe)
1157 ac_prev=libexecdir ;;
1158 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1159 | --libexe=* | --libex=* | --libe=*)
1160 libexecdir=$ac_optarg ;;
1162 -localedir | --localedir | --localedi | --localed | --locale)
1163 ac_prev=localedir ;;
1164 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1165 localedir=$ac_optarg ;;
1167 -localstatedir | --localstatedir | --localstatedi | --localstated \
1168 | --localstate | --localstat | --localsta | --localst | --locals)
1169 ac_prev=localstatedir ;;
1170 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1171 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1172 localstatedir=$ac_optarg ;;
1174 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1176 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1177 mandir=$ac_optarg ;;
1179 -nfp | --nfp | --nf)
1180 # Obsolete; use --without-fp.
1183 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1184 | --no-cr | --no-c | -n)
1187 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1188 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1191 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1192 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1193 | --oldin | --oldi | --old | --ol | --o)
1194 ac_prev=oldincludedir ;;
1195 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1196 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1197 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1198 oldincludedir=$ac_optarg ;;
1200 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1202 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1203 prefix=$ac_optarg ;;
1205 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1206 | --program-pre | --program-pr | --program-p)
1207 ac_prev=program_prefix ;;
1208 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1209 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1210 program_prefix=$ac_optarg ;;
1212 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1213 | --program-suf | --program-su | --program-s)
1214 ac_prev=program_suffix ;;
1215 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1216 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1217 program_suffix=$ac_optarg ;;
1219 -program-transform-name | --program-transform-name \
1220 | --program-transform-nam | --program-transform-na \
1221 | --program-transform-n | --program-transform- \
1222 | --program-transform | --program-transfor \
1223 | --program-transfo | --program-transf \
1224 | --program-trans | --program-tran \
1225 | --progr-tra | --program-tr | --program-t)
1226 ac_prev=program_transform_name ;;
1227 -program-transform-name=* | --program-transform-name=* \
1228 | --program-transform-nam=* | --program-transform-na=* \
1229 | --program-transform-n=* | --program-transform-=* \
1230 | --program-transform=* | --program-transfor=* \
1231 | --program-transfo=* | --program-transf=* \
1232 | --program-trans=* | --program-tran=* \
1233 | --progr-tra=* | --program-tr=* | --program-t=*)
1234 program_transform_name=$ac_optarg ;;
1236 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1238 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1239 pdfdir=$ac_optarg ;;
1241 -psdir | --psdir | --psdi | --psd | --ps)
1243 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1246 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1247 | -silent | --silent | --silen | --sile | --sil)
1250 -runstatedir | --runstatedir | --runstatedi | --runstated \
1251 | --runstate | --runstat | --runsta | --runst | --runs \
1252 | --run | --ru | --r)
1253 ac_prev=runstatedir ;;
1254 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1255 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1256 | --run=* | --ru=* | --r=*)
1257 runstatedir=$ac_optarg ;;
1259 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1261 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1263 sbindir=$ac_optarg ;;
1265 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1266 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1267 | --sharedst | --shareds | --shared | --share | --shar \
1269 ac_prev=sharedstatedir ;;
1270 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1271 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1272 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1274 sharedstatedir=$ac_optarg ;;
1276 -site | --site | --sit)
1278 -site=* | --site=* | --sit=*)
1281 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1283 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1284 srcdir=$ac_optarg ;;
1286 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1287 | --syscon | --sysco | --sysc | --sys | --sy)
1288 ac_prev=sysconfdir ;;
1289 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1290 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1291 sysconfdir=$ac_optarg ;;
1293 -target | --target | --targe | --targ | --tar | --ta | --t)
1294 ac_prev=target_alias ;;
1295 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1296 target_alias=$ac_optarg ;;
1298 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1301 -version | --version | --versio | --versi | --vers | -V)
1302 ac_init_version=: ;;
1305 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1306 # Reject names that are not valid shell variable names.
1307 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1308 as_fn_error $? "invalid package name: \`$ac_useropt'"
1309 ac_useropt_orig=$ac_useropt
1310 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1311 case $ac_user_opts in
1315 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1316 ac_unrecognized_sep=', ';;
1318 eval with_$ac_useropt=\$ac_optarg ;;
1320 -without-* | --without-*)
1321 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1322 # Reject names that are not valid shell variable names.
1323 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1324 as_fn_error $? "invalid package name: \`$ac_useropt'"
1325 ac_useropt_orig=$ac_useropt
1326 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1327 case $ac_user_opts in
1331 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1332 ac_unrecognized_sep=', ';;
1334 eval with_$ac_useropt=no ;;
1337 # Obsolete; use --with-x.
1340 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1341 | --x-incl | --x-inc | --x-in | --x-i)
1342 ac_prev=x_includes ;;
1343 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1344 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1345 x_includes=$ac_optarg ;;
1347 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1348 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1349 ac_prev=x_libraries ;;
1350 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1351 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1352 x_libraries=$ac_optarg ;;
1354 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1355 Try \`$0 --help' for more information"
1359 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1360 # Reject names that are not valid shell variable names.
1361 case $ac_envvar in #(
1362 '' | [0-9]* | *[!_$as_cr_alnum]* )
1363 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1365 eval $ac_envvar=\$ac_optarg
1366 export $ac_envvar ;;
1369 # FIXME: should be removed in autoconf 3.0.
1370 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1371 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1372 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1373 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1379 if test -n "$ac_prev"; then
1380 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1381 as_fn_error $? "missing argument to $ac_option"
1384 if test -n "$ac_unrecognized_opts"; then
1385 case $enable_option_checking in
1387 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1388 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1392 # Check all directory arguments for consistency.
1393 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1394 datadir sysconfdir sharedstatedir localstatedir includedir \
1395 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1396 libdir localedir mandir runstatedir
1398 eval ac_val=\$$ac_var
1399 # Remove trailing slashes.
1402 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1403 eval $ac_var=\$ac_val;;
1405 # Be sure to have absolute directory names.
1407 [\\/$]* | ?:[\\/]* ) continue;;
1408 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1410 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1413 # There might be people who depend on the old broken behavior: `$host'
1414 # used to hold the argument of --host etc.
1415 # FIXME: To remove some day.
1418 target=$target_alias
1420 # FIXME: To remove some day.
1421 if test "x$host_alias" != x; then
1422 if test "x$build_alias" = x; then
1423 cross_compiling=maybe
1424 elif test "x$build_alias" != "x$host_alias"; then
1430 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1432 test "$silent" = yes && exec 6>/dev/null
1435 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1436 ac_ls_di=`ls -di .` &&
1437 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1438 as_fn_error $? "working directory cannot be determined"
1439 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1440 as_fn_error $? "pwd does not report name of working directory"
1443 # Find the source files, if location was not specified.
1444 if test -z "$srcdir"; then
1445 ac_srcdir_defaulted=yes
1446 # Try the directory containing this script, then the parent directory.
1447 ac_confdir=`$as_dirname -- "$as_myself" ||
1448 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1449 X"$as_myself" : 'X\(//\)[^/]' \| \
1450 X"$as_myself" : 'X\(//\)$' \| \
1451 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1452 printf "%s\n" X"$as_myself" |
1453 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1471 if test ! -r "$srcdir/$ac_unique_file"; then
1475 ac_srcdir_defaulted=no
1477 if test ! -r "$srcdir/$ac_unique_file"; then
1478 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1479 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1481 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1483 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1485 # When building in place, set srcdir=.
1486 if test "$ac_abs_confdir" = "$ac_pwd"; then
1489 # Remove unnecessary trailing slashes from srcdir.
1490 # Double slashes in file names in object file debugging info
1491 # mess up M-x gdb in Emacs.
1493 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1495 for ac_var in $ac_precious_vars; do
1496 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1497 eval ac_env_${ac_var}_value=\$${ac_var}
1498 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1499 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1503 # Report the --help message.
1505 if test "$ac_init_help" = "long"; then
1506 # Omit some internal or obsolete options to make the list less imposing.
1507 # This message is too long to be a string in the A/UX 3.1 sh.
1509 \`configure' configures this package to adapt to many kinds of systems.
1511 Usage: $0 [OPTION]... [VAR=VALUE]...
1513 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1514 VAR=VALUE. See below for descriptions of some of the useful variables.
1516 Defaults for the options are specified in brackets.
1519 -h, --help display this help and exit
1520 --help=short display options specific to this package
1521 --help=recursive display the short help of all the included packages
1522 -V, --version display version information and exit
1523 -q, --quiet, --silent do not print \`checking ...' messages
1524 --cache-file=FILE cache test results in FILE [disabled]
1525 -C, --config-cache alias for \`--cache-file=config.cache'
1526 -n, --no-create do not create output files
1527 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1529 Installation directories:
1530 --prefix=PREFIX install architecture-independent files in PREFIX
1531 [$ac_default_prefix]
1532 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1535 By default, \`make install' will install all the files in
1536 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1537 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1538 for instance \`--prefix=\$HOME'.
1540 For better control, use the options below.
1542 Fine tuning of the installation directories:
1543 --bindir=DIR user executables [EPREFIX/bin]
1544 --sbindir=DIR system admin executables [EPREFIX/sbin]
1545 --libexecdir=DIR program executables [EPREFIX/libexec]
1546 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1547 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1548 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1549 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1550 --libdir=DIR object code libraries [EPREFIX/lib]
1551 --includedir=DIR C header files [PREFIX/include]
1552 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1553 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1554 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1555 --infodir=DIR info documentation [DATAROOTDIR/info]
1556 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1557 --mandir=DIR man documentation [DATAROOTDIR/man]
1558 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1559 --htmldir=DIR html documentation [DOCDIR]
1560 --dvidir=DIR dvi documentation [DOCDIR]
1561 --pdfdir=DIR pdf documentation [DOCDIR]
1562 --psdir=DIR ps documentation [DOCDIR]
1568 --build=BUILD configure for building on BUILD [guessed]
1569 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1573 if test -n "$ac_init_help"; then
1578 --disable-option-checking ignore unrecognized --enable/--with options
1579 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1580 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1581 --enable-maintainer-mode
1582 enable makefile rules useful for maintainers
1583 --enable-symlink-install
1584 use symlinks when installing instead of hard links
1585 --enable-relative-symlinks
1586 use relative symlinks when installing
1588 --enable-symlink-build use symlinks while building instead of hard links
1589 --enable-verbose-makecmds
1590 enable verbose make command output
1591 --enable-elf-shlibs select ELF shared libraries
1592 --enable-bsd-shlibs select BSD shared libraries
1593 --enable-profile build profiling libraries
1594 --enable-gcov build for coverage testing using gcov
1595 --enable-hardening build for coverage testing using gcov
1596 --enable-jbd-debug enable journal debugging
1597 --enable-blkid-debug enable blkid debugging
1598 --disable-testio-debug disable the use of the test I/O manager for
1600 --enable-developer-features
1601 enable features for use by ext4 developers
1602 --enable-libuuid build and use private uuid library
1603 --enable-libblkid build and use private blkid library
1604 --enable-subset enable subset-only build
1605 --disable-backtrace disable use backtrace
1606 --disable-debugfs disable support of debugfs program
1607 --disable-imager disable support of e2image program
1608 --disable-resizer disable support of e2resize program
1609 --disable-defrag disable support of e4defrag program
1610 --enable-fsck build fsck wrapper program
1611 --enable-e2initrd-helper
1612 build e2initrd-helper program
1613 --disable-tls disable use of thread local support
1614 --disable-uuidd disable building the uuid daemon
1615 --disable-mmp disable support mmp, Multi Mount Protection
1616 --disable-tdb disable tdb support
1617 --disable-bmap-stats disable collection of bitmap stats
1618 --enable-bmap-stats-ops enable collection of additional bitmap stats
1619 --disable-nls do not use Native Language Support
1620 --disable-rpath do not hardcode runtime library paths
1621 --disable-largefile omit support for large files
1622 --disable-fuse2fs do not build fuse2fs
1623 --enable-lto enable link time optimization
1624 --enable-ubsan enable undefined behavior sanitizer
1625 --enable-addrsan enable address sanitizer
1626 --enable-threadsan enable thread sanitizer
1627 --enable-fuzzing enable fuzzing sanitizer
1630 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1631 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1632 --with-diet-libc use diet libc
1633 --with-cc no longer supported, use CC= instead
1634 --with-ccopts no longer supported, use CFLAGS= instead
1635 --with-ldopts no longer supported, use LDFLAGS= instead
1636 --with-root-prefix=PREFIX
1637 override prefix variable for files to be placed in
1639 --without-pthread disable use of pthread support
1640 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1641 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1642 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1643 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1644 --without-libintl-prefix don't search for libintl in includedir and libdir
1645 --with-multiarch=ARCH specify the multiarch triplet
1646 --with-udev-rules-dir[=DIR]
1647 Install udev rules into DIR.
1648 --with-crond-dir[=DIR] Install system crontabs into DIR.
1649 --with-systemd-unit-dir[=DIR]
1650 Install systemd system units into DIR.
1652 Some influential environment variables:
1653 CC C compiler command
1654 CFLAGS C compiler flags
1655 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1656 nonstandard directory <lib dir>
1657 LIBS libraries to pass to the linker, e.g. -l<library>
1658 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1659 you have headers in a nonstandard directory <include dir>
1661 PKG_CONFIG path to pkg-config utility
1663 directories to add to pkg-config's search path
1665 path overriding pkg-config's built-in search path
1666 CXX C++ compiler command
1667 CXXFLAGS C++ compiler flags
1668 udev_CFLAGS C compiler flags for udev, overriding pkg-config
1669 udev_LIBS linker flags for udev, overriding pkg-config
1671 C compiler flags for systemd, overriding pkg-config
1673 linker flags for systemd, overriding pkg-config
1675 Use these variables to override the choices made by `configure' or to help
1676 it to find libraries and programs with nonstandard names/locations.
1678 Report bugs to the package provider.
1683 if test "$ac_init_help" = "recursive"; then
1684 # If there are subdirs, report their specific --help.
1685 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1686 test -d "$ac_dir" ||
1687 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1692 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1694 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1695 # A ".." for each directory in $ac_dir_suffix.
1696 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1697 case $ac_top_builddir_sub in
1698 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1699 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1702 ac_abs_top_builddir=$ac_pwd
1703 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1704 # for backward compatibility:
1705 ac_top_builddir=$ac_top_build_prefix
1708 .) # We are building in place.
1710 ac_top_srcdir=$ac_top_builddir_sub
1711 ac_abs_top_srcdir=$ac_pwd ;;
1712 [\\/]* | ?:[\\/]* ) # Absolute name.
1713 ac_srcdir=$srcdir$ac_dir_suffix;
1714 ac_top_srcdir=$srcdir
1715 ac_abs_top_srcdir=$srcdir ;;
1717 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1718 ac_top_srcdir=$ac_top_build_prefix$srcdir
1719 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1721 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1723 cd "$ac_dir" || { ac_status=$?; continue; }
1724 # Check for configure.gnu first; this name is used for a wrapper for
1725 # Metaconfig's "Configure" on case-insensitive file systems.
1726 if test -f "$ac_srcdir/configure.gnu"; then
1728 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1729 elif test -f "$ac_srcdir/configure"; then
1731 $SHELL "$ac_srcdir/configure" --help=recursive
1733 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1735 cd "$ac_pwd" || { ac_status=$?; break; }
1739 test -n "$ac_init_help" && exit $ac_status
1740 if $ac_init_version; then
1743 generated by GNU Autoconf 2.71
1745 Copyright (C) 2021 Free Software Foundation, Inc.
1746 This configure script is free software; the Free Software Foundation
1747 gives unlimited permission to copy, distribute and modify it.
1752 ## ------------------------ ##
1753 ## Autoconf initialization. ##
1754 ## ------------------------ ##
1756 # ac_fn_c_try_compile LINENO
1757 # --------------------------
1758 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1759 ac_fn_c_try_compile ()
1761 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1762 rm -f conftest.$ac_objext conftest.beam
1763 if { { ac_try="$ac_compile"
1765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1766 *) ac_try_echo=$ac_try;;
1768 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1769 printf "%s\n" "$ac_try_echo"; } >&5
1770 (eval "$ac_compile") 2>conftest.err
1772 if test -s conftest.err; then
1773 grep -v '^ *+' conftest.err >conftest.er1
1774 cat conftest.er1 >&5
1775 mv -f conftest.er1 conftest.err
1777 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1778 test $ac_status = 0; } && {
1779 test -z "$ac_c_werror_flag" ||
1780 test ! -s conftest.err
1781 } && test -s conftest.$ac_objext
1785 printf "%s\n" "$as_me: failed program was:" >&5
1786 sed 's/^/| /' conftest.$ac_ext >&5
1790 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1791 as_fn_set_status $ac_retval
1793 } # ac_fn_c_try_compile
1795 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1796 # -------------------------------------------------------
1797 # Tests whether HEADER exists and can be compiled using the include files in
1798 # INCLUDES, setting the cache variable VAR accordingly.
1799 ac_fn_c_check_header_compile ()
1801 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1803 printf %s "checking for $2... " >&6; }
1804 if eval test \${$3+y}
1806 printf %s "(cached) " >&6
1808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1809 /* end confdefs.h. */
1813 if ac_fn_c_try_compile "$LINENO"
1819 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1823 printf "%s\n" "$ac_res" >&6; }
1824 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1826 } # ac_fn_c_check_header_compile
1828 # ac_fn_c_try_link LINENO
1829 # -----------------------
1830 # Try to link conftest.$ac_ext, and return whether this succeeded.
1833 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1834 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1835 if { { ac_try="$ac_link"
1837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1838 *) ac_try_echo=$ac_try;;
1840 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1841 printf "%s\n" "$ac_try_echo"; } >&5
1842 (eval "$ac_link") 2>conftest.err
1844 if test -s conftest.err; then
1845 grep -v '^ *+' conftest.err >conftest.er1
1846 cat conftest.er1 >&5
1847 mv -f conftest.er1 conftest.err
1849 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1850 test $ac_status = 0; } && {
1851 test -z "$ac_c_werror_flag" ||
1852 test ! -s conftest.err
1853 } && test -s conftest$ac_exeext && {
1854 test "$cross_compiling" = yes ||
1855 test -x conftest$ac_exeext
1860 printf "%s\n" "$as_me: failed program was:" >&5
1861 sed 's/^/| /' conftest.$ac_ext >&5
1865 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1866 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1867 # interfere with the next link command; also delete a directory that is
1868 # left behind by Apple's compiler. We do this before executing the actions.
1869 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1870 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1871 as_fn_set_status $ac_retval
1873 } # ac_fn_c_try_link
1875 # ac_fn_c_try_cpp LINENO
1876 # ----------------------
1877 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1880 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1881 if { { ac_try="$ac_cpp conftest.$ac_ext"
1883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1884 *) ac_try_echo=$ac_try;;
1886 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1887 printf "%s\n" "$ac_try_echo"; } >&5
1888 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1890 if test -s conftest.err; then
1891 grep -v '^ *+' conftest.err >conftest.er1
1892 cat conftest.er1 >&5
1893 mv -f conftest.er1 conftest.err
1895 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1896 test $ac_status = 0; } > conftest.i && {
1897 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1898 test ! -s conftest.err
1903 printf "%s\n" "$as_me: failed program was:" >&5
1904 sed 's/^/| /' conftest.$ac_ext >&5
1908 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1909 as_fn_set_status $ac_retval
1913 # ac_fn_c_try_run LINENO
1914 # ----------------------
1915 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
1916 # executables *can* be run.
1919 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1920 if { { ac_try="$ac_link"
1922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1923 *) ac_try_echo=$ac_try;;
1925 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1926 printf "%s\n" "$ac_try_echo"; } >&5
1927 (eval "$ac_link") 2>&5
1929 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1930 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1931 { { case "(($ac_try" in
1932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1933 *) ac_try_echo=$ac_try;;
1935 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1936 printf "%s\n" "$ac_try_echo"; } >&5
1937 (eval "$ac_try") 2>&5
1939 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1940 test $ac_status = 0; }; }
1944 printf "%s\n" "$as_me: program exited with status $ac_status" >&5
1945 printf "%s\n" "$as_me: failed program was:" >&5
1946 sed 's/^/| /' conftest.$ac_ext >&5
1948 ac_retval=$ac_status
1950 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1951 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1952 as_fn_set_status $ac_retval
1956 # ac_fn_c_check_func LINENO FUNC VAR
1957 # ----------------------------------
1958 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1959 ac_fn_c_check_func ()
1961 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1963 printf %s "checking for $2... " >&6; }
1964 if eval test \${$3+y}
1966 printf %s "(cached) " >&6
1968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1969 /* end confdefs.h. */
1970 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1971 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1972 #define $2 innocuous_$2
1974 /* System header to define __stub macros and hopefully few prototypes,
1975 which can conflict with char $2 (); below. */
1980 /* Override any GCC internal prototype to avoid an error.
1981 Use char because int might match the return type of a GCC
1982 builtin and then its argument prototype would still apply. */
1987 /* The GNU C library defines this for functions which it implements
1988 to always fail with ENOSYS. Some functions are actually named
1989 something starting with __ and the normal name is an alias. */
1990 #if defined __stub_$2 || defined __stub___$2
2002 if ac_fn_c_try_link "$LINENO"
2008 rm -f core conftest.err conftest.$ac_objext conftest.beam \
2009 conftest$ac_exeext conftest.$ac_ext
2012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2013 printf "%s\n" "$ac_res" >&6; }
2014 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2016 } # ac_fn_c_check_func
2018 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2019 # ----------------------------------------------------
2020 # Tries to find if the field MEMBER exists in type AGGR, after including
2021 # INCLUDES, setting cache variable VAR accordingly.
2022 ac_fn_c_check_member ()
2024 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2026 printf %s "checking for $2.$3... " >&6; }
2027 if eval test \${$4+y}
2029 printf %s "(cached) " >&6
2031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2032 /* end confdefs.h. */
2044 if ac_fn_c_try_compile "$LINENO"
2048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2049 /* end confdefs.h. */
2055 if (sizeof ac_aggr.$3)
2061 if ac_fn_c_try_compile "$LINENO"
2067 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2069 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2073 printf "%s\n" "$ac_res" >&6; }
2074 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2076 } # ac_fn_c_check_member
2078 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2079 # -------------------------------------------
2080 # Tests whether TYPE exists after having included INCLUDES, setting cache
2081 # variable VAR accordingly.
2082 ac_fn_c_check_type ()
2084 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2086 printf %s "checking for $2... " >&6; }
2087 if eval test \${$3+y}
2089 printf %s "(cached) " >&6
2092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2093 /* end confdefs.h. */
2104 if ac_fn_c_try_compile "$LINENO"
2106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2107 /* end confdefs.h. */
2118 if ac_fn_c_try_compile "$LINENO"
2124 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2126 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2130 printf "%s\n" "$ac_res" >&6; }
2131 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2133 } # ac_fn_c_check_type
2135 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
2136 # ------------------------------------------------------------------
2137 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2138 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
2141 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2142 as_decl_name=`echo $2|sed 's/ *(.*//'`
2143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2144 printf %s "checking whether $as_decl_name is declared... " >&6; }
2145 if eval test \${$3+y}
2147 printf %s "(cached) " >&6
2149 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2150 eval ac_save_FLAGS=\$$6
2151 as_fn_append $6 " $5"
2152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2153 /* end confdefs.h. */
2158 #ifndef $as_decl_name
2160 (void) $as_decl_use;
2162 (void) $as_decl_name;
2170 if ac_fn_c_try_compile "$LINENO"
2176 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2177 eval $6=\$ac_save_FLAGS
2181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2182 printf "%s\n" "$ac_res" >&6; }
2183 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2185 } # ac_fn_check_decl
2187 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2188 # --------------------------------------------
2189 # Tries to find the compile-time value of EXPR in a program that includes
2190 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2192 ac_fn_c_compute_int ()
2194 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2195 if test "$cross_compiling" = yes; then
2196 # Depending upon the size, compute the lo and hi bounds.
2197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2198 /* end confdefs.h. */
2203 static int test_array [1 - 2 * !(($2) >= 0)];
2205 return test_array [0];
2211 if ac_fn_c_try_compile "$LINENO"
2215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2216 /* end confdefs.h. */
2221 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2223 return test_array [0];
2229 if ac_fn_c_try_compile "$LINENO"
2231 ac_hi=$ac_mid; break
2233 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2234 if test $ac_lo -le $ac_mid; then
2238 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2240 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2244 /* end confdefs.h. */
2249 static int test_array [1 - 2 * !(($2) < 0)];
2251 return test_array [0];
2257 if ac_fn_c_try_compile "$LINENO"
2261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2262 /* end confdefs.h. */
2267 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2269 return test_array [0];
2275 if ac_fn_c_try_compile "$LINENO"
2277 ac_lo=$ac_mid; break
2279 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2280 if test $ac_mid -le $ac_hi; then
2284 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2286 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2291 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2293 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2294 # Binary search between lo and hi bounds.
2295 while test "x$ac_lo" != "x$ac_hi"; do
2296 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2298 /* end confdefs.h. */
2303 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2305 return test_array [0];
2311 if ac_fn_c_try_compile "$LINENO"
2315 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2317 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2320 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2325 /* end confdefs.h. */
2327 static long int longval (void) { return $2; }
2328 static unsigned long int ulongval (void) { return $2; }
2335 FILE *f = fopen ("conftest.val", "w");
2340 long int i = longval ();
2343 fprintf (f, "%ld", i);
2347 unsigned long int i = ulongval ();
2350 fprintf (f, "%lu", i);
2352 /* Do not output a trailing newline, as this causes \r\n confusion
2353 on some platforms. */
2354 return ferror (f) || fclose (f) != 0;
2360 if ac_fn_c_try_run "$LINENO"
2362 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2366 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2367 conftest.$ac_objext conftest.beam conftest.$ac_ext
2371 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2372 as_fn_set_status $ac_retval
2374 } # ac_fn_c_compute_int
2376 # ac_fn_cxx_try_compile LINENO
2377 # ----------------------------
2378 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2379 ac_fn_cxx_try_compile ()
2381 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2382 rm -f conftest.$ac_objext conftest.beam
2383 if { { ac_try="$ac_compile"
2385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2386 *) ac_try_echo=$ac_try;;
2388 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2389 printf "%s\n" "$ac_try_echo"; } >&5
2390 (eval "$ac_compile") 2>conftest.err
2392 if test -s conftest.err; then
2393 grep -v '^ *+' conftest.err >conftest.er1
2394 cat conftest.er1 >&5
2395 mv -f conftest.er1 conftest.err
2397 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2398 test $ac_status = 0; } && {
2399 test -z "$ac_cxx_werror_flag" ||
2400 test ! -s conftest.err
2401 } && test -s conftest.$ac_objext
2405 printf "%s\n" "$as_me: failed program was:" >&5
2406 sed 's/^/| /' conftest.$ac_ext >&5
2410 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2411 as_fn_set_status $ac_retval
2413 } # ac_fn_cxx_try_compile
2414 ac_configure_args_raw=
2419 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2421 as_fn_append ac_configure_args_raw " '$ac_arg'"
2424 case $ac_configure_args_raw in
2428 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
2429 ac_unsafe_a="$ac_unsafe_z#~"
2430 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2431 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2434 cat >config.log <<_ACEOF
2435 This file contains any messages produced by compilers while
2436 running configure, to aid debugging if configure makes a mistake.
2438 It was created by $as_me, which was
2439 generated by GNU Autoconf 2.71. Invocation command line was
2441 $ $0$ac_configure_args_raw
2451 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2452 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2453 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2454 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2455 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2457 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2458 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2460 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2461 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2462 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2463 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2464 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2465 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2466 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2474 case $as_dir in #(((
2477 *) as_dir=$as_dir/ ;;
2479 printf "%s\n" "PATH: $as_dir"
2495 # Keep a trace of the command line.
2496 # Strip out --no-create and --no-recursion so they do not pile up.
2497 # Strip out --silent because we don't want to record it for future runs.
2498 # Also quote any args containing shell meta-characters.
2499 # Make two passes to allow for proper duplicate-argument suppression.
2503 ac_must_keep_next=false
2509 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2510 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2511 | -silent | --silent | --silen | --sile | --sil)
2514 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2517 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2519 as_fn_append ac_configure_args1 " '$ac_arg'"
2520 if test $ac_must_keep_next = true; then
2521 ac_must_keep_next=false # Got value, back to normal.
2524 *=* | --config-cache | -C | -disable-* | --disable-* \
2525 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2526 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2527 | -with-* | --with-* | -without-* | --without-* | --x)
2528 case "$ac_configure_args0 " in
2529 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2532 -* ) ac_must_keep_next=true ;;
2535 as_fn_append ac_configure_args " '$ac_arg'"
2540 { ac_configure_args0=; unset ac_configure_args0;}
2541 { ac_configure_args1=; unset ac_configure_args1;}
2543 # When interrupted or exit'd, cleanup temporary files, and complete
2544 # config.log. We remove comments because anyway the quotes in there
2545 # would cause problems or look ugly.
2546 # WARNING: Use '\'' to represent an apostrophe within the trap.
2547 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2548 trap 'exit_status=$?
2551 # Save into config.log some information that might help in debugging.
2555 printf "%s\n" "## ---------------- ##
2556 ## Cache variables. ##
2557 ## ---------------- ##"
2559 # The following way of writing the cache mishandles newlines in values,
2561 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2562 eval ac_val=\$$ac_var
2566 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2567 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2570 _ | IFS | as_nl) ;; #(
2571 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2572 *) { eval $ac_var=; unset $ac_var;} ;;
2577 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2578 *${as_nl}ac_space=\ *)
2580 "s/'\''/'\''\\\\'\'''\''/g;
2581 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2584 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2591 printf "%s\n" "## ----------------- ##
2592 ## Output variables. ##
2593 ## ----------------- ##"
2595 for ac_var in $ac_subst_vars
2597 eval ac_val=\$$ac_var
2599 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2601 printf "%s\n" "$ac_var='\''$ac_val'\''"
2605 if test -n "$ac_subst_files"; then
2606 printf "%s\n" "## ------------------- ##
2607 ## File substitutions. ##
2608 ## ------------------- ##"
2610 for ac_var in $ac_subst_files
2612 eval ac_val=\$$ac_var
2614 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2616 printf "%s\n" "$ac_var='\''$ac_val'\''"
2621 if test -s confdefs.h; then
2622 printf "%s\n" "## ----------- ##
2629 test "$ac_signal" != 0 &&
2630 printf "%s\n" "$as_me: caught signal $ac_signal"
2631 printf "%s\n" "$as_me: exit $exit_status"
2633 rm -f core *.core core.conftest.* &&
2634 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2637 for ac_signal in 1 2 13 15; do
2638 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2642 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2643 rm -f -r conftest* confdefs.h
2645 printf "%s\n" "/* confdefs.h */" > confdefs.h
2647 # Predefined preprocessor variables.
2649 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2651 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2653 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2655 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2657 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2659 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2662 # Let the site file select an alternate cache file if it wants to.
2663 # Prefer an explicitly selected file to automatically selected ones.
2664 if test -n "$CONFIG_SITE"; then
2665 ac_site_files="$CONFIG_SITE"
2666 elif test "x$prefix" != xNONE; then
2667 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2669 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2672 for ac_site_file in $ac_site_files
2674 case $ac_site_file in #(
2678 ac_site_file=./$ac_site_file ;;
2680 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2682 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2683 sed 's/^/| /' "$ac_site_file" >&5
2685 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2686 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2687 as_fn_error $? "failed to load site script $ac_site_file
2688 See \`config.log' for more details" "$LINENO" 5; }
2692 if test -r "$cache_file"; then
2693 # Some versions of bash will fail to source /dev/null (special files
2694 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2695 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2697 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2699 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2700 *) . "./$cache_file";;
2704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2705 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2709 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2710 # Test code for whether the C compiler supports C89 (global declarations)
2711 ac_c_conftest_c89_globals='
2712 /* Does the compiler advertise C89 conformance?
2713 Do not test the value of __STDC__, because some compilers set it to 0
2714 while being otherwise adequately conformant. */
2715 #if !defined __STDC__
2716 # error "Compiler does not advertise C89 conformance"
2722 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2723 struct buf { int x; };
2724 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2725 static char *e (p, i)
2731 static char *f (char * (*g) (char **, int), char **p, ...)
2736 s = g (p, va_arg (v,int));
2741 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2742 function prototypes and stuff, but not \xHH hex character constants.
2743 These do not provoke an error unfortunately, instead are silently treated
2744 as an "x". The following induces an error, until -std is added to get
2745 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2746 array size at least. It is necessary to write \x00 == 0 to get something
2747 that is true only with -std. */
2748 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2750 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2751 inside strings and character constants. */
2752 #define FOO(x) '\''x'\''
2753 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2755 int test (int i, double x);
2756 struct s1 {int (*f) (int a);};
2757 struct s2 {int (*f) (double a);};
2758 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2761 # Test code for whether the C compiler supports C89 (body of main).
2762 ac_c_conftest_c89_main='
2763 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2766 # Test code for whether the C compiler supports C99 (global declarations)
2767 ac_c_conftest_c99_globals='
2768 // Does the compiler advertise C99 conformance?
2769 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2770 # error "Compiler does not advertise C99 conformance"
2773 #include <stdbool.h>
2774 extern int puts (const char *);
2775 extern int printf (const char *, ...);
2776 extern int dprintf (int, const char *, ...);
2777 extern void *malloc (size_t);
2779 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2780 // dprintf is used instead of fprintf to avoid needing to declare
2782 #define debug(...) dprintf (2, __VA_ARGS__)
2783 #define showlist(...) puts (#__VA_ARGS__)
2784 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2786 test_varargs_macros (void)
2791 debug ("X = %d\n", x);
2792 showlist (The first, second, and third items.);
2793 report (x>y, "x is %d but y is %d", x, y);
2796 // Check long long types.
2797 #define BIG64 18446744073709551615ull
2798 #define BIG32 4294967295ul
2799 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2801 #error "your preprocessor is broken"
2805 #error "your preprocessor is broken"
2807 static long long int bignum = -9223372036854775807LL;
2808 static unsigned long long int ubignum = BIG64;
2810 struct incomplete_array
2818 const wchar_t *name;
2822 typedef const char *ccp;
2825 test_restrict (ccp restrict text)
2827 // See if C++-style comments work.
2828 // Iterate through items via the restricted pointer.
2829 // Also check for declarations in for loops.
2830 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2835 // Check varargs and va_copy.
2837 test_varargs (const char *format, ...)
2840 va_start (args, format);
2842 va_copy (args_copy, args);
2844 const char *str = "";
2852 case '\''s'\'': // string
2853 str = va_arg (args_copy, const char *);
2855 case '\''d'\'': // int
2856 number = va_arg (args_copy, int);
2858 case '\''f'\'': // float
2859 fnumber = va_arg (args_copy, double);
2868 return *str && number && fnumber;
2872 # Test code for whether the C compiler supports C99 (body of main).
2873 ac_c_conftest_c99_main='
2875 _Bool success = false;
2876 success |= (argc != 0);
2879 if (test_restrict ("String literal") == 0)
2881 char *restrict newvar = "Another string";
2884 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2885 test_varargs_macros ();
2887 // Check flexible array members.
2888 struct incomplete_array *ia =
2889 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2891 for (int i = 0; i < ia->datasize; ++i)
2892 ia->data[i] = i * 1.234;
2894 // Check named initializers.
2895 struct named_init ni = {
2897 .name = L"Test wide string",
2898 .average = 543.34343,
2903 int dynamic_array[ni.number];
2904 dynamic_array[0] = argv[0][0];
2905 dynamic_array[ni.number - 1] = 543;
2907 // work around unused variable warnings
2908 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2909 || dynamic_array[ni.number - 1] != 543);
2912 # Test code for whether the C compiler supports C11 (global declarations)
2913 ac_c_conftest_c11_globals='
2914 // Does the compiler advertise C11 conformance?
2915 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2916 # error "Compiler does not advertise C11 conformance"
2920 char _Alignas (double) aligned_as_double;
2921 char _Alignas (0) no_special_alignment;
2922 extern char aligned_as_int;
2923 char _Alignas (0) _Alignas (int) aligned_as_int;
2928 int_alignment = _Alignof (int),
2929 int_array_alignment = _Alignof (int[100]),
2930 char_alignment = _Alignof (char)
2932 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2935 int _Noreturn does_not_return (void) { for (;;) continue; }
2937 // Check _Static_assert.
2938 struct test_static_assert
2941 _Static_assert (sizeof (int) <= sizeof (long int),
2942 "_Static_assert does not work in struct");
2946 // Check UTF-8 literals.
2947 #define u8 syntax error!
2948 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2950 // Check duplicate typedefs.
2951 typedef long *long_ptr;
2952 typedef long int *long_ptr;
2953 typedef long_ptr long_ptr;
2955 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2959 struct { int i; int j; };
2960 struct { int k; long int l; } w;
2966 # Test code for whether the C compiler supports C11 (body of main).
2967 ac_c_conftest_c11_main='
2968 _Static_assert ((offsetof (struct anonymous, i)
2969 == offsetof (struct anonymous, w.k)),
2970 "Anonymous union alignment botch");
2976 # Test code for whether the C compiler supports C11 (complete).
2977 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2978 ${ac_c_conftest_c99_globals}
2979 ${ac_c_conftest_c11_globals}
2982 main (int argc, char **argv)
2985 ${ac_c_conftest_c89_main}
2986 ${ac_c_conftest_c99_main}
2987 ${ac_c_conftest_c11_main}
2992 # Test code for whether the C compiler supports C99 (complete).
2993 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2994 ${ac_c_conftest_c99_globals}
2997 main (int argc, char **argv)
3000 ${ac_c_conftest_c89_main}
3001 ${ac_c_conftest_c99_main}
3006 # Test code for whether the C compiler supports C89 (complete).
3007 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
3010 main (int argc, char **argv)
3013 ${ac_c_conftest_c89_main}
3018 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
3019 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
3020 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
3021 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
3022 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
3023 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
3024 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
3025 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
3026 as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
3027 as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
3028 gt_needs="$gt_needs "
3029 as_fn_append ac_func_c_list " vprintf HAVE_VPRINTF"
3030 # Test code for whether the C++ compiler supports C++98 (global declarations)
3031 ac_cxx_conftest_cxx98_globals='
3032 // Does the compiler advertise C++98 conformance?
3033 #if !defined __cplusplus || __cplusplus < 199711L
3034 # error "Compiler does not advertise C++98 conformance"
3037 // These inclusions are to reject old compilers that
3038 // lack the unsuffixed header files.
3040 #include <exception>
3042 // <cassert> and <cstring> are *not* freestanding headers in C++98.
3043 extern void assert (int);
3045 extern int strcmp (const char *, const char *);
3048 // Namespaces, exceptions, and templates were all added after "C++ 2.0".
3049 using std::exception;
3054 void test_exception_syntax()
3058 } catch (const char *s) {
3059 // Extra parentheses suppress a warning when building autoconf itself,
3060 // due to lint rules shared with more typical C programs.
3061 assert (!(strcmp) (s, "test"));
3065 template <typename T> struct test_template
3068 explicit test_template(T t) : val(t) {}
3069 template <typename U> T add(U u) { return static_cast<T>(u) + val; }
3072 } // anonymous namespace
3075 # Test code for whether the C++ compiler supports C++98 (body of main)
3076 ac_cxx_conftest_cxx98_main='
3080 test_exception_syntax ();
3081 test_template<double> tt (2.0);
3082 assert (tt.add (4) == 6.0);
3083 assert (true && !false);
3087 # Test code for whether the C++ compiler supports C++11 (global declarations)
3088 ac_cxx_conftest_cxx11_globals='
3089 // Does the compiler advertise C++ 2011 conformance?
3090 #if !defined __cplusplus || __cplusplus < 201103L
3091 # error "Compiler does not advertise C++11 conformance"
3096 constexpr int get_val() { return 20; }
3107 delegate(int n) : n(n) {}
3108 delegate(): delegate(2354) {}
3110 virtual int getval() { return this->n; };
3115 class overridden : public delegate
3118 overridden(int n): delegate(n) {}
3119 virtual int getval() override final { return this->n * 2; }
3125 nocopy(int i): i(i) {}
3127 nocopy(const nocopy&) = delete;
3128 nocopy & operator=(const nocopy&) = delete;
3133 // for testing lambda expressions
3134 template <typename Ret, typename Fn> Ret eval(Fn f, Ret v)
3139 // for testing variadic templates and trailing return types
3140 template <typename V> auto sum(V first) -> V
3144 template <typename V, typename... Args> auto sum(V first, Args... rest) -> V
3146 return first + sum(rest...);
3151 # Test code for whether the C++ compiler supports C++11 (body of main)
3152 ac_cxx_conftest_cxx11_main='
3154 // Test auto and decltype
3156 auto a2 = 48573953.4;
3157 auto a3 = "String literal";
3160 for (auto i = a3; *i; ++i) { total += *i; }
3162 decltype(a2) a4 = 34895.034;
3166 short sa[cxx11test::get_val()] = { 0 };
3169 // Test initializer lists
3170 cxx11test::testinit il = { 4323, 435234.23544 };
3173 // Test range-based for
3174 int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3,
3175 14, 19, 17, 8, 6, 20, 16, 2, 11, 1};
3176 for (auto &x : array) { x += 23; }
3179 // Test lambda expressions
3180 using cxx11test::eval;
3181 assert (eval ([](int x) { return x*2; }, 21) == 42);
3183 assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0);
3185 assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0);
3189 // Test use of variadic templates
3190 using cxx11test::sum;
3193 auto c = sum(1.0, 2.0, 3.0);
3196 // Test constructor delegation
3197 cxx11test::delegate d1;
3198 cxx11test::delegate d2();
3199 cxx11test::delegate d3(45);
3202 // Test override and final
3203 cxx11test::overridden o1(55464);
3210 // Test template brackets
3211 test_template<::test_template<int>> v(test_template<int>(12));
3215 char const *utf8 = u8"UTF-8 string \u2500";
3216 char16_t const *utf16 = u"UTF-8 string \u2500";
3217 char32_t const *utf32 = U"UTF-32 string \u2500";
3221 # Test code for whether the C compiler supports C++11 (complete).
3222 ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals}
3223 ${ac_cxx_conftest_cxx11_globals}
3226 main (int argc, char **argv)
3229 ${ac_cxx_conftest_cxx98_main}
3230 ${ac_cxx_conftest_cxx11_main}
3235 # Test code for whether the C compiler supports C++98 (complete).
3236 ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals}
3238 main (int argc, char **argv)
3241 ${ac_cxx_conftest_cxx98_main}
3247 # Auxiliary files required by this configure script.
3248 ac_aux_files="config.rpath install-sh config.guess config.sub"
3250 # Locations in which to look for auxiliary files.
3251 ac_aux_dir_candidates="${srcdir}/config"
3253 # Search for a directory containing all of the required auxiliary files,
3254 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
3255 # If we don't find one directory that contains all the files we need,
3256 # we report the set of missing files from the *first* directory in
3257 # $ac_aux_dir_candidates and give up.
3258 ac_missing_aux_files=""
3259 ac_first_candidate=:
3260 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
3261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3263 for as_dir in $ac_aux_dir_candidates
3266 case $as_dir in #(((
3269 *) as_dir=$as_dir/ ;;
3273 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
3274 ac_aux_dir_found=yes
3276 for ac_aux in $ac_aux_files
3278 # As a special case, if "install-sh" is required, that requirement
3279 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
3280 # and $ac_install_sh is set appropriately for whichever one is found.
3281 if test x"$ac_aux" = x"install-sh"
3283 if test -f "${as_dir}install-sh"; then
3284 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
3285 ac_install_sh="${as_dir}install-sh -c"
3286 elif test -f "${as_dir}install.sh"; then
3287 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
3288 ac_install_sh="${as_dir}install.sh -c"
3289 elif test -f "${as_dir}shtool"; then
3290 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
3291 ac_install_sh="${as_dir}shtool install -c"
3294 if $ac_first_candidate; then
3295 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
3301 if test -f "${as_dir}${ac_aux}"; then
3302 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
3305 if $ac_first_candidate; then
3306 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
3313 if test "$ac_aux_dir_found" = yes; then
3314 ac_aux_dir="$as_dir"
3317 ac_first_candidate=false
3326 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
3330 # These three variables are undocumented and unsupported,
3331 # and are intended to be withdrawn in a future Autoconf release.
3332 # They can cause serious problems if a builder's source tree is in a directory
3333 # whose full name contains unusual characters.
3334 if test -f "${ac_aux_dir}config.guess"; then
3335 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
3337 if test -f "${ac_aux_dir}config.sub"; then
3338 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
3340 if test -f "$ac_aux_dir/configure"; then
3341 ac_configure="$SHELL ${ac_aux_dir}configure"
3344 # Check that the precious variables saved in the cache have kept the same
3346 ac_cache_corrupted=false
3347 for ac_var in $ac_precious_vars; do
3348 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3349 eval ac_new_set=\$ac_env_${ac_var}_set
3350 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3351 eval ac_new_val=\$ac_env_${ac_var}_value
3352 case $ac_old_set,$ac_new_set in
3354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3355 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3356 ac_cache_corrupted=: ;;
3358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3359 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3360 ac_cache_corrupted=: ;;
3363 if test "x$ac_old_val" != "x$ac_new_val"; then
3364 # differences in whitespace do not lead to failure.
3365 ac_old_val_w=`echo x $ac_old_val`
3366 ac_new_val_w=`echo x $ac_new_val`
3367 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3369 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3370 ac_cache_corrupted=:
3372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3373 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3374 eval $ac_var=\$ac_old_val
3376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3377 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
3378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3379 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
3382 # Pass precious variables to config.status.
3383 if test "$ac_new_set" = set; then
3385 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3386 *) ac_arg=$ac_var=$ac_new_val ;;
3388 case " $ac_configure_args " in
3389 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3390 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3394 if $ac_cache_corrupted; then
3395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3396 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3398 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
3399 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
3400 and start over" "$LINENO" 5
3402 ## -------------------- ##
3403 ## Main body of script. ##
3404 ## -------------------- ##
3407 ac_cpp='$CPP $CPPFLAGS'
3408 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3409 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3410 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3416 ac_config_headers="$ac_config_headers lib/config.h"
3429 ac_cpp='$CPP $CPPFLAGS'
3430 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3431 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3432 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3433 if test -n "$ac_tool_prefix"; then
3434 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3435 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3437 printf %s "checking for $ac_word... " >&6; }
3438 if test ${ac_cv_prog_CC+y}
3440 printf %s "(cached) " >&6
3442 if test -n "$CC"; then
3443 ac_cv_prog_CC="$CC" # Let the user override the test.
3445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3449 case $as_dir in #(((
3452 *) as_dir=$as_dir/ ;;
3454 for ac_exec_ext in '' $ac_executable_extensions; do
3455 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3456 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3457 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3467 if test -n "$CC"; then
3468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3469 printf "%s\n" "$CC" >&6; }
3471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3472 printf "%s\n" "no" >&6; }
3477 if test -z "$ac_cv_prog_CC"; then
3479 # Extract the first word of "gcc", so it can be a program name with args.
3480 set dummy gcc; ac_word=$2
3481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3482 printf %s "checking for $ac_word... " >&6; }
3483 if test ${ac_cv_prog_ac_ct_CC+y}
3485 printf %s "(cached) " >&6
3487 if test -n "$ac_ct_CC"; then
3488 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3494 case $as_dir in #(((
3497 *) as_dir=$as_dir/ ;;
3499 for ac_exec_ext in '' $ac_executable_extensions; do
3500 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3501 ac_cv_prog_ac_ct_CC="gcc"
3502 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3511 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3512 if test -n "$ac_ct_CC"; then
3513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3514 printf "%s\n" "$ac_ct_CC" >&6; }
3516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3517 printf "%s\n" "no" >&6; }
3520 if test "x$ac_ct_CC" = x; then
3523 case $cross_compiling:$ac_tool_warned in
3525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3526 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3527 ac_tool_warned=yes ;;
3535 if test -z "$CC"; then
3536 if test -n "$ac_tool_prefix"; then
3537 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3538 set dummy ${ac_tool_prefix}cc; ac_word=$2
3539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3540 printf %s "checking for $ac_word... " >&6; }
3541 if test ${ac_cv_prog_CC+y}
3543 printf %s "(cached) " >&6
3545 if test -n "$CC"; then
3546 ac_cv_prog_CC="$CC" # Let the user override the test.
3548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3552 case $as_dir in #(((
3555 *) as_dir=$as_dir/ ;;
3557 for ac_exec_ext in '' $ac_executable_extensions; do
3558 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3559 ac_cv_prog_CC="${ac_tool_prefix}cc"
3560 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3570 if test -n "$CC"; then
3571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3572 printf "%s\n" "$CC" >&6; }
3574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3575 printf "%s\n" "no" >&6; }
3581 if test -z "$CC"; then
3582 # Extract the first word of "cc", so it can be a program name with args.
3583 set dummy cc; ac_word=$2
3584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3585 printf %s "checking for $ac_word... " >&6; }
3586 if test ${ac_cv_prog_CC+y}
3588 printf %s "(cached) " >&6
3590 if test -n "$CC"; then
3591 ac_cv_prog_CC="$CC" # Let the user override the test.
3594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3598 case $as_dir in #(((
3601 *) as_dir=$as_dir/ ;;
3603 for ac_exec_ext in '' $ac_executable_extensions; do
3604 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3605 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3606 ac_prog_rejected=yes
3610 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3617 if test $ac_prog_rejected = yes; then
3618 # We found a bogon in the path, so make sure we never use it.
3619 set dummy $ac_cv_prog_CC
3621 if test $# != 0; then
3622 # We chose a different compiler from the bogus one.
3623 # However, it has the same basename, so the bogon will be chosen
3624 # first if we set CC to just the basename; use the full file name.
3626 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3632 if test -n "$CC"; then
3633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3634 printf "%s\n" "$CC" >&6; }
3636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3637 printf "%s\n" "no" >&6; }
3642 if test -z "$CC"; then
3643 if test -n "$ac_tool_prefix"; then
3644 for ac_prog in cl.exe
3646 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3647 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3649 printf %s "checking for $ac_word... " >&6; }
3650 if test ${ac_cv_prog_CC+y}
3652 printf %s "(cached) " >&6
3654 if test -n "$CC"; then
3655 ac_cv_prog_CC="$CC" # Let the user override the test.
3657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3661 case $as_dir in #(((
3664 *) as_dir=$as_dir/ ;;
3666 for ac_exec_ext in '' $ac_executable_extensions; do
3667 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3668 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3669 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3679 if test -n "$CC"; then
3680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3681 printf "%s\n" "$CC" >&6; }
3683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3684 printf "%s\n" "no" >&6; }
3688 test -n "$CC" && break
3691 if test -z "$CC"; then
3693 for ac_prog in cl.exe
3695 # Extract the first word of "$ac_prog", so it can be a program name with args.
3696 set dummy $ac_prog; ac_word=$2
3697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3698 printf %s "checking for $ac_word... " >&6; }
3699 if test ${ac_cv_prog_ac_ct_CC+y}
3701 printf %s "(cached) " >&6
3703 if test -n "$ac_ct_CC"; then
3704 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3710 case $as_dir in #(((
3713 *) as_dir=$as_dir/ ;;
3715 for ac_exec_ext in '' $ac_executable_extensions; do
3716 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3717 ac_cv_prog_ac_ct_CC="$ac_prog"
3718 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3727 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3728 if test -n "$ac_ct_CC"; then
3729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3730 printf "%s\n" "$ac_ct_CC" >&6; }
3732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3733 printf "%s\n" "no" >&6; }
3737 test -n "$ac_ct_CC" && break
3740 if test "x$ac_ct_CC" = x; then
3743 case $cross_compiling:$ac_tool_warned in
3745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3746 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3747 ac_tool_warned=yes ;;
3754 if test -z "$CC"; then
3755 if test -n "$ac_tool_prefix"; then
3756 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3757 set dummy ${ac_tool_prefix}clang; ac_word=$2
3758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3759 printf %s "checking for $ac_word... " >&6; }
3760 if test ${ac_cv_prog_CC+y}
3762 printf %s "(cached) " >&6
3764 if test -n "$CC"; then
3765 ac_cv_prog_CC="$CC" # Let the user override the test.
3767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3771 case $as_dir in #(((
3774 *) as_dir=$as_dir/ ;;
3776 for ac_exec_ext in '' $ac_executable_extensions; do
3777 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3778 ac_cv_prog_CC="${ac_tool_prefix}clang"
3779 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3789 if test -n "$CC"; then
3790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3791 printf "%s\n" "$CC" >&6; }
3793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3794 printf "%s\n" "no" >&6; }
3799 if test -z "$ac_cv_prog_CC"; then
3801 # Extract the first word of "clang", so it can be a program name with args.
3802 set dummy clang; ac_word=$2
3803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3804 printf %s "checking for $ac_word... " >&6; }
3805 if test ${ac_cv_prog_ac_ct_CC+y}
3807 printf %s "(cached) " >&6
3809 if test -n "$ac_ct_CC"; then
3810 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3816 case $as_dir in #(((
3819 *) as_dir=$as_dir/ ;;
3821 for ac_exec_ext in '' $ac_executable_extensions; do
3822 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3823 ac_cv_prog_ac_ct_CC="clang"
3824 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3833 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3834 if test -n "$ac_ct_CC"; then
3835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3836 printf "%s\n" "$ac_ct_CC" >&6; }
3838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3839 printf "%s\n" "no" >&6; }
3842 if test "x$ac_ct_CC" = x; then
3845 case $cross_compiling:$ac_tool_warned in
3847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3848 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3849 ac_tool_warned=yes ;;
3860 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3861 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3862 as_fn_error $? "no acceptable C compiler found in \$PATH
3863 See \`config.log' for more details" "$LINENO" 5; }
3865 # Provide some information about the compiler.
3866 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3869 for ac_option in --version -v -V -qversion -version; do
3870 { { ac_try="$ac_compiler $ac_option >&5"
3872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3873 *) ac_try_echo=$ac_try;;
3875 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3876 printf "%s\n" "$ac_try_echo"; } >&5
3877 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3879 if test -s conftest.err; then
3881 ... rest of stderr output deleted ...
3882 10q' conftest.err >conftest.er1
3883 cat conftest.er1 >&5
3885 rm -f conftest.er1 conftest.err
3886 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3887 test $ac_status = 0; }
3890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3891 /* end confdefs.h. */
3901 ac_clean_files_save=$ac_clean_files
3902 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3903 # Try to create an executable without -o first, disregard a.out.
3904 # It will help us diagnose broken compilers, and finding out an intuition
3906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3907 printf %s "checking whether the C compiler works... " >&6; }
3908 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3910 # The possible output files:
3911 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3914 for ac_file in $ac_files
3917 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3918 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3923 if { { ac_try="$ac_link_default"
3925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3926 *) ac_try_echo=$ac_try;;
3928 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3929 printf "%s\n" "$ac_try_echo"; } >&5
3930 (eval "$ac_link_default") 2>&5
3932 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3933 test $ac_status = 0; }
3935 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3936 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3937 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3938 # so that the user can short-circuit this test for compilers unknown to
3940 for ac_file in $ac_files ''
3942 test -f "$ac_file" || continue
3944 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3947 # We found the default executable, but exeext='' is most
3951 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3953 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3955 # We set ac_cv_exeext here because the later test for it is not
3956 # safe: cross compilers may not add the suffix if given an `-o'
3957 # argument, so we may need to know it at that point already.
3958 # Even if this section looks crufty: it has the advantage of
3965 test "$ac_cv_exeext" = no && ac_cv_exeext=
3970 if test -z "$ac_file"
3972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3973 printf "%s\n" "no" >&6; }
3974 printf "%s\n" "$as_me: failed program was:" >&5
3975 sed 's/^/| /' conftest.$ac_ext >&5
3977 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3978 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3979 as_fn_error 77 "C compiler cannot create executables
3980 See \`config.log' for more details" "$LINENO" 5; }
3982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3983 printf "%s\n" "yes" >&6; }
3985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3986 printf %s "checking for C compiler default output file name... " >&6; }
3987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3988 printf "%s\n" "$ac_file" >&6; }
3989 ac_exeext=$ac_cv_exeext
3991 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3992 ac_clean_files=$ac_clean_files_save
3993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3994 printf %s "checking for suffix of executables... " >&6; }
3995 if { { ac_try="$ac_link"
3997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3998 *) ac_try_echo=$ac_try;;
4000 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4001 printf "%s\n" "$ac_try_echo"; } >&5
4002 (eval "$ac_link") 2>&5
4004 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4005 test $ac_status = 0; }
4007 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4008 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4009 # work properly (i.e., refer to `conftest.exe'), while it won't with
4011 for ac_file in conftest.exe conftest conftest.*; do
4012 test -f "$ac_file" || continue
4014 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4015 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4021 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4022 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4023 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4024 See \`config.log' for more details" "$LINENO" 5; }
4026 rm -f conftest conftest$ac_cv_exeext
4027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4028 printf "%s\n" "$ac_cv_exeext" >&6; }
4030 rm -f conftest.$ac_ext
4031 EXEEXT=$ac_cv_exeext
4033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4034 /* end confdefs.h. */
4039 FILE *f = fopen ("conftest.out", "w");
4040 return ferror (f) || fclose (f) != 0;
4046 ac_clean_files="$ac_clean_files conftest.out"
4047 # Check that the compiler produces executables we can run. If not, either
4048 # the compiler is broken, or we cross compile.
4049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4050 printf %s "checking whether we are cross compiling... " >&6; }
4051 if test "$cross_compiling" != yes; then
4052 { { ac_try="$ac_link"
4054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4055 *) ac_try_echo=$ac_try;;
4057 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4058 printf "%s\n" "$ac_try_echo"; } >&5
4059 (eval "$ac_link") 2>&5
4061 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4062 test $ac_status = 0; }
4063 if { ac_try='./conftest$ac_cv_exeext'
4064 { { case "(($ac_try" in
4065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4066 *) ac_try_echo=$ac_try;;
4068 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4069 printf "%s\n" "$ac_try_echo"; } >&5
4070 (eval "$ac_try") 2>&5
4072 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4073 test $ac_status = 0; }; }; then
4076 if test "$cross_compiling" = maybe; then
4079 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4080 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4081 as_fn_error 77 "cannot run C compiled programs.
4082 If you meant to cross compile, use \`--host'.
4083 See \`config.log' for more details" "$LINENO" 5; }
4087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4088 printf "%s\n" "$cross_compiling" >&6; }
4090 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4091 ac_clean_files=$ac_clean_files_save
4092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4093 printf %s "checking for suffix of object files... " >&6; }
4094 if test ${ac_cv_objext+y}
4096 printf %s "(cached) " >&6
4098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4099 /* end confdefs.h. */
4109 rm -f conftest.o conftest.obj
4110 if { { ac_try="$ac_compile"
4112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4113 *) ac_try_echo=$ac_try;;
4115 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4116 printf "%s\n" "$ac_try_echo"; } >&5
4117 (eval "$ac_compile") 2>&5
4119 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4120 test $ac_status = 0; }
4122 for ac_file in conftest.o conftest.obj conftest.*; do
4123 test -f "$ac_file" || continue;
4125 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4126 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4131 printf "%s\n" "$as_me: failed program was:" >&5
4132 sed 's/^/| /' conftest.$ac_ext >&5
4134 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4135 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4136 as_fn_error $? "cannot compute suffix of object files: cannot compile
4137 See \`config.log' for more details" "$LINENO" 5; }
4139 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4142 printf "%s\n" "$ac_cv_objext" >&6; }
4143 OBJEXT=$ac_cv_objext
4145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4146 printf %s "checking whether the compiler supports GNU C... " >&6; }
4147 if test ${ac_cv_c_compiler_gnu+y}
4149 printf %s "(cached) " >&6
4151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4152 /* end confdefs.h. */
4165 if ac_fn_c_try_compile "$LINENO"
4171 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4172 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4176 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4177 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4179 if test $ac_compiler_gnu = yes; then
4184 ac_test_CFLAGS=${CFLAGS+y}
4185 ac_save_CFLAGS=$CFLAGS
4186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4187 printf %s "checking whether $CC accepts -g... " >&6; }
4188 if test ${ac_cv_prog_cc_g+y}
4190 printf %s "(cached) " >&6
4192 ac_save_c_werror_flag=$ac_c_werror_flag
4193 ac_c_werror_flag=yes
4196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4197 /* end confdefs.h. */
4207 if ac_fn_c_try_compile "$LINENO"
4212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4213 /* end confdefs.h. */
4223 if ac_fn_c_try_compile "$LINENO"
4227 ac_c_werror_flag=$ac_save_c_werror_flag
4229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4230 /* end confdefs.h. */
4240 if ac_fn_c_try_compile "$LINENO"
4244 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4246 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4248 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4249 ac_c_werror_flag=$ac_save_c_werror_flag
4251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4252 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4253 if test $ac_test_CFLAGS; then
4254 CFLAGS=$ac_save_CFLAGS
4255 elif test $ac_cv_prog_cc_g = yes; then
4256 if test "$GCC" = yes; then
4262 if test "$GCC" = yes; then
4269 if test x$ac_prog_cc_stdc = xno
4271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4272 printf %s "checking for $CC option to enable C11 features... " >&6; }
4273 if test ${ac_cv_prog_cc_c11+y}
4275 printf %s "(cached) " >&6
4277 ac_cv_prog_cc_c11=no
4279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4280 /* end confdefs.h. */
4281 $ac_c_conftest_c11_program
4283 for ac_arg in '' -std=gnu11
4285 CC="$ac_save_CC $ac_arg"
4286 if ac_fn_c_try_compile "$LINENO"
4288 ac_cv_prog_cc_c11=$ac_arg
4290 rm -f core conftest.err conftest.$ac_objext conftest.beam
4291 test "x$ac_cv_prog_cc_c11" != "xno" && break
4293 rm -f conftest.$ac_ext
4297 if test "x$ac_cv_prog_cc_c11" = xno
4299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4300 printf "%s\n" "unsupported" >&6; }
4302 if test "x$ac_cv_prog_cc_c11" = x
4304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4305 printf "%s\n" "none needed" >&6; }
4307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4308 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4309 CC="$CC $ac_cv_prog_cc_c11"
4311 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4315 if test x$ac_prog_cc_stdc = xno
4317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4318 printf %s "checking for $CC option to enable C99 features... " >&6; }
4319 if test ${ac_cv_prog_cc_c99+y}
4321 printf %s "(cached) " >&6
4323 ac_cv_prog_cc_c99=no
4325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4326 /* end confdefs.h. */
4327 $ac_c_conftest_c99_program
4329 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4331 CC="$ac_save_CC $ac_arg"
4332 if ac_fn_c_try_compile "$LINENO"
4334 ac_cv_prog_cc_c99=$ac_arg
4336 rm -f core conftest.err conftest.$ac_objext conftest.beam
4337 test "x$ac_cv_prog_cc_c99" != "xno" && break
4339 rm -f conftest.$ac_ext
4343 if test "x$ac_cv_prog_cc_c99" = xno
4345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4346 printf "%s\n" "unsupported" >&6; }
4348 if test "x$ac_cv_prog_cc_c99" = x
4350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4351 printf "%s\n" "none needed" >&6; }
4353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4354 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4355 CC="$CC $ac_cv_prog_cc_c99"
4357 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4361 if test x$ac_prog_cc_stdc = xno
4363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4364 printf %s "checking for $CC option to enable C89 features... " >&6; }
4365 if test ${ac_cv_prog_cc_c89+y}
4367 printf %s "(cached) " >&6
4369 ac_cv_prog_cc_c89=no
4371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4372 /* end confdefs.h. */
4373 $ac_c_conftest_c89_program
4375 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4377 CC="$ac_save_CC $ac_arg"
4378 if ac_fn_c_try_compile "$LINENO"
4380 ac_cv_prog_cc_c89=$ac_arg
4382 rm -f core conftest.err conftest.$ac_objext conftest.beam
4383 test "x$ac_cv_prog_cc_c89" != "xno" && break
4385 rm -f conftest.$ac_ext
4389 if test "x$ac_cv_prog_cc_c89" = xno
4391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4392 printf "%s\n" "unsupported" >&6; }
4394 if test "x$ac_cv_prog_cc_c89" = x
4396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4397 printf "%s\n" "none needed" >&6; }
4399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4400 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4401 CC="$CC $ac_cv_prog_cc_c89"
4403 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4409 ac_cpp='$CPP $CPPFLAGS'
4410 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4411 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4412 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4415 ac_header= ac_cache=
4416 for ac_item in $ac_header_c_list
4418 if test $ac_cache; then
4419 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
4420 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
4421 printf "%s\n" "#define $ac_item 1" >> confdefs.h
4423 ac_header= ac_cache=
4424 elif test $ac_header; then
4438 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
4441 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
4450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4451 printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4452 if test ${ac_cv_safe_to_define___extensions__+y}
4454 printf %s "(cached) " >&6
4456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4457 /* end confdefs.h. */
4459 # define __EXTENSIONS__ 1
4460 $ac_includes_default
4469 if ac_fn_c_try_compile "$LINENO"
4471 ac_cv_safe_to_define___extensions__=yes
4473 ac_cv_safe_to_define___extensions__=no
4475 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4478 printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
4480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
4481 printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
4482 if test ${ac_cv_should_define__xopen_source+y}
4484 printf %s "(cached) " >&6
4486 ac_cv_should_define__xopen_source=no
4487 if test $ac_cv_header_wchar_h = yes
4489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4490 /* end confdefs.h. */
4502 if ac_fn_c_try_compile "$LINENO"
4506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4507 /* end confdefs.h. */
4509 #define _XOPEN_SOURCE 500
4520 if ac_fn_c_try_compile "$LINENO"
4522 ac_cv_should_define__xopen_source=yes
4524 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4526 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
4530 printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
4532 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
4534 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
4536 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
4538 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
4540 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
4542 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
4544 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4546 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
4548 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
4550 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
4552 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
4554 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
4556 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
4558 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
4560 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
4562 if test $ac_cv_header_minix_config_h = yes
4565 printf "%s\n" "#define _MINIX 1" >>confdefs.h
4567 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
4569 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
4574 if test $ac_cv_safe_to_define___extensions__ = yes
4576 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
4579 if test $ac_cv_should_define__xopen_source = yes
4581 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
4588 E2FSPROGS_VERSION=`awk -F\" '/E2FSPROGS_VERS/ { print $2 }' ${srcdir}/version.h`
4589 E2FSPROGS_DATE=`awk -F\" '/E2FSPROGS_DATE/ { print $2 }' ${srcdir}/version.h`
4590 E2FSPROGS_DAY=$(echo $E2FSPROGS_DATE | awk -F- '{ printf "%02d", $1 }')
4591 MONTH=`echo $E2FSPROGS_DATE | awk -F- '{print $2}'`
4592 YEAR=`echo $E2FSPROGS_DATE | awk -F- '{print $3}'`
4594 if expr $YEAR ">" 1900 > /dev/null ; then
4595 E2FSPROGS_YEAR=$YEAR
4596 elif expr $YEAR ">" 90 >/dev/null ; then
4597 E2FSPROGS_YEAR=19$YEAR
4599 E2FSPROGS_YEAR=20$YEAR
4603 Jan) MONTH_NUM=01; E2FSPROGS_MONTH="January" ;;
4604 Feb) MONTH_NUM=02; E2FSPROGS_MONTH="February" ;;
4605 Mar) MONTH_NUM=03; E2FSPROGS_MONTH="March" ;;
4606 Apr) MONTH_NUM=04; E2FSPROGS_MONTH="April" ;;
4607 May) MONTH_NUM=05; E2FSPROGS_MONTH="May" ;;
4608 Jun) MONTH_NUM=06; E2FSPROGS_MONTH="June" ;;
4609 Jul) MONTH_NUM=07; E2FSPROGS_MONTH="July" ;;
4610 Aug) MONTH_NUM=08; E2FSPROGS_MONTH="August" ;;
4611 Sep) MONTH_NUM=09; E2FSPROGS_MONTH="September" ;;
4612 Oct) MONTH_NUM=10; E2FSPROGS_MONTH="October" ;;
4613 Nov) MONTH_NUM=11; E2FSPROGS_MONTH="November" ;;
4614 Dec) MONTH_NUM=12; E2FSPROGS_MONTH="December" ;;
4615 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Unknown month $MONTH??" >&5
4616 printf "%s\n" "$as_me: WARNING: Unknown month $MONTH??" >&2;} ;;
4619 base_ver=`echo $E2FSPROGS_VERSION | sed -e 's/pre-//' -e 's/-.*//'`
4620 base_rel=`echo $E2FSPROGS_VERSION | awk -F- '{ print $2 }'`
4622 date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY}
4624 case $E2FSPROGS_VERSION in
4626 E2FSPROGS_PKGVER="$base_ver"
4627 E2FSPROGS_PKGREL="WIP.$date_spec"
4630 E2FSPROGS_PKGVER="$base_ver"
4631 E2FSPROGS_PKGREL="$base_rel"
4635 unset DATE MONTH YEAR base_ver pre_vers date_spec
4636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&5
4637 printf "%s\n" "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&6; }
4638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Package version ${E2FSPROGS_PKGVER} release ${E2FSPROGS_PKGREL}" >&5
4639 printf "%s\n" "Package version ${E2FSPROGS_PKGVER} release ${E2FSPROGS_PKGREL}" >&6; }
4640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&5
4641 printf "%s\n" "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&6; }
4651 # Check whether --with-diet-libc was given.
4652 if test ${with_diet_libc+y}
4654 withval=$with_diet_libc; CC="diet cc -nostdinc"
4660 LIBS="$LIBS -lcompat"
4662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: CC=$CC" >&5
4663 printf "%s\n" "CC=$CC" >&6; }
4668 # Make sure we can run config.sub.
4669 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4670 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4673 printf %s "checking build system type... " >&6; }
4674 if test ${ac_cv_build+y}
4676 printf %s "(cached) " >&6
4678 ac_build_alias=$build_alias
4679 test "x$ac_build_alias" = x &&
4680 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4681 test "x$ac_build_alias" = x &&
4682 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4683 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4684 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4688 printf "%s\n" "$ac_cv_build" >&6; }
4689 case $ac_cv_build in
4691 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4694 ac_save_IFS=$IFS; IFS='-'
4700 # Remember, the first character of IFS is used to create $*,
4701 # except with old shells:
4704 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4708 printf %s "checking host system type... " >&6; }
4709 if test ${ac_cv_host+y}
4711 printf %s "(cached) " >&6
4713 if test "x$host_alias" = x; then
4714 ac_cv_host=$ac_cv_build
4716 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4717 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4722 printf "%s\n" "$ac_cv_host" >&6; }
4725 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4728 ac_save_IFS=$IFS; IFS='-'
4734 # Remember, the first character of IFS is used to create $*,
4735 # except with old shells:
4738 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
4743 printf %s "checking for dlopen in -ldl... " >&6; }
4744 if test ${ac_cv_lib_dl_dlopen+y}
4746 printf %s "(cached) " >&6
4748 ac_check_lib_save_LIBS=$LIBS
4750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4751 /* end confdefs.h. */
4753 /* Override any GCC internal prototype to avoid an error.
4754 Use char because int might match the return type of a GCC
4755 builtin and then its argument prototype would still apply. */
4765 if ac_fn_c_try_link "$LINENO"
4767 ac_cv_lib_dl_dlopen=yes
4769 ac_cv_lib_dl_dlopen=no
4771 rm -f core conftest.err conftest.$ac_objext conftest.beam \
4772 conftest$ac_exeext conftest.$ac_ext
4773 LIBS=$ac_check_lib_save_LIBS
4775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
4776 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
4777 if test "x$ac_cv_lib_dl_dlopen" = xyes
4784 # Check whether --with-cc was given.
4785 if test ${with_cc+y}
4787 withval=$with_cc; as_fn_error $? "--with-cc no longer supported; use CC= instead" "$LINENO" 5
4791 # Check whether --with-ccopts was given.
4792 if test ${with_ccopts+y}
4794 withval=$with_ccopts; as_fn_error $? "--with-ccopts no longer supported; use CFLAGS= instead" "$LINENO" 5
4798 # Check whether --with-ldopts was given.
4799 if test ${with_ldopts+y}
4801 withval=$with_ldopts; as_fn_error $? "--with-ldopts no longer supported; use LDFLAGS= instead" "$LINENO" 5
4805 ac_cpp='$CPP $CPPFLAGS'
4806 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4807 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4808 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4809 if test -n "$ac_tool_prefix"; then
4810 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4811 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4813 printf %s "checking for $ac_word... " >&6; }
4814 if test ${ac_cv_prog_CC+y}
4816 printf %s "(cached) " >&6
4818 if test -n "$CC"; then
4819 ac_cv_prog_CC="$CC" # Let the user override the test.
4821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4825 case $as_dir in #(((
4828 *) as_dir=$as_dir/ ;;
4830 for ac_exec_ext in '' $ac_executable_extensions; do
4831 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4832 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4833 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4843 if test -n "$CC"; then
4844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4845 printf "%s\n" "$CC" >&6; }
4847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4848 printf "%s\n" "no" >&6; }
4853 if test -z "$ac_cv_prog_CC"; then
4855 # Extract the first word of "gcc", so it can be a program name with args.
4856 set dummy gcc; ac_word=$2
4857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4858 printf %s "checking for $ac_word... " >&6; }
4859 if test ${ac_cv_prog_ac_ct_CC+y}
4861 printf %s "(cached) " >&6
4863 if test -n "$ac_ct_CC"; then
4864 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4870 case $as_dir in #(((
4873 *) as_dir=$as_dir/ ;;
4875 for ac_exec_ext in '' $ac_executable_extensions; do
4876 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4877 ac_cv_prog_ac_ct_CC="gcc"
4878 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4887 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4888 if test -n "$ac_ct_CC"; then
4889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4890 printf "%s\n" "$ac_ct_CC" >&6; }
4892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4893 printf "%s\n" "no" >&6; }
4896 if test "x$ac_ct_CC" = x; then
4899 case $cross_compiling:$ac_tool_warned in
4901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4902 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4903 ac_tool_warned=yes ;;
4911 if test -z "$CC"; then
4912 if test -n "$ac_tool_prefix"; then
4913 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4914 set dummy ${ac_tool_prefix}cc; ac_word=$2
4915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4916 printf %s "checking for $ac_word... " >&6; }
4917 if test ${ac_cv_prog_CC+y}
4919 printf %s "(cached) " >&6
4921 if test -n "$CC"; then
4922 ac_cv_prog_CC="$CC" # Let the user override the test.
4924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4928 case $as_dir in #(((
4931 *) as_dir=$as_dir/ ;;
4933 for ac_exec_ext in '' $ac_executable_extensions; do
4934 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4935 ac_cv_prog_CC="${ac_tool_prefix}cc"
4936 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4946 if test -n "$CC"; then
4947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4948 printf "%s\n" "$CC" >&6; }
4950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4951 printf "%s\n" "no" >&6; }
4957 if test -z "$CC"; then
4958 # Extract the first word of "cc", so it can be a program name with args.
4959 set dummy cc; ac_word=$2
4960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4961 printf %s "checking for $ac_word... " >&6; }
4962 if test ${ac_cv_prog_CC+y}
4964 printf %s "(cached) " >&6
4966 if test -n "$CC"; then
4967 ac_cv_prog_CC="$CC" # Let the user override the test.
4970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4974 case $as_dir in #(((
4977 *) as_dir=$as_dir/ ;;
4979 for ac_exec_ext in '' $ac_executable_extensions; do
4980 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4981 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4982 ac_prog_rejected=yes
4986 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4993 if test $ac_prog_rejected = yes; then
4994 # We found a bogon in the path, so make sure we never use it.
4995 set dummy $ac_cv_prog_CC
4997 if test $# != 0; then
4998 # We chose a different compiler from the bogus one.
4999 # However, it has the same basename, so the bogon will be chosen
5000 # first if we set CC to just the basename; use the full file name.
5002 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
5008 if test -n "$CC"; then
5009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5010 printf "%s\n" "$CC" >&6; }
5012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5013 printf "%s\n" "no" >&6; }
5018 if test -z "$CC"; then
5019 if test -n "$ac_tool_prefix"; then
5020 for ac_prog in cl.exe
5022 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5023 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5025 printf %s "checking for $ac_word... " >&6; }
5026 if test ${ac_cv_prog_CC+y}
5028 printf %s "(cached) " >&6
5030 if test -n "$CC"; then
5031 ac_cv_prog_CC="$CC" # Let the user override the test.
5033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5037 case $as_dir in #(((
5040 *) as_dir=$as_dir/ ;;
5042 for ac_exec_ext in '' $ac_executable_extensions; do
5043 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5044 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5045 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5055 if test -n "$CC"; then
5056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5057 printf "%s\n" "$CC" >&6; }
5059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5060 printf "%s\n" "no" >&6; }
5064 test -n "$CC" && break
5067 if test -z "$CC"; then
5069 for ac_prog in cl.exe
5071 # Extract the first word of "$ac_prog", so it can be a program name with args.
5072 set dummy $ac_prog; ac_word=$2
5073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5074 printf %s "checking for $ac_word... " >&6; }
5075 if test ${ac_cv_prog_ac_ct_CC+y}
5077 printf %s "(cached) " >&6
5079 if test -n "$ac_ct_CC"; then
5080 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5086 case $as_dir in #(((
5089 *) as_dir=$as_dir/ ;;
5091 for ac_exec_ext in '' $ac_executable_extensions; do
5092 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5093 ac_cv_prog_ac_ct_CC="$ac_prog"
5094 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5103 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5104 if test -n "$ac_ct_CC"; then
5105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5106 printf "%s\n" "$ac_ct_CC" >&6; }
5108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5109 printf "%s\n" "no" >&6; }
5113 test -n "$ac_ct_CC" && break
5116 if test "x$ac_ct_CC" = x; then
5119 case $cross_compiling:$ac_tool_warned in
5121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5122 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5123 ac_tool_warned=yes ;;
5130 if test -z "$CC"; then
5131 if test -n "$ac_tool_prefix"; then
5132 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
5133 set dummy ${ac_tool_prefix}clang; ac_word=$2
5134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5135 printf %s "checking for $ac_word... " >&6; }
5136 if test ${ac_cv_prog_CC+y}
5138 printf %s "(cached) " >&6
5140 if test -n "$CC"; then
5141 ac_cv_prog_CC="$CC" # Let the user override the test.
5143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5147 case $as_dir in #(((
5150 *) as_dir=$as_dir/ ;;
5152 for ac_exec_ext in '' $ac_executable_extensions; do
5153 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5154 ac_cv_prog_CC="${ac_tool_prefix}clang"
5155 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5165 if test -n "$CC"; then
5166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5167 printf "%s\n" "$CC" >&6; }
5169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5170 printf "%s\n" "no" >&6; }
5175 if test -z "$ac_cv_prog_CC"; then
5177 # Extract the first word of "clang", so it can be a program name with args.
5178 set dummy clang; ac_word=$2
5179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5180 printf %s "checking for $ac_word... " >&6; }
5181 if test ${ac_cv_prog_ac_ct_CC+y}
5183 printf %s "(cached) " >&6
5185 if test -n "$ac_ct_CC"; then
5186 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5192 case $as_dir in #(((
5195 *) as_dir=$as_dir/ ;;
5197 for ac_exec_ext in '' $ac_executable_extensions; do
5198 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5199 ac_cv_prog_ac_ct_CC="clang"
5200 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5209 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5210 if test -n "$ac_ct_CC"; then
5211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5212 printf "%s\n" "$ac_ct_CC" >&6; }
5214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5215 printf "%s\n" "no" >&6; }
5218 if test "x$ac_ct_CC" = x; then
5221 case $cross_compiling:$ac_tool_warned in
5223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5224 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5225 ac_tool_warned=yes ;;
5236 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5237 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5238 as_fn_error $? "no acceptable C compiler found in \$PATH
5239 See \`config.log' for more details" "$LINENO" 5; }
5241 # Provide some information about the compiler.
5242 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5245 for ac_option in --version -v -V -qversion -version; do
5246 { { ac_try="$ac_compiler $ac_option >&5"
5248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5249 *) ac_try_echo=$ac_try;;
5251 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5252 printf "%s\n" "$ac_try_echo"; } >&5
5253 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5255 if test -s conftest.err; then
5257 ... rest of stderr output deleted ...
5258 10q' conftest.err >conftest.er1
5259 cat conftest.er1 >&5
5261 rm -f conftest.er1 conftest.err
5262 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5263 test $ac_status = 0; }
5266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
5267 printf %s "checking whether the compiler supports GNU C... " >&6; }
5268 if test ${ac_cv_c_compiler_gnu+y}
5270 printf %s "(cached) " >&6
5272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5273 /* end confdefs.h. */
5286 if ac_fn_c_try_compile "$LINENO"
5292 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5293 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5297 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
5298 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5300 if test $ac_compiler_gnu = yes; then
5305 ac_test_CFLAGS=${CFLAGS+y}
5306 ac_save_CFLAGS=$CFLAGS
5307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5308 printf %s "checking whether $CC accepts -g... " >&6; }
5309 if test ${ac_cv_prog_cc_g+y}
5311 printf %s "(cached) " >&6
5313 ac_save_c_werror_flag=$ac_c_werror_flag
5314 ac_c_werror_flag=yes
5317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5318 /* end confdefs.h. */
5328 if ac_fn_c_try_compile "$LINENO"
5333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5334 /* end confdefs.h. */
5344 if ac_fn_c_try_compile "$LINENO"
5348 ac_c_werror_flag=$ac_save_c_werror_flag
5350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5351 /* end confdefs.h. */
5361 if ac_fn_c_try_compile "$LINENO"
5365 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5367 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5369 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5370 ac_c_werror_flag=$ac_save_c_werror_flag
5372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5373 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
5374 if test $ac_test_CFLAGS; then
5375 CFLAGS=$ac_save_CFLAGS
5376 elif test $ac_cv_prog_cc_g = yes; then
5377 if test "$GCC" = yes; then
5383 if test "$GCC" = yes; then
5390 if test x$ac_prog_cc_stdc = xno
5392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
5393 printf %s "checking for $CC option to enable C11 features... " >&6; }
5394 if test ${ac_cv_prog_cc_c11+y}
5396 printf %s "(cached) " >&6
5398 ac_cv_prog_cc_c11=no
5400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5401 /* end confdefs.h. */
5402 $ac_c_conftest_c11_program
5404 for ac_arg in '' -std=gnu11
5406 CC="$ac_save_CC $ac_arg"
5407 if ac_fn_c_try_compile "$LINENO"
5409 ac_cv_prog_cc_c11=$ac_arg
5411 rm -f core conftest.err conftest.$ac_objext conftest.beam
5412 test "x$ac_cv_prog_cc_c11" != "xno" && break
5414 rm -f conftest.$ac_ext
5418 if test "x$ac_cv_prog_cc_c11" = xno
5420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5421 printf "%s\n" "unsupported" >&6; }
5423 if test "x$ac_cv_prog_cc_c11" = x
5425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5426 printf "%s\n" "none needed" >&6; }
5428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
5429 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
5430 CC="$CC $ac_cv_prog_cc_c11"
5432 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
5436 if test x$ac_prog_cc_stdc = xno
5438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
5439 printf %s "checking for $CC option to enable C99 features... " >&6; }
5440 if test ${ac_cv_prog_cc_c99+y}
5442 printf %s "(cached) " >&6
5444 ac_cv_prog_cc_c99=no
5446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5447 /* end confdefs.h. */
5448 $ac_c_conftest_c99_program
5450 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
5452 CC="$ac_save_CC $ac_arg"
5453 if ac_fn_c_try_compile "$LINENO"
5455 ac_cv_prog_cc_c99=$ac_arg
5457 rm -f core conftest.err conftest.$ac_objext conftest.beam
5458 test "x$ac_cv_prog_cc_c99" != "xno" && break
5460 rm -f conftest.$ac_ext
5464 if test "x$ac_cv_prog_cc_c99" = xno
5466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5467 printf "%s\n" "unsupported" >&6; }
5469 if test "x$ac_cv_prog_cc_c99" = x
5471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5472 printf "%s\n" "none needed" >&6; }
5474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5475 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
5476 CC="$CC $ac_cv_prog_cc_c99"
5478 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
5482 if test x$ac_prog_cc_stdc = xno
5484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
5485 printf %s "checking for $CC option to enable C89 features... " >&6; }
5486 if test ${ac_cv_prog_cc_c89+y}
5488 printf %s "(cached) " >&6
5490 ac_cv_prog_cc_c89=no
5492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5493 /* end confdefs.h. */
5494 $ac_c_conftest_c89_program
5496 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5498 CC="$ac_save_CC $ac_arg"
5499 if ac_fn_c_try_compile "$LINENO"
5501 ac_cv_prog_cc_c89=$ac_arg
5503 rm -f core conftest.err conftest.$ac_objext conftest.beam
5504 test "x$ac_cv_prog_cc_c89" != "xno" && break
5506 rm -f conftest.$ac_ext
5510 if test "x$ac_cv_prog_cc_c89" = xno
5512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5513 printf "%s\n" "unsupported" >&6; }
5515 if test "x$ac_cv_prog_cc_c89" = x
5517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5518 printf "%s\n" "none needed" >&6; }
5520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5521 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
5522 CC="$CC $ac_cv_prog_cc_c89"
5524 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
5530 ac_cpp='$CPP $CPPFLAGS'
5531 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5532 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5533 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5535 if test "$GCC" = yes; then
5536 RDYNAMIC="-rdynamic"
5540 ac_cpp='$CPP $CPPFLAGS'
5541 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5542 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5543 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5545 printf %s "checking how to run the C preprocessor... " >&6; }
5546 # On Suns, sometimes $CPP names a directory.
5547 if test -n "$CPP" && test -d "$CPP"; then
5550 if test -z "$CPP"; then
5551 if test ${ac_cv_prog_CPP+y}
5553 printf %s "(cached) " >&6
5555 # Double quotes because $CC needs to be expanded
5556 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
5559 for ac_c_preproc_warn_flag in '' yes
5561 # Use a header file that comes with gcc, so configuring glibc
5562 # with a fresh cross-compiler works.
5563 # On the NeXT, cc -E runs the code through the compiler's parser,
5564 # not just through cpp. "Syntax error" is here to catch this case.
5565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5566 /* end confdefs.h. */
5570 if ac_fn_c_try_cpp "$LINENO"
5574 # Broken: fails on valid input.
5577 rm -f conftest.err conftest.i conftest.$ac_ext
5579 # OK, works on sane cases. Now check whether nonexistent headers
5580 # can be detected and how.
5581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5582 /* end confdefs.h. */
5583 #include <ac_nonexistent.h>
5585 if ac_fn_c_try_cpp "$LINENO"
5587 # Broken: success on invalid input.
5590 # Passes both tests.
5594 rm -f conftest.err conftest.i conftest.$ac_ext
5597 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5598 rm -f conftest.i conftest.err conftest.$ac_ext
5612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5613 printf "%s\n" "$CPP" >&6; }
5615 for ac_c_preproc_warn_flag in '' yes
5617 # Use a header file that comes with gcc, so configuring glibc
5618 # with a fresh cross-compiler works.
5619 # On the NeXT, cc -E runs the code through the compiler's parser,
5620 # not just through cpp. "Syntax error" is here to catch this case.
5621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5622 /* end confdefs.h. */
5626 if ac_fn_c_try_cpp "$LINENO"
5630 # Broken: fails on valid input.
5633 rm -f conftest.err conftest.i conftest.$ac_ext
5635 # OK, works on sane cases. Now check whether nonexistent headers
5636 # can be detected and how.
5637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5638 /* end confdefs.h. */
5639 #include <ac_nonexistent.h>
5641 if ac_fn_c_try_cpp "$LINENO"
5643 # Broken: success on invalid input.
5646 # Passes both tests.
5650 rm -f conftest.err conftest.i conftest.$ac_ext
5653 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5654 rm -f conftest.i conftest.err conftest.$ac_ext
5659 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5660 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5661 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5662 See \`config.log' for more details" "$LINENO" 5; }
5666 ac_cpp='$CPP $CPPFLAGS'
5667 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5668 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5669 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for additional special compiler flags" >&5
5672 printf %s "checking for additional special compiler flags... " >&6; }
5673 if test "$GCC" = yes
5676 alpha) addcflags="-mieee" ;;
5679 if test "x$addcflags" != x
5681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $addcflags" >&5
5682 printf "%s\n" "$addcflags" >&6; }
5683 CFLAGS="$addcflags $CFLAGS"
5685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: (none)" >&5
5686 printf "%s\n" "(none)" >&6; }
5692 # Check whether --with-root-prefix was given.
5693 if test ${with_root_prefix+y}
5695 withval=$with_root_prefix; root_prefix=$withval
5699 # Check whether --enable-maintainer-mode was given.
5700 if test ${enable_maintainer_mode+y}
5702 enableval=$enable_maintainer_mode; if test "$enableval" = "no"
5705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode" >&5
5706 printf "%s\n" "Disabling maintainer mode" >&6; }
5709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling maintainer mode" >&5
5710 printf "%s\n" "Enabling maintainer mode" >&6; }
5715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode by default" >&5
5716 printf "%s\n" "Disabling maintainer mode by default" >&6; }
5721 # Check whether --enable-symlink-install was given.
5722 if test ${enable_symlink_install+y}
5724 enableval=$enable_symlink_install; if test "$enableval" = "no"
5726 LINK_INSTALL_FLAGS=-f
5727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install" >&5
5728 printf "%s\n" "Disabling symlinks for install" >&6; }
5730 LINK_INSTALL_FLAGS=-sf
5731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for install" >&5
5732 printf "%s\n" "Enabling symlinks for install" >&6; }
5736 LINK_INSTALL_FLAGS=-f
5737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install by default" >&5
5738 printf "%s\n" "Disabling symlinks for install by default" >&6; }
5743 relative_symlink_defined=
5744 # Check whether --enable-relative-symlinks was given.
5745 if test ${enable_relative_symlinks+y}
5747 enableval=$enable_relative_symlinks; if test "$enableval" = "no"
5750 relative_symlink_defined=yes
5751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
5752 printf "%s\n" "Disabling relative symlinks for install" >&6; }
5754 SYMLINK_RELATIVE=--relative
5755 relative_symlink_defined=yes
5756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5
5757 printf "%s\n" "Enabling relative symlinks for install" >&6; }
5761 # Check whether --enable-symlink-relative-symlinks was given.
5762 if test ${enable_symlink_relative_symlinks+y}
5764 enableval=$enable_symlink_relative_symlinks; if test "$enableval" = "no"
5766 SYMLINK_RELATIVE=yes
5767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
5768 printf "%s\n" "Disabling relative symlinks for install" >&6; }
5770 SYMLINK_RELATIVE=--relative
5771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5
5772 printf "%s\n" "Enabling relative symlinks for install" >&6; }
5776 if test -z "$relative_symlink_defined"
5779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install by default" >&5
5780 printf "%s\n" "Disabling relative symlinks for install by default" >&6; }
5786 # Check whether --enable-symlink-build was given.
5787 if test ${enable_symlink_build+y}
5789 enableval=$enable_symlink_build; if test "$enableval" = "no"
5792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build" >&5
5793 printf "%s\n" "Disabling symlinks for build" >&6; }
5796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for build" >&5
5797 printf "%s\n" "Enabling symlinks for build" >&6; }
5802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build by default" >&5
5803 printf "%s\n" "Disabling symlinks for build by default" >&6; }
5808 # Check whether --enable-verbose-makecmds was given.
5809 if test ${enable_verbose_makecmds+y}
5811 enableval=$enable_verbose_makecmds; if test "$enableval" = "no"
5813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
5814 printf "%s\n" "Disabling verbose make commands" >&6; }
5819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling verbose make commands" >&5
5820 printf "%s\n" "Enabling verbose make commands" >&6; }
5827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
5828 printf "%s\n" "Disabling verbose make commands" >&6; }
5838 E2_PKG_CONFIG_STATIC=--static
5841 # Check whether --enable-elf-shlibs was given.
5842 if test ${enable_elf_shlibs+y}
5844 enableval=$enable_elf_shlibs; if test "$enableval" = "no"
5847 MAKEFILE_ELF=/dev/null
5848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries" >&5
5849 printf "%s\n" "Disabling ELF shared libraries" >&6; }
5851 E2_PKG_CONFIG_STATIC=
5853 MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
5856 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
5862 LDFLAG_DYNAMIC='-Wl,-rpath-link,$(top_builddir)/lib'
5863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling ELF shared libraries" >&5
5864 printf "%s\n" "Enabling ELF shared libraries" >&6; }
5868 MAKEFILE_ELF=/dev/null
5870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries by default" >&5
5871 printf "%s\n" "Disabling ELF shared libraries by default" >&6; }
5877 # Check whether --enable-bsd-shlibs was given.
5878 if test ${enable_bsd_shlibs+y}
5880 enableval=$enable_bsd_shlibs; if test "$enableval" = "no"
5883 MAKEFILE_BSDLIB=/dev/null
5884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries" >&5
5885 printf "%s\n" "Disabling BSD shared libraries" >&6; }
5887 E2_PKG_CONFIG_STATIC=
5889 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
5893 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib
5897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling BSD shared libraries" >&5
5898 printf "%s\n" "Enabling BSD shared libraries" >&6; }
5902 MAKEFILE_BSDLIB=/dev/null
5904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries by default" >&5
5905 printf "%s\n" "Disabling BSD shared libraries by default" >&6; }
5911 # Check whether --enable-profile was given.
5912 if test ${enable_profile+y}
5914 enableval=$enable_profile; if test "$enableval" = "no"
5917 MAKEFILE_PROFILE=/dev/null
5918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries" >&5
5919 printf "%s\n" "Disabling profiling libraries" >&6; }
5922 MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
5923 PROFILED_LIB_EXT=_p.a
5924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Building profiling libraries" >&5
5925 printf "%s\n" "Building profiling libraries" >&6; }
5930 MAKEFILE_PROFILE=/dev/null
5931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries by default" >&5
5932 printf "%s\n" "Disabling profiling libraries by default" >&6; }
5938 # Check whether --enable-gcov was given.
5939 if test ${enable_gcov+y}
5941 enableval=$enable_gcov; if test "$enableval" = "yes"
5943 CFLAGS="-g -fprofile-arcs -ftest-coverage"
5944 LDFLAGS="-fprofile-arcs -ftest-coverage"
5945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling gcov support" >&5
5946 printf "%s\n" "Enabling gcov support" >&6; }
5951 CFLAGS_SHLIB="${CFLAGS_SHLIB:-$CFLAGS}"
5952 CFLAGS_STLIB="${CFLAGS_STLIB:-$CFLAGS}"
5953 LDFLAGS_SHLIB=${LDFLAGS_SHLIB:-$LDFLAGS}
5954 LDFLAGS_STATIC=${LDFLAGS_STATIC:-$LDFLAGS}
5955 # Check whether --enable-hardening was given.
5956 if test ${enable_hardening+y}
5958 enableval=$enable_hardening; if test "$enableval" = "yes"
5960 HARDEN_CFLAGS="-D_FORTIFY_SOURCE=2 -fstack-protector-strong"
5961 HARDEN_LDFLAGS="-Wl,-z,relro -Wl,-z,now"
5962 CFLAGS="$CFLAGS $HARDEN_CFLAGS -fPIE"
5963 CFLAGS_SHLIB="$CFLAGS_SHLIB $HARDEN_CFLAGS"
5964 CFLAGS_STLIB="$CFLAGS_STLIB $HARDEN_CFLAGS -fPIE"
5965 LDFLAGS="$LDFLAGS $HARDEN_LDFLAGS -fPIE -pie"
5966 LDFLAGS_STATIC="$LDFLAGS_STATIC $HARDEN_LDFLAGS"
5967 LDFLAGS_SHLIB="$LDFLAGS_SHLIB $HARDEN_LDFLAGS"
5968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling hardening support" >&5
5969 printf "%s\n" "Enabling hardening support" >&6; }
5979 # Check whether --enable-jbd-debug was given.
5980 if test ${enable_jbd_debug+y}
5982 enableval=$enable_jbd_debug; if test "$enableval" = "no"
5984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging" >&5
5985 printf "%s\n" "Disabling journal debugging" >&6; }
5988 printf "%s\n" "#define CONFIG_JBD_DEBUG 1" >>confdefs.h
5990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling journal debugging" >&5
5991 printf "%s\n" "Enabling journal debugging" >&6; }
5995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging by default" >&5
5996 printf "%s\n" "Disabling journal debugging by default" >&6; }
6000 # Check whether --enable-blkid-debug was given.
6001 if test ${enable_blkid_debug+y}
6003 enableval=$enable_blkid_debug; if test "$enableval" = "no"
6005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging" >&5
6006 printf "%s\n" "Disabling blkid debugging" >&6; }
6009 printf "%s\n" "#define CONFIG_BLKID_DEBUG 1" >>confdefs.h
6011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling blkid debugging" >&5
6012 printf "%s\n" "Enabling blkid debugging" >&6; }
6016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging by default" >&5
6017 printf "%s\n" "Disabling blkid debugging by default" >&6; }
6021 # Check whether --enable-testio-debug was given.
6022 if test ${enable_testio_debug+y}
6024 enableval=$enable_testio_debug;
6025 if test "$enableval" = "no"
6027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling testio debugging" >&5
6028 printf "%s\n" "Disabling testio debugging" >&6; }
6032 printf "%s\n" "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
6034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging" >&5
6035 printf "%s\n" "Enabling testio debugging" >&6; }
6039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging by default" >&5
6040 printf "%s\n" "Enabling testio debugging by default" >&6; }
6041 printf "%s\n" "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
6048 # Check whether --enable-developer-features was given.
6049 if test ${enable_developer_features+y}
6051 enableval=$enable_developer_features;
6052 if test "$enableval" = "yes"
6055 printf "%s\n" "#define CONFIG_DEVELOPER_FEATURES 1" >>confdefs.h
6057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling ext4 developer features" >&5
6058 printf "%s\n" "Enabling ext4 developer features" >&6; }
6060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling ext4 developer features" >&5
6061 printf "%s\n" "Disabling ext4 developer features" >&6; }
6062 DEV_FEATURES_CMT="#"
6066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling ext4 developer features by default" >&5
6067 printf "%s\n" "Disabling ext4 developer features by default" >&6; }
6080 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
6081 if test -n "$ac_tool_prefix"; then
6082 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
6083 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
6084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6085 printf %s "checking for $ac_word... " >&6; }
6086 if test ${ac_cv_path_PKG_CONFIG+y}
6088 printf %s "(cached) " >&6
6092 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6099 case $as_dir in #(((
6102 *) as_dir=$as_dir/ ;;
6104 for ac_exec_ext in '' $ac_executable_extensions; do
6105 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6106 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
6107 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6117 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6118 if test -n "$PKG_CONFIG"; then
6119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
6120 printf "%s\n" "$PKG_CONFIG" >&6; }
6122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6123 printf "%s\n" "no" >&6; }
6128 if test -z "$ac_cv_path_PKG_CONFIG"; then
6129 ac_pt_PKG_CONFIG=$PKG_CONFIG
6130 # Extract the first word of "pkg-config", so it can be a program name with args.
6131 set dummy pkg-config; ac_word=$2
6132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6133 printf %s "checking for $ac_word... " >&6; }
6134 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
6136 printf %s "(cached) " >&6
6138 case $ac_pt_PKG_CONFIG in
6140 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
6143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6147 case $as_dir in #(((
6150 *) as_dir=$as_dir/ ;;
6152 for ac_exec_ext in '' $ac_executable_extensions; do
6153 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6154 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
6155 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6165 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
6166 if test -n "$ac_pt_PKG_CONFIG"; then
6167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
6168 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
6170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6171 printf "%s\n" "no" >&6; }
6174 if test "x$ac_pt_PKG_CONFIG" = x; then
6177 case $cross_compiling:$ac_tool_warned in
6179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6180 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6181 ac_tool_warned=yes ;;
6183 PKG_CONFIG=$ac_pt_PKG_CONFIG
6186 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
6190 if test -n "$PKG_CONFIG"; then
6191 _pkg_min_version=0.9.0
6192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
6193 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
6194 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
6195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6196 printf "%s\n" "yes" >&6; }
6198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6199 printf "%s\n" "no" >&6; }
6208 DEPPROFILED_LIBUUID=
6210 # Check whether --enable-libuuid was given.
6211 if test ${enable_libuuid+y}
6213 enableval=$enable_libuuid; if test "$enableval" = "no"
6215 if test -z "$PKG_CONFIG"; then
6216 as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5
6219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
6220 printf %s "checking for uuid_generate in -luuid... " >&6; }
6221 if test ${ac_cv_lib_uuid_uuid_generate+y}
6223 printf %s "(cached) " >&6
6225 ac_check_lib_save_LIBS=$LIBS
6227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6228 /* end confdefs.h. */
6230 /* Override any GCC internal prototype to avoid an error.
6231 Use char because int might match the return type of a GCC
6232 builtin and then its argument prototype would still apply. */
6233 char uuid_generate ();
6237 return uuid_generate ();
6242 if ac_fn_c_try_link "$LINENO"
6244 ac_cv_lib_uuid_uuid_generate=yes
6246 ac_cv_lib_uuid_uuid_generate=no
6248 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6249 conftest$ac_exeext conftest.$ac_ext
6250 LIBS=$ac_check_lib_save_LIBS
6252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
6253 printf "%s\n" "$ac_cv_lib_uuid_uuid_generate" >&6; }
6254 if test "x$ac_cv_lib_uuid_uuid_generate" = xyes
6256 LIBUUID=`$PKG_CONFIG --libs uuid`;
6257 STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid`
6259 as_fn_error $? "external uuid library not found" "$LINENO" 5
6262 PROFILED_LIBUUID=$LIBUUID
6264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling private uuid library" >&5
6265 printf "%s\n" "Disabling private uuid library" >&6; }
6267 LIBUUID='$(LIB)/libuuid'$LIB_EXT
6269 STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
6270 DEPSTATIC_LIBUUID=$STATIC_LIBUUID
6271 PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
6272 DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
6273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library" >&5
6274 printf "%s\n" "Enabling private uuid library" >&6; }
6278 if test -n "$PKG_CONFIG"; then
6279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
6280 printf %s "checking for uuid_generate in -luuid... " >&6; }
6281 if test ${ac_cv_lib_uuid_uuid_generate+y}
6283 printf %s "(cached) " >&6
6285 ac_check_lib_save_LIBS=$LIBS
6287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6288 /* end confdefs.h. */
6290 /* Override any GCC internal prototype to avoid an error.
6291 Use char because int might match the return type of a GCC
6292 builtin and then its argument prototype would still apply. */
6293 char uuid_generate ();
6297 return uuid_generate ();
6302 if ac_fn_c_try_link "$LINENO"
6304 ac_cv_lib_uuid_uuid_generate=yes
6306 ac_cv_lib_uuid_uuid_generate=no
6308 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6309 conftest$ac_exeext conftest.$ac_ext
6310 LIBS=$ac_check_lib_save_LIBS
6312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
6313 printf "%s\n" "$ac_cv_lib_uuid_uuid_generate" >&6; }
6314 if test "x$ac_cv_lib_uuid_uuid_generate" = xyes
6316 LIBUUID=`$PKG_CONFIG --libs uuid`;
6317 STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid`
6321 if test -n "$LIBUUID"; then
6322 PROFILED_LIBUUID=$LIBUUID
6324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Using system uuid by default" >&5
6325 printf "%s\n" "Using system uuid by default" >&6; }
6327 LIBUUID='$(LIB)/libuuid'$LIB_EXT
6329 STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
6330 DEPSTATIC_LIBUUID=$STATIC_LIBUUID
6331 PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
6332 DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
6333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library by default" >&5
6334 printf "%s\n" "Enabling private uuid library by default" >&6; }
6353 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
6354 if test -n "$ac_tool_prefix"; then
6355 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
6356 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
6357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6358 printf %s "checking for $ac_word... " >&6; }
6359 if test ${ac_cv_path_PKG_CONFIG+y}
6361 printf %s "(cached) " >&6
6365 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6372 case $as_dir in #(((
6375 *) as_dir=$as_dir/ ;;
6377 for ac_exec_ext in '' $ac_executable_extensions; do
6378 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6379 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
6380 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6390 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6391 if test -n "$PKG_CONFIG"; then
6392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
6393 printf "%s\n" "$PKG_CONFIG" >&6; }
6395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6396 printf "%s\n" "no" >&6; }
6401 if test -z "$ac_cv_path_PKG_CONFIG"; then
6402 ac_pt_PKG_CONFIG=$PKG_CONFIG
6403 # Extract the first word of "pkg-config", so it can be a program name with args.
6404 set dummy pkg-config; ac_word=$2
6405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6406 printf %s "checking for $ac_word... " >&6; }
6407 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
6409 printf %s "(cached) " >&6
6411 case $ac_pt_PKG_CONFIG in
6413 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
6416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6420 case $as_dir in #(((
6423 *) as_dir=$as_dir/ ;;
6425 for ac_exec_ext in '' $ac_executable_extensions; do
6426 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6427 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
6428 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6438 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
6439 if test -n "$ac_pt_PKG_CONFIG"; then
6440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
6441 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
6443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6444 printf "%s\n" "no" >&6; }
6447 if test "x$ac_pt_PKG_CONFIG" = x; then
6450 case $cross_compiling:$ac_tool_warned in
6452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6453 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6454 ac_tool_warned=yes ;;
6456 PKG_CONFIG=$ac_pt_PKG_CONFIG
6459 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
6463 if test -n "$PKG_CONFIG"; then
6464 _pkg_min_version=0.9.0
6465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
6466 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
6467 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
6468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6469 printf "%s\n" "yes" >&6; }
6471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6472 printf "%s\n" "no" >&6; }
6481 DEPPROFILED_LIBBLKID=
6484 # Check whether --enable-libblkid was given.
6485 if test ${enable_libblkid+y}
6487 enableval=$enable_libblkid; if test "$enableval" = "no"
6489 if test -z "$PKG_CONFIG"; then
6490 as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5
6493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
6494 printf %s "checking for blkid_get_cache in -lblkid... " >&6; }
6495 if test ${ac_cv_lib_blkid_blkid_get_cache+y}
6497 printf %s "(cached) " >&6
6499 ac_check_lib_save_LIBS=$LIBS
6500 LIBS="-lblkid -luuid $LIBS"
6501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6502 /* end confdefs.h. */
6504 /* Override any GCC internal prototype to avoid an error.
6505 Use char because int might match the return type of a GCC
6506 builtin and then its argument prototype would still apply. */
6507 char blkid_get_cache ();
6511 return blkid_get_cache ();
6516 if ac_fn_c_try_link "$LINENO"
6518 ac_cv_lib_blkid_blkid_get_cache=yes
6520 ac_cv_lib_blkid_blkid_get_cache=no
6522 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6523 conftest$ac_exeext conftest.$ac_ext
6524 LIBS=$ac_check_lib_save_LIBS
6526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
6527 printf "%s\n" "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
6528 if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes
6530 LIBBLKID=`$PKG_CONFIG --libs blkid`;
6531 STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid`
6533 as_fn_error $? "external blkid library not found" "$LINENO" 5
6537 PROFILED_LIBBLKID=$LIBBLKID
6538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling private blkid library" >&5
6539 printf "%s\n" "Disabling private blkid library" >&6; }
6541 LIBBLKID='$(LIB)/libblkid'$LIB_EXT
6542 DEPLIBBLKID=$LIBBLKID
6543 STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
6544 DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
6545 PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
6546 DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
6547 printf "%s\n" "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
6549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library" >&5
6550 printf "%s\n" "Enabling private blkid library" >&6; }
6554 if test -n "$PKG_CONFIG"; then
6555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
6556 printf %s "checking for blkid_get_cache in -lblkid... " >&6; }
6557 if test ${ac_cv_lib_blkid_blkid_get_cache+y}
6559 printf %s "(cached) " >&6
6561 ac_check_lib_save_LIBS=$LIBS
6562 LIBS="-lblkid $LIBS"
6563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6564 /* end confdefs.h. */
6566 /* Override any GCC internal prototype to avoid an error.
6567 Use char because int might match the return type of a GCC
6568 builtin and then its argument prototype would still apply. */
6569 char blkid_get_cache ();
6573 return blkid_get_cache ();
6578 if ac_fn_c_try_link "$LINENO"
6580 ac_cv_lib_blkid_blkid_get_cache=yes
6582 ac_cv_lib_blkid_blkid_get_cache=no
6584 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6585 conftest$ac_exeext conftest.$ac_ext
6586 LIBS=$ac_check_lib_save_LIBS
6588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
6589 printf "%s\n" "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
6590 if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes
6592 LIBBLKID=`$PKG_CONFIG --libs blkid`;
6593 STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid`
6597 if test -n "$LIBBLKID"; then
6599 PROFILED_LIBBLKID=$LIBBLKID
6600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Using system blkid library by default" >&5
6601 printf "%s\n" "Using system blkid library by default" >&6; }
6603 LIBBLKID='$(LIB)/libblkid'$LIB_EXT
6604 DEPLIBBLKID=$LIBBLKID
6605 STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
6606 DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
6607 PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
6608 DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
6609 printf "%s\n" "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
6611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library by default" >&5
6612 printf "%s\n" "Enabling private blkid library by default" >&6; }
6626 # Check whether --enable-subset was given.
6627 if test ${enable_subset+y}
6629 enableval=$enable_subset; if test "$enableval" = "no"
6632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling subset-only build" >&5
6633 printf "%s\n" "Disabling subset-only build" >&6; }
6636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling subset-only-build" >&5
6637 printf "%s\n" "Enabling subset-only-build" >&6; }
6645 # Check whether --enable-backtrace was given.
6646 if test ${enable_backtrace+y}
6648 enableval=$enable_backtrace; if test "$enableval" = "no"
6650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling use of backtrace" >&5
6651 printf "%s\n" "Disabling use of backtrace" >&6; }
6652 printf "%s\n" "#define DISABLE_BACKTRACE 1" >>confdefs.h
6655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace" >&5
6656 printf "%s\n" "Enabling use of backtrace" >&6; }
6660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace by default" >&5
6661 printf "%s\n" "Enabling use of backtrace by default" >&6; }
6665 # Check whether --enable-debugfs was given.
6666 if test ${enable_debugfs+y}
6668 enableval=$enable_debugfs; if test "$enableval" = "no"
6670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling debugfs support" >&5
6671 printf "%s\n" "Disabling debugfs support" >&6; }
6675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support" >&5
6676 printf "%s\n" "Enabling debugfs support" >&6; }
6680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support by default" >&5
6681 printf "%s\n" "Enabling debugfs support by default" >&6; }
6687 # Check whether --enable-imager was given.
6688 if test ${enable_imager+y}
6690 enableval=$enable_imager; if test "$enableval" = "no"
6692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling e2image support" >&5
6693 printf "%s\n" "Disabling e2image support" >&6; }
6697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support" >&5
6698 printf "%s\n" "Enabling e2image support" >&6; }
6702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support by default" >&5
6703 printf "%s\n" "Enabling e2image support by default" >&6; }
6709 # Check whether --enable-resizer was given.
6710 if test ${enable_resizer+y}
6712 enableval=$enable_resizer; if test "$enableval" = "no"
6714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling e2resize support" >&5
6715 printf "%s\n" "Disabling e2resize support" >&6; }
6719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support" >&5
6720 printf "%s\n" "Enabling e2resize support" >&6; }
6724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support by default" >&5
6725 printf "%s\n" "Enabling e2resize support by default" >&6; }
6731 # Check whether --enable-defrag was given.
6732 if test ${enable_defrag+y}
6734 enableval=$enable_defrag; if test "$enableval" = "no"
6736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support" >&5
6737 printf "%s\n" "Disabling e4defrag support" >&6; }
6741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support" >&5
6742 printf "%s\n" "Enabling e4defrag support" >&6; }
6746 if test -z "$WITH_DIET_LIBC"
6748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support by default" >&5
6749 printf "%s\n" "Enabling e4defrag support by default" >&6; }
6752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support by default" >&5
6753 printf "%s\n" "Disabling e4defrag support by default" >&6; }
6760 # Check whether --enable-fsck was given.
6761 if test ${enable_fsck+y}
6763 enableval=$enable_fsck; if test "$enableval" = "no"
6765 FSCK_PROG='' FSCK_MAN=''
6766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper" >&5
6767 printf "%s\n" "Not building fsck wrapper" >&6; }
6769 FSCK_PROG=fsck FSCK_MAN=fsck.8
6770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper" >&5
6771 printf "%s\n" "Building fsck wrapper" >&6; }
6777 FSCK_PROG='' FSCK_MAN=''
6778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper by default" >&5
6779 printf "%s\n" "Not building fsck wrapper by default" >&6; }
6782 FSCK_PROG=fsck FSCK_MAN=fsck.8
6783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper by default" >&5
6784 printf "%s\n" "Building fsck wrapper by default" >&6; }
6791 # Check whether --enable-e2initrd-helper was given.
6792 if test ${enable_e2initrd_helper+y}
6794 enableval=$enable_e2initrd_helper; if test "$enableval" = "no"
6796 E2INITRD_PROG='' E2INITRD_MAN=''
6797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Not building e2initrd helper" >&5
6798 printf "%s\n" "Not building e2initrd helper" >&6; }
6800 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
6801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper" >&5
6802 printf "%s\n" "Building e2initrd helper" >&6; }
6806 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
6807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper by default" >&5
6808 printf "%s\n" "Building e2initrd helper by default" >&6; }
6814 # Check whether --enable-tls was given.
6815 if test ${enable_tls+y}
6817 enableval=$enable_tls; if test "$enableval" = "no"
6820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling thread local support" >&5
6821 printf "%s\n" "Disabling thread local support" >&6; }
6824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling thread local support" >&5
6825 printf "%s\n" "Enabling thread local support" >&6; }
6829 if test -n "$WITH_DIET_LIBC"
6832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Diet libc does not support thread local support" >&5
6833 printf "%s\n" "Diet libc does not support thread local support" >&6; }
6836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Try using thread local support by default" >&5
6837 printf "%s\n" "Try using thread local support by default" >&6; }
6842 if test "$try_tls" = "yes"
6845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for thread local storage (TLS) class" >&5
6846 printf %s "checking for thread local storage (TLS) class... " >&6; }
6847 if test ${ac_cv_tls+y}
6849 printf %s "(cached) " >&6
6852 ax_tls_keywords="__thread __declspec(thread) none"
6853 for ax_tls_keyword in $ax_tls_keywords; do
6854 case $ax_tls_keyword in
6855 none) ac_cv_tls=none ; break ;;
6857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6858 /* end confdefs.h. */
6862 static $ax_tls_keyword int bar;
6873 if ac_fn_c_try_compile "$LINENO"
6875 ac_cv_tls=$ax_tls_keyword ; break
6880 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6887 if test "$ac_cv_tls" != "none"; then
6889 printf "%s\n" "#define TLS $ac_cv_tls" >>confdefs.h
6892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tls" >&5
6893 printf "%s\n" "$ac_cv_tls" >&6; }
6897 # Check whether --with-pthread was given.
6898 if test ${with_pthread+y}
6900 withval=$with_pthread; if test "$withval" = "no"
6903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling pthread support" >&5
6904 printf "%s\n" "Disabling pthread support" >&6; }
6907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Testing for pthread support" >&5
6908 printf "%s\n" "Testing for pthread support" >&6; }
6913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Try testing for pthread support by default" >&5
6914 printf "%s\n" "Try testing for pthread support by default" >&6; }
6918 if test "$try_pthread" = "yes"
6920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6921 printf %s "checking for a sed that does not truncate output... " >&6; }
6922 if test ${ac_cv_path_SED+y}
6924 printf %s "(cached) " >&6
6926 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6927 for ac_i in 1 2 3 4 5 6 7; do
6928 ac_script="$ac_script$as_nl$ac_script"
6930 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6931 { ac_script=; unset ac_script;}
6932 if test -z "$SED"; then
6933 ac_path_SED_found=false
6934 # Loop through the user's path and test for each of PROGNAME-LIST
6935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6939 case $as_dir in #(((
6942 *) as_dir=$as_dir/ ;;
6944 for ac_prog in sed gsed
6946 for ac_exec_ext in '' $ac_executable_extensions; do
6947 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
6948 as_fn_executable_p "$ac_path_SED" || continue
6949 # Check for GNU ac_path_SED and select it if it is found.
6950 # Check for GNU $ac_path_SED
6951 case `"$ac_path_SED" --version 2>&1` in
6953 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6956 printf %s 0123456789 >"conftest.in"
6959 cat "conftest.in" "conftest.in" >"conftest.tmp"
6960 mv "conftest.tmp" "conftest.in"
6961 cp "conftest.in" "conftest.nl"
6962 printf "%s\n" '' >> "conftest.nl"
6963 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6964 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6965 as_fn_arith $ac_count + 1 && ac_count=$as_val
6966 if test $ac_count -gt ${ac_path_SED_max-0}; then
6967 # Best one so far, save it but keep looking for a better one
6968 ac_cv_path_SED="$ac_path_SED"
6969 ac_path_SED_max=$ac_count
6971 # 10*(2^10) chars as input seems more than enough
6972 test $ac_count -gt 10 && break
6974 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6977 $ac_path_SED_found && break 3
6982 if test -z "$ac_cv_path_SED"; then
6983 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6991 printf "%s\n" "$ac_cv_path_SED" >&6; }
6992 SED="$ac_cv_path_SED"
6996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6997 printf %s "checking for grep that handles long lines and -e... " >&6; }
6998 if test ${ac_cv_path_GREP+y}
7000 printf %s "(cached) " >&6
7002 if test -z "$GREP"; then
7003 ac_path_GREP_found=false
7004 # Loop through the user's path and test for each of PROGNAME-LIST
7005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7006 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7009 case $as_dir in #(((
7012 *) as_dir=$as_dir/ ;;
7014 for ac_prog in grep ggrep
7016 for ac_exec_ext in '' $ac_executable_extensions; do
7017 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
7018 as_fn_executable_p "$ac_path_GREP" || continue
7019 # Check for GNU ac_path_GREP and select it if it is found.
7020 # Check for GNU $ac_path_GREP
7021 case `"$ac_path_GREP" --version 2>&1` in
7023 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7026 printf %s 0123456789 >"conftest.in"
7029 cat "conftest.in" "conftest.in" >"conftest.tmp"
7030 mv "conftest.tmp" "conftest.in"
7031 cp "conftest.in" "conftest.nl"
7032 printf "%s\n" 'GREP' >> "conftest.nl"
7033 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7034 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7035 as_fn_arith $ac_count + 1 && ac_count=$as_val
7036 if test $ac_count -gt ${ac_path_GREP_max-0}; then
7037 # Best one so far, save it but keep looking for a better one
7038 ac_cv_path_GREP="$ac_path_GREP"
7039 ac_path_GREP_max=$ac_count
7041 # 10*(2^10) chars as input seems more than enough
7042 test $ac_count -gt 10 && break
7044 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7047 $ac_path_GREP_found && break 3
7052 if test -z "$ac_cv_path_GREP"; then
7053 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7056 ac_cv_path_GREP=$GREP
7060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
7061 printf "%s\n" "$ac_cv_path_GREP" >&6; }
7062 GREP="$ac_cv_path_GREP"
7065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
7066 printf %s "checking for egrep... " >&6; }
7067 if test ${ac_cv_path_EGREP+y}
7069 printf %s "(cached) " >&6
7071 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
7072 then ac_cv_path_EGREP="$GREP -E"
7074 if test -z "$EGREP"; then
7075 ac_path_EGREP_found=false
7076 # Loop through the user's path and test for each of PROGNAME-LIST
7077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7078 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7081 case $as_dir in #(((
7084 *) as_dir=$as_dir/ ;;
7086 for ac_prog in egrep
7088 for ac_exec_ext in '' $ac_executable_extensions; do
7089 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
7090 as_fn_executable_p "$ac_path_EGREP" || continue
7091 # Check for GNU ac_path_EGREP and select it if it is found.
7092 # Check for GNU $ac_path_EGREP
7093 case `"$ac_path_EGREP" --version 2>&1` in
7095 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
7098 printf %s 0123456789 >"conftest.in"
7101 cat "conftest.in" "conftest.in" >"conftest.tmp"
7102 mv "conftest.tmp" "conftest.in"
7103 cp "conftest.in" "conftest.nl"
7104 printf "%s\n" 'EGREP' >> "conftest.nl"
7105 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7106 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7107 as_fn_arith $ac_count + 1 && ac_count=$as_val
7108 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
7109 # Best one so far, save it but keep looking for a better one
7110 ac_cv_path_EGREP="$ac_path_EGREP"
7111 ac_path_EGREP_max=$ac_count
7113 # 10*(2^10) chars as input seems more than enough
7114 test $ac_count -gt 10 && break
7116 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7119 $ac_path_EGREP_found && break 3
7124 if test -z "$ac_cv_path_EGREP"; then
7125 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7128 ac_cv_path_EGREP=$EGREP
7133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
7134 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
7135 EGREP="$ac_cv_path_EGREP"
7143 ac_cpp='$CPP $CPPFLAGS'
7144 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7145 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7146 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7150 # We used to check for pthread.h first, but this fails if pthread.h
7151 # requires special compiler flags (e.g. on Tru64 or Sequent).
7152 # It gets checked for in the link test anyway.
7154 # First of all, check if the user has set any of the PTHREAD_LIBS,
7155 # etcetera environment variables, and if threads linking works using
7157 if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
7158 ax_pthread_save_CC="$CC"
7159 ax_pthread_save_CFLAGS="$CFLAGS"
7160 ax_pthread_save_LIBS="$LIBS"
7161 if test "x$PTHREAD_CC" != "x"
7165 if test "x$PTHREAD_CXX" != "x"
7169 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
7170 LIBS="$PTHREAD_LIBS $LIBS"
7171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
7172 printf %s "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
7173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7174 /* end confdefs.h. */
7176 /* Override any GCC internal prototype to avoid an error.
7177 Use char because int might match the return type of a GCC
7178 builtin and then its argument prototype would still apply. */
7179 char pthread_join ();
7183 return pthread_join ();
7188 if ac_fn_c_try_link "$LINENO"
7192 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7193 conftest$ac_exeext conftest.$ac_ext
7194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
7195 printf "%s\n" "$ax_pthread_ok" >&6; }
7196 if test "x$ax_pthread_ok" = "xno"; then
7200 CC="$ax_pthread_save_CC"
7201 CFLAGS="$ax_pthread_save_CFLAGS"
7202 LIBS="$ax_pthread_save_LIBS"
7205 # We must check for the threads library under a number of different
7206 # names; the ordering is very important because some systems
7207 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
7208 # libraries is broken (non-POSIX).
7210 # Create a list of thread flags to try. Items with a "," contain both
7211 # C compiler flags (before ",") and linker flags (after ","). Other items
7212 # starting with a "-" are C compiler flags, and remaining items are
7213 # library names, except for "none" which indicates that we try without
7214 # any flags at all, and "pthread-config" which is a program returning
7215 # the flags for the Pth emulation library.
7217 ax_pthread_flags="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
7219 # The ordering *is* (sometimes) important. Some notes on the
7220 # individual items follow:
7222 # pthreads: AIX (must check this before -lpthread)
7223 # none: in case threads are in libc; should be tried before -Kthread and
7224 # other compiler flags to prevent continual compiler warnings
7225 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
7226 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
7227 # (Note: HP C rejects this with "bad form for `-t' option")
7228 # -pthreads: Solaris/gcc (Note: HP C also rejects)
7229 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
7230 # doesn't hurt to check since this sometimes defines pthreads and
7231 # -D_REENTRANT too), HP C (must be checked before -lpthread, which
7232 # is present but should not be used directly; and before -mthreads,
7233 # because the compiler interprets this as "-mt" + "-hreads")
7234 # -mthreads: Mingw32/gcc, Lynx/gcc
7235 # pthread: Linux, etcetera
7236 # --thread-safe: KAI C++
7237 # pthread-config: use pthread-config program (for GNU Pth library)
7243 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
7244 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
7246 ax_pthread_flags="-kthread lthread $ax_pthread_flags"
7251 # From the cc(1) man page: "[-mt] Sets various -D flags to enable
7252 # multi-threading and also sets -lpthread."
7254 ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags"
7259 # IBM z/OS requires a feature-test macro to be defined in order to
7260 # enable POSIX threads at all, so give the user a hint if this is
7261 # not set. (We don't define these ourselves, as they can affect
7262 # other portions of the system API in unpredictable ways.)
7264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7265 /* end confdefs.h. */
7267 # if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
7268 AX_PTHREAD_ZOS_MISSING
7272 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7273 $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1
7275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
7276 printf "%s\n" "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
7284 # On Solaris (at least, for some versions), libc contains stubbed
7285 # (non-functional) versions of the pthreads routines, so link-based
7286 # tests will erroneously succeed. (N.B.: The stubs are missing
7287 # pthread_cleanup_push, or rather a function called by this macro,
7288 # so we could check for that, but who knows whether they'll stub
7289 # that too in a future libc.) So we'll check first for the
7290 # standard Solaris way of linking pthreads (-mt -lpthread).
7292 ax_pthread_flags="-mt,-lpthread pthread $ax_pthread_flags"
7296 # Are we compiling with Clang?
7298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
7299 printf %s "checking whether $CC is Clang... " >&6; }
7300 if test ${ax_cv_PTHREAD_CLANG+y}
7302 printf %s "(cached) " >&6
7304 ax_cv_PTHREAD_CLANG=no
7305 # Note that Autoconf sets GCC=yes for Clang as well as GCC
7306 if test "x$GCC" = "xyes"; then
7307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7308 /* end confdefs.h. */
7309 /* Note: Clang 2.7 lacks __clang_[a-z]+__ */
7310 # if defined(__clang__) && defined(__llvm__)
7311 AX_PTHREAD_CC_IS_CLANG
7315 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7316 $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev/null 2>&1
7318 ax_cv_PTHREAD_CLANG=yes
7325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
7326 printf "%s\n" "$ax_cv_PTHREAD_CLANG" >&6; }
7327 ax_pthread_clang="$ax_cv_PTHREAD_CLANG"
7330 # GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
7332 # Note that for GCC and Clang -pthread generally implies -lpthread,
7333 # except when -nostdlib is passed.
7334 # This is problematic using libtool to build C++ shared libraries with pthread:
7335 # [1] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=25460
7336 # [2] https://bugzilla.redhat.com/show_bug.cgi?id=661333
7337 # [3] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=468555
7338 # To solve this, first try -pthread together with -lpthread for GCC
7340 if test "x$GCC" = "xyes"
7342 ax_pthread_flags="-pthread,-lpthread -pthread -pthreads $ax_pthread_flags"
7345 # Clang takes -pthread (never supported any other flag), but we'll try with -lpthread first
7347 if test "x$ax_pthread_clang" = "xyes"
7349 ax_pthread_flags="-pthread,-lpthread -pthread"
7353 # The presence of a feature test macro requesting re-entrant function
7354 # definitions is, on some systems, a strong hint that pthreads support is
7358 darwin* | hpux* | linux* | osf* | solaris*)
7359 ax_pthread_check_macro="_REENTRANT"
7363 ax_pthread_check_macro="_THREAD_SAFE"
7367 ax_pthread_check_macro="--"
7370 if test "x$ax_pthread_check_macro" = "x--"
7372 ax_pthread_check_cond=0
7374 ax_pthread_check_cond="!defined($ax_pthread_check_macro)"
7378 if test "x$ax_pthread_ok" = "xno"; then
7379 for ax_pthread_try_flag in $ax_pthread_flags; do
7381 case $ax_pthread_try_flag in
7383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
7384 printf %s "checking whether pthreads work without any flags... " >&6; }
7388 PTHREAD_CFLAGS=`echo $ax_pthread_try_flag | sed "s/^\(.*\),\(.*\)$/\1/"`
7389 PTHREAD_LIBS=`echo $ax_pthread_try_flag | sed "s/^\(.*\),\(.*\)$/\2/"`
7390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with \"$PTHREAD_CFLAGS\" and \"$PTHREAD_LIBS\"" >&5
7391 printf %s "checking whether pthreads work with \"$PTHREAD_CFLAGS\" and \"$PTHREAD_LIBS\"... " >&6; }
7395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
7396 printf %s "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
7397 PTHREAD_CFLAGS="$ax_pthread_try_flag"
7401 # Extract the first word of "pthread-config", so it can be a program name with args.
7402 set dummy pthread-config; ac_word=$2
7403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7404 printf %s "checking for $ac_word... " >&6; }
7405 if test ${ac_cv_prog_ax_pthread_config+y}
7407 printf %s "(cached) " >&6
7409 if test -n "$ax_pthread_config"; then
7410 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
7412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7416 case $as_dir in #(((
7419 *) as_dir=$as_dir/ ;;
7421 for ac_exec_ext in '' $ac_executable_extensions; do
7422 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7423 ac_cv_prog_ax_pthread_config="yes"
7424 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7431 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
7434 ax_pthread_config=$ac_cv_prog_ax_pthread_config
7435 if test -n "$ax_pthread_config"; then
7436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
7437 printf "%s\n" "$ax_pthread_config" >&6; }
7439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7440 printf "%s\n" "no" >&6; }
7444 if test "x$ax_pthread_config" = "xno"
7448 PTHREAD_CFLAGS="`pthread-config --cflags`"
7449 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
7453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
7454 printf %s "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
7455 PTHREAD_LIBS="-l$ax_pthread_try_flag"
7459 ax_pthread_save_CFLAGS="$CFLAGS"
7460 ax_pthread_save_LIBS="$LIBS"
7461 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
7462 LIBS="$PTHREAD_LIBS $LIBS"
7464 # Check for various functions. We must include pthread.h,
7465 # since some functions may be macros. (On the Sequent, we
7466 # need a special flag -Kthread to make this header compile.)
7467 # We check for pthread_join because it is in -lpthread on IRIX
7468 # while pthread_create is in libc. We check for pthread_attr_init
7469 # due to DEC craziness with -lpthreads. We check for
7470 # pthread_cleanup_push because it is one of the few pthread
7471 # functions on Solaris that doesn't have a non-functional libc stub.
7472 # We try pthread_create on general principles.
7474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7475 /* end confdefs.h. */
7476 #include <pthread.h>
7477 # if $ax_pthread_check_cond
7478 # error "$ax_pthread_check_macro must be defined"
7480 static void *some_global = NULL;
7481 static void routine(void *a)
7483 /* To avoid any unused-parameter or
7484 unused-but-set-parameter warning. */
7487 static void *start_routine(void *a) { return a; }
7491 pthread_t th; pthread_attr_t attr;
7492 pthread_create(&th, 0, start_routine, 0);
7493 pthread_join(th, 0);
7494 pthread_attr_init(&attr);
7495 pthread_cleanup_push(routine, 0);
7496 pthread_cleanup_pop(0) /* ; */
7501 if ac_fn_c_try_link "$LINENO"
7505 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7506 conftest$ac_exeext conftest.$ac_ext
7508 CFLAGS="$ax_pthread_save_CFLAGS"
7509 LIBS="$ax_pthread_save_LIBS"
7511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
7512 printf "%s\n" "$ax_pthread_ok" >&6; }
7513 if test "x$ax_pthread_ok" = "xyes"
7524 # Clang needs special handling, because older versions handle the -pthread
7525 # option in a rather... idiosyncratic way
7527 if test "x$ax_pthread_clang" = "xyes"; then
7529 # Clang takes -pthread; it has never supported any other flag
7531 # (Note 1: This will need to be revisited if a system that Clang
7532 # supports has POSIX threads in a separate library. This tends not
7533 # to be the way of modern systems, but it's conceivable.)
7535 # (Note 2: On some systems, notably Darwin, -pthread is not needed
7536 # to get POSIX threads support; the API is always present and
7537 # active. We could reasonably leave PTHREAD_CFLAGS empty. But
7538 # -pthread does define _REENTRANT, and while the Darwin headers
7539 # ignore this macro, third-party headers might not.)
7541 # However, older versions of Clang make a point of warning the user
7542 # that, in an invocation where only linking and no compilation is
7543 # taking place, the -pthread option has no effect ("argument unused
7544 # during compilation"). They expect -pthread to be passed in only
7545 # when source code is being compiled.
7547 # Problem is, this is at odds with the way Automake and most other
7548 # C build frameworks function, which is that the same flags used in
7549 # compilation (CFLAGS) are also used in linking. Many systems
7550 # supported by AX_PTHREAD require exactly this for POSIX threads
7551 # support, and in fact it is often not straightforward to specify a
7552 # flag that is used only in the compilation phase and not in
7553 # linking. Such a scenario is extremely rare in practice.
7555 # Even though use of the -pthread flag in linking would only print
7556 # a warning, this can be a nuisance for well-run software projects
7557 # that build with -Werror. So if the active version of Clang has
7558 # this misfeature, we search for an option to squash it.
7560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
7561 printf %s "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
7562 if test ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+y}
7564 printf %s "(cached) " >&6
7566 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG=unknown
7567 # Create an alternate version of $ac_link that compiles and
7568 # links in two steps (.c -> .o, .o -> exe) instead of one
7569 # (.c -> exe), because the warning occurs only in the second
7571 ax_pthread_save_ac_link="$ac_link"
7572 ax_pthread_sed='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
7573 ax_pthread_link_step=`printf "%s\n" "$ac_link" | sed "$ax_pthread_sed"`
7574 ax_pthread_2step_ac_link="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
7575 ax_pthread_save_CFLAGS="$CFLAGS"
7576 for ax_pthread_try in '' -Qunused-arguments -Wno-unused-command-line-argument unknown; do
7577 if test "x$ax_pthread_try" = "xunknown"
7581 CFLAGS="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
7582 ac_link="$ax_pthread_save_ac_link"
7583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7584 /* end confdefs.h. */
7585 int main(void){return 0;}
7587 if ac_fn_c_try_link "$LINENO"
7589 ac_link="$ax_pthread_2step_ac_link"
7590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7591 /* end confdefs.h. */
7592 int main(void){return 0;}
7594 if ac_fn_c_try_link "$LINENO"
7598 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7599 conftest$ac_exeext conftest.$ac_ext
7602 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7603 conftest$ac_exeext conftest.$ac_ext
7605 ac_link="$ax_pthread_save_ac_link"
7606 CFLAGS="$ax_pthread_save_CFLAGS"
7607 if test "x$ax_pthread_try" = "x"
7611 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG="$ax_pthread_try"
7614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
7615 printf "%s\n" "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
7617 case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
7619 *) PTHREAD_CFLAGS="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
7622 fi # $ax_pthread_clang = yes
7626 # Various other checks:
7627 if test "x$ax_pthread_ok" = "xyes"; then
7628 ax_pthread_save_CFLAGS="$CFLAGS"
7629 ax_pthread_save_LIBS="$LIBS"
7630 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
7631 LIBS="$PTHREAD_LIBS $LIBS"
7633 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
7634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
7635 printf %s "checking for joinable pthread attribute... " >&6; }
7636 if test ${ax_cv_PTHREAD_JOINABLE_ATTR+y}
7638 printf %s "(cached) " >&6
7640 ax_cv_PTHREAD_JOINABLE_ATTR=unknown
7641 for ax_pthread_attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
7642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7643 /* end confdefs.h. */
7644 #include <pthread.h>
7648 int attr = $ax_pthread_attr; return attr /* ; */
7653 if ac_fn_c_try_link "$LINENO"
7655 ax_cv_PTHREAD_JOINABLE_ATTR=$ax_pthread_attr; break
7657 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7658 conftest$ac_exeext conftest.$ac_ext
7662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
7663 printf "%s\n" "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
7664 if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
7665 test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
7666 test "x$ax_pthread_joinable_attr_defined" != "xyes"
7669 printf "%s\n" "#define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR" >>confdefs.h
7671 ax_pthread_joinable_attr_defined=yes
7675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
7676 printf %s "checking whether more special flags are required for pthreads... " >&6; }
7677 if test ${ax_cv_PTHREAD_SPECIAL_FLAGS+y}
7679 printf %s "(cached) " >&6
7681 ax_cv_PTHREAD_SPECIAL_FLAGS=no
7684 ax_cv_PTHREAD_SPECIAL_FLAGS="-D_POSIX_PTHREAD_SEMANTICS"
7689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
7690 printf "%s\n" "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
7691 if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
7692 test "x$ax_pthread_special_flags_added" != "xyes"
7694 PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
7695 ax_pthread_special_flags_added=yes
7698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
7699 printf %s "checking for PTHREAD_PRIO_INHERIT... " >&6; }
7700 if test ${ax_cv_PTHREAD_PRIO_INHERIT+y}
7702 printf %s "(cached) " >&6
7704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7705 /* end confdefs.h. */
7706 #include <pthread.h>
7710 int i = PTHREAD_PRIO_INHERIT;
7716 if ac_fn_c_try_link "$LINENO"
7718 ax_cv_PTHREAD_PRIO_INHERIT=yes
7720 ax_cv_PTHREAD_PRIO_INHERIT=no
7722 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7723 conftest$ac_exeext conftest.$ac_ext
7726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
7727 printf "%s\n" "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
7728 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
7729 test "x$ax_pthread_prio_inherit_defined" != "xyes"
7732 printf "%s\n" "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
7734 ax_pthread_prio_inherit_defined=yes
7738 CFLAGS="$ax_pthread_save_CFLAGS"
7739 LIBS="$ax_pthread_save_LIBS"
7741 # More AIX lossage: compile with *_r variant
7742 if test "x$GCC" != "xyes"; then
7746 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
7747 #handle absolute path differently from PATH based program lookup
7751 if as_fn_executable_p ${CC}_r
7753 PTHREAD_CC="${CC}_r"
7755 if test "x${CXX}" != "x"
7757 if as_fn_executable_p ${CXX}_r
7759 PTHREAD_CXX="${CXX}_r"
7765 for ac_prog in ${CC}_r
7767 # Extract the first word of "$ac_prog", so it can be a program name with args.
7768 set dummy $ac_prog; ac_word=$2
7769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7770 printf %s "checking for $ac_word... " >&6; }
7771 if test ${ac_cv_prog_PTHREAD_CC+y}
7773 printf %s "(cached) " >&6
7775 if test -n "$PTHREAD_CC"; then
7776 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
7778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7782 case $as_dir in #(((
7785 *) as_dir=$as_dir/ ;;
7787 for ac_exec_ext in '' $ac_executable_extensions; do
7788 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7789 ac_cv_prog_PTHREAD_CC="$ac_prog"
7790 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7799 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
7800 if test -n "$PTHREAD_CC"; then
7801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
7802 printf "%s\n" "$PTHREAD_CC" >&6; }
7804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7805 printf "%s\n" "no" >&6; }
7809 test -n "$PTHREAD_CC" && break
7811 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
7813 if test "x${CXX}" != "x"
7815 for ac_prog in ${CXX}_r
7817 # Extract the first word of "$ac_prog", so it can be a program name with args.
7818 set dummy $ac_prog; ac_word=$2
7819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7820 printf %s "checking for $ac_word... " >&6; }
7821 if test ${ac_cv_prog_PTHREAD_CXX+y}
7823 printf %s "(cached) " >&6
7825 if test -n "$PTHREAD_CXX"; then
7826 ac_cv_prog_PTHREAD_CXX="$PTHREAD_CXX" # Let the user override the test.
7828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7832 case $as_dir in #(((
7835 *) as_dir=$as_dir/ ;;
7837 for ac_exec_ext in '' $ac_executable_extensions; do
7838 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7839 ac_cv_prog_PTHREAD_CXX="$ac_prog"
7840 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7849 PTHREAD_CXX=$ac_cv_prog_PTHREAD_CXX
7850 if test -n "$PTHREAD_CXX"; then
7851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CXX" >&5
7852 printf "%s\n" "$PTHREAD_CXX" >&6; }
7854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7855 printf "%s\n" "no" >&6; }
7859 test -n "$PTHREAD_CXX" && break
7861 test -n "$PTHREAD_CXX" || PTHREAD_CXX="$CXX"
7876 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
7877 test -n "$PTHREAD_CXX" || PTHREAD_CXX="$CXX"
7884 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
7885 if test "x$ax_pthread_ok" = "xyes"; then
7887 printf "%s\n" "#define HAVE_PTHREAD 1" >>confdefs.h
7895 ac_cpp='$CPP $CPPFLAGS'
7896 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7897 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7898 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7902 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
7906 # Check whether --enable-uuidd was given.
7907 if test ${enable_uuidd+y}
7909 enableval=$enable_uuidd; if test "$enableval" = "no"
7911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Not building uuidd" >&5
7912 printf "%s\n" "Not building uuidd" >&6; }
7915 printf "%s\n" "#define USE_UUIDD 1" >>confdefs.h
7918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Building uuidd" >&5
7919 printf "%s\n" "Building uuidd" >&6; }
7923 printf "%s\n" "#define USE_UUIDD 1" >>confdefs.h
7925 if test -z "$UUID_CMT"
7928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Building uuidd by default" >&5
7929 printf "%s\n" "Building uuidd by default" >&6; }
7932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling uuidd by default" >&5
7933 printf "%s\n" "Disabling uuidd by default" >&6; }
7940 # Check whether --enable-mmp was given.
7941 if test ${enable_mmp+y}
7943 enableval=$enable_mmp; if test "$enableval" = "no"
7945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling mmp support" >&5
7946 printf "%s\n" "Disabling mmp support" >&6; }
7948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support" >&5
7949 printf "%s\n" "Enabling mmp support" >&6; }
7950 printf "%s\n" "#define CONFIG_MMP 1" >>confdefs.h
7955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support by default" >&5
7956 printf "%s\n" "Enabling mmp support by default" >&6; }
7957 printf "%s\n" "#define CONFIG_MMP 1" >>confdefs.h
7963 # Check whether --enable-tdb was given.
7964 if test ${enable_tdb+y}
7966 enableval=$enable_tdb;
7967 if test "$enableval" = "no"
7969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling tdb support" >&5
7970 printf "%s\n" "Disabling tdb support" >&6; }
7973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling tdb support" >&5
7974 printf "%s\n" "Enabling tdb support" >&6; }
7983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling tdb support by default" >&5
7984 printf "%s\n" "Disabling tdb support by default" >&6; }
7988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling tdb support by default" >&5
7989 printf "%s\n" "Enabling tdb support by default" >&6; }
7997 if test "$CONFIG_TDB" = "1"
7999 printf "%s\n" "#define CONFIG_TDB 1" >>confdefs.h
8005 TDB_MAN_COMMENT='.\"'
8010 # Check whether --enable-bmap-stats was given.
8011 if test ${enable_bmap_stats+y}
8013 enableval=$enable_bmap_stats; if test "$enableval" = "no"
8015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling bitmap statistics support" >&5
8016 printf "%s\n" "Disabling bitmap statistics support" >&6; }
8018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling bitmap statistics support" >&5
8019 printf "%s\n" "Enabling bitmap statistics support" >&6; }
8020 printf "%s\n" "#define ENABLE_BMAP_STATS 1" >>confdefs.h
8025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling bitmap statistics support by default" >&5
8026 printf "%s\n" "Enabling bitmap statistics support by default" >&6; }
8027 printf "%s\n" "#define ENABLE_BMAP_STATS 1" >>confdefs.h
8033 # Check whether --enable-bmap-stats-ops was given.
8034 if test ${enable_bmap_stats_ops+y}
8036 enableval=$enable_bmap_stats_ops; if test "$enableval" = "no"
8038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling additional bitmap statistics" >&5
8039 printf "%s\n" "Disabling additional bitmap statistics" >&6; }
8041 if test "x${enable_bmap_stats}" = "xno"
8043 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8044 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
8045 as_fn_error $? "Error --enable-bmap-stats-ops requires bmap-stats
8046 See \`config.log' for more details" "$LINENO" 5; }
8049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling additional bitmap statistics" >&5
8050 printf "%s\n" "Enabling additional bitmap statistics" >&6; }
8051 printf "%s\n" "#define ENABLE_BMAP_STATS_OPS 1" >>confdefs.h
8056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling additional bitmap statistics by default" >&5
8057 printf "%s\n" "Disabling additional bitmap statistics by default" >&6; }
8061 MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
8063 GETTEXT_PACKAGE=e2fsprogs
8065 VERSION="$E2FSPROGS_VERSION"
8068 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
8071 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
8077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8078 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
8080 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8081 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
8083 printf %s "(cached) " >&6
8085 cat >conftest.make <<\_ACEOF
8088 @echo '@@@%%%=$(MAKE)=@@@%%%'
8090 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
8091 case `${MAKE-make} -f conftest.make 2>/dev/null` in
8093 eval ac_cv_prog_make_${ac_make}_set=yes;;
8095 eval ac_cv_prog_make_${ac_make}_set=no;;
8099 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8101 printf "%s\n" "yes" >&6; }
8104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8105 printf "%s\n" "no" >&6; }
8106 SET_MAKE="MAKE=${MAKE-make}"
8110 # Find a good install program. We prefer a C program (faster),
8111 # so one script is as good as another. But avoid the broken or
8112 # incompatible versions:
8113 # SysV /etc/install, /usr/sbin/install
8114 # SunOS /usr/etc/install
8115 # IRIX /sbin/install
8117 # AmigaOS /C/install, which installs bootblocks on floppy discs
8118 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8119 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8120 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8121 # OS/2's system install, which has a completely different semantic
8122 # ./install, which can be erroneously created by make from ./install.sh.
8123 # Reject install programs that cannot install multiple files.
8124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
8125 printf %s "checking for a BSD-compatible install... " >&6; }
8126 if test -z "$INSTALL"; then
8127 if test ${ac_cv_path_install+y}
8129 printf %s "(cached) " >&6
8131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8135 case $as_dir in #(((
8138 *) as_dir=$as_dir/ ;;
8140 # Account for fact that we put trailing slashes in our PATH walk.
8143 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
8144 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
8147 # OSF1 and SCO ODT 3.0 have their own names for install.
8148 # Don't use installbsd from OSF since it installs stuff as root
8150 for ac_prog in ginstall scoinst install; do
8151 for ac_exec_ext in '' $ac_executable_extensions; do
8152 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
8153 if test $ac_prog = install &&
8154 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8155 # AIX install. It has an incompatible calling convention.
8157 elif test $ac_prog = install &&
8158 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8159 # program-specific install script used by HP pwplus--don't use.
8162 rm -rf conftest.one conftest.two conftest.dir
8163 echo one > conftest.one
8164 echo two > conftest.two
8166 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
8167 test -s conftest.one && test -s conftest.two &&
8168 test -s conftest.dir/conftest.one &&
8169 test -s conftest.dir/conftest.two
8171 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
8184 rm -rf conftest.one conftest.two conftest.dir
8187 if test ${ac_cv_path_install+y}; then
8188 INSTALL=$ac_cv_path_install
8190 # As a last resort, use the slow shell script. Don't cache a
8191 # value for INSTALL within a source directory, because that will
8192 # break other packages using the cache if that directory is
8193 # removed, or if the value is a relative name.
8194 INSTALL=$ac_install_sh
8197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
8198 printf "%s\n" "$INSTALL" >&6; }
8200 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8201 # It thinks the first close brace ends the variable substitution.
8202 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8204 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
8206 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
8210 printf %s "checking for a race-free mkdir -p... " >&6; }
8211 if test -z "$MKDIR_P"; then
8212 if test ${ac_cv_path_mkdir+y}
8214 printf %s "(cached) " >&6
8216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8217 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
8220 case $as_dir in #(((
8223 *) as_dir=$as_dir/ ;;
8225 for ac_prog in mkdir gmkdir; do
8226 for ac_exec_ext in '' $ac_executable_extensions; do
8227 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
8228 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
8229 'mkdir ('*'coreutils) '* | \
8231 'mkdir (fileutils) '4.1*)
8232 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
8242 test -d ./--version && rmdir ./--version
8243 if test ${ac_cv_path_mkdir+y}; then
8244 MKDIR_P="$ac_cv_path_mkdir -p"
8246 # As a last resort, use the slow shell script. Don't cache a
8247 # value for MKDIR_P within a source directory, because that will
8248 # break other packages using the cache if that directory is
8249 # removed, or if the value is a relative name.
8250 MKDIR_P="$ac_install_sh -d"
8253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
8254 printf "%s\n" "$MKDIR_P" >&6; }
8257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
8258 printf %s "checking whether NLS is requested... " >&6; }
8259 # Check whether --enable-nls was given.
8260 if test ${enable_nls+y}
8262 enableval=$enable_nls; USE_NLS=$enableval
8267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
8268 printf "%s\n" "$USE_NLS" >&6; }
8273 GETTEXT_MACRO_VERSION=0.20
8278 # Prepare PATH_SEPARATOR.
8279 # The user is always right.
8280 if test "${PATH_SEPARATOR+set}" != set; then
8281 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
8282 # contains only /bin. Note that ksh looks also at the FPATH variable,
8283 # so we have to set that as well for the test.
8285 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
8286 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
8287 || PATH_SEPARATOR=';'
8291 # Find out how to test for executable files. Don't use a zero-byte file,
8292 # as systems may use methods other than mode bits to determine executability.
8293 cat >conf$$.file <<_ASEOF
8297 chmod +x conf$$.file
8298 if test -x conf$$.file >/dev/null 2>&1; then
8299 ac_executable_p="test -x"
8301 ac_executable_p="test -f"
8305 # Extract the first word of "msgfmt", so it can be a program name with args.
8306 set dummy msgfmt; ac_word=$2
8307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8308 printf %s "checking for $ac_word... " >&6; }
8309 if test ${ac_cv_path_MSGFMT+y}
8311 printf %s "(cached) " >&6
8315 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
8318 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
8319 for ac_dir in $PATH; do
8321 test -z "$ac_dir" && ac_dir=.
8322 for ac_exec_ext in '' $ac_executable_extensions; do
8323 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
8324 echo "$as_me: trying $ac_dir/$ac_word..." >&5
8325 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
8326 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
8327 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
8334 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
8338 MSGFMT="$ac_cv_path_MSGFMT"
8339 if test "$MSGFMT" != ":"; then
8340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
8341 printf "%s\n" "$MSGFMT" >&6; }
8343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8344 printf "%s\n" "no" >&6; }
8347 # Extract the first word of "gmsgfmt", so it can be a program name with args.
8348 set dummy gmsgfmt; ac_word=$2
8349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8350 printf %s "checking for $ac_word... " >&6; }
8351 if test ${ac_cv_path_GMSGFMT+y}
8353 printf %s "(cached) " >&6
8357 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
8360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8364 case $as_dir in #(((
8367 *) as_dir=$as_dir/ ;;
8369 for ac_exec_ext in '' $ac_executable_extensions; do
8370 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8371 ac_cv_path_GMSGFMT="$as_dir$ac_word$ac_exec_ext"
8372 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8379 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
8383 GMSGFMT=$ac_cv_path_GMSGFMT
8384 if test -n "$GMSGFMT"; then
8385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
8386 printf "%s\n" "$GMSGFMT" >&6; }
8388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8389 printf "%s\n" "no" >&6; }
8394 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
8395 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
8396 *) GMSGFMT_015=$GMSGFMT ;;
8401 # Prepare PATH_SEPARATOR.
8402 # The user is always right.
8403 if test "${PATH_SEPARATOR+set}" != set; then
8404 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
8405 # contains only /bin. Note that ksh looks also at the FPATH variable,
8406 # so we have to set that as well for the test.
8408 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
8409 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
8410 || PATH_SEPARATOR=';'
8414 # Find out how to test for executable files. Don't use a zero-byte file,
8415 # as systems may use methods other than mode bits to determine executability.
8416 cat >conf$$.file <<_ASEOF
8420 chmod +x conf$$.file
8421 if test -x conf$$.file >/dev/null 2>&1; then
8422 ac_executable_p="test -x"
8424 ac_executable_p="test -f"
8428 # Extract the first word of "xgettext", so it can be a program name with args.
8429 set dummy xgettext; ac_word=$2
8430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8431 printf %s "checking for $ac_word... " >&6; }
8432 if test ${ac_cv_path_XGETTEXT+y}
8434 printf %s "(cached) " >&6
8438 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
8441 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
8442 for ac_dir in $PATH; do
8444 test -z "$ac_dir" && ac_dir=.
8445 for ac_exec_ext in '' $ac_executable_extensions; do
8446 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
8447 echo "$as_me: trying $ac_dir/$ac_word..." >&5
8448 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
8449 (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
8450 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
8457 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
8461 XGETTEXT="$ac_cv_path_XGETTEXT"
8462 if test "$XGETTEXT" != ":"; then
8463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
8464 printf "%s\n" "$XGETTEXT" >&6; }
8466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8467 printf "%s\n" "no" >&6; }
8472 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
8473 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
8474 *) XGETTEXT_015=$XGETTEXT ;;
8479 # Prepare PATH_SEPARATOR.
8480 # The user is always right.
8481 if test "${PATH_SEPARATOR+set}" != set; then
8482 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
8483 # contains only /bin. Note that ksh looks also at the FPATH variable,
8484 # so we have to set that as well for the test.
8486 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
8487 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
8488 || PATH_SEPARATOR=';'
8492 # Find out how to test for executable files. Don't use a zero-byte file,
8493 # as systems may use methods other than mode bits to determine executability.
8494 cat >conf$$.file <<_ASEOF
8498 chmod +x conf$$.file
8499 if test -x conf$$.file >/dev/null 2>&1; then
8500 ac_executable_p="test -x"
8502 ac_executable_p="test -f"
8506 # Extract the first word of "msgmerge", so it can be a program name with args.
8507 set dummy msgmerge; ac_word=$2
8508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8509 printf %s "checking for $ac_word... " >&6; }
8510 if test ${ac_cv_path_MSGMERGE+y}
8512 printf %s "(cached) " >&6
8516 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
8519 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
8520 for ac_dir in $PATH; do
8522 test -z "$ac_dir" && ac_dir=.
8523 for ac_exec_ext in '' $ac_executable_extensions; do
8524 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
8525 echo "$as_me: trying $ac_dir/$ac_word..." >&5
8526 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
8527 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
8534 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
8538 MSGMERGE="$ac_cv_path_MSGMERGE"
8539 if test "$MSGMERGE" != ":"; then
8540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
8541 printf "%s\n" "$MSGMERGE" >&6; }
8543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8544 printf "%s\n" "no" >&6; }
8548 if LC_ALL=C $MSGMERGE --help | grep ' --for-msgfmt ' >/dev/null; then
8549 MSGMERGE_FOR_MSGFMT_OPTION='--for-msgfmt'
8551 if LC_ALL=C $MSGMERGE --help | grep ' --no-fuzzy-matching ' >/dev/null; then
8552 MSGMERGE_FOR_MSGFMT_OPTION='--no-fuzzy-matching --no-location --quiet'
8554 MSGMERGE_FOR_MSGFMT_OPTION='--no-location --quiet'
8559 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
8562 ac_config_commands="$ac_config_commands po-directories"
8566 if test "X$prefix" = "XNONE"; then
8567 acl_final_prefix="$ac_default_prefix"
8569 acl_final_prefix="$prefix"
8571 if test "X$exec_prefix" = "XNONE"; then
8572 acl_final_exec_prefix='${prefix}'
8574 acl_final_exec_prefix="$exec_prefix"
8576 acl_save_prefix="$prefix"
8577 prefix="$acl_final_prefix"
8578 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
8579 prefix="$acl_save_prefix"
8583 # Check whether --with-gnu-ld was given.
8584 if test ${with_gnu_ld+y}
8586 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
8591 # Prepare PATH_SEPARATOR.
8592 # The user is always right.
8593 if test "${PATH_SEPARATOR+set}" != set; then
8594 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
8595 # contains only /bin. Note that ksh looks also at the FPATH variable,
8596 # so we have to set that as well for the test.
8598 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
8599 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
8600 || PATH_SEPARATOR=';'
8604 if test -n "$LD"; then
8605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld" >&5
8606 printf %s "checking for ld... " >&6; }
8607 elif test "$GCC" = yes; then
8608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
8609 printf %s "checking for ld used by $CC... " >&6; }
8610 elif test "$with_gnu_ld" = yes; then
8611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8612 printf %s "checking for GNU ld... " >&6; }
8614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
8615 printf %s "checking for non-GNU ld... " >&6; }
8617 if test -n "$LD"; then
8618 # Let the user override the test with a path.
8621 if test ${acl_cv_path_LD+y}
8623 printf %s "(cached) " >&6
8626 acl_cv_path_LD= # Final result of this test
8627 ac_prog=ld # Program to search in $PATH
8628 if test "$GCC" = yes; then
8629 # Check if gcc -print-prog-name=ld gives a path.
8632 # gcc leaves a trailing carriage return which upsets mingw
8633 acl_output=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8635 acl_output=`($CC -print-prog-name=ld) 2>&5` ;;
8638 # Accept absolute paths.
8640 re_direlt='/[^/][^/]*/\.\./'
8641 # Canonicalize the pathname of ld
8642 acl_output=`echo "$acl_output" | sed 's%\\\\%/%g'`
8643 while echo "$acl_output" | grep "$re_direlt" > /dev/null 2>&1; do
8644 acl_output=`echo $acl_output | sed "s%$re_direlt%/%"`
8646 # Got the pathname. No search in PATH is needed.
8647 acl_cv_path_LD="$acl_output"
8651 # If it fails, then pretend we aren't using GCC.
8654 # If it is relative, then search for the first ld in PATH.
8659 if test -n "$ac_prog"; then
8660 # Search for $ac_prog in $PATH.
8661 acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8662 for ac_dir in $PATH; do
8664 test -z "$ac_dir" && ac_dir=.
8665 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8666 acl_cv_path_LD="$ac_dir/$ac_prog"
8667 # Check to see if the program is GNU ld. I'd rather use --version,
8668 # but apparently some variants of GNU ld only accept -v.
8669 # Break only if it was the GNU/non-GNU ld that we prefer.
8670 case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
8671 *GNU* | *'with BFD'*)
8672 test "$with_gnu_ld" != no && break
8675 test "$with_gnu_ld" != yes && break
8684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8685 /* end confdefs.h. */
8686 #if defined __powerpc64__ || defined _ARCH_PPC64
8693 if ac_fn_c_try_compile "$LINENO"
8695 # The compiler produces 64-bit code. Add option '-b64' so that the
8696 # linker groks 64-bit object files.
8697 case "$acl_cv_path_LD " in
8699 *) acl_cv_path_LD="$acl_cv_path_LD -b64" ;;
8703 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8707 /* end confdefs.h. */
8708 #if defined __sparcv9 || defined __arch64__
8715 if ac_fn_c_try_compile "$LINENO"
8719 # The compiler produces 32-bit code. Add option '-m elf32_sparc'
8720 # so that the linker groks 32-bit object files.
8721 case "$acl_cv_path_LD " in
8722 *" -m elf32_sparc "*) ;;
8723 *) acl_cv_path_LD="$acl_cv_path_LD -m elf32_sparc" ;;
8727 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8733 LD="$acl_cv_path_LD"
8735 if test -n "$LD"; then
8736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8737 printf "%s\n" "$LD" >&6; }
8739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8740 printf "%s\n" "no" >&6; }
8741 as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
8743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
8744 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
8745 if test ${acl_cv_prog_gnu_ld+y}
8747 printf %s "(cached) " >&6
8749 # I'd rather use --version here, but apparently some GNU lds only accept -v.
8750 case `$LD -v 2>&1 </dev/null` in
8751 *GNU* | *'with BFD'*)
8752 acl_cv_prog_gnu_ld=yes
8755 acl_cv_prog_gnu_ld=no
8759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
8760 printf "%s\n" "$acl_cv_prog_gnu_ld" >&6; }
8761 with_gnu_ld=$acl_cv_prog_gnu_ld
8768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
8769 printf %s "checking for shared library run path origin... " >&6; }
8770 if test ${acl_cv_rpath+y}
8772 printf %s "(cached) " >&6
8775 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
8776 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
8782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
8783 printf "%s\n" "$acl_cv_rpath" >&6; }
8785 acl_libext="$acl_cv_libext"
8786 acl_shlibext="$acl_cv_shlibext"
8787 acl_libname_spec="$acl_cv_libname_spec"
8788 acl_library_names_spec="$acl_cv_library_names_spec"
8789 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
8790 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
8791 acl_hardcode_direct="$acl_cv_hardcode_direct"
8792 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
8793 # Check whether --enable-rpath was given.
8794 if test ${enable_rpath+y}
8796 enableval=$enable_rpath; :
8804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking 32-bit host C ABI" >&5
8805 printf %s "checking 32-bit host C ABI... " >&6; }
8806 if test ${gl_cv_host_cpu_c_abi_32bit+y}
8808 printf %s "(cached) " >&6
8810 if test -n "$gl_cv_host_cpu_c_abi"; then
8811 case "$gl_cv_host_cpu_c_abi" in
8812 i386 | x86_64-x32 | arm | armhf | arm64-ilp32 | hppa | ia64-ilp32 | mips | mipsn32 | powerpc | riscv*-ilp32* | s390 | sparc)
8813 gl_cv_host_cpu_c_abi_32bit=yes ;;
8814 x86_64 | alpha | arm64 | hppa64 | ia64 | mips64 | powerpc64 | powerpc64-elfv2 | riscv*-lp64* | s390x | sparc64 )
8815 gl_cv_host_cpu_c_abi_32bit=no ;;
8817 gl_cv_host_cpu_c_abi_32bit=unknown ;;
8822 # CPUs that only support a 32-bit ABI.
8831 | microblaze | microblazeel \
8832 | nds32 | nds32le | nds32be \
8833 | nios2 | nios2eb | nios2el \
8836 | sh | sh1234 | sh1234elb \
8839 gl_cv_host_cpu_c_abi_32bit=yes
8842 # CPUs that only support a 64-bit ABI.
8843 alpha | alphaev[4-8] | alphaev56 | alphapca5[67] | alphaev6[78] \
8845 gl_cv_host_cpu_c_abi_32bit=no
8849 gl_cv_host_cpu_c_abi_32bit=yes
8853 # On x86_64 systems, the C compiler may be generating code in one of
8855 # - 64-bit instruction set, 64-bit pointers, 64-bit 'long': x86_64.
8856 # - 64-bit instruction set, 64-bit pointers, 32-bit 'long': x86_64
8857 # with native Windows (mingw, MSVC).
8858 # - 64-bit instruction set, 32-bit pointers, 32-bit 'long': x86_64-x32.
8859 # - 32-bit instruction set, 32-bit pointers, 32-bit 'long': i386.
8860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8861 /* end confdefs.h. */
8862 #if (defined __x86_64__ || defined __amd64__ \
8863 || defined _M_X64 || defined _M_AMD64) \
8864 && !(defined __ILP32__ || defined _ILP32)
8871 if ac_fn_c_try_compile "$LINENO"
8873 gl_cv_host_cpu_c_abi_32bit=no
8875 gl_cv_host_cpu_c_abi_32bit=yes
8877 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8881 # Assume arm with EABI.
8882 # On arm64 systems, the C compiler may be generating code in one of
8884 # - aarch64 instruction set, 64-bit pointers, 64-bit 'long': arm64.
8885 # - aarch64 instruction set, 32-bit pointers, 32-bit 'long': arm64-ilp32.
8886 # - 32-bit instruction set, 32-bit pointers, 32-bit 'long': arm or armhf.
8887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8888 /* end confdefs.h. */
8889 #if defined __aarch64__ && !(defined __ILP32__ || defined _ILP32)
8896 if ac_fn_c_try_compile "$LINENO"
8898 gl_cv_host_cpu_c_abi_32bit=no
8900 gl_cv_host_cpu_c_abi_32bit=yes
8902 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8905 hppa1.0 | hppa1.1 | hppa2.0* | hppa64 )
8906 # On hppa, the C compiler may be generating 32-bit code or 64-bit
8907 # code. In the latter case, it defines _LP64 and __LP64__.
8908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8909 /* end confdefs.h. */
8917 if ac_fn_c_try_compile "$LINENO"
8919 gl_cv_host_cpu_c_abi_32bit=no
8921 gl_cv_host_cpu_c_abi_32bit=yes
8923 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8927 # On ia64 on HP-UX, the C compiler may be generating 64-bit code or
8928 # 32-bit code. In the latter case, it defines _ILP32.
8929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8930 /* end confdefs.h. */
8938 if ac_fn_c_try_compile "$LINENO"
8940 gl_cv_host_cpu_c_abi_32bit=yes
8942 gl_cv_host_cpu_c_abi_32bit=no
8944 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8948 # We should also check for (_MIPS_SZPTR == 64), but gcc keeps this
8950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8951 /* end confdefs.h. */
8952 #if defined _MIPS_SZLONG && (_MIPS_SZLONG == 64)
8959 if ac_fn_c_try_compile "$LINENO"
8961 gl_cv_host_cpu_c_abi_32bit=no
8963 gl_cv_host_cpu_c_abi_32bit=yes
8965 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8969 # Different ABIs are in use on AIX vs. Mac OS X vs. Linux,*BSD.
8970 # No need to distinguish them here; the caller may distinguish
8971 # them based on the OS.
8972 # On powerpc64 systems, the C compiler may still be generating
8973 # 32-bit code. And on powerpc-ibm-aix systems, the C compiler may
8974 # be generating 64-bit code.
8975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8976 /* end confdefs.h. */
8977 #if defined __powerpc64__ || defined _ARCH_PPC64
8984 if ac_fn_c_try_compile "$LINENO"
8986 gl_cv_host_cpu_c_abi_32bit=no
8988 gl_cv_host_cpu_c_abi_32bit=yes
8990 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8994 gl_cv_host_cpu_c_abi_32bit=yes
8998 # There are 6 ABIs: ilp32, ilp32f, ilp32d, lp64, lp64f, lp64d.
8999 # Size of 'long' and 'void *':
9000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9001 /* end confdefs.h. */
9002 #if defined __LP64__
9009 if ac_fn_c_try_compile "$LINENO"
9011 gl_cv_host_cpu_c_abi_32bit=no
9013 gl_cv_host_cpu_c_abi_32bit=yes
9015 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9019 # On s390x, the C compiler may be generating 64-bit (= s390x) code
9020 # or 31-bit (= s390) code.
9021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9022 /* end confdefs.h. */
9023 #if defined __LP64__ || defined __s390x__
9030 if ac_fn_c_try_compile "$LINENO"
9032 gl_cv_host_cpu_c_abi_32bit=no
9034 gl_cv_host_cpu_c_abi_32bit=yes
9036 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9040 # UltraSPARCs running Linux have `uname -m` = "sparc64", but the
9041 # C compiler still generates 32-bit code.
9042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9043 /* end confdefs.h. */
9044 #if defined __sparcv9 || defined __arch64__
9051 if ac_fn_c_try_compile "$LINENO"
9053 gl_cv_host_cpu_c_abi_32bit=no
9055 gl_cv_host_cpu_c_abi_32bit=yes
9057 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9061 gl_cv_host_cpu_c_abi_32bit=unknown
9067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_host_cpu_c_abi_32bit" >&5
9068 printf "%s\n" "$gl_cv_host_cpu_c_abi_32bit" >&6; }
9070 HOST_CPU_C_ABI_32BIT="$gl_cv_host_cpu_c_abi_32bit"
9076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ELF binary format" >&5
9077 printf %s "checking for ELF binary format... " >&6; }
9078 if test ${gl_cv_elf+y}
9080 printf %s "(cached) " >&6
9082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9083 /* end confdefs.h. */
9085 Extensible Linking Format
9089 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9090 $EGREP "Extensible Linking Format" >/dev/null 2>&1
9100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_elf" >&5
9101 printf "%s\n" "$gl_cv_elf" >&6; }
9102 if test $gl_cv_elf; then
9103 # Extract the ELF class of a file (5th byte) in decimal.
9104 # Cf. https://en.wikipedia.org/wiki/Executable_and_Linkable_Format#File_header
9105 if od -A x < /dev/null >/dev/null 2>/dev/null; then
9109 od -A n -t d1 -j 4 -N 1
9115 dd bs=1 count=1 skip=4 2>/dev/null | hexdump -e '1/1 "%3d "'
9119 case $HOST_CPU_C_ABI_32BIT in
9122 acl_is_expected_elfclass ()
9124 test "`func_elfclass | sed -e 's/[ ]//g'`" = 1
9129 acl_is_expected_elfclass ()
9131 test "`func_elfclass | sed -e 's/[ ]//g'`" = 2
9136 acl_is_expected_elfclass ()
9143 acl_is_expected_elfclass ()
9149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the common suffixes of directories in the library search path" >&5
9150 printf %s "checking for the common suffixes of directories in the library search path... " >&6; }
9151 if test ${acl_cv_libdirstems+y}
9153 printf %s "(cached) " >&6
9160 if test $HOST_CPU_C_ABI_32BIT = no; then
9161 acl_libdirstem2=lib/64
9163 sparc*) acl_libdirstem3=lib/sparcv9 ;;
9164 i*86 | x86_64) acl_libdirstem3=lib/amd64 ;;
9169 searchpath=`(LC_ALL=C $CC $CPPFLAGS $CFLAGS -print-search-dirs) 2>/dev/null \
9170 | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
9171 if test $HOST_CPU_C_ABI_32BIT != no; then
9172 # 32-bit or unknown ABI.
9173 if test -d /usr/lib32; then
9174 acl_libdirstem2=lib32
9177 if test $HOST_CPU_C_ABI_32BIT != yes; then
9178 # 64-bit or unknown ABI.
9179 if test -d /usr/lib64; then
9180 acl_libdirstem3=lib64
9183 if test -n "$searchpath"; then
9184 acl_save_IFS="${IFS= }"; IFS=":"
9185 for searchdir in $searchpath; do
9186 if test -d "$searchdir"; then
9187 case "$searchdir" in
9188 */lib32/ | */lib32 ) acl_libdirstem2=lib32 ;;
9189 */lib64/ | */lib64 ) acl_libdirstem3=lib64 ;;
9191 # Better ignore directories of this form. They are misleading.
9193 *) searchdir=`cd "$searchdir" && pwd`
9194 case "$searchdir" in
9195 */lib32 ) acl_libdirstem2=lib32 ;;
9196 */lib64 ) acl_libdirstem3=lib64 ;;
9202 if test $HOST_CPU_C_ABI_32BIT = yes; then
9206 if test $HOST_CPU_C_ABI_32BIT = no; then
9213 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
9214 test -n "$acl_libdirstem3" || acl_libdirstem3="$acl_libdirstem"
9215 acl_cv_libdirstems="$acl_libdirstem,$acl_libdirstem2,$acl_libdirstem3"
9218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_libdirstems" >&5
9219 printf "%s\n" "$acl_cv_libdirstems" >&6; }
9220 acl_libdirstem=`echo "$acl_cv_libdirstems" | sed -e 's/,.*//'`
9221 acl_libdirstem2=`echo "$acl_cv_libdirstems" | sed -e 's/^[^,]*,//' -e 's/,.*//'`
9222 acl_libdirstem3=`echo "$acl_cv_libdirstems" | sed -e 's/^[^,]*,[^,]*,//' -e 's/,.*//'`
9236 acl_save_prefix="$prefix"
9237 prefix="$acl_final_prefix"
9238 acl_save_exec_prefix="$exec_prefix"
9239 exec_prefix="$acl_final_exec_prefix"
9241 eval additional_includedir=\"$includedir\"
9242 eval additional_libdir=\"$libdir\"
9243 eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
9244 eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
9246 exec_prefix="$acl_save_exec_prefix"
9247 prefix="$acl_save_prefix"
9250 # Check whether --with-libiconv-prefix was given.
9251 if test ${with_libiconv_prefix+y}
9253 withval=$with_libiconv_prefix;
9254 if test "X$withval" = "Xno"; then
9257 if test "X$withval" = "X"; then
9259 acl_save_prefix="$prefix"
9260 prefix="$acl_final_prefix"
9261 acl_save_exec_prefix="$exec_prefix"
9262 exec_prefix="$acl_final_exec_prefix"
9264 eval additional_includedir=\"$includedir\"
9265 eval additional_libdir=\"$libdir\"
9266 eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
9267 eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
9269 exec_prefix="$acl_save_exec_prefix"
9270 prefix="$acl_save_prefix"
9273 additional_includedir="$withval/include"
9274 additional_libdir="$withval/$acl_libdirstem"
9275 additional_libdir2="$withval/$acl_libdirstem2"
9276 additional_libdir3="$withval/$acl_libdirstem3"
9282 if test "X$additional_libdir2" = "X$additional_libdir"; then
9285 if test "X$additional_libdir3" = "X$additional_libdir"; then
9295 names_already_handled=
9296 names_next_round='iconv '
9297 while test -n "$names_next_round"; do
9298 names_this_round="$names_next_round"
9300 for name in $names_this_round; do
9302 for n in $names_already_handled; do
9303 if test "$n" = "$name"; then
9308 if test -z "$already_handled"; then
9309 names_already_handled="$names_already_handled $name"
9310 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
9311 eval value=\"\$HAVE_LIB$uppername\"
9312 if test -n "$value"; then
9313 if test "$value" = yes; then
9314 eval value=\"\$LIB$uppername\"
9315 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
9316 eval value=\"\$LTLIB$uppername\"
9317 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
9326 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
9327 if test -n "$acl_shlibext"; then
9328 shrext=".$acl_shlibext" # typically: shrext=.so
9332 if test $use_additional = yes; then
9333 for additional_libdir_variable in additional_libdir additional_libdir2 additional_libdir3; do
9334 if test "X$found_dir" = "X"; then
9335 eval dir=\$$additional_libdir_variable
9336 if test -n "$dir"; then
9337 if test -n "$acl_shlibext"; then
9338 if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
9340 found_so="$dir/$libname$shrext"
9342 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
9343 ver=`(cd "$dir" && \
9344 for f in "$libname$shrext".*; do echo "$f"; done \
9345 | sed -e "s,^$libname$shrext\\\\.,," \
9346 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
9347 | sed 1q ) 2>/dev/null`
9348 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
9350 found_so="$dir/$libname$shrext.$ver"
9353 eval library_names=\"$acl_library_names_spec\"
9354 for f in $library_names; do
9355 if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
9364 if test "X$found_dir" = "X"; then
9365 if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
9367 found_a="$dir/$libname.$acl_libext"
9370 if test "X$found_dir" != "X"; then
9371 if test -f "$dir/$libname.la"; then
9372 found_la="$dir/$libname.la"
9379 if test "X$found_dir" = "X"; then
9380 for x in $LDFLAGS $LTLIBICONV; do
9382 acl_save_prefix="$prefix"
9383 prefix="$acl_final_prefix"
9384 acl_save_exec_prefix="$exec_prefix"
9385 exec_prefix="$acl_final_exec_prefix"
9387 exec_prefix="$acl_save_exec_prefix"
9388 prefix="$acl_save_prefix"
9392 dir=`echo "X$x" | sed -e 's/^X-L//'`
9393 if test -n "$acl_shlibext"; then
9394 if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
9396 found_so="$dir/$libname$shrext"
9398 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
9399 ver=`(cd "$dir" && \
9400 for f in "$libname$shrext".*; do echo "$f"; done \
9401 | sed -e "s,^$libname$shrext\\\\.,," \
9402 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
9403 | sed 1q ) 2>/dev/null`
9404 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
9406 found_so="$dir/$libname$shrext.$ver"
9409 eval library_names=\"$acl_library_names_spec\"
9410 for f in $library_names; do
9411 if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
9420 if test "X$found_dir" = "X"; then
9421 if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
9423 found_a="$dir/$libname.$acl_libext"
9426 if test "X$found_dir" != "X"; then
9427 if test -f "$dir/$libname.la"; then
9428 found_la="$dir/$libname.la"
9433 if test "X$found_dir" != "X"; then
9438 if test "X$found_dir" != "X"; then
9439 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9440 if test "X$found_so" != "X"; then
9441 if test "$enable_rpath" = no \
9442 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
9443 || test "X$found_dir" = "X/usr/$acl_libdirstem2" \
9444 || test "X$found_dir" = "X/usr/$acl_libdirstem3"; then
9445 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9448 for x in $ltrpathdirs; do
9449 if test "X$x" = "X$found_dir"; then
9454 if test -z "$haveit"; then
9455 ltrpathdirs="$ltrpathdirs $found_dir"
9457 if test "$acl_hardcode_direct" = yes; then
9458 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9460 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
9461 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9463 for x in $rpathdirs; do
9464 if test "X$x" = "X$found_dir"; then
9469 if test -z "$haveit"; then
9470 rpathdirs="$rpathdirs $found_dir"
9474 for x in $LDFLAGS $LIBICONV; do
9476 acl_save_prefix="$prefix"
9477 prefix="$acl_final_prefix"
9478 acl_save_exec_prefix="$exec_prefix"
9479 exec_prefix="$acl_final_exec_prefix"
9481 exec_prefix="$acl_save_exec_prefix"
9482 prefix="$acl_save_prefix"
9484 if test "X$x" = "X-L$found_dir"; then
9489 if test -z "$haveit"; then
9490 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9492 if test "$acl_hardcode_minus_L" != no; then
9493 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9495 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9501 if test "X$found_a" != "X"; then
9502 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
9504 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9507 additional_includedir=
9508 case "$found_dir" in
9509 */$acl_libdirstem | */$acl_libdirstem/)
9510 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
9511 if test "$name" = 'iconv'; then
9512 LIBICONV_PREFIX="$basedir"
9514 additional_includedir="$basedir/include"
9516 */$acl_libdirstem2 | */$acl_libdirstem2/)
9517 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
9518 if test "$name" = 'iconv'; then
9519 LIBICONV_PREFIX="$basedir"
9521 additional_includedir="$basedir/include"
9523 */$acl_libdirstem3 | */$acl_libdirstem3/)
9524 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem3/"'*$,,'`
9525 if test "$name" = 'iconv'; then
9526 LIBICONV_PREFIX="$basedir"
9528 additional_includedir="$basedir/include"
9531 if test "X$additional_includedir" != "X"; then
9532 if test "X$additional_includedir" != "X/usr/include"; then
9534 if test "X$additional_includedir" = "X/usr/local/include"; then
9535 if test -n "$GCC"; then
9537 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
9541 if test -z "$haveit"; then
9542 for x in $CPPFLAGS $INCICONV; do
9544 acl_save_prefix="$prefix"
9545 prefix="$acl_final_prefix"
9546 acl_save_exec_prefix="$exec_prefix"
9547 exec_prefix="$acl_final_exec_prefix"
9549 exec_prefix="$acl_save_exec_prefix"
9550 prefix="$acl_save_prefix"
9552 if test "X$x" = "X-I$additional_includedir"; then
9557 if test -z "$haveit"; then
9558 if test -d "$additional_includedir"; then
9559 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9565 if test -n "$found_la"; then
9566 save_libdir="$libdir"
9568 */* | *\\*) . "$found_la" ;;
9569 *) . "./$found_la" ;;
9571 libdir="$save_libdir"
9572 for dep in $dependency_libs; do
9575 dependency_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9576 if test "X$dependency_libdir" != "X/usr/$acl_libdirstem" \
9577 && test "X$dependency_libdir" != "X/usr/$acl_libdirstem2" \
9578 && test "X$dependency_libdir" != "X/usr/$acl_libdirstem3"; then
9580 if test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem" \
9581 || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem2" \
9582 || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem3"; then
9583 if test -n "$GCC"; then
9585 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
9589 if test -z "$haveit"; then
9591 for x in $LDFLAGS $LIBICONV; do
9593 acl_save_prefix="$prefix"
9594 prefix="$acl_final_prefix"
9595 acl_save_exec_prefix="$exec_prefix"
9596 exec_prefix="$acl_final_exec_prefix"
9598 exec_prefix="$acl_save_exec_prefix"
9599 prefix="$acl_save_prefix"
9601 if test "X$x" = "X-L$dependency_libdir"; then
9606 if test -z "$haveit"; then
9607 if test -d "$dependency_libdir"; then
9608 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$dependency_libdir"
9612 for x in $LDFLAGS $LTLIBICONV; do
9614 acl_save_prefix="$prefix"
9615 prefix="$acl_final_prefix"
9616 acl_save_exec_prefix="$exec_prefix"
9617 exec_prefix="$acl_final_exec_prefix"
9619 exec_prefix="$acl_save_exec_prefix"
9620 prefix="$acl_save_prefix"
9622 if test "X$x" = "X-L$dependency_libdir"; then
9627 if test -z "$haveit"; then
9628 if test -d "$dependency_libdir"; then
9629 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$dependency_libdir"
9636 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9637 if test "$enable_rpath" != no; then
9639 for x in $rpathdirs; do
9640 if test "X$x" = "X$dir"; then
9645 if test -z "$haveit"; then
9646 rpathdirs="$rpathdirs $dir"
9649 for x in $ltrpathdirs; do
9650 if test "X$x" = "X$dir"; then
9655 if test -z "$haveit"; then
9656 ltrpathdirs="$ltrpathdirs $dir"
9661 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9664 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9667 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
9668 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
9674 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9675 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
9681 if test "X$rpathdirs" != "X"; then
9682 if test -n "$acl_hardcode_libdir_separator"; then
9684 for found_dir in $rpathdirs; do
9685 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
9687 acl_save_libdir="$libdir"
9689 eval flag=\"$acl_hardcode_libdir_flag_spec\"
9690 libdir="$acl_save_libdir"
9691 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9693 for found_dir in $rpathdirs; do
9694 acl_save_libdir="$libdir"
9696 eval flag=\"$acl_hardcode_libdir_flag_spec\"
9697 libdir="$acl_save_libdir"
9698 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9702 if test "X$ltrpathdirs" != "X"; then
9703 for found_dir in $ltrpathdirs; do
9704 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
9736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
9737 printf %s "checking for CFPreferencesCopyAppValue... " >&6; }
9738 if test ${gt_cv_func_CFPreferencesCopyAppValue+y}
9740 printf %s "(cached) " >&6
9742 gt_save_LIBS="$LIBS"
9743 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
9744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9745 /* end confdefs.h. */
9746 #include <CoreFoundation/CFPreferences.h>
9750 CFPreferencesCopyAppValue(NULL, NULL)
9755 if ac_fn_c_try_link "$LINENO"
9757 gt_cv_func_CFPreferencesCopyAppValue=yes
9759 gt_cv_func_CFPreferencesCopyAppValue=no
9761 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9762 conftest$ac_exeext conftest.$ac_ext
9763 LIBS="$gt_save_LIBS"
9765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
9766 printf "%s\n" "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
9767 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
9769 printf "%s\n" "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
9772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyPreferredLanguages" >&5
9773 printf %s "checking for CFLocaleCopyPreferredLanguages... " >&6; }
9774 if test ${gt_cv_func_CFLocaleCopyPreferredLanguages+y}
9776 printf %s "(cached) " >&6
9778 gt_save_LIBS="$LIBS"
9779 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
9780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9781 /* end confdefs.h. */
9782 #include <CoreFoundation/CFLocale.h>
9786 CFLocaleCopyPreferredLanguages();
9791 if ac_fn_c_try_link "$LINENO"
9793 gt_cv_func_CFLocaleCopyPreferredLanguages=yes
9795 gt_cv_func_CFLocaleCopyPreferredLanguages=no
9797 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9798 conftest$ac_exeext conftest.$ac_ext
9799 LIBS="$gt_save_LIBS"
9801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyPreferredLanguages" >&5
9802 printf "%s\n" "$gt_cv_func_CFLocaleCopyPreferredLanguages" >&6; }
9803 if test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
9805 printf "%s\n" "#define HAVE_CFLOCALECOPYPREFERREDLANGUAGES 1" >>confdefs.h
9809 if test $gt_cv_func_CFPreferencesCopyAppValue = yes \
9810 || test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
9811 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
9823 case " $gt_needs " in
9824 *" need-formatstring-macros "*) gt_api_version=3 ;;
9825 *" need-ngettext "*) gt_api_version=2 ;;
9826 *) gt_api_version=1 ;;
9828 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
9829 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
9831 if test "$USE_NLS" = "yes"; then
9832 gt_use_preinstalled_gnugettext=no
9835 if test $gt_api_version -ge 3; then
9836 gt_revision_test_code='
9837 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
9838 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
9840 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
9843 gt_revision_test_code=
9845 if test $gt_api_version -ge 2; then
9846 gt_expression_test_code=' + * ngettext ("", "", 0)'
9848 gt_expression_test_code=
9851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
9852 printf %s "checking for GNU gettext in libc... " >&6; }
9853 if eval test \${$gt_func_gnugettext_libc+y}
9855 printf %s "(cached) " >&6
9857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9858 /* end confdefs.h. */
9860 #include <libintl.h>
9861 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
9862 extern int _nl_msg_cat_cntr;
9863 extern int *_nl_domain_bindings;
9864 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_domain_bindings)
9866 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
9868 $gt_revision_test_code
9874 bindtextdomain ("", "");
9875 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
9881 if ac_fn_c_try_link "$LINENO"
9883 eval "$gt_func_gnugettext_libc=yes"
9885 eval "$gt_func_gnugettext_libc=no"
9887 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9888 conftest$ac_exeext conftest.$ac_ext
9890 eval ac_res=\$$gt_func_gnugettext_libc
9891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9892 printf "%s\n" "$ac_res" >&6; }
9894 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
9900 am_save_CPPFLAGS="$CPPFLAGS"
9902 for element in $INCICONV; do
9904 for x in $CPPFLAGS; do
9906 acl_save_prefix="$prefix"
9907 prefix="$acl_final_prefix"
9908 acl_save_exec_prefix="$exec_prefix"
9909 exec_prefix="$acl_final_exec_prefix"
9911 exec_prefix="$acl_save_exec_prefix"
9912 prefix="$acl_save_prefix"
9914 if test "X$x" = "X$element"; then
9919 if test -z "$haveit"; then
9920 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
9926 printf %s "checking for iconv... " >&6; }
9927 if test ${am_cv_func_iconv+y}
9929 printf %s "(cached) " >&6
9932 am_cv_func_iconv="no, consider installing GNU libiconv"
9934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9935 /* end confdefs.h. */
9943 iconv_t cd = iconv_open("","");
9944 iconv(cd,NULL,NULL,NULL,NULL);
9950 if ac_fn_c_try_link "$LINENO"
9952 am_cv_func_iconv=yes
9954 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9955 conftest$ac_exeext conftest.$ac_ext
9956 if test "$am_cv_func_iconv" != yes; then
9957 am_save_LIBS="$LIBS"
9958 LIBS="$LIBS $LIBICONV"
9959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9960 /* end confdefs.h. */
9968 iconv_t cd = iconv_open("","");
9969 iconv(cd,NULL,NULL,NULL,NULL);
9975 if ac_fn_c_try_link "$LINENO"
9978 am_cv_func_iconv=yes
9980 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9981 conftest$ac_exeext conftest.$ac_ext
9982 LIBS="$am_save_LIBS"
9986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
9987 printf "%s\n" "$am_cv_func_iconv" >&6; }
9988 if test "$am_cv_func_iconv" = yes; then
9989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
9990 printf %s "checking for working iconv... " >&6; }
9991 if test ${am_cv_func_iconv_works+y}
9993 printf %s "(cached) " >&6
9996 am_save_LIBS="$LIBS"
9997 if test $am_cv_lib_iconv = yes; then
9998 LIBS="$LIBS $LIBICONV"
10000 am_cv_func_iconv_works=no
10001 for ac_iconv_const in '' 'const'; do
10002 if test "$cross_compiling" = yes
10005 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
10006 *) am_cv_func_iconv_works="guessing yes" ;;
10009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10010 /* end confdefs.h. */
10013 #include <string.h>
10015 #ifndef ICONV_CONST
10016 # define ICONV_CONST $ac_iconv_const
10023 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
10026 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
10027 if (cd_utf8_to_88591 != (iconv_t)(-1))
10029 static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
10031 ICONV_CONST char *inptr = input;
10032 size_t inbytesleft = strlen (input);
10033 char *outptr = buf;
10034 size_t outbytesleft = sizeof (buf);
10035 size_t res = iconv (cd_utf8_to_88591,
10036 &inptr, &inbytesleft,
10037 &outptr, &outbytesleft);
10040 iconv_close (cd_utf8_to_88591);
10043 /* Test against Solaris 10 bug: Failures are not distinguishable from
10044 successful returns. */
10046 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
10047 if (cd_ascii_to_88591 != (iconv_t)(-1))
10049 static ICONV_CONST char input[] = "\263";
10051 ICONV_CONST char *inptr = input;
10052 size_t inbytesleft = strlen (input);
10053 char *outptr = buf;
10054 size_t outbytesleft = sizeof (buf);
10055 size_t res = iconv (cd_ascii_to_88591,
10056 &inptr, &inbytesleft,
10057 &outptr, &outbytesleft);
10060 iconv_close (cd_ascii_to_88591);
10063 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
10065 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
10066 if (cd_88591_to_utf8 != (iconv_t)(-1))
10068 static ICONV_CONST char input[] = "\304";
10069 static char buf[2] = { (char)0xDE, (char)0xAD };
10070 ICONV_CONST char *inptr = input;
10071 size_t inbytesleft = 1;
10072 char *outptr = buf;
10073 size_t outbytesleft = 1;
10074 size_t res = iconv (cd_88591_to_utf8,
10075 &inptr, &inbytesleft,
10076 &outptr, &outbytesleft);
10077 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
10079 iconv_close (cd_88591_to_utf8);
10082 #if 0 /* This bug could be worked around by the caller. */
10083 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
10085 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
10086 if (cd_88591_to_utf8 != (iconv_t)(-1))
10088 static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
10090 ICONV_CONST char *inptr = input;
10091 size_t inbytesleft = strlen (input);
10092 char *outptr = buf;
10093 size_t outbytesleft = sizeof (buf);
10094 size_t res = iconv (cd_88591_to_utf8,
10095 &inptr, &inbytesleft,
10096 &outptr, &outbytesleft);
10099 iconv_close (cd_88591_to_utf8);
10103 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
10106 /* Try standardized names. */
10107 iconv_t cd1 = iconv_open ("UTF-8", "EUC-JP");
10108 /* Try IRIX, OSF/1 names. */
10109 iconv_t cd2 = iconv_open ("UTF-8", "eucJP");
10110 /* Try AIX names. */
10111 iconv_t cd3 = iconv_open ("UTF-8", "IBM-eucJP");
10112 /* Try HP-UX names. */
10113 iconv_t cd4 = iconv_open ("utf8", "eucJP");
10114 if (cd1 == (iconv_t)(-1) && cd2 == (iconv_t)(-1)
10115 && cd3 == (iconv_t)(-1) && cd4 == (iconv_t)(-1))
10117 if (cd1 != (iconv_t)(-1))
10119 if (cd2 != (iconv_t)(-1))
10121 if (cd3 != (iconv_t)(-1))
10123 if (cd4 != (iconv_t)(-1))
10132 if ac_fn_c_try_run "$LINENO"
10134 am_cv_func_iconv_works=yes
10136 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10137 conftest.$ac_objext conftest.beam conftest.$ac_ext
10140 test "$am_cv_func_iconv_works" = no || break
10142 LIBS="$am_save_LIBS"
10145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
10146 printf "%s\n" "$am_cv_func_iconv_works" >&6; }
10147 case "$am_cv_func_iconv_works" in
10148 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
10149 *) am_func_iconv=yes ;;
10152 am_func_iconv=no am_cv_lib_iconv=no
10154 if test "$am_func_iconv" = yes; then
10156 printf "%s\n" "#define HAVE_ICONV 1" >>confdefs.h
10159 if test "$am_cv_lib_iconv" = yes; then
10160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10161 printf %s "checking how to link with libiconv... " >&6; }
10162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10163 printf "%s\n" "$LIBICONV" >&6; }
10165 CPPFLAGS="$am_save_CPPFLAGS"
10181 acl_save_prefix="$prefix"
10182 prefix="$acl_final_prefix"
10183 acl_save_exec_prefix="$exec_prefix"
10184 exec_prefix="$acl_final_exec_prefix"
10186 eval additional_includedir=\"$includedir\"
10187 eval additional_libdir=\"$libdir\"
10188 eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
10189 eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
10191 exec_prefix="$acl_save_exec_prefix"
10192 prefix="$acl_save_prefix"
10195 # Check whether --with-libintl-prefix was given.
10196 if test ${with_libintl_prefix+y}
10198 withval=$with_libintl_prefix;
10199 if test "X$withval" = "Xno"; then
10202 if test "X$withval" = "X"; then
10204 acl_save_prefix="$prefix"
10205 prefix="$acl_final_prefix"
10206 acl_save_exec_prefix="$exec_prefix"
10207 exec_prefix="$acl_final_exec_prefix"
10209 eval additional_includedir=\"$includedir\"
10210 eval additional_libdir=\"$libdir\"
10211 eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
10212 eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
10214 exec_prefix="$acl_save_exec_prefix"
10215 prefix="$acl_save_prefix"
10218 additional_includedir="$withval/include"
10219 additional_libdir="$withval/$acl_libdirstem"
10220 additional_libdir2="$withval/$acl_libdirstem2"
10221 additional_libdir3="$withval/$acl_libdirstem3"
10227 if test "X$additional_libdir2" = "X$additional_libdir"; then
10228 additional_libdir2=
10230 if test "X$additional_libdir3" = "X$additional_libdir"; then
10231 additional_libdir3=
10240 names_already_handled=
10241 names_next_round='intl '
10242 while test -n "$names_next_round"; do
10243 names_this_round="$names_next_round"
10245 for name in $names_this_round; do
10247 for n in $names_already_handled; do
10248 if test "$n" = "$name"; then
10249 already_handled=yes
10253 if test -z "$already_handled"; then
10254 names_already_handled="$names_already_handled $name"
10255 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
10256 eval value=\"\$HAVE_LIB$uppername\"
10257 if test -n "$value"; then
10258 if test "$value" = yes; then
10259 eval value=\"\$LIB$uppername\"
10260 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
10261 eval value=\"\$LTLIB$uppername\"
10262 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
10271 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
10272 if test -n "$acl_shlibext"; then
10273 shrext=".$acl_shlibext" # typically: shrext=.so
10277 if test $use_additional = yes; then
10278 for additional_libdir_variable in additional_libdir additional_libdir2 additional_libdir3; do
10279 if test "X$found_dir" = "X"; then
10280 eval dir=\$$additional_libdir_variable
10281 if test -n "$dir"; then
10282 if test -n "$acl_shlibext"; then
10283 if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
10285 found_so="$dir/$libname$shrext"
10287 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
10288 ver=`(cd "$dir" && \
10289 for f in "$libname$shrext".*; do echo "$f"; done \
10290 | sed -e "s,^$libname$shrext\\\\.,," \
10291 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
10292 | sed 1q ) 2>/dev/null`
10293 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
10295 found_so="$dir/$libname$shrext.$ver"
10298 eval library_names=\"$acl_library_names_spec\"
10299 for f in $library_names; do
10300 if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
10309 if test "X$found_dir" = "X"; then
10310 if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
10312 found_a="$dir/$libname.$acl_libext"
10315 if test "X$found_dir" != "X"; then
10316 if test -f "$dir/$libname.la"; then
10317 found_la="$dir/$libname.la"
10324 if test "X$found_dir" = "X"; then
10325 for x in $LDFLAGS $LTLIBINTL; do
10327 acl_save_prefix="$prefix"
10328 prefix="$acl_final_prefix"
10329 acl_save_exec_prefix="$exec_prefix"
10330 exec_prefix="$acl_final_exec_prefix"
10332 exec_prefix="$acl_save_exec_prefix"
10333 prefix="$acl_save_prefix"
10337 dir=`echo "X$x" | sed -e 's/^X-L//'`
10338 if test -n "$acl_shlibext"; then
10339 if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
10341 found_so="$dir/$libname$shrext"
10343 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
10344 ver=`(cd "$dir" && \
10345 for f in "$libname$shrext".*; do echo "$f"; done \
10346 | sed -e "s,^$libname$shrext\\\\.,," \
10347 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
10348 | sed 1q ) 2>/dev/null`
10349 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
10351 found_so="$dir/$libname$shrext.$ver"
10354 eval library_names=\"$acl_library_names_spec\"
10355 for f in $library_names; do
10356 if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
10365 if test "X$found_dir" = "X"; then
10366 if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
10368 found_a="$dir/$libname.$acl_libext"
10371 if test "X$found_dir" != "X"; then
10372 if test -f "$dir/$libname.la"; then
10373 found_la="$dir/$libname.la"
10378 if test "X$found_dir" != "X"; then
10383 if test "X$found_dir" != "X"; then
10384 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
10385 if test "X$found_so" != "X"; then
10386 if test "$enable_rpath" = no \
10387 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
10388 || test "X$found_dir" = "X/usr/$acl_libdirstem2" \
10389 || test "X$found_dir" = "X/usr/$acl_libdirstem3"; then
10390 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10393 for x in $ltrpathdirs; do
10394 if test "X$x" = "X$found_dir"; then
10399 if test -z "$haveit"; then
10400 ltrpathdirs="$ltrpathdirs $found_dir"
10402 if test "$acl_hardcode_direct" = yes; then
10403 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10405 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
10406 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10408 for x in $rpathdirs; do
10409 if test "X$x" = "X$found_dir"; then
10414 if test -z "$haveit"; then
10415 rpathdirs="$rpathdirs $found_dir"
10419 for x in $LDFLAGS $LIBINTL; do
10421 acl_save_prefix="$prefix"
10422 prefix="$acl_final_prefix"
10423 acl_save_exec_prefix="$exec_prefix"
10424 exec_prefix="$acl_final_exec_prefix"
10426 exec_prefix="$acl_save_exec_prefix"
10427 prefix="$acl_save_prefix"
10429 if test "X$x" = "X-L$found_dir"; then
10434 if test -z "$haveit"; then
10435 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
10437 if test "$acl_hardcode_minus_L" != no; then
10438 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10440 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
10446 if test "X$found_a" != "X"; then
10447 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
10449 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
10452 additional_includedir=
10453 case "$found_dir" in
10454 */$acl_libdirstem | */$acl_libdirstem/)
10455 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
10456 if test "$name" = 'intl'; then
10457 LIBINTL_PREFIX="$basedir"
10459 additional_includedir="$basedir/include"
10461 */$acl_libdirstem2 | */$acl_libdirstem2/)
10462 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
10463 if test "$name" = 'intl'; then
10464 LIBINTL_PREFIX="$basedir"
10466 additional_includedir="$basedir/include"
10468 */$acl_libdirstem3 | */$acl_libdirstem3/)
10469 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem3/"'*$,,'`
10470 if test "$name" = 'intl'; then
10471 LIBINTL_PREFIX="$basedir"
10473 additional_includedir="$basedir/include"
10476 if test "X$additional_includedir" != "X"; then
10477 if test "X$additional_includedir" != "X/usr/include"; then
10479 if test "X$additional_includedir" = "X/usr/local/include"; then
10480 if test -n "$GCC"; then
10482 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
10486 if test -z "$haveit"; then
10487 for x in $CPPFLAGS $INCINTL; do
10489 acl_save_prefix="$prefix"
10490 prefix="$acl_final_prefix"
10491 acl_save_exec_prefix="$exec_prefix"
10492 exec_prefix="$acl_final_exec_prefix"
10494 exec_prefix="$acl_save_exec_prefix"
10495 prefix="$acl_save_prefix"
10497 if test "X$x" = "X-I$additional_includedir"; then
10502 if test -z "$haveit"; then
10503 if test -d "$additional_includedir"; then
10504 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
10510 if test -n "$found_la"; then
10511 save_libdir="$libdir"
10512 case "$found_la" in
10513 */* | *\\*) . "$found_la" ;;
10514 *) . "./$found_la" ;;
10516 libdir="$save_libdir"
10517 for dep in $dependency_libs; do
10520 dependency_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10521 if test "X$dependency_libdir" != "X/usr/$acl_libdirstem" \
10522 && test "X$dependency_libdir" != "X/usr/$acl_libdirstem2" \
10523 && test "X$dependency_libdir" != "X/usr/$acl_libdirstem3"; then
10525 if test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem" \
10526 || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem2" \
10527 || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem3"; then
10528 if test -n "$GCC"; then
10530 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
10534 if test -z "$haveit"; then
10536 for x in $LDFLAGS $LIBINTL; do
10538 acl_save_prefix="$prefix"
10539 prefix="$acl_final_prefix"
10540 acl_save_exec_prefix="$exec_prefix"
10541 exec_prefix="$acl_final_exec_prefix"
10543 exec_prefix="$acl_save_exec_prefix"
10544 prefix="$acl_save_prefix"
10546 if test "X$x" = "X-L$dependency_libdir"; then
10551 if test -z "$haveit"; then
10552 if test -d "$dependency_libdir"; then
10553 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$dependency_libdir"
10557 for x in $LDFLAGS $LTLIBINTL; do
10559 acl_save_prefix="$prefix"
10560 prefix="$acl_final_prefix"
10561 acl_save_exec_prefix="$exec_prefix"
10562 exec_prefix="$acl_final_exec_prefix"
10564 exec_prefix="$acl_save_exec_prefix"
10565 prefix="$acl_save_prefix"
10567 if test "X$x" = "X-L$dependency_libdir"; then
10572 if test -z "$haveit"; then
10573 if test -d "$dependency_libdir"; then
10574 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$dependency_libdir"
10581 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10582 if test "$enable_rpath" != no; then
10584 for x in $rpathdirs; do
10585 if test "X$x" = "X$dir"; then
10590 if test -z "$haveit"; then
10591 rpathdirs="$rpathdirs $dir"
10594 for x in $ltrpathdirs; do
10595 if test "X$x" = "X$dir"; then
10600 if test -z "$haveit"; then
10601 ltrpathdirs="$ltrpathdirs $dir"
10606 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10609 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10612 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
10613 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
10619 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
10620 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
10626 if test "X$rpathdirs" != "X"; then
10627 if test -n "$acl_hardcode_libdir_separator"; then
10629 for found_dir in $rpathdirs; do
10630 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
10632 acl_save_libdir="$libdir"
10634 eval flag=\"$acl_hardcode_libdir_flag_spec\"
10635 libdir="$acl_save_libdir"
10636 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
10638 for found_dir in $rpathdirs; do
10639 acl_save_libdir="$libdir"
10640 libdir="$found_dir"
10641 eval flag=\"$acl_hardcode_libdir_flag_spec\"
10642 libdir="$acl_save_libdir"
10643 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
10647 if test "X$ltrpathdirs" != "X"; then
10648 for found_dir in $ltrpathdirs; do
10649 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
10657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
10658 printf %s "checking for GNU gettext in libintl... " >&6; }
10659 if eval test \${$gt_func_gnugettext_libintl+y}
10661 printf %s "(cached) " >&6
10663 gt_save_CPPFLAGS="$CPPFLAGS"
10664 CPPFLAGS="$CPPFLAGS $INCINTL"
10665 gt_save_LIBS="$LIBS"
10666 LIBS="$LIBS $LIBINTL"
10667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10668 /* end confdefs.h. */
10670 #include <libintl.h>
10671 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
10672 extern int _nl_msg_cat_cntr;
10677 const char *_nl_expand_alias (const char *);
10678 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
10680 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
10682 $gt_revision_test_code
10688 bindtextdomain ("", "");
10689 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
10695 if ac_fn_c_try_link "$LINENO"
10697 eval "$gt_func_gnugettext_libintl=yes"
10699 eval "$gt_func_gnugettext_libintl=no"
10701 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10702 conftest$ac_exeext conftest.$ac_ext
10703 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
10704 LIBS="$LIBS $LIBICONV"
10705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10706 /* end confdefs.h. */
10708 #include <libintl.h>
10709 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
10710 extern int _nl_msg_cat_cntr;
10715 const char *_nl_expand_alias (const char *);
10716 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
10718 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
10720 $gt_revision_test_code
10726 bindtextdomain ("", "");
10727 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
10733 if ac_fn_c_try_link "$LINENO"
10735 LIBINTL="$LIBINTL $LIBICONV"
10736 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
10737 eval "$gt_func_gnugettext_libintl=yes"
10740 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10741 conftest$ac_exeext conftest.$ac_ext
10743 CPPFLAGS="$gt_save_CPPFLAGS"
10744 LIBS="$gt_save_LIBS"
10746 eval ac_res=\$$gt_func_gnugettext_libintl
10747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10748 printf "%s\n" "$ac_res" >&6; }
10751 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
10752 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
10753 && test "$PACKAGE" != gettext-runtime \
10754 && test "$PACKAGE" != gettext-tools; }; then
10755 gt_use_preinstalled_gnugettext=yes
10764 if test -n "$INTL_MACOSX_LIBS"; then
10765 if test "$gt_use_preinstalled_gnugettext" = "yes" \
10766 || test "$nls_cv_use_gnu_gettext" = "yes"; then
10767 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
10768 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
10772 if test "$gt_use_preinstalled_gnugettext" = "yes" \
10773 || test "$nls_cv_use_gnu_gettext" = "yes"; then
10775 printf "%s\n" "#define ENABLE_NLS 1" >>confdefs.h
10782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
10783 printf %s "checking whether to use NLS... " >&6; }
10784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
10785 printf "%s\n" "$USE_NLS" >&6; }
10786 if test "$USE_NLS" = "yes"; then
10787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
10788 printf %s "checking where the gettext function comes from... " >&6; }
10789 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
10790 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
10791 gt_source="external libintl"
10796 gt_source="included intl directory"
10798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
10799 printf "%s\n" "$gt_source" >&6; }
10802 if test "$USE_NLS" = "yes"; then
10804 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
10805 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
10806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
10807 printf %s "checking how to link with libintl... " >&6; }
10808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
10809 printf "%s\n" "$LIBINTL" >&6; }
10811 for element in $INCINTL; do
10813 for x in $CPPFLAGS; do
10815 acl_save_prefix="$prefix"
10816 prefix="$acl_final_prefix"
10817 acl_save_exec_prefix="$exec_prefix"
10818 exec_prefix="$acl_final_exec_prefix"
10820 exec_prefix="$acl_save_exec_prefix"
10821 prefix="$acl_save_prefix"
10823 if test "X$x" = "X$element"; then
10828 if test -z "$haveit"; then
10829 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10836 printf "%s\n" "#define HAVE_GETTEXT 1" >>confdefs.h
10839 printf "%s\n" "#define HAVE_DCGETTEXT 1" >>confdefs.h
10848 INTLLIBS="$LIBINTL"
10856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
10857 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
10859 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
10860 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
10862 printf %s "(cached) " >&6
10864 cat >conftest.make <<\_ACEOF
10867 @echo '@@@%%%=$(MAKE)=@@@%%%'
10869 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
10870 case `${MAKE-make} -f conftest.make 2>/dev/null` in
10871 *@@@%%%=?*=@@@%%%*)
10872 eval ac_cv_prog_make_${ac_make}_set=yes;;
10874 eval ac_cv_prog_make_${ac_make}_set=no;;
10876 rm -f conftest.make
10878 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
10879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10880 printf "%s\n" "yes" >&6; }
10883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10884 printf "%s\n" "no" >&6; }
10885 SET_MAKE="MAKE=${MAKE-make}"
10888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5
10889 printf %s "checking for GNU make... " >&6; }
10890 if test ${_cv_gnu_make_command+y}
10892 printf %s "(cached) " >&6
10894 _cv_gnu_make_command='' ;
10895 if test -n "$FORCE_NATIVE_MAKE" ; then
10898 MAKES="make gmake gnumake"
10900 for a in "$MAKE" $MAKES ; do
10901 if test -z "$a" ; then continue ; fi ;
10902 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
10903 _cv_gnu_make_command=$a ;
10909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_cv_gnu_make_command" >&5
10910 printf "%s\n" "$_cv_gnu_make_command" >&6; } ;
10911 if test "x$_cv_gnu_make_command" != "x" ; then
10917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: \"Not found\"" >&5
10918 printf "%s\n" "\"Not found\"" >&6; };
10923 # Extract the first word of "ln", so it can be a program name with args.
10924 set dummy ln; ac_word=$2
10925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10926 printf %s "checking for $ac_word... " >&6; }
10927 if test ${ac_cv_path_LN+y}
10929 printf %s "(cached) " >&6
10933 ac_cv_path_LN="$LN" # Let the user override the test with a path.
10936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10937 for as_dir in $PATH
10940 case $as_dir in #(((
10943 *) as_dir=$as_dir/ ;;
10945 for ac_exec_ext in '' $ac_executable_extensions; do
10946 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10947 ac_cv_path_LN="$as_dir$ac_word$ac_exec_ext"
10948 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10955 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
10960 if test -n "$LN"; then
10961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
10962 printf "%s\n" "$LN" >&6; }
10964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10965 printf "%s\n" "no" >&6; }
10972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
10973 printf %s "checking whether ln -s works... " >&6; }
10975 if test "$LN_S" = "ln -s"; then
10976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10977 printf "%s\n" "yes" >&6; }
10979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
10980 printf "%s\n" "no, using $LN_S" >&6; }
10983 # Extract the first word of "mv", so it can be a program name with args.
10984 set dummy mv; ac_word=$2
10985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10986 printf %s "checking for $ac_word... " >&6; }
10987 if test ${ac_cv_path_MV+y}
10989 printf %s "(cached) " >&6
10993 ac_cv_path_MV="$MV" # Let the user override the test with a path.
10996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10997 for as_dir in $PATH
11000 case $as_dir in #(((
11003 *) as_dir=$as_dir/ ;;
11005 for ac_exec_ext in '' $ac_executable_extensions; do
11006 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11007 ac_cv_path_MV="$as_dir$ac_word$ac_exec_ext"
11008 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11015 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
11020 if test -n "$MV"; then
11021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
11022 printf "%s\n" "$MV" >&6; }
11024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11025 printf "%s\n" "no" >&6; }
11029 # Extract the first word of "cp", so it can be a program name with args.
11030 set dummy cp; ac_word=$2
11031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11032 printf %s "checking for $ac_word... " >&6; }
11033 if test ${ac_cv_path_CP+y}
11035 printf %s "(cached) " >&6
11039 ac_cv_path_CP="$CP" # Let the user override the test with a path.
11042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11043 for as_dir in $PATH
11046 case $as_dir in #(((
11049 *) as_dir=$as_dir/ ;;
11051 for ac_exec_ext in '' $ac_executable_extensions; do
11052 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11053 ac_cv_path_CP="$as_dir$ac_word$ac_exec_ext"
11054 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11061 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
11066 if test -n "$CP"; then
11067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
11068 printf "%s\n" "$CP" >&6; }
11070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11071 printf "%s\n" "no" >&6; }
11075 # Extract the first word of "rm", so it can be a program name with args.
11076 set dummy rm; ac_word=$2
11077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11078 printf %s "checking for $ac_word... " >&6; }
11079 if test ${ac_cv_path_RM+y}
11081 printf %s "(cached) " >&6
11085 ac_cv_path_RM="$RM" # Let the user override the test with a path.
11088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11089 for as_dir in $PATH
11092 case $as_dir in #(((
11095 *) as_dir=$as_dir/ ;;
11097 for ac_exec_ext in '' $ac_executable_extensions; do
11098 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11099 ac_cv_path_RM="$as_dir$ac_word$ac_exec_ext"
11100 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11107 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
11112 if test -n "$RM"; then
11113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
11114 printf "%s\n" "$RM" >&6; }
11116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11117 printf "%s\n" "no" >&6; }
11121 # Extract the first word of "chmod", so it can be a program name with args.
11122 set dummy chmod; ac_word=$2
11123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11124 printf %s "checking for $ac_word... " >&6; }
11125 if test ${ac_cv_path_CHMOD+y}
11127 printf %s "(cached) " >&6
11131 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
11134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11135 for as_dir in $PATH
11138 case $as_dir in #(((
11141 *) as_dir=$as_dir/ ;;
11143 for ac_exec_ext in '' $ac_executable_extensions; do
11144 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11145 ac_cv_path_CHMOD="$as_dir$ac_word$ac_exec_ext"
11146 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11153 test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
11157 CHMOD=$ac_cv_path_CHMOD
11158 if test -n "$CHMOD"; then
11159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
11160 printf "%s\n" "$CHMOD" >&6; }
11162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11163 printf "%s\n" "no" >&6; }
11167 for ac_prog in gawk mawk nawk awk
11169 # Extract the first word of "$ac_prog", so it can be a program name with args.
11170 set dummy $ac_prog; ac_word=$2
11171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11172 printf %s "checking for $ac_word... " >&6; }
11173 if test ${ac_cv_prog_AWK+y}
11175 printf %s "(cached) " >&6
11177 if test -n "$AWK"; then
11178 ac_cv_prog_AWK="$AWK" # Let the user override the test.
11180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11181 for as_dir in $PATH
11184 case $as_dir in #(((
11187 *) as_dir=$as_dir/ ;;
11189 for ac_exec_ext in '' $ac_executable_extensions; do
11190 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11191 ac_cv_prog_AWK="$ac_prog"
11192 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11201 AWK=$ac_cv_prog_AWK
11202 if test -n "$AWK"; then
11203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
11204 printf "%s\n" "$AWK" >&6; }
11206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11207 printf "%s\n" "no" >&6; }
11211 test -n "$AWK" && break
11214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
11215 printf %s "checking for egrep... " >&6; }
11216 if test ${ac_cv_path_EGREP+y}
11218 printf %s "(cached) " >&6
11220 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
11221 then ac_cv_path_EGREP="$GREP -E"
11223 if test -z "$EGREP"; then
11224 ac_path_EGREP_found=false
11225 # Loop through the user's path and test for each of PROGNAME-LIST
11226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11227 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11230 case $as_dir in #(((
11233 *) as_dir=$as_dir/ ;;
11235 for ac_prog in egrep
11237 for ac_exec_ext in '' $ac_executable_extensions; do
11238 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
11239 as_fn_executable_p "$ac_path_EGREP" || continue
11240 # Check for GNU ac_path_EGREP and select it if it is found.
11241 # Check for GNU $ac_path_EGREP
11242 case `"$ac_path_EGREP" --version 2>&1` in
11244 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
11247 printf %s 0123456789 >"conftest.in"
11250 cat "conftest.in" "conftest.in" >"conftest.tmp"
11251 mv "conftest.tmp" "conftest.in"
11252 cp "conftest.in" "conftest.nl"
11253 printf "%s\n" 'EGREP' >> "conftest.nl"
11254 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11255 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11256 as_fn_arith $ac_count + 1 && ac_count=$as_val
11257 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
11258 # Best one so far, save it but keep looking for a better one
11259 ac_cv_path_EGREP="$ac_path_EGREP"
11260 ac_path_EGREP_max=$ac_count
11262 # 10*(2^10) chars as input seems more than enough
11263 test $ac_count -gt 10 && break
11265 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11268 $ac_path_EGREP_found && break 3
11273 if test -z "$ac_cv_path_EGREP"; then
11274 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11277 ac_cv_path_EGREP=$EGREP
11282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
11283 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
11284 EGREP="$ac_cv_path_EGREP"
11287 # Extract the first word of "sed", so it can be a program name with args.
11288 set dummy sed; ac_word=$2
11289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11290 printf %s "checking for $ac_word... " >&6; }
11291 if test ${ac_cv_path_SED+y}
11293 printf %s "(cached) " >&6
11297 ac_cv_path_SED="$SED" # Let the user override the test with a path.
11300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11301 for as_dir in $PATH
11304 case $as_dir in #(((
11307 *) as_dir=$as_dir/ ;;
11309 for ac_exec_ext in '' $ac_executable_extensions; do
11310 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11311 ac_cv_path_SED="$as_dir$ac_word$ac_exec_ext"
11312 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11319 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
11323 SED=$ac_cv_path_SED
11324 if test -n "$SED"; then
11325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
11326 printf "%s\n" "$SED" >&6; }
11328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11329 printf "%s\n" "no" >&6; }
11333 # Extract the first word of "perl", so it can be a program name with args.
11334 set dummy perl; ac_word=$2
11335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11336 printf %s "checking for $ac_word... " >&6; }
11337 if test ${ac_cv_path_PERL+y}
11339 printf %s "(cached) " >&6
11343 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
11346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11347 for as_dir in $PATH
11350 case $as_dir in #(((
11353 *) as_dir=$as_dir/ ;;
11355 for ac_exec_ext in '' $ac_executable_extensions; do
11356 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11357 ac_cv_path_PERL="$as_dir$ac_word$ac_exec_ext"
11358 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11365 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
11369 PERL=$ac_cv_path_PERL
11370 if test -n "$PERL"; then
11371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
11372 printf "%s\n" "$PERL" >&6; }
11374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11375 printf "%s\n" "no" >&6; }
11379 # Extract the first word of "ldconfig", so it can be a program name with args.
11380 set dummy ldconfig; ac_word=$2
11381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11382 printf %s "checking for $ac_word... " >&6; }
11383 if test ${ac_cv_path_LDCONFIG+y}
11385 printf %s "(cached) " >&6
11389 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
11392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11393 for as_dir in $PATH
11396 case $as_dir in #(((
11399 *) as_dir=$as_dir/ ;;
11401 for ac_exec_ext in '' $ac_executable_extensions; do
11402 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11403 ac_cv_path_LDCONFIG="$as_dir$ac_word$ac_exec_ext"
11404 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11411 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
11415 LDCONFIG=$ac_cv_path_LDCONFIG
11416 if test -n "$LDCONFIG"; then
11417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
11418 printf "%s\n" "$LDCONFIG" >&6; }
11420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11421 printf "%s\n" "no" >&6; }
11425 if test -n "$ac_tool_prefix"; then
11426 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
11427 set dummy ${ac_tool_prefix}ar; ac_word=$2
11428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11429 printf %s "checking for $ac_word... " >&6; }
11430 if test ${ac_cv_prog_AR+y}
11432 printf %s "(cached) " >&6
11434 if test -n "$AR"; then
11435 ac_cv_prog_AR="$AR" # Let the user override the test.
11437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11438 for as_dir in $PATH
11441 case $as_dir in #(((
11444 *) as_dir=$as_dir/ ;;
11446 for ac_exec_ext in '' $ac_executable_extensions; do
11447 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11448 ac_cv_prog_AR="${ac_tool_prefix}ar"
11449 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11459 if test -n "$AR"; then
11460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
11461 printf "%s\n" "$AR" >&6; }
11463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11464 printf "%s\n" "no" >&6; }
11469 if test -z "$ac_cv_prog_AR"; then
11471 # Extract the first word of "ar", so it can be a program name with args.
11472 set dummy ar; ac_word=$2
11473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11474 printf %s "checking for $ac_word... " >&6; }
11475 if test ${ac_cv_prog_ac_ct_AR+y}
11477 printf %s "(cached) " >&6
11479 if test -n "$ac_ct_AR"; then
11480 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11483 for as_dir in $PATH
11486 case $as_dir in #(((
11489 *) as_dir=$as_dir/ ;;
11491 for ac_exec_ext in '' $ac_executable_extensions; do
11492 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11493 ac_cv_prog_ac_ct_AR="ar"
11494 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11503 ac_ct_AR=$ac_cv_prog_ac_ct_AR
11504 if test -n "$ac_ct_AR"; then
11505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
11506 printf "%s\n" "$ac_ct_AR" >&6; }
11508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11509 printf "%s\n" "no" >&6; }
11512 if test "x$ac_ct_AR" = x; then
11515 case $cross_compiling:$ac_tool_warned in
11517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11518 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11519 ac_tool_warned=yes ;;
11524 AR="$ac_cv_prog_AR"
11527 if test -n "$ac_tool_prefix"; then
11528 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11529 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11531 printf %s "checking for $ac_word... " >&6; }
11532 if test ${ac_cv_prog_RANLIB+y}
11534 printf %s "(cached) " >&6
11536 if test -n "$RANLIB"; then
11537 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11540 for as_dir in $PATH
11543 case $as_dir in #(((
11546 *) as_dir=$as_dir/ ;;
11548 for ac_exec_ext in '' $ac_executable_extensions; do
11549 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11550 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11551 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11560 RANLIB=$ac_cv_prog_RANLIB
11561 if test -n "$RANLIB"; then
11562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11563 printf "%s\n" "$RANLIB" >&6; }
11565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11566 printf "%s\n" "no" >&6; }
11571 if test -z "$ac_cv_prog_RANLIB"; then
11572 ac_ct_RANLIB=$RANLIB
11573 # Extract the first word of "ranlib", so it can be a program name with args.
11574 set dummy ranlib; ac_word=$2
11575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11576 printf %s "checking for $ac_word... " >&6; }
11577 if test ${ac_cv_prog_ac_ct_RANLIB+y}
11579 printf %s "(cached) " >&6
11581 if test -n "$ac_ct_RANLIB"; then
11582 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11585 for as_dir in $PATH
11588 case $as_dir in #(((
11591 *) as_dir=$as_dir/ ;;
11593 for ac_exec_ext in '' $ac_executable_extensions; do
11594 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11595 ac_cv_prog_ac_ct_RANLIB="ranlib"
11596 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11605 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11606 if test -n "$ac_ct_RANLIB"; then
11607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
11608 printf "%s\n" "$ac_ct_RANLIB" >&6; }
11610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11611 printf "%s\n" "no" >&6; }
11614 if test "x$ac_ct_RANLIB" = x; then
11617 case $cross_compiling:$ac_tool_warned in
11619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11620 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11621 ac_tool_warned=yes ;;
11623 RANLIB=$ac_ct_RANLIB
11626 RANLIB="$ac_cv_prog_RANLIB"
11629 if test -n "$ac_tool_prefix"; then
11630 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11631 set dummy ${ac_tool_prefix}strip; ac_word=$2
11632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11633 printf %s "checking for $ac_word... " >&6; }
11634 if test ${ac_cv_prog_STRIP+y}
11636 printf %s "(cached) " >&6
11638 if test -n "$STRIP"; then
11639 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11642 for as_dir in $PATH
11645 case $as_dir in #(((
11648 *) as_dir=$as_dir/ ;;
11650 for ac_exec_ext in '' $ac_executable_extensions; do
11651 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11652 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11653 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11662 STRIP=$ac_cv_prog_STRIP
11663 if test -n "$STRIP"; then
11664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11665 printf "%s\n" "$STRIP" >&6; }
11667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11668 printf "%s\n" "no" >&6; }
11673 if test -z "$ac_cv_prog_STRIP"; then
11675 # Extract the first word of "strip", so it can be a program name with args.
11676 set dummy strip; ac_word=$2
11677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11678 printf %s "checking for $ac_word... " >&6; }
11679 if test ${ac_cv_prog_ac_ct_STRIP+y}
11681 printf %s "(cached) " >&6
11683 if test -n "$ac_ct_STRIP"; then
11684 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11687 for as_dir in $PATH
11690 case $as_dir in #(((
11693 *) as_dir=$as_dir/ ;;
11695 for ac_exec_ext in '' $ac_executable_extensions; do
11696 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11697 ac_cv_prog_ac_ct_STRIP="strip"
11698 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11707 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11708 if test -n "$ac_ct_STRIP"; then
11709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
11710 printf "%s\n" "$ac_ct_STRIP" >&6; }
11712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11713 printf "%s\n" "no" >&6; }
11716 if test "x$ac_ct_STRIP" = x; then
11719 case $cross_compiling:$ac_tool_warned in
11721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11722 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11723 ac_tool_warned=yes ;;
11728 STRIP="$ac_cv_prog_STRIP"
11731 # Extract the first word of "makeinfo", so it can be a program name with args.
11732 set dummy makeinfo; ac_word=$2
11733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11734 printf %s "checking for $ac_word... " >&6; }
11735 if test ${ac_cv_prog_MAKEINFO+y}
11737 printf %s "(cached) " >&6
11739 if test -n "$MAKEINFO"; then
11740 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
11742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11743 for as_dir in $PATH
11746 case $as_dir in #(((
11749 *) as_dir=$as_dir/ ;;
11751 for ac_exec_ext in '' $ac_executable_extensions; do
11752 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11753 ac_cv_prog_MAKEINFO="makeinfo"
11754 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11763 MAKEINFO=$ac_cv_prog_MAKEINFO
11764 if test -n "$MAKEINFO"; then
11765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
11766 printf "%s\n" "$MAKEINFO" >&6; }
11768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11769 printf "%s\n" "no" >&6; }
11773 if test "_$MAKEINFO" = "_"; then
11774 MAKEINFO="echo Makeinfo is missing. Info documentation will not be built."
11776 case "$MAKEINFO" in
11778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING:
11779 *** Makeinfo is missing. Info documentation will not be built." >&5
11780 printf "%s\n" "$as_me: WARNING:
11781 *** Makeinfo is missing. Info documentation will not be built." >&2;}
11789 # See if we need a separate native compiler.
11790 if test $cross_compiling = no; then
11794 for ac_prog in gcc cc
11796 # Extract the first word of "$ac_prog", so it can be a program name with args.
11797 set dummy $ac_prog; ac_word=$2
11798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11799 printf %s "checking for $ac_word... " >&6; }
11800 if test ${ac_cv_prog_BUILD_CC+y}
11802 printf %s "(cached) " >&6
11804 if test -n "$BUILD_CC"; then
11805 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
11807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11808 for as_dir in $PATH
11811 case $as_dir in #(((
11814 *) as_dir=$as_dir/ ;;
11816 for ac_exec_ext in '' $ac_executable_extensions; do
11817 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11818 ac_cv_prog_BUILD_CC="$ac_prog"
11819 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11828 BUILD_CC=$ac_cv_prog_BUILD_CC
11829 if test -n "$BUILD_CC"; then
11830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
11831 printf "%s\n" "$BUILD_CC" >&6; }
11833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11834 printf "%s\n" "no" >&6; }
11838 test -n "$BUILD_CC" && break
11842 ac_fn_c_check_header_compile "$LINENO" "dirent.h" "ac_cv_header_dirent_h" "$ac_includes_default"
11843 if test "x$ac_cv_header_dirent_h" = xyes
11845 printf "%s\n" "#define HAVE_DIRENT_H 1" >>confdefs.h
11848 ac_fn_c_check_header_compile "$LINENO" "errno.h" "ac_cv_header_errno_h" "$ac_includes_default"
11849 if test "x$ac_cv_header_errno_h" = xyes
11851 printf "%s\n" "#define HAVE_ERRNO_H 1" >>confdefs.h
11854 ac_fn_c_check_header_compile "$LINENO" "execinfo.h" "ac_cv_header_execinfo_h" "$ac_includes_default"
11855 if test "x$ac_cv_header_execinfo_h" = xyes
11857 printf "%s\n" "#define HAVE_EXECINFO_H 1" >>confdefs.h
11860 ac_fn_c_check_header_compile "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
11861 if test "x$ac_cv_header_getopt_h" = xyes
11863 printf "%s\n" "#define HAVE_GETOPT_H 1" >>confdefs.h
11866 ac_fn_c_check_header_compile "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default"
11867 if test "x$ac_cv_header_malloc_h" = xyes
11869 printf "%s\n" "#define HAVE_MALLOC_H 1" >>confdefs.h
11872 ac_fn_c_check_header_compile "$LINENO" "mntent.h" "ac_cv_header_mntent_h" "$ac_includes_default"
11873 if test "x$ac_cv_header_mntent_h" = xyes
11875 printf "%s\n" "#define HAVE_MNTENT_H 1" >>confdefs.h
11878 ac_fn_c_check_header_compile "$LINENO" "paths.h" "ac_cv_header_paths_h" "$ac_includes_default"
11879 if test "x$ac_cv_header_paths_h" = xyes
11881 printf "%s\n" "#define HAVE_PATHS_H 1" >>confdefs.h
11884 ac_fn_c_check_header_compile "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
11885 if test "x$ac_cv_header_pthread_h" = xyes
11887 printf "%s\n" "#define HAVE_PTHREAD_H 1" >>confdefs.h
11890 ac_fn_c_check_header_compile "$LINENO" "semaphore.h" "ac_cv_header_semaphore_h" "$ac_includes_default"
11891 if test "x$ac_cv_header_semaphore_h" = xyes
11893 printf "%s\n" "#define HAVE_SEMAPHORE_H 1" >>confdefs.h
11896 ac_fn_c_check_header_compile "$LINENO" "setjmp.h" "ac_cv_header_setjmp_h" "$ac_includes_default"
11897 if test "x$ac_cv_header_setjmp_h" = xyes
11899 printf "%s\n" "#define HAVE_SETJMP_H 1" >>confdefs.h
11902 ac_fn_c_check_header_compile "$LINENO" "signal.h" "ac_cv_header_signal_h" "$ac_includes_default"
11903 if test "x$ac_cv_header_signal_h" = xyes
11905 printf "%s\n" "#define HAVE_SIGNAL_H 1" >>confdefs.h
11908 ac_fn_c_check_header_compile "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default"
11909 if test "x$ac_cv_header_stdarg_h" = xyes
11911 printf "%s\n" "#define HAVE_STDARG_H 1" >>confdefs.h
11914 ac_fn_c_check_header_compile "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
11915 if test "x$ac_cv_header_stdint_h" = xyes
11917 printf "%s\n" "#define HAVE_STDINT_H 1" >>confdefs.h
11920 ac_fn_c_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
11921 if test "x$ac_cv_header_stdlib_h" = xyes
11923 printf "%s\n" "#define HAVE_STDLIB_H 1" >>confdefs.h
11926 ac_fn_c_check_header_compile "$LINENO" "termios.h" "ac_cv_header_termios_h" "$ac_includes_default"
11927 if test "x$ac_cv_header_termios_h" = xyes
11929 printf "%s\n" "#define HAVE_TERMIOS_H 1" >>confdefs.h
11932 ac_fn_c_check_header_compile "$LINENO" "termio.h" "ac_cv_header_termio_h" "$ac_includes_default"
11933 if test "x$ac_cv_header_termio_h" = xyes
11935 printf "%s\n" "#define HAVE_TERMIO_H 1" >>confdefs.h
11938 ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
11939 if test "x$ac_cv_header_unistd_h" = xyes
11941 printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
11944 ac_fn_c_check_header_compile "$LINENO" "utime.h" "ac_cv_header_utime_h" "$ac_includes_default"
11945 if test "x$ac_cv_header_utime_h" = xyes
11947 printf "%s\n" "#define HAVE_UTIME_H 1" >>confdefs.h
11950 ac_fn_c_check_header_compile "$LINENO" "attr/xattr.h" "ac_cv_header_attr_xattr_h" "$ac_includes_default"
11951 if test "x$ac_cv_header_attr_xattr_h" = xyes
11953 printf "%s\n" "#define HAVE_ATTR_XATTR_H 1" >>confdefs.h
11956 ac_fn_c_check_header_compile "$LINENO" "linux/falloc.h" "ac_cv_header_linux_falloc_h" "$ac_includes_default"
11957 if test "x$ac_cv_header_linux_falloc_h" = xyes
11959 printf "%s\n" "#define HAVE_LINUX_FALLOC_H 1" >>confdefs.h
11962 ac_fn_c_check_header_compile "$LINENO" "linux/fd.h" "ac_cv_header_linux_fd_h" "$ac_includes_default"
11963 if test "x$ac_cv_header_linux_fd_h" = xyes
11965 printf "%s\n" "#define HAVE_LINUX_FD_H 1" >>confdefs.h
11968 ac_fn_c_check_header_compile "$LINENO" "linux/fsmap.h" "ac_cv_header_linux_fsmap_h" "$ac_includes_default"
11969 if test "x$ac_cv_header_linux_fsmap_h" = xyes
11971 printf "%s\n" "#define HAVE_LINUX_FSMAP_H 1" >>confdefs.h
11974 ac_fn_c_check_header_compile "$LINENO" "linux/major.h" "ac_cv_header_linux_major_h" "$ac_includes_default"
11975 if test "x$ac_cv_header_linux_major_h" = xyes
11977 printf "%s\n" "#define HAVE_LINUX_MAJOR_H 1" >>confdefs.h
11980 ac_fn_c_check_header_compile "$LINENO" "linux/loop.h" "ac_cv_header_linux_loop_h" "$ac_includes_default"
11981 if test "x$ac_cv_header_linux_loop_h" = xyes
11983 printf "%s\n" "#define HAVE_LINUX_LOOP_H 1" >>confdefs.h
11986 ac_fn_c_check_header_compile "$LINENO" "linux/types.h" "ac_cv_header_linux_types_h" "$ac_includes_default"
11987 if test "x$ac_cv_header_linux_types_h" = xyes
11989 printf "%s\n" "#define HAVE_LINUX_TYPES_H 1" >>confdefs.h
11992 ac_fn_c_check_header_compile "$LINENO" "net/if_dl.h" "ac_cv_header_net_if_dl_h" "$ac_includes_default"
11993 if test "x$ac_cv_header_net_if_dl_h" = xyes
11995 printf "%s\n" "#define HAVE_NET_IF_DL_H 1" >>confdefs.h
11998 ac_fn_c_check_header_compile "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
11999 if test "x$ac_cv_header_netinet_in_h" = xyes
12001 printf "%s\n" "#define HAVE_NETINET_IN_H 1" >>confdefs.h
12004 ac_fn_c_check_header_compile "$LINENO" "sys/acl.h" "ac_cv_header_sys_acl_h" "$ac_includes_default"
12005 if test "x$ac_cv_header_sys_acl_h" = xyes
12007 printf "%s\n" "#define HAVE_SYS_ACL_H 1" >>confdefs.h
12010 ac_fn_c_check_header_compile "$LINENO" "sys/disklabel.h" "ac_cv_header_sys_disklabel_h" "$ac_includes_default"
12011 if test "x$ac_cv_header_sys_disklabel_h" = xyes
12013 printf "%s\n" "#define HAVE_SYS_DISKLABEL_H 1" >>confdefs.h
12016 ac_fn_c_check_header_compile "$LINENO" "sys/disk.h" "ac_cv_header_sys_disk_h" "$ac_includes_default"
12017 if test "x$ac_cv_header_sys_disk_h" = xyes
12019 printf "%s\n" "#define HAVE_SYS_DISK_H 1" >>confdefs.h
12022 ac_fn_c_check_header_compile "$LINENO" "sys/file.h" "ac_cv_header_sys_file_h" "$ac_includes_default"
12023 if test "x$ac_cv_header_sys_file_h" = xyes
12025 printf "%s\n" "#define HAVE_SYS_FILE_H 1" >>confdefs.h
12028 ac_fn_c_check_header_compile "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
12029 if test "x$ac_cv_header_sys_ioctl_h" = xyes
12031 printf "%s\n" "#define HAVE_SYS_IOCTL_H 1" >>confdefs.h
12034 ac_fn_c_check_header_compile "$LINENO" "sys/key.h" "ac_cv_header_sys_key_h" "$ac_includes_default"
12035 if test "x$ac_cv_header_sys_key_h" = xyes
12037 printf "%s\n" "#define HAVE_SYS_KEY_H 1" >>confdefs.h
12040 ac_fn_c_check_header_compile "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
12041 if test "x$ac_cv_header_sys_mkdev_h" = xyes
12043 printf "%s\n" "#define HAVE_SYS_MKDEV_H 1" >>confdefs.h
12046 ac_fn_c_check_header_compile "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
12047 if test "x$ac_cv_header_sys_mman_h" = xyes
12049 printf "%s\n" "#define HAVE_SYS_MMAN_H 1" >>confdefs.h
12052 ac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "$ac_includes_default"
12053 if test "x$ac_cv_header_sys_mount_h" = xyes
12055 printf "%s\n" "#define HAVE_SYS_MOUNT_H 1" >>confdefs.h
12058 ac_fn_c_check_header_compile "$LINENO" "sys/prctl.h" "ac_cv_header_sys_prctl_h" "$ac_includes_default"
12059 if test "x$ac_cv_header_sys_prctl_h" = xyes
12061 printf "%s\n" "#define HAVE_SYS_PRCTL_H 1" >>confdefs.h
12064 ac_fn_c_check_header_compile "$LINENO" "sys/random.h" "ac_cv_header_sys_random_h" "$ac_includes_default"
12065 if test "x$ac_cv_header_sys_random_h" = xyes
12067 printf "%s\n" "#define HAVE_SYS_RANDOM_H 1" >>confdefs.h
12070 ac_fn_c_check_header_compile "$LINENO" "sys/resource.h" "ac_cv_header_sys_resource_h" "$ac_includes_default"
12071 if test "x$ac_cv_header_sys_resource_h" = xyes
12073 printf "%s\n" "#define HAVE_SYS_RESOURCE_H 1" >>confdefs.h
12076 ac_fn_c_check_header_compile "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default"
12077 if test "x$ac_cv_header_sys_select_h" = xyes
12079 printf "%s\n" "#define HAVE_SYS_SELECT_H 1" >>confdefs.h
12082 ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
12083 if test "x$ac_cv_header_sys_socket_h" = xyes
12085 printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
12088 ac_fn_c_check_header_compile "$LINENO" "sys/sockio.h" "ac_cv_header_sys_sockio_h" "$ac_includes_default"
12089 if test "x$ac_cv_header_sys_sockio_h" = xyes
12091 printf "%s\n" "#define HAVE_SYS_SOCKIO_H 1" >>confdefs.h
12094 ac_fn_c_check_header_compile "$LINENO" "sys/stat.h" "ac_cv_header_sys_stat_h" "$ac_includes_default"
12095 if test "x$ac_cv_header_sys_stat_h" = xyes
12097 printf "%s\n" "#define HAVE_SYS_STAT_H 1" >>confdefs.h
12100 ac_fn_c_check_header_compile "$LINENO" "sys/syscall.h" "ac_cv_header_sys_syscall_h" "$ac_includes_default"
12101 if test "x$ac_cv_header_sys_syscall_h" = xyes
12103 printf "%s\n" "#define HAVE_SYS_SYSCALL_H 1" >>confdefs.h
12106 ac_fn_c_check_header_compile "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
12107 if test "x$ac_cv_header_sys_sysmacros_h" = xyes
12109 printf "%s\n" "#define HAVE_SYS_SYSMACROS_H 1" >>confdefs.h
12112 ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
12113 if test "x$ac_cv_header_sys_time_h" = xyes
12115 printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h
12118 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
12119 if test "x$ac_cv_header_sys_types_h" = xyes
12121 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
12124 ac_fn_c_check_header_compile "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default"
12125 if test "x$ac_cv_header_sys_un_h" = xyes
12127 printf "%s\n" "#define HAVE_SYS_UN_H 1" >>confdefs.h
12130 ac_fn_c_check_header_compile "$LINENO" "sys/wait.h" "ac_cv_header_sys_wait_h" "$ac_includes_default"
12131 if test "x$ac_cv_header_sys_wait_h" = xyes
12133 printf "%s\n" "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
12136 ac_fn_c_check_header_compile "$LINENO" "sys/xattr.h" "ac_cv_header_sys_xattr_h" "$ac_includes_default"
12137 if test "x$ac_cv_header_sys_xattr_h" = xyes
12139 printf "%s\n" "#define HAVE_SYS_XATTR_H 1" >>confdefs.h
12145 # The above checks only detect system headers, not the headers in
12146 # ./include/mingw/, so explicitly define them to be available.
12147 printf "%s\n" "#define HAVE_LINUX_TYPES_H 1" >>confdefs.h
12149 printf "%s\n" "#define HAVE_SYS_STAT_H 1" >>confdefs.h
12151 printf "%s\n" "#define HAVE_SYS_SYSMACROS_H 1" >>confdefs.h
12153 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
12155 printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
12159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a dd(1) program that supports iflag=fullblock" >&5
12160 printf %s "checking for a dd(1) program that supports iflag=fullblock... " >&6; }
12162 for i in dd gdd ; do
12163 if "$i" if=/dev/null of=/dev/null count=1 bs=10k 2>/dev/null iflag=fullblock oflag=append ; then
12168 if test -n "$DD" ; then
12169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DD" >&5
12170 printf "%s\n" "$DD" >&6; }
12172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not found, using dd" >&5
12173 printf "%s\n" "not found, using dd" >&6; }
12175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: No GNU-compatible dd(1) program found, expect some self-test failures." >&5
12176 printf "%s\n" "$as_me: WARNING: No GNU-compatible dd(1) program found, expect some self-test failures." >&2;}
12180 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
12181 #if HAVE_SYS_TYPES_H
12182 #include <sys/types.h>
12184 #if HAVE_SYS_SOCKET
12185 #include <sys/socket.h>
12189 if test "x$ac_cv_header_net_if_h" = xyes
12191 printf "%s\n" "#define HAVE_NET_IF_H 1" >>confdefs.h
12196 for ac_item in $ac_func_c_list
12198 if test $ac_func; then
12199 ac_fn_c_check_func "$LINENO" $ac_func ac_cv_func_$ac_func
12200 if eval test \"x\$ac_cv_func_$ac_func\" = xyes; then
12201 echo "#define $ac_item 1" >> confdefs.h
12209 if test "x$ac_cv_func_vprintf" = xno
12211 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
12212 if test "x$ac_cv_func__doprnt" = xyes
12215 printf "%s\n" "#define HAVE_DOPRNT 1" >>confdefs.h
12220 ac_fn_c_check_member "$LINENO" "struct dirent" "d_reclen" "ac_cv_member_struct_dirent_d_reclen" "#include <dirent.h>
12222 if test "x$ac_cv_member_struct_dirent_d_reclen" = xyes
12225 printf "%s\n" "#define HAVE_RECLEN_DIRENT 1" >>confdefs.h
12229 ac_fn_c_check_member "$LINENO" "struct stat" "st_atim" "ac_cv_member_struct_stat_st_atim" "$ac_includes_default"
12230 if test "x$ac_cv_member_struct_stat_st_atim" = xyes
12233 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_ATIM 1" >>confdefs.h
12238 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "#include <sys/types.h>
12240 if test "x$ac_cv_type_ssize_t" = xyes
12243 printf "%s\n" "#define HAVE_TYPE_SSIZE_T 1" >>confdefs.h
12247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
12248 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
12249 if test ${ac_cv_c_undeclared_builtin_options+y}
12251 printf %s "(cached) " >&6
12253 ac_save_CFLAGS=$CFLAGS
12254 ac_cv_c_undeclared_builtin_options='cannot detect'
12255 for ac_arg in '' -fno-builtin; do
12256 CFLAGS="$ac_save_CFLAGS $ac_arg"
12257 # This test program should *not* compile successfully.
12258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12259 /* end confdefs.h. */
12269 if ac_fn_c_try_compile "$LINENO"
12273 # This test program should compile successfully.
12274 # No library function is consistently available on
12275 # freestanding implementations, so test against a dummy
12276 # declaration. Include always-available headers on the
12277 # off chance that they somehow elicit warnings.
12278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12279 /* end confdefs.h. */
12281 #include <limits.h>
12282 #include <stdarg.h>
12283 #include <stddef.h>
12284 extern void ac_decl (int, char *);
12289 (void) ac_decl (0, (char *) 0);
12296 if ac_fn_c_try_compile "$LINENO"
12298 if test x"$ac_arg" = x
12300 ac_cv_c_undeclared_builtin_options='none needed'
12302 ac_cv_c_undeclared_builtin_options=$ac_arg
12306 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12308 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12310 CFLAGS=$ac_save_CFLAGS
12313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
12314 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
12315 case $ac_cv_c_undeclared_builtin_options in #(
12317 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12318 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12319 as_fn_error $? "cannot make $CC report undeclared builtins
12320 See \`config.log' for more details" "$LINENO" 5; } ;; #(
12322 ac_c_undeclared_builtin_options='' ;; #(
12324 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
12327 ac_fn_check_decl "$LINENO" "llseek" "ac_cv_have_decl_llseek" "#include <unistd.h>
12328 " "$ac_c_undeclared_builtin_options" "CFLAGS"
12329 if test "x$ac_cv_have_decl_llseek" = xyes
12332 printf "%s\n" "#define HAVE_LLSEEK_PROTOTYPE 1" >>confdefs.h
12335 ac_fn_check_decl "$LINENO" "lseek64" "ac_cv_have_decl_lseek64" "#define _LARGEFILE_SOURCE
12336 #define _LARGEFILE64_SOURCE
12337 #include <unistd.h>
12338 " "$ac_c_undeclared_builtin_options" "CFLAGS"
12339 if test "x$ac_cv_have_decl_lseek64" = xyes
12342 printf "%s\n" "#define HAVE_LSEEK64_PROTOTYPE 1" >>confdefs.h
12346 ac_fn_check_decl "$LINENO" "fsmap_sizeof" "ac_cv_have_decl_fsmap_sizeof" "#include <linux/fsmap.h>
12347 " "$ac_c_undeclared_builtin_options" "CFLAGS"
12348 if test "x$ac_cv_have_decl_fsmap_sizeof" = xyes
12351 printf "%s\n" "#define HAVE_FSMAP_SIZEOF 1" >>confdefs.h
12354 # Check whether --enable-largefile was given.
12355 if test ${enable_largefile+y}
12357 enableval=$enable_largefile;
12360 if test "$enable_largefile" != no; then
12362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
12363 printf %s "checking for special C compiler options needed for large files... " >&6; }
12364 if test ${ac_cv_sys_largefile_CC+y}
12366 printf %s "(cached) " >&6
12368 ac_cv_sys_largefile_CC=no
12369 if test "$GCC" != yes; then
12372 # IRIX 6.2 and later do not support large files by default,
12373 # so use the C compiler's -n32 option if that helps.
12374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12375 /* end confdefs.h. */
12376 #include <sys/types.h>
12377 /* Check that off_t can represent 2**63 - 1 correctly.
12378 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12379 since some C++ compilers masquerading as C compilers
12380 incorrectly reject 9223372036854775807. */
12381 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
12382 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12383 && LARGE_OFF_T % 2147483647 == 1)
12393 if ac_fn_c_try_compile "$LINENO"
12397 rm -f core conftest.err conftest.$ac_objext conftest.beam
12399 if ac_fn_c_try_compile "$LINENO"
12401 ac_cv_sys_largefile_CC=' -n32'; break
12403 rm -f core conftest.err conftest.$ac_objext conftest.beam
12407 rm -f conftest.$ac_ext
12410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
12411 printf "%s\n" "$ac_cv_sys_largefile_CC" >&6; }
12412 if test "$ac_cv_sys_largefile_CC" != no; then
12413 CC=$CC$ac_cv_sys_largefile_CC
12416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
12417 printf %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
12418 if test ${ac_cv_sys_file_offset_bits+y}
12420 printf %s "(cached) " >&6
12423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12424 /* end confdefs.h. */
12425 #include <sys/types.h>
12426 /* Check that off_t can represent 2**63 - 1 correctly.
12427 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12428 since some C++ compilers masquerading as C compilers
12429 incorrectly reject 9223372036854775807. */
12430 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
12431 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12432 && LARGE_OFF_T % 2147483647 == 1)
12442 if ac_fn_c_try_compile "$LINENO"
12444 ac_cv_sys_file_offset_bits=no; break
12446 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12448 /* end confdefs.h. */
12449 #define _FILE_OFFSET_BITS 64
12450 #include <sys/types.h>
12451 /* Check that off_t can represent 2**63 - 1 correctly.
12452 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12453 since some C++ compilers masquerading as C compilers
12454 incorrectly reject 9223372036854775807. */
12455 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
12456 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12457 && LARGE_OFF_T % 2147483647 == 1)
12467 if ac_fn_c_try_compile "$LINENO"
12469 ac_cv_sys_file_offset_bits=64; break
12471 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12472 ac_cv_sys_file_offset_bits=unknown
12476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
12477 printf "%s\n" "$ac_cv_sys_file_offset_bits" >&6; }
12478 case $ac_cv_sys_file_offset_bits in #(
12481 printf "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h
12485 if test $ac_cv_sys_file_offset_bits = unknown; then
12486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
12487 printf %s "checking for _LARGE_FILES value needed for large files... " >&6; }
12488 if test ${ac_cv_sys_large_files+y}
12490 printf %s "(cached) " >&6
12493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12494 /* end confdefs.h. */
12495 #include <sys/types.h>
12496 /* Check that off_t can represent 2**63 - 1 correctly.
12497 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12498 since some C++ compilers masquerading as C compilers
12499 incorrectly reject 9223372036854775807. */
12500 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
12501 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12502 && LARGE_OFF_T % 2147483647 == 1)
12512 if ac_fn_c_try_compile "$LINENO"
12514 ac_cv_sys_large_files=no; break
12516 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12518 /* end confdefs.h. */
12519 #define _LARGE_FILES 1
12520 #include <sys/types.h>
12521 /* Check that off_t can represent 2**63 - 1 correctly.
12522 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12523 since some C++ compilers masquerading as C compilers
12524 incorrectly reject 9223372036854775807. */
12525 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
12526 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12527 && LARGE_OFF_T % 2147483647 == 1)
12537 if ac_fn_c_try_compile "$LINENO"
12539 ac_cv_sys_large_files=1; break
12541 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12542 ac_cv_sys_large_files=unknown
12546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
12547 printf "%s\n" "$ac_cv_sys_large_files" >&6; }
12548 case $ac_cv_sys_large_files in #(
12551 printf "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h
12558 # The cast to long int works around a bug in the HP C Compiler
12559 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12560 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12561 # This bug is HP SR number 8606223364.
12562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
12563 printf %s "checking size of short... " >&6; }
12564 if test ${ac_cv_sizeof_short+y}
12566 printf %s "(cached) " >&6
12568 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"
12572 if test "$ac_cv_type_short" = yes; then
12573 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12574 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12575 as_fn_error 77 "cannot compute sizeof (short)
12576 See \`config.log' for more details" "$LINENO" 5; }
12578 ac_cv_sizeof_short=0
12583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
12584 printf "%s\n" "$ac_cv_sizeof_short" >&6; }
12588 printf "%s\n" "#define SIZEOF_SHORT $ac_cv_sizeof_short" >>confdefs.h
12591 # The cast to long int works around a bug in the HP C Compiler
12592 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12593 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12594 # This bug is HP SR number 8606223364.
12595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
12596 printf %s "checking size of int... " >&6; }
12597 if test ${ac_cv_sizeof_int+y}
12599 printf %s "(cached) " >&6
12601 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"
12605 if test "$ac_cv_type_int" = yes; then
12606 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12607 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12608 as_fn_error 77 "cannot compute sizeof (int)
12609 See \`config.log' for more details" "$LINENO" 5; }
12616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
12617 printf "%s\n" "$ac_cv_sizeof_int" >&6; }
12621 printf "%s\n" "#define SIZEOF_INT $ac_cv_sizeof_int" >>confdefs.h
12624 # The cast to long int works around a bug in the HP C Compiler
12625 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12626 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12627 # This bug is HP SR number 8606223364.
12628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
12629 printf %s "checking size of long... " >&6; }
12630 if test ${ac_cv_sizeof_long+y}
12632 printf %s "(cached) " >&6
12634 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"
12638 if test "$ac_cv_type_long" = yes; then
12639 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12640 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12641 as_fn_error 77 "cannot compute sizeof (long)
12642 See \`config.log' for more details" "$LINENO" 5; }
12644 ac_cv_sizeof_long=0
12649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
12650 printf "%s\n" "$ac_cv_sizeof_long" >&6; }
12654 printf "%s\n" "#define SIZEOF_LONG $ac_cv_sizeof_long" >>confdefs.h
12657 # The cast to long int works around a bug in the HP C Compiler
12658 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12659 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12660 # This bug is HP SR number 8606223364.
12661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
12662 printf %s "checking size of long long... " >&6; }
12663 if test ${ac_cv_sizeof_long_long+y}
12665 printf %s "(cached) " >&6
12667 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"
12671 if test "$ac_cv_type_long_long" = yes; then
12672 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12673 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12674 as_fn_error 77 "cannot compute sizeof (long long)
12675 See \`config.log' for more details" "$LINENO" 5; }
12677 ac_cv_sizeof_long_long=0
12682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
12683 printf "%s\n" "$ac_cv_sizeof_long_long" >&6; }
12687 printf "%s\n" "#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long" >>confdefs.h
12690 # The cast to long int works around a bug in the HP C Compiler
12691 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12692 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12693 # This bug is HP SR number 8606223364.
12694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
12695 printf %s "checking size of off_t... " >&6; }
12696 if test ${ac_cv_sizeof_off_t+y}
12698 printf %s "(cached) " >&6
12700 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"
12704 if test "$ac_cv_type_off_t" = yes; then
12705 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12706 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12707 as_fn_error 77 "cannot compute sizeof (off_t)
12708 See \`config.log' for more details" "$LINENO" 5; }
12710 ac_cv_sizeof_off_t=0
12715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
12716 printf "%s\n" "$ac_cv_sizeof_off_t" >&6; }
12720 printf "%s\n" "#define SIZEOF_OFF_T $ac_cv_sizeof_off_t" >>confdefs.h
12723 # The cast to long int works around a bug in the HP C Compiler
12724 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12725 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12726 # This bug is HP SR number 8606223364.
12727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
12728 printf %s "checking size of time_t... " >&6; }
12729 if test ${ac_cv_sizeof_time_t+y}
12731 printf %s "(cached) " >&6
12733 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" "$ac_includes_default"
12737 if test "$ac_cv_type_time_t" = yes; then
12738 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12739 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12740 as_fn_error 77 "cannot compute sizeof (time_t)
12741 See \`config.log' for more details" "$LINENO" 5; }
12743 ac_cv_sizeof_time_t=0
12748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
12749 printf "%s\n" "$ac_cv_sizeof_time_t" >&6; }
12753 printf "%s\n" "#define SIZEOF_TIME_T $ac_cv_sizeof_time_t" >>confdefs.h
12756 SIZEOF_SHORT=$ac_cv_sizeof_short
12757 SIZEOF_INT=$ac_cv_sizeof_int
12758 SIZEOF_LONG=$ac_cv_sizeof_long
12759 SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
12760 SIZEOF_OFF_T=$ac_cv_sizeof_off_t
12761 SIZEOF_TIME_T=$ac_cv_sizeof_time_t
12768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
12769 printf %s "checking whether byte ordering is bigendian... " >&6; }
12770 if test ${ac_cv_c_bigendian+y}
12772 printf %s "(cached) " >&6
12774 ac_cv_c_bigendian=unknown
12775 # See if we're dealing with a universal compiler.
12776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12777 /* end confdefs.h. */
12778 #ifndef __APPLE_CC__
12779 not a universal capable compiler
12784 if ac_fn_c_try_compile "$LINENO"
12787 # Check for potential -arch flags. It is not universal unless
12788 # there are at least two -arch flags with different values.
12791 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
12792 if test -n "$ac_prev"; then
12794 i?86 | x86_64 | ppc | ppc64)
12795 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
12798 ac_cv_c_bigendian=universal
12804 elif test "x$ac_word" = "x-arch"; then
12809 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12810 if test $ac_cv_c_bigendian = unknown; then
12811 # See if sys/param.h defines the BYTE_ORDER macro.
12812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12813 /* end confdefs.h. */
12814 #include <sys/types.h>
12815 #include <sys/param.h>
12820 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
12821 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
12823 bogus endian macros
12830 if ac_fn_c_try_compile "$LINENO"
12832 # It does; now see whether it defined to BIG_ENDIAN or not.
12833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12834 /* end confdefs.h. */
12835 #include <sys/types.h>
12836 #include <sys/param.h>
12841 #if BYTE_ORDER != BIG_ENDIAN
12849 if ac_fn_c_try_compile "$LINENO"
12851 ac_cv_c_bigendian=yes
12853 ac_cv_c_bigendian=no
12855 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12857 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12859 if test $ac_cv_c_bigendian = unknown; then
12860 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
12861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12862 /* end confdefs.h. */
12863 #include <limits.h>
12868 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
12869 bogus endian macros
12876 if ac_fn_c_try_compile "$LINENO"
12878 # It does; now see whether it defined to _BIG_ENDIAN or not.
12879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12880 /* end confdefs.h. */
12881 #include <limits.h>
12886 #ifndef _BIG_ENDIAN
12894 if ac_fn_c_try_compile "$LINENO"
12896 ac_cv_c_bigendian=yes
12898 ac_cv_c_bigendian=no
12900 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12902 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12904 if test $ac_cv_c_bigendian = unknown; then
12905 # Compile a test program.
12906 if test "$cross_compiling" = yes
12908 # Try to guess by grepping values from an object file.
12909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12910 /* end confdefs.h. */
12911 unsigned short int ascii_mm[] =
12912 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12913 unsigned short int ascii_ii[] =
12914 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12915 int use_ascii (int i) {
12916 return ascii_mm[i] + ascii_ii[i];
12918 unsigned short int ebcdic_ii[] =
12919 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12920 unsigned short int ebcdic_mm[] =
12921 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12922 int use_ebcdic (int i) {
12923 return ebcdic_mm[i] + ebcdic_ii[i];
12930 return use_ascii (foo) == use_ebcdic (foo);
12935 if ac_fn_c_try_compile "$LINENO"
12937 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
12938 ac_cv_c_bigendian=yes
12940 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
12941 if test "$ac_cv_c_bigendian" = unknown; then
12942 ac_cv_c_bigendian=no
12944 # finding both strings is unlikely to happen, but who knows?
12945 ac_cv_c_bigendian=unknown
12949 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12952 /* end confdefs.h. */
12953 $ac_includes_default
12958 /* Are we little or big endian? From Harbison&Steele. */
12962 char c[sizeof (long int)];
12965 return u.c[sizeof (long int) - 1] == 1;
12971 if ac_fn_c_try_run "$LINENO"
12973 ac_cv_c_bigendian=no
12975 ac_cv_c_bigendian=yes
12977 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12978 conftest.$ac_objext conftest.beam conftest.$ac_ext
12983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
12984 printf "%s\n" "$ac_cv_c_bigendian" >&6; }
12985 case $ac_cv_c_bigendian in #(
12987 printf "%s\n" "#define WORDS_BIGENDIAN 1" >>confdefs.h
12993 printf "%s\n" "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
12997 as_fn_error $? "unknown endianness
12998 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
13001 if test $cross_compiling = no; then
13002 BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
13004 CROSS_COMPILE="1" BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
13006 ASM_TYPES_HEADER=./asm_types.h
13008 echo "/* These defines are needed for the public ext2fs.h header file */" \
13010 if grep HAVE_SYS_TYPES_H confdefs.h > tmp_config.$$; then
13011 uniq tmp_config.$$ >> public_config.h
13013 echo "#undef HAVE_SYS_TYPES_H" >> public_config.h
13015 if grep WORDS_BIGENDIAN confdefs.h > tmp_config.$$; then
13016 uniq tmp_config.$$ >> public_config.h
13018 echo "#undef WORDS_BIGENDIAN" >> public_config.h
13020 rm -f tmp_config.$$
13021 PUBLIC_CONFIG_HEADER=./public_config.h
13023 ac_fn_c_check_header_compile "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
13024 if test "x$ac_cv_header_inttypes_h" = xyes
13026 printf "%s\n" "#define HAVE_INTTYPES_H 1" >>confdefs.h
13030 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
13031 if test "x$ac_cv_type_intptr_t" = xyes
13034 printf "%s\n" "#define HAVE_INTPTR_T 1" >>confdefs.h
13039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether struct stat has a st_flags field" >&5
13040 printf %s "checking whether struct stat has a st_flags field... " >&6; }
13041 if test ${e2fsprogs_cv_struct_st_flags+y}
13043 printf %s "(cached) " >&6
13045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13046 /* end confdefs.h. */
13047 #include <sys/stat.h>
13051 struct stat stat; stat.st_flags = 0;
13056 if ac_fn_c_try_compile "$LINENO"
13058 e2fsprogs_cv_struct_st_flags=yes
13060 e2fsprogs_cv_struct_st_flags=no
13062 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags" >&5
13066 printf "%s\n" "$e2fsprogs_cv_struct_st_flags" >&6; }
13067 if test "$e2fsprogs_cv_struct_st_flags" = yes; then
13068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether st_flags field is useful" >&5
13069 printf %s "checking whether st_flags field is useful... " >&6; }
13070 if test ${e2fsprogs_cv_struct_st_flags_immut+y}
13072 printf %s "(cached) " >&6
13074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13075 /* end confdefs.h. */
13076 #include <sys/stat.h>
13080 struct stat stat; stat.st_flags |= UF_IMMUTABLE;
13085 if ac_fn_c_try_compile "$LINENO"
13087 e2fsprogs_cv_struct_st_flags_immut=yes
13089 e2fsprogs_cv_struct_st_flags_immut=no
13091 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags_immut" >&5
13095 printf "%s\n" "$e2fsprogs_cv_struct_st_flags_immut" >&6; }
13096 if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
13098 printf "%s\n" "#define HAVE_STAT_FLAGS 1" >>confdefs.h
13102 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h>
13103 #include <sys/socket.h>
13105 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes
13108 printf "%s\n" "#define HAVE_SA_LEN 1" >>confdefs.h
13112 if test -n "$BLKID_CMT"; then
13113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for blkid_probe_get_topology in -lblkid" >&5
13114 printf %s "checking for blkid_probe_get_topology in -lblkid... " >&6; }
13115 if test ${ac_cv_lib_blkid_blkid_probe_get_topology+y}
13117 printf %s "(cached) " >&6
13119 ac_check_lib_save_LIBS=$LIBS
13120 LIBS="-lblkid $LIBS"
13121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13122 /* end confdefs.h. */
13124 /* Override any GCC internal prototype to avoid an error.
13125 Use char because int might match the return type of a GCC
13126 builtin and then its argument prototype would still apply. */
13127 char blkid_probe_get_topology ();
13131 return blkid_probe_get_topology ();
13136 if ac_fn_c_try_link "$LINENO"
13138 ac_cv_lib_blkid_blkid_probe_get_topology=yes
13140 ac_cv_lib_blkid_blkid_probe_get_topology=no
13142 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13143 conftest$ac_exeext conftest.$ac_ext
13144 LIBS=$ac_check_lib_save_LIBS
13146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_probe_get_topology" >&5
13147 printf "%s\n" "$ac_cv_lib_blkid_blkid_probe_get_topology" >&6; }
13148 if test "x$ac_cv_lib_blkid_blkid_probe_get_topology" = xyes
13151 printf "%s\n" "#define HAVE_BLKID_PROBE_GET_TOPOLOGY 1" >>confdefs.h
13155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for blkid_topology_get_dax in -lblkid" >&5
13156 printf %s "checking for blkid_topology_get_dax in -lblkid... " >&6; }
13157 if test ${ac_cv_lib_blkid_blkid_topology_get_dax+y}
13159 printf %s "(cached) " >&6
13161 ac_check_lib_save_LIBS=$LIBS
13162 LIBS="-lblkid $LIBS"
13163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13164 /* end confdefs.h. */
13166 /* Override any GCC internal prototype to avoid an error.
13167 Use char because int might match the return type of a GCC
13168 builtin and then its argument prototype would still apply. */
13169 char blkid_topology_get_dax ();
13173 return blkid_topology_get_dax ();
13178 if ac_fn_c_try_link "$LINENO"
13180 ac_cv_lib_blkid_blkid_topology_get_dax=yes
13182 ac_cv_lib_blkid_blkid_topology_get_dax=no
13184 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13185 conftest$ac_exeext conftest.$ac_ext
13186 LIBS=$ac_check_lib_save_LIBS
13188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_topology_get_dax" >&5
13189 printf "%s\n" "$ac_cv_lib_blkid_blkid_topology_get_dax" >&6; }
13190 if test "x$ac_cv_lib_blkid_blkid_topology_get_dax" = xyes
13193 printf "%s\n" "#define HAVE_BLKID_TOPOLOGY_GET_DAX 1" >>confdefs.h
13197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for blkid_probe_enable_partitions in -lblkid" >&5
13198 printf %s "checking for blkid_probe_enable_partitions in -lblkid... " >&6; }
13199 if test ${ac_cv_lib_blkid_blkid_probe_enable_partitions+y}
13201 printf %s "(cached) " >&6
13203 ac_check_lib_save_LIBS=$LIBS
13204 LIBS="-lblkid $LIBS"
13205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13206 /* end confdefs.h. */
13208 /* Override any GCC internal prototype to avoid an error.
13209 Use char because int might match the return type of a GCC
13210 builtin and then its argument prototype would still apply. */
13211 char blkid_probe_enable_partitions ();
13215 return blkid_probe_enable_partitions ();
13220 if ac_fn_c_try_link "$LINENO"
13222 ac_cv_lib_blkid_blkid_probe_enable_partitions=yes
13224 ac_cv_lib_blkid_blkid_probe_enable_partitions=no
13226 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13227 conftest$ac_exeext conftest.$ac_ext
13228 LIBS=$ac_check_lib_save_LIBS
13230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_probe_enable_partitions" >&5
13231 printf "%s\n" "$ac_cv_lib_blkid_blkid_probe_enable_partitions" >&6; }
13232 if test "x$ac_cv_lib_blkid_blkid_probe_enable_partitions" = xyes
13235 printf "%s\n" "#define HAVE_BLKID_PROBE_ENABLE_PARTITIONS 1" >>confdefs.h
13240 if test -n "$DLOPEN_LIB" ; then
13241 ac_cv_func_dlopen=yes
13243 ac_fn_c_check_func "$LINENO" "__secure_getenv" "ac_cv_func___secure_getenv"
13244 if test "x$ac_cv_func___secure_getenv" = xyes
13246 printf "%s\n" "#define HAVE___SECURE_GETENV 1" >>confdefs.h
13249 ac_fn_c_check_func "$LINENO" "add_key" "ac_cv_func_add_key"
13250 if test "x$ac_cv_func_add_key" = xyes
13252 printf "%s\n" "#define HAVE_ADD_KEY 1" >>confdefs.h
13255 ac_fn_c_check_func "$LINENO" "backtrace" "ac_cv_func_backtrace"
13256 if test "x$ac_cv_func_backtrace" = xyes
13258 printf "%s\n" "#define HAVE_BACKTRACE 1" >>confdefs.h
13261 ac_fn_c_check_func "$LINENO" "chflags" "ac_cv_func_chflags"
13262 if test "x$ac_cv_func_chflags" = xyes
13264 printf "%s\n" "#define HAVE_CHFLAGS 1" >>confdefs.h
13267 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13268 if test "x$ac_cv_func_dlopen" = xyes
13270 printf "%s\n" "#define HAVE_DLOPEN 1" >>confdefs.h
13273 ac_fn_c_check_func "$LINENO" "fadvise64" "ac_cv_func_fadvise64"
13274 if test "x$ac_cv_func_fadvise64" = xyes
13276 printf "%s\n" "#define HAVE_FADVISE64 1" >>confdefs.h
13279 ac_fn_c_check_func "$LINENO" "fallocate" "ac_cv_func_fallocate"
13280 if test "x$ac_cv_func_fallocate" = xyes
13282 printf "%s\n" "#define HAVE_FALLOCATE 1" >>confdefs.h
13285 ac_fn_c_check_func "$LINENO" "fallocate64" "ac_cv_func_fallocate64"
13286 if test "x$ac_cv_func_fallocate64" = xyes
13288 printf "%s\n" "#define HAVE_FALLOCATE64 1" >>confdefs.h
13291 ac_fn_c_check_func "$LINENO" "fchown" "ac_cv_func_fchown"
13292 if test "x$ac_cv_func_fchown" = xyes
13294 printf "%s\n" "#define HAVE_FCHOWN 1" >>confdefs.h
13297 ac_fn_c_check_func "$LINENO" "fcntl" "ac_cv_func_fcntl"
13298 if test "x$ac_cv_func_fcntl" = xyes
13300 printf "%s\n" "#define HAVE_FCNTL 1" >>confdefs.h
13303 ac_fn_c_check_func "$LINENO" "fdatasync" "ac_cv_func_fdatasync"
13304 if test "x$ac_cv_func_fdatasync" = xyes
13306 printf "%s\n" "#define HAVE_FDATASYNC 1" >>confdefs.h
13309 ac_fn_c_check_func "$LINENO" "fstat64" "ac_cv_func_fstat64"
13310 if test "x$ac_cv_func_fstat64" = xyes
13312 printf "%s\n" "#define HAVE_FSTAT64 1" >>confdefs.h
13315 ac_fn_c_check_func "$LINENO" "fsync" "ac_cv_func_fsync"
13316 if test "x$ac_cv_func_fsync" = xyes
13318 printf "%s\n" "#define HAVE_FSYNC 1" >>confdefs.h
13321 ac_fn_c_check_func "$LINENO" "ftruncate64" "ac_cv_func_ftruncate64"
13322 if test "x$ac_cv_func_ftruncate64" = xyes
13324 printf "%s\n" "#define HAVE_FTRUNCATE64 1" >>confdefs.h
13327 ac_fn_c_check_func "$LINENO" "futimes" "ac_cv_func_futimes"
13328 if test "x$ac_cv_func_futimes" = xyes
13330 printf "%s\n" "#define HAVE_FUTIMES 1" >>confdefs.h
13333 ac_fn_c_check_func "$LINENO" "getcwd" "ac_cv_func_getcwd"
13334 if test "x$ac_cv_func_getcwd" = xyes
13336 printf "%s\n" "#define HAVE_GETCWD 1" >>confdefs.h
13339 ac_fn_c_check_func "$LINENO" "getdtablesize" "ac_cv_func_getdtablesize"
13340 if test "x$ac_cv_func_getdtablesize" = xyes
13342 printf "%s\n" "#define HAVE_GETDTABLESIZE 1" >>confdefs.h
13345 ac_fn_c_check_func "$LINENO" "getentropy" "ac_cv_func_getentropy"
13346 if test "x$ac_cv_func_getentropy" = xyes
13348 printf "%s\n" "#define HAVE_GETENTROPY 1" >>confdefs.h
13351 ac_fn_c_check_func "$LINENO" "gethostname" "ac_cv_func_gethostname"
13352 if test "x$ac_cv_func_gethostname" = xyes
13354 printf "%s\n" "#define HAVE_GETHOSTNAME 1" >>confdefs.h
13357 ac_fn_c_check_func "$LINENO" "getmntinfo" "ac_cv_func_getmntinfo"
13358 if test "x$ac_cv_func_getmntinfo" = xyes
13360 printf "%s\n" "#define HAVE_GETMNTINFO 1" >>confdefs.h
13363 ac_fn_c_check_func "$LINENO" "getpwuid_r" "ac_cv_func_getpwuid_r"
13364 if test "x$ac_cv_func_getpwuid_r" = xyes
13366 printf "%s\n" "#define HAVE_GETPWUID_R 1" >>confdefs.h
13369 ac_fn_c_check_func "$LINENO" "getrandom" "ac_cv_func_getrandom"
13370 if test "x$ac_cv_func_getrandom" = xyes
13372 printf "%s\n" "#define HAVE_GETRANDOM 1" >>confdefs.h
13375 ac_fn_c_check_func "$LINENO" "getrlimit" "ac_cv_func_getrlimit"
13376 if test "x$ac_cv_func_getrlimit" = xyes
13378 printf "%s\n" "#define HAVE_GETRLIMIT 1" >>confdefs.h
13381 ac_fn_c_check_func "$LINENO" "getrusage" "ac_cv_func_getrusage"
13382 if test "x$ac_cv_func_getrusage" = xyes
13384 printf "%s\n" "#define HAVE_GETRUSAGE 1" >>confdefs.h
13387 ac_fn_c_check_func "$LINENO" "jrand48" "ac_cv_func_jrand48"
13388 if test "x$ac_cv_func_jrand48" = xyes
13390 printf "%s\n" "#define HAVE_JRAND48 1" >>confdefs.h
13393 ac_fn_c_check_func "$LINENO" "keyctl" "ac_cv_func_keyctl"
13394 if test "x$ac_cv_func_keyctl" = xyes
13396 printf "%s\n" "#define HAVE_KEYCTL 1" >>confdefs.h
13399 ac_fn_c_check_func "$LINENO" "llistxattr" "ac_cv_func_llistxattr"
13400 if test "x$ac_cv_func_llistxattr" = xyes
13402 printf "%s\n" "#define HAVE_LLISTXATTR 1" >>confdefs.h
13405 ac_fn_c_check_func "$LINENO" "llseek" "ac_cv_func_llseek"
13406 if test "x$ac_cv_func_llseek" = xyes
13408 printf "%s\n" "#define HAVE_LLSEEK 1" >>confdefs.h
13411 ac_fn_c_check_func "$LINENO" "lseek64" "ac_cv_func_lseek64"
13412 if test "x$ac_cv_func_lseek64" = xyes
13414 printf "%s\n" "#define HAVE_LSEEK64 1" >>confdefs.h
13417 ac_fn_c_check_func "$LINENO" "mallinfo" "ac_cv_func_mallinfo"
13418 if test "x$ac_cv_func_mallinfo" = xyes
13420 printf "%s\n" "#define HAVE_MALLINFO 1" >>confdefs.h
13423 ac_fn_c_check_func "$LINENO" "mallinfo2" "ac_cv_func_mallinfo2"
13424 if test "x$ac_cv_func_mallinfo2" = xyes
13426 printf "%s\n" "#define HAVE_MALLINFO2 1" >>confdefs.h
13429 ac_fn_c_check_func "$LINENO" "mbstowcs" "ac_cv_func_mbstowcs"
13430 if test "x$ac_cv_func_mbstowcs" = xyes
13432 printf "%s\n" "#define HAVE_MBSTOWCS 1" >>confdefs.h
13435 ac_fn_c_check_func "$LINENO" "memalign" "ac_cv_func_memalign"
13436 if test "x$ac_cv_func_memalign" = xyes
13438 printf "%s\n" "#define HAVE_MEMALIGN 1" >>confdefs.h
13441 ac_fn_c_check_func "$LINENO" "mempcpy" "ac_cv_func_mempcpy"
13442 if test "x$ac_cv_func_mempcpy" = xyes
13444 printf "%s\n" "#define HAVE_MEMPCPY 1" >>confdefs.h
13447 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
13448 if test "x$ac_cv_func_mmap" = xyes
13450 printf "%s\n" "#define HAVE_MMAP 1" >>confdefs.h
13453 ac_fn_c_check_func "$LINENO" "msync" "ac_cv_func_msync"
13454 if test "x$ac_cv_func_msync" = xyes
13456 printf "%s\n" "#define HAVE_MSYNC 1" >>confdefs.h
13459 ac_fn_c_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep"
13460 if test "x$ac_cv_func_nanosleep" = xyes
13462 printf "%s\n" "#define HAVE_NANOSLEEP 1" >>confdefs.h
13465 ac_fn_c_check_func "$LINENO" "open64" "ac_cv_func_open64"
13466 if test "x$ac_cv_func_open64" = xyes
13468 printf "%s\n" "#define HAVE_OPEN64 1" >>confdefs.h
13471 ac_fn_c_check_func "$LINENO" "pathconf" "ac_cv_func_pathconf"
13472 if test "x$ac_cv_func_pathconf" = xyes
13474 printf "%s\n" "#define HAVE_PATHCONF 1" >>confdefs.h
13477 ac_fn_c_check_func "$LINENO" "posix_fadvise" "ac_cv_func_posix_fadvise"
13478 if test "x$ac_cv_func_posix_fadvise" = xyes
13480 printf "%s\n" "#define HAVE_POSIX_FADVISE 1" >>confdefs.h
13483 ac_fn_c_check_func "$LINENO" "posix_fadvise64" "ac_cv_func_posix_fadvise64"
13484 if test "x$ac_cv_func_posix_fadvise64" = xyes
13486 printf "%s\n" "#define HAVE_POSIX_FADVISE64 1" >>confdefs.h
13489 ac_fn_c_check_func "$LINENO" "posix_memalign" "ac_cv_func_posix_memalign"
13490 if test "x$ac_cv_func_posix_memalign" = xyes
13492 printf "%s\n" "#define HAVE_POSIX_MEMALIGN 1" >>confdefs.h
13495 ac_fn_c_check_func "$LINENO" "prctl" "ac_cv_func_prctl"
13496 if test "x$ac_cv_func_prctl" = xyes
13498 printf "%s\n" "#define HAVE_PRCTL 1" >>confdefs.h
13501 ac_fn_c_check_func "$LINENO" "pread" "ac_cv_func_pread"
13502 if test "x$ac_cv_func_pread" = xyes
13504 printf "%s\n" "#define HAVE_PREAD 1" >>confdefs.h
13507 ac_fn_c_check_func "$LINENO" "pwrite" "ac_cv_func_pwrite"
13508 if test "x$ac_cv_func_pwrite" = xyes
13510 printf "%s\n" "#define HAVE_PWRITE 1" >>confdefs.h
13513 ac_fn_c_check_func "$LINENO" "pread64" "ac_cv_func_pread64"
13514 if test "x$ac_cv_func_pread64" = xyes
13516 printf "%s\n" "#define HAVE_PREAD64 1" >>confdefs.h
13519 ac_fn_c_check_func "$LINENO" "pwrite64" "ac_cv_func_pwrite64"
13520 if test "x$ac_cv_func_pwrite64" = xyes
13522 printf "%s\n" "#define HAVE_PWRITE64 1" >>confdefs.h
13525 ac_fn_c_check_func "$LINENO" "qsort_r" "ac_cv_func_qsort_r"
13526 if test "x$ac_cv_func_qsort_r" = xyes
13528 printf "%s\n" "#define HAVE_QSORT_R 1" >>confdefs.h
13531 ac_fn_c_check_func "$LINENO" "secure_getenv" "ac_cv_func_secure_getenv"
13532 if test "x$ac_cv_func_secure_getenv" = xyes
13534 printf "%s\n" "#define HAVE_SECURE_GETENV 1" >>confdefs.h
13537 ac_fn_c_check_func "$LINENO" "setmntent" "ac_cv_func_setmntent"
13538 if test "x$ac_cv_func_setmntent" = xyes
13540 printf "%s\n" "#define HAVE_SETMNTENT 1" >>confdefs.h
13543 ac_fn_c_check_func "$LINENO" "setresgid" "ac_cv_func_setresgid"
13544 if test "x$ac_cv_func_setresgid" = xyes
13546 printf "%s\n" "#define HAVE_SETRESGID 1" >>confdefs.h
13549 ac_fn_c_check_func "$LINENO" "setresuid" "ac_cv_func_setresuid"
13550 if test "x$ac_cv_func_setresuid" = xyes
13552 printf "%s\n" "#define HAVE_SETRESUID 1" >>confdefs.h
13555 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
13556 if test "x$ac_cv_func_snprintf" = xyes
13558 printf "%s\n" "#define HAVE_SNPRINTF 1" >>confdefs.h
13561 ac_fn_c_check_func "$LINENO" "srandom" "ac_cv_func_srandom"
13562 if test "x$ac_cv_func_srandom" = xyes
13564 printf "%s\n" "#define HAVE_SRANDOM 1" >>confdefs.h
13567 ac_fn_c_check_func "$LINENO" "stpcpy" "ac_cv_func_stpcpy"
13568 if test "x$ac_cv_func_stpcpy" = xyes
13570 printf "%s\n" "#define HAVE_STPCPY 1" >>confdefs.h
13573 ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
13574 if test "x$ac_cv_func_strcasecmp" = xyes
13576 printf "%s\n" "#define HAVE_STRCASECMP 1" >>confdefs.h
13579 ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup"
13580 if test "x$ac_cv_func_strdup" = xyes
13582 printf "%s\n" "#define HAVE_STRDUP 1" >>confdefs.h
13585 ac_fn_c_check_func "$LINENO" "strnlen" "ac_cv_func_strnlen"
13586 if test "x$ac_cv_func_strnlen" = xyes
13588 printf "%s\n" "#define HAVE_STRNLEN 1" >>confdefs.h
13591 ac_fn_c_check_func "$LINENO" "strptime" "ac_cv_func_strptime"
13592 if test "x$ac_cv_func_strptime" = xyes
13594 printf "%s\n" "#define HAVE_STRPTIME 1" >>confdefs.h
13597 ac_fn_c_check_func "$LINENO" "strtoull" "ac_cv_func_strtoull"
13598 if test "x$ac_cv_func_strtoull" = xyes
13600 printf "%s\n" "#define HAVE_STRTOULL 1" >>confdefs.h
13603 ac_fn_c_check_func "$LINENO" "sync_file_range" "ac_cv_func_sync_file_range"
13604 if test "x$ac_cv_func_sync_file_range" = xyes
13606 printf "%s\n" "#define HAVE_SYNC_FILE_RANGE 1" >>confdefs.h
13609 ac_fn_c_check_func "$LINENO" "sysconf" "ac_cv_func_sysconf"
13610 if test "x$ac_cv_func_sysconf" = xyes
13612 printf "%s\n" "#define HAVE_SYSCONF 1" >>confdefs.h
13615 ac_fn_c_check_func "$LINENO" "usleep" "ac_cv_func_usleep"
13616 if test "x$ac_cv_func_usleep" = xyes
13618 printf "%s\n" "#define HAVE_USLEEP 1" >>confdefs.h
13621 ac_fn_c_check_func "$LINENO" "utime" "ac_cv_func_utime"
13622 if test "x$ac_cv_func_utime" = xyes
13624 printf "%s\n" "#define HAVE_UTIME 1" >>confdefs.h
13627 ac_fn_c_check_func "$LINENO" "utimes" "ac_cv_func_utimes"
13628 if test "x$ac_cv_func_utimes" = xyes
13630 printf "%s\n" "#define HAVE_UTIMES 1" >>confdefs.h
13633 ac_fn_c_check_func "$LINENO" "valloc" "ac_cv_func_valloc"
13634 if test "x$ac_cv_func_valloc" = xyes
13636 printf "%s\n" "#define HAVE_VALLOC 1" >>confdefs.h
13641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
13642 printf %s "checking for socket in -lsocket... " >&6; }
13643 if test ${ac_cv_lib_socket_socket+y}
13645 printf %s "(cached) " >&6
13647 ac_check_lib_save_LIBS=$LIBS
13648 LIBS="-lsocket $LIBS"
13649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13650 /* end confdefs.h. */
13652 /* Override any GCC internal prototype to avoid an error.
13653 Use char because int might match the return type of a GCC
13654 builtin and then its argument prototype would still apply. */
13664 if ac_fn_c_try_link "$LINENO"
13666 ac_cv_lib_socket_socket=yes
13668 ac_cv_lib_socket_socket=no
13670 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13671 conftest$ac_exeext conftest.$ac_ext
13672 LIBS=$ac_check_lib_save_LIBS
13674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
13675 printf "%s\n" "$ac_cv_lib_socket_socket" >&6; }
13676 if test "x$ac_cv_lib_socket_socket" = xyes
13678 SOCKET_LIB=-lsocket
13682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for magic_file in -lmagic" >&5
13683 printf %s "checking for magic_file in -lmagic... " >&6; }
13684 if test ${ac_cv_lib_magic_magic_file+y}
13686 printf %s "(cached) " >&6
13688 ac_check_lib_save_LIBS=$LIBS
13689 LIBS="-lmagic $LIBS"
13690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13691 /* end confdefs.h. */
13693 /* Override any GCC internal prototype to avoid an error.
13694 Use char because int might match the return type of a GCC
13695 builtin and then its argument prototype would still apply. */
13696 char magic_file ();
13700 return magic_file ();
13705 if ac_fn_c_try_link "$LINENO"
13707 ac_cv_lib_magic_magic_file=yes
13709 ac_cv_lib_magic_magic_file=no
13711 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13712 conftest$ac_exeext conftest.$ac_ext
13713 LIBS=$ac_check_lib_save_LIBS
13715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_magic_magic_file" >&5
13716 printf "%s\n" "$ac_cv_lib_magic_magic_file" >&6; }
13717 if test "x$ac_cv_lib_magic_magic_file" = xyes
13720 ac_fn_c_check_header_compile "$LINENO" "magic.h" "ac_cv_header_magic_h" "$ac_includes_default"
13721 if test "x$ac_cv_header_magic_h" = xyes
13723 printf "%s\n" "#define HAVE_MAGIC_H 1" >>confdefs.h
13729 if test "$ac_cv_func_dlopen" = yes ; then
13730 MAGIC_LIB=$DLOPEN_LIB
13733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archive_read_new in -larchive" >&5
13734 printf %s "checking for archive_read_new in -larchive... " >&6; }
13735 if test ${ac_cv_lib_archive_archive_read_new+y}
13737 printf %s "(cached) " >&6
13739 ac_check_lib_save_LIBS=$LIBS
13740 LIBS="-larchive $LIBS"
13741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13742 /* end confdefs.h. */
13744 /* Override any GCC internal prototype to avoid an error.
13745 Use char because int might match the return type of a GCC
13746 builtin and then its argument prototype would still apply. */
13747 char archive_read_new ();
13751 return archive_read_new ();
13756 if ac_fn_c_try_link "$LINENO"
13758 ac_cv_lib_archive_archive_read_new=yes
13760 ac_cv_lib_archive_archive_read_new=no
13762 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13763 conftest$ac_exeext conftest.$ac_ext
13764 LIBS=$ac_check_lib_save_LIBS
13766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_archive_archive_read_new" >&5
13767 printf "%s\n" "$ac_cv_lib_archive_archive_read_new" >&6; }
13768 if test "x$ac_cv_lib_archive_archive_read_new" = xyes
13770 ARCHIVE_LIB=-larchive
13771 ac_fn_c_check_header_compile "$LINENO" "archive.h" "ac_cv_header_archive_h" "$ac_includes_default"
13772 if test "x$ac_cv_header_archive_h" = xyes
13774 printf "%s\n" "#define HAVE_ARCHIVE_H 1" >>confdefs.h
13780 if test "$ac_cv_func_dlopen" = yes ; then
13781 ARCHIVE_LIB=$DLOPEN_LIB
13784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
13785 printf %s "checking for clock_gettime in -lrt... " >&6; }
13786 if test ${ac_cv_lib_rt_clock_gettime+y}
13788 printf %s "(cached) " >&6
13790 ac_check_lib_save_LIBS=$LIBS
13792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13793 /* end confdefs.h. */
13795 /* Override any GCC internal prototype to avoid an error.
13796 Use char because int might match the return type of a GCC
13797 builtin and then its argument prototype would still apply. */
13798 char clock_gettime ();
13802 return clock_gettime ();
13807 if ac_fn_c_try_link "$LINENO"
13809 ac_cv_lib_rt_clock_gettime=yes
13811 ac_cv_lib_rt_clock_gettime=no
13813 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13814 conftest$ac_exeext conftest.$ac_ext
13815 LIBS=$ac_check_lib_save_LIBS
13817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
13818 printf "%s\n" "$ac_cv_lib_rt_clock_gettime" >&6; }
13819 if test "x$ac_cv_lib_rt_clock_gettime" = xyes
13821 CLOCK_GETTIME_LIB=-lrt
13827 # Check whether --enable-fuse2fs was given.
13828 if test ${enable_fuse2fs+y}
13830 enableval=$enable_fuse2fs; if test "$enableval" = "no"
13833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling fuse2fs" >&5
13834 printf "%s\n" "Disabling fuse2fs" >&6; }
13836 for ac_header in pthread.h fuse.h
13838 as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | $as_tr_sh`
13839 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#define _FILE_OFFSET_BITS 64
13840 #define FUSE_USE_VERSION 29
13842 if eval test \"x\$"$as_ac_Header"\" = x"yes"
13844 cat >>confdefs.h <<_ACEOF
13845 #define `printf "%s\n" "HAVE_$ac_header" | $as_tr_cpp` 1
13849 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13850 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
13851 as_fn_error $? "Cannot find fuse2fs headers.
13852 See \`config.log' for more details" "$LINENO" 5; }
13857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13858 /* end confdefs.h. */
13859 #define FUSE_USE_VERSION 29
13861 #include <linux/fs.h>
13862 #include <linux/falloc.h>
13863 #include <linux/xattr.h>
13874 if ac_fn_c_try_cpp "$LINENO"
13878 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13879 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
13880 as_fn_error $? "Cannot find fuse2fs Linux headers.
13881 See \`config.log' for more details" "$LINENO" 5; }
13883 rm -f conftest.err conftest.i conftest.$ac_ext
13885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -losxfuse" >&5
13886 printf %s "checking for fuse_main in -losxfuse... " >&6; }
13887 if test ${ac_cv_lib_osxfuse_fuse_main+y}
13889 printf %s "(cached) " >&6
13891 ac_check_lib_save_LIBS=$LIBS
13892 LIBS="-losxfuse $LIBS"
13893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13894 /* end confdefs.h. */
13896 /* Override any GCC internal prototype to avoid an error.
13897 Use char because int might match the return type of a GCC
13898 builtin and then its argument prototype would still apply. */
13903 return fuse_main ();
13908 if ac_fn_c_try_link "$LINENO"
13910 ac_cv_lib_osxfuse_fuse_main=yes
13912 ac_cv_lib_osxfuse_fuse_main=no
13914 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13915 conftest$ac_exeext conftest.$ac_ext
13916 LIBS=$ac_check_lib_save_LIBS
13918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_osxfuse_fuse_main" >&5
13919 printf "%s\n" "$ac_cv_lib_osxfuse_fuse_main" >&6; }
13920 if test "x$ac_cv_lib_osxfuse_fuse_main" = xyes
13924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -lfuse" >&5
13925 printf %s "checking for fuse_main in -lfuse... " >&6; }
13926 if test ${ac_cv_lib_fuse_fuse_main+y}
13928 printf %s "(cached) " >&6
13930 ac_check_lib_save_LIBS=$LIBS
13931 LIBS="-lfuse $LIBS"
13932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13933 /* end confdefs.h. */
13935 /* Override any GCC internal prototype to avoid an error.
13936 Use char because int might match the return type of a GCC
13937 builtin and then its argument prototype would still apply. */
13942 return fuse_main ();
13947 if ac_fn_c_try_link "$LINENO"
13949 ac_cv_lib_fuse_fuse_main=yes
13951 ac_cv_lib_fuse_fuse_main=no
13953 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13954 conftest$ac_exeext conftest.$ac_ext
13955 LIBS=$ac_check_lib_save_LIBS
13957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fuse_fuse_main" >&5
13958 printf "%s\n" "$ac_cv_lib_fuse_fuse_main" >&6; }
13959 if test "x$ac_cv_lib_fuse_fuse_main" = xyes
13963 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13964 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
13965 as_fn_error $? "Cannot find fuse library.
13966 See \`config.log' for more details" "$LINENO" 5; }
13971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling fuse2fs" >&5
13972 printf "%s\n" "Enabling fuse2fs" >&6; }
13976 for ac_header in pthread.h fuse.h
13978 as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | $as_tr_sh`
13979 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#define _FILE_OFFSET_BITS 64
13980 #define FUSE_USE_VERSION 29
13982 # include <linux/fs.h>
13983 # include <linux/falloc.h>
13984 # include <linux/xattr.h>
13987 if eval test \"x\$"$as_ac_Header"\" = x"yes"
13989 cat >>confdefs.h <<_ACEOF
13990 #define `printf "%s\n" "HAVE_$ac_header" | $as_tr_cpp` 1
13998 if test -z "$FUSE_CMT"
14000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -losxfuse" >&5
14001 printf %s "checking for fuse_main in -losxfuse... " >&6; }
14002 if test ${ac_cv_lib_osxfuse_fuse_main+y}
14004 printf %s "(cached) " >&6
14006 ac_check_lib_save_LIBS=$LIBS
14007 LIBS="-losxfuse $LIBS"
14008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14009 /* end confdefs.h. */
14011 /* Override any GCC internal prototype to avoid an error.
14012 Use char because int might match the return type of a GCC
14013 builtin and then its argument prototype would still apply. */
14018 return fuse_main ();
14023 if ac_fn_c_try_link "$LINENO"
14025 ac_cv_lib_osxfuse_fuse_main=yes
14027 ac_cv_lib_osxfuse_fuse_main=no
14029 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14030 conftest$ac_exeext conftest.$ac_ext
14031 LIBS=$ac_check_lib_save_LIBS
14033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_osxfuse_fuse_main" >&5
14034 printf "%s\n" "$ac_cv_lib_osxfuse_fuse_main" >&6; }
14035 if test "x$ac_cv_lib_osxfuse_fuse_main" = xyes
14039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -lfuse" >&5
14040 printf %s "checking for fuse_main in -lfuse... " >&6; }
14041 if test ${ac_cv_lib_fuse_fuse_main+y}
14043 printf %s "(cached) " >&6
14045 ac_check_lib_save_LIBS=$LIBS
14046 LIBS="-lfuse $LIBS"
14047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14048 /* end confdefs.h. */
14050 /* Override any GCC internal prototype to avoid an error.
14051 Use char because int might match the return type of a GCC
14052 builtin and then its argument prototype would still apply. */
14057 return fuse_main ();
14062 if ac_fn_c_try_link "$LINENO"
14064 ac_cv_lib_fuse_fuse_main=yes
14066 ac_cv_lib_fuse_fuse_main=no
14068 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14069 conftest$ac_exeext conftest.$ac_ext
14070 LIBS=$ac_check_lib_save_LIBS
14072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fuse_fuse_main" >&5
14073 printf "%s\n" "$ac_cv_lib_fuse_fuse_main" >&6; }
14074 if test "x$ac_cv_lib_fuse_fuse_main" = xyes
14084 if test -z "$FUSE_CMT"
14086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling fuse2fs by default." >&5
14087 printf "%s\n" "Enabling fuse2fs by default." >&6; }
14094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for optreset" >&5
14095 printf %s "checking for optreset... " >&6; }
14096 if test ${ac_cv_have_optreset+y}
14098 printf %s "(cached) " >&6
14100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14101 /* end confdefs.h. */
14102 #include <unistd.h>
14105 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14106 $EGREP "optreset" >/dev/null 2>&1
14108 ac_cv_have_optreset=yes
14110 ac_cv_have_optreset=no
14115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_optreset" >&5
14116 printf "%s\n" "$ac_cv_have_optreset" >&6; }
14117 if test $ac_cv_have_optreset = yes; then
14119 printf "%s\n" "#define HAVE_OPTRESET 1" >>confdefs.h
14124 echo GL_THREADS_API: ${gl_threads_api}
14125 if test "${gl_threads_api}" != none
14127 ac_fn_c_check_func "$LINENO" "sem_init" "ac_cv_func_sem_init"
14128 if test "x$ac_cv_func_sem_init" = xyes
14132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lpthread" >&5
14133 printf %s "checking for sem_init in -lpthread... " >&6; }
14134 if test ${ac_cv_lib_pthread_sem_init+y}
14136 printf %s "(cached) " >&6
14138 ac_check_lib_save_LIBS=$LIBS
14139 LIBS="-lpthread $LIBS"
14140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14141 /* end confdefs.h. */
14143 /* Override any GCC internal prototype to avoid an error.
14144 Use char because int might match the return type of a GCC
14145 builtin and then its argument prototype would still apply. */
14150 return sem_init ();
14155 if ac_fn_c_try_link "$LINENO"
14157 ac_cv_lib_pthread_sem_init=yes
14159 ac_cv_lib_pthread_sem_init=no
14161 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14162 conftest$ac_exeext conftest.$ac_ext
14163 LIBS=$ac_check_lib_save_LIBS
14165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_sem_init" >&5
14166 printf "%s\n" "$ac_cv_lib_pthread_sem_init" >&6; }
14167 if test "x$ac_cv_lib_pthread_sem_init" = xyes
14169 printf "%s\n" "#define HAVE_SEM_INIT 1" >>confdefs.h
14171 SEM_INIT_LIB=-lpthread
14173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lrt" >&5
14174 printf %s "checking for sem_init in -lrt... " >&6; }
14175 if test ${ac_cv_lib_rt_sem_init+y}
14177 printf %s "(cached) " >&6
14179 ac_check_lib_save_LIBS=$LIBS
14181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14182 /* end confdefs.h. */
14184 /* Override any GCC internal prototype to avoid an error.
14185 Use char because int might match the return type of a GCC
14186 builtin and then its argument prototype would still apply. */
14191 return sem_init ();
14196 if ac_fn_c_try_link "$LINENO"
14198 ac_cv_lib_rt_sem_init=yes
14200 ac_cv_lib_rt_sem_init=no
14202 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14203 conftest$ac_exeext conftest.$ac_ext
14204 LIBS=$ac_check_lib_save_LIBS
14206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sem_init" >&5
14207 printf "%s\n" "$ac_cv_lib_rt_sem_init" >&6; }
14208 if test "x$ac_cv_lib_rt_sem_init" = xyes
14210 printf "%s\n" "#define HAVE_SEM_INIT 1" >>confdefs.h
14214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lposix4" >&5
14215 printf %s "checking for sem_init in -lposix4... " >&6; }
14216 if test ${ac_cv_lib_posix4_sem_init+y}
14218 printf %s "(cached) " >&6
14220 ac_check_lib_save_LIBS=$LIBS
14221 LIBS="-lposix4 $LIBS"
14222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14223 /* end confdefs.h. */
14225 /* Override any GCC internal prototype to avoid an error.
14226 Use char because int might match the return type of a GCC
14227 builtin and then its argument prototype would still apply. */
14232 return sem_init ();
14237 if ac_fn_c_try_link "$LINENO"
14239 ac_cv_lib_posix4_sem_init=yes
14241 ac_cv_lib_posix4_sem_init=no
14243 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14244 conftest$ac_exeext conftest.$ac_ext
14245 LIBS=$ac_check_lib_save_LIBS
14247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sem_init" >&5
14248 printf "%s\n" "$ac_cv_lib_posix4_sem_init" >&6; }
14249 if test "x$ac_cv_lib_posix4_sem_init" = xyes
14251 printf "%s\n" "#define HAVE_SEM_INIT 1" >>confdefs.h
14253 SEM_INIT_LIB=-lposix4
14263 if test "$ac_cv_func_qsort_r" != no
14266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether qsort_r is GNU version" >&5
14267 printf %s "checking whether qsort_r is GNU version... " >&6; }
14268 if test ${e2_cv_gnu_qsort_r+y}
14270 printf %s "(cached) " >&6
14272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14273 /* end confdefs.h. */
14275 #include <stdlib.h>
14276 void (qsort_r)(void *base, size_t nmemb, size_t size,
14277 int (*compar)(const void *, const void *, void *),
14288 if ac_fn_c_try_compile "$LINENO"
14290 e2_cv_gnu_qsort_r=yes
14292 e2_cv_gnu_qsort_r=no
14294 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $e2_cv_gnu_qsort_r" >&5
14298 printf "%s\n" "$e2_cv_gnu_qsort_r" >&6; }
14299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether qsort_r is BSD version" >&5
14300 printf %s "checking whether qsort_r is BSD version... " >&6; }
14301 if test ${e2_cv_bsd_qsort_r+y}
14303 printf %s "(cached) " >&6
14305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14306 /* end confdefs.h. */
14308 #include <stdlib.h>
14309 void (qsort_r)(void *base, size_t nmemb, size_t size,
14310 void *arg, int (*compar)(void *, const void *, const void *));
14320 if ac_fn_c_try_compile "$LINENO"
14322 e2_cv_bsd_qsort_r=yes
14324 e2_cv_bsd_qsort_r=no
14326 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $e2_cv_bsd_qsort_r" >&5
14330 printf "%s\n" "$e2_cv_bsd_qsort_r" >&6; }
14331 case "$e2_cv_gnu_qsort_r:$e2_cv_bsd_qsort_r" in #(
14335 printf "%s\n" "#define HAVE_GNU_QSORT_R 1" >>confdefs.h
14341 printf "%s\n" "#define HAVE_BSD_QSORT_R 1" >>confdefs.h
14349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for unified diff option" >&5
14350 printf %s "checking for unified diff option... " >&6; }
14351 if diff -u $0 $0 > /dev/null 2>&1 ; then
14356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $UNI_DIFF_OPTS" >&5
14357 printf "%s\n" "$UNI_DIFF_OPTS" >&6; }
14362 printf "%s\n" "#define HAVE_EXT2_IOCTLS 1" >>confdefs.h
14367 printf %s "checking for mount 'nosuid' option... "
14368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14369 /* end confdefs.h. */
14370 #include <sys/mount.h>
14374 void *temp = (void *)(MS_NOSUID); (void) temp;
14379 if ac_fn_c_try_compile "$LINENO"
14382 printf "%s\n" "#define HAVE_MOUNT_NOSUID 1" >>confdefs.h
14384 ac_cv_mount_nosuid=yes
14385 printf "%s\n" "yes"
14387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14388 /* end confdefs.h. */
14389 #include <sys/mount.h>
14393 void *temp = (void *)(MNT_NOSUID); (void) temp;
14398 if ac_fn_c_try_compile "$LINENO"
14401 printf "%s\n" "#define HAVE_MOUNT_NOSUID 1" >>confdefs.h
14403 ac_cv_mount_nosuid=yes
14404 printf "%s\n" "yes"
14406 ac_cv_mount_nosuid=no
14410 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14413 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14416 printf %s "checking for mount 'nodev' option... "
14417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14418 /* end confdefs.h. */
14419 #include <sys/mount.h>
14423 void *temp = (void *)(MS_NODEV); (void) temp;
14428 if ac_fn_c_try_compile "$LINENO"
14431 printf "%s\n" "#define HAVE_MOUNT_NODEV 1" >>confdefs.h
14433 ac_cv_mount_nodev=yes
14434 printf "%s\n" "yes"
14436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14437 /* end confdefs.h. */
14438 #include <sys/mount.h>
14442 void *temp = (void *)(MNT_NODEV); (void) temp;
14447 if ac_fn_c_try_compile "$LINENO"
14450 printf "%s\n" "#define HAVE_MOUNT_NODEV 1" >>confdefs.h
14452 ac_cv_mount_nodev=yes
14453 printf "%s\n" "yes"
14455 ac_cv_mount_nodev=no
14459 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14462 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14464 # Check whether --enable-lto was given.
14465 if test ${enable_lto+y}
14467 enableval=$enable_lto;
14472 if test "$enable_lto" = "yes" || test "$enable_lto" = "probe"; then
14473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if C compiler supports LTO" >&5
14474 printf %s "checking if C compiler supports LTO... " >&6; }
14475 OLD_CFLAGS="$CFLAGS"
14476 OLD_LDFLAGS="$LDFLAGS"
14477 LTO_FLAGS="-g -flto -ffat-lto-objects"
14478 CFLAGS="$CFLAGS $LTO_FLAGS"
14479 LDFLAGS="$LDFLAGS $LTO_FLAGS"
14480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14481 /* end confdefs.h. */
14491 if ac_fn_c_try_link "$LINENO"
14493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14494 printf "%s\n" "yes" >&6; }
14495 lto_cflags=$LTO_FLAGS
14496 lto_ldflags=$LTO_FLAGS
14497 # Extract the first word of "gcc-ar", so it can be a program name with args.
14498 set dummy gcc-ar; ac_word=$2
14499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14500 printf %s "checking for $ac_word... " >&6; }
14501 if test ${ac_cv_path_gcc_ar+y}
14503 printf %s "(cached) " >&6
14507 ac_cv_path_gcc_ar="$gcc_ar" # Let the user override the test with a path.
14510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14511 for as_dir in $PATH
14514 case $as_dir in #(((
14517 *) as_dir=$as_dir/ ;;
14519 for ac_exec_ext in '' $ac_executable_extensions; do
14520 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14521 ac_cv_path_gcc_ar="$as_dir$ac_word$ac_exec_ext"
14522 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14532 gcc_ar=$ac_cv_path_gcc_ar
14533 if test -n "$gcc_ar"; then
14534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gcc_ar" >&5
14535 printf "%s\n" "$gcc_ar" >&6; }
14537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14538 printf "%s\n" "no" >&6; }
14542 # Extract the first word of "gcc-ranlib", so it can be a program name with args.
14543 set dummy gcc-ranlib; ac_word=$2
14544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14545 printf %s "checking for $ac_word... " >&6; }
14546 if test ${ac_cv_path_gcc_ranlib+y}
14548 printf %s "(cached) " >&6
14550 case $gcc_ranlib in
14552 ac_cv_path_gcc_ranlib="$gcc_ranlib" # Let the user override the test with a path.
14555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14556 for as_dir in $PATH
14559 case $as_dir in #(((
14562 *) as_dir=$as_dir/ ;;
14564 for ac_exec_ext in '' $ac_executable_extensions; do
14565 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14566 ac_cv_path_gcc_ranlib="$as_dir$ac_word$ac_exec_ext"
14567 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14577 gcc_ranlib=$ac_cv_path_gcc_ranlib
14578 if test -n "$gcc_ranlib"; then
14579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gcc_ranlib" >&5
14580 printf "%s\n" "$gcc_ranlib" >&6; }
14582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14583 printf "%s\n" "no" >&6; }
14588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14589 printf "%s\n" "no" >&6; }
14591 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14592 conftest$ac_exeext conftest.$ac_ext
14593 if test -x "$gcc_ar" && test -x "$gcc_ranlib"; then
14596 RANLIB="${gcc_ranlib}"
14598 CFLAGS="${OLD_CFLAGS}"
14599 LDFLAGS="${OLD_LDFLAGS}"
14604 if test "$enable_lto" = "yes" && test "$have_lto" != "yes"; then
14605 as_fn_error $? "LTO not supported by compiler." "$LINENO" 5
14607 # Check whether --enable-ubsan was given.
14608 if test ${enable_ubsan+y}
14610 enableval=$enable_ubsan;
14615 if test "$enable_ubsan" = "yes" || test "$enable_ubsan" = "probe"; then
14616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if C compiler supports UBSAN" >&5
14617 printf %s "checking if C compiler supports UBSAN... " >&6; }
14618 OLD_CFLAGS="$CFLAGS"
14619 OLD_LDFLAGS="$LDFLAGS"
14620 UBSAN_FLAGS="-fsanitize=undefined"
14621 CFLAGS="$CFLAGS $UBSAN_FLAGS"
14622 LDFLAGS="$LDFLAGS $UBSAN_FLAGS"
14623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14624 /* end confdefs.h. */
14634 if ac_fn_c_try_link "$LINENO"
14636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14637 printf "%s\n" "yes" >&6; }
14638 ubsan_cflags=$UBSAN_FLAGS
14639 ubsan_ldflags=$UBSAN_FLAGS
14642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14643 printf "%s\n" "no" >&6; }
14645 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14646 conftest$ac_exeext conftest.$ac_ext
14647 CFLAGS="${OLD_CFLAGS}"
14648 LDFLAGS="${OLD_LDFLAGS}"
14653 if test "$enable_ubsan" = "yes" && test "$have_ubsan" != "yes"; then
14654 as_fn_error $? "UBSAN not supported by compiler." "$LINENO" 5
14656 # Check whether --enable-addrsan was given.
14657 if test ${enable_addrsan+y}
14659 enableval=$enable_addrsan;
14664 if test "$enable_addrsan" = "yes" || test "$enable_addrsan" = "probe"; then
14665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if C compiler supports ADDRSAN" >&5
14666 printf %s "checking if C compiler supports ADDRSAN... " >&6; }
14667 OLD_CFLAGS="$CFLAGS"
14668 OLD_LDFLAGS="$LDFLAGS"
14669 ADDRSAN_FLAGS="-fsanitize=address"
14670 CFLAGS="$CFLAGS $ADDRSAN_FLAGS"
14671 LDFLAGS="$LDFLAGS $ADDRSAN_FLAGS"
14672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14673 /* end confdefs.h. */
14683 if ac_fn_c_try_link "$LINENO"
14685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14686 printf "%s\n" "yes" >&6; }
14687 addrsan_cflags=$ADDRSAN_FLAGS
14688 addrsan_ldflags=$ADDRSAN_FLAGS
14691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14692 printf "%s\n" "no" >&6; }
14694 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14695 conftest$ac_exeext conftest.$ac_ext
14696 CFLAGS="${OLD_CFLAGS}"
14697 LDFLAGS="${OLD_LDFLAGS}"
14702 if test "$enable_addrsan" = "yes" && test "$have_addrsan" != "yes"; then
14703 as_fn_error $? "ADDRSAN not supported by compiler." "$LINENO" 5
14705 # Check whether --enable-threadsan was given.
14706 if test ${enable_threadsan+y}
14708 enableval=$enable_threadsan;
14710 enable_threadsan=no
14713 if test "$enable_threadsan" = "yes" || test "$enable_threadsan" = "probe"; then
14714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if C compiler supports THREADSAN" >&5
14715 printf %s "checking if C compiler supports THREADSAN... " >&6; }
14716 OLD_CFLAGS="$CFLAGS"
14717 OLD_LDFLAGS="$LDFLAGS"
14718 THREADSAN_FLAGS="-fsanitize=thread"
14719 CFLAGS="$CFLAGS $THREADSAN_FLAGS"
14720 LDFLAGS="$LDFLAGS $THREADSAN_FLAGS"
14721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14722 /* end confdefs.h. */
14732 if ac_fn_c_try_link "$LINENO"
14734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14735 printf "%s\n" "yes" >&6; }
14736 threadsan_cflags=$THREADSAN_FLAGS
14737 threadsan_ldflags=$THREADSAN_FLAGS
14740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14741 printf "%s\n" "no" >&6; }
14743 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14744 conftest$ac_exeext conftest.$ac_ext
14745 CFLAGS="${OLD_CFLAGS}"
14746 LDFLAGS="${OLD_LDFLAGS}"
14751 if test "$enable_threadsan" = "yes" && test "$have_threadsan" != "yes"; then
14752 as_fn_error $? "THREADSAN not supported by compiler." "$LINENO" 5
14754 if test "$have_threadsan" = "yes" && test "$have_addrsan" = "yes"; then
14755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ADDRSAN and THREADSAN are not known to work together." >&5
14756 printf "%s\n" "$as_me: WARNING: ADDRSAN and THREADSAN are not known to work together." >&2;}
14759 # Check whether --enable-fuzzing was given.
14760 if test ${enable_fuzzing+y}
14762 enableval=$enable_fuzzing;
14767 if test "$enable_fuzzing" = "yes" || test "$enable_fuzzing" = "probe"; then
14775 ac_cpp='$CXXCPP $CPPFLAGS'
14776 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14777 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14778 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14779 if test -z "$CXX"; then
14780 if test -n "$CCC"; then
14783 if test -n "$ac_tool_prefix"; then
14784 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
14786 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
14787 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
14788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14789 printf %s "checking for $ac_word... " >&6; }
14790 if test ${ac_cv_prog_CXX+y}
14792 printf %s "(cached) " >&6
14794 if test -n "$CXX"; then
14795 ac_cv_prog_CXX="$CXX" # Let the user override the test.
14797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14798 for as_dir in $PATH
14801 case $as_dir in #(((
14804 *) as_dir=$as_dir/ ;;
14806 for ac_exec_ext in '' $ac_executable_extensions; do
14807 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14808 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
14809 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14818 CXX=$ac_cv_prog_CXX
14819 if test -n "$CXX"; then
14820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
14821 printf "%s\n" "$CXX" >&6; }
14823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14824 printf "%s\n" "no" >&6; }
14828 test -n "$CXX" && break
14831 if test -z "$CXX"; then
14833 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
14835 # Extract the first word of "$ac_prog", so it can be a program name with args.
14836 set dummy $ac_prog; ac_word=$2
14837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14838 printf %s "checking for $ac_word... " >&6; }
14839 if test ${ac_cv_prog_ac_ct_CXX+y}
14841 printf %s "(cached) " >&6
14843 if test -n "$ac_ct_CXX"; then
14844 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
14846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14847 for as_dir in $PATH
14850 case $as_dir in #(((
14853 *) as_dir=$as_dir/ ;;
14855 for ac_exec_ext in '' $ac_executable_extensions; do
14856 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14857 ac_cv_prog_ac_ct_CXX="$ac_prog"
14858 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14867 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
14868 if test -n "$ac_ct_CXX"; then
14869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
14870 printf "%s\n" "$ac_ct_CXX" >&6; }
14872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14873 printf "%s\n" "no" >&6; }
14877 test -n "$ac_ct_CXX" && break
14880 if test "x$ac_ct_CXX" = x; then
14883 case $cross_compiling:$ac_tool_warned in
14885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14886 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14887 ac_tool_warned=yes ;;
14895 # Provide some information about the compiler.
14896 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
14899 for ac_option in --version -v -V -qversion; do
14900 { { ac_try="$ac_compiler $ac_option >&5"
14901 case "(($ac_try" in
14902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14903 *) ac_try_echo=$ac_try;;
14905 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
14906 printf "%s\n" "$ac_try_echo"; } >&5
14907 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
14909 if test -s conftest.err; then
14911 ... rest of stderr output deleted ...
14912 10q' conftest.err >conftest.er1
14913 cat conftest.er1 >&5
14915 rm -f conftest.er1 conftest.err
14916 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14917 test $ac_status = 0; }
14920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5
14921 printf %s "checking whether the compiler supports GNU C++... " >&6; }
14922 if test ${ac_cv_cxx_compiler_gnu+y}
14924 printf %s "(cached) " >&6
14926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14927 /* end confdefs.h. */
14940 if ac_fn_cxx_try_compile "$LINENO"
14942 ac_compiler_gnu=yes
14946 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14947 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
14950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
14951 printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; }
14952 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14954 if test $ac_compiler_gnu = yes; then
14959 ac_test_CXXFLAGS=${CXXFLAGS+y}
14960 ac_save_CXXFLAGS=$CXXFLAGS
14961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
14962 printf %s "checking whether $CXX accepts -g... " >&6; }
14963 if test ${ac_cv_prog_cxx_g+y}
14965 printf %s "(cached) " >&6
14967 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
14968 ac_cxx_werror_flag=yes
14969 ac_cv_prog_cxx_g=no
14971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14972 /* end confdefs.h. */
14982 if ac_fn_cxx_try_compile "$LINENO"
14984 ac_cv_prog_cxx_g=yes
14987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14988 /* end confdefs.h. */
14998 if ac_fn_cxx_try_compile "$LINENO"
15002 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
15004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15005 /* end confdefs.h. */
15015 if ac_fn_cxx_try_compile "$LINENO"
15017 ac_cv_prog_cxx_g=yes
15019 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15021 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15023 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15024 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
15026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
15027 printf "%s\n" "$ac_cv_prog_cxx_g" >&6; }
15028 if test $ac_test_CXXFLAGS; then
15029 CXXFLAGS=$ac_save_CXXFLAGS
15030 elif test $ac_cv_prog_cxx_g = yes; then
15031 if test "$GXX" = yes; then
15037 if test "$GXX" = yes; then
15043 ac_prog_cxx_stdcxx=no
15044 if test x$ac_prog_cxx_stdcxx = xno
15046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5
15047 printf %s "checking for $CXX option to enable C++11 features... " >&6; }
15048 if test ${ac_cv_prog_cxx_cxx11+y}
15050 printf %s "(cached) " >&6
15052 ac_cv_prog_cxx_cxx11=no
15054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15055 /* end confdefs.h. */
15056 $ac_cxx_conftest_cxx11_program
15058 for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA
15060 CXX="$ac_save_CXX $ac_arg"
15061 if ac_fn_cxx_try_compile "$LINENO"
15063 ac_cv_prog_cxx_cxx11=$ac_arg
15065 rm -f core conftest.err conftest.$ac_objext conftest.beam
15066 test "x$ac_cv_prog_cxx_cxx11" != "xno" && break
15068 rm -f conftest.$ac_ext
15072 if test "x$ac_cv_prog_cxx_cxx11" = xno
15074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
15075 printf "%s\n" "unsupported" >&6; }
15077 if test "x$ac_cv_prog_cxx_cxx11" = x
15079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
15080 printf "%s\n" "none needed" >&6; }
15082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5
15083 printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; }
15084 CXX="$CXX $ac_cv_prog_cxx_cxx11"
15086 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11
15087 ac_prog_cxx_stdcxx=cxx11
15090 if test x$ac_prog_cxx_stdcxx = xno
15092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5
15093 printf %s "checking for $CXX option to enable C++98 features... " >&6; }
15094 if test ${ac_cv_prog_cxx_cxx98+y}
15096 printf %s "(cached) " >&6
15098 ac_cv_prog_cxx_cxx98=no
15100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15101 /* end confdefs.h. */
15102 $ac_cxx_conftest_cxx98_program
15104 for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA
15106 CXX="$ac_save_CXX $ac_arg"
15107 if ac_fn_cxx_try_compile "$LINENO"
15109 ac_cv_prog_cxx_cxx98=$ac_arg
15111 rm -f core conftest.err conftest.$ac_objext conftest.beam
15112 test "x$ac_cv_prog_cxx_cxx98" != "xno" && break
15114 rm -f conftest.$ac_ext
15118 if test "x$ac_cv_prog_cxx_cxx98" = xno
15120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
15121 printf "%s\n" "unsupported" >&6; }
15123 if test "x$ac_cv_prog_cxx_cxx98" = x
15125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
15126 printf "%s\n" "none needed" >&6; }
15128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5
15129 printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; }
15130 CXX="$CXX $ac_cv_prog_cxx_cxx98"
15132 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98
15133 ac_prog_cxx_stdcxx=cxx98
15138 ac_cpp='$CPP $CPPFLAGS'
15139 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15140 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15141 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if C compiler supports fuzzing sanitizer" >&5
15144 printf %s "checking if C compiler supports fuzzing sanitizer... " >&6; }
15146 ac_cpp='$CXXCPP $CPPFLAGS'
15147 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15148 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15149 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15151 OLD_CXXFLAGS="$CXXFLAGS"
15152 OLD_LDFLAGS="$LDFLAGS"
15153 FUZZER_FLAGS="-fsanitize=fuzzer"
15154 CXXFLAGS="$CXXFLAGS $FUZZER_FLAGS"
15155 LDFLAGS="$LDFLAGS $FUZZER_FLAGS"
15157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15158 /* end confdefs.h. */
15160 #include <stddef.h>
15161 #include <stdint.h>
15171 if ac_fn_cxx_try_compile "$LINENO"
15173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15174 printf "%s\n" "yes" >&6; }
15175 fuzzer_cflags=$FUZZER_FLAGS
15176 fuzzer_ldflags=$FUZZER_FLAGS
15180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15181 printf "%s\n" "no" >&6; }
15182 as_fn_error $? "fuzzing requested but not available" "$LINENO" 5
15184 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15185 CXXFLAGS="${OLD_CXXFLAGS}"
15186 LDFLAGS="${OLD_LDFLAGS}"
15188 ac_cpp='$CPP $CPPFLAGS'
15189 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15190 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15191 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15197 if test "$enable_fuzzer" = "yes" && test "$have_fuzzer" != "yes"; then
15198 as_fn_error $? "Fuzzing not supported by compiler." "$LINENO" 5
15216 E2SCRUB_CMT="$LINUX_CMT"
15219 linux* | gnu* | k*bsd*-gnu)
15220 if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
15222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, root_prefix defaults to ''" >&5
15223 printf "%s\n" "On $host_os systems, root_prefix defaults to ''" >&6; }
15228 linux* | gnu* | k*bsd*-gnu)
15229 if test "$prefix" = NONE ; then
15231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, prefix defaults to /usr" >&5
15232 printf "%s\n" "On $host_os systems, prefix defaults to /usr" >&6; }
15233 if test "$mandir" = '${prefix}/man' ; then
15234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ...and mandir defaults to /usr/share/man" >&5
15235 printf "%s\n" "...and mandir defaults to /usr/share/man" >&6; }
15236 mandir=/usr/share/man
15241 if test "$root_prefix" = NONE ; then
15242 if test "$prefix" = NONE ; then
15243 root_prefix="$ac_default_prefix"
15245 root_prefix="$prefix"
15247 root_bindir=$bindir
15248 root_sbindir=$sbindir
15249 root_libdir=$libdir
15250 root_sysconfdir=$sysconfdir
15252 root_bindir='${root_prefix}/bin'
15253 root_sbindir='${root_prefix}/sbin'
15254 root_libdir='${root_prefix}/lib'
15255 root_sysconfdir='${root_prefix}/etc'
15257 if test "$bindir" != '${exec_prefix}/bin'; then
15258 root_bindir=$bindir
15259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Setting root_bindir to $root_bindir" >&5
15260 printf "%s\n" "Setting root_bindir to $root_bindir" >&6; }
15262 if test "$sbindir" != '${exec_prefix}/sbin'; then
15263 root_sbindir=$sbindir
15264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Setting root_sbindir to $root_sbindir" >&5
15265 printf "%s\n" "Setting root_sbindir to $root_sbindir" >&6; }
15267 if test "$libdir" != '${exec_prefix}/lib'; then
15268 root_libdir=$libdir
15269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Setting root_libdir to $root_libdir" >&5
15270 printf "%s\n" "Setting root_libdir to $root_libdir" >&6; }
15272 if test "$sysconfdir" != '${prefix}/etc'; then
15273 root_sysconfdir=$sysconfdir
15274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Setting root_sysconfdir to $root_sysconfdir" >&5
15275 printf "%s\n" "Setting root_sysconfdir to $root_sysconfdir" >&6; }
15283 # Check whether --with-multiarch was given.
15284 if test ${with_multiarch+y}
15286 withval=$with_multiarch; if test "$withval" = "lib64"; then
15290 libdir=$libdir/$withval
15291 root_libdir=$root_libdir/$withval
15296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we can link with -static" >&5
15297 printf %s "checking whether we can link with -static... " >&6; }
15298 if test ${ac_cv_e2fsprogs_use_static+y}
15300 printf %s "(cached) " >&6
15302 SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS_STATIC -static"
15303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15304 /* end confdefs.h. */
15314 if ac_fn_c_try_link "$LINENO"
15316 ac_cv_e2fsprogs_use_static=yes
15318 ac_cv_e2fsprogs_use_static=no
15320 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15321 conftest$ac_exeext conftest.$ac_ext
15322 LDFLAGS=$SAVE_LDFLAGS
15327 ac_cv_e2fsprogs_use_static=no
15330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_e2fsprogs_use_static" >&5
15331 printf "%s\n" "$ac_cv_e2fsprogs_use_static" >&6; }
15332 if test $ac_cv_e2fsprogs_use_static = yes; then
15333 LDFLAGS_STATIC="$LDFLAGS_STATIC -static"
15338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Using Apple Darwin / GNU libintl workaround" >&5
15339 printf "%s\n" "Using Apple Darwin / GNU libintl workaround" >&6; }
15341 printf "%s\n" "#define _INTL_REDIRECT_MACROS 1" >>confdefs.h
15345 if test "$cross_compiling" = yes ; then
15348 DO_TEST_SUITE=check
15351 INCLUDES='-I. -I$(top_builddir)/lib -I$(top_srcdir)/lib'
15352 if test -n "$CPPFLAGS" ; then
15353 INCLUDES="$INCLUDES $CPPFLAGS"
15355 if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
15356 INCLUDES=$INCLUDES' -I$(top_builddir)/intl -I$(top_srcdir)/intl'
15358 if test -n "$WITH_DIET_LIBC" ; then
15359 INCLUDES="$INCLUDES -D_REENTRANT"
15363 INCLUDES=$INCLUDES' -I$(top_srcdir)/include/mingw'
15367 if test $cross_compiling = no; then
15368 BUILD_CFLAGS="$CFLAGS $CPPFLAGS $INCLUDES -DHAVE_CONFIG_H"
15369 BUILD_LDFLAGS="$LDFLAGS"
15373 CFLAGS_SHLIB=${CFLAGS_SHLIB:-$CFLAGS}
15374 CFLAGS_STLIB=${CFLAGS_STLIB:-$CFLAGS}
15375 LDFLAGS_SHLIB=${LDFLAGS_SHLIB:-$LDFLAGS}
15381 # Check whether --with-udev_rules_dir was given.
15382 if test ${with_udev_rules_dir+y}
15384 withval=$with_udev_rules_dir;
15386 with_udev_rules_dir=yes
15389 if test "x${with_udev_rules_dir}" != "xno"
15392 if test "x${with_udev_rules_dir}" = "xyes"
15397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for udev" >&5
15398 printf %s "checking for udev... " >&6; }
15400 if test -n "$udev_CFLAGS"; then
15401 pkg_cv_udev_CFLAGS="$udev_CFLAGS"
15402 elif test -n "$PKG_CONFIG"; then
15403 if test -n "$PKG_CONFIG" && \
15404 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"udev\""; } >&5
15405 ($PKG_CONFIG --exists --print-errors "udev") 2>&5
15407 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15408 test $ac_status = 0; }; then
15409 pkg_cv_udev_CFLAGS=`$PKG_CONFIG --cflags "udev" 2>/dev/null`
15410 test "x$?" != "x0" && pkg_failed=yes
15417 if test -n "$udev_LIBS"; then
15418 pkg_cv_udev_LIBS="$udev_LIBS"
15419 elif test -n "$PKG_CONFIG"; then
15420 if test -n "$PKG_CONFIG" && \
15421 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"udev\""; } >&5
15422 ($PKG_CONFIG --exists --print-errors "udev") 2>&5
15424 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15425 test $ac_status = 0; }; then
15426 pkg_cv_udev_LIBS=`$PKG_CONFIG --libs "udev" 2>/dev/null`
15427 test "x$?" != "x0" && pkg_failed=yes
15437 if test $pkg_failed = yes; then
15438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15439 printf "%s\n" "no" >&6; }
15441 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15442 _pkg_short_errors_supported=yes
15444 _pkg_short_errors_supported=no
15446 if test $_pkg_short_errors_supported = yes; then
15447 udev_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "udev" 2>&1`
15449 udev_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "udev" 2>&1`
15451 # Put the nasty error message in config.log where it belongs
15452 echo "$udev_PKG_ERRORS" >&5
15455 with_udev_rules_dir=""
15457 elif test $pkg_failed = untried; then
15458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15459 printf "%s\n" "no" >&6; }
15461 with_udev_rules_dir=""
15464 udev_CFLAGS=$pkg_cv_udev_CFLAGS
15465 udev_LIBS=$pkg_cv_udev_LIBS
15466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15467 printf "%s\n" "yes" >&6; }
15469 with_udev_rules_dir="$($PKG_CONFIG --variable=udevdir udev)/rules.d"
15474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for udev rules dir" >&5
15475 printf %s "checking for udev rules dir... " >&6; }
15476 pkg_udev_rules_dir="${with_udev_rules_dir}"
15477 if test -n "${pkg_udev_rules_dir}"
15480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${pkg_udev_rules_dir}" >&5
15481 printf "%s\n" "${pkg_udev_rules_dir}" >&6; }
15486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15487 printf "%s\n" "no" >&6; }
15494 have_udev="disabled"
15501 # Check whether --with-crond_dir was given.
15502 if test ${with_crond_dir+y}
15504 withval=$with_crond_dir;
15509 if test "x${with_crond_dir}" != "xno"
15512 if test "x${with_crond_dir}" = "xyes"
15515 if test -d "/etc/cron.d"
15517 with_crond_dir="/etc/cron.d"
15519 have_crond="no"; with_crond_dir=""
15523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for system crontab dir" >&5
15524 printf %s "checking for system crontab dir... " >&6; }
15525 crond_dir="${with_crond_dir}"
15526 if test -n "${crond_dir}"
15529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${crond_dir}" >&5
15530 printf "%s\n" "${crond_dir}" >&6; }
15535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15536 printf "%s\n" "no" >&6; }
15543 have_crond="disabled"
15550 # Check whether --with-systemd_unit_dir was given.
15551 if test ${with_systemd_unit_dir+y}
15553 withval=$with_systemd_unit_dir;
15555 with_systemd_unit_dir=yes
15558 if test "x${with_systemd_unit_dir}" != "xno"
15561 if test "x${with_systemd_unit_dir}" = "xyes"
15566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for systemd" >&5
15567 printf %s "checking for systemd... " >&6; }
15569 if test -n "$systemd_CFLAGS"; then
15570 pkg_cv_systemd_CFLAGS="$systemd_CFLAGS"
15571 elif test -n "$PKG_CONFIG"; then
15572 if test -n "$PKG_CONFIG" && \
15573 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"systemd\""; } >&5
15574 ($PKG_CONFIG --exists --print-errors "systemd") 2>&5
15576 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15577 test $ac_status = 0; }; then
15578 pkg_cv_systemd_CFLAGS=`$PKG_CONFIG --cflags "systemd" 2>/dev/null`
15579 test "x$?" != "x0" && pkg_failed=yes
15586 if test -n "$systemd_LIBS"; then
15587 pkg_cv_systemd_LIBS="$systemd_LIBS"
15588 elif test -n "$PKG_CONFIG"; then
15589 if test -n "$PKG_CONFIG" && \
15590 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"systemd\""; } >&5
15591 ($PKG_CONFIG --exists --print-errors "systemd") 2>&5
15593 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15594 test $ac_status = 0; }; then
15595 pkg_cv_systemd_LIBS=`$PKG_CONFIG --libs "systemd" 2>/dev/null`
15596 test "x$?" != "x0" && pkg_failed=yes
15606 if test $pkg_failed = yes; then
15607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15608 printf "%s\n" "no" >&6; }
15610 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15611 _pkg_short_errors_supported=yes
15613 _pkg_short_errors_supported=no
15615 if test $_pkg_short_errors_supported = yes; then
15616 systemd_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "systemd" 2>&1`
15618 systemd_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "systemd" 2>&1`
15620 # Put the nasty error message in config.log where it belongs
15621 echo "$systemd_PKG_ERRORS" >&5
15624 with_systemd_unit_dir=""
15626 elif test $pkg_failed = untried; then
15627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15628 printf "%s\n" "no" >&6; }
15630 with_systemd_unit_dir=""
15633 systemd_CFLAGS=$pkg_cv_systemd_CFLAGS
15634 systemd_LIBS=$pkg_cv_systemd_LIBS
15635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15636 printf "%s\n" "yes" >&6; }
15638 with_systemd_unit_dir="$($PKG_CONFIG --variable=systemdsystemunitdir systemd)"
15644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for systemd system unit dir" >&5
15645 printf %s "checking for systemd system unit dir... " >&6; }
15646 systemd_system_unit_dir="${with_systemd_unit_dir}"
15647 if test -n "${systemd_system_unit_dir}"
15650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${systemd_system_unit_dir}" >&5
15651 printf "%s\n" "${systemd_system_unit_dir}" >&6; }
15656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15657 printf "%s\n" "no" >&6; }
15664 have_systemd="disabled"
15672 OS_IO_FILE=windows_io
15680 test -d lib || mkdir lib
15681 test -d include || mkdir include
15682 test -d include/linux || mkdir include/linux
15683 test -d include/asm || mkdir include/asm
15684 if test -z "$UUID_CMT" ; then
15685 uuid_out_list="lib/uuid/Makefile lib/uuid/uuid.pc \
15686 lib/uuid/uuid_types.h"
15688 if test -z "$BLKID_CMT" ; then
15689 blkid_out_list="lib/blkid/Makefile lib/blkid/blkid.pc \
15690 lib/blkid/blkid_types.h"
15692 for i in MCONFIG Makefile \
15693 util/Makefile util/subst.conf util/gen-tarball util/install-symlink \
15694 lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \
15695 lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \
15696 $uuid_out_list $blkid_out_list lib/support/Makefile \
15697 lib/ss/ss.pc lib/et/com_err.pc lib/e2p/e2p.pc lib/ext2fs/ext2fs.pc \
15698 misc/Makefile ext2ed/Makefile e2fsck/Makefile \
15699 debugfs/Makefile tests/Makefile tests/progs/Makefile \
15700 tests/fuzz/Makefile resize/Makefile doc/Makefile \
15701 po/Makefile.in scrub/Makefile; do
15702 if test -d `dirname ${srcdir}/$i` ; then
15703 outlist="$outlist $i"
15706 ac_config_files="$ac_config_files $outlist"
15708 cat >confcache <<\_ACEOF
15709 # This file is a shell script that caches the results of configure
15710 # tests run on this system so they can be shared between configure
15711 # scripts and configure runs, see configure's option --config-cache.
15712 # It is not useful on other systems. If it contains results you don't
15713 # want to keep, you may remove or edit it.
15715 # config.status only pays attention to the cache file if you give it
15716 # the --recheck option to rerun configure.
15718 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15719 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15720 # following values.
15724 # The following way of writing the cache mishandles newlines in values,
15725 # but we know of no workaround that is simple, portable, and efficient.
15726 # So, we kill variables containing newlines.
15727 # Ultrix sh set writes to stderr and can't be redirected directly,
15728 # and sets the high bit in the cache file unless we assign to the vars.
15730 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15731 eval ac_val=\$$ac_var
15735 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15736 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15739 _ | IFS | as_nl) ;; #(
15740 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15741 *) { eval $ac_var=; unset $ac_var;} ;;
15747 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15748 *${as_nl}ac_space=\ *)
15749 # `set' does not quote correctly, so add quotes: double-quote
15750 # substitution turns \\\\ into \\, and sed turns \\ into \.
15753 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15756 # `set' quotes correctly as required by POSIX, so do not add quotes.
15757 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15766 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
15768 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15770 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15771 if test -w "$cache_file"; then
15772 if test "x$cache_file" != "x/dev/null"; then
15773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15774 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
15775 if test ! -f "$cache_file" || test -h "$cache_file"; then
15776 cat confcache >"$cache_file"
15778 case $cache_file in #(
15780 mv -f confcache "$cache_file"$$ &&
15781 mv -f "$cache_file"$$ "$cache_file" ;; #(
15783 mv -f confcache "$cache_file" ;;
15788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15789 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
15794 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15795 # Let make expand exec_prefix.
15796 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15798 DEFS=-DHAVE_CONFIG_H
15803 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15804 # 1. Remove the extension, and $U if already installed.
15805 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15806 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
15807 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15808 # will be set to the directory where LIBOBJS objects are built.
15809 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15810 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15812 LIBOBJS=$ac_libobjs
15814 LTLIBOBJS=$ac_ltlibobjs
15819 : "${CONFIG_STATUS=./config.status}"
15821 ac_clean_files_save=$ac_clean_files
15822 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15824 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
15826 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15828 # Generated by $as_me.
15829 # Run this file to recreate the current configuration.
15830 # Compiler output produced by configure, useful for debugging
15831 # configure, is in config.log if it exists.
15834 ac_cs_recheck=false
15837 SHELL=\${CONFIG_SHELL-$SHELL}
15840 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15841 ## -------------------- ##
15842 ## M4sh Initialization. ##
15843 ## -------------------- ##
15845 # Be more Bourne compatible
15846 DUALCASE=1; export DUALCASE # for MKS sh
15848 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
15852 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15853 # is contrary to our usage. Disable this feature.
15854 alias -g '${1+"$@"}'='"$@"'
15855 setopt NO_GLOB_SUBST
15857 case `(set -o) 2>/dev/null` in #(
15867 # Reset variables that may have inherited troublesome values from
15870 # IFS needs to be set, to space, tab, and newline, in precisely that order.
15871 # (If _AS_PATH_WALK were called with IFS unset, it would have the
15872 # side effect of setting IFS to empty, thus disabling word splitting.)
15873 # Quoting is to prevent editors from complaining about space-tab.
15883 # Ensure predictable behavior from utilities with locale-dependent output.
15889 # We cannot yet rely on "unset" to work, but we need these variables
15890 # to be unset--not just set to an empty or harmless value--now, to
15891 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
15892 # also avoids known problems related to "unset" and subshell syntax
15893 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
15894 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
15895 do eval test \${$as_var+y} \
15896 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15899 # Ensure that fds 0, 1, and 2 are open.
15900 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
15901 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
15902 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
15904 # The user is always right.
15905 if ${PATH_SEPARATOR+false} :; then
15907 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15908 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15914 # Find who we are. Look in the path if we contain no directory separator.
15917 *[\\/]* ) as_myself=$0 ;;
15918 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15919 for as_dir in $PATH
15922 case $as_dir in #(((
15925 *) as_dir=$as_dir/ ;;
15927 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
15933 # We did not find ourselves, most probably we were run as `sh COMMAND'
15934 # in which case we are not to be found in the path.
15935 if test "x$as_myself" = x; then
15938 if test ! -f "$as_myself"; then
15939 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15945 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15946 # ----------------------------------------
15947 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15948 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15949 # script with STATUS, using 1 if that was 0.
15952 as_status=$1; test $as_status -eq 0 && as_status=1
15954 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15955 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15957 printf "%s\n" "$as_me: error: $2" >&2
15958 as_fn_exit $as_status
15963 # as_fn_set_status STATUS
15964 # -----------------------
15965 # Set $? to STATUS, without forking.
15966 as_fn_set_status ()
15969 } # as_fn_set_status
15971 # as_fn_exit STATUS
15972 # -----------------
15973 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15977 as_fn_set_status $1
15983 # Portably unset VAR.
15986 { eval $1=; unset $1;}
15988 as_unset=as_fn_unset
15990 # as_fn_append VAR VALUE
15991 # ----------------------
15992 # Append the text in VALUE to the end of the definition contained in VAR. Take
15993 # advantage of any shell optimizations that allow amortized linear growth over
15994 # repeated appends, instead of the typical quadratic growth present in naive
15996 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
15998 eval 'as_fn_append ()
16009 # as_fn_arith ARG...
16010 # ------------------
16011 # Perform arithmetic evaluation on the ARGs, and store the result in the
16012 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16013 # must be portable across $(()) and expr.
16014 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
16016 eval 'as_fn_arith ()
16023 as_val=`expr "$@" || test $? -eq 1`
16028 if expr a : '\(a\)' >/dev/null 2>&1 &&
16029 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16035 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16036 as_basename=basename
16041 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16047 as_me=`$as_basename -- "$0" ||
16048 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16049 X"$0" : 'X\(//\)$' \| \
16050 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16051 printf "%s\n" X/"$0" |
16052 sed '/^.*\/\([^/][^/]*\)\/*$/{
16066 # Avoid depending upon Character Ranges.
16067 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16068 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16069 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16070 as_cr_digits='0123456789'
16071 as_cr_alnum=$as_cr_Letters$as_cr_digits
16074 # Determine whether it's possible to make 'echo' print without a newline.
16075 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
16076 # for compatibility with existing Makefiles.
16077 ECHO_C= ECHO_N= ECHO_T=
16078 case `echo -n x` in #(((((
16080 case `echo 'xy\c'` in
16081 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16083 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16090 # For backward compatibility with old third-party macros, we provide
16091 # the shell variables $as_echo and $as_echo_n. New code should use
16092 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
16093 as_echo='printf %s\n'
16094 as_echo_n='printf %s'
16096 rm -f conf$$ conf$$.exe conf$$.file
16097 if test -d conf$$.dir; then
16098 rm -f conf$$.dir/conf$$.file
16101 mkdir conf$$.dir 2>/dev/null
16103 if (echo >conf$$.file) 2>/dev/null; then
16104 if ln -s conf$$.file conf$$ 2>/dev/null; then
16106 # ... but there are two gotchas:
16107 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16108 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16109 # In both cases, we have to default to `cp -pR'.
16110 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16112 elif ln conf$$.file conf$$ 2>/dev/null; then
16120 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16121 rmdir conf$$.dir 2>/dev/null
16126 # Create "$as_dir" as a directory, including parents if necessary.
16131 -*) as_dir=./$as_dir;;
16133 test -d "$as_dir" || eval $as_mkdir_p || {
16137 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16138 *) as_qdir=$as_dir;;
16140 as_dirs="'$as_qdir' $as_dirs"
16141 as_dir=`$as_dirname -- "$as_dir" ||
16142 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16143 X"$as_dir" : 'X\(//\)[^/]' \| \
16144 X"$as_dir" : 'X\(//\)$' \| \
16145 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16146 printf "%s\n" X"$as_dir" |
16147 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16151 /^X\(\/\/\)[^/].*/{
16164 test -d "$as_dir" && break
16166 test -z "$as_dirs" || eval "mkdir $as_dirs"
16167 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16171 if mkdir -p . 2>/dev/null; then
16172 as_mkdir_p='mkdir -p "$as_dir"'
16174 test -d ./-p && rmdir ./-p
16179 # as_fn_executable_p FILE
16180 # -----------------------
16181 # Test if FILE is an executable regular file.
16182 as_fn_executable_p ()
16184 test -f "$1" && test -x "$1"
16185 } # as_fn_executable_p
16186 as_test_x='test -x'
16187 as_executable_p=as_fn_executable_p
16189 # Sed expression to map a string onto a valid CPP name.
16190 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16192 # Sed expression to map a string onto a valid variable name.
16193 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16197 ## ----------------------------------- ##
16198 ## Main body of $CONFIG_STATUS script. ##
16199 ## ----------------------------------- ##
16201 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16203 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16204 # Save the log message, to keep $0 and so on meaningful, and to
16205 # report actual input values of CONFIG_FILES etc. instead of their
16206 # values after options handling.
16208 This file was extended by $as_me, which was
16209 generated by GNU Autoconf 2.71. Invocation command line was
16211 CONFIG_FILES = $CONFIG_FILES
16212 CONFIG_HEADERS = $CONFIG_HEADERS
16213 CONFIG_LINKS = $CONFIG_LINKS
16214 CONFIG_COMMANDS = $CONFIG_COMMANDS
16217 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16222 case $ac_config_files in *"
16223 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16226 case $ac_config_headers in *"
16227 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16231 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16232 # Files that config.status was made for.
16233 config_files="$ac_config_files"
16234 config_headers="$ac_config_headers"
16235 config_commands="$ac_config_commands"
16239 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16241 \`$as_me' instantiates files and other configuration actions
16242 from templates according to the current configuration. Unless the files
16243 and actions are specified as TAGs, all are instantiated by default.
16245 Usage: $0 [OPTION]... [TAG]...
16247 -h, --help print this help, then exit
16248 -V, --version print version number and configuration settings, then exit
16249 --config print configuration, then exit
16250 -q, --quiet, --silent
16251 do not print progress messages
16252 -d, --debug don't remove temporary files
16253 --recheck update $as_me by reconfiguring in the same conditions
16254 --file=FILE[:TEMPLATE]
16255 instantiate the configuration file FILE
16256 --header=FILE[:TEMPLATE]
16257 instantiate the configuration header FILE
16259 Configuration files:
16262 Configuration headers:
16265 Configuration commands:
16268 Report bugs to the package provider."
16271 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
16272 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
16273 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16274 ac_cs_config='$ac_cs_config_escaped'
16277 configured by $0, generated by GNU Autoconf 2.71,
16278 with options \\"\$ac_cs_config\\"
16280 Copyright (C) 2021 Free Software Foundation, Inc.
16281 This config.status script is free software; the Free Software Foundation
16282 gives unlimited permission to copy, distribute and modify it."
16289 test -n "\$AWK" || AWK=awk
16292 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16293 # The default lists apply if the user does not specify any file.
16299 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16300 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16304 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16316 # Handling of the options.
16317 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16319 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16320 printf "%s\n" "$ac_cs_version"; exit ;;
16321 --config | --confi | --conf | --con | --co | --c )
16322 printf "%s\n" "$ac_cs_config"; exit ;;
16323 --debug | --debu | --deb | --de | --d | -d )
16325 --file | --fil | --fi | --f )
16328 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16329 '') as_fn_error $? "missing file argument" ;;
16331 as_fn_append CONFIG_FILES " '$ac_optarg'"
16332 ac_need_defaults=false;;
16333 --header | --heade | --head | --hea )
16336 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16338 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16339 ac_need_defaults=false;;
16341 # Conflict between --help and --header
16342 as_fn_error $? "ambiguous option: \`$1'
16343 Try \`$0 --help' for more information.";;
16344 --help | --hel | -h )
16345 printf "%s\n" "$ac_cs_usage"; exit ;;
16346 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16347 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16350 # This is an error.
16351 -*) as_fn_error $? "unrecognized option: \`$1'
16352 Try \`$0 --help' for more information." ;;
16354 *) as_fn_append ac_config_targets " $1"
16355 ac_need_defaults=false ;;
16361 ac_configure_extra_args=
16363 if $ac_cs_silent; then
16365 ac_configure_extra_args="$ac_configure_extra_args --silent"
16369 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16370 if \$ac_cs_recheck; then
16371 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16373 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
16374 CONFIG_SHELL='$SHELL'
16375 export CONFIG_SHELL
16380 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16384 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16385 ## Running $as_me. ##
16387 printf "%s\n" "$ac_log"
16391 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16395 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
16396 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS.
16397 OBSOLETE_ALL_LINGUAS="$ALL_LINGUAS"
16398 # Capture the value of LINGUAS because we need it to compute CATALOGS.
16399 LINGUAS="${LINGUAS-%UNSET%}"
16404 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16406 # Handling of arguments.
16407 for ac_config_target in $ac_config_targets
16409 case $ac_config_target in
16410 "lib/config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/config.h" ;;
16411 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
16412 "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;;
16414 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16419 # If the user did not use the arguments to specify the items to instantiate,
16420 # then the envvar interface is used. Set only those that are not.
16421 # We use the long form for the default assignment because of an extremely
16422 # bizarre bug on SunOS 4.1.3.
16423 if $ac_need_defaults; then
16424 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
16425 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
16426 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
16429 # Have a temporary directory for convenience. Make it in the build tree
16430 # simply because there is no reason against having it here, and in addition,
16431 # creating and moving files from /tmp can sometimes cause problems.
16432 # Hook for its removal unless debugging.
16433 # Note that there is a small window in which the directory will not be cleaned:
16434 # after its creation but before its name has been assigned to `$tmp'.
16438 trap 'exit_status=$?
16439 : "${ac_tmp:=$tmp}"
16440 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16442 trap 'as_fn_exit 1' 1 2 13 15
16444 # Create a (secure) tmp directory for tmp files.
16447 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16451 tmp=./conf$$-$RANDOM
16452 (umask 077 && mkdir "$tmp")
16453 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16456 # Set up the scripts for CONFIG_FILES section.
16457 # No need to generate them if there are no CONFIG_FILES.
16458 # This happens for instance with `./config.status config.h'.
16459 if test -n "$CONFIG_FILES"; then
16461 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
16462 ac_cs_awk_getline=:
16463 ac_cs_awk_pipe_init=
16464 ac_cs_awk_read_file='
16465 while ((getline aline < (F[key])) > 0)
16468 ac_cs_awk_pipe_fini=
16470 ac_cs_awk_getline=false
16471 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
16472 ac_cs_awk_read_file='
16474 print "cat " F[key] " &&"
16475 '$ac_cs_awk_pipe_init
16476 # The final `:' finishes the AND list.
16477 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
16479 ac_cr=`echo X | tr X '\015'`
16480 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16481 # But we know of no other shell where ac_cr would be empty at this
16482 # point, so we can use a bashism as a fallback.
16483 if test "x$ac_cr" = x; then
16484 eval ac_cr=\$\'\\r\'
16486 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16487 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16490 ac_cs_awk_cr=$ac_cr
16493 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16496 # Create commands to substitute file output variables.
16498 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
16499 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
16500 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
16503 } >conf$$files.sh &&
16504 . ./conf$$files.sh ||
16505 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16506 rm -f conf$$files.sh
16509 echo "cat >conf$$subs.awk <<_ACEOF" &&
16510 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16512 } >conf$$subs.sh ||
16513 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16514 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16516 for ac_last_try in false false false false false :; do
16517 . ./conf$$subs.sh ||
16518 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16520 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16521 if test $ac_delim_n = $ac_delim_num; then
16523 elif $ac_last_try; then
16524 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16526 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16529 rm -f conf$$subs.sh
16531 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16532 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16536 s/^/S["/; s/!.*/"]=/
16546 s/\(.\{148\}\)..*/\1/
16548 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16553 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16560 s/\(.\{148\}\)..*/\1/
16562 s/["\\]/\\&/g; s/^/"/; s/$/"/
16566 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16571 ' <conf$$subs.awk | sed '
16576 ' >>$CONFIG_STATUS || ac_write_fail=1
16577 rm -f conf$$subs.awk
16578 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16580 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16581 for (key in S) S_is_set[key] = 1
16583 \$ac_cs_awk_pipe_init
16587 nfields = split(line, field, "@")
16589 len = length(field[1])
16590 for (i = 2; i < nfields; i++) {
16592 keylen = length(key)
16593 if (S_is_set[key]) {
16595 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16596 len += length(value) + length(field[++i])
16601 if (nfields == 3 && !substed) {
16603 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
16604 \$ac_cs_awk_read_file
16610 \$ac_cs_awk_pipe_fini
16613 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16614 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16615 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16618 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16619 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16622 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16623 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16624 # trailing colons and then remove the whole line if VPATH becomes empty
16625 # (actually we leave an empty line to preserve line numbers).
16626 if test "x$srcdir" = x.; then
16627 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16645 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16646 fi # test -n "$CONFIG_FILES"
16648 # Set up the scripts for CONFIG_HEADERS section.
16649 # No need to generate them if there are no CONFIG_HEADERS.
16650 # This happens for instance with `./config.status Makefile'.
16651 if test -n "$CONFIG_HEADERS"; then
16652 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16656 # Transform confdefs.h into an awk script `defines.awk', embedded as
16657 # here-document in config.status, that substitutes the proper values into
16658 # config.h.in to produce config.h.
16660 # Create a delimiter string that does not exist in confdefs.h, to ease
16661 # handling of long lines.
16663 for ac_last_try in false false :; do
16664 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16665 if test -z "$ac_tt"; then
16667 elif $ac_last_try; then
16668 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16670 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16674 # For the awk script, D is an array of macro values keyed by name,
16675 # likewise P contains macro parameters if any. Preserve backslash
16676 # newline sequences.
16678 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16680 s/.\{148\}/&'"$ac_delim"'/g
16683 s/^[ ]*#[ ]*define[ ][ ]*/ /
16690 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16692 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16696 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16697 D["\1"]=" \3\\\\\\n"\\/p
16699 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16704 s/.\{148\}/&'"$ac_delim"'/g
16709 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16712 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16714 ' <confdefs.h | sed '
16715 s/'"$ac_delim"'/"\\\
16716 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16718 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16719 for (key in D) D_is_set[key] = 1
16722 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16724 split(line, arg, " ")
16725 if (arg[1] == "#") {
16729 defundef = substr(arg[1], 2)
16732 split(mac1, mac2, "(") #)
16734 prefix = substr(line, 1, index(line, defundef) - 1)
16735 if (D_is_set[macro]) {
16736 # Preserve the white space surrounding the "#".
16737 print prefix "define", macro P[macro] D[macro]
16740 # Replace #undef with comments. This is necessary, for example,
16741 # in the case of _POSIX_SOURCE, which is predefined and required
16742 # on some systems where configure will not decide to define it.
16743 if (defundef == "undef") {
16744 print "/*", prefix defundef, macro, "*/"
16752 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16753 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16754 fi # test -n "$CONFIG_HEADERS"
16757 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16762 :[FHLC]) ac_mode=$ac_tag; continue;;
16764 case $ac_mode$ac_tag in
16766 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16767 :[FH]-) ac_tag=-:-;;
16768 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16785 -) ac_f="$ac_tmp/stdin";;
16786 *) # Look for the file first in the build tree, then in the source tree
16787 # (if the path is not absolute). The absolute path cannot be DOS-style,
16788 # because $ac_f cannot contain `:'.
16792 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16794 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16796 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16797 as_fn_append ac_file_inputs " '$ac_f'"
16800 # Let's still pretend it is `configure' which instantiates (i.e., don't
16801 # use $as_me), people would be surprised to read:
16802 # /* config.h. Generated by config.status. */
16803 configure_input='Generated from '`
16804 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16806 if test x"$ac_file" != x-; then
16807 configure_input="$ac_file. $configure_input"
16808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16809 printf "%s\n" "$as_me: creating $ac_file" >&6;}
16811 # Neutralize special characters interpreted by sed in replacement strings.
16812 case $configure_input in #(
16813 *\&* | *\|* | *\\* )
16814 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
16815 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16816 *) ac_sed_conf_input=$configure_input;;
16820 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16821 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16826 ac_dir=`$as_dirname -- "$ac_file" ||
16827 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16828 X"$ac_file" : 'X\(//\)[^/]' \| \
16829 X"$ac_file" : 'X\(//\)$' \| \
16830 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16831 printf "%s\n" X"$ac_file" |
16832 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16836 /^X\(\/\/\)[^/].*/{
16849 as_dir="$ac_dir"; as_fn_mkdir_p
16853 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16855 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
16856 # A ".." for each directory in $ac_dir_suffix.
16857 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16858 case $ac_top_builddir_sub in
16859 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16860 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16863 ac_abs_top_builddir=$ac_pwd
16864 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16865 # for backward compatibility:
16866 ac_top_builddir=$ac_top_build_prefix
16869 .) # We are building in place.
16871 ac_top_srcdir=$ac_top_builddir_sub
16872 ac_abs_top_srcdir=$ac_pwd ;;
16873 [\\/]* | ?:[\\/]* ) # Absolute name.
16874 ac_srcdir=$srcdir$ac_dir_suffix;
16875 ac_top_srcdir=$srcdir
16876 ac_abs_top_srcdir=$srcdir ;;
16877 *) # Relative name.
16878 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16879 ac_top_srcdir=$ac_top_build_prefix$srcdir
16880 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16882 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16892 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16893 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16895 ac_MKDIR_P=$MKDIR_P
16897 [\\/$]* | ?:[\\/]* ) ;;
16898 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16902 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16903 # If the template does not know about datarootdir, expand it.
16904 # FIXME: This hack should be removed a few years after 2.60.
16905 ac_datarootdir_hack=; ac_datarootdir_seen=
16916 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16917 *datarootdir*) ac_datarootdir_seen=yes;;
16918 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16920 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16922 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16923 ac_datarootdir_hack='
16924 s&@datadir@&$datadir&g
16925 s&@docdir@&$docdir&g
16926 s&@infodir@&$infodir&g
16927 s&@localedir@&$localedir&g
16928 s&@mandir@&$mandir&g
16929 s&\\\${datarootdir}&$datarootdir&g' ;;
16933 # Neutralize VPATH when `$srcdir' = `.'.
16934 # Shell code in configure.ac might set extrasub.
16935 # FIXME: do we really want to maintain this feature?
16936 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16937 ac_sed_extra="$ac_vpsub
16940 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16942 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16943 s|@configure_input@|$ac_sed_conf_input|;t t
16944 s&@top_builddir@&$ac_top_builddir_sub&;t t
16945 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16946 s&@srcdir@&$ac_srcdir&;t t
16947 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16948 s&@top_srcdir@&$ac_top_srcdir&;t t
16949 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16950 s&@builddir@&$ac_builddir&;t t
16951 s&@abs_builddir@&$ac_abs_builddir&;t t
16952 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16953 s&@INSTALL@&$ac_INSTALL&;t t
16954 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16955 $ac_datarootdir_hack
16957 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
16958 if $ac_cs_awk_getline; then
16959 $AWK -f "$ac_tmp/subs.awk"
16961 $AWK -f "$ac_tmp/subs.awk" | $SHELL
16963 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16965 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16966 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16967 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16968 "$ac_tmp/out"`; test -z "$ac_out"; } &&
16969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16970 which seems to be undefined. Please make sure it is defined" >&5
16971 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16972 which seems to be undefined. Please make sure it is defined" >&2;}
16974 rm -f "$ac_tmp/stdin"
16976 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16977 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16979 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16985 if test x"$ac_file" != x-; then
16987 printf "%s\n" "/* $configure_input */" >&1 \
16988 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16989 } >"$ac_tmp/config.h" \
16990 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16991 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16993 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
16996 mv "$ac_tmp/config.h" "$ac_file" \
16997 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17000 printf "%s\n" "/* $configure_input */" >&1 \
17001 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17002 || as_fn_error $? "could not create -" "$LINENO" 5
17006 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17007 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
17012 case $ac_file$ac_mode in
17013 "po-directories":C)
17014 for ac_file in $CONFIG_FILES; do
17015 # Support "outfile[:infile[:infile...]]"
17017 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
17019 # PO directories have a Makefile.in generated from Makefile.in.in.
17020 case "$ac_file" in */Makefile.in)
17021 # Adjust a relative srcdir.
17022 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
17023 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
17024 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
17025 # In autoconf-2.13 it is called $ac_given_srcdir.
17026 # In autoconf-2.50 it is called $srcdir.
17027 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
17028 case "$ac_given_srcdir" in
17029 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
17030 /*) top_srcdir="$ac_given_srcdir" ;;
17031 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
17033 # Treat a directory as a PO directory if and only if it has a
17034 # POTFILES.in file. This allows packages to have multiple PO
17035 # directories under different names or in different locations.
17036 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
17037 rm -f "$ac_dir/POTFILES"
17038 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
17039 gt_tab=`printf '\t'`
17040 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"
17041 POMAKEFILEDEPS="POTFILES.in"
17042 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
17043 # on $ac_dir but don't depend on user-specified configuration
17045 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
17046 # The LINGUAS file contains the set of available languages.
17047 if test -n "$OBSOLETE_ALL_LINGUAS"; then
17048 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
17050 ALL_LINGUAS=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
17051 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
17053 # The set of available languages was given in configure.in.
17054 ALL_LINGUAS=$OBSOLETE_ALL_LINGUAS
17057 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
17058 # Compute UPDATEPOFILES
17059 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
17060 # Compute DUMMYPOFILES
17061 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
17063 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
17064 case "$ac_given_srcdir" in
17066 *) srcdirpre='$(srcdir)/' ;;
17072 for lang in $ALL_LINGUAS; do
17073 POFILES="$POFILES $srcdirpre$lang.po"
17074 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
17075 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
17076 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
17078 # CATALOGS depends on both $ac_dir and the user's LINGUAS
17079 # environment variable.
17081 if test -n "$ALL_LINGUAS"; then
17082 for presentlang in $ALL_LINGUAS; do
17084 if test "%UNSET%" != "$LINGUAS"; then
17085 desiredlanguages="$LINGUAS"
17087 desiredlanguages="$ALL_LINGUAS"
17089 for desiredlang in $desiredlanguages; do
17090 # Use the presentlang catalog if desiredlang is
17091 # a. equal to presentlang, or
17092 # b. a variant of presentlang (because in this case,
17093 # presentlang can be used as a fallback for messages
17094 # which are not translated in the desiredlang catalog).
17095 case "$desiredlang" in
17096 "$presentlang"*) useit=yes;;
17099 if test $useit = yes; then
17100 INST_LINGUAS="$INST_LINGUAS $presentlang"
17105 if test -n "$INST_LINGUAS"; then
17106 for lang in $INST_LINGUAS; do
17107 CATALOGS="$CATALOGS $lang.gmo"
17110 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
17111 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"
17112 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
17113 if test -f "$f"; then
17115 *.orig | *.bak | *~) ;;
17116 *) cat "$f" >> "$ac_dir/Makefile" ;;
17131 ac_clean_files=$ac_clean_files_save
17133 test $ac_write_fail = 0 ||
17134 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17137 # configure is writing to config.log, and then calls config.status.
17138 # config.status does its own redirection, appending to config.log.
17139 # Unfortunately, on DOS this fails, as config.log is still kept open
17140 # by configure, so config.status won't be able to write to it; its
17141 # output is simply discarded. So we exec the FD to /dev/null,
17142 # effectively closing config.log, so it can be properly (re)opened and
17143 # appended to by config.status. When coming back to configure, we
17144 # need to make the FD available again.
17145 if test "$no_create" != yes; then
17147 ac_config_status_args=
17148 test "$silent" = yes &&
17149 ac_config_status_args="$ac_config_status_args --quiet"
17151 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17153 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17154 # would make configure fail if this is the last instruction.
17155 $ac_cs_success || as_fn_exit 1
17157 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17159 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17162 if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi