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
744 XGETTEXT_EXTRA_OPTIONS
745 MSGMERGE_FOR_MSGFMT_OPTION
752 GETTEXT_MACRO_VERSION
870 program_transform_name
881 ac_subst_files='MCONFIG
887 PUBLIC_CONFIG_HEADER'
889 enable_option_checking
895 enable_maintainer_mode
896 enable_symlink_install
897 enable_relative_symlinks
898 enable_symlink_relative_symlinks
900 enable_verbose_makecmds
909 enable_developer_features
919 enable_e2initrd_helper
926 enable_bmap_stats_ops
943 with_systemd_unit_dir
945 ac_precious_vars='build_alias
968 # Initialize some variables set by options.
970 ac_init_version=false
971 ac_unrecognized_opts=
973 # The variables have the same names as the options, with
974 # dashes changed to underlines.
982 program_transform_name=s,x,x,
990 # Installation directory options.
991 # These are left unexpanded so users can "make install exec_prefix=/foo"
992 # and all the variables that are supposed to be based on exec_prefix
993 # by default will actually change.
994 # Use braces instead of parens because sh, perl, etc. also accept them.
995 # (The list follows the same order as the GNU Coding Standards.)
996 bindir='${exec_prefix}/bin'
997 sbindir='${exec_prefix}/sbin'
998 libexecdir='${exec_prefix}/libexec'
999 datarootdir='${prefix}/share'
1000 datadir='${datarootdir}'
1001 sysconfdir='${prefix}/etc'
1002 sharedstatedir='${prefix}/com'
1003 localstatedir='${prefix}/var'
1004 runstatedir='${localstatedir}/run'
1005 includedir='${prefix}/include'
1006 oldincludedir='/usr/include'
1007 docdir='${datarootdir}/doc/${PACKAGE}'
1008 infodir='${datarootdir}/info'
1013 libdir='${exec_prefix}/lib'
1014 localedir='${datarootdir}/locale'
1015 mandir='${datarootdir}/man'
1021 # If the previous option needs an argument, assign it.
1022 if test -n "$ac_prev"; then
1023 eval $ac_prev=\$ac_option
1029 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1034 case $ac_dashdash$ac_option in
1038 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1040 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1041 bindir=$ac_optarg ;;
1043 -build | --build | --buil | --bui | --bu)
1044 ac_prev=build_alias ;;
1045 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1046 build_alias=$ac_optarg ;;
1048 -cache-file | --cache-file | --cache-fil | --cache-fi \
1049 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1050 ac_prev=cache_file ;;
1051 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1052 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1053 cache_file=$ac_optarg ;;
1055 --config-cache | -C)
1056 cache_file=config.cache ;;
1058 -datadir | --datadir | --datadi | --datad)
1060 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1061 datadir=$ac_optarg ;;
1063 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1064 | --dataroo | --dataro | --datar)
1065 ac_prev=datarootdir ;;
1066 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1067 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1068 datarootdir=$ac_optarg ;;
1070 -disable-* | --disable-*)
1071 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1072 # Reject names that are not valid shell variable names.
1073 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1074 as_fn_error $? "invalid feature name: \`$ac_useropt'"
1075 ac_useropt_orig=$ac_useropt
1076 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1077 case $ac_user_opts in
1079 "enable_$ac_useropt"
1081 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1082 ac_unrecognized_sep=', ';;
1084 eval enable_$ac_useropt=no ;;
1086 -docdir | --docdir | --docdi | --doc | --do)
1088 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1089 docdir=$ac_optarg ;;
1091 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1093 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1094 dvidir=$ac_optarg ;;
1096 -enable-* | --enable-*)
1097 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1098 # Reject names that are not valid shell variable names.
1099 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1100 as_fn_error $? "invalid feature name: \`$ac_useropt'"
1101 ac_useropt_orig=$ac_useropt
1102 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1103 case $ac_user_opts in
1105 "enable_$ac_useropt"
1107 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1108 ac_unrecognized_sep=', ';;
1110 eval enable_$ac_useropt=\$ac_optarg ;;
1112 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1113 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1114 | --exec | --exe | --ex)
1115 ac_prev=exec_prefix ;;
1116 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1117 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1118 | --exec=* | --exe=* | --ex=*)
1119 exec_prefix=$ac_optarg ;;
1121 -gas | --gas | --ga | --g)
1122 # Obsolete; use --with-gas.
1125 -help | --help | --hel | --he | -h)
1126 ac_init_help=long ;;
1127 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1128 ac_init_help=recursive ;;
1129 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1130 ac_init_help=short ;;
1132 -host | --host | --hos | --ho)
1133 ac_prev=host_alias ;;
1134 -host=* | --host=* | --hos=* | --ho=*)
1135 host_alias=$ac_optarg ;;
1137 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1139 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1141 htmldir=$ac_optarg ;;
1143 -includedir | --includedir | --includedi | --included | --include \
1144 | --includ | --inclu | --incl | --inc)
1145 ac_prev=includedir ;;
1146 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1147 | --includ=* | --inclu=* | --incl=* | --inc=*)
1148 includedir=$ac_optarg ;;
1150 -infodir | --infodir | --infodi | --infod | --info | --inf)
1152 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1153 infodir=$ac_optarg ;;
1155 -libdir | --libdir | --libdi | --libd)
1157 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1158 libdir=$ac_optarg ;;
1160 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1161 | --libexe | --libex | --libe)
1162 ac_prev=libexecdir ;;
1163 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1164 | --libexe=* | --libex=* | --libe=*)
1165 libexecdir=$ac_optarg ;;
1167 -localedir | --localedir | --localedi | --localed | --locale)
1168 ac_prev=localedir ;;
1169 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1170 localedir=$ac_optarg ;;
1172 -localstatedir | --localstatedir | --localstatedi | --localstated \
1173 | --localstate | --localstat | --localsta | --localst | --locals)
1174 ac_prev=localstatedir ;;
1175 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1176 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1177 localstatedir=$ac_optarg ;;
1179 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1181 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1182 mandir=$ac_optarg ;;
1184 -nfp | --nfp | --nf)
1185 # Obsolete; use --without-fp.
1188 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1189 | --no-cr | --no-c | -n)
1192 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1193 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1196 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1197 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1198 | --oldin | --oldi | --old | --ol | --o)
1199 ac_prev=oldincludedir ;;
1200 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1201 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1202 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1203 oldincludedir=$ac_optarg ;;
1205 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1207 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1208 prefix=$ac_optarg ;;
1210 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1211 | --program-pre | --program-pr | --program-p)
1212 ac_prev=program_prefix ;;
1213 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1214 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1215 program_prefix=$ac_optarg ;;
1217 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1218 | --program-suf | --program-su | --program-s)
1219 ac_prev=program_suffix ;;
1220 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1221 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1222 program_suffix=$ac_optarg ;;
1224 -program-transform-name | --program-transform-name \
1225 | --program-transform-nam | --program-transform-na \
1226 | --program-transform-n | --program-transform- \
1227 | --program-transform | --program-transfor \
1228 | --program-transfo | --program-transf \
1229 | --program-trans | --program-tran \
1230 | --progr-tra | --program-tr | --program-t)
1231 ac_prev=program_transform_name ;;
1232 -program-transform-name=* | --program-transform-name=* \
1233 | --program-transform-nam=* | --program-transform-na=* \
1234 | --program-transform-n=* | --program-transform-=* \
1235 | --program-transform=* | --program-transfor=* \
1236 | --program-transfo=* | --program-transf=* \
1237 | --program-trans=* | --program-tran=* \
1238 | --progr-tra=* | --program-tr=* | --program-t=*)
1239 program_transform_name=$ac_optarg ;;
1241 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1243 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1244 pdfdir=$ac_optarg ;;
1246 -psdir | --psdir | --psdi | --psd | --ps)
1248 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1251 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1252 | -silent | --silent | --silen | --sile | --sil)
1255 -runstatedir | --runstatedir | --runstatedi | --runstated \
1256 | --runstate | --runstat | --runsta | --runst | --runs \
1257 | --run | --ru | --r)
1258 ac_prev=runstatedir ;;
1259 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1260 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1261 | --run=* | --ru=* | --r=*)
1262 runstatedir=$ac_optarg ;;
1264 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1266 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1268 sbindir=$ac_optarg ;;
1270 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1271 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1272 | --sharedst | --shareds | --shared | --share | --shar \
1274 ac_prev=sharedstatedir ;;
1275 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1276 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1277 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1279 sharedstatedir=$ac_optarg ;;
1281 -site | --site | --sit)
1283 -site=* | --site=* | --sit=*)
1286 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1288 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1289 srcdir=$ac_optarg ;;
1291 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1292 | --syscon | --sysco | --sysc | --sys | --sy)
1293 ac_prev=sysconfdir ;;
1294 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1295 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1296 sysconfdir=$ac_optarg ;;
1298 -target | --target | --targe | --targ | --tar | --ta | --t)
1299 ac_prev=target_alias ;;
1300 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1301 target_alias=$ac_optarg ;;
1303 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1306 -version | --version | --versio | --versi | --vers | -V)
1307 ac_init_version=: ;;
1310 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1311 # Reject names that are not valid shell variable names.
1312 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1313 as_fn_error $? "invalid package name: \`$ac_useropt'"
1314 ac_useropt_orig=$ac_useropt
1315 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1316 case $ac_user_opts in
1320 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1321 ac_unrecognized_sep=', ';;
1323 eval with_$ac_useropt=\$ac_optarg ;;
1325 -without-* | --without-*)
1326 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1327 # Reject names that are not valid shell variable names.
1328 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1329 as_fn_error $? "invalid package name: \`$ac_useropt'"
1330 ac_useropt_orig=$ac_useropt
1331 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1332 case $ac_user_opts in
1336 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1337 ac_unrecognized_sep=', ';;
1339 eval with_$ac_useropt=no ;;
1342 # Obsolete; use --with-x.
1345 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1346 | --x-incl | --x-inc | --x-in | --x-i)
1347 ac_prev=x_includes ;;
1348 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1349 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1350 x_includes=$ac_optarg ;;
1352 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1353 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1354 ac_prev=x_libraries ;;
1355 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1356 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1357 x_libraries=$ac_optarg ;;
1359 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1360 Try \`$0 --help' for more information"
1364 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1365 # Reject names that are not valid shell variable names.
1366 case $ac_envvar in #(
1367 '' | [0-9]* | *[!_$as_cr_alnum]* )
1368 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1370 eval $ac_envvar=\$ac_optarg
1371 export $ac_envvar ;;
1374 # FIXME: should be removed in autoconf 3.0.
1375 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1376 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1377 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1378 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1384 if test -n "$ac_prev"; then
1385 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1386 as_fn_error $? "missing argument to $ac_option"
1389 if test -n "$ac_unrecognized_opts"; then
1390 case $enable_option_checking in
1392 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1393 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1397 # Check all directory arguments for consistency.
1398 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1399 datadir sysconfdir sharedstatedir localstatedir includedir \
1400 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1401 libdir localedir mandir runstatedir
1403 eval ac_val=\$$ac_var
1404 # Remove trailing slashes.
1407 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1408 eval $ac_var=\$ac_val;;
1410 # Be sure to have absolute directory names.
1412 [\\/$]* | ?:[\\/]* ) continue;;
1413 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1415 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1418 # There might be people who depend on the old broken behavior: `$host'
1419 # used to hold the argument of --host etc.
1420 # FIXME: To remove some day.
1423 target=$target_alias
1425 # FIXME: To remove some day.
1426 if test "x$host_alias" != x; then
1427 if test "x$build_alias" = x; then
1428 cross_compiling=maybe
1429 elif test "x$build_alias" != "x$host_alias"; then
1435 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1437 test "$silent" = yes && exec 6>/dev/null
1440 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1441 ac_ls_di=`ls -di .` &&
1442 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1443 as_fn_error $? "working directory cannot be determined"
1444 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1445 as_fn_error $? "pwd does not report name of working directory"
1448 # Find the source files, if location was not specified.
1449 if test -z "$srcdir"; then
1450 ac_srcdir_defaulted=yes
1451 # Try the directory containing this script, then the parent directory.
1452 ac_confdir=`$as_dirname -- "$as_myself" ||
1453 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1454 X"$as_myself" : 'X\(//\)[^/]' \| \
1455 X"$as_myself" : 'X\(//\)$' \| \
1456 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1457 printf "%s\n" X"$as_myself" |
1458 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1476 if test ! -r "$srcdir/$ac_unique_file"; then
1480 ac_srcdir_defaulted=no
1482 if test ! -r "$srcdir/$ac_unique_file"; then
1483 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1484 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1486 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1488 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1490 # When building in place, set srcdir=.
1491 if test "$ac_abs_confdir" = "$ac_pwd"; then
1494 # Remove unnecessary trailing slashes from srcdir.
1495 # Double slashes in file names in object file debugging info
1496 # mess up M-x gdb in Emacs.
1498 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1500 for ac_var in $ac_precious_vars; do
1501 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1502 eval ac_env_${ac_var}_value=\$${ac_var}
1503 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1504 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1508 # Report the --help message.
1510 if test "$ac_init_help" = "long"; then
1511 # Omit some internal or obsolete options to make the list less imposing.
1512 # This message is too long to be a string in the A/UX 3.1 sh.
1514 \`configure' configures this package to adapt to many kinds of systems.
1516 Usage: $0 [OPTION]... [VAR=VALUE]...
1518 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1519 VAR=VALUE. See below for descriptions of some of the useful variables.
1521 Defaults for the options are specified in brackets.
1524 -h, --help display this help and exit
1525 --help=short display options specific to this package
1526 --help=recursive display the short help of all the included packages
1527 -V, --version display version information and exit
1528 -q, --quiet, --silent do not print \`checking ...' messages
1529 --cache-file=FILE cache test results in FILE [disabled]
1530 -C, --config-cache alias for \`--cache-file=config.cache'
1531 -n, --no-create do not create output files
1532 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1534 Installation directories:
1535 --prefix=PREFIX install architecture-independent files in PREFIX
1536 [$ac_default_prefix]
1537 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1540 By default, \`make install' will install all the files in
1541 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1542 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1543 for instance \`--prefix=\$HOME'.
1545 For better control, use the options below.
1547 Fine tuning of the installation directories:
1548 --bindir=DIR user executables [EPREFIX/bin]
1549 --sbindir=DIR system admin executables [EPREFIX/sbin]
1550 --libexecdir=DIR program executables [EPREFIX/libexec]
1551 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1552 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1553 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1554 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1555 --libdir=DIR object code libraries [EPREFIX/lib]
1556 --includedir=DIR C header files [PREFIX/include]
1557 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1558 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1559 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1560 --infodir=DIR info documentation [DATAROOTDIR/info]
1561 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1562 --mandir=DIR man documentation [DATAROOTDIR/man]
1563 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1564 --htmldir=DIR html documentation [DOCDIR]
1565 --dvidir=DIR dvi documentation [DOCDIR]
1566 --pdfdir=DIR pdf documentation [DOCDIR]
1567 --psdir=DIR ps documentation [DOCDIR]
1573 --build=BUILD configure for building on BUILD [guessed]
1574 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1578 if test -n "$ac_init_help"; then
1583 --disable-option-checking ignore unrecognized --enable/--with options
1584 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1585 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1586 --enable-maintainer-mode
1587 enable makefile rules useful for maintainers
1588 --enable-symlink-install
1589 use symlinks when installing instead of hard links
1590 --enable-relative-symlinks
1591 use relative symlinks when installing
1593 --enable-symlink-build use symlinks while building instead of hard links
1594 --enable-verbose-makecmds
1595 enable verbose make command output
1596 --enable-elf-shlibs select ELF shared libraries
1597 --enable-bsd-shlibs select BSD shared libraries
1598 --enable-profile build profiling libraries
1599 --enable-gcov build for coverage testing using gcov
1600 --enable-hardening build with hardening flags such as fortify
1601 --enable-jbd-debug enable journal debugging
1602 --enable-blkid-debug enable blkid debugging
1603 --disable-testio-debug disable the use of the test I/O manager for
1605 --enable-developer-features
1606 enable features for use by ext4 developers
1607 --enable-libuuid build and use private uuid library
1608 --enable-libblkid build and use private blkid library
1609 --enable-subset enable subset-only build
1610 --disable-backtrace disable use backtrace
1611 --disable-debugfs disable support of debugfs program
1612 --disable-imager disable support of e2image program
1613 --disable-resizer disable support of e2resize program
1614 --disable-defrag disable support of e4defrag program
1615 --enable-fsck build fsck wrapper program
1616 --enable-e2initrd-helper
1617 build e2initrd-helper program
1618 --disable-tls disable use of thread local support
1619 --disable-uuidd disable building the uuid daemon
1620 --disable-mmp disable support mmp, Multi Mount Protection
1621 --disable-tdb disable tdb support
1622 --disable-bmap-stats disable collection of bitmap stats
1623 --enable-bmap-stats-ops enable collection of additional bitmap stats
1624 --disable-nls do not use Native Language Support
1625 --disable-rpath do not hardcode runtime library paths
1626 --disable-largefile omit support for large files
1627 --disable-fuse2fs do not build fuse2fs
1628 --enable-lto enable link time optimization
1629 --enable-ubsan enable undefined behavior sanitizer
1630 --enable-addrsan enable address sanitizer
1631 --enable-threadsan enable thread sanitizer
1632 --enable-fuzzing enable fuzzing sanitizer
1635 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1636 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1637 --with-diet-libc use diet libc
1638 --with-cc no longer supported, use CC= instead
1639 --with-ccopts no longer supported, use CFLAGS= instead
1640 --with-ldopts no longer supported, use LDFLAGS= instead
1641 --with-root-prefix=PREFIX
1642 override prefix variable for files to be placed in
1644 --without-pthread disable use of pthread support
1645 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1646 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1647 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1648 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1649 --without-libintl-prefix don't search for libintl in includedir and libdir
1650 --without-libarchive disable use of libarchive
1651 --with-multiarch=ARCH specify the multiarch triplet
1652 --with-udev-rules-dir[=DIR]
1653 Install udev rules into DIR.
1654 --with-crond-dir[=DIR] Install system crontabs into DIR.
1655 --with-systemd-unit-dir[=DIR]
1656 Install systemd system units into DIR.
1658 Some influential environment variables:
1659 CC C compiler command
1660 CFLAGS C compiler flags
1661 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1662 nonstandard directory <lib dir>
1663 LIBS libraries to pass to the linker, e.g. -l<library>
1664 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1665 you have headers in a nonstandard directory <include dir>
1667 PKG_CONFIG path to pkg-config utility
1669 directories to add to pkg-config's search path
1671 path overriding pkg-config's built-in search path
1672 CXX C++ compiler command
1673 CXXFLAGS C++ compiler flags
1674 udev_CFLAGS C compiler flags for udev, overriding pkg-config
1675 udev_LIBS linker flags for udev, overriding pkg-config
1677 C compiler flags for systemd, overriding pkg-config
1679 linker flags for systemd, overriding pkg-config
1681 Use these variables to override the choices made by `configure' or to help
1682 it to find libraries and programs with nonstandard names/locations.
1684 Report bugs to the package provider.
1689 if test "$ac_init_help" = "recursive"; then
1690 # If there are subdirs, report their specific --help.
1691 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1692 test -d "$ac_dir" ||
1693 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1698 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1700 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1701 # A ".." for each directory in $ac_dir_suffix.
1702 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1703 case $ac_top_builddir_sub in
1704 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1705 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1708 ac_abs_top_builddir=$ac_pwd
1709 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1710 # for backward compatibility:
1711 ac_top_builddir=$ac_top_build_prefix
1714 .) # We are building in place.
1716 ac_top_srcdir=$ac_top_builddir_sub
1717 ac_abs_top_srcdir=$ac_pwd ;;
1718 [\\/]* | ?:[\\/]* ) # Absolute name.
1719 ac_srcdir=$srcdir$ac_dir_suffix;
1720 ac_top_srcdir=$srcdir
1721 ac_abs_top_srcdir=$srcdir ;;
1723 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1724 ac_top_srcdir=$ac_top_build_prefix$srcdir
1725 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1727 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1729 cd "$ac_dir" || { ac_status=$?; continue; }
1730 # Check for configure.gnu first; this name is used for a wrapper for
1731 # Metaconfig's "Configure" on case-insensitive file systems.
1732 if test -f "$ac_srcdir/configure.gnu"; then
1734 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1735 elif test -f "$ac_srcdir/configure"; then
1737 $SHELL "$ac_srcdir/configure" --help=recursive
1739 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1741 cd "$ac_pwd" || { ac_status=$?; break; }
1745 test -n "$ac_init_help" && exit $ac_status
1746 if $ac_init_version; then
1749 generated by GNU Autoconf 2.71
1751 Copyright (C) 2021 Free Software Foundation, Inc.
1752 This configure script is free software; the Free Software Foundation
1753 gives unlimited permission to copy, distribute and modify it.
1758 ## ------------------------ ##
1759 ## Autoconf initialization. ##
1760 ## ------------------------ ##
1762 # ac_fn_c_try_compile LINENO
1763 # --------------------------
1764 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1765 ac_fn_c_try_compile ()
1767 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1768 rm -f conftest.$ac_objext conftest.beam
1769 if { { ac_try="$ac_compile"
1771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1772 *) ac_try_echo=$ac_try;;
1774 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1775 printf "%s\n" "$ac_try_echo"; } >&5
1776 (eval "$ac_compile") 2>conftest.err
1778 if test -s conftest.err; then
1779 grep -v '^ *+' conftest.err >conftest.er1
1780 cat conftest.er1 >&5
1781 mv -f conftest.er1 conftest.err
1783 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1784 test $ac_status = 0; } && {
1785 test -z "$ac_c_werror_flag" ||
1786 test ! -s conftest.err
1787 } && test -s conftest.$ac_objext
1791 printf "%s\n" "$as_me: failed program was:" >&5
1792 sed 's/^/| /' conftest.$ac_ext >&5
1796 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1797 as_fn_set_status $ac_retval
1799 } # ac_fn_c_try_compile
1801 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1802 # -------------------------------------------------------
1803 # Tests whether HEADER exists and can be compiled using the include files in
1804 # INCLUDES, setting the cache variable VAR accordingly.
1805 ac_fn_c_check_header_compile ()
1807 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1809 printf %s "checking for $2... " >&6; }
1810 if eval test \${$3+y}
1812 printf %s "(cached) " >&6
1814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1815 /* end confdefs.h. */
1819 if ac_fn_c_try_compile "$LINENO"
1825 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1829 printf "%s\n" "$ac_res" >&6; }
1830 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1832 } # ac_fn_c_check_header_compile
1834 # ac_fn_c_try_link LINENO
1835 # -----------------------
1836 # Try to link conftest.$ac_ext, and return whether this succeeded.
1839 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1840 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1841 if { { ac_try="$ac_link"
1843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1844 *) ac_try_echo=$ac_try;;
1846 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1847 printf "%s\n" "$ac_try_echo"; } >&5
1848 (eval "$ac_link") 2>conftest.err
1850 if test -s conftest.err; then
1851 grep -v '^ *+' conftest.err >conftest.er1
1852 cat conftest.er1 >&5
1853 mv -f conftest.er1 conftest.err
1855 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1856 test $ac_status = 0; } && {
1857 test -z "$ac_c_werror_flag" ||
1858 test ! -s conftest.err
1859 } && test -s conftest$ac_exeext && {
1860 test "$cross_compiling" = yes ||
1861 test -x conftest$ac_exeext
1866 printf "%s\n" "$as_me: failed program was:" >&5
1867 sed 's/^/| /' conftest.$ac_ext >&5
1871 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1872 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1873 # interfere with the next link command; also delete a directory that is
1874 # left behind by Apple's compiler. We do this before executing the actions.
1875 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1876 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1877 as_fn_set_status $ac_retval
1879 } # ac_fn_c_try_link
1881 # ac_fn_c_try_cpp LINENO
1882 # ----------------------
1883 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1886 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1887 if { { ac_try="$ac_cpp conftest.$ac_ext"
1889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1890 *) ac_try_echo=$ac_try;;
1892 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1893 printf "%s\n" "$ac_try_echo"; } >&5
1894 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1896 if test -s conftest.err; then
1897 grep -v '^ *+' conftest.err >conftest.er1
1898 cat conftest.er1 >&5
1899 mv -f conftest.er1 conftest.err
1901 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1902 test $ac_status = 0; } > conftest.i && {
1903 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1904 test ! -s conftest.err
1909 printf "%s\n" "$as_me: failed program was:" >&5
1910 sed 's/^/| /' conftest.$ac_ext >&5
1914 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1915 as_fn_set_status $ac_retval
1919 # ac_fn_c_try_run LINENO
1920 # ----------------------
1921 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
1922 # executables *can* be run.
1925 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1926 if { { ac_try="$ac_link"
1928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1929 *) ac_try_echo=$ac_try;;
1931 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1932 printf "%s\n" "$ac_try_echo"; } >&5
1933 (eval "$ac_link") 2>&5
1935 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1936 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1937 { { case "(($ac_try" in
1938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1939 *) ac_try_echo=$ac_try;;
1941 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1942 printf "%s\n" "$ac_try_echo"; } >&5
1943 (eval "$ac_try") 2>&5
1945 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1946 test $ac_status = 0; }; }
1950 printf "%s\n" "$as_me: program exited with status $ac_status" >&5
1951 printf "%s\n" "$as_me: failed program was:" >&5
1952 sed 's/^/| /' conftest.$ac_ext >&5
1954 ac_retval=$ac_status
1956 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1957 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1958 as_fn_set_status $ac_retval
1962 # ac_fn_c_check_func LINENO FUNC VAR
1963 # ----------------------------------
1964 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1965 ac_fn_c_check_func ()
1967 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1969 printf %s "checking for $2... " >&6; }
1970 if eval test \${$3+y}
1972 printf %s "(cached) " >&6
1974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1975 /* end confdefs.h. */
1976 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1977 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1978 #define $2 innocuous_$2
1980 /* System header to define __stub macros and hopefully few prototypes,
1981 which can conflict with char $2 (); below. */
1986 /* Override any GCC internal prototype to avoid an error.
1987 Use char because int might match the return type of a GCC
1988 builtin and then its argument prototype would still apply. */
1993 /* The GNU C library defines this for functions which it implements
1994 to always fail with ENOSYS. Some functions are actually named
1995 something starting with __ and the normal name is an alias. */
1996 #if defined __stub_$2 || defined __stub___$2
2008 if ac_fn_c_try_link "$LINENO"
2014 rm -f core conftest.err conftest.$ac_objext conftest.beam \
2015 conftest$ac_exeext conftest.$ac_ext
2018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2019 printf "%s\n" "$ac_res" >&6; }
2020 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2022 } # ac_fn_c_check_func
2024 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2025 # ----------------------------------------------------
2026 # Tries to find if the field MEMBER exists in type AGGR, after including
2027 # INCLUDES, setting cache variable VAR accordingly.
2028 ac_fn_c_check_member ()
2030 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2032 printf %s "checking for $2.$3... " >&6; }
2033 if eval test \${$4+y}
2035 printf %s "(cached) " >&6
2037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2038 /* end confdefs.h. */
2050 if ac_fn_c_try_compile "$LINENO"
2054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2055 /* end confdefs.h. */
2061 if (sizeof ac_aggr.$3)
2067 if ac_fn_c_try_compile "$LINENO"
2073 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2075 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2079 printf "%s\n" "$ac_res" >&6; }
2080 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2082 } # ac_fn_c_check_member
2084 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2085 # -------------------------------------------
2086 # Tests whether TYPE exists after having included INCLUDES, setting cache
2087 # variable VAR accordingly.
2088 ac_fn_c_check_type ()
2090 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2092 printf %s "checking for $2... " >&6; }
2093 if eval test \${$3+y}
2095 printf %s "(cached) " >&6
2098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2099 /* end confdefs.h. */
2110 if ac_fn_c_try_compile "$LINENO"
2112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2113 /* end confdefs.h. */
2124 if ac_fn_c_try_compile "$LINENO"
2130 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2132 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2136 printf "%s\n" "$ac_res" >&6; }
2137 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2139 } # ac_fn_c_check_type
2141 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
2142 # ------------------------------------------------------------------
2143 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2144 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
2147 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2148 as_decl_name=`echo $2|sed 's/ *(.*//'`
2149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2150 printf %s "checking whether $as_decl_name is declared... " >&6; }
2151 if eval test \${$3+y}
2153 printf %s "(cached) " >&6
2155 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2156 eval ac_save_FLAGS=\$$6
2157 as_fn_append $6 " $5"
2158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2159 /* end confdefs.h. */
2164 #ifndef $as_decl_name
2166 (void) $as_decl_use;
2168 (void) $as_decl_name;
2176 if ac_fn_c_try_compile "$LINENO"
2182 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2183 eval $6=\$ac_save_FLAGS
2187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2188 printf "%s\n" "$ac_res" >&6; }
2189 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2191 } # ac_fn_check_decl
2193 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2194 # --------------------------------------------
2195 # Tries to find the compile-time value of EXPR in a program that includes
2196 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2198 ac_fn_c_compute_int ()
2200 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2201 if test "$cross_compiling" = yes; then
2202 # Depending upon the size, compute the lo and hi bounds.
2203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2204 /* end confdefs.h. */
2209 static int test_array [1 - 2 * !(($2) >= 0)];
2211 return test_array [0];
2217 if ac_fn_c_try_compile "$LINENO"
2221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2222 /* end confdefs.h. */
2227 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2229 return test_array [0];
2235 if ac_fn_c_try_compile "$LINENO"
2237 ac_hi=$ac_mid; break
2239 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2240 if test $ac_lo -le $ac_mid; then
2244 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2246 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2250 /* end confdefs.h. */
2255 static int test_array [1 - 2 * !(($2) < 0)];
2257 return test_array [0];
2263 if ac_fn_c_try_compile "$LINENO"
2267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2268 /* end confdefs.h. */
2273 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2275 return test_array [0];
2281 if ac_fn_c_try_compile "$LINENO"
2283 ac_lo=$ac_mid; break
2285 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2286 if test $ac_mid -le $ac_hi; then
2290 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2292 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2297 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2299 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2300 # Binary search between lo and hi bounds.
2301 while test "x$ac_lo" != "x$ac_hi"; do
2302 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2304 /* end confdefs.h. */
2309 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2311 return test_array [0];
2317 if ac_fn_c_try_compile "$LINENO"
2321 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2323 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2326 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2331 /* end confdefs.h. */
2333 static long int longval (void) { return $2; }
2334 static unsigned long int ulongval (void) { return $2; }
2341 FILE *f = fopen ("conftest.val", "w");
2346 long int i = longval ();
2349 fprintf (f, "%ld", i);
2353 unsigned long int i = ulongval ();
2356 fprintf (f, "%lu", i);
2358 /* Do not output a trailing newline, as this causes \r\n confusion
2359 on some platforms. */
2360 return ferror (f) || fclose (f) != 0;
2366 if ac_fn_c_try_run "$LINENO"
2368 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2372 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2373 conftest.$ac_objext conftest.beam conftest.$ac_ext
2377 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2378 as_fn_set_status $ac_retval
2380 } # ac_fn_c_compute_int
2382 # ac_fn_cxx_try_compile LINENO
2383 # ----------------------------
2384 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2385 ac_fn_cxx_try_compile ()
2387 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2388 rm -f conftest.$ac_objext conftest.beam
2389 if { { ac_try="$ac_compile"
2391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2392 *) ac_try_echo=$ac_try;;
2394 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2395 printf "%s\n" "$ac_try_echo"; } >&5
2396 (eval "$ac_compile") 2>conftest.err
2398 if test -s conftest.err; then
2399 grep -v '^ *+' conftest.err >conftest.er1
2400 cat conftest.er1 >&5
2401 mv -f conftest.er1 conftest.err
2403 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2404 test $ac_status = 0; } && {
2405 test -z "$ac_cxx_werror_flag" ||
2406 test ! -s conftest.err
2407 } && test -s conftest.$ac_objext
2411 printf "%s\n" "$as_me: failed program was:" >&5
2412 sed 's/^/| /' conftest.$ac_ext >&5
2416 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2417 as_fn_set_status $ac_retval
2419 } # ac_fn_cxx_try_compile
2420 ac_configure_args_raw=
2425 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2427 as_fn_append ac_configure_args_raw " '$ac_arg'"
2430 case $ac_configure_args_raw in
2434 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
2435 ac_unsafe_a="$ac_unsafe_z#~"
2436 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2437 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2440 cat >config.log <<_ACEOF
2441 This file contains any messages produced by compilers while
2442 running configure, to aid debugging if configure makes a mistake.
2444 It was created by $as_me, which was
2445 generated by GNU Autoconf 2.71. Invocation command line was
2447 $ $0$ac_configure_args_raw
2457 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2458 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2459 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2460 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2461 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2463 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2464 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2466 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2467 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2468 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2469 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2470 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2471 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2472 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2480 case $as_dir in #(((
2483 *) as_dir=$as_dir/ ;;
2485 printf "%s\n" "PATH: $as_dir"
2501 # Keep a trace of the command line.
2502 # Strip out --no-create and --no-recursion so they do not pile up.
2503 # Strip out --silent because we don't want to record it for future runs.
2504 # Also quote any args containing shell meta-characters.
2505 # Make two passes to allow for proper duplicate-argument suppression.
2509 ac_must_keep_next=false
2515 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2516 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2517 | -silent | --silent | --silen | --sile | --sil)
2520 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2523 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2525 as_fn_append ac_configure_args1 " '$ac_arg'"
2526 if test $ac_must_keep_next = true; then
2527 ac_must_keep_next=false # Got value, back to normal.
2530 *=* | --config-cache | -C | -disable-* | --disable-* \
2531 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2532 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2533 | -with-* | --with-* | -without-* | --without-* | --x)
2534 case "$ac_configure_args0 " in
2535 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2538 -* ) ac_must_keep_next=true ;;
2541 as_fn_append ac_configure_args " '$ac_arg'"
2546 { ac_configure_args0=; unset ac_configure_args0;}
2547 { ac_configure_args1=; unset ac_configure_args1;}
2549 # When interrupted or exit'd, cleanup temporary files, and complete
2550 # config.log. We remove comments because anyway the quotes in there
2551 # would cause problems or look ugly.
2552 # WARNING: Use '\'' to represent an apostrophe within the trap.
2553 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2554 trap 'exit_status=$?
2557 # Save into config.log some information that might help in debugging.
2561 printf "%s\n" "## ---------------- ##
2562 ## Cache variables. ##
2563 ## ---------------- ##"
2565 # The following way of writing the cache mishandles newlines in values,
2567 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2568 eval ac_val=\$$ac_var
2572 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2573 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2576 _ | IFS | as_nl) ;; #(
2577 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2578 *) { eval $ac_var=; unset $ac_var;} ;;
2583 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2584 *${as_nl}ac_space=\ *)
2586 "s/'\''/'\''\\\\'\'''\''/g;
2587 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2590 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2597 printf "%s\n" "## ----------------- ##
2598 ## Output variables. ##
2599 ## ----------------- ##"
2601 for ac_var in $ac_subst_vars
2603 eval ac_val=\$$ac_var
2605 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2607 printf "%s\n" "$ac_var='\''$ac_val'\''"
2611 if test -n "$ac_subst_files"; then
2612 printf "%s\n" "## ------------------- ##
2613 ## File substitutions. ##
2614 ## ------------------- ##"
2616 for ac_var in $ac_subst_files
2618 eval ac_val=\$$ac_var
2620 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2622 printf "%s\n" "$ac_var='\''$ac_val'\''"
2627 if test -s confdefs.h; then
2628 printf "%s\n" "## ----------- ##
2635 test "$ac_signal" != 0 &&
2636 printf "%s\n" "$as_me: caught signal $ac_signal"
2637 printf "%s\n" "$as_me: exit $exit_status"
2639 rm -f core *.core core.conftest.* &&
2640 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2643 for ac_signal in 1 2 13 15; do
2644 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2648 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2649 rm -f -r conftest* confdefs.h
2651 printf "%s\n" "/* confdefs.h */" > confdefs.h
2653 # Predefined preprocessor variables.
2655 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2657 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2659 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2661 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2663 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2665 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2668 # Let the site file select an alternate cache file if it wants to.
2669 # Prefer an explicitly selected file to automatically selected ones.
2670 if test -n "$CONFIG_SITE"; then
2671 ac_site_files="$CONFIG_SITE"
2672 elif test "x$prefix" != xNONE; then
2673 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2675 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2678 for ac_site_file in $ac_site_files
2680 case $ac_site_file in #(
2684 ac_site_file=./$ac_site_file ;;
2686 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2688 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2689 sed 's/^/| /' "$ac_site_file" >&5
2691 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2692 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2693 as_fn_error $? "failed to load site script $ac_site_file
2694 See \`config.log' for more details" "$LINENO" 5; }
2698 if test -r "$cache_file"; then
2699 # Some versions of bash will fail to source /dev/null (special files
2700 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2701 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2703 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2705 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2706 *) . "./$cache_file";;
2710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2711 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2715 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2716 # Test code for whether the C compiler supports C89 (global declarations)
2717 ac_c_conftest_c89_globals='
2718 /* Does the compiler advertise C89 conformance?
2719 Do not test the value of __STDC__, because some compilers set it to 0
2720 while being otherwise adequately conformant. */
2721 #if !defined __STDC__
2722 # error "Compiler does not advertise C89 conformance"
2728 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2729 struct buf { int x; };
2730 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2731 static char *e (p, i)
2737 static char *f (char * (*g) (char **, int), char **p, ...)
2742 s = g (p, va_arg (v,int));
2747 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2748 function prototypes and stuff, but not \xHH hex character constants.
2749 These do not provoke an error unfortunately, instead are silently treated
2750 as an "x". The following induces an error, until -std is added to get
2751 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2752 array size at least. It is necessary to write \x00 == 0 to get something
2753 that is true only with -std. */
2754 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2756 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2757 inside strings and character constants. */
2758 #define FOO(x) '\''x'\''
2759 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2761 int test (int i, double x);
2762 struct s1 {int (*f) (int a);};
2763 struct s2 {int (*f) (double a);};
2764 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2767 # Test code for whether the C compiler supports C89 (body of main).
2768 ac_c_conftest_c89_main='
2769 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2772 # Test code for whether the C compiler supports C99 (global declarations)
2773 ac_c_conftest_c99_globals='
2774 // Does the compiler advertise C99 conformance?
2775 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2776 # error "Compiler does not advertise C99 conformance"
2779 #include <stdbool.h>
2780 extern int puts (const char *);
2781 extern int printf (const char *, ...);
2782 extern int dprintf (int, const char *, ...);
2783 extern void *malloc (size_t);
2785 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2786 // dprintf is used instead of fprintf to avoid needing to declare
2788 #define debug(...) dprintf (2, __VA_ARGS__)
2789 #define showlist(...) puts (#__VA_ARGS__)
2790 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2792 test_varargs_macros (void)
2797 debug ("X = %d\n", x);
2798 showlist (The first, second, and third items.);
2799 report (x>y, "x is %d but y is %d", x, y);
2802 // Check long long types.
2803 #define BIG64 18446744073709551615ull
2804 #define BIG32 4294967295ul
2805 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2807 #error "your preprocessor is broken"
2811 #error "your preprocessor is broken"
2813 static long long int bignum = -9223372036854775807LL;
2814 static unsigned long long int ubignum = BIG64;
2816 struct incomplete_array
2824 const wchar_t *name;
2828 typedef const char *ccp;
2831 test_restrict (ccp restrict text)
2833 // See if C++-style comments work.
2834 // Iterate through items via the restricted pointer.
2835 // Also check for declarations in for loops.
2836 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2841 // Check varargs and va_copy.
2843 test_varargs (const char *format, ...)
2846 va_start (args, format);
2848 va_copy (args_copy, args);
2850 const char *str = "";
2858 case '\''s'\'': // string
2859 str = va_arg (args_copy, const char *);
2861 case '\''d'\'': // int
2862 number = va_arg (args_copy, int);
2864 case '\''f'\'': // float
2865 fnumber = va_arg (args_copy, double);
2874 return *str && number && fnumber;
2878 # Test code for whether the C compiler supports C99 (body of main).
2879 ac_c_conftest_c99_main='
2881 _Bool success = false;
2882 success |= (argc != 0);
2885 if (test_restrict ("String literal") == 0)
2887 char *restrict newvar = "Another string";
2890 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2891 test_varargs_macros ();
2893 // Check flexible array members.
2894 struct incomplete_array *ia =
2895 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2897 for (int i = 0; i < ia->datasize; ++i)
2898 ia->data[i] = i * 1.234;
2900 // Check named initializers.
2901 struct named_init ni = {
2903 .name = L"Test wide string",
2904 .average = 543.34343,
2909 int dynamic_array[ni.number];
2910 dynamic_array[0] = argv[0][0];
2911 dynamic_array[ni.number - 1] = 543;
2913 // work around unused variable warnings
2914 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2915 || dynamic_array[ni.number - 1] != 543);
2918 # Test code for whether the C compiler supports C11 (global declarations)
2919 ac_c_conftest_c11_globals='
2920 // Does the compiler advertise C11 conformance?
2921 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2922 # error "Compiler does not advertise C11 conformance"
2926 char _Alignas (double) aligned_as_double;
2927 char _Alignas (0) no_special_alignment;
2928 extern char aligned_as_int;
2929 char _Alignas (0) _Alignas (int) aligned_as_int;
2934 int_alignment = _Alignof (int),
2935 int_array_alignment = _Alignof (int[100]),
2936 char_alignment = _Alignof (char)
2938 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2941 int _Noreturn does_not_return (void) { for (;;) continue; }
2943 // Check _Static_assert.
2944 struct test_static_assert
2947 _Static_assert (sizeof (int) <= sizeof (long int),
2948 "_Static_assert does not work in struct");
2952 // Check UTF-8 literals.
2953 #define u8 syntax error!
2954 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2956 // Check duplicate typedefs.
2957 typedef long *long_ptr;
2958 typedef long int *long_ptr;
2959 typedef long_ptr long_ptr;
2961 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2965 struct { int i; int j; };
2966 struct { int k; long int l; } w;
2972 # Test code for whether the C compiler supports C11 (body of main).
2973 ac_c_conftest_c11_main='
2974 _Static_assert ((offsetof (struct anonymous, i)
2975 == offsetof (struct anonymous, w.k)),
2976 "Anonymous union alignment botch");
2982 # Test code for whether the C compiler supports C11 (complete).
2983 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2984 ${ac_c_conftest_c99_globals}
2985 ${ac_c_conftest_c11_globals}
2988 main (int argc, char **argv)
2991 ${ac_c_conftest_c89_main}
2992 ${ac_c_conftest_c99_main}
2993 ${ac_c_conftest_c11_main}
2998 # Test code for whether the C compiler supports C99 (complete).
2999 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
3000 ${ac_c_conftest_c99_globals}
3003 main (int argc, char **argv)
3006 ${ac_c_conftest_c89_main}
3007 ${ac_c_conftest_c99_main}
3012 # Test code for whether the C compiler supports C89 (complete).
3013 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
3016 main (int argc, char **argv)
3019 ${ac_c_conftest_c89_main}
3024 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
3025 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
3026 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
3027 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
3028 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
3029 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
3030 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
3031 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
3032 as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
3033 as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
3034 gt_needs="$gt_needs "
3035 as_fn_append ac_func_c_list " vprintf HAVE_VPRINTF"
3036 # Test code for whether the C++ compiler supports C++98 (global declarations)
3037 ac_cxx_conftest_cxx98_globals='
3038 // Does the compiler advertise C++98 conformance?
3039 #if !defined __cplusplus || __cplusplus < 199711L
3040 # error "Compiler does not advertise C++98 conformance"
3043 // These inclusions are to reject old compilers that
3044 // lack the unsuffixed header files.
3046 #include <exception>
3048 // <cassert> and <cstring> are *not* freestanding headers in C++98.
3049 extern void assert (int);
3051 extern int strcmp (const char *, const char *);
3054 // Namespaces, exceptions, and templates were all added after "C++ 2.0".
3055 using std::exception;
3060 void test_exception_syntax()
3064 } catch (const char *s) {
3065 // Extra parentheses suppress a warning when building autoconf itself,
3066 // due to lint rules shared with more typical C programs.
3067 assert (!(strcmp) (s, "test"));
3071 template <typename T> struct test_template
3074 explicit test_template(T t) : val(t) {}
3075 template <typename U> T add(U u) { return static_cast<T>(u) + val; }
3078 } // anonymous namespace
3081 # Test code for whether the C++ compiler supports C++98 (body of main)
3082 ac_cxx_conftest_cxx98_main='
3086 test_exception_syntax ();
3087 test_template<double> tt (2.0);
3088 assert (tt.add (4) == 6.0);
3089 assert (true && !false);
3093 # Test code for whether the C++ compiler supports C++11 (global declarations)
3094 ac_cxx_conftest_cxx11_globals='
3095 // Does the compiler advertise C++ 2011 conformance?
3096 #if !defined __cplusplus || __cplusplus < 201103L
3097 # error "Compiler does not advertise C++11 conformance"
3102 constexpr int get_val() { return 20; }
3113 delegate(int n) : n(n) {}
3114 delegate(): delegate(2354) {}
3116 virtual int getval() { return this->n; };
3121 class overridden : public delegate
3124 overridden(int n): delegate(n) {}
3125 virtual int getval() override final { return this->n * 2; }
3131 nocopy(int i): i(i) {}
3133 nocopy(const nocopy&) = delete;
3134 nocopy & operator=(const nocopy&) = delete;
3139 // for testing lambda expressions
3140 template <typename Ret, typename Fn> Ret eval(Fn f, Ret v)
3145 // for testing variadic templates and trailing return types
3146 template <typename V> auto sum(V first) -> V
3150 template <typename V, typename... Args> auto sum(V first, Args... rest) -> V
3152 return first + sum(rest...);
3157 # Test code for whether the C++ compiler supports C++11 (body of main)
3158 ac_cxx_conftest_cxx11_main='
3160 // Test auto and decltype
3162 auto a2 = 48573953.4;
3163 auto a3 = "String literal";
3166 for (auto i = a3; *i; ++i) { total += *i; }
3168 decltype(a2) a4 = 34895.034;
3172 short sa[cxx11test::get_val()] = { 0 };
3175 // Test initializer lists
3176 cxx11test::testinit il = { 4323, 435234.23544 };
3179 // Test range-based for
3180 int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3,
3181 14, 19, 17, 8, 6, 20, 16, 2, 11, 1};
3182 for (auto &x : array) { x += 23; }
3185 // Test lambda expressions
3186 using cxx11test::eval;
3187 assert (eval ([](int x) { return x*2; }, 21) == 42);
3189 assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0);
3191 assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0);
3195 // Test use of variadic templates
3196 using cxx11test::sum;
3199 auto c = sum(1.0, 2.0, 3.0);
3202 // Test constructor delegation
3203 cxx11test::delegate d1;
3204 cxx11test::delegate d2();
3205 cxx11test::delegate d3(45);
3208 // Test override and final
3209 cxx11test::overridden o1(55464);
3216 // Test template brackets
3217 test_template<::test_template<int>> v(test_template<int>(12));
3221 char const *utf8 = u8"UTF-8 string \u2500";
3222 char16_t const *utf16 = u"UTF-8 string \u2500";
3223 char32_t const *utf32 = U"UTF-32 string \u2500";
3227 # Test code for whether the C compiler supports C++11 (complete).
3228 ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals}
3229 ${ac_cxx_conftest_cxx11_globals}
3232 main (int argc, char **argv)
3235 ${ac_cxx_conftest_cxx98_main}
3236 ${ac_cxx_conftest_cxx11_main}
3241 # Test code for whether the C compiler supports C++98 (complete).
3242 ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals}
3244 main (int argc, char **argv)
3247 ${ac_cxx_conftest_cxx98_main}
3253 # Auxiliary files required by this configure script.
3254 ac_aux_files="config.rpath install-sh config.guess config.sub"
3256 # Locations in which to look for auxiliary files.
3257 ac_aux_dir_candidates="${srcdir}/config"
3259 # Search for a directory containing all of the required auxiliary files,
3260 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
3261 # If we don't find one directory that contains all the files we need,
3262 # we report the set of missing files from the *first* directory in
3263 # $ac_aux_dir_candidates and give up.
3264 ac_missing_aux_files=""
3265 ac_first_candidate=:
3266 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
3267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3269 for as_dir in $ac_aux_dir_candidates
3272 case $as_dir in #(((
3275 *) as_dir=$as_dir/ ;;
3279 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
3280 ac_aux_dir_found=yes
3282 for ac_aux in $ac_aux_files
3284 # As a special case, if "install-sh" is required, that requirement
3285 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
3286 # and $ac_install_sh is set appropriately for whichever one is found.
3287 if test x"$ac_aux" = x"install-sh"
3289 if test -f "${as_dir}install-sh"; then
3290 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
3291 ac_install_sh="${as_dir}install-sh -c"
3292 elif test -f "${as_dir}install.sh"; then
3293 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
3294 ac_install_sh="${as_dir}install.sh -c"
3295 elif test -f "${as_dir}shtool"; then
3296 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
3297 ac_install_sh="${as_dir}shtool install -c"
3300 if $ac_first_candidate; then
3301 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
3307 if test -f "${as_dir}${ac_aux}"; then
3308 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
3311 if $ac_first_candidate; then
3312 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
3319 if test "$ac_aux_dir_found" = yes; then
3320 ac_aux_dir="$as_dir"
3323 ac_first_candidate=false
3332 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
3336 # These three variables are undocumented and unsupported,
3337 # and are intended to be withdrawn in a future Autoconf release.
3338 # They can cause serious problems if a builder's source tree is in a directory
3339 # whose full name contains unusual characters.
3340 if test -f "${ac_aux_dir}config.guess"; then
3341 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
3343 if test -f "${ac_aux_dir}config.sub"; then
3344 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
3346 if test -f "$ac_aux_dir/configure"; then
3347 ac_configure="$SHELL ${ac_aux_dir}configure"
3350 # Check that the precious variables saved in the cache have kept the same
3352 ac_cache_corrupted=false
3353 for ac_var in $ac_precious_vars; do
3354 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3355 eval ac_new_set=\$ac_env_${ac_var}_set
3356 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3357 eval ac_new_val=\$ac_env_${ac_var}_value
3358 case $ac_old_set,$ac_new_set in
3360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3361 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3362 ac_cache_corrupted=: ;;
3364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3365 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3366 ac_cache_corrupted=: ;;
3369 if test "x$ac_old_val" != "x$ac_new_val"; then
3370 # differences in whitespace do not lead to failure.
3371 ac_old_val_w=`echo x $ac_old_val`
3372 ac_new_val_w=`echo x $ac_new_val`
3373 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3375 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3376 ac_cache_corrupted=:
3378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3379 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3380 eval $ac_var=\$ac_old_val
3382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3383 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
3384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3385 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
3388 # Pass precious variables to config.status.
3389 if test "$ac_new_set" = set; then
3391 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3392 *) ac_arg=$ac_var=$ac_new_val ;;
3394 case " $ac_configure_args " in
3395 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3396 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3400 if $ac_cache_corrupted; then
3401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3402 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3404 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
3405 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
3406 and start over" "$LINENO" 5
3408 ## -------------------- ##
3409 ## Main body of script. ##
3410 ## -------------------- ##
3413 ac_cpp='$CPP $CPPFLAGS'
3414 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3415 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3416 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3422 ac_config_headers="$ac_config_headers lib/config.h"
3435 ac_cpp='$CPP $CPPFLAGS'
3436 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3437 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3438 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3439 if test -n "$ac_tool_prefix"; then
3440 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3441 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3443 printf %s "checking for $ac_word... " >&6; }
3444 if test ${ac_cv_prog_CC+y}
3446 printf %s "(cached) " >&6
3448 if test -n "$CC"; then
3449 ac_cv_prog_CC="$CC" # Let the user override the test.
3451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3455 case $as_dir in #(((
3458 *) as_dir=$as_dir/ ;;
3460 for ac_exec_ext in '' $ac_executable_extensions; do
3461 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3462 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3463 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3473 if test -n "$CC"; then
3474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3475 printf "%s\n" "$CC" >&6; }
3477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3478 printf "%s\n" "no" >&6; }
3483 if test -z "$ac_cv_prog_CC"; then
3485 # Extract the first word of "gcc", so it can be a program name with args.
3486 set dummy gcc; ac_word=$2
3487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3488 printf %s "checking for $ac_word... " >&6; }
3489 if test ${ac_cv_prog_ac_ct_CC+y}
3491 printf %s "(cached) " >&6
3493 if test -n "$ac_ct_CC"; then
3494 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3500 case $as_dir in #(((
3503 *) as_dir=$as_dir/ ;;
3505 for ac_exec_ext in '' $ac_executable_extensions; do
3506 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3507 ac_cv_prog_ac_ct_CC="gcc"
3508 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3517 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3518 if test -n "$ac_ct_CC"; then
3519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3520 printf "%s\n" "$ac_ct_CC" >&6; }
3522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3523 printf "%s\n" "no" >&6; }
3526 if test "x$ac_ct_CC" = x; then
3529 case $cross_compiling:$ac_tool_warned in
3531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3532 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3533 ac_tool_warned=yes ;;
3541 if test -z "$CC"; then
3542 if test -n "$ac_tool_prefix"; then
3543 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3544 set dummy ${ac_tool_prefix}cc; ac_word=$2
3545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3546 printf %s "checking for $ac_word... " >&6; }
3547 if test ${ac_cv_prog_CC+y}
3549 printf %s "(cached) " >&6
3551 if test -n "$CC"; then
3552 ac_cv_prog_CC="$CC" # Let the user override the test.
3554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3558 case $as_dir in #(((
3561 *) as_dir=$as_dir/ ;;
3563 for ac_exec_ext in '' $ac_executable_extensions; do
3564 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3565 ac_cv_prog_CC="${ac_tool_prefix}cc"
3566 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3576 if test -n "$CC"; then
3577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3578 printf "%s\n" "$CC" >&6; }
3580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3581 printf "%s\n" "no" >&6; }
3587 if test -z "$CC"; then
3588 # Extract the first word of "cc", so it can be a program name with args.
3589 set dummy cc; ac_word=$2
3590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3591 printf %s "checking for $ac_word... " >&6; }
3592 if test ${ac_cv_prog_CC+y}
3594 printf %s "(cached) " >&6
3596 if test -n "$CC"; then
3597 ac_cv_prog_CC="$CC" # Let the user override the test.
3600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3604 case $as_dir in #(((
3607 *) as_dir=$as_dir/ ;;
3609 for ac_exec_ext in '' $ac_executable_extensions; do
3610 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3611 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3612 ac_prog_rejected=yes
3616 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3623 if test $ac_prog_rejected = yes; then
3624 # We found a bogon in the path, so make sure we never use it.
3625 set dummy $ac_cv_prog_CC
3627 if test $# != 0; then
3628 # We chose a different compiler from the bogus one.
3629 # However, it has the same basename, so the bogon will be chosen
3630 # first if we set CC to just the basename; use the full file name.
3632 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3638 if test -n "$CC"; then
3639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3640 printf "%s\n" "$CC" >&6; }
3642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3643 printf "%s\n" "no" >&6; }
3648 if test -z "$CC"; then
3649 if test -n "$ac_tool_prefix"; then
3650 for ac_prog in cl.exe
3652 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3653 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3655 printf %s "checking for $ac_word... " >&6; }
3656 if test ${ac_cv_prog_CC+y}
3658 printf %s "(cached) " >&6
3660 if test -n "$CC"; then
3661 ac_cv_prog_CC="$CC" # Let the user override the test.
3663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3667 case $as_dir in #(((
3670 *) as_dir=$as_dir/ ;;
3672 for ac_exec_ext in '' $ac_executable_extensions; do
3673 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3674 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3675 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3685 if test -n "$CC"; then
3686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3687 printf "%s\n" "$CC" >&6; }
3689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3690 printf "%s\n" "no" >&6; }
3694 test -n "$CC" && break
3697 if test -z "$CC"; then
3699 for ac_prog in cl.exe
3701 # Extract the first word of "$ac_prog", so it can be a program name with args.
3702 set dummy $ac_prog; ac_word=$2
3703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3704 printf %s "checking for $ac_word... " >&6; }
3705 if test ${ac_cv_prog_ac_ct_CC+y}
3707 printf %s "(cached) " >&6
3709 if test -n "$ac_ct_CC"; then
3710 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3716 case $as_dir in #(((
3719 *) as_dir=$as_dir/ ;;
3721 for ac_exec_ext in '' $ac_executable_extensions; do
3722 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3723 ac_cv_prog_ac_ct_CC="$ac_prog"
3724 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3733 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3734 if test -n "$ac_ct_CC"; then
3735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3736 printf "%s\n" "$ac_ct_CC" >&6; }
3738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3739 printf "%s\n" "no" >&6; }
3743 test -n "$ac_ct_CC" && break
3746 if test "x$ac_ct_CC" = x; then
3749 case $cross_compiling:$ac_tool_warned in
3751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3752 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3753 ac_tool_warned=yes ;;
3760 if test -z "$CC"; then
3761 if test -n "$ac_tool_prefix"; then
3762 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3763 set dummy ${ac_tool_prefix}clang; ac_word=$2
3764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3765 printf %s "checking for $ac_word... " >&6; }
3766 if test ${ac_cv_prog_CC+y}
3768 printf %s "(cached) " >&6
3770 if test -n "$CC"; then
3771 ac_cv_prog_CC="$CC" # Let the user override the test.
3773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3777 case $as_dir in #(((
3780 *) as_dir=$as_dir/ ;;
3782 for ac_exec_ext in '' $ac_executable_extensions; do
3783 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3784 ac_cv_prog_CC="${ac_tool_prefix}clang"
3785 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3795 if test -n "$CC"; then
3796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3797 printf "%s\n" "$CC" >&6; }
3799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3800 printf "%s\n" "no" >&6; }
3805 if test -z "$ac_cv_prog_CC"; then
3807 # Extract the first word of "clang", so it can be a program name with args.
3808 set dummy clang; ac_word=$2
3809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3810 printf %s "checking for $ac_word... " >&6; }
3811 if test ${ac_cv_prog_ac_ct_CC+y}
3813 printf %s "(cached) " >&6
3815 if test -n "$ac_ct_CC"; then
3816 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3822 case $as_dir in #(((
3825 *) as_dir=$as_dir/ ;;
3827 for ac_exec_ext in '' $ac_executable_extensions; do
3828 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3829 ac_cv_prog_ac_ct_CC="clang"
3830 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3839 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3840 if test -n "$ac_ct_CC"; then
3841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3842 printf "%s\n" "$ac_ct_CC" >&6; }
3844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3845 printf "%s\n" "no" >&6; }
3848 if test "x$ac_ct_CC" = x; then
3851 case $cross_compiling:$ac_tool_warned in
3853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3854 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3855 ac_tool_warned=yes ;;
3866 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3867 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3868 as_fn_error $? "no acceptable C compiler found in \$PATH
3869 See \`config.log' for more details" "$LINENO" 5; }
3871 # Provide some information about the compiler.
3872 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3875 for ac_option in --version -v -V -qversion -version; do
3876 { { ac_try="$ac_compiler $ac_option >&5"
3878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3879 *) ac_try_echo=$ac_try;;
3881 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3882 printf "%s\n" "$ac_try_echo"; } >&5
3883 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3885 if test -s conftest.err; then
3887 ... rest of stderr output deleted ...
3888 10q' conftest.err >conftest.er1
3889 cat conftest.er1 >&5
3891 rm -f conftest.er1 conftest.err
3892 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3893 test $ac_status = 0; }
3896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3897 /* end confdefs.h. */
3907 ac_clean_files_save=$ac_clean_files
3908 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3909 # Try to create an executable without -o first, disregard a.out.
3910 # It will help us diagnose broken compilers, and finding out an intuition
3912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3913 printf %s "checking whether the C compiler works... " >&6; }
3914 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3916 # The possible output files:
3917 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3920 for ac_file in $ac_files
3923 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3924 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3929 if { { ac_try="$ac_link_default"
3931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3932 *) ac_try_echo=$ac_try;;
3934 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3935 printf "%s\n" "$ac_try_echo"; } >&5
3936 (eval "$ac_link_default") 2>&5
3938 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3939 test $ac_status = 0; }
3941 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3942 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3943 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3944 # so that the user can short-circuit this test for compilers unknown to
3946 for ac_file in $ac_files ''
3948 test -f "$ac_file" || continue
3950 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3953 # We found the default executable, but exeext='' is most
3957 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3959 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3961 # We set ac_cv_exeext here because the later test for it is not
3962 # safe: cross compilers may not add the suffix if given an `-o'
3963 # argument, so we may need to know it at that point already.
3964 # Even if this section looks crufty: it has the advantage of
3971 test "$ac_cv_exeext" = no && ac_cv_exeext=
3976 if test -z "$ac_file"
3978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3979 printf "%s\n" "no" >&6; }
3980 printf "%s\n" "$as_me: failed program was:" >&5
3981 sed 's/^/| /' conftest.$ac_ext >&5
3983 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3984 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3985 as_fn_error 77 "C compiler cannot create executables
3986 See \`config.log' for more details" "$LINENO" 5; }
3988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3989 printf "%s\n" "yes" >&6; }
3991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3992 printf %s "checking for C compiler default output file name... " >&6; }
3993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3994 printf "%s\n" "$ac_file" >&6; }
3995 ac_exeext=$ac_cv_exeext
3997 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3998 ac_clean_files=$ac_clean_files_save
3999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4000 printf %s "checking for suffix of executables... " >&6; }
4001 if { { ac_try="$ac_link"
4003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4004 *) ac_try_echo=$ac_try;;
4006 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4007 printf "%s\n" "$ac_try_echo"; } >&5
4008 (eval "$ac_link") 2>&5
4010 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4011 test $ac_status = 0; }
4013 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4014 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4015 # work properly (i.e., refer to `conftest.exe'), while it won't with
4017 for ac_file in conftest.exe conftest conftest.*; do
4018 test -f "$ac_file" || continue
4020 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4021 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4027 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4028 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4029 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4030 See \`config.log' for more details" "$LINENO" 5; }
4032 rm -f conftest conftest$ac_cv_exeext
4033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4034 printf "%s\n" "$ac_cv_exeext" >&6; }
4036 rm -f conftest.$ac_ext
4037 EXEEXT=$ac_cv_exeext
4039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4040 /* end confdefs.h. */
4045 FILE *f = fopen ("conftest.out", "w");
4046 return ferror (f) || fclose (f) != 0;
4052 ac_clean_files="$ac_clean_files conftest.out"
4053 # Check that the compiler produces executables we can run. If not, either
4054 # the compiler is broken, or we cross compile.
4055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4056 printf %s "checking whether we are cross compiling... " >&6; }
4057 if test "$cross_compiling" != yes; then
4058 { { ac_try="$ac_link"
4060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4061 *) ac_try_echo=$ac_try;;
4063 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4064 printf "%s\n" "$ac_try_echo"; } >&5
4065 (eval "$ac_link") 2>&5
4067 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4068 test $ac_status = 0; }
4069 if { ac_try='./conftest$ac_cv_exeext'
4070 { { case "(($ac_try" in
4071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4072 *) ac_try_echo=$ac_try;;
4074 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4075 printf "%s\n" "$ac_try_echo"; } >&5
4076 (eval "$ac_try") 2>&5
4078 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4079 test $ac_status = 0; }; }; then
4082 if test "$cross_compiling" = maybe; then
4085 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4086 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4087 as_fn_error 77 "cannot run C compiled programs.
4088 If you meant to cross compile, use \`--host'.
4089 See \`config.log' for more details" "$LINENO" 5; }
4093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4094 printf "%s\n" "$cross_compiling" >&6; }
4096 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4097 ac_clean_files=$ac_clean_files_save
4098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4099 printf %s "checking for suffix of object files... " >&6; }
4100 if test ${ac_cv_objext+y}
4102 printf %s "(cached) " >&6
4104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4105 /* end confdefs.h. */
4115 rm -f conftest.o conftest.obj
4116 if { { ac_try="$ac_compile"
4118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4119 *) ac_try_echo=$ac_try;;
4121 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4122 printf "%s\n" "$ac_try_echo"; } >&5
4123 (eval "$ac_compile") 2>&5
4125 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4126 test $ac_status = 0; }
4128 for ac_file in conftest.o conftest.obj conftest.*; do
4129 test -f "$ac_file" || continue;
4131 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4132 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4137 printf "%s\n" "$as_me: failed program was:" >&5
4138 sed 's/^/| /' conftest.$ac_ext >&5
4140 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4141 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4142 as_fn_error $? "cannot compute suffix of object files: cannot compile
4143 See \`config.log' for more details" "$LINENO" 5; }
4145 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4148 printf "%s\n" "$ac_cv_objext" >&6; }
4149 OBJEXT=$ac_cv_objext
4151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4152 printf %s "checking whether the compiler supports GNU C... " >&6; }
4153 if test ${ac_cv_c_compiler_gnu+y}
4155 printf %s "(cached) " >&6
4157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4158 /* end confdefs.h. */
4171 if ac_fn_c_try_compile "$LINENO"
4177 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4178 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4182 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4183 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4185 if test $ac_compiler_gnu = yes; then
4190 ac_test_CFLAGS=${CFLAGS+y}
4191 ac_save_CFLAGS=$CFLAGS
4192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4193 printf %s "checking whether $CC accepts -g... " >&6; }
4194 if test ${ac_cv_prog_cc_g+y}
4196 printf %s "(cached) " >&6
4198 ac_save_c_werror_flag=$ac_c_werror_flag
4199 ac_c_werror_flag=yes
4202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4203 /* end confdefs.h. */
4213 if ac_fn_c_try_compile "$LINENO"
4218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4219 /* end confdefs.h. */
4229 if ac_fn_c_try_compile "$LINENO"
4233 ac_c_werror_flag=$ac_save_c_werror_flag
4235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4236 /* end confdefs.h. */
4246 if ac_fn_c_try_compile "$LINENO"
4250 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4252 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4254 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4255 ac_c_werror_flag=$ac_save_c_werror_flag
4257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4258 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4259 if test $ac_test_CFLAGS; then
4260 CFLAGS=$ac_save_CFLAGS
4261 elif test $ac_cv_prog_cc_g = yes; then
4262 if test "$GCC" = yes; then
4268 if test "$GCC" = yes; then
4275 if test x$ac_prog_cc_stdc = xno
4277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4278 printf %s "checking for $CC option to enable C11 features... " >&6; }
4279 if test ${ac_cv_prog_cc_c11+y}
4281 printf %s "(cached) " >&6
4283 ac_cv_prog_cc_c11=no
4285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4286 /* end confdefs.h. */
4287 $ac_c_conftest_c11_program
4289 for ac_arg in '' -std=gnu11
4291 CC="$ac_save_CC $ac_arg"
4292 if ac_fn_c_try_compile "$LINENO"
4294 ac_cv_prog_cc_c11=$ac_arg
4296 rm -f core conftest.err conftest.$ac_objext conftest.beam
4297 test "x$ac_cv_prog_cc_c11" != "xno" && break
4299 rm -f conftest.$ac_ext
4303 if test "x$ac_cv_prog_cc_c11" = xno
4305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4306 printf "%s\n" "unsupported" >&6; }
4308 if test "x$ac_cv_prog_cc_c11" = x
4310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4311 printf "%s\n" "none needed" >&6; }
4313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4314 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4315 CC="$CC $ac_cv_prog_cc_c11"
4317 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4321 if test x$ac_prog_cc_stdc = xno
4323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4324 printf %s "checking for $CC option to enable C99 features... " >&6; }
4325 if test ${ac_cv_prog_cc_c99+y}
4327 printf %s "(cached) " >&6
4329 ac_cv_prog_cc_c99=no
4331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4332 /* end confdefs.h. */
4333 $ac_c_conftest_c99_program
4335 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4337 CC="$ac_save_CC $ac_arg"
4338 if ac_fn_c_try_compile "$LINENO"
4340 ac_cv_prog_cc_c99=$ac_arg
4342 rm -f core conftest.err conftest.$ac_objext conftest.beam
4343 test "x$ac_cv_prog_cc_c99" != "xno" && break
4345 rm -f conftest.$ac_ext
4349 if test "x$ac_cv_prog_cc_c99" = xno
4351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4352 printf "%s\n" "unsupported" >&6; }
4354 if test "x$ac_cv_prog_cc_c99" = x
4356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4357 printf "%s\n" "none needed" >&6; }
4359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4360 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4361 CC="$CC $ac_cv_prog_cc_c99"
4363 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4367 if test x$ac_prog_cc_stdc = xno
4369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4370 printf %s "checking for $CC option to enable C89 features... " >&6; }
4371 if test ${ac_cv_prog_cc_c89+y}
4373 printf %s "(cached) " >&6
4375 ac_cv_prog_cc_c89=no
4377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4378 /* end confdefs.h. */
4379 $ac_c_conftest_c89_program
4381 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4383 CC="$ac_save_CC $ac_arg"
4384 if ac_fn_c_try_compile "$LINENO"
4386 ac_cv_prog_cc_c89=$ac_arg
4388 rm -f core conftest.err conftest.$ac_objext conftest.beam
4389 test "x$ac_cv_prog_cc_c89" != "xno" && break
4391 rm -f conftest.$ac_ext
4395 if test "x$ac_cv_prog_cc_c89" = xno
4397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4398 printf "%s\n" "unsupported" >&6; }
4400 if test "x$ac_cv_prog_cc_c89" = x
4402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4403 printf "%s\n" "none needed" >&6; }
4405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4406 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4407 CC="$CC $ac_cv_prog_cc_c89"
4409 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4415 ac_cpp='$CPP $CPPFLAGS'
4416 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4417 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4418 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4421 ac_header= ac_cache=
4422 for ac_item in $ac_header_c_list
4424 if test $ac_cache; then
4425 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
4426 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
4427 printf "%s\n" "#define $ac_item 1" >> confdefs.h
4429 ac_header= ac_cache=
4430 elif test $ac_header; then
4444 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
4447 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
4456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4457 printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4458 if test ${ac_cv_safe_to_define___extensions__+y}
4460 printf %s "(cached) " >&6
4462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4463 /* end confdefs.h. */
4465 # define __EXTENSIONS__ 1
4466 $ac_includes_default
4475 if ac_fn_c_try_compile "$LINENO"
4477 ac_cv_safe_to_define___extensions__=yes
4479 ac_cv_safe_to_define___extensions__=no
4481 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4484 printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
4486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
4487 printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
4488 if test ${ac_cv_should_define__xopen_source+y}
4490 printf %s "(cached) " >&6
4492 ac_cv_should_define__xopen_source=no
4493 if test $ac_cv_header_wchar_h = yes
4495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4496 /* end confdefs.h. */
4508 if ac_fn_c_try_compile "$LINENO"
4512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4513 /* end confdefs.h. */
4515 #define _XOPEN_SOURCE 500
4526 if ac_fn_c_try_compile "$LINENO"
4528 ac_cv_should_define__xopen_source=yes
4530 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4532 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
4536 printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
4538 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
4540 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
4542 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
4544 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
4546 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
4548 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
4550 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4552 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
4554 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
4556 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
4558 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
4560 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
4562 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
4564 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
4566 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
4568 if test $ac_cv_header_minix_config_h = yes
4571 printf "%s\n" "#define _MINIX 1" >>confdefs.h
4573 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
4575 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
4580 if test $ac_cv_safe_to_define___extensions__ = yes
4582 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
4585 if test $ac_cv_should_define__xopen_source = yes
4587 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
4594 E2FSPROGS_VERSION=`awk -F\" '/E2FSPROGS_VERS/ { print $2 }' ${srcdir}/version.h`
4595 E2FSPROGS_DATE=`awk -F\" '/E2FSPROGS_DATE/ { print $2 }' ${srcdir}/version.h`
4596 E2FSPROGS_DAY=$(echo $E2FSPROGS_DATE | awk -F- '{ printf "%02d", $1 }')
4597 MONTH=`echo $E2FSPROGS_DATE | awk -F- '{print $2}'`
4598 YEAR=`echo $E2FSPROGS_DATE | awk -F- '{print $3}'`
4600 if expr $YEAR ">" 1900 > /dev/null ; then
4601 E2FSPROGS_YEAR=$YEAR
4602 elif expr $YEAR ">" 90 >/dev/null ; then
4603 E2FSPROGS_YEAR=19$YEAR
4605 E2FSPROGS_YEAR=20$YEAR
4609 Jan) MONTH_NUM=01; E2FSPROGS_MONTH="January" ;;
4610 Feb) MONTH_NUM=02; E2FSPROGS_MONTH="February" ;;
4611 Mar) MONTH_NUM=03; E2FSPROGS_MONTH="March" ;;
4612 Apr) MONTH_NUM=04; E2FSPROGS_MONTH="April" ;;
4613 May) MONTH_NUM=05; E2FSPROGS_MONTH="May" ;;
4614 Jun) MONTH_NUM=06; E2FSPROGS_MONTH="June" ;;
4615 Jul) MONTH_NUM=07; E2FSPROGS_MONTH="July" ;;
4616 Aug) MONTH_NUM=08; E2FSPROGS_MONTH="August" ;;
4617 Sep) MONTH_NUM=09; E2FSPROGS_MONTH="September" ;;
4618 Oct) MONTH_NUM=10; E2FSPROGS_MONTH="October" ;;
4619 Nov) MONTH_NUM=11; E2FSPROGS_MONTH="November" ;;
4620 Dec) MONTH_NUM=12; E2FSPROGS_MONTH="December" ;;
4621 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Unknown month $MONTH??" >&5
4622 printf "%s\n" "$as_me: WARNING: Unknown month $MONTH??" >&2;} ;;
4625 base_ver=`echo $E2FSPROGS_VERSION | sed -e 's/pre-//' -e 's/-.*//'`
4626 base_rel=`echo $E2FSPROGS_VERSION | awk -F- '{ print $2 }'`
4628 date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY}
4630 case $E2FSPROGS_VERSION in
4632 E2FSPROGS_PKGVER="$base_ver"
4633 E2FSPROGS_PKGREL="WIP.$date_spec"
4636 E2FSPROGS_PKGVER="$base_ver"
4637 E2FSPROGS_PKGREL="$base_rel"
4641 unset DATE MONTH YEAR base_ver pre_vers date_spec
4642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&5
4643 printf "%s\n" "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&6; }
4644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Package version ${E2FSPROGS_PKGVER} release ${E2FSPROGS_PKGREL}" >&5
4645 printf "%s\n" "Package version ${E2FSPROGS_PKGVER} release ${E2FSPROGS_PKGREL}" >&6; }
4646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&5
4647 printf "%s\n" "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&6; }
4657 # Check whether --with-diet-libc was given.
4658 if test ${with_diet_libc+y}
4660 withval=$with_diet_libc; CC="diet cc -nostdinc"
4666 LIBS="$LIBS -lcompat"
4668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: CC=$CC" >&5
4669 printf "%s\n" "CC=$CC" >&6; }
4674 # Make sure we can run config.sub.
4675 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4676 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4679 printf %s "checking build system type... " >&6; }
4680 if test ${ac_cv_build+y}
4682 printf %s "(cached) " >&6
4684 ac_build_alias=$build_alias
4685 test "x$ac_build_alias" = x &&
4686 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4687 test "x$ac_build_alias" = x &&
4688 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4689 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4690 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4694 printf "%s\n" "$ac_cv_build" >&6; }
4695 case $ac_cv_build in
4697 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4700 ac_save_IFS=$IFS; IFS='-'
4706 # Remember, the first character of IFS is used to create $*,
4707 # except with old shells:
4710 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4714 printf %s "checking host system type... " >&6; }
4715 if test ${ac_cv_host+y}
4717 printf %s "(cached) " >&6
4719 if test "x$host_alias" = x; then
4720 ac_cv_host=$ac_cv_build
4722 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4723 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4728 printf "%s\n" "$ac_cv_host" >&6; }
4731 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4734 ac_save_IFS=$IFS; IFS='-'
4740 # Remember, the first character of IFS is used to create $*,
4741 # except with old shells:
4744 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
4749 printf %s "checking for dlopen in -ldl... " >&6; }
4750 if test ${ac_cv_lib_dl_dlopen+y}
4752 printf %s "(cached) " >&6
4754 ac_check_lib_save_LIBS=$LIBS
4756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4757 /* end confdefs.h. */
4759 /* Override any GCC internal prototype to avoid an error.
4760 Use char because int might match the return type of a GCC
4761 builtin and then its argument prototype would still apply. */
4771 if ac_fn_c_try_link "$LINENO"
4773 ac_cv_lib_dl_dlopen=yes
4775 ac_cv_lib_dl_dlopen=no
4777 rm -f core conftest.err conftest.$ac_objext conftest.beam \
4778 conftest$ac_exeext conftest.$ac_ext
4779 LIBS=$ac_check_lib_save_LIBS
4781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
4782 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
4783 if test "x$ac_cv_lib_dl_dlopen" = xyes
4790 # Check whether --with-cc was given.
4791 if test ${with_cc+y}
4793 withval=$with_cc; as_fn_error $? "--with-cc no longer supported; use CC= instead" "$LINENO" 5
4797 # Check whether --with-ccopts was given.
4798 if test ${with_ccopts+y}
4800 withval=$with_ccopts; as_fn_error $? "--with-ccopts no longer supported; use CFLAGS= instead" "$LINENO" 5
4804 # Check whether --with-ldopts was given.
4805 if test ${with_ldopts+y}
4807 withval=$with_ldopts; as_fn_error $? "--with-ldopts no longer supported; use LDFLAGS= instead" "$LINENO" 5
4811 ac_cpp='$CPP $CPPFLAGS'
4812 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4813 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4814 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4815 if test -n "$ac_tool_prefix"; then
4816 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4817 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4819 printf %s "checking for $ac_word... " >&6; }
4820 if test ${ac_cv_prog_CC+y}
4822 printf %s "(cached) " >&6
4824 if test -n "$CC"; then
4825 ac_cv_prog_CC="$CC" # Let the user override the test.
4827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4831 case $as_dir in #(((
4834 *) as_dir=$as_dir/ ;;
4836 for ac_exec_ext in '' $ac_executable_extensions; do
4837 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4838 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4839 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4849 if test -n "$CC"; then
4850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4851 printf "%s\n" "$CC" >&6; }
4853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4854 printf "%s\n" "no" >&6; }
4859 if test -z "$ac_cv_prog_CC"; then
4861 # Extract the first word of "gcc", so it can be a program name with args.
4862 set dummy gcc; ac_word=$2
4863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4864 printf %s "checking for $ac_word... " >&6; }
4865 if test ${ac_cv_prog_ac_ct_CC+y}
4867 printf %s "(cached) " >&6
4869 if test -n "$ac_ct_CC"; then
4870 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4876 case $as_dir in #(((
4879 *) as_dir=$as_dir/ ;;
4881 for ac_exec_ext in '' $ac_executable_extensions; do
4882 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4883 ac_cv_prog_ac_ct_CC="gcc"
4884 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4893 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4894 if test -n "$ac_ct_CC"; then
4895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4896 printf "%s\n" "$ac_ct_CC" >&6; }
4898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4899 printf "%s\n" "no" >&6; }
4902 if test "x$ac_ct_CC" = x; then
4905 case $cross_compiling:$ac_tool_warned in
4907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4908 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4909 ac_tool_warned=yes ;;
4917 if test -z "$CC"; then
4918 if test -n "$ac_tool_prefix"; then
4919 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4920 set dummy ${ac_tool_prefix}cc; ac_word=$2
4921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4922 printf %s "checking for $ac_word... " >&6; }
4923 if test ${ac_cv_prog_CC+y}
4925 printf %s "(cached) " >&6
4927 if test -n "$CC"; then
4928 ac_cv_prog_CC="$CC" # Let the user override the test.
4930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4934 case $as_dir in #(((
4937 *) as_dir=$as_dir/ ;;
4939 for ac_exec_ext in '' $ac_executable_extensions; do
4940 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4941 ac_cv_prog_CC="${ac_tool_prefix}cc"
4942 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4952 if test -n "$CC"; then
4953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4954 printf "%s\n" "$CC" >&6; }
4956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4957 printf "%s\n" "no" >&6; }
4963 if test -z "$CC"; then
4964 # Extract the first word of "cc", so it can be a program name with args.
4965 set dummy cc; ac_word=$2
4966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4967 printf %s "checking for $ac_word... " >&6; }
4968 if test ${ac_cv_prog_CC+y}
4970 printf %s "(cached) " >&6
4972 if test -n "$CC"; then
4973 ac_cv_prog_CC="$CC" # Let the user override the test.
4976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4980 case $as_dir in #(((
4983 *) as_dir=$as_dir/ ;;
4985 for ac_exec_ext in '' $ac_executable_extensions; do
4986 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4987 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4988 ac_prog_rejected=yes
4992 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4999 if test $ac_prog_rejected = yes; then
5000 # We found a bogon in the path, so make sure we never use it.
5001 set dummy $ac_cv_prog_CC
5003 if test $# != 0; then
5004 # We chose a different compiler from the bogus one.
5005 # However, it has the same basename, so the bogon will be chosen
5006 # first if we set CC to just the basename; use the full file name.
5008 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
5014 if test -n "$CC"; then
5015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5016 printf "%s\n" "$CC" >&6; }
5018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5019 printf "%s\n" "no" >&6; }
5024 if test -z "$CC"; then
5025 if test -n "$ac_tool_prefix"; then
5026 for ac_prog in cl.exe
5028 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5029 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5031 printf %s "checking for $ac_word... " >&6; }
5032 if test ${ac_cv_prog_CC+y}
5034 printf %s "(cached) " >&6
5036 if test -n "$CC"; then
5037 ac_cv_prog_CC="$CC" # Let the user override the test.
5039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5043 case $as_dir in #(((
5046 *) as_dir=$as_dir/ ;;
5048 for ac_exec_ext in '' $ac_executable_extensions; do
5049 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5050 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5051 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5061 if test -n "$CC"; then
5062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5063 printf "%s\n" "$CC" >&6; }
5065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5066 printf "%s\n" "no" >&6; }
5070 test -n "$CC" && break
5073 if test -z "$CC"; then
5075 for ac_prog in cl.exe
5077 # Extract the first word of "$ac_prog", so it can be a program name with args.
5078 set dummy $ac_prog; ac_word=$2
5079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5080 printf %s "checking for $ac_word... " >&6; }
5081 if test ${ac_cv_prog_ac_ct_CC+y}
5083 printf %s "(cached) " >&6
5085 if test -n "$ac_ct_CC"; then
5086 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5092 case $as_dir in #(((
5095 *) as_dir=$as_dir/ ;;
5097 for ac_exec_ext in '' $ac_executable_extensions; do
5098 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5099 ac_cv_prog_ac_ct_CC="$ac_prog"
5100 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5109 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5110 if test -n "$ac_ct_CC"; then
5111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5112 printf "%s\n" "$ac_ct_CC" >&6; }
5114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5115 printf "%s\n" "no" >&6; }
5119 test -n "$ac_ct_CC" && break
5122 if test "x$ac_ct_CC" = x; then
5125 case $cross_compiling:$ac_tool_warned in
5127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5128 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5129 ac_tool_warned=yes ;;
5136 if test -z "$CC"; then
5137 if test -n "$ac_tool_prefix"; then
5138 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
5139 set dummy ${ac_tool_prefix}clang; ac_word=$2
5140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5141 printf %s "checking for $ac_word... " >&6; }
5142 if test ${ac_cv_prog_CC+y}
5144 printf %s "(cached) " >&6
5146 if test -n "$CC"; then
5147 ac_cv_prog_CC="$CC" # Let the user override the test.
5149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5153 case $as_dir in #(((
5156 *) as_dir=$as_dir/ ;;
5158 for ac_exec_ext in '' $ac_executable_extensions; do
5159 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5160 ac_cv_prog_CC="${ac_tool_prefix}clang"
5161 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5171 if test -n "$CC"; then
5172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5173 printf "%s\n" "$CC" >&6; }
5175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5176 printf "%s\n" "no" >&6; }
5181 if test -z "$ac_cv_prog_CC"; then
5183 # Extract the first word of "clang", so it can be a program name with args.
5184 set dummy clang; ac_word=$2
5185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5186 printf %s "checking for $ac_word... " >&6; }
5187 if test ${ac_cv_prog_ac_ct_CC+y}
5189 printf %s "(cached) " >&6
5191 if test -n "$ac_ct_CC"; then
5192 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5198 case $as_dir in #(((
5201 *) as_dir=$as_dir/ ;;
5203 for ac_exec_ext in '' $ac_executable_extensions; do
5204 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5205 ac_cv_prog_ac_ct_CC="clang"
5206 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5215 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5216 if test -n "$ac_ct_CC"; then
5217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5218 printf "%s\n" "$ac_ct_CC" >&6; }
5220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5221 printf "%s\n" "no" >&6; }
5224 if test "x$ac_ct_CC" = x; then
5227 case $cross_compiling:$ac_tool_warned in
5229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5230 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5231 ac_tool_warned=yes ;;
5242 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5243 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5244 as_fn_error $? "no acceptable C compiler found in \$PATH
5245 See \`config.log' for more details" "$LINENO" 5; }
5247 # Provide some information about the compiler.
5248 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5251 for ac_option in --version -v -V -qversion -version; do
5252 { { ac_try="$ac_compiler $ac_option >&5"
5254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5255 *) ac_try_echo=$ac_try;;
5257 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5258 printf "%s\n" "$ac_try_echo"; } >&5
5259 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5261 if test -s conftest.err; then
5263 ... rest of stderr output deleted ...
5264 10q' conftest.err >conftest.er1
5265 cat conftest.er1 >&5
5267 rm -f conftest.er1 conftest.err
5268 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5269 test $ac_status = 0; }
5272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
5273 printf %s "checking whether the compiler supports GNU C... " >&6; }
5274 if test ${ac_cv_c_compiler_gnu+y}
5276 printf %s "(cached) " >&6
5278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5279 /* end confdefs.h. */
5292 if ac_fn_c_try_compile "$LINENO"
5298 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5299 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5303 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
5304 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5306 if test $ac_compiler_gnu = yes; then
5311 ac_test_CFLAGS=${CFLAGS+y}
5312 ac_save_CFLAGS=$CFLAGS
5313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5314 printf %s "checking whether $CC accepts -g... " >&6; }
5315 if test ${ac_cv_prog_cc_g+y}
5317 printf %s "(cached) " >&6
5319 ac_save_c_werror_flag=$ac_c_werror_flag
5320 ac_c_werror_flag=yes
5323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5324 /* end confdefs.h. */
5334 if ac_fn_c_try_compile "$LINENO"
5339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5340 /* end confdefs.h. */
5350 if ac_fn_c_try_compile "$LINENO"
5354 ac_c_werror_flag=$ac_save_c_werror_flag
5356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5357 /* end confdefs.h. */
5367 if ac_fn_c_try_compile "$LINENO"
5371 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5373 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5375 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5376 ac_c_werror_flag=$ac_save_c_werror_flag
5378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5379 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
5380 if test $ac_test_CFLAGS; then
5381 CFLAGS=$ac_save_CFLAGS
5382 elif test $ac_cv_prog_cc_g = yes; then
5383 if test "$GCC" = yes; then
5389 if test "$GCC" = yes; then
5396 if test x$ac_prog_cc_stdc = xno
5398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
5399 printf %s "checking for $CC option to enable C11 features... " >&6; }
5400 if test ${ac_cv_prog_cc_c11+y}
5402 printf %s "(cached) " >&6
5404 ac_cv_prog_cc_c11=no
5406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5407 /* end confdefs.h. */
5408 $ac_c_conftest_c11_program
5410 for ac_arg in '' -std=gnu11
5412 CC="$ac_save_CC $ac_arg"
5413 if ac_fn_c_try_compile "$LINENO"
5415 ac_cv_prog_cc_c11=$ac_arg
5417 rm -f core conftest.err conftest.$ac_objext conftest.beam
5418 test "x$ac_cv_prog_cc_c11" != "xno" && break
5420 rm -f conftest.$ac_ext
5424 if test "x$ac_cv_prog_cc_c11" = xno
5426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5427 printf "%s\n" "unsupported" >&6; }
5429 if test "x$ac_cv_prog_cc_c11" = x
5431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5432 printf "%s\n" "none needed" >&6; }
5434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
5435 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
5436 CC="$CC $ac_cv_prog_cc_c11"
5438 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
5442 if test x$ac_prog_cc_stdc = xno
5444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
5445 printf %s "checking for $CC option to enable C99 features... " >&6; }
5446 if test ${ac_cv_prog_cc_c99+y}
5448 printf %s "(cached) " >&6
5450 ac_cv_prog_cc_c99=no
5452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5453 /* end confdefs.h. */
5454 $ac_c_conftest_c99_program
5456 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
5458 CC="$ac_save_CC $ac_arg"
5459 if ac_fn_c_try_compile "$LINENO"
5461 ac_cv_prog_cc_c99=$ac_arg
5463 rm -f core conftest.err conftest.$ac_objext conftest.beam
5464 test "x$ac_cv_prog_cc_c99" != "xno" && break
5466 rm -f conftest.$ac_ext
5470 if test "x$ac_cv_prog_cc_c99" = xno
5472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5473 printf "%s\n" "unsupported" >&6; }
5475 if test "x$ac_cv_prog_cc_c99" = x
5477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5478 printf "%s\n" "none needed" >&6; }
5480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5481 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
5482 CC="$CC $ac_cv_prog_cc_c99"
5484 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
5488 if test x$ac_prog_cc_stdc = xno
5490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
5491 printf %s "checking for $CC option to enable C89 features... " >&6; }
5492 if test ${ac_cv_prog_cc_c89+y}
5494 printf %s "(cached) " >&6
5496 ac_cv_prog_cc_c89=no
5498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5499 /* end confdefs.h. */
5500 $ac_c_conftest_c89_program
5502 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5504 CC="$ac_save_CC $ac_arg"
5505 if ac_fn_c_try_compile "$LINENO"
5507 ac_cv_prog_cc_c89=$ac_arg
5509 rm -f core conftest.err conftest.$ac_objext conftest.beam
5510 test "x$ac_cv_prog_cc_c89" != "xno" && break
5512 rm -f conftest.$ac_ext
5516 if test "x$ac_cv_prog_cc_c89" = xno
5518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5519 printf "%s\n" "unsupported" >&6; }
5521 if test "x$ac_cv_prog_cc_c89" = x
5523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5524 printf "%s\n" "none needed" >&6; }
5526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5527 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
5528 CC="$CC $ac_cv_prog_cc_c89"
5530 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
5536 ac_cpp='$CPP $CPPFLAGS'
5537 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5538 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5539 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5541 if test "$GCC" = yes; then
5542 RDYNAMIC="-rdynamic"
5546 ac_cpp='$CPP $CPPFLAGS'
5547 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5548 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5549 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5551 printf %s "checking how to run the C preprocessor... " >&6; }
5552 # On Suns, sometimes $CPP names a directory.
5553 if test -n "$CPP" && test -d "$CPP"; then
5556 if test -z "$CPP"; then
5557 if test ${ac_cv_prog_CPP+y}
5559 printf %s "(cached) " >&6
5561 # Double quotes because $CC needs to be expanded
5562 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
5565 for ac_c_preproc_warn_flag in '' yes
5567 # Use a header file that comes with gcc, so configuring glibc
5568 # with a fresh cross-compiler works.
5569 # On the NeXT, cc -E runs the code through the compiler's parser,
5570 # not just through cpp. "Syntax error" is here to catch this case.
5571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5572 /* end confdefs.h. */
5576 if ac_fn_c_try_cpp "$LINENO"
5580 # Broken: fails on valid input.
5583 rm -f conftest.err conftest.i conftest.$ac_ext
5585 # OK, works on sane cases. Now check whether nonexistent headers
5586 # can be detected and how.
5587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5588 /* end confdefs.h. */
5589 #include <ac_nonexistent.h>
5591 if ac_fn_c_try_cpp "$LINENO"
5593 # Broken: success on invalid input.
5596 # Passes both tests.
5600 rm -f conftest.err conftest.i conftest.$ac_ext
5603 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5604 rm -f conftest.i conftest.err conftest.$ac_ext
5618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5619 printf "%s\n" "$CPP" >&6; }
5621 for ac_c_preproc_warn_flag in '' yes
5623 # Use a header file that comes with gcc, so configuring glibc
5624 # with a fresh cross-compiler works.
5625 # On the NeXT, cc -E runs the code through the compiler's parser,
5626 # not just through cpp. "Syntax error" is here to catch this case.
5627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5628 /* end confdefs.h. */
5632 if ac_fn_c_try_cpp "$LINENO"
5636 # Broken: fails on valid input.
5639 rm -f conftest.err conftest.i conftest.$ac_ext
5641 # OK, works on sane cases. Now check whether nonexistent headers
5642 # can be detected and how.
5643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5644 /* end confdefs.h. */
5645 #include <ac_nonexistent.h>
5647 if ac_fn_c_try_cpp "$LINENO"
5649 # Broken: success on invalid input.
5652 # Passes both tests.
5656 rm -f conftest.err conftest.i conftest.$ac_ext
5659 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5660 rm -f conftest.i conftest.err conftest.$ac_ext
5665 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5666 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5667 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5668 See \`config.log' for more details" "$LINENO" 5; }
5672 ac_cpp='$CPP $CPPFLAGS'
5673 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5674 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5675 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for additional special compiler flags" >&5
5678 printf %s "checking for additional special compiler flags... " >&6; }
5679 if test "$GCC" = yes
5682 alpha) addcflags="-mieee" ;;
5685 if test "x$addcflags" != x
5687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $addcflags" >&5
5688 printf "%s\n" "$addcflags" >&6; }
5689 CFLAGS="$addcflags $CFLAGS"
5691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: (none)" >&5
5692 printf "%s\n" "(none)" >&6; }
5698 # Check whether --with-root-prefix was given.
5699 if test ${with_root_prefix+y}
5701 withval=$with_root_prefix; root_prefix=$withval
5705 # Check whether --enable-maintainer-mode was given.
5706 if test ${enable_maintainer_mode+y}
5708 enableval=$enable_maintainer_mode; if test "$enableval" = "no"
5711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode" >&5
5712 printf "%s\n" "Disabling maintainer mode" >&6; }
5715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling maintainer mode" >&5
5716 printf "%s\n" "Enabling maintainer mode" >&6; }
5721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode by default" >&5
5722 printf "%s\n" "Disabling maintainer mode by default" >&6; }
5727 # Check whether --enable-symlink-install was given.
5728 if test ${enable_symlink_install+y}
5730 enableval=$enable_symlink_install; if test "$enableval" = "no"
5732 LINK_INSTALL_FLAGS=-f
5733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install" >&5
5734 printf "%s\n" "Disabling symlinks for install" >&6; }
5736 LINK_INSTALL_FLAGS=-sf
5737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for install" >&5
5738 printf "%s\n" "Enabling symlinks for install" >&6; }
5742 LINK_INSTALL_FLAGS=-f
5743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install by default" >&5
5744 printf "%s\n" "Disabling symlinks for install by default" >&6; }
5749 relative_symlink_defined=
5750 # Check whether --enable-relative-symlinks was given.
5751 if test ${enable_relative_symlinks+y}
5753 enableval=$enable_relative_symlinks; if test "$enableval" = "no"
5756 relative_symlink_defined=yes
5757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
5758 printf "%s\n" "Disabling relative symlinks for install" >&6; }
5760 SYMLINK_RELATIVE=--relative
5761 relative_symlink_defined=yes
5762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5
5763 printf "%s\n" "Enabling relative symlinks for install" >&6; }
5767 # Check whether --enable-symlink-relative-symlinks was given.
5768 if test ${enable_symlink_relative_symlinks+y}
5770 enableval=$enable_symlink_relative_symlinks; if test "$enableval" = "no"
5772 SYMLINK_RELATIVE=yes
5773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
5774 printf "%s\n" "Disabling relative symlinks for install" >&6; }
5776 SYMLINK_RELATIVE=--relative
5777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5
5778 printf "%s\n" "Enabling relative symlinks for install" >&6; }
5782 if test -z "$relative_symlink_defined"
5785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install by default" >&5
5786 printf "%s\n" "Disabling relative symlinks for install by default" >&6; }
5792 # Check whether --enable-symlink-build was given.
5793 if test ${enable_symlink_build+y}
5795 enableval=$enable_symlink_build; if test "$enableval" = "no"
5798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build" >&5
5799 printf "%s\n" "Disabling symlinks for build" >&6; }
5802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for build" >&5
5803 printf "%s\n" "Enabling symlinks for build" >&6; }
5808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build by default" >&5
5809 printf "%s\n" "Disabling symlinks for build by default" >&6; }
5814 # Check whether --enable-verbose-makecmds was given.
5815 if test ${enable_verbose_makecmds+y}
5817 enableval=$enable_verbose_makecmds; if test "$enableval" = "no"
5819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
5820 printf "%s\n" "Disabling verbose make commands" >&6; }
5825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling verbose make commands" >&5
5826 printf "%s\n" "Enabling verbose make commands" >&6; }
5833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
5834 printf "%s\n" "Disabling verbose make commands" >&6; }
5844 E2_PKG_CONFIG_STATIC=--static
5847 # Check whether --enable-elf-shlibs was given.
5848 if test ${enable_elf_shlibs+y}
5850 enableval=$enable_elf_shlibs; if test "$enableval" = "no"
5853 MAKEFILE_ELF=/dev/null
5854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries" >&5
5855 printf "%s\n" "Disabling ELF shared libraries" >&6; }
5857 E2_PKG_CONFIG_STATIC=
5859 MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
5862 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
5868 LDFLAG_DYNAMIC='-Wl,-rpath-link,$(top_builddir)/lib'
5869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling ELF shared libraries" >&5
5870 printf "%s\n" "Enabling ELF shared libraries" >&6; }
5874 MAKEFILE_ELF=/dev/null
5876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries by default" >&5
5877 printf "%s\n" "Disabling ELF shared libraries by default" >&6; }
5883 # Check whether --enable-bsd-shlibs was given.
5884 if test ${enable_bsd_shlibs+y}
5886 enableval=$enable_bsd_shlibs; if test "$enableval" = "no"
5889 MAKEFILE_BSDLIB=/dev/null
5890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries" >&5
5891 printf "%s\n" "Disabling BSD shared libraries" >&6; }
5893 E2_PKG_CONFIG_STATIC=
5895 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
5899 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib
5903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling BSD shared libraries" >&5
5904 printf "%s\n" "Enabling BSD shared libraries" >&6; }
5908 MAKEFILE_BSDLIB=/dev/null
5910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries by default" >&5
5911 printf "%s\n" "Disabling BSD shared libraries by default" >&6; }
5917 # Check whether --enable-profile was given.
5918 if test ${enable_profile+y}
5920 enableval=$enable_profile; if test "$enableval" = "no"
5923 MAKEFILE_PROFILE=/dev/null
5924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries" >&5
5925 printf "%s\n" "Disabling profiling libraries" >&6; }
5928 MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
5929 PROFILED_LIB_EXT=_p.a
5930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Building profiling libraries" >&5
5931 printf "%s\n" "Building profiling libraries" >&6; }
5936 MAKEFILE_PROFILE=/dev/null
5937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries by default" >&5
5938 printf "%s\n" "Disabling profiling libraries by default" >&6; }
5944 # Check whether --enable-gcov was given.
5945 if test ${enable_gcov+y}
5947 enableval=$enable_gcov; if test "$enableval" = "yes"
5949 CFLAGS="-g -fprofile-arcs -ftest-coverage"
5950 LDFLAGS="-fprofile-arcs -ftest-coverage"
5951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling gcov support" >&5
5952 printf "%s\n" "Enabling gcov support" >&6; }
5957 CFLAGS_SHLIB="${CFLAGS_SHLIB:-$CFLAGS}"
5958 CFLAGS_STLIB="${CFLAGS_STLIB:-$CFLAGS}"
5959 LDFLAGS_SHLIB=${LDFLAGS_SHLIB:-$LDFLAGS}
5960 LDFLAGS_STATIC=${LDFLAGS_STATIC:-$LDFLAGS}
5961 # Check whether --enable-hardening was given.
5962 if test ${enable_hardening+y}
5964 enableval=$enable_hardening; if test "$enableval" = "yes"
5966 HARDEN_CFLAGS="-D_FORTIFY_SOURCE=3 -fstack-protector-strong"
5967 HARDEN_LDFLAGS="-Wl,-z,relro -Wl,-z,now"
5968 CFLAGS="$CFLAGS $HARDEN_CFLAGS -fPIE"
5969 CFLAGS_SHLIB="$CFLAGS_SHLIB $HARDEN_CFLAGS"
5970 CFLAGS_STLIB="$CFLAGS_STLIB $HARDEN_CFLAGS -fPIE"
5971 LDFLAGS="$LDFLAGS $HARDEN_LDFLAGS -fPIE -pie"
5972 LDFLAGS_STATIC="$LDFLAGS_STATIC $HARDEN_LDFLAGS"
5973 LDFLAGS_SHLIB="$LDFLAGS_SHLIB $HARDEN_LDFLAGS"
5974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling hardening support" >&5
5975 printf "%s\n" "Enabling hardening support" >&6; }
5985 # Check whether --enable-jbd-debug was given.
5986 if test ${enable_jbd_debug+y}
5988 enableval=$enable_jbd_debug; if test "$enableval" = "no"
5990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging" >&5
5991 printf "%s\n" "Disabling journal debugging" >&6; }
5994 printf "%s\n" "#define CONFIG_JBD_DEBUG 1" >>confdefs.h
5996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling journal debugging" >&5
5997 printf "%s\n" "Enabling journal debugging" >&6; }
6001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging by default" >&5
6002 printf "%s\n" "Disabling journal debugging by default" >&6; }
6006 # Check whether --enable-blkid-debug was given.
6007 if test ${enable_blkid_debug+y}
6009 enableval=$enable_blkid_debug; if test "$enableval" = "no"
6011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging" >&5
6012 printf "%s\n" "Disabling blkid debugging" >&6; }
6015 printf "%s\n" "#define CONFIG_BLKID_DEBUG 1" >>confdefs.h
6017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling blkid debugging" >&5
6018 printf "%s\n" "Enabling blkid debugging" >&6; }
6022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging by default" >&5
6023 printf "%s\n" "Disabling blkid debugging by default" >&6; }
6027 # Check whether --enable-testio-debug was given.
6028 if test ${enable_testio_debug+y}
6030 enableval=$enable_testio_debug;
6031 if test "$enableval" = "no"
6033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling testio debugging" >&5
6034 printf "%s\n" "Disabling testio debugging" >&6; }
6038 printf "%s\n" "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
6040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging" >&5
6041 printf "%s\n" "Enabling testio debugging" >&6; }
6045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging by default" >&5
6046 printf "%s\n" "Enabling testio debugging by default" >&6; }
6047 printf "%s\n" "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
6054 # Check whether --enable-developer-features was given.
6055 if test ${enable_developer_features+y}
6057 enableval=$enable_developer_features;
6058 if test "$enableval" = "yes"
6061 printf "%s\n" "#define CONFIG_DEVELOPER_FEATURES 1" >>confdefs.h
6063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling ext4 developer features" >&5
6064 printf "%s\n" "Enabling ext4 developer features" >&6; }
6066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling ext4 developer features" >&5
6067 printf "%s\n" "Disabling ext4 developer features" >&6; }
6068 DEV_FEATURES_CMT="#"
6072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling ext4 developer features by default" >&5
6073 printf "%s\n" "Disabling ext4 developer features by default" >&6; }
6086 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
6087 if test -n "$ac_tool_prefix"; then
6088 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
6089 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
6090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6091 printf %s "checking for $ac_word... " >&6; }
6092 if test ${ac_cv_path_PKG_CONFIG+y}
6094 printf %s "(cached) " >&6
6098 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6105 case $as_dir in #(((
6108 *) as_dir=$as_dir/ ;;
6110 for ac_exec_ext in '' $ac_executable_extensions; do
6111 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6112 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
6113 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6123 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6124 if test -n "$PKG_CONFIG"; then
6125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
6126 printf "%s\n" "$PKG_CONFIG" >&6; }
6128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6129 printf "%s\n" "no" >&6; }
6134 if test -z "$ac_cv_path_PKG_CONFIG"; then
6135 ac_pt_PKG_CONFIG=$PKG_CONFIG
6136 # Extract the first word of "pkg-config", so it can be a program name with args.
6137 set dummy pkg-config; ac_word=$2
6138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6139 printf %s "checking for $ac_word... " >&6; }
6140 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
6142 printf %s "(cached) " >&6
6144 case $ac_pt_PKG_CONFIG in
6146 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
6149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6153 case $as_dir in #(((
6156 *) as_dir=$as_dir/ ;;
6158 for ac_exec_ext in '' $ac_executable_extensions; do
6159 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6160 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
6161 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6171 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
6172 if test -n "$ac_pt_PKG_CONFIG"; then
6173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
6174 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
6176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6177 printf "%s\n" "no" >&6; }
6180 if test "x$ac_pt_PKG_CONFIG" = x; then
6183 case $cross_compiling:$ac_tool_warned in
6185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6186 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6187 ac_tool_warned=yes ;;
6189 PKG_CONFIG=$ac_pt_PKG_CONFIG
6192 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
6196 if test -n "$PKG_CONFIG"; then
6197 _pkg_min_version=0.9.0
6198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
6199 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
6200 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
6201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6202 printf "%s\n" "yes" >&6; }
6204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6205 printf "%s\n" "no" >&6; }
6214 DEPPROFILED_LIBUUID=
6216 # Check whether --enable-libuuid was given.
6217 if test ${enable_libuuid+y}
6219 enableval=$enable_libuuid; if test "$enableval" = "no"
6221 if test -z "$PKG_CONFIG"; then
6222 as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5
6225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
6226 printf %s "checking for uuid_generate in -luuid... " >&6; }
6227 if test ${ac_cv_lib_uuid_uuid_generate+y}
6229 printf %s "(cached) " >&6
6231 ac_check_lib_save_LIBS=$LIBS
6233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6234 /* end confdefs.h. */
6236 /* Override any GCC internal prototype to avoid an error.
6237 Use char because int might match the return type of a GCC
6238 builtin and then its argument prototype would still apply. */
6239 char uuid_generate ();
6243 return uuid_generate ();
6248 if ac_fn_c_try_link "$LINENO"
6250 ac_cv_lib_uuid_uuid_generate=yes
6252 ac_cv_lib_uuid_uuid_generate=no
6254 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6255 conftest$ac_exeext conftest.$ac_ext
6256 LIBS=$ac_check_lib_save_LIBS
6258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
6259 printf "%s\n" "$ac_cv_lib_uuid_uuid_generate" >&6; }
6260 if test "x$ac_cv_lib_uuid_uuid_generate" = xyes
6262 LIBUUID=`$PKG_CONFIG --libs uuid`;
6263 STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid`
6265 as_fn_error $? "external uuid library not found" "$LINENO" 5
6268 PROFILED_LIBUUID=$LIBUUID
6270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling private uuid library" >&5
6271 printf "%s\n" "Disabling private uuid library" >&6; }
6273 LIBUUID='$(LIB)/libuuid'$LIB_EXT
6275 STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
6276 DEPSTATIC_LIBUUID=$STATIC_LIBUUID
6277 PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
6278 DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
6279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library" >&5
6280 printf "%s\n" "Enabling private uuid library" >&6; }
6284 if test -n "$PKG_CONFIG"; then
6285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
6286 printf %s "checking for uuid_generate in -luuid... " >&6; }
6287 if test ${ac_cv_lib_uuid_uuid_generate+y}
6289 printf %s "(cached) " >&6
6291 ac_check_lib_save_LIBS=$LIBS
6293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6294 /* end confdefs.h. */
6296 /* Override any GCC internal prototype to avoid an error.
6297 Use char because int might match the return type of a GCC
6298 builtin and then its argument prototype would still apply. */
6299 char uuid_generate ();
6303 return uuid_generate ();
6308 if ac_fn_c_try_link "$LINENO"
6310 ac_cv_lib_uuid_uuid_generate=yes
6312 ac_cv_lib_uuid_uuid_generate=no
6314 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6315 conftest$ac_exeext conftest.$ac_ext
6316 LIBS=$ac_check_lib_save_LIBS
6318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
6319 printf "%s\n" "$ac_cv_lib_uuid_uuid_generate" >&6; }
6320 if test "x$ac_cv_lib_uuid_uuid_generate" = xyes
6322 LIBUUID=`$PKG_CONFIG --libs uuid`;
6323 STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid`
6327 if test -n "$LIBUUID"; then
6328 PROFILED_LIBUUID=$LIBUUID
6330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Using system uuid by default" >&5
6331 printf "%s\n" "Using system uuid by default" >&6; }
6333 LIBUUID='$(LIB)/libuuid'$LIB_EXT
6335 STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
6336 DEPSTATIC_LIBUUID=$STATIC_LIBUUID
6337 PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
6338 DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
6339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library by default" >&5
6340 printf "%s\n" "Enabling private uuid library by default" >&6; }
6359 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
6360 if test -n "$ac_tool_prefix"; then
6361 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
6362 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
6363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6364 printf %s "checking for $ac_word... " >&6; }
6365 if test ${ac_cv_path_PKG_CONFIG+y}
6367 printf %s "(cached) " >&6
6371 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6378 case $as_dir in #(((
6381 *) as_dir=$as_dir/ ;;
6383 for ac_exec_ext in '' $ac_executable_extensions; do
6384 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6385 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
6386 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6396 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6397 if test -n "$PKG_CONFIG"; then
6398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
6399 printf "%s\n" "$PKG_CONFIG" >&6; }
6401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6402 printf "%s\n" "no" >&6; }
6407 if test -z "$ac_cv_path_PKG_CONFIG"; then
6408 ac_pt_PKG_CONFIG=$PKG_CONFIG
6409 # Extract the first word of "pkg-config", so it can be a program name with args.
6410 set dummy pkg-config; ac_word=$2
6411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6412 printf %s "checking for $ac_word... " >&6; }
6413 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
6415 printf %s "(cached) " >&6
6417 case $ac_pt_PKG_CONFIG in
6419 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
6422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6426 case $as_dir in #(((
6429 *) as_dir=$as_dir/ ;;
6431 for ac_exec_ext in '' $ac_executable_extensions; do
6432 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6433 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
6434 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6444 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
6445 if test -n "$ac_pt_PKG_CONFIG"; then
6446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
6447 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
6449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6450 printf "%s\n" "no" >&6; }
6453 if test "x$ac_pt_PKG_CONFIG" = x; then
6456 case $cross_compiling:$ac_tool_warned in
6458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6459 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6460 ac_tool_warned=yes ;;
6462 PKG_CONFIG=$ac_pt_PKG_CONFIG
6465 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
6469 if test -n "$PKG_CONFIG"; then
6470 _pkg_min_version=0.9.0
6471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
6472 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
6473 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
6474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6475 printf "%s\n" "yes" >&6; }
6477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6478 printf "%s\n" "no" >&6; }
6487 DEPPROFILED_LIBBLKID=
6490 # Check whether --enable-libblkid was given.
6491 if test ${enable_libblkid+y}
6493 enableval=$enable_libblkid; if test "$enableval" = "no"
6495 if test -z "$PKG_CONFIG"; then
6496 as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5
6499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
6500 printf %s "checking for blkid_get_cache in -lblkid... " >&6; }
6501 if test ${ac_cv_lib_blkid_blkid_get_cache+y}
6503 printf %s "(cached) " >&6
6505 ac_check_lib_save_LIBS=$LIBS
6506 LIBS="-lblkid -luuid $LIBS"
6507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6508 /* end confdefs.h. */
6510 /* Override any GCC internal prototype to avoid an error.
6511 Use char because int might match the return type of a GCC
6512 builtin and then its argument prototype would still apply. */
6513 char blkid_get_cache ();
6517 return blkid_get_cache ();
6522 if ac_fn_c_try_link "$LINENO"
6524 ac_cv_lib_blkid_blkid_get_cache=yes
6526 ac_cv_lib_blkid_blkid_get_cache=no
6528 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6529 conftest$ac_exeext conftest.$ac_ext
6530 LIBS=$ac_check_lib_save_LIBS
6532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
6533 printf "%s\n" "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
6534 if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes
6536 LIBBLKID=`$PKG_CONFIG --libs blkid`;
6537 STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid`
6539 as_fn_error $? "external blkid library not found" "$LINENO" 5
6543 PROFILED_LIBBLKID=$LIBBLKID
6544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling private blkid library" >&5
6545 printf "%s\n" "Disabling private blkid library" >&6; }
6547 LIBBLKID='$(LIB)/libblkid'$LIB_EXT
6548 DEPLIBBLKID=$LIBBLKID
6549 STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
6550 DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
6551 PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
6552 DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
6553 printf "%s\n" "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
6555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library" >&5
6556 printf "%s\n" "Enabling private blkid library" >&6; }
6560 if test -n "$PKG_CONFIG"; then
6561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
6562 printf %s "checking for blkid_get_cache in -lblkid... " >&6; }
6563 if test ${ac_cv_lib_blkid_blkid_get_cache+y}
6565 printf %s "(cached) " >&6
6567 ac_check_lib_save_LIBS=$LIBS
6568 LIBS="-lblkid $LIBS"
6569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6570 /* end confdefs.h. */
6572 /* Override any GCC internal prototype to avoid an error.
6573 Use char because int might match the return type of a GCC
6574 builtin and then its argument prototype would still apply. */
6575 char blkid_get_cache ();
6579 return blkid_get_cache ();
6584 if ac_fn_c_try_link "$LINENO"
6586 ac_cv_lib_blkid_blkid_get_cache=yes
6588 ac_cv_lib_blkid_blkid_get_cache=no
6590 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6591 conftest$ac_exeext conftest.$ac_ext
6592 LIBS=$ac_check_lib_save_LIBS
6594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
6595 printf "%s\n" "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
6596 if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes
6598 LIBBLKID=`$PKG_CONFIG --libs blkid`;
6599 STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid`
6603 if test -n "$LIBBLKID"; then
6605 PROFILED_LIBBLKID=$LIBBLKID
6606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Using system blkid library by default" >&5
6607 printf "%s\n" "Using system blkid library by default" >&6; }
6609 LIBBLKID='$(LIB)/libblkid'$LIB_EXT
6610 DEPLIBBLKID=$LIBBLKID
6611 STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
6612 DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
6613 PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
6614 DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
6615 printf "%s\n" "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
6617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library by default" >&5
6618 printf "%s\n" "Enabling private blkid library by default" >&6; }
6632 # Check whether --enable-subset was given.
6633 if test ${enable_subset+y}
6635 enableval=$enable_subset; if test "$enableval" = "no"
6638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling subset-only build" >&5
6639 printf "%s\n" "Disabling subset-only build" >&6; }
6642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling subset-only-build" >&5
6643 printf "%s\n" "Enabling subset-only-build" >&6; }
6651 # Check whether --enable-backtrace was given.
6652 if test ${enable_backtrace+y}
6654 enableval=$enable_backtrace; if test "$enableval" = "no"
6656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling use of backtrace" >&5
6657 printf "%s\n" "Disabling use of backtrace" >&6; }
6658 printf "%s\n" "#define DISABLE_BACKTRACE 1" >>confdefs.h
6661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace" >&5
6662 printf "%s\n" "Enabling use of backtrace" >&6; }
6666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace by default" >&5
6667 printf "%s\n" "Enabling use of backtrace by default" >&6; }
6671 # Check whether --enable-debugfs was given.
6672 if test ${enable_debugfs+y}
6674 enableval=$enable_debugfs; if test "$enableval" = "no"
6676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling debugfs support" >&5
6677 printf "%s\n" "Disabling debugfs support" >&6; }
6681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support" >&5
6682 printf "%s\n" "Enabling debugfs support" >&6; }
6686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support by default" >&5
6687 printf "%s\n" "Enabling debugfs support by default" >&6; }
6693 # Check whether --enable-imager was given.
6694 if test ${enable_imager+y}
6696 enableval=$enable_imager; if test "$enableval" = "no"
6698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling e2image support" >&5
6699 printf "%s\n" "Disabling e2image support" >&6; }
6703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support" >&5
6704 printf "%s\n" "Enabling e2image support" >&6; }
6708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support by default" >&5
6709 printf "%s\n" "Enabling e2image support by default" >&6; }
6715 # Check whether --enable-resizer was given.
6716 if test ${enable_resizer+y}
6718 enableval=$enable_resizer; if test "$enableval" = "no"
6720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling e2resize support" >&5
6721 printf "%s\n" "Disabling e2resize support" >&6; }
6725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support" >&5
6726 printf "%s\n" "Enabling e2resize support" >&6; }
6730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support by default" >&5
6731 printf "%s\n" "Enabling e2resize support by default" >&6; }
6737 # Check whether --enable-defrag was given.
6738 if test ${enable_defrag+y}
6740 enableval=$enable_defrag; if test "$enableval" = "no"
6742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support" >&5
6743 printf "%s\n" "Disabling e4defrag support" >&6; }
6747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support" >&5
6748 printf "%s\n" "Enabling e4defrag support" >&6; }
6752 if test -z "$WITH_DIET_LIBC"
6754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support by default" >&5
6755 printf "%s\n" "Enabling e4defrag support by default" >&6; }
6758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support by default" >&5
6759 printf "%s\n" "Disabling e4defrag support by default" >&6; }
6766 # Check whether --enable-fsck was given.
6767 if test ${enable_fsck+y}
6769 enableval=$enable_fsck; if test "$enableval" = "no"
6771 FSCK_PROG='' FSCK_MAN=''
6772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper" >&5
6773 printf "%s\n" "Not building fsck wrapper" >&6; }
6775 FSCK_PROG=fsck FSCK_MAN=fsck.8
6776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper" >&5
6777 printf "%s\n" "Building fsck wrapper" >&6; }
6783 FSCK_PROG='' FSCK_MAN=''
6784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper by default" >&5
6785 printf "%s\n" "Not building fsck wrapper by default" >&6; }
6788 FSCK_PROG=fsck FSCK_MAN=fsck.8
6789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper by default" >&5
6790 printf "%s\n" "Building fsck wrapper by default" >&6; }
6797 # Check whether --enable-e2initrd-helper was given.
6798 if test ${enable_e2initrd_helper+y}
6800 enableval=$enable_e2initrd_helper; if test "$enableval" = "no"
6802 E2INITRD_PROG='' E2INITRD_MAN=''
6803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Not building e2initrd helper" >&5
6804 printf "%s\n" "Not 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" >&5
6808 printf "%s\n" "Building e2initrd helper" >&6; }
6812 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
6813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper by default" >&5
6814 printf "%s\n" "Building e2initrd helper by default" >&6; }
6820 # Check whether --enable-tls was given.
6821 if test ${enable_tls+y}
6823 enableval=$enable_tls; if test "$enableval" = "no"
6826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling thread local support" >&5
6827 printf "%s\n" "Disabling thread local support" >&6; }
6830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling thread local support" >&5
6831 printf "%s\n" "Enabling thread local support" >&6; }
6835 if test -n "$WITH_DIET_LIBC"
6838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Diet libc does not support thread local support" >&5
6839 printf "%s\n" "Diet libc does not support thread local support" >&6; }
6842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Try using thread local support by default" >&5
6843 printf "%s\n" "Try using thread local support by default" >&6; }
6848 if test "$try_tls" = "yes"
6851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for thread local storage (TLS) class" >&5
6852 printf %s "checking for thread local storage (TLS) class... " >&6; }
6853 if test ${ac_cv_tls+y}
6855 printf %s "(cached) " >&6
6858 ax_tls_keywords="__thread __declspec(thread) none"
6859 for ax_tls_keyword in $ax_tls_keywords; do
6860 case $ax_tls_keyword in
6861 none) ac_cv_tls=none ; break ;;
6863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6864 /* end confdefs.h. */
6868 static $ax_tls_keyword int bar;
6879 if ac_fn_c_try_compile "$LINENO"
6881 ac_cv_tls=$ax_tls_keyword ; break
6886 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6893 if test "$ac_cv_tls" != "none"; then
6895 printf "%s\n" "#define TLS $ac_cv_tls" >>confdefs.h
6898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tls" >&5
6899 printf "%s\n" "$ac_cv_tls" >&6; }
6903 # Check whether --with-pthread was given.
6904 if test ${with_pthread+y}
6906 withval=$with_pthread; if test "$withval" = "no"
6909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling pthread support" >&5
6910 printf "%s\n" "Disabling pthread support" >&6; }
6913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Testing for pthread support" >&5
6914 printf "%s\n" "Testing for pthread support" >&6; }
6919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Try testing for pthread support by default" >&5
6920 printf "%s\n" "Try testing for pthread support by default" >&6; }
6924 if test "$try_pthread" = "yes"
6926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6927 printf %s "checking for a sed that does not truncate output... " >&6; }
6928 if test ${ac_cv_path_SED+y}
6930 printf %s "(cached) " >&6
6932 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6933 for ac_i in 1 2 3 4 5 6 7; do
6934 ac_script="$ac_script$as_nl$ac_script"
6936 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6937 { ac_script=; unset ac_script;}
6938 if test -z "$SED"; then
6939 ac_path_SED_found=false
6940 # Loop through the user's path and test for each of PROGNAME-LIST
6941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6945 case $as_dir in #(((
6948 *) as_dir=$as_dir/ ;;
6950 for ac_prog in sed gsed
6952 for ac_exec_ext in '' $ac_executable_extensions; do
6953 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
6954 as_fn_executable_p "$ac_path_SED" || continue
6955 # Check for GNU ac_path_SED and select it if it is found.
6956 # Check for GNU $ac_path_SED
6957 case `"$ac_path_SED" --version 2>&1` in
6959 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6962 printf %s 0123456789 >"conftest.in"
6965 cat "conftest.in" "conftest.in" >"conftest.tmp"
6966 mv "conftest.tmp" "conftest.in"
6967 cp "conftest.in" "conftest.nl"
6968 printf "%s\n" '' >> "conftest.nl"
6969 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6970 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6971 as_fn_arith $ac_count + 1 && ac_count=$as_val
6972 if test $ac_count -gt ${ac_path_SED_max-0}; then
6973 # Best one so far, save it but keep looking for a better one
6974 ac_cv_path_SED="$ac_path_SED"
6975 ac_path_SED_max=$ac_count
6977 # 10*(2^10) chars as input seems more than enough
6978 test $ac_count -gt 10 && break
6980 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6983 $ac_path_SED_found && break 3
6988 if test -z "$ac_cv_path_SED"; then
6989 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6997 printf "%s\n" "$ac_cv_path_SED" >&6; }
6998 SED="$ac_cv_path_SED"
7002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
7003 printf %s "checking for grep that handles long lines and -e... " >&6; }
7004 if test ${ac_cv_path_GREP+y}
7006 printf %s "(cached) " >&6
7008 if test -z "$GREP"; then
7009 ac_path_GREP_found=false
7010 # Loop through the user's path and test for each of PROGNAME-LIST
7011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7012 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7015 case $as_dir in #(((
7018 *) as_dir=$as_dir/ ;;
7020 for ac_prog in grep ggrep
7022 for ac_exec_ext in '' $ac_executable_extensions; do
7023 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
7024 as_fn_executable_p "$ac_path_GREP" || continue
7025 # Check for GNU ac_path_GREP and select it if it is found.
7026 # Check for GNU $ac_path_GREP
7027 case `"$ac_path_GREP" --version 2>&1` in
7029 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7032 printf %s 0123456789 >"conftest.in"
7035 cat "conftest.in" "conftest.in" >"conftest.tmp"
7036 mv "conftest.tmp" "conftest.in"
7037 cp "conftest.in" "conftest.nl"
7038 printf "%s\n" 'GREP' >> "conftest.nl"
7039 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7040 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7041 as_fn_arith $ac_count + 1 && ac_count=$as_val
7042 if test $ac_count -gt ${ac_path_GREP_max-0}; then
7043 # Best one so far, save it but keep looking for a better one
7044 ac_cv_path_GREP="$ac_path_GREP"
7045 ac_path_GREP_max=$ac_count
7047 # 10*(2^10) chars as input seems more than enough
7048 test $ac_count -gt 10 && break
7050 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7053 $ac_path_GREP_found && break 3
7058 if test -z "$ac_cv_path_GREP"; then
7059 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7062 ac_cv_path_GREP=$GREP
7066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
7067 printf "%s\n" "$ac_cv_path_GREP" >&6; }
7068 GREP="$ac_cv_path_GREP"
7071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
7072 printf %s "checking for egrep... " >&6; }
7073 if test ${ac_cv_path_EGREP+y}
7075 printf %s "(cached) " >&6
7077 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
7078 then ac_cv_path_EGREP="$GREP -E"
7080 if test -z "$EGREP"; then
7081 ac_path_EGREP_found=false
7082 # Loop through the user's path and test for each of PROGNAME-LIST
7083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7084 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7087 case $as_dir in #(((
7090 *) as_dir=$as_dir/ ;;
7092 for ac_prog in egrep
7094 for ac_exec_ext in '' $ac_executable_extensions; do
7095 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
7096 as_fn_executable_p "$ac_path_EGREP" || continue
7097 # Check for GNU ac_path_EGREP and select it if it is found.
7098 # Check for GNU $ac_path_EGREP
7099 case `"$ac_path_EGREP" --version 2>&1` in
7101 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
7104 printf %s 0123456789 >"conftest.in"
7107 cat "conftest.in" "conftest.in" >"conftest.tmp"
7108 mv "conftest.tmp" "conftest.in"
7109 cp "conftest.in" "conftest.nl"
7110 printf "%s\n" 'EGREP' >> "conftest.nl"
7111 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7112 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7113 as_fn_arith $ac_count + 1 && ac_count=$as_val
7114 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
7115 # Best one so far, save it but keep looking for a better one
7116 ac_cv_path_EGREP="$ac_path_EGREP"
7117 ac_path_EGREP_max=$ac_count
7119 # 10*(2^10) chars as input seems more than enough
7120 test $ac_count -gt 10 && break
7122 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7125 $ac_path_EGREP_found && break 3
7130 if test -z "$ac_cv_path_EGREP"; then
7131 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7134 ac_cv_path_EGREP=$EGREP
7139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
7140 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
7141 EGREP="$ac_cv_path_EGREP"
7149 ac_cpp='$CPP $CPPFLAGS'
7150 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7151 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7152 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7156 # We used to check for pthread.h first, but this fails if pthread.h
7157 # requires special compiler flags (e.g. on Tru64 or Sequent).
7158 # It gets checked for in the link test anyway.
7160 # First of all, check if the user has set any of the PTHREAD_LIBS,
7161 # etcetera environment variables, and if threads linking works using
7163 if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
7164 ax_pthread_save_CC="$CC"
7165 ax_pthread_save_CFLAGS="$CFLAGS"
7166 ax_pthread_save_LIBS="$LIBS"
7167 if test "x$PTHREAD_CC" != "x"
7171 if test "x$PTHREAD_CXX" != "x"
7175 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
7176 LIBS="$PTHREAD_LIBS $LIBS"
7177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
7178 printf %s "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
7179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7180 /* end confdefs.h. */
7182 /* Override any GCC internal prototype to avoid an error.
7183 Use char because int might match the return type of a GCC
7184 builtin and then its argument prototype would still apply. */
7185 char pthread_join ();
7189 return pthread_join ();
7194 if ac_fn_c_try_link "$LINENO"
7198 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7199 conftest$ac_exeext conftest.$ac_ext
7200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
7201 printf "%s\n" "$ax_pthread_ok" >&6; }
7202 if test "x$ax_pthread_ok" = "xno"; then
7206 CC="$ax_pthread_save_CC"
7207 CFLAGS="$ax_pthread_save_CFLAGS"
7208 LIBS="$ax_pthread_save_LIBS"
7211 # We must check for the threads library under a number of different
7212 # names; the ordering is very important because some systems
7213 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
7214 # libraries is broken (non-POSIX).
7216 # Create a list of thread flags to try. Items with a "," contain both
7217 # C compiler flags (before ",") and linker flags (after ","). Other items
7218 # starting with a "-" are C compiler flags, and remaining items are
7219 # library names, except for "none" which indicates that we try without
7220 # any flags at all, and "pthread-config" which is a program returning
7221 # the flags for the Pth emulation library.
7223 ax_pthread_flags="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
7225 # The ordering *is* (sometimes) important. Some notes on the
7226 # individual items follow:
7228 # pthreads: AIX (must check this before -lpthread)
7229 # none: in case threads are in libc; should be tried before -Kthread and
7230 # other compiler flags to prevent continual compiler warnings
7231 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
7232 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
7233 # (Note: HP C rejects this with "bad form for `-t' option")
7234 # -pthreads: Solaris/gcc (Note: HP C also rejects)
7235 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
7236 # doesn't hurt to check since this sometimes defines pthreads and
7237 # -D_REENTRANT too), HP C (must be checked before -lpthread, which
7238 # is present but should not be used directly; and before -mthreads,
7239 # because the compiler interprets this as "-mt" + "-hreads")
7240 # -mthreads: Mingw32/gcc, Lynx/gcc
7241 # pthread: Linux, etcetera
7242 # --thread-safe: KAI C++
7243 # pthread-config: use pthread-config program (for GNU Pth library)
7249 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
7250 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
7252 ax_pthread_flags="-kthread lthread $ax_pthread_flags"
7257 # From the cc(1) man page: "[-mt] Sets various -D flags to enable
7258 # multi-threading and also sets -lpthread."
7260 ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags"
7265 # IBM z/OS requires a feature-test macro to be defined in order to
7266 # enable POSIX threads at all, so give the user a hint if this is
7267 # not set. (We don't define these ourselves, as they can affect
7268 # other portions of the system API in unpredictable ways.)
7270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7271 /* end confdefs.h. */
7273 # if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
7274 AX_PTHREAD_ZOS_MISSING
7278 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7279 $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1
7281 { 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
7282 printf "%s\n" "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
7290 # On Solaris (at least, for some versions), libc contains stubbed
7291 # (non-functional) versions of the pthreads routines, so link-based
7292 # tests will erroneously succeed. (N.B.: The stubs are missing
7293 # pthread_cleanup_push, or rather a function called by this macro,
7294 # so we could check for that, but who knows whether they'll stub
7295 # that too in a future libc.) So we'll check first for the
7296 # standard Solaris way of linking pthreads (-mt -lpthread).
7298 ax_pthread_flags="-mt,-lpthread pthread $ax_pthread_flags"
7302 # Are we compiling with Clang?
7304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
7305 printf %s "checking whether $CC is Clang... " >&6; }
7306 if test ${ax_cv_PTHREAD_CLANG+y}
7308 printf %s "(cached) " >&6
7310 ax_cv_PTHREAD_CLANG=no
7311 # Note that Autoconf sets GCC=yes for Clang as well as GCC
7312 if test "x$GCC" = "xyes"; then
7313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7314 /* end confdefs.h. */
7315 /* Note: Clang 2.7 lacks __clang_[a-z]+__ */
7316 # if defined(__clang__) && defined(__llvm__)
7317 AX_PTHREAD_CC_IS_CLANG
7321 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7322 $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev/null 2>&1
7324 ax_cv_PTHREAD_CLANG=yes
7331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
7332 printf "%s\n" "$ax_cv_PTHREAD_CLANG" >&6; }
7333 ax_pthread_clang="$ax_cv_PTHREAD_CLANG"
7336 # GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
7338 # Note that for GCC and Clang -pthread generally implies -lpthread,
7339 # except when -nostdlib is passed.
7340 # This is problematic using libtool to build C++ shared libraries with pthread:
7341 # [1] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=25460
7342 # [2] https://bugzilla.redhat.com/show_bug.cgi?id=661333
7343 # [3] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=468555
7344 # To solve this, first try -pthread together with -lpthread for GCC
7346 if test "x$GCC" = "xyes"
7348 ax_pthread_flags="-pthread,-lpthread -pthread -pthreads $ax_pthread_flags"
7351 # Clang takes -pthread (never supported any other flag), but we'll try with -lpthread first
7353 if test "x$ax_pthread_clang" = "xyes"
7355 ax_pthread_flags="-pthread,-lpthread -pthread"
7359 # The presence of a feature test macro requesting re-entrant function
7360 # definitions is, on some systems, a strong hint that pthreads support is
7364 darwin* | hpux* | linux* | osf* | solaris*)
7365 ax_pthread_check_macro="_REENTRANT"
7369 ax_pthread_check_macro="_THREAD_SAFE"
7373 ax_pthread_check_macro="--"
7376 if test "x$ax_pthread_check_macro" = "x--"
7378 ax_pthread_check_cond=0
7380 ax_pthread_check_cond="!defined($ax_pthread_check_macro)"
7384 if test "x$ax_pthread_ok" = "xno"; then
7385 for ax_pthread_try_flag in $ax_pthread_flags; do
7387 case $ax_pthread_try_flag in
7389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
7390 printf %s "checking whether pthreads work without any flags... " >&6; }
7394 PTHREAD_CFLAGS=`echo $ax_pthread_try_flag | sed "s/^\(.*\),\(.*\)$/\1/"`
7395 PTHREAD_LIBS=`echo $ax_pthread_try_flag | sed "s/^\(.*\),\(.*\)$/\2/"`
7396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with \"$PTHREAD_CFLAGS\" and \"$PTHREAD_LIBS\"" >&5
7397 printf %s "checking whether pthreads work with \"$PTHREAD_CFLAGS\" and \"$PTHREAD_LIBS\"... " >&6; }
7401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
7402 printf %s "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
7403 PTHREAD_CFLAGS="$ax_pthread_try_flag"
7407 # Extract the first word of "pthread-config", so it can be a program name with args.
7408 set dummy pthread-config; ac_word=$2
7409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7410 printf %s "checking for $ac_word... " >&6; }
7411 if test ${ac_cv_prog_ax_pthread_config+y}
7413 printf %s "(cached) " >&6
7415 if test -n "$ax_pthread_config"; then
7416 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
7418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7422 case $as_dir in #(((
7425 *) as_dir=$as_dir/ ;;
7427 for ac_exec_ext in '' $ac_executable_extensions; do
7428 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7429 ac_cv_prog_ax_pthread_config="yes"
7430 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7437 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
7440 ax_pthread_config=$ac_cv_prog_ax_pthread_config
7441 if test -n "$ax_pthread_config"; then
7442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
7443 printf "%s\n" "$ax_pthread_config" >&6; }
7445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7446 printf "%s\n" "no" >&6; }
7450 if test "x$ax_pthread_config" = "xno"
7454 PTHREAD_CFLAGS="`pthread-config --cflags`"
7455 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
7459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
7460 printf %s "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
7461 PTHREAD_LIBS="-l$ax_pthread_try_flag"
7465 ax_pthread_save_CFLAGS="$CFLAGS"
7466 ax_pthread_save_LIBS="$LIBS"
7467 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
7468 LIBS="$PTHREAD_LIBS $LIBS"
7470 # Check for various functions. We must include pthread.h,
7471 # since some functions may be macros. (On the Sequent, we
7472 # need a special flag -Kthread to make this header compile.)
7473 # We check for pthread_join because it is in -lpthread on IRIX
7474 # while pthread_create is in libc. We check for pthread_attr_init
7475 # due to DEC craziness with -lpthreads. We check for
7476 # pthread_cleanup_push because it is one of the few pthread
7477 # functions on Solaris that doesn't have a non-functional libc stub.
7478 # We try pthread_create on general principles.
7480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7481 /* end confdefs.h. */
7482 #include <pthread.h>
7483 # if $ax_pthread_check_cond
7484 # error "$ax_pthread_check_macro must be defined"
7486 static void *some_global = NULL;
7487 static void routine(void *a)
7489 /* To avoid any unused-parameter or
7490 unused-but-set-parameter warning. */
7493 static void *start_routine(void *a) { return a; }
7497 pthread_t th; pthread_attr_t attr;
7498 pthread_create(&th, 0, start_routine, 0);
7499 pthread_join(th, 0);
7500 pthread_attr_init(&attr);
7501 pthread_cleanup_push(routine, 0);
7502 pthread_cleanup_pop(0) /* ; */
7507 if ac_fn_c_try_link "$LINENO"
7511 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7512 conftest$ac_exeext conftest.$ac_ext
7514 CFLAGS="$ax_pthread_save_CFLAGS"
7515 LIBS="$ax_pthread_save_LIBS"
7517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
7518 printf "%s\n" "$ax_pthread_ok" >&6; }
7519 if test "x$ax_pthread_ok" = "xyes"
7530 # Clang needs special handling, because older versions handle the -pthread
7531 # option in a rather... idiosyncratic way
7533 if test "x$ax_pthread_clang" = "xyes"; then
7535 # Clang takes -pthread; it has never supported any other flag
7537 # (Note 1: This will need to be revisited if a system that Clang
7538 # supports has POSIX threads in a separate library. This tends not
7539 # to be the way of modern systems, but it's conceivable.)
7541 # (Note 2: On some systems, notably Darwin, -pthread is not needed
7542 # to get POSIX threads support; the API is always present and
7543 # active. We could reasonably leave PTHREAD_CFLAGS empty. But
7544 # -pthread does define _REENTRANT, and while the Darwin headers
7545 # ignore this macro, third-party headers might not.)
7547 # However, older versions of Clang make a point of warning the user
7548 # that, in an invocation where only linking and no compilation is
7549 # taking place, the -pthread option has no effect ("argument unused
7550 # during compilation"). They expect -pthread to be passed in only
7551 # when source code is being compiled.
7553 # Problem is, this is at odds with the way Automake and most other
7554 # C build frameworks function, which is that the same flags used in
7555 # compilation (CFLAGS) are also used in linking. Many systems
7556 # supported by AX_PTHREAD require exactly this for POSIX threads
7557 # support, and in fact it is often not straightforward to specify a
7558 # flag that is used only in the compilation phase and not in
7559 # linking. Such a scenario is extremely rare in practice.
7561 # Even though use of the -pthread flag in linking would only print
7562 # a warning, this can be a nuisance for well-run software projects
7563 # that build with -Werror. So if the active version of Clang has
7564 # this misfeature, we search for an option to squash it.
7566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
7567 printf %s "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
7568 if test ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+y}
7570 printf %s "(cached) " >&6
7572 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG=unknown
7573 # Create an alternate version of $ac_link that compiles and
7574 # links in two steps (.c -> .o, .o -> exe) instead of one
7575 # (.c -> exe), because the warning occurs only in the second
7577 ax_pthread_save_ac_link="$ac_link"
7578 ax_pthread_sed='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
7579 ax_pthread_link_step=`printf "%s\n" "$ac_link" | sed "$ax_pthread_sed"`
7580 ax_pthread_2step_ac_link="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
7581 ax_pthread_save_CFLAGS="$CFLAGS"
7582 for ax_pthread_try in '' -Qunused-arguments -Wno-unused-command-line-argument unknown; do
7583 if test "x$ax_pthread_try" = "xunknown"
7587 CFLAGS="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
7588 ac_link="$ax_pthread_save_ac_link"
7589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7590 /* end confdefs.h. */
7591 int main(void){return 0;}
7593 if ac_fn_c_try_link "$LINENO"
7595 ac_link="$ax_pthread_2step_ac_link"
7596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7597 /* end confdefs.h. */
7598 int main(void){return 0;}
7600 if ac_fn_c_try_link "$LINENO"
7604 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7605 conftest$ac_exeext conftest.$ac_ext
7608 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7609 conftest$ac_exeext conftest.$ac_ext
7611 ac_link="$ax_pthread_save_ac_link"
7612 CFLAGS="$ax_pthread_save_CFLAGS"
7613 if test "x$ax_pthread_try" = "x"
7617 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG="$ax_pthread_try"
7620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
7621 printf "%s\n" "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
7623 case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
7625 *) PTHREAD_CFLAGS="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
7628 fi # $ax_pthread_clang = yes
7632 # Various other checks:
7633 if test "x$ax_pthread_ok" = "xyes"; then
7634 ax_pthread_save_CFLAGS="$CFLAGS"
7635 ax_pthread_save_LIBS="$LIBS"
7636 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
7637 LIBS="$PTHREAD_LIBS $LIBS"
7639 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
7640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
7641 printf %s "checking for joinable pthread attribute... " >&6; }
7642 if test ${ax_cv_PTHREAD_JOINABLE_ATTR+y}
7644 printf %s "(cached) " >&6
7646 ax_cv_PTHREAD_JOINABLE_ATTR=unknown
7647 for ax_pthread_attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
7648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7649 /* end confdefs.h. */
7650 #include <pthread.h>
7654 int attr = $ax_pthread_attr; return attr /* ; */
7659 if ac_fn_c_try_link "$LINENO"
7661 ax_cv_PTHREAD_JOINABLE_ATTR=$ax_pthread_attr; break
7663 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7664 conftest$ac_exeext conftest.$ac_ext
7668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
7669 printf "%s\n" "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
7670 if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
7671 test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
7672 test "x$ax_pthread_joinable_attr_defined" != "xyes"
7675 printf "%s\n" "#define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR" >>confdefs.h
7677 ax_pthread_joinable_attr_defined=yes
7681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
7682 printf %s "checking whether more special flags are required for pthreads... " >&6; }
7683 if test ${ax_cv_PTHREAD_SPECIAL_FLAGS+y}
7685 printf %s "(cached) " >&6
7687 ax_cv_PTHREAD_SPECIAL_FLAGS=no
7690 ax_cv_PTHREAD_SPECIAL_FLAGS="-D_POSIX_PTHREAD_SEMANTICS"
7695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
7696 printf "%s\n" "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
7697 if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
7698 test "x$ax_pthread_special_flags_added" != "xyes"
7700 PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
7701 ax_pthread_special_flags_added=yes
7704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
7705 printf %s "checking for PTHREAD_PRIO_INHERIT... " >&6; }
7706 if test ${ax_cv_PTHREAD_PRIO_INHERIT+y}
7708 printf %s "(cached) " >&6
7710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7711 /* end confdefs.h. */
7712 #include <pthread.h>
7716 int i = PTHREAD_PRIO_INHERIT;
7722 if ac_fn_c_try_link "$LINENO"
7724 ax_cv_PTHREAD_PRIO_INHERIT=yes
7726 ax_cv_PTHREAD_PRIO_INHERIT=no
7728 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7729 conftest$ac_exeext conftest.$ac_ext
7732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
7733 printf "%s\n" "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
7734 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
7735 test "x$ax_pthread_prio_inherit_defined" != "xyes"
7738 printf "%s\n" "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
7740 ax_pthread_prio_inherit_defined=yes
7744 CFLAGS="$ax_pthread_save_CFLAGS"
7745 LIBS="$ax_pthread_save_LIBS"
7747 # More AIX lossage: compile with *_r variant
7748 if test "x$GCC" != "xyes"; then
7752 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
7753 #handle absolute path differently from PATH based program lookup
7757 if as_fn_executable_p ${CC}_r
7759 PTHREAD_CC="${CC}_r"
7761 if test "x${CXX}" != "x"
7763 if as_fn_executable_p ${CXX}_r
7765 PTHREAD_CXX="${CXX}_r"
7771 for ac_prog in ${CC}_r
7773 # Extract the first word of "$ac_prog", so it can be a program name with args.
7774 set dummy $ac_prog; ac_word=$2
7775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7776 printf %s "checking for $ac_word... " >&6; }
7777 if test ${ac_cv_prog_PTHREAD_CC+y}
7779 printf %s "(cached) " >&6
7781 if test -n "$PTHREAD_CC"; then
7782 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
7784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7788 case $as_dir in #(((
7791 *) as_dir=$as_dir/ ;;
7793 for ac_exec_ext in '' $ac_executable_extensions; do
7794 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7795 ac_cv_prog_PTHREAD_CC="$ac_prog"
7796 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7805 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
7806 if test -n "$PTHREAD_CC"; then
7807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
7808 printf "%s\n" "$PTHREAD_CC" >&6; }
7810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7811 printf "%s\n" "no" >&6; }
7815 test -n "$PTHREAD_CC" && break
7817 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
7819 if test "x${CXX}" != "x"
7821 for ac_prog in ${CXX}_r
7823 # Extract the first word of "$ac_prog", so it can be a program name with args.
7824 set dummy $ac_prog; ac_word=$2
7825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7826 printf %s "checking for $ac_word... " >&6; }
7827 if test ${ac_cv_prog_PTHREAD_CXX+y}
7829 printf %s "(cached) " >&6
7831 if test -n "$PTHREAD_CXX"; then
7832 ac_cv_prog_PTHREAD_CXX="$PTHREAD_CXX" # Let the user override the test.
7834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7838 case $as_dir in #(((
7841 *) as_dir=$as_dir/ ;;
7843 for ac_exec_ext in '' $ac_executable_extensions; do
7844 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7845 ac_cv_prog_PTHREAD_CXX="$ac_prog"
7846 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7855 PTHREAD_CXX=$ac_cv_prog_PTHREAD_CXX
7856 if test -n "$PTHREAD_CXX"; then
7857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CXX" >&5
7858 printf "%s\n" "$PTHREAD_CXX" >&6; }
7860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7861 printf "%s\n" "no" >&6; }
7865 test -n "$PTHREAD_CXX" && break
7867 test -n "$PTHREAD_CXX" || PTHREAD_CXX="$CXX"
7882 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
7883 test -n "$PTHREAD_CXX" || PTHREAD_CXX="$CXX"
7890 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
7891 if test "x$ax_pthread_ok" = "xyes"; then
7893 printf "%s\n" "#define HAVE_PTHREAD 1" >>confdefs.h
7901 ac_cpp='$CPP $CPPFLAGS'
7902 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7903 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7904 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7908 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
7912 # Check whether --enable-uuidd was given.
7913 if test ${enable_uuidd+y}
7915 enableval=$enable_uuidd; if test "$enableval" = "no"
7917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Not building uuidd" >&5
7918 printf "%s\n" "Not building uuidd" >&6; }
7921 printf "%s\n" "#define USE_UUIDD 1" >>confdefs.h
7924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Building uuidd" >&5
7925 printf "%s\n" "Building uuidd" >&6; }
7929 printf "%s\n" "#define USE_UUIDD 1" >>confdefs.h
7931 if test -z "$UUID_CMT"
7934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Building uuidd by default" >&5
7935 printf "%s\n" "Building uuidd by default" >&6; }
7938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling uuidd by default" >&5
7939 printf "%s\n" "Disabling uuidd by default" >&6; }
7946 # Check whether --enable-mmp was given.
7947 if test ${enable_mmp+y}
7949 enableval=$enable_mmp; if test "$enableval" = "no"
7951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling mmp support" >&5
7952 printf "%s\n" "Disabling mmp support" >&6; }
7954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support" >&5
7955 printf "%s\n" "Enabling mmp support" >&6; }
7956 printf "%s\n" "#define CONFIG_MMP 1" >>confdefs.h
7961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support by default" >&5
7962 printf "%s\n" "Enabling mmp support by default" >&6; }
7963 printf "%s\n" "#define CONFIG_MMP 1" >>confdefs.h
7969 # Check whether --enable-tdb was given.
7970 if test ${enable_tdb+y}
7972 enableval=$enable_tdb;
7973 if test "$enableval" = "no"
7975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling tdb support" >&5
7976 printf "%s\n" "Disabling tdb support" >&6; }
7979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling tdb support" >&5
7980 printf "%s\n" "Enabling tdb support" >&6; }
7989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling tdb support by default" >&5
7990 printf "%s\n" "Disabling tdb support by default" >&6; }
7994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling tdb support by default" >&5
7995 printf "%s\n" "Enabling tdb support by default" >&6; }
8003 if test "$CONFIG_TDB" = "1"
8005 printf "%s\n" "#define CONFIG_TDB 1" >>confdefs.h
8011 TDB_MAN_COMMENT='.\"'
8016 # Check whether --enable-bmap-stats was given.
8017 if test ${enable_bmap_stats+y}
8019 enableval=$enable_bmap_stats; if test "$enableval" = "no"
8021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling bitmap statistics support" >&5
8022 printf "%s\n" "Disabling bitmap statistics support" >&6; }
8024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling bitmap statistics support" >&5
8025 printf "%s\n" "Enabling bitmap statistics support" >&6; }
8026 printf "%s\n" "#define ENABLE_BMAP_STATS 1" >>confdefs.h
8031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling bitmap statistics support by default" >&5
8032 printf "%s\n" "Enabling bitmap statistics support by default" >&6; }
8033 printf "%s\n" "#define ENABLE_BMAP_STATS 1" >>confdefs.h
8039 # Check whether --enable-bmap-stats-ops was given.
8040 if test ${enable_bmap_stats_ops+y}
8042 enableval=$enable_bmap_stats_ops; if test "$enableval" = "no"
8044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling additional bitmap statistics" >&5
8045 printf "%s\n" "Disabling additional bitmap statistics" >&6; }
8047 if test "x${enable_bmap_stats}" = "xno"
8049 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8050 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
8051 as_fn_error $? "Error --enable-bmap-stats-ops requires bmap-stats
8052 See \`config.log' for more details" "$LINENO" 5; }
8055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling additional bitmap statistics" >&5
8056 printf "%s\n" "Enabling additional bitmap statistics" >&6; }
8057 printf "%s\n" "#define ENABLE_BMAP_STATS_OPS 1" >>confdefs.h
8062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling additional bitmap statistics by default" >&5
8063 printf "%s\n" "Disabling additional bitmap statistics by default" >&6; }
8067 MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
8069 GETTEXT_PACKAGE=e2fsprogs
8071 VERSION="$E2FSPROGS_VERSION"
8074 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
8077 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
8083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8084 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
8086 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8087 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
8089 printf %s "(cached) " >&6
8091 cat >conftest.make <<\_ACEOF
8094 @echo '@@@%%%=$(MAKE)=@@@%%%'
8096 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
8097 case `${MAKE-make} -f conftest.make 2>/dev/null` in
8099 eval ac_cv_prog_make_${ac_make}_set=yes;;
8101 eval ac_cv_prog_make_${ac_make}_set=no;;
8105 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8107 printf "%s\n" "yes" >&6; }
8110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8111 printf "%s\n" "no" >&6; }
8112 SET_MAKE="MAKE=${MAKE-make}"
8116 # Find a good install program. We prefer a C program (faster),
8117 # so one script is as good as another. But avoid the broken or
8118 # incompatible versions:
8119 # SysV /etc/install, /usr/sbin/install
8120 # SunOS /usr/etc/install
8121 # IRIX /sbin/install
8123 # AmigaOS /C/install, which installs bootblocks on floppy discs
8124 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8125 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8126 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8127 # OS/2's system install, which has a completely different semantic
8128 # ./install, which can be erroneously created by make from ./install.sh.
8129 # Reject install programs that cannot install multiple files.
8130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
8131 printf %s "checking for a BSD-compatible install... " >&6; }
8132 if test -z "$INSTALL"; then
8133 if test ${ac_cv_path_install+y}
8135 printf %s "(cached) " >&6
8137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8141 case $as_dir in #(((
8144 *) as_dir=$as_dir/ ;;
8146 # Account for fact that we put trailing slashes in our PATH walk.
8149 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
8150 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
8153 # OSF1 and SCO ODT 3.0 have their own names for install.
8154 # Don't use installbsd from OSF since it installs stuff as root
8156 for ac_prog in ginstall scoinst install; do
8157 for ac_exec_ext in '' $ac_executable_extensions; do
8158 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
8159 if test $ac_prog = install &&
8160 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8161 # AIX install. It has an incompatible calling convention.
8163 elif test $ac_prog = install &&
8164 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8165 # program-specific install script used by HP pwplus--don't use.
8168 rm -rf conftest.one conftest.two conftest.dir
8169 echo one > conftest.one
8170 echo two > conftest.two
8172 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
8173 test -s conftest.one && test -s conftest.two &&
8174 test -s conftest.dir/conftest.one &&
8175 test -s conftest.dir/conftest.two
8177 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
8190 rm -rf conftest.one conftest.two conftest.dir
8193 if test ${ac_cv_path_install+y}; then
8194 INSTALL=$ac_cv_path_install
8196 # As a last resort, use the slow shell script. Don't cache a
8197 # value for INSTALL within a source directory, because that will
8198 # break other packages using the cache if that directory is
8199 # removed, or if the value is a relative name.
8200 INSTALL=$ac_install_sh
8203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
8204 printf "%s\n" "$INSTALL" >&6; }
8206 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8207 # It thinks the first close brace ends the variable substitution.
8208 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8210 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
8212 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
8216 printf %s "checking for a race-free mkdir -p... " >&6; }
8217 if test -z "$MKDIR_P"; then
8218 if test ${ac_cv_path_mkdir+y}
8220 printf %s "(cached) " >&6
8222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8223 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
8226 case $as_dir in #(((
8229 *) as_dir=$as_dir/ ;;
8231 for ac_prog in mkdir gmkdir; do
8232 for ac_exec_ext in '' $ac_executable_extensions; do
8233 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
8234 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
8235 'mkdir ('*'coreutils) '* | \
8237 'mkdir (fileutils) '4.1*)
8238 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
8248 test -d ./--version && rmdir ./--version
8249 if test ${ac_cv_path_mkdir+y}; then
8250 MKDIR_P="$ac_cv_path_mkdir -p"
8252 # As a last resort, use the slow shell script. Don't cache a
8253 # value for MKDIR_P within a source directory, because that will
8254 # break other packages using the cache if that directory is
8255 # removed, or if the value is a relative name.
8256 MKDIR_P="$ac_install_sh -d"
8259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
8260 printf "%s\n" "$MKDIR_P" >&6; }
8263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
8264 printf %s "checking whether NLS is requested... " >&6; }
8265 # Check whether --enable-nls was given.
8266 if test ${enable_nls+y}
8268 enableval=$enable_nls; USE_NLS=$enableval
8273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
8274 printf "%s\n" "$USE_NLS" >&6; }
8279 GETTEXT_MACRO_VERSION=0.20
8284 # Prepare PATH_SEPARATOR.
8285 # The user is always right.
8286 if test "${PATH_SEPARATOR+set}" != set; then
8287 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
8288 # contains only /bin. Note that ksh looks also at the FPATH variable,
8289 # so we have to set that as well for the test.
8291 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
8292 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
8293 || PATH_SEPARATOR=';'
8297 # Find out how to test for executable files. Don't use a zero-byte file,
8298 # as systems may use methods other than mode bits to determine executability.
8299 cat >conf$$.file <<_ASEOF
8303 chmod +x conf$$.file
8304 if test -x conf$$.file >/dev/null 2>&1; then
8305 ac_executable_p="test -x"
8307 ac_executable_p="test -f"
8311 # Extract the first word of "msgfmt", so it can be a program name with args.
8312 set dummy msgfmt; ac_word=$2
8313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8314 printf %s "checking for $ac_word... " >&6; }
8315 if test ${ac_cv_path_MSGFMT+y}
8317 printf %s "(cached) " >&6
8321 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
8324 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
8325 for ac_dir in $PATH; do
8327 test -z "$ac_dir" && ac_dir=.
8328 for ac_exec_ext in '' $ac_executable_extensions; do
8329 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
8330 echo "$as_me: trying $ac_dir/$ac_word..." >&5
8331 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
8332 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
8333 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
8340 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
8344 MSGFMT="$ac_cv_path_MSGFMT"
8345 if test "$MSGFMT" != ":"; then
8346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
8347 printf "%s\n" "$MSGFMT" >&6; }
8349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8350 printf "%s\n" "no" >&6; }
8353 # Extract the first word of "gmsgfmt", so it can be a program name with args.
8354 set dummy gmsgfmt; ac_word=$2
8355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8356 printf %s "checking for $ac_word... " >&6; }
8357 if test ${ac_cv_path_GMSGFMT+y}
8359 printf %s "(cached) " >&6
8363 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
8366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8370 case $as_dir in #(((
8373 *) as_dir=$as_dir/ ;;
8375 for ac_exec_ext in '' $ac_executable_extensions; do
8376 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8377 ac_cv_path_GMSGFMT="$as_dir$ac_word$ac_exec_ext"
8378 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8385 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
8389 GMSGFMT=$ac_cv_path_GMSGFMT
8390 if test -n "$GMSGFMT"; then
8391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
8392 printf "%s\n" "$GMSGFMT" >&6; }
8394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8395 printf "%s\n" "no" >&6; }
8400 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
8401 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
8402 *) GMSGFMT_015=$GMSGFMT ;;
8407 # Prepare PATH_SEPARATOR.
8408 # The user is always right.
8409 if test "${PATH_SEPARATOR+set}" != set; then
8410 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
8411 # contains only /bin. Note that ksh looks also at the FPATH variable,
8412 # so we have to set that as well for the test.
8414 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
8415 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
8416 || PATH_SEPARATOR=';'
8420 # Find out how to test for executable files. Don't use a zero-byte file,
8421 # as systems may use methods other than mode bits to determine executability.
8422 cat >conf$$.file <<_ASEOF
8426 chmod +x conf$$.file
8427 if test -x conf$$.file >/dev/null 2>&1; then
8428 ac_executable_p="test -x"
8430 ac_executable_p="test -f"
8434 # Extract the first word of "xgettext", so it can be a program name with args.
8435 set dummy xgettext; ac_word=$2
8436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8437 printf %s "checking for $ac_word... " >&6; }
8438 if test ${ac_cv_path_XGETTEXT+y}
8440 printf %s "(cached) " >&6
8444 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
8447 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
8448 for ac_dir in $PATH; do
8450 test -z "$ac_dir" && ac_dir=.
8451 for ac_exec_ext in '' $ac_executable_extensions; do
8452 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
8453 echo "$as_me: trying $ac_dir/$ac_word..." >&5
8454 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
8455 (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
8456 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
8463 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
8467 XGETTEXT="$ac_cv_path_XGETTEXT"
8468 if test "$XGETTEXT" != ":"; then
8469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
8470 printf "%s\n" "$XGETTEXT" >&6; }
8472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8473 printf "%s\n" "no" >&6; }
8478 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
8479 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
8480 *) XGETTEXT_015=$XGETTEXT ;;
8485 # Prepare PATH_SEPARATOR.
8486 # The user is always right.
8487 if test "${PATH_SEPARATOR+set}" != set; then
8488 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
8489 # contains only /bin. Note that ksh looks also at the FPATH variable,
8490 # so we have to set that as well for the test.
8492 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
8493 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
8494 || PATH_SEPARATOR=';'
8498 # Find out how to test for executable files. Don't use a zero-byte file,
8499 # as systems may use methods other than mode bits to determine executability.
8500 cat >conf$$.file <<_ASEOF
8504 chmod +x conf$$.file
8505 if test -x conf$$.file >/dev/null 2>&1; then
8506 ac_executable_p="test -x"
8508 ac_executable_p="test -f"
8512 # Extract the first word of "msgmerge", so it can be a program name with args.
8513 set dummy msgmerge; ac_word=$2
8514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8515 printf %s "checking for $ac_word... " >&6; }
8516 if test ${ac_cv_path_MSGMERGE+y}
8518 printf %s "(cached) " >&6
8522 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
8525 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
8526 for ac_dir in $PATH; do
8528 test -z "$ac_dir" && ac_dir=.
8529 for ac_exec_ext in '' $ac_executable_extensions; do
8530 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
8531 echo "$as_me: trying $ac_dir/$ac_word..." >&5
8532 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
8533 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
8540 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
8544 MSGMERGE="$ac_cv_path_MSGMERGE"
8545 if test "$MSGMERGE" != ":"; then
8546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
8547 printf "%s\n" "$MSGMERGE" >&6; }
8549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8550 printf "%s\n" "no" >&6; }
8554 if LC_ALL=C $MSGMERGE --help | grep ' --for-msgfmt ' >/dev/null; then
8555 MSGMERGE_FOR_MSGFMT_OPTION='--for-msgfmt'
8557 if LC_ALL=C $MSGMERGE --help | grep ' --no-fuzzy-matching ' >/dev/null; then
8558 MSGMERGE_FOR_MSGFMT_OPTION='--no-fuzzy-matching --no-location --quiet'
8560 MSGMERGE_FOR_MSGFMT_OPTION='--no-location --quiet'
8565 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
8568 ac_config_commands="$ac_config_commands po-directories"
8572 if test "X$prefix" = "XNONE"; then
8573 acl_final_prefix="$ac_default_prefix"
8575 acl_final_prefix="$prefix"
8577 if test "X$exec_prefix" = "XNONE"; then
8578 acl_final_exec_prefix='${prefix}'
8580 acl_final_exec_prefix="$exec_prefix"
8582 acl_save_prefix="$prefix"
8583 prefix="$acl_final_prefix"
8584 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
8585 prefix="$acl_save_prefix"
8589 # Check whether --with-gnu-ld was given.
8590 if test ${with_gnu_ld+y}
8592 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
8597 # Prepare PATH_SEPARATOR.
8598 # The user is always right.
8599 if test "${PATH_SEPARATOR+set}" != set; then
8600 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
8601 # contains only /bin. Note that ksh looks also at the FPATH variable,
8602 # so we have to set that as well for the test.
8604 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
8605 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
8606 || PATH_SEPARATOR=';'
8610 if test -n "$LD"; then
8611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld" >&5
8612 printf %s "checking for ld... " >&6; }
8613 elif test "$GCC" = yes; then
8614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
8615 printf %s "checking for ld used by $CC... " >&6; }
8616 elif test "$with_gnu_ld" = yes; then
8617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8618 printf %s "checking for GNU ld... " >&6; }
8620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
8621 printf %s "checking for non-GNU ld... " >&6; }
8623 if test -n "$LD"; then
8624 # Let the user override the test with a path.
8627 if test ${acl_cv_path_LD+y}
8629 printf %s "(cached) " >&6
8632 acl_cv_path_LD= # Final result of this test
8633 ac_prog=ld # Program to search in $PATH
8634 if test "$GCC" = yes; then
8635 # Check if gcc -print-prog-name=ld gives a path.
8638 # gcc leaves a trailing carriage return which upsets mingw
8639 acl_output=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8641 acl_output=`($CC -print-prog-name=ld) 2>&5` ;;
8644 # Accept absolute paths.
8646 re_direlt='/[^/][^/]*/\.\./'
8647 # Canonicalize the pathname of ld
8648 acl_output=`echo "$acl_output" | sed 's%\\\\%/%g'`
8649 while echo "$acl_output" | grep "$re_direlt" > /dev/null 2>&1; do
8650 acl_output=`echo $acl_output | sed "s%$re_direlt%/%"`
8652 # Got the pathname. No search in PATH is needed.
8653 acl_cv_path_LD="$acl_output"
8657 # If it fails, then pretend we aren't using GCC.
8660 # If it is relative, then search for the first ld in PATH.
8665 if test -n "$ac_prog"; then
8666 # Search for $ac_prog in $PATH.
8667 acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8668 for ac_dir in $PATH; do
8670 test -z "$ac_dir" && ac_dir=.
8671 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8672 acl_cv_path_LD="$ac_dir/$ac_prog"
8673 # Check to see if the program is GNU ld. I'd rather use --version,
8674 # but apparently some variants of GNU ld only accept -v.
8675 # Break only if it was the GNU/non-GNU ld that we prefer.
8676 case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
8677 *GNU* | *'with BFD'*)
8678 test "$with_gnu_ld" != no && break
8681 test "$with_gnu_ld" != yes && break
8690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8691 /* end confdefs.h. */
8692 #if defined __powerpc64__ || defined _ARCH_PPC64
8699 if ac_fn_c_try_compile "$LINENO"
8701 # The compiler produces 64-bit code. Add option '-b64' so that the
8702 # linker groks 64-bit object files.
8703 case "$acl_cv_path_LD " in
8705 *) acl_cv_path_LD="$acl_cv_path_LD -b64" ;;
8709 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8713 /* end confdefs.h. */
8714 #if defined __sparcv9 || defined __arch64__
8721 if ac_fn_c_try_compile "$LINENO"
8725 # The compiler produces 32-bit code. Add option '-m elf32_sparc'
8726 # so that the linker groks 32-bit object files.
8727 case "$acl_cv_path_LD " in
8728 *" -m elf32_sparc "*) ;;
8729 *) acl_cv_path_LD="$acl_cv_path_LD -m elf32_sparc" ;;
8733 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8739 LD="$acl_cv_path_LD"
8741 if test -n "$LD"; then
8742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8743 printf "%s\n" "$LD" >&6; }
8745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8746 printf "%s\n" "no" >&6; }
8747 as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
8749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
8750 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
8751 if test ${acl_cv_prog_gnu_ld+y}
8753 printf %s "(cached) " >&6
8755 # I'd rather use --version here, but apparently some GNU lds only accept -v.
8756 case `$LD -v 2>&1 </dev/null` in
8757 *GNU* | *'with BFD'*)
8758 acl_cv_prog_gnu_ld=yes
8761 acl_cv_prog_gnu_ld=no
8765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
8766 printf "%s\n" "$acl_cv_prog_gnu_ld" >&6; }
8767 with_gnu_ld=$acl_cv_prog_gnu_ld
8774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
8775 printf %s "checking for shared library run path origin... " >&6; }
8776 if test ${acl_cv_rpath+y}
8778 printf %s "(cached) " >&6
8781 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
8782 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
8788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
8789 printf "%s\n" "$acl_cv_rpath" >&6; }
8791 acl_libext="$acl_cv_libext"
8792 acl_shlibext="$acl_cv_shlibext"
8793 acl_libname_spec="$acl_cv_libname_spec"
8794 acl_library_names_spec="$acl_cv_library_names_spec"
8795 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
8796 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
8797 acl_hardcode_direct="$acl_cv_hardcode_direct"
8798 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
8799 # Check whether --enable-rpath was given.
8800 if test ${enable_rpath+y}
8802 enableval=$enable_rpath; :
8810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking 32-bit host C ABI" >&5
8811 printf %s "checking 32-bit host C ABI... " >&6; }
8812 if test ${gl_cv_host_cpu_c_abi_32bit+y}
8814 printf %s "(cached) " >&6
8816 if test -n "$gl_cv_host_cpu_c_abi"; then
8817 case "$gl_cv_host_cpu_c_abi" in
8818 i386 | x86_64-x32 | arm | armhf | arm64-ilp32 | hppa | ia64-ilp32 | mips | mipsn32 | powerpc | riscv*-ilp32* | s390 | sparc)
8819 gl_cv_host_cpu_c_abi_32bit=yes ;;
8820 x86_64 | alpha | arm64 | hppa64 | ia64 | mips64 | powerpc64 | powerpc64-elfv2 | riscv*-lp64* | s390x | sparc64 )
8821 gl_cv_host_cpu_c_abi_32bit=no ;;
8823 gl_cv_host_cpu_c_abi_32bit=unknown ;;
8828 # CPUs that only support a 32-bit ABI.
8837 | microblaze | microblazeel \
8838 | nds32 | nds32le | nds32be \
8839 | nios2 | nios2eb | nios2el \
8842 | sh | sh1234 | sh1234elb \
8845 gl_cv_host_cpu_c_abi_32bit=yes
8848 # CPUs that only support a 64-bit ABI.
8849 alpha | alphaev[4-8] | alphaev56 | alphapca5[67] | alphaev6[78] \
8851 gl_cv_host_cpu_c_abi_32bit=no
8855 gl_cv_host_cpu_c_abi_32bit=yes
8859 # On x86_64 systems, the C compiler may be generating code in one of
8861 # - 64-bit instruction set, 64-bit pointers, 64-bit 'long': x86_64.
8862 # - 64-bit instruction set, 64-bit pointers, 32-bit 'long': x86_64
8863 # with native Windows (mingw, MSVC).
8864 # - 64-bit instruction set, 32-bit pointers, 32-bit 'long': x86_64-x32.
8865 # - 32-bit instruction set, 32-bit pointers, 32-bit 'long': i386.
8866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8867 /* end confdefs.h. */
8868 #if (defined __x86_64__ || defined __amd64__ \
8869 || defined _M_X64 || defined _M_AMD64) \
8870 && !(defined __ILP32__ || defined _ILP32)
8877 if ac_fn_c_try_compile "$LINENO"
8879 gl_cv_host_cpu_c_abi_32bit=no
8881 gl_cv_host_cpu_c_abi_32bit=yes
8883 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8887 # Assume arm with EABI.
8888 # On arm64 systems, the C compiler may be generating code in one of
8890 # - aarch64 instruction set, 64-bit pointers, 64-bit 'long': arm64.
8891 # - aarch64 instruction set, 32-bit pointers, 32-bit 'long': arm64-ilp32.
8892 # - 32-bit instruction set, 32-bit pointers, 32-bit 'long': arm or armhf.
8893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8894 /* end confdefs.h. */
8895 #if defined __aarch64__ && !(defined __ILP32__ || defined _ILP32)
8902 if ac_fn_c_try_compile "$LINENO"
8904 gl_cv_host_cpu_c_abi_32bit=no
8906 gl_cv_host_cpu_c_abi_32bit=yes
8908 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8911 hppa1.0 | hppa1.1 | hppa2.0* | hppa64 )
8912 # On hppa, the C compiler may be generating 32-bit code or 64-bit
8913 # code. In the latter case, it defines _LP64 and __LP64__.
8914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8915 /* end confdefs.h. */
8923 if ac_fn_c_try_compile "$LINENO"
8925 gl_cv_host_cpu_c_abi_32bit=no
8927 gl_cv_host_cpu_c_abi_32bit=yes
8929 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8933 # On ia64 on HP-UX, the C compiler may be generating 64-bit code or
8934 # 32-bit code. In the latter case, it defines _ILP32.
8935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8936 /* end confdefs.h. */
8944 if ac_fn_c_try_compile "$LINENO"
8946 gl_cv_host_cpu_c_abi_32bit=yes
8948 gl_cv_host_cpu_c_abi_32bit=no
8950 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8954 # We should also check for (_MIPS_SZPTR == 64), but gcc keeps this
8956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8957 /* end confdefs.h. */
8958 #if defined _MIPS_SZLONG && (_MIPS_SZLONG == 64)
8965 if ac_fn_c_try_compile "$LINENO"
8967 gl_cv_host_cpu_c_abi_32bit=no
8969 gl_cv_host_cpu_c_abi_32bit=yes
8971 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8975 # Different ABIs are in use on AIX vs. Mac OS X vs. Linux,*BSD.
8976 # No need to distinguish them here; the caller may distinguish
8977 # them based on the OS.
8978 # On powerpc64 systems, the C compiler may still be generating
8979 # 32-bit code. And on powerpc-ibm-aix systems, the C compiler may
8980 # be generating 64-bit code.
8981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8982 /* end confdefs.h. */
8983 #if defined __powerpc64__ || defined _ARCH_PPC64
8990 if ac_fn_c_try_compile "$LINENO"
8992 gl_cv_host_cpu_c_abi_32bit=no
8994 gl_cv_host_cpu_c_abi_32bit=yes
8996 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9000 gl_cv_host_cpu_c_abi_32bit=yes
9004 # There are 6 ABIs: ilp32, ilp32f, ilp32d, lp64, lp64f, lp64d.
9005 # Size of 'long' and 'void *':
9006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9007 /* end confdefs.h. */
9008 #if defined __LP64__
9015 if ac_fn_c_try_compile "$LINENO"
9017 gl_cv_host_cpu_c_abi_32bit=no
9019 gl_cv_host_cpu_c_abi_32bit=yes
9021 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9025 # On s390x, the C compiler may be generating 64-bit (= s390x) code
9026 # or 31-bit (= s390) code.
9027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9028 /* end confdefs.h. */
9029 #if defined __LP64__ || defined __s390x__
9036 if ac_fn_c_try_compile "$LINENO"
9038 gl_cv_host_cpu_c_abi_32bit=no
9040 gl_cv_host_cpu_c_abi_32bit=yes
9042 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9046 # UltraSPARCs running Linux have `uname -m` = "sparc64", but the
9047 # C compiler still generates 32-bit code.
9048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9049 /* end confdefs.h. */
9050 #if defined __sparcv9 || defined __arch64__
9057 if ac_fn_c_try_compile "$LINENO"
9059 gl_cv_host_cpu_c_abi_32bit=no
9061 gl_cv_host_cpu_c_abi_32bit=yes
9063 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9067 gl_cv_host_cpu_c_abi_32bit=unknown
9073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_host_cpu_c_abi_32bit" >&5
9074 printf "%s\n" "$gl_cv_host_cpu_c_abi_32bit" >&6; }
9076 HOST_CPU_C_ABI_32BIT="$gl_cv_host_cpu_c_abi_32bit"
9082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ELF binary format" >&5
9083 printf %s "checking for ELF binary format... " >&6; }
9084 if test ${gl_cv_elf+y}
9086 printf %s "(cached) " >&6
9088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9089 /* end confdefs.h. */
9091 Extensible Linking Format
9095 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9096 $EGREP "Extensible Linking Format" >/dev/null 2>&1
9106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_elf" >&5
9107 printf "%s\n" "$gl_cv_elf" >&6; }
9108 if test $gl_cv_elf; then
9109 # Extract the ELF class of a file (5th byte) in decimal.
9110 # Cf. https://en.wikipedia.org/wiki/Executable_and_Linkable_Format#File_header
9111 if od -A x < /dev/null >/dev/null 2>/dev/null; then
9115 od -A n -t d1 -j 4 -N 1
9121 dd bs=1 count=1 skip=4 2>/dev/null | hexdump -e '1/1 "%3d "'
9125 case $HOST_CPU_C_ABI_32BIT in
9128 acl_is_expected_elfclass ()
9130 test "`func_elfclass | sed -e 's/[ ]//g'`" = 1
9135 acl_is_expected_elfclass ()
9137 test "`func_elfclass | sed -e 's/[ ]//g'`" = 2
9142 acl_is_expected_elfclass ()
9149 acl_is_expected_elfclass ()
9155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the common suffixes of directories in the library search path" >&5
9156 printf %s "checking for the common suffixes of directories in the library search path... " >&6; }
9157 if test ${acl_cv_libdirstems+y}
9159 printf %s "(cached) " >&6
9166 if test $HOST_CPU_C_ABI_32BIT = no; then
9167 acl_libdirstem2=lib/64
9169 sparc*) acl_libdirstem3=lib/sparcv9 ;;
9170 i*86 | x86_64) acl_libdirstem3=lib/amd64 ;;
9175 searchpath=`(LC_ALL=C $CC $CPPFLAGS $CFLAGS -print-search-dirs) 2>/dev/null \
9176 | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
9177 if test $HOST_CPU_C_ABI_32BIT != no; then
9178 # 32-bit or unknown ABI.
9179 if test -d /usr/lib32; then
9180 acl_libdirstem2=lib32
9183 if test $HOST_CPU_C_ABI_32BIT != yes; then
9184 # 64-bit or unknown ABI.
9185 if test -d /usr/lib64; then
9186 acl_libdirstem3=lib64
9189 if test -n "$searchpath"; then
9190 acl_save_IFS="${IFS= }"; IFS=":"
9191 for searchdir in $searchpath; do
9192 if test -d "$searchdir"; then
9193 case "$searchdir" in
9194 */lib32/ | */lib32 ) acl_libdirstem2=lib32 ;;
9195 */lib64/ | */lib64 ) acl_libdirstem3=lib64 ;;
9197 # Better ignore directories of this form. They are misleading.
9199 *) searchdir=`cd "$searchdir" && pwd`
9200 case "$searchdir" in
9201 */lib32 ) acl_libdirstem2=lib32 ;;
9202 */lib64 ) acl_libdirstem3=lib64 ;;
9208 if test $HOST_CPU_C_ABI_32BIT = yes; then
9212 if test $HOST_CPU_C_ABI_32BIT = no; then
9219 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
9220 test -n "$acl_libdirstem3" || acl_libdirstem3="$acl_libdirstem"
9221 acl_cv_libdirstems="$acl_libdirstem,$acl_libdirstem2,$acl_libdirstem3"
9224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_libdirstems" >&5
9225 printf "%s\n" "$acl_cv_libdirstems" >&6; }
9226 acl_libdirstem=`echo "$acl_cv_libdirstems" | sed -e 's/,.*//'`
9227 acl_libdirstem2=`echo "$acl_cv_libdirstems" | sed -e 's/^[^,]*,//' -e 's/,.*//'`
9228 acl_libdirstem3=`echo "$acl_cv_libdirstems" | sed -e 's/^[^,]*,[^,]*,//' -e 's/,.*//'`
9242 acl_save_prefix="$prefix"
9243 prefix="$acl_final_prefix"
9244 acl_save_exec_prefix="$exec_prefix"
9245 exec_prefix="$acl_final_exec_prefix"
9247 eval additional_includedir=\"$includedir\"
9248 eval additional_libdir=\"$libdir\"
9249 eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
9250 eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
9252 exec_prefix="$acl_save_exec_prefix"
9253 prefix="$acl_save_prefix"
9256 # Check whether --with-libiconv-prefix was given.
9257 if test ${with_libiconv_prefix+y}
9259 withval=$with_libiconv_prefix;
9260 if test "X$withval" = "Xno"; then
9263 if test "X$withval" = "X"; then
9265 acl_save_prefix="$prefix"
9266 prefix="$acl_final_prefix"
9267 acl_save_exec_prefix="$exec_prefix"
9268 exec_prefix="$acl_final_exec_prefix"
9270 eval additional_includedir=\"$includedir\"
9271 eval additional_libdir=\"$libdir\"
9272 eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
9273 eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
9275 exec_prefix="$acl_save_exec_prefix"
9276 prefix="$acl_save_prefix"
9279 additional_includedir="$withval/include"
9280 additional_libdir="$withval/$acl_libdirstem"
9281 additional_libdir2="$withval/$acl_libdirstem2"
9282 additional_libdir3="$withval/$acl_libdirstem3"
9288 if test "X$additional_libdir2" = "X$additional_libdir"; then
9291 if test "X$additional_libdir3" = "X$additional_libdir"; then
9301 names_already_handled=
9302 names_next_round='iconv '
9303 while test -n "$names_next_round"; do
9304 names_this_round="$names_next_round"
9306 for name in $names_this_round; do
9308 for n in $names_already_handled; do
9309 if test "$n" = "$name"; then
9314 if test -z "$already_handled"; then
9315 names_already_handled="$names_already_handled $name"
9316 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
9317 eval value=\"\$HAVE_LIB$uppername\"
9318 if test -n "$value"; then
9319 if test "$value" = yes; then
9320 eval value=\"\$LIB$uppername\"
9321 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
9322 eval value=\"\$LTLIB$uppername\"
9323 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
9332 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
9333 if test -n "$acl_shlibext"; then
9334 shrext=".$acl_shlibext" # typically: shrext=.so
9338 if test $use_additional = yes; then
9339 for additional_libdir_variable in additional_libdir additional_libdir2 additional_libdir3; do
9340 if test "X$found_dir" = "X"; then
9341 eval dir=\$$additional_libdir_variable
9342 if test -n "$dir"; then
9343 if test -n "$acl_shlibext"; then
9344 if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
9346 found_so="$dir/$libname$shrext"
9348 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
9349 ver=`(cd "$dir" && \
9350 for f in "$libname$shrext".*; do echo "$f"; done \
9351 | sed -e "s,^$libname$shrext\\\\.,," \
9352 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
9353 | sed 1q ) 2>/dev/null`
9354 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
9356 found_so="$dir/$libname$shrext.$ver"
9359 eval library_names=\"$acl_library_names_spec\"
9360 for f in $library_names; do
9361 if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
9370 if test "X$found_dir" = "X"; then
9371 if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
9373 found_a="$dir/$libname.$acl_libext"
9376 if test "X$found_dir" != "X"; then
9377 if test -f "$dir/$libname.la"; then
9378 found_la="$dir/$libname.la"
9385 if test "X$found_dir" = "X"; then
9386 for x in $LDFLAGS $LTLIBICONV; do
9388 acl_save_prefix="$prefix"
9389 prefix="$acl_final_prefix"
9390 acl_save_exec_prefix="$exec_prefix"
9391 exec_prefix="$acl_final_exec_prefix"
9393 exec_prefix="$acl_save_exec_prefix"
9394 prefix="$acl_save_prefix"
9398 dir=`echo "X$x" | sed -e 's/^X-L//'`
9399 if test -n "$acl_shlibext"; then
9400 if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
9402 found_so="$dir/$libname$shrext"
9404 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
9405 ver=`(cd "$dir" && \
9406 for f in "$libname$shrext".*; do echo "$f"; done \
9407 | sed -e "s,^$libname$shrext\\\\.,," \
9408 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
9409 | sed 1q ) 2>/dev/null`
9410 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
9412 found_so="$dir/$libname$shrext.$ver"
9415 eval library_names=\"$acl_library_names_spec\"
9416 for f in $library_names; do
9417 if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
9426 if test "X$found_dir" = "X"; then
9427 if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
9429 found_a="$dir/$libname.$acl_libext"
9432 if test "X$found_dir" != "X"; then
9433 if test -f "$dir/$libname.la"; then
9434 found_la="$dir/$libname.la"
9439 if test "X$found_dir" != "X"; then
9444 if test "X$found_dir" != "X"; then
9445 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9446 if test "X$found_so" != "X"; then
9447 if test "$enable_rpath" = no \
9448 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
9449 || test "X$found_dir" = "X/usr/$acl_libdirstem2" \
9450 || test "X$found_dir" = "X/usr/$acl_libdirstem3"; then
9451 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9454 for x in $ltrpathdirs; do
9455 if test "X$x" = "X$found_dir"; then
9460 if test -z "$haveit"; then
9461 ltrpathdirs="$ltrpathdirs $found_dir"
9463 if test "$acl_hardcode_direct" = yes; then
9464 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9466 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
9467 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9469 for x in $rpathdirs; do
9470 if test "X$x" = "X$found_dir"; then
9475 if test -z "$haveit"; then
9476 rpathdirs="$rpathdirs $found_dir"
9480 for x in $LDFLAGS $LIBICONV; do
9482 acl_save_prefix="$prefix"
9483 prefix="$acl_final_prefix"
9484 acl_save_exec_prefix="$exec_prefix"
9485 exec_prefix="$acl_final_exec_prefix"
9487 exec_prefix="$acl_save_exec_prefix"
9488 prefix="$acl_save_prefix"
9490 if test "X$x" = "X-L$found_dir"; then
9495 if test -z "$haveit"; then
9496 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9498 if test "$acl_hardcode_minus_L" != no; then
9499 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9501 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9507 if test "X$found_a" != "X"; then
9508 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
9510 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9513 additional_includedir=
9514 case "$found_dir" in
9515 */$acl_libdirstem | */$acl_libdirstem/)
9516 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
9517 if test "$name" = 'iconv'; then
9518 LIBICONV_PREFIX="$basedir"
9520 additional_includedir="$basedir/include"
9522 */$acl_libdirstem2 | */$acl_libdirstem2/)
9523 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
9524 if test "$name" = 'iconv'; then
9525 LIBICONV_PREFIX="$basedir"
9527 additional_includedir="$basedir/include"
9529 */$acl_libdirstem3 | */$acl_libdirstem3/)
9530 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem3/"'*$,,'`
9531 if test "$name" = 'iconv'; then
9532 LIBICONV_PREFIX="$basedir"
9534 additional_includedir="$basedir/include"
9537 if test "X$additional_includedir" != "X"; then
9538 if test "X$additional_includedir" != "X/usr/include"; then
9540 if test "X$additional_includedir" = "X/usr/local/include"; then
9541 if test -n "$GCC"; then
9543 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
9547 if test -z "$haveit"; then
9548 for x in $CPPFLAGS $INCICONV; do
9550 acl_save_prefix="$prefix"
9551 prefix="$acl_final_prefix"
9552 acl_save_exec_prefix="$exec_prefix"
9553 exec_prefix="$acl_final_exec_prefix"
9555 exec_prefix="$acl_save_exec_prefix"
9556 prefix="$acl_save_prefix"
9558 if test "X$x" = "X-I$additional_includedir"; then
9563 if test -z "$haveit"; then
9564 if test -d "$additional_includedir"; then
9565 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9571 if test -n "$found_la"; then
9572 save_libdir="$libdir"
9574 */* | *\\*) . "$found_la" ;;
9575 *) . "./$found_la" ;;
9577 libdir="$save_libdir"
9578 for dep in $dependency_libs; do
9581 dependency_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9582 if test "X$dependency_libdir" != "X/usr/$acl_libdirstem" \
9583 && test "X$dependency_libdir" != "X/usr/$acl_libdirstem2" \
9584 && test "X$dependency_libdir" != "X/usr/$acl_libdirstem3"; then
9586 if test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem" \
9587 || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem2" \
9588 || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem3"; then
9589 if test -n "$GCC"; then
9591 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
9595 if test -z "$haveit"; then
9597 for x in $LDFLAGS $LIBICONV; do
9599 acl_save_prefix="$prefix"
9600 prefix="$acl_final_prefix"
9601 acl_save_exec_prefix="$exec_prefix"
9602 exec_prefix="$acl_final_exec_prefix"
9604 exec_prefix="$acl_save_exec_prefix"
9605 prefix="$acl_save_prefix"
9607 if test "X$x" = "X-L$dependency_libdir"; then
9612 if test -z "$haveit"; then
9613 if test -d "$dependency_libdir"; then
9614 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$dependency_libdir"
9618 for x in $LDFLAGS $LTLIBICONV; do
9620 acl_save_prefix="$prefix"
9621 prefix="$acl_final_prefix"
9622 acl_save_exec_prefix="$exec_prefix"
9623 exec_prefix="$acl_final_exec_prefix"
9625 exec_prefix="$acl_save_exec_prefix"
9626 prefix="$acl_save_prefix"
9628 if test "X$x" = "X-L$dependency_libdir"; then
9633 if test -z "$haveit"; then
9634 if test -d "$dependency_libdir"; then
9635 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$dependency_libdir"
9642 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9643 if test "$enable_rpath" != no; then
9645 for x in $rpathdirs; do
9646 if test "X$x" = "X$dir"; then
9651 if test -z "$haveit"; then
9652 rpathdirs="$rpathdirs $dir"
9655 for x in $ltrpathdirs; do
9656 if test "X$x" = "X$dir"; then
9661 if test -z "$haveit"; then
9662 ltrpathdirs="$ltrpathdirs $dir"
9667 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9670 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9673 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
9674 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
9680 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9681 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
9687 if test "X$rpathdirs" != "X"; then
9688 if test -n "$acl_hardcode_libdir_separator"; then
9690 for found_dir in $rpathdirs; do
9691 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
9693 acl_save_libdir="$libdir"
9695 eval flag=\"$acl_hardcode_libdir_flag_spec\"
9696 libdir="$acl_save_libdir"
9697 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9699 for found_dir in $rpathdirs; do
9700 acl_save_libdir="$libdir"
9702 eval flag=\"$acl_hardcode_libdir_flag_spec\"
9703 libdir="$acl_save_libdir"
9704 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9708 if test "X$ltrpathdirs" != "X"; then
9709 for found_dir in $ltrpathdirs; do
9710 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
9742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
9743 printf %s "checking for CFPreferencesCopyAppValue... " >&6; }
9744 if test ${gt_cv_func_CFPreferencesCopyAppValue+y}
9746 printf %s "(cached) " >&6
9748 gt_save_LIBS="$LIBS"
9749 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
9750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9751 /* end confdefs.h. */
9752 #include <CoreFoundation/CFPreferences.h>
9756 CFPreferencesCopyAppValue(NULL, NULL)
9761 if ac_fn_c_try_link "$LINENO"
9763 gt_cv_func_CFPreferencesCopyAppValue=yes
9765 gt_cv_func_CFPreferencesCopyAppValue=no
9767 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9768 conftest$ac_exeext conftest.$ac_ext
9769 LIBS="$gt_save_LIBS"
9771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
9772 printf "%s\n" "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
9773 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
9775 printf "%s\n" "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
9778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyPreferredLanguages" >&5
9779 printf %s "checking for CFLocaleCopyPreferredLanguages... " >&6; }
9780 if test ${gt_cv_func_CFLocaleCopyPreferredLanguages+y}
9782 printf %s "(cached) " >&6
9784 gt_save_LIBS="$LIBS"
9785 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
9786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9787 /* end confdefs.h. */
9788 #include <CoreFoundation/CFLocale.h>
9792 CFLocaleCopyPreferredLanguages();
9797 if ac_fn_c_try_link "$LINENO"
9799 gt_cv_func_CFLocaleCopyPreferredLanguages=yes
9801 gt_cv_func_CFLocaleCopyPreferredLanguages=no
9803 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9804 conftest$ac_exeext conftest.$ac_ext
9805 LIBS="$gt_save_LIBS"
9807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyPreferredLanguages" >&5
9808 printf "%s\n" "$gt_cv_func_CFLocaleCopyPreferredLanguages" >&6; }
9809 if test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
9811 printf "%s\n" "#define HAVE_CFLOCALECOPYPREFERREDLANGUAGES 1" >>confdefs.h
9815 if test $gt_cv_func_CFPreferencesCopyAppValue = yes \
9816 || test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
9817 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
9829 case " $gt_needs " in
9830 *" need-formatstring-macros "*) gt_api_version=3 ;;
9831 *" need-ngettext "*) gt_api_version=2 ;;
9832 *) gt_api_version=1 ;;
9834 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
9835 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
9837 if test "$USE_NLS" = "yes"; then
9838 gt_use_preinstalled_gnugettext=no
9841 if test $gt_api_version -ge 3; then
9842 gt_revision_test_code='
9843 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
9844 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
9846 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
9849 gt_revision_test_code=
9851 if test $gt_api_version -ge 2; then
9852 gt_expression_test_code=' + * ngettext ("", "", 0)'
9854 gt_expression_test_code=
9857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
9858 printf %s "checking for GNU gettext in libc... " >&6; }
9859 if eval test \${$gt_func_gnugettext_libc+y}
9861 printf %s "(cached) " >&6
9863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9864 /* end confdefs.h. */
9866 #include <libintl.h>
9867 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
9868 extern int _nl_msg_cat_cntr;
9869 extern int *_nl_domain_bindings;
9870 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_domain_bindings)
9872 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
9874 $gt_revision_test_code
9880 bindtextdomain ("", "");
9881 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
9887 if ac_fn_c_try_link "$LINENO"
9889 eval "$gt_func_gnugettext_libc=yes"
9891 eval "$gt_func_gnugettext_libc=no"
9893 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9894 conftest$ac_exeext conftest.$ac_ext
9896 eval ac_res=\$$gt_func_gnugettext_libc
9897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9898 printf "%s\n" "$ac_res" >&6; }
9900 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
9906 am_save_CPPFLAGS="$CPPFLAGS"
9908 for element in $INCICONV; do
9910 for x in $CPPFLAGS; do
9912 acl_save_prefix="$prefix"
9913 prefix="$acl_final_prefix"
9914 acl_save_exec_prefix="$exec_prefix"
9915 exec_prefix="$acl_final_exec_prefix"
9917 exec_prefix="$acl_save_exec_prefix"
9918 prefix="$acl_save_prefix"
9920 if test "X$x" = "X$element"; then
9925 if test -z "$haveit"; then
9926 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
9932 printf %s "checking for iconv... " >&6; }
9933 if test ${am_cv_func_iconv+y}
9935 printf %s "(cached) " >&6
9938 am_cv_func_iconv="no, consider installing GNU libiconv"
9940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9941 /* end confdefs.h. */
9949 iconv_t cd = iconv_open("","");
9950 iconv(cd,NULL,NULL,NULL,NULL);
9956 if ac_fn_c_try_link "$LINENO"
9958 am_cv_func_iconv=yes
9960 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9961 conftest$ac_exeext conftest.$ac_ext
9962 if test "$am_cv_func_iconv" != yes; then
9963 am_save_LIBS="$LIBS"
9964 LIBS="$LIBS $LIBICONV"
9965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9966 /* end confdefs.h. */
9974 iconv_t cd = iconv_open("","");
9975 iconv(cd,NULL,NULL,NULL,NULL);
9981 if ac_fn_c_try_link "$LINENO"
9984 am_cv_func_iconv=yes
9986 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9987 conftest$ac_exeext conftest.$ac_ext
9988 LIBS="$am_save_LIBS"
9992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
9993 printf "%s\n" "$am_cv_func_iconv" >&6; }
9994 if test "$am_cv_func_iconv" = yes; then
9995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
9996 printf %s "checking for working iconv... " >&6; }
9997 if test ${am_cv_func_iconv_works+y}
9999 printf %s "(cached) " >&6
10002 am_save_LIBS="$LIBS"
10003 if test $am_cv_lib_iconv = yes; then
10004 LIBS="$LIBS $LIBICONV"
10006 am_cv_func_iconv_works=no
10007 for ac_iconv_const in '' 'const'; do
10008 if test "$cross_compiling" = yes
10011 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
10012 *) am_cv_func_iconv_works="guessing yes" ;;
10015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10016 /* end confdefs.h. */
10019 #include <string.h>
10021 #ifndef ICONV_CONST
10022 # define ICONV_CONST $ac_iconv_const
10029 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
10032 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
10033 if (cd_utf8_to_88591 != (iconv_t)(-1))
10035 static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
10037 ICONV_CONST char *inptr = input;
10038 size_t inbytesleft = strlen (input);
10039 char *outptr = buf;
10040 size_t outbytesleft = sizeof (buf);
10041 size_t res = iconv (cd_utf8_to_88591,
10042 &inptr, &inbytesleft,
10043 &outptr, &outbytesleft);
10046 iconv_close (cd_utf8_to_88591);
10049 /* Test against Solaris 10 bug: Failures are not distinguishable from
10050 successful returns. */
10052 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
10053 if (cd_ascii_to_88591 != (iconv_t)(-1))
10055 static ICONV_CONST char input[] = "\263";
10057 ICONV_CONST char *inptr = input;
10058 size_t inbytesleft = strlen (input);
10059 char *outptr = buf;
10060 size_t outbytesleft = sizeof (buf);
10061 size_t res = iconv (cd_ascii_to_88591,
10062 &inptr, &inbytesleft,
10063 &outptr, &outbytesleft);
10066 iconv_close (cd_ascii_to_88591);
10069 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
10071 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
10072 if (cd_88591_to_utf8 != (iconv_t)(-1))
10074 static ICONV_CONST char input[] = "\304";
10075 static char buf[2] = { (char)0xDE, (char)0xAD };
10076 ICONV_CONST char *inptr = input;
10077 size_t inbytesleft = 1;
10078 char *outptr = buf;
10079 size_t outbytesleft = 1;
10080 size_t res = iconv (cd_88591_to_utf8,
10081 &inptr, &inbytesleft,
10082 &outptr, &outbytesleft);
10083 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
10085 iconv_close (cd_88591_to_utf8);
10088 #if 0 /* This bug could be worked around by the caller. */
10089 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
10091 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
10092 if (cd_88591_to_utf8 != (iconv_t)(-1))
10094 static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
10096 ICONV_CONST char *inptr = input;
10097 size_t inbytesleft = strlen (input);
10098 char *outptr = buf;
10099 size_t outbytesleft = sizeof (buf);
10100 size_t res = iconv (cd_88591_to_utf8,
10101 &inptr, &inbytesleft,
10102 &outptr, &outbytesleft);
10105 iconv_close (cd_88591_to_utf8);
10109 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
10112 /* Try standardized names. */
10113 iconv_t cd1 = iconv_open ("UTF-8", "EUC-JP");
10114 /* Try IRIX, OSF/1 names. */
10115 iconv_t cd2 = iconv_open ("UTF-8", "eucJP");
10116 /* Try AIX names. */
10117 iconv_t cd3 = iconv_open ("UTF-8", "IBM-eucJP");
10118 /* Try HP-UX names. */
10119 iconv_t cd4 = iconv_open ("utf8", "eucJP");
10120 if (cd1 == (iconv_t)(-1) && cd2 == (iconv_t)(-1)
10121 && cd3 == (iconv_t)(-1) && cd4 == (iconv_t)(-1))
10123 if (cd1 != (iconv_t)(-1))
10125 if (cd2 != (iconv_t)(-1))
10127 if (cd3 != (iconv_t)(-1))
10129 if (cd4 != (iconv_t)(-1))
10138 if ac_fn_c_try_run "$LINENO"
10140 am_cv_func_iconv_works=yes
10142 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10143 conftest.$ac_objext conftest.beam conftest.$ac_ext
10146 test "$am_cv_func_iconv_works" = no || break
10148 LIBS="$am_save_LIBS"
10151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
10152 printf "%s\n" "$am_cv_func_iconv_works" >&6; }
10153 case "$am_cv_func_iconv_works" in
10154 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
10155 *) am_func_iconv=yes ;;
10158 am_func_iconv=no am_cv_lib_iconv=no
10160 if test "$am_func_iconv" = yes; then
10162 printf "%s\n" "#define HAVE_ICONV 1" >>confdefs.h
10165 if test "$am_cv_lib_iconv" = yes; then
10166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10167 printf %s "checking how to link with libiconv... " >&6; }
10168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10169 printf "%s\n" "$LIBICONV" >&6; }
10171 CPPFLAGS="$am_save_CPPFLAGS"
10187 acl_save_prefix="$prefix"
10188 prefix="$acl_final_prefix"
10189 acl_save_exec_prefix="$exec_prefix"
10190 exec_prefix="$acl_final_exec_prefix"
10192 eval additional_includedir=\"$includedir\"
10193 eval additional_libdir=\"$libdir\"
10194 eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
10195 eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
10197 exec_prefix="$acl_save_exec_prefix"
10198 prefix="$acl_save_prefix"
10201 # Check whether --with-libintl-prefix was given.
10202 if test ${with_libintl_prefix+y}
10204 withval=$with_libintl_prefix;
10205 if test "X$withval" = "Xno"; then
10208 if test "X$withval" = "X"; then
10210 acl_save_prefix="$prefix"
10211 prefix="$acl_final_prefix"
10212 acl_save_exec_prefix="$exec_prefix"
10213 exec_prefix="$acl_final_exec_prefix"
10215 eval additional_includedir=\"$includedir\"
10216 eval additional_libdir=\"$libdir\"
10217 eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
10218 eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
10220 exec_prefix="$acl_save_exec_prefix"
10221 prefix="$acl_save_prefix"
10224 additional_includedir="$withval/include"
10225 additional_libdir="$withval/$acl_libdirstem"
10226 additional_libdir2="$withval/$acl_libdirstem2"
10227 additional_libdir3="$withval/$acl_libdirstem3"
10233 if test "X$additional_libdir2" = "X$additional_libdir"; then
10234 additional_libdir2=
10236 if test "X$additional_libdir3" = "X$additional_libdir"; then
10237 additional_libdir3=
10246 names_already_handled=
10247 names_next_round='intl '
10248 while test -n "$names_next_round"; do
10249 names_this_round="$names_next_round"
10251 for name in $names_this_round; do
10253 for n in $names_already_handled; do
10254 if test "$n" = "$name"; then
10255 already_handled=yes
10259 if test -z "$already_handled"; then
10260 names_already_handled="$names_already_handled $name"
10261 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
10262 eval value=\"\$HAVE_LIB$uppername\"
10263 if test -n "$value"; then
10264 if test "$value" = yes; then
10265 eval value=\"\$LIB$uppername\"
10266 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
10267 eval value=\"\$LTLIB$uppername\"
10268 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
10277 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
10278 if test -n "$acl_shlibext"; then
10279 shrext=".$acl_shlibext" # typically: shrext=.so
10283 if test $use_additional = yes; then
10284 for additional_libdir_variable in additional_libdir additional_libdir2 additional_libdir3; do
10285 if test "X$found_dir" = "X"; then
10286 eval dir=\$$additional_libdir_variable
10287 if test -n "$dir"; then
10288 if test -n "$acl_shlibext"; then
10289 if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
10291 found_so="$dir/$libname$shrext"
10293 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
10294 ver=`(cd "$dir" && \
10295 for f in "$libname$shrext".*; do echo "$f"; done \
10296 | sed -e "s,^$libname$shrext\\\\.,," \
10297 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
10298 | sed 1q ) 2>/dev/null`
10299 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
10301 found_so="$dir/$libname$shrext.$ver"
10304 eval library_names=\"$acl_library_names_spec\"
10305 for f in $library_names; do
10306 if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
10315 if test "X$found_dir" = "X"; then
10316 if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
10318 found_a="$dir/$libname.$acl_libext"
10321 if test "X$found_dir" != "X"; then
10322 if test -f "$dir/$libname.la"; then
10323 found_la="$dir/$libname.la"
10330 if test "X$found_dir" = "X"; then
10331 for x in $LDFLAGS $LTLIBINTL; do
10333 acl_save_prefix="$prefix"
10334 prefix="$acl_final_prefix"
10335 acl_save_exec_prefix="$exec_prefix"
10336 exec_prefix="$acl_final_exec_prefix"
10338 exec_prefix="$acl_save_exec_prefix"
10339 prefix="$acl_save_prefix"
10343 dir=`echo "X$x" | sed -e 's/^X-L//'`
10344 if test -n "$acl_shlibext"; then
10345 if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
10347 found_so="$dir/$libname$shrext"
10349 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
10350 ver=`(cd "$dir" && \
10351 for f in "$libname$shrext".*; do echo "$f"; done \
10352 | sed -e "s,^$libname$shrext\\\\.,," \
10353 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
10354 | sed 1q ) 2>/dev/null`
10355 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
10357 found_so="$dir/$libname$shrext.$ver"
10360 eval library_names=\"$acl_library_names_spec\"
10361 for f in $library_names; do
10362 if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
10371 if test "X$found_dir" = "X"; then
10372 if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
10374 found_a="$dir/$libname.$acl_libext"
10377 if test "X$found_dir" != "X"; then
10378 if test -f "$dir/$libname.la"; then
10379 found_la="$dir/$libname.la"
10384 if test "X$found_dir" != "X"; then
10389 if test "X$found_dir" != "X"; then
10390 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
10391 if test "X$found_so" != "X"; then
10392 if test "$enable_rpath" = no \
10393 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
10394 || test "X$found_dir" = "X/usr/$acl_libdirstem2" \
10395 || test "X$found_dir" = "X/usr/$acl_libdirstem3"; then
10396 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10399 for x in $ltrpathdirs; do
10400 if test "X$x" = "X$found_dir"; then
10405 if test -z "$haveit"; then
10406 ltrpathdirs="$ltrpathdirs $found_dir"
10408 if test "$acl_hardcode_direct" = yes; then
10409 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10411 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
10412 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10414 for x in $rpathdirs; do
10415 if test "X$x" = "X$found_dir"; then
10420 if test -z "$haveit"; then
10421 rpathdirs="$rpathdirs $found_dir"
10425 for x in $LDFLAGS $LIBINTL; do
10427 acl_save_prefix="$prefix"
10428 prefix="$acl_final_prefix"
10429 acl_save_exec_prefix="$exec_prefix"
10430 exec_prefix="$acl_final_exec_prefix"
10432 exec_prefix="$acl_save_exec_prefix"
10433 prefix="$acl_save_prefix"
10435 if test "X$x" = "X-L$found_dir"; then
10440 if test -z "$haveit"; then
10441 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
10443 if test "$acl_hardcode_minus_L" != no; then
10444 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10446 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
10452 if test "X$found_a" != "X"; then
10453 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
10455 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
10458 additional_includedir=
10459 case "$found_dir" in
10460 */$acl_libdirstem | */$acl_libdirstem/)
10461 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
10462 if test "$name" = 'intl'; then
10463 LIBINTL_PREFIX="$basedir"
10465 additional_includedir="$basedir/include"
10467 */$acl_libdirstem2 | */$acl_libdirstem2/)
10468 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
10469 if test "$name" = 'intl'; then
10470 LIBINTL_PREFIX="$basedir"
10472 additional_includedir="$basedir/include"
10474 */$acl_libdirstem3 | */$acl_libdirstem3/)
10475 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem3/"'*$,,'`
10476 if test "$name" = 'intl'; then
10477 LIBINTL_PREFIX="$basedir"
10479 additional_includedir="$basedir/include"
10482 if test "X$additional_includedir" != "X"; then
10483 if test "X$additional_includedir" != "X/usr/include"; then
10485 if test "X$additional_includedir" = "X/usr/local/include"; then
10486 if test -n "$GCC"; then
10488 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
10492 if test -z "$haveit"; then
10493 for x in $CPPFLAGS $INCINTL; do
10495 acl_save_prefix="$prefix"
10496 prefix="$acl_final_prefix"
10497 acl_save_exec_prefix="$exec_prefix"
10498 exec_prefix="$acl_final_exec_prefix"
10500 exec_prefix="$acl_save_exec_prefix"
10501 prefix="$acl_save_prefix"
10503 if test "X$x" = "X-I$additional_includedir"; then
10508 if test -z "$haveit"; then
10509 if test -d "$additional_includedir"; then
10510 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
10516 if test -n "$found_la"; then
10517 save_libdir="$libdir"
10518 case "$found_la" in
10519 */* | *\\*) . "$found_la" ;;
10520 *) . "./$found_la" ;;
10522 libdir="$save_libdir"
10523 for dep in $dependency_libs; do
10526 dependency_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10527 if test "X$dependency_libdir" != "X/usr/$acl_libdirstem" \
10528 && test "X$dependency_libdir" != "X/usr/$acl_libdirstem2" \
10529 && test "X$dependency_libdir" != "X/usr/$acl_libdirstem3"; then
10531 if test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem" \
10532 || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem2" \
10533 || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem3"; then
10534 if test -n "$GCC"; then
10536 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
10540 if test -z "$haveit"; then
10542 for x in $LDFLAGS $LIBINTL; do
10544 acl_save_prefix="$prefix"
10545 prefix="$acl_final_prefix"
10546 acl_save_exec_prefix="$exec_prefix"
10547 exec_prefix="$acl_final_exec_prefix"
10549 exec_prefix="$acl_save_exec_prefix"
10550 prefix="$acl_save_prefix"
10552 if test "X$x" = "X-L$dependency_libdir"; then
10557 if test -z "$haveit"; then
10558 if test -d "$dependency_libdir"; then
10559 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$dependency_libdir"
10563 for x in $LDFLAGS $LTLIBINTL; do
10565 acl_save_prefix="$prefix"
10566 prefix="$acl_final_prefix"
10567 acl_save_exec_prefix="$exec_prefix"
10568 exec_prefix="$acl_final_exec_prefix"
10570 exec_prefix="$acl_save_exec_prefix"
10571 prefix="$acl_save_prefix"
10573 if test "X$x" = "X-L$dependency_libdir"; then
10578 if test -z "$haveit"; then
10579 if test -d "$dependency_libdir"; then
10580 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$dependency_libdir"
10587 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10588 if test "$enable_rpath" != no; then
10590 for x in $rpathdirs; do
10591 if test "X$x" = "X$dir"; then
10596 if test -z "$haveit"; then
10597 rpathdirs="$rpathdirs $dir"
10600 for x in $ltrpathdirs; do
10601 if test "X$x" = "X$dir"; then
10606 if test -z "$haveit"; then
10607 ltrpathdirs="$ltrpathdirs $dir"
10612 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10615 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10618 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
10619 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
10625 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
10626 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
10632 if test "X$rpathdirs" != "X"; then
10633 if test -n "$acl_hardcode_libdir_separator"; then
10635 for found_dir in $rpathdirs; do
10636 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
10638 acl_save_libdir="$libdir"
10640 eval flag=\"$acl_hardcode_libdir_flag_spec\"
10641 libdir="$acl_save_libdir"
10642 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
10644 for found_dir in $rpathdirs; do
10645 acl_save_libdir="$libdir"
10646 libdir="$found_dir"
10647 eval flag=\"$acl_hardcode_libdir_flag_spec\"
10648 libdir="$acl_save_libdir"
10649 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
10653 if test "X$ltrpathdirs" != "X"; then
10654 for found_dir in $ltrpathdirs; do
10655 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
10663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
10664 printf %s "checking for GNU gettext in libintl... " >&6; }
10665 if eval test \${$gt_func_gnugettext_libintl+y}
10667 printf %s "(cached) " >&6
10669 gt_save_CPPFLAGS="$CPPFLAGS"
10670 CPPFLAGS="$CPPFLAGS $INCINTL"
10671 gt_save_LIBS="$LIBS"
10672 LIBS="$LIBS $LIBINTL"
10673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10674 /* end confdefs.h. */
10676 #include <libintl.h>
10677 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
10678 extern int _nl_msg_cat_cntr;
10683 const char *_nl_expand_alias (const char *);
10684 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
10686 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
10688 $gt_revision_test_code
10694 bindtextdomain ("", "");
10695 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
10701 if ac_fn_c_try_link "$LINENO"
10703 eval "$gt_func_gnugettext_libintl=yes"
10705 eval "$gt_func_gnugettext_libintl=no"
10707 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10708 conftest$ac_exeext conftest.$ac_ext
10709 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
10710 LIBS="$LIBS $LIBICONV"
10711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10712 /* end confdefs.h. */
10714 #include <libintl.h>
10715 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
10716 extern int _nl_msg_cat_cntr;
10721 const char *_nl_expand_alias (const char *);
10722 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
10724 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
10726 $gt_revision_test_code
10732 bindtextdomain ("", "");
10733 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
10739 if ac_fn_c_try_link "$LINENO"
10741 LIBINTL="$LIBINTL $LIBICONV"
10742 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
10743 eval "$gt_func_gnugettext_libintl=yes"
10746 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10747 conftest$ac_exeext conftest.$ac_ext
10749 CPPFLAGS="$gt_save_CPPFLAGS"
10750 LIBS="$gt_save_LIBS"
10752 eval ac_res=\$$gt_func_gnugettext_libintl
10753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10754 printf "%s\n" "$ac_res" >&6; }
10757 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
10758 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
10759 && test "$PACKAGE" != gettext-runtime \
10760 && test "$PACKAGE" != gettext-tools; }; then
10761 gt_use_preinstalled_gnugettext=yes
10770 if test -n "$INTL_MACOSX_LIBS"; then
10771 if test "$gt_use_preinstalled_gnugettext" = "yes" \
10772 || test "$nls_cv_use_gnu_gettext" = "yes"; then
10773 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
10774 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
10778 if test "$gt_use_preinstalled_gnugettext" = "yes" \
10779 || test "$nls_cv_use_gnu_gettext" = "yes"; then
10781 printf "%s\n" "#define ENABLE_NLS 1" >>confdefs.h
10788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
10789 printf %s "checking whether to use NLS... " >&6; }
10790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
10791 printf "%s\n" "$USE_NLS" >&6; }
10792 if test "$USE_NLS" = "yes"; then
10793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
10794 printf %s "checking where the gettext function comes from... " >&6; }
10795 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
10796 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
10797 gt_source="external libintl"
10802 gt_source="included intl directory"
10804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
10805 printf "%s\n" "$gt_source" >&6; }
10808 if test "$USE_NLS" = "yes"; then
10810 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
10811 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
10812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
10813 printf %s "checking how to link with libintl... " >&6; }
10814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
10815 printf "%s\n" "$LIBINTL" >&6; }
10817 for element in $INCINTL; do
10819 for x in $CPPFLAGS; do
10821 acl_save_prefix="$prefix"
10822 prefix="$acl_final_prefix"
10823 acl_save_exec_prefix="$exec_prefix"
10824 exec_prefix="$acl_final_exec_prefix"
10826 exec_prefix="$acl_save_exec_prefix"
10827 prefix="$acl_save_prefix"
10829 if test "X$x" = "X$element"; then
10834 if test -z "$haveit"; then
10835 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10842 printf "%s\n" "#define HAVE_GETTEXT 1" >>confdefs.h
10845 printf "%s\n" "#define HAVE_DCGETTEXT 1" >>confdefs.h
10854 INTLLIBS="$LIBINTL"
10862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
10863 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
10865 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
10866 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
10868 printf %s "(cached) " >&6
10870 cat >conftest.make <<\_ACEOF
10873 @echo '@@@%%%=$(MAKE)=@@@%%%'
10875 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
10876 case `${MAKE-make} -f conftest.make 2>/dev/null` in
10877 *@@@%%%=?*=@@@%%%*)
10878 eval ac_cv_prog_make_${ac_make}_set=yes;;
10880 eval ac_cv_prog_make_${ac_make}_set=no;;
10882 rm -f conftest.make
10884 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
10885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10886 printf "%s\n" "yes" >&6; }
10889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10890 printf "%s\n" "no" >&6; }
10891 SET_MAKE="MAKE=${MAKE-make}"
10894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5
10895 printf %s "checking for GNU make... " >&6; }
10896 if test ${_cv_gnu_make_command+y}
10898 printf %s "(cached) " >&6
10900 _cv_gnu_make_command='' ;
10901 if test -n "$FORCE_NATIVE_MAKE" ; then
10904 MAKES="make gmake gnumake"
10906 for a in "$MAKE" $MAKES ; do
10907 if test -z "$a" ; then continue ; fi ;
10908 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
10909 _cv_gnu_make_command=$a ;
10915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_cv_gnu_make_command" >&5
10916 printf "%s\n" "$_cv_gnu_make_command" >&6; } ;
10917 if test "x$_cv_gnu_make_command" != "x" ; then
10923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: \"Not found\"" >&5
10924 printf "%s\n" "\"Not found\"" >&6; };
10929 # Extract the first word of "ln", so it can be a program name with args.
10930 set dummy ln; ac_word=$2
10931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10932 printf %s "checking for $ac_word... " >&6; }
10933 if test ${ac_cv_path_LN+y}
10935 printf %s "(cached) " >&6
10939 ac_cv_path_LN="$LN" # Let the user override the test with a path.
10942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10943 for as_dir in $PATH
10946 case $as_dir in #(((
10949 *) as_dir=$as_dir/ ;;
10951 for ac_exec_ext in '' $ac_executable_extensions; do
10952 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10953 ac_cv_path_LN="$as_dir$ac_word$ac_exec_ext"
10954 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10961 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
10966 if test -n "$LN"; then
10967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
10968 printf "%s\n" "$LN" >&6; }
10970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10971 printf "%s\n" "no" >&6; }
10978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
10979 printf %s "checking whether ln -s works... " >&6; }
10981 if test "$LN_S" = "ln -s"; then
10982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10983 printf "%s\n" "yes" >&6; }
10985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
10986 printf "%s\n" "no, using $LN_S" >&6; }
10989 # Extract the first word of "mv", so it can be a program name with args.
10990 set dummy mv; ac_word=$2
10991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10992 printf %s "checking for $ac_word... " >&6; }
10993 if test ${ac_cv_path_MV+y}
10995 printf %s "(cached) " >&6
10999 ac_cv_path_MV="$MV" # Let the user override the test with a path.
11002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11003 for as_dir in $PATH
11006 case $as_dir in #(((
11009 *) as_dir=$as_dir/ ;;
11011 for ac_exec_ext in '' $ac_executable_extensions; do
11012 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11013 ac_cv_path_MV="$as_dir$ac_word$ac_exec_ext"
11014 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11021 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
11026 if test -n "$MV"; then
11027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
11028 printf "%s\n" "$MV" >&6; }
11030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11031 printf "%s\n" "no" >&6; }
11035 # Extract the first word of "cp", so it can be a program name with args.
11036 set dummy cp; ac_word=$2
11037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11038 printf %s "checking for $ac_word... " >&6; }
11039 if test ${ac_cv_path_CP+y}
11041 printf %s "(cached) " >&6
11045 ac_cv_path_CP="$CP" # Let the user override the test with a path.
11048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11049 for as_dir in $PATH
11052 case $as_dir in #(((
11055 *) as_dir=$as_dir/ ;;
11057 for ac_exec_ext in '' $ac_executable_extensions; do
11058 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11059 ac_cv_path_CP="$as_dir$ac_word$ac_exec_ext"
11060 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11067 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
11072 if test -n "$CP"; then
11073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
11074 printf "%s\n" "$CP" >&6; }
11076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11077 printf "%s\n" "no" >&6; }
11081 # Extract the first word of "rm", so it can be a program name with args.
11082 set dummy rm; ac_word=$2
11083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11084 printf %s "checking for $ac_word... " >&6; }
11085 if test ${ac_cv_path_RM+y}
11087 printf %s "(cached) " >&6
11091 ac_cv_path_RM="$RM" # Let the user override the test with a path.
11094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11095 for as_dir in $PATH
11098 case $as_dir in #(((
11101 *) as_dir=$as_dir/ ;;
11103 for ac_exec_ext in '' $ac_executable_extensions; do
11104 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11105 ac_cv_path_RM="$as_dir$ac_word$ac_exec_ext"
11106 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11113 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
11118 if test -n "$RM"; then
11119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
11120 printf "%s\n" "$RM" >&6; }
11122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11123 printf "%s\n" "no" >&6; }
11127 # Extract the first word of "chmod", so it can be a program name with args.
11128 set dummy chmod; ac_word=$2
11129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11130 printf %s "checking for $ac_word... " >&6; }
11131 if test ${ac_cv_path_CHMOD+y}
11133 printf %s "(cached) " >&6
11137 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
11140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11141 for as_dir in $PATH
11144 case $as_dir in #(((
11147 *) as_dir=$as_dir/ ;;
11149 for ac_exec_ext in '' $ac_executable_extensions; do
11150 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11151 ac_cv_path_CHMOD="$as_dir$ac_word$ac_exec_ext"
11152 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11159 test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
11163 CHMOD=$ac_cv_path_CHMOD
11164 if test -n "$CHMOD"; then
11165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
11166 printf "%s\n" "$CHMOD" >&6; }
11168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11169 printf "%s\n" "no" >&6; }
11173 for ac_prog in gawk mawk nawk awk
11175 # Extract the first word of "$ac_prog", so it can be a program name with args.
11176 set dummy $ac_prog; ac_word=$2
11177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11178 printf %s "checking for $ac_word... " >&6; }
11179 if test ${ac_cv_prog_AWK+y}
11181 printf %s "(cached) " >&6
11183 if test -n "$AWK"; then
11184 ac_cv_prog_AWK="$AWK" # Let the user override the test.
11186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11187 for as_dir in $PATH
11190 case $as_dir in #(((
11193 *) as_dir=$as_dir/ ;;
11195 for ac_exec_ext in '' $ac_executable_extensions; do
11196 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11197 ac_cv_prog_AWK="$ac_prog"
11198 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11207 AWK=$ac_cv_prog_AWK
11208 if test -n "$AWK"; then
11209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
11210 printf "%s\n" "$AWK" >&6; }
11212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11213 printf "%s\n" "no" >&6; }
11217 test -n "$AWK" && break
11220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
11221 printf %s "checking for egrep... " >&6; }
11222 if test ${ac_cv_path_EGREP+y}
11224 printf %s "(cached) " >&6
11226 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
11227 then ac_cv_path_EGREP="$GREP -E"
11229 if test -z "$EGREP"; then
11230 ac_path_EGREP_found=false
11231 # Loop through the user's path and test for each of PROGNAME-LIST
11232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11233 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11236 case $as_dir in #(((
11239 *) as_dir=$as_dir/ ;;
11241 for ac_prog in egrep
11243 for ac_exec_ext in '' $ac_executable_extensions; do
11244 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
11245 as_fn_executable_p "$ac_path_EGREP" || continue
11246 # Check for GNU ac_path_EGREP and select it if it is found.
11247 # Check for GNU $ac_path_EGREP
11248 case `"$ac_path_EGREP" --version 2>&1` in
11250 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
11253 printf %s 0123456789 >"conftest.in"
11256 cat "conftest.in" "conftest.in" >"conftest.tmp"
11257 mv "conftest.tmp" "conftest.in"
11258 cp "conftest.in" "conftest.nl"
11259 printf "%s\n" 'EGREP' >> "conftest.nl"
11260 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11261 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11262 as_fn_arith $ac_count + 1 && ac_count=$as_val
11263 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
11264 # Best one so far, save it but keep looking for a better one
11265 ac_cv_path_EGREP="$ac_path_EGREP"
11266 ac_path_EGREP_max=$ac_count
11268 # 10*(2^10) chars as input seems more than enough
11269 test $ac_count -gt 10 && break
11271 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11274 $ac_path_EGREP_found && break 3
11279 if test -z "$ac_cv_path_EGREP"; then
11280 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11283 ac_cv_path_EGREP=$EGREP
11288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
11289 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
11290 EGREP="$ac_cv_path_EGREP"
11293 # Extract the first word of "sed", so it can be a program name with args.
11294 set dummy sed; ac_word=$2
11295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11296 printf %s "checking for $ac_word... " >&6; }
11297 if test ${ac_cv_path_SED+y}
11299 printf %s "(cached) " >&6
11303 ac_cv_path_SED="$SED" # Let the user override the test with a path.
11306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11307 for as_dir in $PATH
11310 case $as_dir in #(((
11313 *) as_dir=$as_dir/ ;;
11315 for ac_exec_ext in '' $ac_executable_extensions; do
11316 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11317 ac_cv_path_SED="$as_dir$ac_word$ac_exec_ext"
11318 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11325 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
11329 SED=$ac_cv_path_SED
11330 if test -n "$SED"; then
11331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
11332 printf "%s\n" "$SED" >&6; }
11334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11335 printf "%s\n" "no" >&6; }
11339 # Extract the first word of "perl", so it can be a program name with args.
11340 set dummy perl; ac_word=$2
11341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11342 printf %s "checking for $ac_word... " >&6; }
11343 if test ${ac_cv_path_PERL+y}
11345 printf %s "(cached) " >&6
11349 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
11352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11353 for as_dir in $PATH
11356 case $as_dir in #(((
11359 *) as_dir=$as_dir/ ;;
11361 for ac_exec_ext in '' $ac_executable_extensions; do
11362 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11363 ac_cv_path_PERL="$as_dir$ac_word$ac_exec_ext"
11364 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11371 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
11375 PERL=$ac_cv_path_PERL
11376 if test -n "$PERL"; then
11377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
11378 printf "%s\n" "$PERL" >&6; }
11380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11381 printf "%s\n" "no" >&6; }
11385 # Extract the first word of "ldconfig", so it can be a program name with args.
11386 set dummy ldconfig; ac_word=$2
11387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11388 printf %s "checking for $ac_word... " >&6; }
11389 if test ${ac_cv_path_LDCONFIG+y}
11391 printf %s "(cached) " >&6
11395 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
11398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11399 for as_dir in $PATH
11402 case $as_dir in #(((
11405 *) as_dir=$as_dir/ ;;
11407 for ac_exec_ext in '' $ac_executable_extensions; do
11408 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11409 ac_cv_path_LDCONFIG="$as_dir$ac_word$ac_exec_ext"
11410 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11417 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
11421 LDCONFIG=$ac_cv_path_LDCONFIG
11422 if test -n "$LDCONFIG"; then
11423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
11424 printf "%s\n" "$LDCONFIG" >&6; }
11426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11427 printf "%s\n" "no" >&6; }
11431 if test -n "$ac_tool_prefix"; then
11432 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
11433 set dummy ${ac_tool_prefix}ar; ac_word=$2
11434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11435 printf %s "checking for $ac_word... " >&6; }
11436 if test ${ac_cv_prog_AR+y}
11438 printf %s "(cached) " >&6
11440 if test -n "$AR"; then
11441 ac_cv_prog_AR="$AR" # Let the user override the test.
11443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11444 for as_dir in $PATH
11447 case $as_dir in #(((
11450 *) as_dir=$as_dir/ ;;
11452 for ac_exec_ext in '' $ac_executable_extensions; do
11453 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11454 ac_cv_prog_AR="${ac_tool_prefix}ar"
11455 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11465 if test -n "$AR"; then
11466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
11467 printf "%s\n" "$AR" >&6; }
11469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11470 printf "%s\n" "no" >&6; }
11475 if test -z "$ac_cv_prog_AR"; then
11477 # Extract the first word of "ar", so it can be a program name with args.
11478 set dummy ar; ac_word=$2
11479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11480 printf %s "checking for $ac_word... " >&6; }
11481 if test ${ac_cv_prog_ac_ct_AR+y}
11483 printf %s "(cached) " >&6
11485 if test -n "$ac_ct_AR"; then
11486 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11489 for as_dir in $PATH
11492 case $as_dir in #(((
11495 *) as_dir=$as_dir/ ;;
11497 for ac_exec_ext in '' $ac_executable_extensions; do
11498 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11499 ac_cv_prog_ac_ct_AR="ar"
11500 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11509 ac_ct_AR=$ac_cv_prog_ac_ct_AR
11510 if test -n "$ac_ct_AR"; then
11511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
11512 printf "%s\n" "$ac_ct_AR" >&6; }
11514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11515 printf "%s\n" "no" >&6; }
11518 if test "x$ac_ct_AR" = x; then
11521 case $cross_compiling:$ac_tool_warned in
11523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11524 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11525 ac_tool_warned=yes ;;
11530 AR="$ac_cv_prog_AR"
11533 if test -n "$ac_tool_prefix"; then
11534 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11535 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11537 printf %s "checking for $ac_word... " >&6; }
11538 if test ${ac_cv_prog_RANLIB+y}
11540 printf %s "(cached) " >&6
11542 if test -n "$RANLIB"; then
11543 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11546 for as_dir in $PATH
11549 case $as_dir in #(((
11552 *) as_dir=$as_dir/ ;;
11554 for ac_exec_ext in '' $ac_executable_extensions; do
11555 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11556 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11557 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11566 RANLIB=$ac_cv_prog_RANLIB
11567 if test -n "$RANLIB"; then
11568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11569 printf "%s\n" "$RANLIB" >&6; }
11571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11572 printf "%s\n" "no" >&6; }
11577 if test -z "$ac_cv_prog_RANLIB"; then
11578 ac_ct_RANLIB=$RANLIB
11579 # Extract the first word of "ranlib", so it can be a program name with args.
11580 set dummy ranlib; ac_word=$2
11581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11582 printf %s "checking for $ac_word... " >&6; }
11583 if test ${ac_cv_prog_ac_ct_RANLIB+y}
11585 printf %s "(cached) " >&6
11587 if test -n "$ac_ct_RANLIB"; then
11588 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11591 for as_dir in $PATH
11594 case $as_dir in #(((
11597 *) as_dir=$as_dir/ ;;
11599 for ac_exec_ext in '' $ac_executable_extensions; do
11600 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11601 ac_cv_prog_ac_ct_RANLIB="ranlib"
11602 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11611 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11612 if test -n "$ac_ct_RANLIB"; then
11613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
11614 printf "%s\n" "$ac_ct_RANLIB" >&6; }
11616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11617 printf "%s\n" "no" >&6; }
11620 if test "x$ac_ct_RANLIB" = x; then
11623 case $cross_compiling:$ac_tool_warned in
11625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11626 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11627 ac_tool_warned=yes ;;
11629 RANLIB=$ac_ct_RANLIB
11632 RANLIB="$ac_cv_prog_RANLIB"
11635 if test -n "$ac_tool_prefix"; then
11636 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11637 set dummy ${ac_tool_prefix}strip; ac_word=$2
11638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11639 printf %s "checking for $ac_word... " >&6; }
11640 if test ${ac_cv_prog_STRIP+y}
11642 printf %s "(cached) " >&6
11644 if test -n "$STRIP"; then
11645 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11648 for as_dir in $PATH
11651 case $as_dir in #(((
11654 *) as_dir=$as_dir/ ;;
11656 for ac_exec_ext in '' $ac_executable_extensions; do
11657 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11658 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11659 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11668 STRIP=$ac_cv_prog_STRIP
11669 if test -n "$STRIP"; then
11670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11671 printf "%s\n" "$STRIP" >&6; }
11673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11674 printf "%s\n" "no" >&6; }
11679 if test -z "$ac_cv_prog_STRIP"; then
11681 # Extract the first word of "strip", so it can be a program name with args.
11682 set dummy strip; ac_word=$2
11683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11684 printf %s "checking for $ac_word... " >&6; }
11685 if test ${ac_cv_prog_ac_ct_STRIP+y}
11687 printf %s "(cached) " >&6
11689 if test -n "$ac_ct_STRIP"; then
11690 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11693 for as_dir in $PATH
11696 case $as_dir in #(((
11699 *) as_dir=$as_dir/ ;;
11701 for ac_exec_ext in '' $ac_executable_extensions; do
11702 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11703 ac_cv_prog_ac_ct_STRIP="strip"
11704 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11713 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11714 if test -n "$ac_ct_STRIP"; then
11715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
11716 printf "%s\n" "$ac_ct_STRIP" >&6; }
11718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11719 printf "%s\n" "no" >&6; }
11722 if test "x$ac_ct_STRIP" = x; then
11725 case $cross_compiling:$ac_tool_warned in
11727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11728 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11729 ac_tool_warned=yes ;;
11734 STRIP="$ac_cv_prog_STRIP"
11737 # Extract the first word of "makeinfo", so it can be a program name with args.
11738 set dummy makeinfo; ac_word=$2
11739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11740 printf %s "checking for $ac_word... " >&6; }
11741 if test ${ac_cv_prog_MAKEINFO+y}
11743 printf %s "(cached) " >&6
11745 if test -n "$MAKEINFO"; then
11746 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
11748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11749 for as_dir in $PATH
11752 case $as_dir in #(((
11755 *) as_dir=$as_dir/ ;;
11757 for ac_exec_ext in '' $ac_executable_extensions; do
11758 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11759 ac_cv_prog_MAKEINFO="makeinfo"
11760 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11769 MAKEINFO=$ac_cv_prog_MAKEINFO
11770 if test -n "$MAKEINFO"; then
11771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
11772 printf "%s\n" "$MAKEINFO" >&6; }
11774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11775 printf "%s\n" "no" >&6; }
11779 if test "_$MAKEINFO" = "_"; then
11780 MAKEINFO="echo Makeinfo is missing. Info documentation will not be built."
11782 case "$MAKEINFO" in
11784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING:
11785 *** Makeinfo is missing. Info documentation will not be built." >&5
11786 printf "%s\n" "$as_me: WARNING:
11787 *** Makeinfo is missing. Info documentation will not be built." >&2;}
11795 # See if we need a separate native compiler.
11796 if test $cross_compiling = no; then
11800 for ac_prog in gcc cc
11802 # Extract the first word of "$ac_prog", so it can be a program name with args.
11803 set dummy $ac_prog; ac_word=$2
11804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11805 printf %s "checking for $ac_word... " >&6; }
11806 if test ${ac_cv_prog_BUILD_CC+y}
11808 printf %s "(cached) " >&6
11810 if test -n "$BUILD_CC"; then
11811 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
11813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11814 for as_dir in $PATH
11817 case $as_dir in #(((
11820 *) as_dir=$as_dir/ ;;
11822 for ac_exec_ext in '' $ac_executable_extensions; do
11823 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11824 ac_cv_prog_BUILD_CC="$ac_prog"
11825 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11834 BUILD_CC=$ac_cv_prog_BUILD_CC
11835 if test -n "$BUILD_CC"; then
11836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
11837 printf "%s\n" "$BUILD_CC" >&6; }
11839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11840 printf "%s\n" "no" >&6; }
11844 test -n "$BUILD_CC" && break
11848 ac_fn_c_check_header_compile "$LINENO" "dirent.h" "ac_cv_header_dirent_h" "$ac_includes_default"
11849 if test "x$ac_cv_header_dirent_h" = xyes
11851 printf "%s\n" "#define HAVE_DIRENT_H 1" >>confdefs.h
11854 ac_fn_c_check_header_compile "$LINENO" "errno.h" "ac_cv_header_errno_h" "$ac_includes_default"
11855 if test "x$ac_cv_header_errno_h" = xyes
11857 printf "%s\n" "#define HAVE_ERRNO_H 1" >>confdefs.h
11860 ac_fn_c_check_header_compile "$LINENO" "execinfo.h" "ac_cv_header_execinfo_h" "$ac_includes_default"
11861 if test "x$ac_cv_header_execinfo_h" = xyes
11863 printf "%s\n" "#define HAVE_EXECINFO_H 1" >>confdefs.h
11866 ac_fn_c_check_header_compile "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
11867 if test "x$ac_cv_header_getopt_h" = xyes
11869 printf "%s\n" "#define HAVE_GETOPT_H 1" >>confdefs.h
11872 ac_fn_c_check_header_compile "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default"
11873 if test "x$ac_cv_header_malloc_h" = xyes
11875 printf "%s\n" "#define HAVE_MALLOC_H 1" >>confdefs.h
11878 ac_fn_c_check_header_compile "$LINENO" "mntent.h" "ac_cv_header_mntent_h" "$ac_includes_default"
11879 if test "x$ac_cv_header_mntent_h" = xyes
11881 printf "%s\n" "#define HAVE_MNTENT_H 1" >>confdefs.h
11884 ac_fn_c_check_header_compile "$LINENO" "paths.h" "ac_cv_header_paths_h" "$ac_includes_default"
11885 if test "x$ac_cv_header_paths_h" = xyes
11887 printf "%s\n" "#define HAVE_PATHS_H 1" >>confdefs.h
11890 ac_fn_c_check_header_compile "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
11891 if test "x$ac_cv_header_pthread_h" = xyes
11893 printf "%s\n" "#define HAVE_PTHREAD_H 1" >>confdefs.h
11896 ac_fn_c_check_header_compile "$LINENO" "semaphore.h" "ac_cv_header_semaphore_h" "$ac_includes_default"
11897 if test "x$ac_cv_header_semaphore_h" = xyes
11899 printf "%s\n" "#define HAVE_SEMAPHORE_H 1" >>confdefs.h
11902 ac_fn_c_check_header_compile "$LINENO" "setjmp.h" "ac_cv_header_setjmp_h" "$ac_includes_default"
11903 if test "x$ac_cv_header_setjmp_h" = xyes
11905 printf "%s\n" "#define HAVE_SETJMP_H 1" >>confdefs.h
11908 ac_fn_c_check_header_compile "$LINENO" "signal.h" "ac_cv_header_signal_h" "$ac_includes_default"
11909 if test "x$ac_cv_header_signal_h" = xyes
11911 printf "%s\n" "#define HAVE_SIGNAL_H 1" >>confdefs.h
11914 ac_fn_c_check_header_compile "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default"
11915 if test "x$ac_cv_header_stdarg_h" = xyes
11917 printf "%s\n" "#define HAVE_STDARG_H 1" >>confdefs.h
11920 ac_fn_c_check_header_compile "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
11921 if test "x$ac_cv_header_stdint_h" = xyes
11923 printf "%s\n" "#define HAVE_STDINT_H 1" >>confdefs.h
11926 ac_fn_c_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
11927 if test "x$ac_cv_header_stdlib_h" = xyes
11929 printf "%s\n" "#define HAVE_STDLIB_H 1" >>confdefs.h
11932 ac_fn_c_check_header_compile "$LINENO" "termios.h" "ac_cv_header_termios_h" "$ac_includes_default"
11933 if test "x$ac_cv_header_termios_h" = xyes
11935 printf "%s\n" "#define HAVE_TERMIOS_H 1" >>confdefs.h
11938 ac_fn_c_check_header_compile "$LINENO" "termio.h" "ac_cv_header_termio_h" "$ac_includes_default"
11939 if test "x$ac_cv_header_termio_h" = xyes
11941 printf "%s\n" "#define HAVE_TERMIO_H 1" >>confdefs.h
11944 ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
11945 if test "x$ac_cv_header_unistd_h" = xyes
11947 printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
11950 ac_fn_c_check_header_compile "$LINENO" "utime.h" "ac_cv_header_utime_h" "$ac_includes_default"
11951 if test "x$ac_cv_header_utime_h" = xyes
11953 printf "%s\n" "#define HAVE_UTIME_H 1" >>confdefs.h
11956 ac_fn_c_check_header_compile "$LINENO" "attr/xattr.h" "ac_cv_header_attr_xattr_h" "$ac_includes_default"
11957 if test "x$ac_cv_header_attr_xattr_h" = xyes
11959 printf "%s\n" "#define HAVE_ATTR_XATTR_H 1" >>confdefs.h
11962 ac_fn_c_check_header_compile "$LINENO" "linux/falloc.h" "ac_cv_header_linux_falloc_h" "$ac_includes_default"
11963 if test "x$ac_cv_header_linux_falloc_h" = xyes
11965 printf "%s\n" "#define HAVE_LINUX_FALLOC_H 1" >>confdefs.h
11968 ac_fn_c_check_header_compile "$LINENO" "linux/fd.h" "ac_cv_header_linux_fd_h" "$ac_includes_default"
11969 if test "x$ac_cv_header_linux_fd_h" = xyes
11971 printf "%s\n" "#define HAVE_LINUX_FD_H 1" >>confdefs.h
11974 ac_fn_c_check_header_compile "$LINENO" "linux/fsmap.h" "ac_cv_header_linux_fsmap_h" "$ac_includes_default"
11975 if test "x$ac_cv_header_linux_fsmap_h" = xyes
11977 printf "%s\n" "#define HAVE_LINUX_FSMAP_H 1" >>confdefs.h
11980 ac_fn_c_check_header_compile "$LINENO" "linux/major.h" "ac_cv_header_linux_major_h" "$ac_includes_default"
11981 if test "x$ac_cv_header_linux_major_h" = xyes
11983 printf "%s\n" "#define HAVE_LINUX_MAJOR_H 1" >>confdefs.h
11986 ac_fn_c_check_header_compile "$LINENO" "linux/loop.h" "ac_cv_header_linux_loop_h" "$ac_includes_default"
11987 if test "x$ac_cv_header_linux_loop_h" = xyes
11989 printf "%s\n" "#define HAVE_LINUX_LOOP_H 1" >>confdefs.h
11992 ac_fn_c_check_header_compile "$LINENO" "linux/types.h" "ac_cv_header_linux_types_h" "$ac_includes_default"
11993 if test "x$ac_cv_header_linux_types_h" = xyes
11995 printf "%s\n" "#define HAVE_LINUX_TYPES_H 1" >>confdefs.h
11998 ac_fn_c_check_header_compile "$LINENO" "net/if_dl.h" "ac_cv_header_net_if_dl_h" "$ac_includes_default"
11999 if test "x$ac_cv_header_net_if_dl_h" = xyes
12001 printf "%s\n" "#define HAVE_NET_IF_DL_H 1" >>confdefs.h
12004 ac_fn_c_check_header_compile "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
12005 if test "x$ac_cv_header_netinet_in_h" = xyes
12007 printf "%s\n" "#define HAVE_NETINET_IN_H 1" >>confdefs.h
12010 ac_fn_c_check_header_compile "$LINENO" "sys/acl.h" "ac_cv_header_sys_acl_h" "$ac_includes_default"
12011 if test "x$ac_cv_header_sys_acl_h" = xyes
12013 printf "%s\n" "#define HAVE_SYS_ACL_H 1" >>confdefs.h
12016 ac_fn_c_check_header_compile "$LINENO" "sys/disklabel.h" "ac_cv_header_sys_disklabel_h" "$ac_includes_default"
12017 if test "x$ac_cv_header_sys_disklabel_h" = xyes
12019 printf "%s\n" "#define HAVE_SYS_DISKLABEL_H 1" >>confdefs.h
12022 ac_fn_c_check_header_compile "$LINENO" "sys/disk.h" "ac_cv_header_sys_disk_h" "$ac_includes_default"
12023 if test "x$ac_cv_header_sys_disk_h" = xyes
12025 printf "%s\n" "#define HAVE_SYS_DISK_H 1" >>confdefs.h
12028 ac_fn_c_check_header_compile "$LINENO" "sys/file.h" "ac_cv_header_sys_file_h" "$ac_includes_default"
12029 if test "x$ac_cv_header_sys_file_h" = xyes
12031 printf "%s\n" "#define HAVE_SYS_FILE_H 1" >>confdefs.h
12034 ac_fn_c_check_header_compile "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
12035 if test "x$ac_cv_header_sys_ioctl_h" = xyes
12037 printf "%s\n" "#define HAVE_SYS_IOCTL_H 1" >>confdefs.h
12040 ac_fn_c_check_header_compile "$LINENO" "sys/key.h" "ac_cv_header_sys_key_h" "$ac_includes_default"
12041 if test "x$ac_cv_header_sys_key_h" = xyes
12043 printf "%s\n" "#define HAVE_SYS_KEY_H 1" >>confdefs.h
12046 ac_fn_c_check_header_compile "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
12047 if test "x$ac_cv_header_sys_mkdev_h" = xyes
12049 printf "%s\n" "#define HAVE_SYS_MKDEV_H 1" >>confdefs.h
12052 ac_fn_c_check_header_compile "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
12053 if test "x$ac_cv_header_sys_mman_h" = xyes
12055 printf "%s\n" "#define HAVE_SYS_MMAN_H 1" >>confdefs.h
12058 ac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "$ac_includes_default"
12059 if test "x$ac_cv_header_sys_mount_h" = xyes
12061 printf "%s\n" "#define HAVE_SYS_MOUNT_H 1" >>confdefs.h
12064 ac_fn_c_check_header_compile "$LINENO" "sys/prctl.h" "ac_cv_header_sys_prctl_h" "$ac_includes_default"
12065 if test "x$ac_cv_header_sys_prctl_h" = xyes
12067 printf "%s\n" "#define HAVE_SYS_PRCTL_H 1" >>confdefs.h
12070 ac_fn_c_check_header_compile "$LINENO" "sys/random.h" "ac_cv_header_sys_random_h" "$ac_includes_default"
12071 if test "x$ac_cv_header_sys_random_h" = xyes
12073 printf "%s\n" "#define HAVE_SYS_RANDOM_H 1" >>confdefs.h
12076 ac_fn_c_check_header_compile "$LINENO" "sys/resource.h" "ac_cv_header_sys_resource_h" "$ac_includes_default"
12077 if test "x$ac_cv_header_sys_resource_h" = xyes
12079 printf "%s\n" "#define HAVE_SYS_RESOURCE_H 1" >>confdefs.h
12082 ac_fn_c_check_header_compile "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default"
12083 if test "x$ac_cv_header_sys_select_h" = xyes
12085 printf "%s\n" "#define HAVE_SYS_SELECT_H 1" >>confdefs.h
12088 ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
12089 if test "x$ac_cv_header_sys_socket_h" = xyes
12091 printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
12094 ac_fn_c_check_header_compile "$LINENO" "sys/sockio.h" "ac_cv_header_sys_sockio_h" "$ac_includes_default"
12095 if test "x$ac_cv_header_sys_sockio_h" = xyes
12097 printf "%s\n" "#define HAVE_SYS_SOCKIO_H 1" >>confdefs.h
12100 ac_fn_c_check_header_compile "$LINENO" "sys/stat.h" "ac_cv_header_sys_stat_h" "$ac_includes_default"
12101 if test "x$ac_cv_header_sys_stat_h" = xyes
12103 printf "%s\n" "#define HAVE_SYS_STAT_H 1" >>confdefs.h
12106 ac_fn_c_check_header_compile "$LINENO" "sys/syscall.h" "ac_cv_header_sys_syscall_h" "$ac_includes_default"
12107 if test "x$ac_cv_header_sys_syscall_h" = xyes
12109 printf "%s\n" "#define HAVE_SYS_SYSCALL_H 1" >>confdefs.h
12112 ac_fn_c_check_header_compile "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
12113 if test "x$ac_cv_header_sys_sysmacros_h" = xyes
12115 printf "%s\n" "#define HAVE_SYS_SYSMACROS_H 1" >>confdefs.h
12118 ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
12119 if test "x$ac_cv_header_sys_time_h" = xyes
12121 printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h
12124 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
12125 if test "x$ac_cv_header_sys_types_h" = xyes
12127 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
12130 ac_fn_c_check_header_compile "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default"
12131 if test "x$ac_cv_header_sys_un_h" = xyes
12133 printf "%s\n" "#define HAVE_SYS_UN_H 1" >>confdefs.h
12136 ac_fn_c_check_header_compile "$LINENO" "sys/wait.h" "ac_cv_header_sys_wait_h" "$ac_includes_default"
12137 if test "x$ac_cv_header_sys_wait_h" = xyes
12139 printf "%s\n" "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
12142 ac_fn_c_check_header_compile "$LINENO" "sys/xattr.h" "ac_cv_header_sys_xattr_h" "$ac_includes_default"
12143 if test "x$ac_cv_header_sys_xattr_h" = xyes
12145 printf "%s\n" "#define HAVE_SYS_XATTR_H 1" >>confdefs.h
12151 # The above checks only detect system headers, not the headers in
12152 # ./include/mingw/, so explicitly define them to be available.
12153 printf "%s\n" "#define HAVE_LINUX_TYPES_H 1" >>confdefs.h
12155 printf "%s\n" "#define HAVE_SYS_STAT_H 1" >>confdefs.h
12157 printf "%s\n" "#define HAVE_SYS_SYSMACROS_H 1" >>confdefs.h
12159 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
12161 printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
12165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a dd(1) program that supports iflag=fullblock" >&5
12166 printf %s "checking for a dd(1) program that supports iflag=fullblock... " >&6; }
12168 for i in dd gdd ; do
12169 if "$i" if=/dev/null of=/dev/null count=1 bs=10k 2>/dev/null iflag=fullblock oflag=append ; then
12174 if test -n "$DD" ; then
12175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DD" >&5
12176 printf "%s\n" "$DD" >&6; }
12178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not found, using dd" >&5
12179 printf "%s\n" "not found, using dd" >&6; }
12181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: No GNU-compatible dd(1) program found, expect some self-test failures." >&5
12182 printf "%s\n" "$as_me: WARNING: No GNU-compatible dd(1) program found, expect some self-test failures." >&2;}
12186 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
12187 #if HAVE_SYS_TYPES_H
12188 #include <sys/types.h>
12190 #if HAVE_SYS_SOCKET
12191 #include <sys/socket.h>
12195 if test "x$ac_cv_header_net_if_h" = xyes
12197 printf "%s\n" "#define HAVE_NET_IF_H 1" >>confdefs.h
12202 for ac_item in $ac_func_c_list
12204 if test $ac_func; then
12205 ac_fn_c_check_func "$LINENO" $ac_func ac_cv_func_$ac_func
12206 if eval test \"x\$ac_cv_func_$ac_func\" = xyes; then
12207 echo "#define $ac_item 1" >> confdefs.h
12215 if test "x$ac_cv_func_vprintf" = xno
12217 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
12218 if test "x$ac_cv_func__doprnt" = xyes
12221 printf "%s\n" "#define HAVE_DOPRNT 1" >>confdefs.h
12226 ac_fn_c_check_member "$LINENO" "struct dirent" "d_reclen" "ac_cv_member_struct_dirent_d_reclen" "#include <dirent.h>
12228 if test "x$ac_cv_member_struct_dirent_d_reclen" = xyes
12231 printf "%s\n" "#define HAVE_RECLEN_DIRENT 1" >>confdefs.h
12235 ac_fn_c_check_member "$LINENO" "struct stat" "st_atim" "ac_cv_member_struct_stat_st_atim" "$ac_includes_default"
12236 if test "x$ac_cv_member_struct_stat_st_atim" = xyes
12239 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_ATIM 1" >>confdefs.h
12244 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "#include <sys/types.h>
12246 if test "x$ac_cv_type_ssize_t" = xyes
12249 printf "%s\n" "#define HAVE_TYPE_SSIZE_T 1" >>confdefs.h
12253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
12254 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
12255 if test ${ac_cv_c_undeclared_builtin_options+y}
12257 printf %s "(cached) " >&6
12259 ac_save_CFLAGS=$CFLAGS
12260 ac_cv_c_undeclared_builtin_options='cannot detect'
12261 for ac_arg in '' -fno-builtin; do
12262 CFLAGS="$ac_save_CFLAGS $ac_arg"
12263 # This test program should *not* compile successfully.
12264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12265 /* end confdefs.h. */
12275 if ac_fn_c_try_compile "$LINENO"
12279 # This test program should compile successfully.
12280 # No library function is consistently available on
12281 # freestanding implementations, so test against a dummy
12282 # declaration. Include always-available headers on the
12283 # off chance that they somehow elicit warnings.
12284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12285 /* end confdefs.h. */
12287 #include <limits.h>
12288 #include <stdarg.h>
12289 #include <stddef.h>
12290 extern void ac_decl (int, char *);
12295 (void) ac_decl (0, (char *) 0);
12302 if ac_fn_c_try_compile "$LINENO"
12304 if test x"$ac_arg" = x
12306 ac_cv_c_undeclared_builtin_options='none needed'
12308 ac_cv_c_undeclared_builtin_options=$ac_arg
12312 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12314 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12316 CFLAGS=$ac_save_CFLAGS
12319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
12320 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
12321 case $ac_cv_c_undeclared_builtin_options in #(
12323 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12324 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12325 as_fn_error $? "cannot make $CC report undeclared builtins
12326 See \`config.log' for more details" "$LINENO" 5; } ;; #(
12328 ac_c_undeclared_builtin_options='' ;; #(
12330 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
12333 ac_fn_check_decl "$LINENO" "llseek" "ac_cv_have_decl_llseek" "#include <unistd.h>
12334 " "$ac_c_undeclared_builtin_options" "CFLAGS"
12335 if test "x$ac_cv_have_decl_llseek" = xyes
12338 printf "%s\n" "#define HAVE_LLSEEK_PROTOTYPE 1" >>confdefs.h
12341 ac_fn_check_decl "$LINENO" "lseek64" "ac_cv_have_decl_lseek64" "#define _LARGEFILE_SOURCE
12342 #define _LARGEFILE64_SOURCE
12343 #include <unistd.h>
12344 " "$ac_c_undeclared_builtin_options" "CFLAGS"
12345 if test "x$ac_cv_have_decl_lseek64" = xyes
12348 printf "%s\n" "#define HAVE_LSEEK64_PROTOTYPE 1" >>confdefs.h
12352 ac_fn_check_decl "$LINENO" "fsmap_sizeof" "ac_cv_have_decl_fsmap_sizeof" "#include <linux/fsmap.h>
12353 " "$ac_c_undeclared_builtin_options" "CFLAGS"
12354 if test "x$ac_cv_have_decl_fsmap_sizeof" = xyes
12357 printf "%s\n" "#define HAVE_FSMAP_SIZEOF 1" >>confdefs.h
12360 # Check whether --enable-largefile was given.
12361 if test ${enable_largefile+y}
12363 enableval=$enable_largefile;
12366 if test "$enable_largefile" != no; then
12368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
12369 printf %s "checking for special C compiler options needed for large files... " >&6; }
12370 if test ${ac_cv_sys_largefile_CC+y}
12372 printf %s "(cached) " >&6
12374 ac_cv_sys_largefile_CC=no
12375 if test "$GCC" != yes; then
12378 # IRIX 6.2 and later do not support large files by default,
12379 # so use the C compiler's -n32 option if that helps.
12380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12381 /* end confdefs.h. */
12382 #include <sys/types.h>
12383 /* Check that off_t can represent 2**63 - 1 correctly.
12384 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12385 since some C++ compilers masquerading as C compilers
12386 incorrectly reject 9223372036854775807. */
12387 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
12388 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12389 && LARGE_OFF_T % 2147483647 == 1)
12399 if ac_fn_c_try_compile "$LINENO"
12403 rm -f core conftest.err conftest.$ac_objext conftest.beam
12405 if ac_fn_c_try_compile "$LINENO"
12407 ac_cv_sys_largefile_CC=' -n32'; break
12409 rm -f core conftest.err conftest.$ac_objext conftest.beam
12413 rm -f conftest.$ac_ext
12416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
12417 printf "%s\n" "$ac_cv_sys_largefile_CC" >&6; }
12418 if test "$ac_cv_sys_largefile_CC" != no; then
12419 CC=$CC$ac_cv_sys_largefile_CC
12422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
12423 printf %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
12424 if test ${ac_cv_sys_file_offset_bits+y}
12426 printf %s "(cached) " >&6
12429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12430 /* end confdefs.h. */
12431 #include <sys/types.h>
12432 /* Check that off_t can represent 2**63 - 1 correctly.
12433 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12434 since some C++ compilers masquerading as C compilers
12435 incorrectly reject 9223372036854775807. */
12436 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
12437 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12438 && LARGE_OFF_T % 2147483647 == 1)
12448 if ac_fn_c_try_compile "$LINENO"
12450 ac_cv_sys_file_offset_bits=no; break
12452 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12454 /* end confdefs.h. */
12455 #define _FILE_OFFSET_BITS 64
12456 #include <sys/types.h>
12457 /* Check that off_t can represent 2**63 - 1 correctly.
12458 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12459 since some C++ compilers masquerading as C compilers
12460 incorrectly reject 9223372036854775807. */
12461 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
12462 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12463 && LARGE_OFF_T % 2147483647 == 1)
12473 if ac_fn_c_try_compile "$LINENO"
12475 ac_cv_sys_file_offset_bits=64; break
12477 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12478 ac_cv_sys_file_offset_bits=unknown
12482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
12483 printf "%s\n" "$ac_cv_sys_file_offset_bits" >&6; }
12484 case $ac_cv_sys_file_offset_bits in #(
12487 printf "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h
12491 if test $ac_cv_sys_file_offset_bits = unknown; then
12492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
12493 printf %s "checking for _LARGE_FILES value needed for large files... " >&6; }
12494 if test ${ac_cv_sys_large_files+y}
12496 printf %s "(cached) " >&6
12499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12500 /* end confdefs.h. */
12501 #include <sys/types.h>
12502 /* Check that off_t can represent 2**63 - 1 correctly.
12503 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12504 since some C++ compilers masquerading as C compilers
12505 incorrectly reject 9223372036854775807. */
12506 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
12507 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12508 && LARGE_OFF_T % 2147483647 == 1)
12518 if ac_fn_c_try_compile "$LINENO"
12520 ac_cv_sys_large_files=no; break
12522 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12524 /* end confdefs.h. */
12525 #define _LARGE_FILES 1
12526 #include <sys/types.h>
12527 /* Check that off_t can represent 2**63 - 1 correctly.
12528 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12529 since some C++ compilers masquerading as C compilers
12530 incorrectly reject 9223372036854775807. */
12531 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
12532 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12533 && LARGE_OFF_T % 2147483647 == 1)
12543 if ac_fn_c_try_compile "$LINENO"
12545 ac_cv_sys_large_files=1; break
12547 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12548 ac_cv_sys_large_files=unknown
12552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
12553 printf "%s\n" "$ac_cv_sys_large_files" >&6; }
12554 case $ac_cv_sys_large_files in #(
12557 printf "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h
12564 # The cast to long int works around a bug in the HP C Compiler
12565 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12566 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12567 # This bug is HP SR number 8606223364.
12568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
12569 printf %s "checking size of short... " >&6; }
12570 if test ${ac_cv_sizeof_short+y}
12572 printf %s "(cached) " >&6
12574 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"
12578 if test "$ac_cv_type_short" = yes; then
12579 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12580 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12581 as_fn_error 77 "cannot compute sizeof (short)
12582 See \`config.log' for more details" "$LINENO" 5; }
12584 ac_cv_sizeof_short=0
12589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
12590 printf "%s\n" "$ac_cv_sizeof_short" >&6; }
12594 printf "%s\n" "#define SIZEOF_SHORT $ac_cv_sizeof_short" >>confdefs.h
12597 # The cast to long int works around a bug in the HP C Compiler
12598 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12599 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12600 # This bug is HP SR number 8606223364.
12601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
12602 printf %s "checking size of int... " >&6; }
12603 if test ${ac_cv_sizeof_int+y}
12605 printf %s "(cached) " >&6
12607 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"
12611 if test "$ac_cv_type_int" = yes; then
12612 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12613 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12614 as_fn_error 77 "cannot compute sizeof (int)
12615 See \`config.log' for more details" "$LINENO" 5; }
12622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
12623 printf "%s\n" "$ac_cv_sizeof_int" >&6; }
12627 printf "%s\n" "#define SIZEOF_INT $ac_cv_sizeof_int" >>confdefs.h
12630 # The cast to long int works around a bug in the HP C Compiler
12631 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12632 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12633 # This bug is HP SR number 8606223364.
12634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
12635 printf %s "checking size of long... " >&6; }
12636 if test ${ac_cv_sizeof_long+y}
12638 printf %s "(cached) " >&6
12640 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"
12644 if test "$ac_cv_type_long" = yes; then
12645 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12646 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12647 as_fn_error 77 "cannot compute sizeof (long)
12648 See \`config.log' for more details" "$LINENO" 5; }
12650 ac_cv_sizeof_long=0
12655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
12656 printf "%s\n" "$ac_cv_sizeof_long" >&6; }
12660 printf "%s\n" "#define SIZEOF_LONG $ac_cv_sizeof_long" >>confdefs.h
12663 # The cast to long int works around a bug in the HP C Compiler
12664 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12665 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12666 # This bug is HP SR number 8606223364.
12667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
12668 printf %s "checking size of long long... " >&6; }
12669 if test ${ac_cv_sizeof_long_long+y}
12671 printf %s "(cached) " >&6
12673 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"
12677 if test "$ac_cv_type_long_long" = yes; then
12678 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12679 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12680 as_fn_error 77 "cannot compute sizeof (long long)
12681 See \`config.log' for more details" "$LINENO" 5; }
12683 ac_cv_sizeof_long_long=0
12688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
12689 printf "%s\n" "$ac_cv_sizeof_long_long" >&6; }
12693 printf "%s\n" "#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long" >>confdefs.h
12696 # The cast to long int works around a bug in the HP C Compiler
12697 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12698 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12699 # This bug is HP SR number 8606223364.
12700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
12701 printf %s "checking size of off_t... " >&6; }
12702 if test ${ac_cv_sizeof_off_t+y}
12704 printf %s "(cached) " >&6
12706 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"
12710 if test "$ac_cv_type_off_t" = yes; then
12711 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12712 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12713 as_fn_error 77 "cannot compute sizeof (off_t)
12714 See \`config.log' for more details" "$LINENO" 5; }
12716 ac_cv_sizeof_off_t=0
12721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
12722 printf "%s\n" "$ac_cv_sizeof_off_t" >&6; }
12726 printf "%s\n" "#define SIZEOF_OFF_T $ac_cv_sizeof_off_t" >>confdefs.h
12729 # The cast to long int works around a bug in the HP C Compiler
12730 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12731 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12732 # This bug is HP SR number 8606223364.
12733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
12734 printf %s "checking size of time_t... " >&6; }
12735 if test ${ac_cv_sizeof_time_t+y}
12737 printf %s "(cached) " >&6
12739 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" "$ac_includes_default"
12743 if test "$ac_cv_type_time_t" = yes; then
12744 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12745 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12746 as_fn_error 77 "cannot compute sizeof (time_t)
12747 See \`config.log' for more details" "$LINENO" 5; }
12749 ac_cv_sizeof_time_t=0
12754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
12755 printf "%s\n" "$ac_cv_sizeof_time_t" >&6; }
12759 printf "%s\n" "#define SIZEOF_TIME_T $ac_cv_sizeof_time_t" >>confdefs.h
12762 SIZEOF_SHORT=$ac_cv_sizeof_short
12763 SIZEOF_INT=$ac_cv_sizeof_int
12764 SIZEOF_LONG=$ac_cv_sizeof_long
12765 SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
12766 SIZEOF_OFF_T=$ac_cv_sizeof_off_t
12767 SIZEOF_TIME_T=$ac_cv_sizeof_time_t
12774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
12775 printf %s "checking whether byte ordering is bigendian... " >&6; }
12776 if test ${ac_cv_c_bigendian+y}
12778 printf %s "(cached) " >&6
12780 ac_cv_c_bigendian=unknown
12781 # See if we're dealing with a universal compiler.
12782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12783 /* end confdefs.h. */
12784 #ifndef __APPLE_CC__
12785 not a universal capable compiler
12790 if ac_fn_c_try_compile "$LINENO"
12793 # Check for potential -arch flags. It is not universal unless
12794 # there are at least two -arch flags with different values.
12797 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
12798 if test -n "$ac_prev"; then
12800 i?86 | x86_64 | ppc | ppc64)
12801 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
12804 ac_cv_c_bigendian=universal
12810 elif test "x$ac_word" = "x-arch"; then
12815 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12816 if test $ac_cv_c_bigendian = unknown; then
12817 # See if sys/param.h defines the BYTE_ORDER macro.
12818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12819 /* end confdefs.h. */
12820 #include <sys/types.h>
12821 #include <sys/param.h>
12826 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
12827 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
12829 bogus endian macros
12836 if ac_fn_c_try_compile "$LINENO"
12838 # It does; now see whether it defined to BIG_ENDIAN or not.
12839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12840 /* end confdefs.h. */
12841 #include <sys/types.h>
12842 #include <sys/param.h>
12847 #if BYTE_ORDER != BIG_ENDIAN
12855 if ac_fn_c_try_compile "$LINENO"
12857 ac_cv_c_bigendian=yes
12859 ac_cv_c_bigendian=no
12861 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12863 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12865 if test $ac_cv_c_bigendian = unknown; then
12866 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
12867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12868 /* end confdefs.h. */
12869 #include <limits.h>
12874 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
12875 bogus endian macros
12882 if ac_fn_c_try_compile "$LINENO"
12884 # It does; now see whether it defined to _BIG_ENDIAN or not.
12885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12886 /* end confdefs.h. */
12887 #include <limits.h>
12892 #ifndef _BIG_ENDIAN
12900 if ac_fn_c_try_compile "$LINENO"
12902 ac_cv_c_bigendian=yes
12904 ac_cv_c_bigendian=no
12906 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12908 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12910 if test $ac_cv_c_bigendian = unknown; then
12911 # Compile a test program.
12912 if test "$cross_compiling" = yes
12914 # Try to guess by grepping values from an object file.
12915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12916 /* end confdefs.h. */
12917 unsigned short int ascii_mm[] =
12918 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12919 unsigned short int ascii_ii[] =
12920 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12921 int use_ascii (int i) {
12922 return ascii_mm[i] + ascii_ii[i];
12924 unsigned short int ebcdic_ii[] =
12925 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12926 unsigned short int ebcdic_mm[] =
12927 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12928 int use_ebcdic (int i) {
12929 return ebcdic_mm[i] + ebcdic_ii[i];
12936 return use_ascii (foo) == use_ebcdic (foo);
12941 if ac_fn_c_try_compile "$LINENO"
12943 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
12944 ac_cv_c_bigendian=yes
12946 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
12947 if test "$ac_cv_c_bigendian" = unknown; then
12948 ac_cv_c_bigendian=no
12950 # finding both strings is unlikely to happen, but who knows?
12951 ac_cv_c_bigendian=unknown
12955 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12958 /* end confdefs.h. */
12959 $ac_includes_default
12964 /* Are we little or big endian? From Harbison&Steele. */
12968 char c[sizeof (long int)];
12971 return u.c[sizeof (long int) - 1] == 1;
12977 if ac_fn_c_try_run "$LINENO"
12979 ac_cv_c_bigendian=no
12981 ac_cv_c_bigendian=yes
12983 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12984 conftest.$ac_objext conftest.beam conftest.$ac_ext
12989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
12990 printf "%s\n" "$ac_cv_c_bigendian" >&6; }
12991 case $ac_cv_c_bigendian in #(
12993 printf "%s\n" "#define WORDS_BIGENDIAN 1" >>confdefs.h
12999 printf "%s\n" "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
13003 as_fn_error $? "unknown endianness
13004 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
13007 if test $cross_compiling = no; then
13008 BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
13010 CROSS_COMPILE="1" BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
13012 ASM_TYPES_HEADER=./asm_types.h
13014 echo "/* These defines are needed for the public ext2fs.h header file */" \
13016 if grep HAVE_SYS_TYPES_H confdefs.h > tmp_config.$$; then
13017 uniq tmp_config.$$ >> public_config.h
13019 echo "#undef HAVE_SYS_TYPES_H" >> public_config.h
13021 if grep WORDS_BIGENDIAN confdefs.h > tmp_config.$$; then
13022 uniq tmp_config.$$ >> public_config.h
13024 echo "#undef WORDS_BIGENDIAN" >> public_config.h
13026 rm -f tmp_config.$$
13027 PUBLIC_CONFIG_HEADER=./public_config.h
13029 ac_fn_c_check_header_compile "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
13030 if test "x$ac_cv_header_inttypes_h" = xyes
13032 printf "%s\n" "#define HAVE_INTTYPES_H 1" >>confdefs.h
13036 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
13037 if test "x$ac_cv_type_intptr_t" = xyes
13040 printf "%s\n" "#define HAVE_INTPTR_T 1" >>confdefs.h
13045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether struct stat has a st_flags field" >&5
13046 printf %s "checking whether struct stat has a st_flags field... " >&6; }
13047 if test ${e2fsprogs_cv_struct_st_flags+y}
13049 printf %s "(cached) " >&6
13051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13052 /* end confdefs.h. */
13053 #include <sys/stat.h>
13057 struct stat stat; stat.st_flags = 0;
13062 if ac_fn_c_try_compile "$LINENO"
13064 e2fsprogs_cv_struct_st_flags=yes
13066 e2fsprogs_cv_struct_st_flags=no
13068 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags" >&5
13072 printf "%s\n" "$e2fsprogs_cv_struct_st_flags" >&6; }
13073 if test "$e2fsprogs_cv_struct_st_flags" = yes; then
13074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether st_flags field is useful" >&5
13075 printf %s "checking whether st_flags field is useful... " >&6; }
13076 if test ${e2fsprogs_cv_struct_st_flags_immut+y}
13078 printf %s "(cached) " >&6
13080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13081 /* end confdefs.h. */
13082 #include <sys/stat.h>
13086 struct stat stat; stat.st_flags |= UF_IMMUTABLE;
13091 if ac_fn_c_try_compile "$LINENO"
13093 e2fsprogs_cv_struct_st_flags_immut=yes
13095 e2fsprogs_cv_struct_st_flags_immut=no
13097 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags_immut" >&5
13101 printf "%s\n" "$e2fsprogs_cv_struct_st_flags_immut" >&6; }
13102 if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
13104 printf "%s\n" "#define HAVE_STAT_FLAGS 1" >>confdefs.h
13108 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h>
13109 #include <sys/socket.h>
13111 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes
13114 printf "%s\n" "#define HAVE_SA_LEN 1" >>confdefs.h
13118 if test -n "$BLKID_CMT"; then
13119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for blkid_probe_get_topology in -lblkid" >&5
13120 printf %s "checking for blkid_probe_get_topology in -lblkid... " >&6; }
13121 if test ${ac_cv_lib_blkid_blkid_probe_get_topology+y}
13123 printf %s "(cached) " >&6
13125 ac_check_lib_save_LIBS=$LIBS
13126 LIBS="-lblkid $LIBS"
13127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13128 /* end confdefs.h. */
13130 /* Override any GCC internal prototype to avoid an error.
13131 Use char because int might match the return type of a GCC
13132 builtin and then its argument prototype would still apply. */
13133 char blkid_probe_get_topology ();
13137 return blkid_probe_get_topology ();
13142 if ac_fn_c_try_link "$LINENO"
13144 ac_cv_lib_blkid_blkid_probe_get_topology=yes
13146 ac_cv_lib_blkid_blkid_probe_get_topology=no
13148 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13149 conftest$ac_exeext conftest.$ac_ext
13150 LIBS=$ac_check_lib_save_LIBS
13152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_probe_get_topology" >&5
13153 printf "%s\n" "$ac_cv_lib_blkid_blkid_probe_get_topology" >&6; }
13154 if test "x$ac_cv_lib_blkid_blkid_probe_get_topology" = xyes
13157 printf "%s\n" "#define HAVE_BLKID_PROBE_GET_TOPOLOGY 1" >>confdefs.h
13161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for blkid_topology_get_dax in -lblkid" >&5
13162 printf %s "checking for blkid_topology_get_dax in -lblkid... " >&6; }
13163 if test ${ac_cv_lib_blkid_blkid_topology_get_dax+y}
13165 printf %s "(cached) " >&6
13167 ac_check_lib_save_LIBS=$LIBS
13168 LIBS="-lblkid $LIBS"
13169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13170 /* end confdefs.h. */
13172 /* Override any GCC internal prototype to avoid an error.
13173 Use char because int might match the return type of a GCC
13174 builtin and then its argument prototype would still apply. */
13175 char blkid_topology_get_dax ();
13179 return blkid_topology_get_dax ();
13184 if ac_fn_c_try_link "$LINENO"
13186 ac_cv_lib_blkid_blkid_topology_get_dax=yes
13188 ac_cv_lib_blkid_blkid_topology_get_dax=no
13190 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13191 conftest$ac_exeext conftest.$ac_ext
13192 LIBS=$ac_check_lib_save_LIBS
13194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_topology_get_dax" >&5
13195 printf "%s\n" "$ac_cv_lib_blkid_blkid_topology_get_dax" >&6; }
13196 if test "x$ac_cv_lib_blkid_blkid_topology_get_dax" = xyes
13199 printf "%s\n" "#define HAVE_BLKID_TOPOLOGY_GET_DAX 1" >>confdefs.h
13203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for blkid_probe_enable_partitions in -lblkid" >&5
13204 printf %s "checking for blkid_probe_enable_partitions in -lblkid... " >&6; }
13205 if test ${ac_cv_lib_blkid_blkid_probe_enable_partitions+y}
13207 printf %s "(cached) " >&6
13209 ac_check_lib_save_LIBS=$LIBS
13210 LIBS="-lblkid $LIBS"
13211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13212 /* end confdefs.h. */
13214 /* Override any GCC internal prototype to avoid an error.
13215 Use char because int might match the return type of a GCC
13216 builtin and then its argument prototype would still apply. */
13217 char blkid_probe_enable_partitions ();
13221 return blkid_probe_enable_partitions ();
13226 if ac_fn_c_try_link "$LINENO"
13228 ac_cv_lib_blkid_blkid_probe_enable_partitions=yes
13230 ac_cv_lib_blkid_blkid_probe_enable_partitions=no
13232 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13233 conftest$ac_exeext conftest.$ac_ext
13234 LIBS=$ac_check_lib_save_LIBS
13236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_probe_enable_partitions" >&5
13237 printf "%s\n" "$ac_cv_lib_blkid_blkid_probe_enable_partitions" >&6; }
13238 if test "x$ac_cv_lib_blkid_blkid_probe_enable_partitions" = xyes
13241 printf "%s\n" "#define HAVE_BLKID_PROBE_ENABLE_PARTITIONS 1" >>confdefs.h
13246 if test -n "$DLOPEN_LIB" ; then
13247 ac_cv_func_dlopen=yes
13249 ac_fn_c_check_func "$LINENO" "__secure_getenv" "ac_cv_func___secure_getenv"
13250 if test "x$ac_cv_func___secure_getenv" = xyes
13252 printf "%s\n" "#define HAVE___SECURE_GETENV 1" >>confdefs.h
13255 ac_fn_c_check_func "$LINENO" "add_key" "ac_cv_func_add_key"
13256 if test "x$ac_cv_func_add_key" = xyes
13258 printf "%s\n" "#define HAVE_ADD_KEY 1" >>confdefs.h
13261 ac_fn_c_check_func "$LINENO" "backtrace" "ac_cv_func_backtrace"
13262 if test "x$ac_cv_func_backtrace" = xyes
13264 printf "%s\n" "#define HAVE_BACKTRACE 1" >>confdefs.h
13267 ac_fn_c_check_func "$LINENO" "chflags" "ac_cv_func_chflags"
13268 if test "x$ac_cv_func_chflags" = xyes
13270 printf "%s\n" "#define HAVE_CHFLAGS 1" >>confdefs.h
13273 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13274 if test "x$ac_cv_func_dlopen" = xyes
13276 printf "%s\n" "#define HAVE_DLOPEN 1" >>confdefs.h
13279 ac_fn_c_check_func "$LINENO" "fadvise64" "ac_cv_func_fadvise64"
13280 if test "x$ac_cv_func_fadvise64" = xyes
13282 printf "%s\n" "#define HAVE_FADVISE64 1" >>confdefs.h
13285 ac_fn_c_check_func "$LINENO" "fallocate" "ac_cv_func_fallocate"
13286 if test "x$ac_cv_func_fallocate" = xyes
13288 printf "%s\n" "#define HAVE_FALLOCATE 1" >>confdefs.h
13291 ac_fn_c_check_func "$LINENO" "fallocate64" "ac_cv_func_fallocate64"
13292 if test "x$ac_cv_func_fallocate64" = xyes
13294 printf "%s\n" "#define HAVE_FALLOCATE64 1" >>confdefs.h
13297 ac_fn_c_check_func "$LINENO" "fchown" "ac_cv_func_fchown"
13298 if test "x$ac_cv_func_fchown" = xyes
13300 printf "%s\n" "#define HAVE_FCHOWN 1" >>confdefs.h
13303 ac_fn_c_check_func "$LINENO" "fcntl" "ac_cv_func_fcntl"
13304 if test "x$ac_cv_func_fcntl" = xyes
13306 printf "%s\n" "#define HAVE_FCNTL 1" >>confdefs.h
13309 ac_fn_c_check_func "$LINENO" "fdatasync" "ac_cv_func_fdatasync"
13310 if test "x$ac_cv_func_fdatasync" = xyes
13312 printf "%s\n" "#define HAVE_FDATASYNC 1" >>confdefs.h
13315 ac_fn_c_check_func "$LINENO" "fstat64" "ac_cv_func_fstat64"
13316 if test "x$ac_cv_func_fstat64" = xyes
13318 printf "%s\n" "#define HAVE_FSTAT64 1" >>confdefs.h
13321 ac_fn_c_check_func "$LINENO" "fsync" "ac_cv_func_fsync"
13322 if test "x$ac_cv_func_fsync" = xyes
13324 printf "%s\n" "#define HAVE_FSYNC 1" >>confdefs.h
13327 ac_fn_c_check_func "$LINENO" "ftruncate64" "ac_cv_func_ftruncate64"
13328 if test "x$ac_cv_func_ftruncate64" = xyes
13330 printf "%s\n" "#define HAVE_FTRUNCATE64 1" >>confdefs.h
13333 ac_fn_c_check_func "$LINENO" "futimes" "ac_cv_func_futimes"
13334 if test "x$ac_cv_func_futimes" = xyes
13336 printf "%s\n" "#define HAVE_FUTIMES 1" >>confdefs.h
13339 ac_fn_c_check_func "$LINENO" "getcwd" "ac_cv_func_getcwd"
13340 if test "x$ac_cv_func_getcwd" = xyes
13342 printf "%s\n" "#define HAVE_GETCWD 1" >>confdefs.h
13345 ac_fn_c_check_func "$LINENO" "getdtablesize" "ac_cv_func_getdtablesize"
13346 if test "x$ac_cv_func_getdtablesize" = xyes
13348 printf "%s\n" "#define HAVE_GETDTABLESIZE 1" >>confdefs.h
13351 ac_fn_c_check_func "$LINENO" "getentropy" "ac_cv_func_getentropy"
13352 if test "x$ac_cv_func_getentropy" = xyes
13354 printf "%s\n" "#define HAVE_GETENTROPY 1" >>confdefs.h
13357 ac_fn_c_check_func "$LINENO" "gethostname" "ac_cv_func_gethostname"
13358 if test "x$ac_cv_func_gethostname" = xyes
13360 printf "%s\n" "#define HAVE_GETHOSTNAME 1" >>confdefs.h
13363 ac_fn_c_check_func "$LINENO" "getmntinfo" "ac_cv_func_getmntinfo"
13364 if test "x$ac_cv_func_getmntinfo" = xyes
13366 printf "%s\n" "#define HAVE_GETMNTINFO 1" >>confdefs.h
13369 ac_fn_c_check_func "$LINENO" "getpwuid_r" "ac_cv_func_getpwuid_r"
13370 if test "x$ac_cv_func_getpwuid_r" = xyes
13372 printf "%s\n" "#define HAVE_GETPWUID_R 1" >>confdefs.h
13375 ac_fn_c_check_func "$LINENO" "getrandom" "ac_cv_func_getrandom"
13376 if test "x$ac_cv_func_getrandom" = xyes
13378 printf "%s\n" "#define HAVE_GETRANDOM 1" >>confdefs.h
13381 ac_fn_c_check_func "$LINENO" "getrlimit" "ac_cv_func_getrlimit"
13382 if test "x$ac_cv_func_getrlimit" = xyes
13384 printf "%s\n" "#define HAVE_GETRLIMIT 1" >>confdefs.h
13387 ac_fn_c_check_func "$LINENO" "getrusage" "ac_cv_func_getrusage"
13388 if test "x$ac_cv_func_getrusage" = xyes
13390 printf "%s\n" "#define HAVE_GETRUSAGE 1" >>confdefs.h
13393 ac_fn_c_check_func "$LINENO" "jrand48" "ac_cv_func_jrand48"
13394 if test "x$ac_cv_func_jrand48" = xyes
13396 printf "%s\n" "#define HAVE_JRAND48 1" >>confdefs.h
13399 ac_fn_c_check_func "$LINENO" "keyctl" "ac_cv_func_keyctl"
13400 if test "x$ac_cv_func_keyctl" = xyes
13402 printf "%s\n" "#define HAVE_KEYCTL 1" >>confdefs.h
13405 ac_fn_c_check_func "$LINENO" "llistxattr" "ac_cv_func_llistxattr"
13406 if test "x$ac_cv_func_llistxattr" = xyes
13408 printf "%s\n" "#define HAVE_LLISTXATTR 1" >>confdefs.h
13411 ac_fn_c_check_func "$LINENO" "llseek" "ac_cv_func_llseek"
13412 if test "x$ac_cv_func_llseek" = xyes
13414 printf "%s\n" "#define HAVE_LLSEEK 1" >>confdefs.h
13417 ac_fn_c_check_func "$LINENO" "lseek64" "ac_cv_func_lseek64"
13418 if test "x$ac_cv_func_lseek64" = xyes
13420 printf "%s\n" "#define HAVE_LSEEK64 1" >>confdefs.h
13423 ac_fn_c_check_func "$LINENO" "mallinfo" "ac_cv_func_mallinfo"
13424 if test "x$ac_cv_func_mallinfo" = xyes
13426 printf "%s\n" "#define HAVE_MALLINFO 1" >>confdefs.h
13429 ac_fn_c_check_func "$LINENO" "mallinfo2" "ac_cv_func_mallinfo2"
13430 if test "x$ac_cv_func_mallinfo2" = xyes
13432 printf "%s\n" "#define HAVE_MALLINFO2 1" >>confdefs.h
13435 ac_fn_c_check_func "$LINENO" "mbstowcs" "ac_cv_func_mbstowcs"
13436 if test "x$ac_cv_func_mbstowcs" = xyes
13438 printf "%s\n" "#define HAVE_MBSTOWCS 1" >>confdefs.h
13441 ac_fn_c_check_func "$LINENO" "memalign" "ac_cv_func_memalign"
13442 if test "x$ac_cv_func_memalign" = xyes
13444 printf "%s\n" "#define HAVE_MEMALIGN 1" >>confdefs.h
13447 ac_fn_c_check_func "$LINENO" "mempcpy" "ac_cv_func_mempcpy"
13448 if test "x$ac_cv_func_mempcpy" = xyes
13450 printf "%s\n" "#define HAVE_MEMPCPY 1" >>confdefs.h
13453 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
13454 if test "x$ac_cv_func_mmap" = xyes
13456 printf "%s\n" "#define HAVE_MMAP 1" >>confdefs.h
13459 ac_fn_c_check_func "$LINENO" "msync" "ac_cv_func_msync"
13460 if test "x$ac_cv_func_msync" = xyes
13462 printf "%s\n" "#define HAVE_MSYNC 1" >>confdefs.h
13465 ac_fn_c_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep"
13466 if test "x$ac_cv_func_nanosleep" = xyes
13468 printf "%s\n" "#define HAVE_NANOSLEEP 1" >>confdefs.h
13471 ac_fn_c_check_func "$LINENO" "open64" "ac_cv_func_open64"
13472 if test "x$ac_cv_func_open64" = xyes
13474 printf "%s\n" "#define HAVE_OPEN64 1" >>confdefs.h
13477 ac_fn_c_check_func "$LINENO" "pathconf" "ac_cv_func_pathconf"
13478 if test "x$ac_cv_func_pathconf" = xyes
13480 printf "%s\n" "#define HAVE_PATHCONF 1" >>confdefs.h
13483 ac_fn_c_check_func "$LINENO" "posix_fadvise" "ac_cv_func_posix_fadvise"
13484 if test "x$ac_cv_func_posix_fadvise" = xyes
13486 printf "%s\n" "#define HAVE_POSIX_FADVISE 1" >>confdefs.h
13489 ac_fn_c_check_func "$LINENO" "posix_fadvise64" "ac_cv_func_posix_fadvise64"
13490 if test "x$ac_cv_func_posix_fadvise64" = xyes
13492 printf "%s\n" "#define HAVE_POSIX_FADVISE64 1" >>confdefs.h
13495 ac_fn_c_check_func "$LINENO" "posix_memalign" "ac_cv_func_posix_memalign"
13496 if test "x$ac_cv_func_posix_memalign" = xyes
13498 printf "%s\n" "#define HAVE_POSIX_MEMALIGN 1" >>confdefs.h
13501 ac_fn_c_check_func "$LINENO" "prctl" "ac_cv_func_prctl"
13502 if test "x$ac_cv_func_prctl" = xyes
13504 printf "%s\n" "#define HAVE_PRCTL 1" >>confdefs.h
13507 ac_fn_c_check_func "$LINENO" "pread" "ac_cv_func_pread"
13508 if test "x$ac_cv_func_pread" = xyes
13510 printf "%s\n" "#define HAVE_PREAD 1" >>confdefs.h
13513 ac_fn_c_check_func "$LINENO" "pwrite" "ac_cv_func_pwrite"
13514 if test "x$ac_cv_func_pwrite" = xyes
13516 printf "%s\n" "#define HAVE_PWRITE 1" >>confdefs.h
13519 ac_fn_c_check_func "$LINENO" "pread64" "ac_cv_func_pread64"
13520 if test "x$ac_cv_func_pread64" = xyes
13522 printf "%s\n" "#define HAVE_PREAD64 1" >>confdefs.h
13525 ac_fn_c_check_func "$LINENO" "pwrite64" "ac_cv_func_pwrite64"
13526 if test "x$ac_cv_func_pwrite64" = xyes
13528 printf "%s\n" "#define HAVE_PWRITE64 1" >>confdefs.h
13531 ac_fn_c_check_func "$LINENO" "qsort_r" "ac_cv_func_qsort_r"
13532 if test "x$ac_cv_func_qsort_r" = xyes
13534 printf "%s\n" "#define HAVE_QSORT_R 1" >>confdefs.h
13537 ac_fn_c_check_func "$LINENO" "secure_getenv" "ac_cv_func_secure_getenv"
13538 if test "x$ac_cv_func_secure_getenv" = xyes
13540 printf "%s\n" "#define HAVE_SECURE_GETENV 1" >>confdefs.h
13543 ac_fn_c_check_func "$LINENO" "setmntent" "ac_cv_func_setmntent"
13544 if test "x$ac_cv_func_setmntent" = xyes
13546 printf "%s\n" "#define HAVE_SETMNTENT 1" >>confdefs.h
13549 ac_fn_c_check_func "$LINENO" "setresgid" "ac_cv_func_setresgid"
13550 if test "x$ac_cv_func_setresgid" = xyes
13552 printf "%s\n" "#define HAVE_SETRESGID 1" >>confdefs.h
13555 ac_fn_c_check_func "$LINENO" "setresuid" "ac_cv_func_setresuid"
13556 if test "x$ac_cv_func_setresuid" = xyes
13558 printf "%s\n" "#define HAVE_SETRESUID 1" >>confdefs.h
13561 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
13562 if test "x$ac_cv_func_snprintf" = xyes
13564 printf "%s\n" "#define HAVE_SNPRINTF 1" >>confdefs.h
13567 ac_fn_c_check_func "$LINENO" "srandom" "ac_cv_func_srandom"
13568 if test "x$ac_cv_func_srandom" = xyes
13570 printf "%s\n" "#define HAVE_SRANDOM 1" >>confdefs.h
13573 ac_fn_c_check_func "$LINENO" "stpcpy" "ac_cv_func_stpcpy"
13574 if test "x$ac_cv_func_stpcpy" = xyes
13576 printf "%s\n" "#define HAVE_STPCPY 1" >>confdefs.h
13579 ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
13580 if test "x$ac_cv_func_strcasecmp" = xyes
13582 printf "%s\n" "#define HAVE_STRCASECMP 1" >>confdefs.h
13585 ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup"
13586 if test "x$ac_cv_func_strdup" = xyes
13588 printf "%s\n" "#define HAVE_STRDUP 1" >>confdefs.h
13591 ac_fn_c_check_func "$LINENO" "strnlen" "ac_cv_func_strnlen"
13592 if test "x$ac_cv_func_strnlen" = xyes
13594 printf "%s\n" "#define HAVE_STRNLEN 1" >>confdefs.h
13597 ac_fn_c_check_func "$LINENO" "strptime" "ac_cv_func_strptime"
13598 if test "x$ac_cv_func_strptime" = xyes
13600 printf "%s\n" "#define HAVE_STRPTIME 1" >>confdefs.h
13603 ac_fn_c_check_func "$LINENO" "strtoull" "ac_cv_func_strtoull"
13604 if test "x$ac_cv_func_strtoull" = xyes
13606 printf "%s\n" "#define HAVE_STRTOULL 1" >>confdefs.h
13609 ac_fn_c_check_func "$LINENO" "sync_file_range" "ac_cv_func_sync_file_range"
13610 if test "x$ac_cv_func_sync_file_range" = xyes
13612 printf "%s\n" "#define HAVE_SYNC_FILE_RANGE 1" >>confdefs.h
13615 ac_fn_c_check_func "$LINENO" "sysconf" "ac_cv_func_sysconf"
13616 if test "x$ac_cv_func_sysconf" = xyes
13618 printf "%s\n" "#define HAVE_SYSCONF 1" >>confdefs.h
13621 ac_fn_c_check_func "$LINENO" "usleep" "ac_cv_func_usleep"
13622 if test "x$ac_cv_func_usleep" = xyes
13624 printf "%s\n" "#define HAVE_USLEEP 1" >>confdefs.h
13627 ac_fn_c_check_func "$LINENO" "utime" "ac_cv_func_utime"
13628 if test "x$ac_cv_func_utime" = xyes
13630 printf "%s\n" "#define HAVE_UTIME 1" >>confdefs.h
13633 ac_fn_c_check_func "$LINENO" "utimes" "ac_cv_func_utimes"
13634 if test "x$ac_cv_func_utimes" = xyes
13636 printf "%s\n" "#define HAVE_UTIMES 1" >>confdefs.h
13639 ac_fn_c_check_func "$LINENO" "valloc" "ac_cv_func_valloc"
13640 if test "x$ac_cv_func_valloc" = xyes
13642 printf "%s\n" "#define HAVE_VALLOC 1" >>confdefs.h
13647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
13648 printf %s "checking for socket in -lsocket... " >&6; }
13649 if test ${ac_cv_lib_socket_socket+y}
13651 printf %s "(cached) " >&6
13653 ac_check_lib_save_LIBS=$LIBS
13654 LIBS="-lsocket $LIBS"
13655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13656 /* end confdefs.h. */
13658 /* Override any GCC internal prototype to avoid an error.
13659 Use char because int might match the return type of a GCC
13660 builtin and then its argument prototype would still apply. */
13670 if ac_fn_c_try_link "$LINENO"
13672 ac_cv_lib_socket_socket=yes
13674 ac_cv_lib_socket_socket=no
13676 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13677 conftest$ac_exeext conftest.$ac_ext
13678 LIBS=$ac_check_lib_save_LIBS
13680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
13681 printf "%s\n" "$ac_cv_lib_socket_socket" >&6; }
13682 if test "x$ac_cv_lib_socket_socket" = xyes
13684 SOCKET_LIB=-lsocket
13688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for magic_file in -lmagic" >&5
13689 printf %s "checking for magic_file in -lmagic... " >&6; }
13690 if test ${ac_cv_lib_magic_magic_file+y}
13692 printf %s "(cached) " >&6
13694 ac_check_lib_save_LIBS=$LIBS
13695 LIBS="-lmagic $LIBS"
13696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13697 /* end confdefs.h. */
13699 /* Override any GCC internal prototype to avoid an error.
13700 Use char because int might match the return type of a GCC
13701 builtin and then its argument prototype would still apply. */
13702 char magic_file ();
13706 return magic_file ();
13711 if ac_fn_c_try_link "$LINENO"
13713 ac_cv_lib_magic_magic_file=yes
13715 ac_cv_lib_magic_magic_file=no
13717 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13718 conftest$ac_exeext conftest.$ac_ext
13719 LIBS=$ac_check_lib_save_LIBS
13721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_magic_magic_file" >&5
13722 printf "%s\n" "$ac_cv_lib_magic_magic_file" >&6; }
13723 if test "x$ac_cv_lib_magic_magic_file" = xyes
13726 ac_fn_c_check_header_compile "$LINENO" "magic.h" "ac_cv_header_magic_h" "$ac_includes_default"
13727 if test "x$ac_cv_header_magic_h" = xyes
13729 printf "%s\n" "#define HAVE_MAGIC_H 1" >>confdefs.h
13735 if test "$ac_cv_func_dlopen" = yes ; then
13736 MAGIC_LIB=$DLOPEN_LIB
13740 # Check whether --with-libarchive was given.
13741 if test ${with_libarchive+y}
13743 withval=$with_libarchive; if test "$withval" = "no"
13746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling libarchive support" >&5
13747 printf "%s\n" "Disabling libarchive support" >&6; }
13748 elif test "$withval" = "direct"
13750 try_libarchive="direct"
13751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Testing for libarchive support (forced direct link)" >&5
13752 printf "%s\n" "Testing for libarchive support (forced direct link)" >&6; }
13754 try_libarchive="yes"
13755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Testing for libarchive support (with dlopen)" >&5
13756 printf "%s\n" "Testing for libarchive support (with dlopen)" >&6; }
13760 try_libarchive="yes"
13761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Try testing for libarchive support (with dlopen) by default" >&5
13762 printf "%s\n" "Try testing for libarchive support (with dlopen) by default" >&6; }
13767 if test -n "$try_libarchive"
13769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archive_read_new in -larchive" >&5
13770 printf %s "checking for archive_read_new in -larchive... " >&6; }
13771 if test ${ac_cv_lib_archive_archive_read_new+y}
13773 printf %s "(cached) " >&6
13775 ac_check_lib_save_LIBS=$LIBS
13776 LIBS="-larchive $LIBS"
13777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13778 /* end confdefs.h. */
13780 /* Override any GCC internal prototype to avoid an error.
13781 Use char because int might match the return type of a GCC
13782 builtin and then its argument prototype would still apply. */
13783 char archive_read_new ();
13787 return archive_read_new ();
13792 if ac_fn_c_try_link "$LINENO"
13794 ac_cv_lib_archive_archive_read_new=yes
13796 ac_cv_lib_archive_archive_read_new=no
13798 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13799 conftest$ac_exeext conftest.$ac_ext
13800 LIBS=$ac_check_lib_save_LIBS
13802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_archive_archive_read_new" >&5
13803 printf "%s\n" "$ac_cv_lib_archive_archive_read_new" >&6; }
13804 if test "x$ac_cv_lib_archive_archive_read_new" = xyes
13806 ARCHIVE_LIB=-larchive
13807 ac_fn_c_check_header_compile "$LINENO" "archive.h" "ac_cv_header_archive_h" "$ac_includes_default"
13808 if test "x$ac_cv_header_archive_h" = xyes
13810 printf "%s\n" "#define HAVE_ARCHIVE_H 1" >>confdefs.h
13816 if test "$ac_cv_func_dlopen" = yes -a "$try_libarchive" != "direct"; then
13817 ARCHIVE_LIB=$DLOPEN_LIB
13819 printf "%s\n" "#define CONFIG_DLOPEN_LIBARCHIVE 1" >>confdefs.h
13823 if test "$ac_cv_header_archive_h" != "yes"
13829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
13830 printf %s "checking for clock_gettime in -lrt... " >&6; }
13831 if test ${ac_cv_lib_rt_clock_gettime+y}
13833 printf %s "(cached) " >&6
13835 ac_check_lib_save_LIBS=$LIBS
13837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13838 /* end confdefs.h. */
13840 /* Override any GCC internal prototype to avoid an error.
13841 Use char because int might match the return type of a GCC
13842 builtin and then its argument prototype would still apply. */
13843 char clock_gettime ();
13847 return clock_gettime ();
13852 if ac_fn_c_try_link "$LINENO"
13854 ac_cv_lib_rt_clock_gettime=yes
13856 ac_cv_lib_rt_clock_gettime=no
13858 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13859 conftest$ac_exeext conftest.$ac_ext
13860 LIBS=$ac_check_lib_save_LIBS
13862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
13863 printf "%s\n" "$ac_cv_lib_rt_clock_gettime" >&6; }
13864 if test "x$ac_cv_lib_rt_clock_gettime" = xyes
13866 CLOCK_GETTIME_LIB=-lrt
13872 # Check whether --enable-fuse2fs was given.
13873 if test ${enable_fuse2fs+y}
13875 enableval=$enable_fuse2fs; if test "$enableval" = "no"
13878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling fuse2fs" >&5
13879 printf "%s\n" "Disabling fuse2fs" >&6; }
13881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13882 /* end confdefs.h. */
13884 #include <linux/fs.h>
13885 #include <linux/falloc.h>
13886 #include <linux/xattr.h>
13897 if ac_fn_c_try_cpp "$LINENO"
13901 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13902 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
13903 as_fn_error $? "Cannot find fuse2fs Linux headers.
13904 See \`config.log' for more details" "$LINENO" 5; }
13906 rm -f conftest.err conftest.i conftest.$ac_ext
13909 C compiler flags for fuse3, overriding pkg-config
13910 fuse3_LIBS linker flags for fuse3, overriding pkg-config
13913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fuse3" >&5
13914 printf %s "checking for fuse3... " >&6; }
13916 if test -n "$fuse3_CFLAGS"; then
13917 pkg_cv_fuse3_CFLAGS="$fuse3_CFLAGS"
13918 elif test -n "$PKG_CONFIG"; then
13919 if test -n "$PKG_CONFIG" && \
13920 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fuse3\""; } >&5
13921 ($PKG_CONFIG --exists --print-errors "fuse3") 2>&5
13923 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13924 test $ac_status = 0; }; then
13925 pkg_cv_fuse3_CFLAGS=`$PKG_CONFIG --cflags "fuse3" 2>/dev/null`
13926 test "x$?" != "x0" && pkg_failed=yes
13933 if test -n "$fuse3_LIBS"; then
13934 pkg_cv_fuse3_LIBS="$fuse3_LIBS"
13935 elif test -n "$PKG_CONFIG"; then
13936 if test -n "$PKG_CONFIG" && \
13937 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fuse3\""; } >&5
13938 ($PKG_CONFIG --exists --print-errors "fuse3") 2>&5
13940 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13941 test $ac_status = 0; }; then
13942 pkg_cv_fuse3_LIBS=`$PKG_CONFIG --libs "fuse3" 2>/dev/null`
13943 test "x$?" != "x0" && pkg_failed=yes
13953 if test $pkg_failed = yes; then
13954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13955 printf "%s\n" "no" >&6; }
13957 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13958 _pkg_short_errors_supported=yes
13960 _pkg_short_errors_supported=no
13962 if test $_pkg_short_errors_supported = yes; then
13963 fuse3_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "fuse3" 2>&1`
13965 fuse3_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "fuse3" 2>&1`
13967 # Put the nasty error message in config.log where it belongs
13968 echo "$fuse3_PKG_ERRORS" >&5
13971 for ac_header in pthread.h fuse.h
13973 as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | $as_tr_sh`
13974 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#define _FILE_OFFSET_BITS 64
13975 #define FUSE_USE_VERSION 29
13977 if eval test \"x\$"$as_ac_Header"\" = x"yes"
13979 cat >>confdefs.h <<_ACEOF
13980 #define `printf "%s\n" "HAVE_$ac_header" | $as_tr_cpp` 1
13984 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13985 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
13986 as_fn_error $? "Cannot find fuse2fs headers.
13987 See \`config.log' for more details" "$LINENO" 5; }
13992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -losxfuse" >&5
13993 printf %s "checking for fuse_main in -losxfuse... " >&6; }
13994 if test ${ac_cv_lib_osxfuse_fuse_main+y}
13996 printf %s "(cached) " >&6
13998 ac_check_lib_save_LIBS=$LIBS
13999 LIBS="-losxfuse $LIBS"
14000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14001 /* end confdefs.h. */
14003 /* Override any GCC internal prototype to avoid an error.
14004 Use char because int might match the return type of a GCC
14005 builtin and then its argument prototype would still apply. */
14010 return fuse_main ();
14015 if ac_fn_c_try_link "$LINENO"
14017 ac_cv_lib_osxfuse_fuse_main=yes
14019 ac_cv_lib_osxfuse_fuse_main=no
14021 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14022 conftest$ac_exeext conftest.$ac_ext
14023 LIBS=$ac_check_lib_save_LIBS
14025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_osxfuse_fuse_main" >&5
14026 printf "%s\n" "$ac_cv_lib_osxfuse_fuse_main" >&6; }
14027 if test "x$ac_cv_lib_osxfuse_fuse_main" = xyes
14031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -lfuse" >&5
14032 printf %s "checking for fuse_main in -lfuse... " >&6; }
14033 if test ${ac_cv_lib_fuse_fuse_main+y}
14035 printf %s "(cached) " >&6
14037 ac_check_lib_save_LIBS=$LIBS
14038 LIBS="-lfuse $LIBS"
14039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14040 /* end confdefs.h. */
14042 /* Override any GCC internal prototype to avoid an error.
14043 Use char because int might match the return type of a GCC
14044 builtin and then its argument prototype would still apply. */
14049 return fuse_main ();
14054 if ac_fn_c_try_link "$LINENO"
14056 ac_cv_lib_fuse_fuse_main=yes
14058 ac_cv_lib_fuse_fuse_main=no
14060 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14061 conftest$ac_exeext conftest.$ac_ext
14062 LIBS=$ac_check_lib_save_LIBS
14064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fuse_fuse_main" >&5
14065 printf "%s\n" "$ac_cv_lib_fuse_fuse_main" >&6; }
14066 if test "x$ac_cv_lib_fuse_fuse_main" = xyes
14070 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14071 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
14072 as_fn_error $? "Cannot find fuse library.
14073 See \`config.log' for more details" "$LINENO" 5; }
14079 elif test $pkg_failed = untried; then
14080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14081 printf "%s\n" "no" >&6; }
14083 for ac_header in pthread.h fuse.h
14085 as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | $as_tr_sh`
14086 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#define _FILE_OFFSET_BITS 64
14087 #define FUSE_USE_VERSION 29
14089 if eval test \"x\$"$as_ac_Header"\" = x"yes"
14091 cat >>confdefs.h <<_ACEOF
14092 #define `printf "%s\n" "HAVE_$ac_header" | $as_tr_cpp` 1
14096 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14097 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
14098 as_fn_error $? "Cannot find fuse2fs headers.
14099 See \`config.log' for more details" "$LINENO" 5; }
14104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -losxfuse" >&5
14105 printf %s "checking for fuse_main in -losxfuse... " >&6; }
14106 if test ${ac_cv_lib_osxfuse_fuse_main+y}
14108 printf %s "(cached) " >&6
14110 ac_check_lib_save_LIBS=$LIBS
14111 LIBS="-losxfuse $LIBS"
14112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14113 /* end confdefs.h. */
14115 /* Override any GCC internal prototype to avoid an error.
14116 Use char because int might match the return type of a GCC
14117 builtin and then its argument prototype would still apply. */
14122 return fuse_main ();
14127 if ac_fn_c_try_link "$LINENO"
14129 ac_cv_lib_osxfuse_fuse_main=yes
14131 ac_cv_lib_osxfuse_fuse_main=no
14133 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14134 conftest$ac_exeext conftest.$ac_ext
14135 LIBS=$ac_check_lib_save_LIBS
14137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_osxfuse_fuse_main" >&5
14138 printf "%s\n" "$ac_cv_lib_osxfuse_fuse_main" >&6; }
14139 if test "x$ac_cv_lib_osxfuse_fuse_main" = xyes
14143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -lfuse" >&5
14144 printf %s "checking for fuse_main in -lfuse... " >&6; }
14145 if test ${ac_cv_lib_fuse_fuse_main+y}
14147 printf %s "(cached) " >&6
14149 ac_check_lib_save_LIBS=$LIBS
14150 LIBS="-lfuse $LIBS"
14151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14152 /* end confdefs.h. */
14154 /* Override any GCC internal prototype to avoid an error.
14155 Use char because int might match the return type of a GCC
14156 builtin and then its argument prototype would still apply. */
14161 return fuse_main ();
14166 if ac_fn_c_try_link "$LINENO"
14168 ac_cv_lib_fuse_fuse_main=yes
14170 ac_cv_lib_fuse_fuse_main=no
14172 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14173 conftest$ac_exeext conftest.$ac_ext
14174 LIBS=$ac_check_lib_save_LIBS
14176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fuse_fuse_main" >&5
14177 printf "%s\n" "$ac_cv_lib_fuse_fuse_main" >&6; }
14178 if test "x$ac_cv_lib_fuse_fuse_main" = xyes
14182 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14183 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
14184 as_fn_error $? "Cannot find fuse library.
14185 See \`config.log' for more details" "$LINENO" 5; }
14192 fuse3_CFLAGS=$pkg_cv_fuse3_CFLAGS
14193 fuse3_LIBS=$pkg_cv_fuse3_LIBS
14194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14195 printf "%s\n" "yes" >&6; }
14200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling fuse2fs" >&5
14201 printf "%s\n" "Enabling fuse2fs" >&6; }
14207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fuse3" >&5
14208 printf %s "checking for fuse3... " >&6; }
14210 if test -n "$fuse3_CFLAGS"; then
14211 pkg_cv_fuse3_CFLAGS="$fuse3_CFLAGS"
14212 elif test -n "$PKG_CONFIG"; then
14213 if test -n "$PKG_CONFIG" && \
14214 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fuse3\""; } >&5
14215 ($PKG_CONFIG --exists --print-errors "fuse3") 2>&5
14217 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14218 test $ac_status = 0; }; then
14219 pkg_cv_fuse3_CFLAGS=`$PKG_CONFIG --cflags "fuse3" 2>/dev/null`
14220 test "x$?" != "x0" && pkg_failed=yes
14227 if test -n "$fuse3_LIBS"; then
14228 pkg_cv_fuse3_LIBS="$fuse3_LIBS"
14229 elif test -n "$PKG_CONFIG"; then
14230 if test -n "$PKG_CONFIG" && \
14231 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fuse3\""; } >&5
14232 ($PKG_CONFIG --exists --print-errors "fuse3") 2>&5
14234 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14235 test $ac_status = 0; }; then
14236 pkg_cv_fuse3_LIBS=`$PKG_CONFIG --libs "fuse3" 2>/dev/null`
14237 test "x$?" != "x0" && pkg_failed=yes
14247 if test $pkg_failed = yes; then
14248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14249 printf "%s\n" "no" >&6; }
14251 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14252 _pkg_short_errors_supported=yes
14254 _pkg_short_errors_supported=no
14256 if test $_pkg_short_errors_supported = yes; then
14257 fuse3_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "fuse3" 2>&1`
14259 fuse3_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "fuse3" 2>&1`
14261 # Put the nasty error message in config.log where it belongs
14262 echo "$fuse3_PKG_ERRORS" >&5
14265 for ac_header in pthread.h fuse.h
14267 as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | $as_tr_sh`
14268 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#define _FILE_OFFSET_BITS 64
14269 #define FUSE_USE_VERSION 29
14271 # include <linux/fs.h>
14272 # include <linux/falloc.h>
14273 # include <linux/xattr.h>
14276 if eval test \"x\$"$as_ac_Header"\" = x"yes"
14278 cat >>confdefs.h <<_ACEOF
14279 #define `printf "%s\n" "HAVE_$ac_header" | $as_tr_cpp` 1
14287 if test -z "$FUSE_CMT"
14289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -losxfuse" >&5
14290 printf %s "checking for fuse_main in -losxfuse... " >&6; }
14291 if test ${ac_cv_lib_osxfuse_fuse_main+y}
14293 printf %s "(cached) " >&6
14295 ac_check_lib_save_LIBS=$LIBS
14296 LIBS="-losxfuse $LIBS"
14297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14298 /* end confdefs.h. */
14300 /* Override any GCC internal prototype to avoid an error.
14301 Use char because int might match the return type of a GCC
14302 builtin and then its argument prototype would still apply. */
14307 return fuse_main ();
14312 if ac_fn_c_try_link "$LINENO"
14314 ac_cv_lib_osxfuse_fuse_main=yes
14316 ac_cv_lib_osxfuse_fuse_main=no
14318 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14319 conftest$ac_exeext conftest.$ac_ext
14320 LIBS=$ac_check_lib_save_LIBS
14322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_osxfuse_fuse_main" >&5
14323 printf "%s\n" "$ac_cv_lib_osxfuse_fuse_main" >&6; }
14324 if test "x$ac_cv_lib_osxfuse_fuse_main" = xyes
14328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -lfuse" >&5
14329 printf %s "checking for fuse_main in -lfuse... " >&6; }
14330 if test ${ac_cv_lib_fuse_fuse_main+y}
14332 printf %s "(cached) " >&6
14334 ac_check_lib_save_LIBS=$LIBS
14335 LIBS="-lfuse $LIBS"
14336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14337 /* end confdefs.h. */
14339 /* Override any GCC internal prototype to avoid an error.
14340 Use char because int might match the return type of a GCC
14341 builtin and then its argument prototype would still apply. */
14346 return fuse_main ();
14351 if ac_fn_c_try_link "$LINENO"
14353 ac_cv_lib_fuse_fuse_main=yes
14355 ac_cv_lib_fuse_fuse_main=no
14357 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14358 conftest$ac_exeext conftest.$ac_ext
14359 LIBS=$ac_check_lib_save_LIBS
14361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fuse_fuse_main" >&5
14362 printf "%s\n" "$ac_cv_lib_fuse_fuse_main" >&6; }
14363 if test "x$ac_cv_lib_fuse_fuse_main" = xyes
14374 elif test $pkg_failed = untried; then
14375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14376 printf "%s\n" "no" >&6; }
14378 for ac_header in pthread.h fuse.h
14380 as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | $as_tr_sh`
14381 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#define _FILE_OFFSET_BITS 64
14382 #define FUSE_USE_VERSION 29
14384 # include <linux/fs.h>
14385 # include <linux/falloc.h>
14386 # include <linux/xattr.h>
14389 if eval test \"x\$"$as_ac_Header"\" = x"yes"
14391 cat >>confdefs.h <<_ACEOF
14392 #define `printf "%s\n" "HAVE_$ac_header" | $as_tr_cpp` 1
14400 if test -z "$FUSE_CMT"
14402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -losxfuse" >&5
14403 printf %s "checking for fuse_main in -losxfuse... " >&6; }
14404 if test ${ac_cv_lib_osxfuse_fuse_main+y}
14406 printf %s "(cached) " >&6
14408 ac_check_lib_save_LIBS=$LIBS
14409 LIBS="-losxfuse $LIBS"
14410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14411 /* end confdefs.h. */
14413 /* Override any GCC internal prototype to avoid an error.
14414 Use char because int might match the return type of a GCC
14415 builtin and then its argument prototype would still apply. */
14420 return fuse_main ();
14425 if ac_fn_c_try_link "$LINENO"
14427 ac_cv_lib_osxfuse_fuse_main=yes
14429 ac_cv_lib_osxfuse_fuse_main=no
14431 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14432 conftest$ac_exeext conftest.$ac_ext
14433 LIBS=$ac_check_lib_save_LIBS
14435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_osxfuse_fuse_main" >&5
14436 printf "%s\n" "$ac_cv_lib_osxfuse_fuse_main" >&6; }
14437 if test "x$ac_cv_lib_osxfuse_fuse_main" = xyes
14441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -lfuse" >&5
14442 printf %s "checking for fuse_main in -lfuse... " >&6; }
14443 if test ${ac_cv_lib_fuse_fuse_main+y}
14445 printf %s "(cached) " >&6
14447 ac_check_lib_save_LIBS=$LIBS
14448 LIBS="-lfuse $LIBS"
14449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14450 /* end confdefs.h. */
14452 /* Override any GCC internal prototype to avoid an error.
14453 Use char because int might match the return type of a GCC
14454 builtin and then its argument prototype would still apply. */
14459 return fuse_main ();
14464 if ac_fn_c_try_link "$LINENO"
14466 ac_cv_lib_fuse_fuse_main=yes
14468 ac_cv_lib_fuse_fuse_main=no
14470 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14471 conftest$ac_exeext conftest.$ac_ext
14472 LIBS=$ac_check_lib_save_LIBS
14474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fuse_fuse_main" >&5
14475 printf "%s\n" "$ac_cv_lib_fuse_fuse_main" >&6; }
14476 if test "x$ac_cv_lib_fuse_fuse_main" = xyes
14488 fuse3_CFLAGS=$pkg_cv_fuse3_CFLAGS
14489 fuse3_LIBS=$pkg_cv_fuse3_LIBS
14490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14491 printf "%s\n" "yes" >&6; }
14496 if test -z "$FUSE_CMT"
14498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling fuse2fs by default." >&5
14499 printf "%s\n" "Enabling fuse2fs by default." >&6; }
14506 if test "$FUSE_LIB" = "-lfuse3"
14508 FUSE_USE_VERSION=35
14509 CFLAGS="$CFLAGS $fuse3_CFLAGS"
14510 LDFLAGS="$LDFLAGS $fuse3_LDFLAGS"
14511 for ac_header in pthread.h fuse.h
14513 as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | $as_tr_sh`
14514 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#define _FILE_OFFSET_BITS 64
14515 #define FUSE_USE_VERSION 35
14517 #include <linux/fs.h>
14518 #include <linux/falloc.h>
14519 #include <linux/xattr.h>
14522 if eval test \"x\$"$as_ac_Header"\" = x"yes"
14524 cat >>confdefs.h <<_ACEOF
14525 #define `printf "%s\n" "HAVE_$ac_header" | $as_tr_cpp` 1
14529 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14530 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
14531 as_fn_error $? "Cannot find fuse3 fuse2fs headers.
14532 See \`config.log' for more details" "$LINENO" 5; }
14536 elif test -n "$FUSE_LIB"
14538 FUSE_USE_VERSION=29
14540 if test -n "$FUSE_USE_VERSION"
14543 printf "%s\n" "#define FUSE_USE_VERSION $FUSE_USE_VERSION" >>confdefs.h
14546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for optreset" >&5
14547 printf %s "checking for optreset... " >&6; }
14548 if test ${ac_cv_have_optreset+y}
14550 printf %s "(cached) " >&6
14552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14553 /* end confdefs.h. */
14554 #include <unistd.h>
14557 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14558 $EGREP "optreset" >/dev/null 2>&1
14560 ac_cv_have_optreset=yes
14562 ac_cv_have_optreset=no
14567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_optreset" >&5
14568 printf "%s\n" "$ac_cv_have_optreset" >&6; }
14569 if test $ac_cv_have_optreset = yes; then
14571 printf "%s\n" "#define HAVE_OPTRESET 1" >>confdefs.h
14576 echo GL_THREADS_API: ${gl_threads_api}
14577 if test "${gl_threads_api}" != none
14579 ac_fn_c_check_func "$LINENO" "sem_init" "ac_cv_func_sem_init"
14580 if test "x$ac_cv_func_sem_init" = xyes
14584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lpthread" >&5
14585 printf %s "checking for sem_init in -lpthread... " >&6; }
14586 if test ${ac_cv_lib_pthread_sem_init+y}
14588 printf %s "(cached) " >&6
14590 ac_check_lib_save_LIBS=$LIBS
14591 LIBS="-lpthread $LIBS"
14592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14593 /* end confdefs.h. */
14595 /* Override any GCC internal prototype to avoid an error.
14596 Use char because int might match the return type of a GCC
14597 builtin and then its argument prototype would still apply. */
14602 return sem_init ();
14607 if ac_fn_c_try_link "$LINENO"
14609 ac_cv_lib_pthread_sem_init=yes
14611 ac_cv_lib_pthread_sem_init=no
14613 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14614 conftest$ac_exeext conftest.$ac_ext
14615 LIBS=$ac_check_lib_save_LIBS
14617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_sem_init" >&5
14618 printf "%s\n" "$ac_cv_lib_pthread_sem_init" >&6; }
14619 if test "x$ac_cv_lib_pthread_sem_init" = xyes
14621 printf "%s\n" "#define HAVE_SEM_INIT 1" >>confdefs.h
14623 SEM_INIT_LIB=-lpthread
14625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lrt" >&5
14626 printf %s "checking for sem_init in -lrt... " >&6; }
14627 if test ${ac_cv_lib_rt_sem_init+y}
14629 printf %s "(cached) " >&6
14631 ac_check_lib_save_LIBS=$LIBS
14633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14634 /* end confdefs.h. */
14636 /* Override any GCC internal prototype to avoid an error.
14637 Use char because int might match the return type of a GCC
14638 builtin and then its argument prototype would still apply. */
14643 return sem_init ();
14648 if ac_fn_c_try_link "$LINENO"
14650 ac_cv_lib_rt_sem_init=yes
14652 ac_cv_lib_rt_sem_init=no
14654 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14655 conftest$ac_exeext conftest.$ac_ext
14656 LIBS=$ac_check_lib_save_LIBS
14658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sem_init" >&5
14659 printf "%s\n" "$ac_cv_lib_rt_sem_init" >&6; }
14660 if test "x$ac_cv_lib_rt_sem_init" = xyes
14662 printf "%s\n" "#define HAVE_SEM_INIT 1" >>confdefs.h
14666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lposix4" >&5
14667 printf %s "checking for sem_init in -lposix4... " >&6; }
14668 if test ${ac_cv_lib_posix4_sem_init+y}
14670 printf %s "(cached) " >&6
14672 ac_check_lib_save_LIBS=$LIBS
14673 LIBS="-lposix4 $LIBS"
14674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14675 /* end confdefs.h. */
14677 /* Override any GCC internal prototype to avoid an error.
14678 Use char because int might match the return type of a GCC
14679 builtin and then its argument prototype would still apply. */
14684 return sem_init ();
14689 if ac_fn_c_try_link "$LINENO"
14691 ac_cv_lib_posix4_sem_init=yes
14693 ac_cv_lib_posix4_sem_init=no
14695 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14696 conftest$ac_exeext conftest.$ac_ext
14697 LIBS=$ac_check_lib_save_LIBS
14699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sem_init" >&5
14700 printf "%s\n" "$ac_cv_lib_posix4_sem_init" >&6; }
14701 if test "x$ac_cv_lib_posix4_sem_init" = xyes
14703 printf "%s\n" "#define HAVE_SEM_INIT 1" >>confdefs.h
14705 SEM_INIT_LIB=-lposix4
14715 if test "$ac_cv_func_qsort_r" != no
14718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether qsort_r is GNU version" >&5
14719 printf %s "checking whether qsort_r is GNU version... " >&6; }
14720 if test ${e2_cv_gnu_qsort_r+y}
14722 printf %s "(cached) " >&6
14724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14725 /* end confdefs.h. */
14727 #include <stdlib.h>
14728 void (qsort_r)(void *base, size_t nmemb, size_t size,
14729 int (*compar)(const void *, const void *, void *),
14740 if ac_fn_c_try_compile "$LINENO"
14742 e2_cv_gnu_qsort_r=yes
14744 e2_cv_gnu_qsort_r=no
14746 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $e2_cv_gnu_qsort_r" >&5
14750 printf "%s\n" "$e2_cv_gnu_qsort_r" >&6; }
14751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether qsort_r is BSD version" >&5
14752 printf %s "checking whether qsort_r is BSD version... " >&6; }
14753 if test ${e2_cv_bsd_qsort_r+y}
14755 printf %s "(cached) " >&6
14757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14758 /* end confdefs.h. */
14760 #include <stdlib.h>
14761 void (qsort_r)(void *base, size_t nmemb, size_t size,
14762 void *arg, int (*compar)(void *, const void *, const void *));
14772 if ac_fn_c_try_compile "$LINENO"
14774 e2_cv_bsd_qsort_r=yes
14776 e2_cv_bsd_qsort_r=no
14778 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $e2_cv_bsd_qsort_r" >&5
14782 printf "%s\n" "$e2_cv_bsd_qsort_r" >&6; }
14783 case "$e2_cv_gnu_qsort_r:$e2_cv_bsd_qsort_r" in #(
14787 printf "%s\n" "#define HAVE_GNU_QSORT_R 1" >>confdefs.h
14793 printf "%s\n" "#define HAVE_BSD_QSORT_R 1" >>confdefs.h
14801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for unified diff option" >&5
14802 printf %s "checking for unified diff option... " >&6; }
14803 if diff -u $0 $0 > /dev/null 2>&1 ; then
14808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $UNI_DIFF_OPTS" >&5
14809 printf "%s\n" "$UNI_DIFF_OPTS" >&6; }
14814 printf "%s\n" "#define HAVE_EXT2_IOCTLS 1" >>confdefs.h
14819 printf %s "checking for mount 'nosuid' option... "
14820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14821 /* end confdefs.h. */
14822 #include <sys/mount.h>
14826 void *temp = (void *)(MS_NOSUID); (void) temp;
14831 if ac_fn_c_try_compile "$LINENO"
14834 printf "%s\n" "#define HAVE_MOUNT_NOSUID 1" >>confdefs.h
14836 ac_cv_mount_nosuid=yes
14837 printf "%s\n" "yes"
14839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14840 /* end confdefs.h. */
14841 #include <sys/mount.h>
14845 void *temp = (void *)(MNT_NOSUID); (void) temp;
14850 if ac_fn_c_try_compile "$LINENO"
14853 printf "%s\n" "#define HAVE_MOUNT_NOSUID 1" >>confdefs.h
14855 ac_cv_mount_nosuid=yes
14856 printf "%s\n" "yes"
14858 ac_cv_mount_nosuid=no
14862 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14865 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14868 printf %s "checking for mount 'nodev' option... "
14869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14870 /* end confdefs.h. */
14871 #include <sys/mount.h>
14875 void *temp = (void *)(MS_NODEV); (void) temp;
14880 if ac_fn_c_try_compile "$LINENO"
14883 printf "%s\n" "#define HAVE_MOUNT_NODEV 1" >>confdefs.h
14885 ac_cv_mount_nodev=yes
14886 printf "%s\n" "yes"
14888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14889 /* end confdefs.h. */
14890 #include <sys/mount.h>
14894 void *temp = (void *)(MNT_NODEV); (void) temp;
14899 if ac_fn_c_try_compile "$LINENO"
14902 printf "%s\n" "#define HAVE_MOUNT_NODEV 1" >>confdefs.h
14904 ac_cv_mount_nodev=yes
14905 printf "%s\n" "yes"
14907 ac_cv_mount_nodev=no
14911 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14914 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14916 # Check whether --enable-lto was given.
14917 if test ${enable_lto+y}
14919 enableval=$enable_lto;
14924 if test "$enable_lto" = "yes" || test "$enable_lto" = "probe"; then
14925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if C compiler supports LTO" >&5
14926 printf %s "checking if C compiler supports LTO... " >&6; }
14927 OLD_CFLAGS="$CFLAGS"
14928 OLD_LDFLAGS="$LDFLAGS"
14929 LTO_FLAGS="-g -flto -ffat-lto-objects"
14930 CFLAGS="$CFLAGS $LTO_FLAGS"
14931 LDFLAGS="$LDFLAGS $LTO_FLAGS"
14932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14933 /* end confdefs.h. */
14943 if ac_fn_c_try_link "$LINENO"
14945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14946 printf "%s\n" "yes" >&6; }
14947 lto_cflags=$LTO_FLAGS
14948 lto_ldflags=$LTO_FLAGS
14949 # Extract the first word of "gcc-ar", so it can be a program name with args.
14950 set dummy gcc-ar; ac_word=$2
14951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14952 printf %s "checking for $ac_word... " >&6; }
14953 if test ${ac_cv_path_gcc_ar+y}
14955 printf %s "(cached) " >&6
14959 ac_cv_path_gcc_ar="$gcc_ar" # Let the user override the test with a path.
14962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14963 for as_dir in $PATH
14966 case $as_dir in #(((
14969 *) as_dir=$as_dir/ ;;
14971 for ac_exec_ext in '' $ac_executable_extensions; do
14972 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14973 ac_cv_path_gcc_ar="$as_dir$ac_word$ac_exec_ext"
14974 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14984 gcc_ar=$ac_cv_path_gcc_ar
14985 if test -n "$gcc_ar"; then
14986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gcc_ar" >&5
14987 printf "%s\n" "$gcc_ar" >&6; }
14989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14990 printf "%s\n" "no" >&6; }
14994 # Extract the first word of "gcc-ranlib", so it can be a program name with args.
14995 set dummy gcc-ranlib; ac_word=$2
14996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14997 printf %s "checking for $ac_word... " >&6; }
14998 if test ${ac_cv_path_gcc_ranlib+y}
15000 printf %s "(cached) " >&6
15002 case $gcc_ranlib in
15004 ac_cv_path_gcc_ranlib="$gcc_ranlib" # Let the user override the test with a path.
15007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15008 for as_dir in $PATH
15011 case $as_dir in #(((
15014 *) as_dir=$as_dir/ ;;
15016 for ac_exec_ext in '' $ac_executable_extensions; do
15017 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15018 ac_cv_path_gcc_ranlib="$as_dir$ac_word$ac_exec_ext"
15019 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15029 gcc_ranlib=$ac_cv_path_gcc_ranlib
15030 if test -n "$gcc_ranlib"; then
15031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gcc_ranlib" >&5
15032 printf "%s\n" "$gcc_ranlib" >&6; }
15034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15035 printf "%s\n" "no" >&6; }
15040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15041 printf "%s\n" "no" >&6; }
15043 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15044 conftest$ac_exeext conftest.$ac_ext
15045 if test -x "$gcc_ar" && test -x "$gcc_ranlib"; then
15048 RANLIB="${gcc_ranlib}"
15050 CFLAGS="${OLD_CFLAGS}"
15051 LDFLAGS="${OLD_LDFLAGS}"
15056 if test "$enable_lto" = "yes" && test "$have_lto" != "yes"; then
15057 as_fn_error $? "LTO not supported by compiler." "$LINENO" 5
15059 # Check whether --enable-ubsan was given.
15060 if test ${enable_ubsan+y}
15062 enableval=$enable_ubsan;
15067 if test "$enable_ubsan" = "yes" || test "$enable_ubsan" = "probe"; then
15068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if C compiler supports UBSAN" >&5
15069 printf %s "checking if C compiler supports UBSAN... " >&6; }
15070 OLD_CFLAGS="$CFLAGS"
15071 OLD_LDFLAGS="$LDFLAGS"
15072 UBSAN_FLAGS="-fsanitize=undefined"
15073 CFLAGS="$CFLAGS $UBSAN_FLAGS"
15074 LDFLAGS="$LDFLAGS $UBSAN_FLAGS"
15075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15076 /* end confdefs.h. */
15086 if ac_fn_c_try_link "$LINENO"
15088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15089 printf "%s\n" "yes" >&6; }
15090 ubsan_cflags=$UBSAN_FLAGS
15091 ubsan_ldflags=$UBSAN_FLAGS
15094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15095 printf "%s\n" "no" >&6; }
15097 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15098 conftest$ac_exeext conftest.$ac_ext
15099 CFLAGS="${OLD_CFLAGS}"
15100 LDFLAGS="${OLD_LDFLAGS}"
15105 if test "$enable_ubsan" = "yes" && test "$have_ubsan" != "yes"; then
15106 as_fn_error $? "UBSAN not supported by compiler." "$LINENO" 5
15108 # Check whether --enable-addrsan was given.
15109 if test ${enable_addrsan+y}
15111 enableval=$enable_addrsan;
15116 if test "$enable_addrsan" = "yes" || test "$enable_addrsan" = "probe"; then
15117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if C compiler supports ADDRSAN" >&5
15118 printf %s "checking if C compiler supports ADDRSAN... " >&6; }
15119 OLD_CFLAGS="$CFLAGS"
15120 OLD_LDFLAGS="$LDFLAGS"
15121 ADDRSAN_FLAGS="-fsanitize=address"
15122 CFLAGS="$CFLAGS $ADDRSAN_FLAGS"
15123 LDFLAGS="$LDFLAGS $ADDRSAN_FLAGS"
15124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15125 /* end confdefs.h. */
15135 if ac_fn_c_try_link "$LINENO"
15137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15138 printf "%s\n" "yes" >&6; }
15139 addrsan_cflags=$ADDRSAN_FLAGS
15140 addrsan_ldflags=$ADDRSAN_FLAGS
15143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15144 printf "%s\n" "no" >&6; }
15146 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15147 conftest$ac_exeext conftest.$ac_ext
15148 CFLAGS="${OLD_CFLAGS}"
15149 LDFLAGS="${OLD_LDFLAGS}"
15154 if test "$enable_addrsan" = "yes" && test "$have_addrsan" != "yes"; then
15155 as_fn_error $? "ADDRSAN not supported by compiler." "$LINENO" 5
15157 # Check whether --enable-threadsan was given.
15158 if test ${enable_threadsan+y}
15160 enableval=$enable_threadsan;
15162 enable_threadsan=no
15165 if test "$enable_threadsan" = "yes" || test "$enable_threadsan" = "probe"; then
15166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if C compiler supports THREADSAN" >&5
15167 printf %s "checking if C compiler supports THREADSAN... " >&6; }
15168 OLD_CFLAGS="$CFLAGS"
15169 OLD_LDFLAGS="$LDFLAGS"
15170 THREADSAN_FLAGS="-fsanitize=thread"
15171 CFLAGS="$CFLAGS $THREADSAN_FLAGS"
15172 LDFLAGS="$LDFLAGS $THREADSAN_FLAGS"
15173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15174 /* end confdefs.h. */
15184 if ac_fn_c_try_link "$LINENO"
15186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15187 printf "%s\n" "yes" >&6; }
15188 threadsan_cflags=$THREADSAN_FLAGS
15189 threadsan_ldflags=$THREADSAN_FLAGS
15192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15193 printf "%s\n" "no" >&6; }
15195 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15196 conftest$ac_exeext conftest.$ac_ext
15197 CFLAGS="${OLD_CFLAGS}"
15198 LDFLAGS="${OLD_LDFLAGS}"
15203 if test "$enable_threadsan" = "yes" && test "$have_threadsan" != "yes"; then
15204 as_fn_error $? "THREADSAN not supported by compiler." "$LINENO" 5
15206 if test "$have_threadsan" = "yes" && test "$have_addrsan" = "yes"; then
15207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ADDRSAN and THREADSAN are not known to work together." >&5
15208 printf "%s\n" "$as_me: WARNING: ADDRSAN and THREADSAN are not known to work together." >&2;}
15211 # Check whether --enable-fuzzing was given.
15212 if test ${enable_fuzzing+y}
15214 enableval=$enable_fuzzing;
15219 if test "$enable_fuzzing" = "yes" || test "$enable_fuzzing" = "probe"; then
15227 ac_cpp='$CXXCPP $CPPFLAGS'
15228 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15229 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15230 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15231 if test -z "$CXX"; then
15232 if test -n "$CCC"; then
15235 if test -n "$ac_tool_prefix"; then
15236 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
15238 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
15239 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
15240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15241 printf %s "checking for $ac_word... " >&6; }
15242 if test ${ac_cv_prog_CXX+y}
15244 printf %s "(cached) " >&6
15246 if test -n "$CXX"; then
15247 ac_cv_prog_CXX="$CXX" # Let the user override the test.
15249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15250 for as_dir in $PATH
15253 case $as_dir in #(((
15256 *) as_dir=$as_dir/ ;;
15258 for ac_exec_ext in '' $ac_executable_extensions; do
15259 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15260 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
15261 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15270 CXX=$ac_cv_prog_CXX
15271 if test -n "$CXX"; then
15272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
15273 printf "%s\n" "$CXX" >&6; }
15275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15276 printf "%s\n" "no" >&6; }
15280 test -n "$CXX" && break
15283 if test -z "$CXX"; then
15285 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
15287 # Extract the first word of "$ac_prog", so it can be a program name with args.
15288 set dummy $ac_prog; ac_word=$2
15289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15290 printf %s "checking for $ac_word... " >&6; }
15291 if test ${ac_cv_prog_ac_ct_CXX+y}
15293 printf %s "(cached) " >&6
15295 if test -n "$ac_ct_CXX"; then
15296 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
15298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15299 for as_dir in $PATH
15302 case $as_dir in #(((
15305 *) as_dir=$as_dir/ ;;
15307 for ac_exec_ext in '' $ac_executable_extensions; do
15308 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15309 ac_cv_prog_ac_ct_CXX="$ac_prog"
15310 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15319 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
15320 if test -n "$ac_ct_CXX"; then
15321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
15322 printf "%s\n" "$ac_ct_CXX" >&6; }
15324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15325 printf "%s\n" "no" >&6; }
15329 test -n "$ac_ct_CXX" && break
15332 if test "x$ac_ct_CXX" = x; then
15335 case $cross_compiling:$ac_tool_warned in
15337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15338 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15339 ac_tool_warned=yes ;;
15347 # Provide some information about the compiler.
15348 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
15351 for ac_option in --version -v -V -qversion; do
15352 { { ac_try="$ac_compiler $ac_option >&5"
15353 case "(($ac_try" in
15354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15355 *) ac_try_echo=$ac_try;;
15357 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
15358 printf "%s\n" "$ac_try_echo"; } >&5
15359 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
15361 if test -s conftest.err; then
15363 ... rest of stderr output deleted ...
15364 10q' conftest.err >conftest.er1
15365 cat conftest.er1 >&5
15367 rm -f conftest.er1 conftest.err
15368 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15369 test $ac_status = 0; }
15372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5
15373 printf %s "checking whether the compiler supports GNU C++... " >&6; }
15374 if test ${ac_cv_cxx_compiler_gnu+y}
15376 printf %s "(cached) " >&6
15378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15379 /* end confdefs.h. */
15392 if ac_fn_cxx_try_compile "$LINENO"
15394 ac_compiler_gnu=yes
15398 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15399 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
15402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
15403 printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; }
15404 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15406 if test $ac_compiler_gnu = yes; then
15411 ac_test_CXXFLAGS=${CXXFLAGS+y}
15412 ac_save_CXXFLAGS=$CXXFLAGS
15413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
15414 printf %s "checking whether $CXX accepts -g... " >&6; }
15415 if test ${ac_cv_prog_cxx_g+y}
15417 printf %s "(cached) " >&6
15419 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
15420 ac_cxx_werror_flag=yes
15421 ac_cv_prog_cxx_g=no
15423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15424 /* end confdefs.h. */
15434 if ac_fn_cxx_try_compile "$LINENO"
15436 ac_cv_prog_cxx_g=yes
15439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15440 /* end confdefs.h. */
15450 if ac_fn_cxx_try_compile "$LINENO"
15454 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
15456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15457 /* end confdefs.h. */
15467 if ac_fn_cxx_try_compile "$LINENO"
15469 ac_cv_prog_cxx_g=yes
15471 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15473 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15475 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15476 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
15478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
15479 printf "%s\n" "$ac_cv_prog_cxx_g" >&6; }
15480 if test $ac_test_CXXFLAGS; then
15481 CXXFLAGS=$ac_save_CXXFLAGS
15482 elif test $ac_cv_prog_cxx_g = yes; then
15483 if test "$GXX" = yes; then
15489 if test "$GXX" = yes; then
15495 ac_prog_cxx_stdcxx=no
15496 if test x$ac_prog_cxx_stdcxx = xno
15498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5
15499 printf %s "checking for $CXX option to enable C++11 features... " >&6; }
15500 if test ${ac_cv_prog_cxx_cxx11+y}
15502 printf %s "(cached) " >&6
15504 ac_cv_prog_cxx_cxx11=no
15506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15507 /* end confdefs.h. */
15508 $ac_cxx_conftest_cxx11_program
15510 for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA
15512 CXX="$ac_save_CXX $ac_arg"
15513 if ac_fn_cxx_try_compile "$LINENO"
15515 ac_cv_prog_cxx_cxx11=$ac_arg
15517 rm -f core conftest.err conftest.$ac_objext conftest.beam
15518 test "x$ac_cv_prog_cxx_cxx11" != "xno" && break
15520 rm -f conftest.$ac_ext
15524 if test "x$ac_cv_prog_cxx_cxx11" = xno
15526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
15527 printf "%s\n" "unsupported" >&6; }
15529 if test "x$ac_cv_prog_cxx_cxx11" = x
15531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
15532 printf "%s\n" "none needed" >&6; }
15534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5
15535 printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; }
15536 CXX="$CXX $ac_cv_prog_cxx_cxx11"
15538 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11
15539 ac_prog_cxx_stdcxx=cxx11
15542 if test x$ac_prog_cxx_stdcxx = xno
15544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5
15545 printf %s "checking for $CXX option to enable C++98 features... " >&6; }
15546 if test ${ac_cv_prog_cxx_cxx98+y}
15548 printf %s "(cached) " >&6
15550 ac_cv_prog_cxx_cxx98=no
15552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15553 /* end confdefs.h. */
15554 $ac_cxx_conftest_cxx98_program
15556 for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA
15558 CXX="$ac_save_CXX $ac_arg"
15559 if ac_fn_cxx_try_compile "$LINENO"
15561 ac_cv_prog_cxx_cxx98=$ac_arg
15563 rm -f core conftest.err conftest.$ac_objext conftest.beam
15564 test "x$ac_cv_prog_cxx_cxx98" != "xno" && break
15566 rm -f conftest.$ac_ext
15570 if test "x$ac_cv_prog_cxx_cxx98" = xno
15572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
15573 printf "%s\n" "unsupported" >&6; }
15575 if test "x$ac_cv_prog_cxx_cxx98" = x
15577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
15578 printf "%s\n" "none needed" >&6; }
15580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5
15581 printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; }
15582 CXX="$CXX $ac_cv_prog_cxx_cxx98"
15584 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98
15585 ac_prog_cxx_stdcxx=cxx98
15590 ac_cpp='$CPP $CPPFLAGS'
15591 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15592 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15593 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if C compiler supports fuzzing sanitizer" >&5
15596 printf %s "checking if C compiler supports fuzzing sanitizer... " >&6; }
15598 ac_cpp='$CXXCPP $CPPFLAGS'
15599 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15600 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15601 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15603 OLD_CXXFLAGS="$CXXFLAGS"
15604 OLD_LDFLAGS="$LDFLAGS"
15605 FUZZER_FLAGS="-fsanitize=fuzzer"
15606 CXXFLAGS="$CXXFLAGS $FUZZER_FLAGS"
15607 LDFLAGS="$LDFLAGS $FUZZER_FLAGS"
15609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15610 /* end confdefs.h. */
15612 #include <stddef.h>
15613 #include <stdint.h>
15623 if ac_fn_cxx_try_compile "$LINENO"
15625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15626 printf "%s\n" "yes" >&6; }
15627 fuzzer_cflags=$FUZZER_FLAGS
15628 fuzzer_ldflags=$FUZZER_FLAGS
15632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15633 printf "%s\n" "no" >&6; }
15634 as_fn_error $? "fuzzing requested but not available" "$LINENO" 5
15636 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15637 CXXFLAGS="${OLD_CXXFLAGS}"
15638 LDFLAGS="${OLD_LDFLAGS}"
15640 ac_cpp='$CPP $CPPFLAGS'
15641 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15642 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15643 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15649 if test "$enable_fuzzer" = "yes" && test "$have_fuzzer" != "yes"; then
15650 as_fn_error $? "Fuzzing not supported by compiler." "$LINENO" 5
15668 E2SCRUB_CMT="$LINUX_CMT"
15671 linux* | gnu* | k*bsd*-gnu)
15672 if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
15674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, root_prefix defaults to ''" >&5
15675 printf "%s\n" "On $host_os systems, root_prefix defaults to ''" >&6; }
15680 linux* | gnu* | k*bsd*-gnu)
15681 if test "$prefix" = NONE ; then
15683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, prefix defaults to /usr" >&5
15684 printf "%s\n" "On $host_os systems, prefix defaults to /usr" >&6; }
15685 if test "$mandir" = '${prefix}/man' ; then
15686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ...and mandir defaults to /usr/share/man" >&5
15687 printf "%s\n" "...and mandir defaults to /usr/share/man" >&6; }
15688 mandir=/usr/share/man
15693 if test "$root_prefix" = NONE ; then
15694 if test "$prefix" = NONE ; then
15695 root_prefix="$ac_default_prefix"
15697 root_prefix="$prefix"
15699 root_bindir=$bindir
15700 root_sbindir=$sbindir
15701 root_libdir=$libdir
15702 root_sysconfdir=$sysconfdir
15704 root_bindir='${root_prefix}/bin'
15705 root_sbindir='${root_prefix}/sbin'
15706 root_libdir='${root_prefix}/lib'
15707 root_sysconfdir='${root_prefix}/etc'
15709 if test "$bindir" != '${exec_prefix}/bin'; then
15710 root_bindir=$bindir
15711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Setting root_bindir to $root_bindir" >&5
15712 printf "%s\n" "Setting root_bindir to $root_bindir" >&6; }
15714 if test "$sbindir" != '${exec_prefix}/sbin'; then
15715 root_sbindir=$sbindir
15716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Setting root_sbindir to $root_sbindir" >&5
15717 printf "%s\n" "Setting root_sbindir to $root_sbindir" >&6; }
15719 if test "$libdir" != '${exec_prefix}/lib'; then
15720 root_libdir=$libdir
15721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Setting root_libdir to $root_libdir" >&5
15722 printf "%s\n" "Setting root_libdir to $root_libdir" >&6; }
15724 if test "$sysconfdir" != '${prefix}/etc'; then
15725 root_sysconfdir=$sysconfdir
15726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Setting root_sysconfdir to $root_sysconfdir" >&5
15727 printf "%s\n" "Setting root_sysconfdir to $root_sysconfdir" >&6; }
15735 # Check whether --with-multiarch was given.
15736 if test ${with_multiarch+y}
15738 withval=$with_multiarch; if test "$withval" = "lib64"; then
15742 libdir=$libdir/$withval
15743 root_libdir=$root_libdir/$withval
15748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we can link with -static" >&5
15749 printf %s "checking whether we can link with -static... " >&6; }
15750 if test ${ac_cv_e2fsprogs_use_static+y}
15752 printf %s "(cached) " >&6
15754 SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS_STATIC -static"
15755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15756 /* end confdefs.h. */
15766 if ac_fn_c_try_link "$LINENO"
15768 ac_cv_e2fsprogs_use_static=yes
15770 ac_cv_e2fsprogs_use_static=no
15772 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15773 conftest$ac_exeext conftest.$ac_ext
15774 LDFLAGS=$SAVE_LDFLAGS
15779 ac_cv_e2fsprogs_use_static=no
15782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_e2fsprogs_use_static" >&5
15783 printf "%s\n" "$ac_cv_e2fsprogs_use_static" >&6; }
15784 if test $ac_cv_e2fsprogs_use_static = yes; then
15785 LDFLAGS_STATIC="$LDFLAGS_STATIC -static"
15790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Using Apple Darwin / GNU libintl workaround" >&5
15791 printf "%s\n" "Using Apple Darwin / GNU libintl workaround" >&6; }
15793 printf "%s\n" "#define _INTL_REDIRECT_MACROS 1" >>confdefs.h
15797 if test "$cross_compiling" = yes ; then
15800 DO_TEST_SUITE=check
15803 INCLUDES='-I. -I$(top_builddir)/lib -I$(top_srcdir)/lib'
15804 if test -n "$CPPFLAGS" ; then
15805 INCLUDES="$INCLUDES $CPPFLAGS"
15807 if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
15808 INCLUDES=$INCLUDES' -I$(top_builddir)/intl -I$(top_srcdir)/intl'
15810 if test -n "$WITH_DIET_LIBC" ; then
15811 INCLUDES="$INCLUDES -D_REENTRANT"
15815 INCLUDES=$INCLUDES' -I$(top_srcdir)/include/mingw'
15819 if test $cross_compiling = no; then
15820 BUILD_CFLAGS="$CFLAGS $CPPFLAGS $INCLUDES -DHAVE_CONFIG_H"
15821 BUILD_LDFLAGS="$LDFLAGS"
15825 CFLAGS_SHLIB=${CFLAGS_SHLIB:-$CFLAGS}
15826 CFLAGS_STLIB=${CFLAGS_STLIB:-$CFLAGS}
15827 LDFLAGS_SHLIB=${LDFLAGS_SHLIB:-$LDFLAGS}
15833 # Check whether --with-udev_rules_dir was given.
15834 if test ${with_udev_rules_dir+y}
15836 withval=$with_udev_rules_dir;
15838 with_udev_rules_dir=yes
15841 if test "x${with_udev_rules_dir}" != "xno"
15844 if test "x${with_udev_rules_dir}" = "xyes"
15849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for udev" >&5
15850 printf %s "checking for udev... " >&6; }
15852 if test -n "$udev_CFLAGS"; then
15853 pkg_cv_udev_CFLAGS="$udev_CFLAGS"
15854 elif test -n "$PKG_CONFIG"; then
15855 if test -n "$PKG_CONFIG" && \
15856 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"udev\""; } >&5
15857 ($PKG_CONFIG --exists --print-errors "udev") 2>&5
15859 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15860 test $ac_status = 0; }; then
15861 pkg_cv_udev_CFLAGS=`$PKG_CONFIG --cflags "udev" 2>/dev/null`
15862 test "x$?" != "x0" && pkg_failed=yes
15869 if test -n "$udev_LIBS"; then
15870 pkg_cv_udev_LIBS="$udev_LIBS"
15871 elif test -n "$PKG_CONFIG"; then
15872 if test -n "$PKG_CONFIG" && \
15873 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"udev\""; } >&5
15874 ($PKG_CONFIG --exists --print-errors "udev") 2>&5
15876 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15877 test $ac_status = 0; }; then
15878 pkg_cv_udev_LIBS=`$PKG_CONFIG --libs "udev" 2>/dev/null`
15879 test "x$?" != "x0" && pkg_failed=yes
15889 if test $pkg_failed = yes; then
15890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15891 printf "%s\n" "no" >&6; }
15893 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15894 _pkg_short_errors_supported=yes
15896 _pkg_short_errors_supported=no
15898 if test $_pkg_short_errors_supported = yes; then
15899 udev_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "udev" 2>&1`
15901 udev_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "udev" 2>&1`
15903 # Put the nasty error message in config.log where it belongs
15904 echo "$udev_PKG_ERRORS" >&5
15907 with_udev_rules_dir=""
15909 elif test $pkg_failed = untried; then
15910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15911 printf "%s\n" "no" >&6; }
15913 with_udev_rules_dir=""
15916 udev_CFLAGS=$pkg_cv_udev_CFLAGS
15917 udev_LIBS=$pkg_cv_udev_LIBS
15918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15919 printf "%s\n" "yes" >&6; }
15921 with_udev_rules_dir="$($PKG_CONFIG --variable=udevdir udev)/rules.d"
15926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for udev rules dir" >&5
15927 printf %s "checking for udev rules dir... " >&6; }
15928 pkg_udev_rules_dir="${with_udev_rules_dir}"
15929 if test -n "${pkg_udev_rules_dir}"
15932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${pkg_udev_rules_dir}" >&5
15933 printf "%s\n" "${pkg_udev_rules_dir}" >&6; }
15938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15939 printf "%s\n" "no" >&6; }
15946 have_udev="disabled"
15953 # Check whether --with-crond_dir was given.
15954 if test ${with_crond_dir+y}
15956 withval=$with_crond_dir;
15961 if test "x${with_crond_dir}" != "xno"
15964 if test "x${with_crond_dir}" = "xyes"
15967 if test -d "/etc/cron.d"
15969 with_crond_dir="/etc/cron.d"
15971 have_crond="no"; with_crond_dir=""
15975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for system crontab dir" >&5
15976 printf %s "checking for system crontab dir... " >&6; }
15977 crond_dir="${with_crond_dir}"
15978 if test -n "${crond_dir}"
15981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${crond_dir}" >&5
15982 printf "%s\n" "${crond_dir}" >&6; }
15987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15988 printf "%s\n" "no" >&6; }
15995 have_crond="disabled"
16002 # Check whether --with-systemd_unit_dir was given.
16003 if test ${with_systemd_unit_dir+y}
16005 withval=$with_systemd_unit_dir;
16007 with_systemd_unit_dir=yes
16010 if test "x${with_systemd_unit_dir}" != "xno"
16013 if test "x${with_systemd_unit_dir}" = "xyes"
16018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for systemd" >&5
16019 printf %s "checking for systemd... " >&6; }
16021 if test -n "$systemd_CFLAGS"; then
16022 pkg_cv_systemd_CFLAGS="$systemd_CFLAGS"
16023 elif test -n "$PKG_CONFIG"; then
16024 if test -n "$PKG_CONFIG" && \
16025 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"systemd\""; } >&5
16026 ($PKG_CONFIG --exists --print-errors "systemd") 2>&5
16028 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16029 test $ac_status = 0; }; then
16030 pkg_cv_systemd_CFLAGS=`$PKG_CONFIG --cflags "systemd" 2>/dev/null`
16031 test "x$?" != "x0" && pkg_failed=yes
16038 if test -n "$systemd_LIBS"; then
16039 pkg_cv_systemd_LIBS="$systemd_LIBS"
16040 elif test -n "$PKG_CONFIG"; then
16041 if test -n "$PKG_CONFIG" && \
16042 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"systemd\""; } >&5
16043 ($PKG_CONFIG --exists --print-errors "systemd") 2>&5
16045 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16046 test $ac_status = 0; }; then
16047 pkg_cv_systemd_LIBS=`$PKG_CONFIG --libs "systemd" 2>/dev/null`
16048 test "x$?" != "x0" && pkg_failed=yes
16058 if test $pkg_failed = yes; then
16059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16060 printf "%s\n" "no" >&6; }
16062 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16063 _pkg_short_errors_supported=yes
16065 _pkg_short_errors_supported=no
16067 if test $_pkg_short_errors_supported = yes; then
16068 systemd_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "systemd" 2>&1`
16070 systemd_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "systemd" 2>&1`
16072 # Put the nasty error message in config.log where it belongs
16073 echo "$systemd_PKG_ERRORS" >&5
16076 with_systemd_unit_dir=""
16078 elif test $pkg_failed = untried; then
16079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16080 printf "%s\n" "no" >&6; }
16082 with_systemd_unit_dir=""
16085 systemd_CFLAGS=$pkg_cv_systemd_CFLAGS
16086 systemd_LIBS=$pkg_cv_systemd_LIBS
16087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16088 printf "%s\n" "yes" >&6; }
16090 with_systemd_unit_dir="$($PKG_CONFIG --variable=systemdsystemunitdir systemd)"
16096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for systemd system unit dir" >&5
16097 printf %s "checking for systemd system unit dir... " >&6; }
16098 systemd_system_unit_dir="${with_systemd_unit_dir}"
16099 if test -n "${systemd_system_unit_dir}"
16102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${systemd_system_unit_dir}" >&5
16103 printf "%s\n" "${systemd_system_unit_dir}" >&6; }
16108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16109 printf "%s\n" "no" >&6; }
16116 have_systemd="disabled"
16124 OS_IO_FILE=windows_io
16132 test -d lib || mkdir lib
16133 test -d include || mkdir include
16134 test -d include/linux || mkdir include/linux
16135 test -d include/asm || mkdir include/asm
16136 if test -z "$UUID_CMT" ; then
16137 uuid_out_list="lib/uuid/Makefile lib/uuid/uuid.pc \
16138 lib/uuid/uuid_types.h"
16140 if test -z "$BLKID_CMT" ; then
16141 blkid_out_list="lib/blkid/Makefile lib/blkid/blkid.pc \
16142 lib/blkid/blkid_types.h"
16144 for i in MCONFIG Makefile \
16145 util/Makefile util/subst.conf util/gen-tarball util/install-symlink \
16146 lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \
16147 lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \
16148 $uuid_out_list $blkid_out_list lib/support/Makefile \
16149 lib/ss/ss.pc lib/et/com_err.pc lib/e2p/e2p.pc lib/ext2fs/ext2fs.pc \
16150 misc/Makefile ext2ed/Makefile e2fsck/Makefile \
16151 debugfs/Makefile tests/Makefile tests/progs/Makefile \
16152 tests/fuzz/Makefile resize/Makefile doc/Makefile \
16153 po/Makefile.in scrub/Makefile; do
16154 if test -d `dirname ${srcdir}/$i` ; then
16155 outlist="$outlist $i"
16158 ac_config_files="$ac_config_files $outlist"
16160 cat >confcache <<\_ACEOF
16161 # This file is a shell script that caches the results of configure
16162 # tests run on this system so they can be shared between configure
16163 # scripts and configure runs, see configure's option --config-cache.
16164 # It is not useful on other systems. If it contains results you don't
16165 # want to keep, you may remove or edit it.
16167 # config.status only pays attention to the cache file if you give it
16168 # the --recheck option to rerun configure.
16170 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16171 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16172 # following values.
16176 # The following way of writing the cache mishandles newlines in values,
16177 # but we know of no workaround that is simple, portable, and efficient.
16178 # So, we kill variables containing newlines.
16179 # Ultrix sh set writes to stderr and can't be redirected directly,
16180 # and sets the high bit in the cache file unless we assign to the vars.
16182 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16183 eval ac_val=\$$ac_var
16187 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16188 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16191 _ | IFS | as_nl) ;; #(
16192 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16193 *) { eval $ac_var=; unset $ac_var;} ;;
16199 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16200 *${as_nl}ac_space=\ *)
16201 # `set' does not quote correctly, so add quotes: double-quote
16202 # substitution turns \\\\ into \\, and sed turns \\ into \.
16205 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16208 # `set' quotes correctly as required by POSIX, so do not add quotes.
16209 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16218 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
16220 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16222 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16223 if test -w "$cache_file"; then
16224 if test "x$cache_file" != "x/dev/null"; then
16225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16226 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
16227 if test ! -f "$cache_file" || test -h "$cache_file"; then
16228 cat confcache >"$cache_file"
16230 case $cache_file in #(
16232 mv -f confcache "$cache_file"$$ &&
16233 mv -f "$cache_file"$$ "$cache_file" ;; #(
16235 mv -f confcache "$cache_file" ;;
16240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16241 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
16246 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16247 # Let make expand exec_prefix.
16248 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16250 DEFS=-DHAVE_CONFIG_H
16255 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16256 # 1. Remove the extension, and $U if already installed.
16257 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16258 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
16259 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16260 # will be set to the directory where LIBOBJS objects are built.
16261 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16262 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16264 LIBOBJS=$ac_libobjs
16266 LTLIBOBJS=$ac_ltlibobjs
16271 : "${CONFIG_STATUS=./config.status}"
16273 ac_clean_files_save=$ac_clean_files
16274 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16276 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
16278 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16280 # Generated by $as_me.
16281 # Run this file to recreate the current configuration.
16282 # Compiler output produced by configure, useful for debugging
16283 # configure, is in config.log if it exists.
16286 ac_cs_recheck=false
16289 SHELL=\${CONFIG_SHELL-$SHELL}
16292 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16293 ## -------------------- ##
16294 ## M4sh Initialization. ##
16295 ## -------------------- ##
16297 # Be more Bourne compatible
16298 DUALCASE=1; export DUALCASE # for MKS sh
16300 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
16304 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16305 # is contrary to our usage. Disable this feature.
16306 alias -g '${1+"$@"}'='"$@"'
16307 setopt NO_GLOB_SUBST
16309 case `(set -o) 2>/dev/null` in #(
16319 # Reset variables that may have inherited troublesome values from
16322 # IFS needs to be set, to space, tab, and newline, in precisely that order.
16323 # (If _AS_PATH_WALK were called with IFS unset, it would have the
16324 # side effect of setting IFS to empty, thus disabling word splitting.)
16325 # Quoting is to prevent editors from complaining about space-tab.
16335 # Ensure predictable behavior from utilities with locale-dependent output.
16341 # We cannot yet rely on "unset" to work, but we need these variables
16342 # to be unset--not just set to an empty or harmless value--now, to
16343 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
16344 # also avoids known problems related to "unset" and subshell syntax
16345 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
16346 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
16347 do eval test \${$as_var+y} \
16348 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16351 # Ensure that fds 0, 1, and 2 are open.
16352 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
16353 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
16354 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
16356 # The user is always right.
16357 if ${PATH_SEPARATOR+false} :; then
16359 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16360 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16366 # Find who we are. Look in the path if we contain no directory separator.
16369 *[\\/]* ) as_myself=$0 ;;
16370 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16371 for as_dir in $PATH
16374 case $as_dir in #(((
16377 *) as_dir=$as_dir/ ;;
16379 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
16385 # We did not find ourselves, most probably we were run as `sh COMMAND'
16386 # in which case we are not to be found in the path.
16387 if test "x$as_myself" = x; then
16390 if test ! -f "$as_myself"; then
16391 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16397 # as_fn_error STATUS ERROR [LINENO LOG_FD]
16398 # ----------------------------------------
16399 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16400 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16401 # script with STATUS, using 1 if that was 0.
16404 as_status=$1; test $as_status -eq 0 && as_status=1
16406 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16407 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16409 printf "%s\n" "$as_me: error: $2" >&2
16410 as_fn_exit $as_status
16415 # as_fn_set_status STATUS
16416 # -----------------------
16417 # Set $? to STATUS, without forking.
16418 as_fn_set_status ()
16421 } # as_fn_set_status
16423 # as_fn_exit STATUS
16424 # -----------------
16425 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16429 as_fn_set_status $1
16435 # Portably unset VAR.
16438 { eval $1=; unset $1;}
16440 as_unset=as_fn_unset
16442 # as_fn_append VAR VALUE
16443 # ----------------------
16444 # Append the text in VALUE to the end of the definition contained in VAR. Take
16445 # advantage of any shell optimizations that allow amortized linear growth over
16446 # repeated appends, instead of the typical quadratic growth present in naive
16448 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
16450 eval 'as_fn_append ()
16461 # as_fn_arith ARG...
16462 # ------------------
16463 # Perform arithmetic evaluation on the ARGs, and store the result in the
16464 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16465 # must be portable across $(()) and expr.
16466 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
16468 eval 'as_fn_arith ()
16475 as_val=`expr "$@" || test $? -eq 1`
16480 if expr a : '\(a\)' >/dev/null 2>&1 &&
16481 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16487 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16488 as_basename=basename
16493 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16499 as_me=`$as_basename -- "$0" ||
16500 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16501 X"$0" : 'X\(//\)$' \| \
16502 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16503 printf "%s\n" X/"$0" |
16504 sed '/^.*\/\([^/][^/]*\)\/*$/{
16518 # Avoid depending upon Character Ranges.
16519 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16520 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16521 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16522 as_cr_digits='0123456789'
16523 as_cr_alnum=$as_cr_Letters$as_cr_digits
16526 # Determine whether it's possible to make 'echo' print without a newline.
16527 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
16528 # for compatibility with existing Makefiles.
16529 ECHO_C= ECHO_N= ECHO_T=
16530 case `echo -n x` in #(((((
16532 case `echo 'xy\c'` in
16533 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16535 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16542 # For backward compatibility with old third-party macros, we provide
16543 # the shell variables $as_echo and $as_echo_n. New code should use
16544 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
16545 as_echo='printf %s\n'
16546 as_echo_n='printf %s'
16548 rm -f conf$$ conf$$.exe conf$$.file
16549 if test -d conf$$.dir; then
16550 rm -f conf$$.dir/conf$$.file
16553 mkdir conf$$.dir 2>/dev/null
16555 if (echo >conf$$.file) 2>/dev/null; then
16556 if ln -s conf$$.file conf$$ 2>/dev/null; then
16558 # ... but there are two gotchas:
16559 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16560 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16561 # In both cases, we have to default to `cp -pR'.
16562 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16564 elif ln conf$$.file conf$$ 2>/dev/null; then
16572 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16573 rmdir conf$$.dir 2>/dev/null
16578 # Create "$as_dir" as a directory, including parents if necessary.
16583 -*) as_dir=./$as_dir;;
16585 test -d "$as_dir" || eval $as_mkdir_p || {
16589 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16590 *) as_qdir=$as_dir;;
16592 as_dirs="'$as_qdir' $as_dirs"
16593 as_dir=`$as_dirname -- "$as_dir" ||
16594 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16595 X"$as_dir" : 'X\(//\)[^/]' \| \
16596 X"$as_dir" : 'X\(//\)$' \| \
16597 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16598 printf "%s\n" X"$as_dir" |
16599 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16603 /^X\(\/\/\)[^/].*/{
16616 test -d "$as_dir" && break
16618 test -z "$as_dirs" || eval "mkdir $as_dirs"
16619 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16623 if mkdir -p . 2>/dev/null; then
16624 as_mkdir_p='mkdir -p "$as_dir"'
16626 test -d ./-p && rmdir ./-p
16631 # as_fn_executable_p FILE
16632 # -----------------------
16633 # Test if FILE is an executable regular file.
16634 as_fn_executable_p ()
16636 test -f "$1" && test -x "$1"
16637 } # as_fn_executable_p
16638 as_test_x='test -x'
16639 as_executable_p=as_fn_executable_p
16641 # Sed expression to map a string onto a valid CPP name.
16642 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16644 # Sed expression to map a string onto a valid variable name.
16645 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16649 ## ----------------------------------- ##
16650 ## Main body of $CONFIG_STATUS script. ##
16651 ## ----------------------------------- ##
16653 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16655 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16656 # Save the log message, to keep $0 and so on meaningful, and to
16657 # report actual input values of CONFIG_FILES etc. instead of their
16658 # values after options handling.
16660 This file was extended by $as_me, which was
16661 generated by GNU Autoconf 2.71. Invocation command line was
16663 CONFIG_FILES = $CONFIG_FILES
16664 CONFIG_HEADERS = $CONFIG_HEADERS
16665 CONFIG_LINKS = $CONFIG_LINKS
16666 CONFIG_COMMANDS = $CONFIG_COMMANDS
16669 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16674 case $ac_config_files in *"
16675 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16678 case $ac_config_headers in *"
16679 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16683 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16684 # Files that config.status was made for.
16685 config_files="$ac_config_files"
16686 config_headers="$ac_config_headers"
16687 config_commands="$ac_config_commands"
16691 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16693 \`$as_me' instantiates files and other configuration actions
16694 from templates according to the current configuration. Unless the files
16695 and actions are specified as TAGs, all are instantiated by default.
16697 Usage: $0 [OPTION]... [TAG]...
16699 -h, --help print this help, then exit
16700 -V, --version print version number and configuration settings, then exit
16701 --config print configuration, then exit
16702 -q, --quiet, --silent
16703 do not print progress messages
16704 -d, --debug don't remove temporary files
16705 --recheck update $as_me by reconfiguring in the same conditions
16706 --file=FILE[:TEMPLATE]
16707 instantiate the configuration file FILE
16708 --header=FILE[:TEMPLATE]
16709 instantiate the configuration header FILE
16711 Configuration files:
16714 Configuration headers:
16717 Configuration commands:
16720 Report bugs to the package provider."
16723 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
16724 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
16725 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16726 ac_cs_config='$ac_cs_config_escaped'
16729 configured by $0, generated by GNU Autoconf 2.71,
16730 with options \\"\$ac_cs_config\\"
16732 Copyright (C) 2021 Free Software Foundation, Inc.
16733 This config.status script is free software; the Free Software Foundation
16734 gives unlimited permission to copy, distribute and modify it."
16741 test -n "\$AWK" || AWK=awk
16744 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16745 # The default lists apply if the user does not specify any file.
16751 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16752 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16756 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16768 # Handling of the options.
16769 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16771 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16772 printf "%s\n" "$ac_cs_version"; exit ;;
16773 --config | --confi | --conf | --con | --co | --c )
16774 printf "%s\n" "$ac_cs_config"; exit ;;
16775 --debug | --debu | --deb | --de | --d | -d )
16777 --file | --fil | --fi | --f )
16780 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16781 '') as_fn_error $? "missing file argument" ;;
16783 as_fn_append CONFIG_FILES " '$ac_optarg'"
16784 ac_need_defaults=false;;
16785 --header | --heade | --head | --hea )
16788 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16790 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16791 ac_need_defaults=false;;
16793 # Conflict between --help and --header
16794 as_fn_error $? "ambiguous option: \`$1'
16795 Try \`$0 --help' for more information.";;
16796 --help | --hel | -h )
16797 printf "%s\n" "$ac_cs_usage"; exit ;;
16798 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16799 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16802 # This is an error.
16803 -*) as_fn_error $? "unrecognized option: \`$1'
16804 Try \`$0 --help' for more information." ;;
16806 *) as_fn_append ac_config_targets " $1"
16807 ac_need_defaults=false ;;
16813 ac_configure_extra_args=
16815 if $ac_cs_silent; then
16817 ac_configure_extra_args="$ac_configure_extra_args --silent"
16821 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16822 if \$ac_cs_recheck; then
16823 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16825 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
16826 CONFIG_SHELL='$SHELL'
16827 export CONFIG_SHELL
16832 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16836 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16837 ## Running $as_me. ##
16839 printf "%s\n" "$ac_log"
16843 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16847 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
16848 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS.
16849 OBSOLETE_ALL_LINGUAS="$ALL_LINGUAS"
16850 # Capture the value of LINGUAS because we need it to compute CATALOGS.
16851 LINGUAS="${LINGUAS-%UNSET%}"
16856 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16858 # Handling of arguments.
16859 for ac_config_target in $ac_config_targets
16861 case $ac_config_target in
16862 "lib/config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/config.h" ;;
16863 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
16864 "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;;
16866 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16871 # If the user did not use the arguments to specify the items to instantiate,
16872 # then the envvar interface is used. Set only those that are not.
16873 # We use the long form for the default assignment because of an extremely
16874 # bizarre bug on SunOS 4.1.3.
16875 if $ac_need_defaults; then
16876 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
16877 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
16878 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
16881 # Have a temporary directory for convenience. Make it in the build tree
16882 # simply because there is no reason against having it here, and in addition,
16883 # creating and moving files from /tmp can sometimes cause problems.
16884 # Hook for its removal unless debugging.
16885 # Note that there is a small window in which the directory will not be cleaned:
16886 # after its creation but before its name has been assigned to `$tmp'.
16890 trap 'exit_status=$?
16891 : "${ac_tmp:=$tmp}"
16892 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16894 trap 'as_fn_exit 1' 1 2 13 15
16896 # Create a (secure) tmp directory for tmp files.
16899 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16903 tmp=./conf$$-$RANDOM
16904 (umask 077 && mkdir "$tmp")
16905 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16908 # Set up the scripts for CONFIG_FILES section.
16909 # No need to generate them if there are no CONFIG_FILES.
16910 # This happens for instance with `./config.status config.h'.
16911 if test -n "$CONFIG_FILES"; then
16913 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
16914 ac_cs_awk_getline=:
16915 ac_cs_awk_pipe_init=
16916 ac_cs_awk_read_file='
16917 while ((getline aline < (F[key])) > 0)
16920 ac_cs_awk_pipe_fini=
16922 ac_cs_awk_getline=false
16923 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
16924 ac_cs_awk_read_file='
16926 print "cat " F[key] " &&"
16927 '$ac_cs_awk_pipe_init
16928 # The final `:' finishes the AND list.
16929 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
16931 ac_cr=`echo X | tr X '\015'`
16932 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16933 # But we know of no other shell where ac_cr would be empty at this
16934 # point, so we can use a bashism as a fallback.
16935 if test "x$ac_cr" = x; then
16936 eval ac_cr=\$\'\\r\'
16938 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16939 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16942 ac_cs_awk_cr=$ac_cr
16945 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16948 # Create commands to substitute file output variables.
16950 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
16951 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
16952 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
16955 } >conf$$files.sh &&
16956 . ./conf$$files.sh ||
16957 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16958 rm -f conf$$files.sh
16961 echo "cat >conf$$subs.awk <<_ACEOF" &&
16962 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16964 } >conf$$subs.sh ||
16965 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16966 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16968 for ac_last_try in false false false false false :; do
16969 . ./conf$$subs.sh ||
16970 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16972 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16973 if test $ac_delim_n = $ac_delim_num; then
16975 elif $ac_last_try; then
16976 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16978 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16981 rm -f conf$$subs.sh
16983 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16984 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16988 s/^/S["/; s/!.*/"]=/
16998 s/\(.\{148\}\)..*/\1/
17000 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17005 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17012 s/\(.\{148\}\)..*/\1/
17014 s/["\\]/\\&/g; s/^/"/; s/$/"/
17018 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17023 ' <conf$$subs.awk | sed '
17028 ' >>$CONFIG_STATUS || ac_write_fail=1
17029 rm -f conf$$subs.awk
17030 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17032 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17033 for (key in S) S_is_set[key] = 1
17035 \$ac_cs_awk_pipe_init
17039 nfields = split(line, field, "@")
17041 len = length(field[1])
17042 for (i = 2; i < nfields; i++) {
17044 keylen = length(key)
17045 if (S_is_set[key]) {
17047 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17048 len += length(value) + length(field[++i])
17053 if (nfields == 3 && !substed) {
17055 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
17056 \$ac_cs_awk_read_file
17062 \$ac_cs_awk_pipe_fini
17065 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17066 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17067 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17070 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17071 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17074 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17075 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17076 # trailing colons and then remove the whole line if VPATH becomes empty
17077 # (actually we leave an empty line to preserve line numbers).
17078 if test "x$srcdir" = x.; then
17079 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
17097 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17098 fi # test -n "$CONFIG_FILES"
17100 # Set up the scripts for CONFIG_HEADERS section.
17101 # No need to generate them if there are no CONFIG_HEADERS.
17102 # This happens for instance with `./config.status Makefile'.
17103 if test -n "$CONFIG_HEADERS"; then
17104 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
17108 # Transform confdefs.h into an awk script `defines.awk', embedded as
17109 # here-document in config.status, that substitutes the proper values into
17110 # config.h.in to produce config.h.
17112 # Create a delimiter string that does not exist in confdefs.h, to ease
17113 # handling of long lines.
17115 for ac_last_try in false false :; do
17116 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
17117 if test -z "$ac_tt"; then
17119 elif $ac_last_try; then
17120 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17122 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17126 # For the awk script, D is an array of macro values keyed by name,
17127 # likewise P contains macro parameters if any. Preserve backslash
17128 # newline sequences.
17130 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17132 s/.\{148\}/&'"$ac_delim"'/g
17135 s/^[ ]*#[ ]*define[ ][ ]*/ /
17142 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17144 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17148 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17149 D["\1"]=" \3\\\\\\n"\\/p
17151 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17156 s/.\{148\}/&'"$ac_delim"'/g
17161 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17164 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17166 ' <confdefs.h | sed '
17167 s/'"$ac_delim"'/"\\\
17168 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17170 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17171 for (key in D) D_is_set[key] = 1
17174 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17176 split(line, arg, " ")
17177 if (arg[1] == "#") {
17181 defundef = substr(arg[1], 2)
17184 split(mac1, mac2, "(") #)
17186 prefix = substr(line, 1, index(line, defundef) - 1)
17187 if (D_is_set[macro]) {
17188 # Preserve the white space surrounding the "#".
17189 print prefix "define", macro P[macro] D[macro]
17192 # Replace #undef with comments. This is necessary, for example,
17193 # in the case of _POSIX_SOURCE, which is predefined and required
17194 # on some systems where configure will not decide to define it.
17195 if (defundef == "undef") {
17196 print "/*", prefix defundef, macro, "*/"
17204 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17205 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17206 fi # test -n "$CONFIG_HEADERS"
17209 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17214 :[FHLC]) ac_mode=$ac_tag; continue;;
17216 case $ac_mode$ac_tag in
17218 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17219 :[FH]-) ac_tag=-:-;;
17220 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17237 -) ac_f="$ac_tmp/stdin";;
17238 *) # Look for the file first in the build tree, then in the source tree
17239 # (if the path is not absolute). The absolute path cannot be DOS-style,
17240 # because $ac_f cannot contain `:'.
17244 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17246 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17248 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17249 as_fn_append ac_file_inputs " '$ac_f'"
17252 # Let's still pretend it is `configure' which instantiates (i.e., don't
17253 # use $as_me), people would be surprised to read:
17254 # /* config.h. Generated by config.status. */
17255 configure_input='Generated from '`
17256 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17258 if test x"$ac_file" != x-; then
17259 configure_input="$ac_file. $configure_input"
17260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17261 printf "%s\n" "$as_me: creating $ac_file" >&6;}
17263 # Neutralize special characters interpreted by sed in replacement strings.
17264 case $configure_input in #(
17265 *\&* | *\|* | *\\* )
17266 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
17267 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17268 *) ac_sed_conf_input=$configure_input;;
17272 *:-:* | *:-) cat >"$ac_tmp/stdin" \
17273 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17278 ac_dir=`$as_dirname -- "$ac_file" ||
17279 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17280 X"$ac_file" : 'X\(//\)[^/]' \| \
17281 X"$ac_file" : 'X\(//\)$' \| \
17282 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17283 printf "%s\n" X"$ac_file" |
17284 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17288 /^X\(\/\/\)[^/].*/{
17301 as_dir="$ac_dir"; as_fn_mkdir_p
17305 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17307 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
17308 # A ".." for each directory in $ac_dir_suffix.
17309 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17310 case $ac_top_builddir_sub in
17311 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17312 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17315 ac_abs_top_builddir=$ac_pwd
17316 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17317 # for backward compatibility:
17318 ac_top_builddir=$ac_top_build_prefix
17321 .) # We are building in place.
17323 ac_top_srcdir=$ac_top_builddir_sub
17324 ac_abs_top_srcdir=$ac_pwd ;;
17325 [\\/]* | ?:[\\/]* ) # Absolute name.
17326 ac_srcdir=$srcdir$ac_dir_suffix;
17327 ac_top_srcdir=$srcdir
17328 ac_abs_top_srcdir=$srcdir ;;
17329 *) # Relative name.
17330 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17331 ac_top_srcdir=$ac_top_build_prefix$srcdir
17332 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17334 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17344 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17345 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17347 ac_MKDIR_P=$MKDIR_P
17349 [\\/$]* | ?:[\\/]* ) ;;
17350 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17354 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17355 # If the template does not know about datarootdir, expand it.
17356 # FIXME: This hack should be removed a few years after 2.60.
17357 ac_datarootdir_hack=; ac_datarootdir_seen=
17368 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17369 *datarootdir*) ac_datarootdir_seen=yes;;
17370 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17372 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17374 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17375 ac_datarootdir_hack='
17376 s&@datadir@&$datadir&g
17377 s&@docdir@&$docdir&g
17378 s&@infodir@&$infodir&g
17379 s&@localedir@&$localedir&g
17380 s&@mandir@&$mandir&g
17381 s&\\\${datarootdir}&$datarootdir&g' ;;
17385 # Neutralize VPATH when `$srcdir' = `.'.
17386 # Shell code in configure.ac might set extrasub.
17387 # FIXME: do we really want to maintain this feature?
17388 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17389 ac_sed_extra="$ac_vpsub
17392 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17394 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17395 s|@configure_input@|$ac_sed_conf_input|;t t
17396 s&@top_builddir@&$ac_top_builddir_sub&;t t
17397 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17398 s&@srcdir@&$ac_srcdir&;t t
17399 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17400 s&@top_srcdir@&$ac_top_srcdir&;t t
17401 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17402 s&@builddir@&$ac_builddir&;t t
17403 s&@abs_builddir@&$ac_abs_builddir&;t t
17404 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17405 s&@INSTALL@&$ac_INSTALL&;t t
17406 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17407 $ac_datarootdir_hack
17409 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
17410 if $ac_cs_awk_getline; then
17411 $AWK -f "$ac_tmp/subs.awk"
17413 $AWK -f "$ac_tmp/subs.awk" | $SHELL
17415 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17417 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17418 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17419 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
17420 "$ac_tmp/out"`; test -z "$ac_out"; } &&
17421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17422 which seems to be undefined. Please make sure it is defined" >&5
17423 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17424 which seems to be undefined. Please make sure it is defined" >&2;}
17426 rm -f "$ac_tmp/stdin"
17428 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17429 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17431 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17437 if test x"$ac_file" != x-; then
17439 printf "%s\n" "/* $configure_input */" >&1 \
17440 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17441 } >"$ac_tmp/config.h" \
17442 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17443 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17445 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
17448 mv "$ac_tmp/config.h" "$ac_file" \
17449 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17452 printf "%s\n" "/* $configure_input */" >&1 \
17453 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17454 || as_fn_error $? "could not create -" "$LINENO" 5
17458 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17459 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
17464 case $ac_file$ac_mode in
17465 "po-directories":C)
17466 for ac_file in $CONFIG_FILES; do
17467 # Support "outfile[:infile[:infile...]]"
17469 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
17471 # PO directories have a Makefile.in generated from Makefile.in.in.
17472 case "$ac_file" in */Makefile.in)
17473 # Adjust a relative srcdir.
17474 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
17475 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
17476 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
17477 # In autoconf-2.13 it is called $ac_given_srcdir.
17478 # In autoconf-2.50 it is called $srcdir.
17479 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
17480 case "$ac_given_srcdir" in
17481 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
17482 /*) top_srcdir="$ac_given_srcdir" ;;
17483 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
17485 # Treat a directory as a PO directory if and only if it has a
17486 # POTFILES.in file. This allows packages to have multiple PO
17487 # directories under different names or in different locations.
17488 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
17489 rm -f "$ac_dir/POTFILES"
17490 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
17491 gt_tab=`printf '\t'`
17492 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"
17493 POMAKEFILEDEPS="POTFILES.in"
17494 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
17495 # on $ac_dir but don't depend on user-specified configuration
17497 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
17498 # The LINGUAS file contains the set of available languages.
17499 if test -n "$OBSOLETE_ALL_LINGUAS"; then
17500 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
17502 ALL_LINGUAS=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
17503 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
17505 # The set of available languages was given in configure.in.
17506 ALL_LINGUAS=$OBSOLETE_ALL_LINGUAS
17509 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
17510 # Compute UPDATEPOFILES
17511 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
17512 # Compute DUMMYPOFILES
17513 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
17515 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
17516 case "$ac_given_srcdir" in
17518 *) srcdirpre='$(srcdir)/' ;;
17524 for lang in $ALL_LINGUAS; do
17525 POFILES="$POFILES $srcdirpre$lang.po"
17526 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
17527 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
17528 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
17530 # CATALOGS depends on both $ac_dir and the user's LINGUAS
17531 # environment variable.
17533 if test -n "$ALL_LINGUAS"; then
17534 for presentlang in $ALL_LINGUAS; do
17536 if test "%UNSET%" != "$LINGUAS"; then
17537 desiredlanguages="$LINGUAS"
17539 desiredlanguages="$ALL_LINGUAS"
17541 for desiredlang in $desiredlanguages; do
17542 # Use the presentlang catalog if desiredlang is
17543 # a. equal to presentlang, or
17544 # b. a variant of presentlang (because in this case,
17545 # presentlang can be used as a fallback for messages
17546 # which are not translated in the desiredlang catalog).
17547 case "$desiredlang" in
17548 "$presentlang"*) useit=yes;;
17551 if test $useit = yes; then
17552 INST_LINGUAS="$INST_LINGUAS $presentlang"
17557 if test -n "$INST_LINGUAS"; then
17558 for lang in $INST_LINGUAS; do
17559 CATALOGS="$CATALOGS $lang.gmo"
17562 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
17563 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"
17564 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
17565 if test -f "$f"; then
17567 *.orig | *.bak | *~) ;;
17568 *) cat "$f" >> "$ac_dir/Makefile" ;;
17583 ac_clean_files=$ac_clean_files_save
17585 test $ac_write_fail = 0 ||
17586 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17589 # configure is writing to config.log, and then calls config.status.
17590 # config.status does its own redirection, appending to config.log.
17591 # Unfortunately, on DOS this fails, as config.log is still kept open
17592 # by configure, so config.status won't be able to write to it; its
17593 # output is simply discarded. So we exec the FD to /dev/null,
17594 # effectively closing config.log, so it can be properly (re)opened and
17595 # appended to by config.status. When coming back to configure, we
17596 # need to make the FD available again.
17597 if test "$no_create" != yes; then
17599 ac_config_status_args=
17600 test "$silent" = yes &&
17601 ac_config_status_args="$ac_config_status_args --quiet"
17603 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17605 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17606 # would make configure fail if this is the last instruction.
17607 $ac_cs_success || as_fn_exit 1
17609 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17611 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17614 if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi