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
741 XGETTEXT_EXTRA_OPTIONS
742 MSGMERGE_FOR_MSGFMT_OPTION
749 GETTEXT_MACRO_VERSION
866 program_transform_name
877 ac_subst_files='MCONFIG
883 PUBLIC_CONFIG_HEADER'
885 enable_option_checking
891 enable_maintainer_mode
892 enable_symlink_install
893 enable_relative_symlinks
894 enable_symlink_relative_symlinks
896 enable_verbose_makecmds
905 enable_developer_features
915 enable_e2initrd_helper
922 enable_bmap_stats_ops
937 with_systemd_unit_dir
939 ac_precious_vars='build_alias
960 # Initialize some variables set by options.
962 ac_init_version=false
963 ac_unrecognized_opts=
965 # The variables have the same names as the options, with
966 # dashes changed to underlines.
974 program_transform_name=s,x,x,
982 # Installation directory options.
983 # These are left unexpanded so users can "make install exec_prefix=/foo"
984 # and all the variables that are supposed to be based on exec_prefix
985 # by default will actually change.
986 # Use braces instead of parens because sh, perl, etc. also accept them.
987 # (The list follows the same order as the GNU Coding Standards.)
988 bindir='${exec_prefix}/bin'
989 sbindir='${exec_prefix}/sbin'
990 libexecdir='${exec_prefix}/libexec'
991 datarootdir='${prefix}/share'
992 datadir='${datarootdir}'
993 sysconfdir='${prefix}/etc'
994 sharedstatedir='${prefix}/com'
995 localstatedir='${prefix}/var'
996 runstatedir='${localstatedir}/run'
997 includedir='${prefix}/include'
998 oldincludedir='/usr/include'
999 docdir='${datarootdir}/doc/${PACKAGE}'
1000 infodir='${datarootdir}/info'
1005 libdir='${exec_prefix}/lib'
1006 localedir='${datarootdir}/locale'
1007 mandir='${datarootdir}/man'
1013 # If the previous option needs an argument, assign it.
1014 if test -n "$ac_prev"; then
1015 eval $ac_prev=\$ac_option
1021 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1026 case $ac_dashdash$ac_option in
1030 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1032 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1033 bindir=$ac_optarg ;;
1035 -build | --build | --buil | --bui | --bu)
1036 ac_prev=build_alias ;;
1037 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1038 build_alias=$ac_optarg ;;
1040 -cache-file | --cache-file | --cache-fil | --cache-fi \
1041 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1042 ac_prev=cache_file ;;
1043 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1044 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1045 cache_file=$ac_optarg ;;
1047 --config-cache | -C)
1048 cache_file=config.cache ;;
1050 -datadir | --datadir | --datadi | --datad)
1052 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1053 datadir=$ac_optarg ;;
1055 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1056 | --dataroo | --dataro | --datar)
1057 ac_prev=datarootdir ;;
1058 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1059 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1060 datarootdir=$ac_optarg ;;
1062 -disable-* | --disable-*)
1063 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1064 # Reject names that are not valid shell variable names.
1065 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1066 as_fn_error $? "invalid feature name: \`$ac_useropt'"
1067 ac_useropt_orig=$ac_useropt
1068 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1069 case $ac_user_opts in
1071 "enable_$ac_useropt"
1073 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1074 ac_unrecognized_sep=', ';;
1076 eval enable_$ac_useropt=no ;;
1078 -docdir | --docdir | --docdi | --doc | --do)
1080 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1081 docdir=$ac_optarg ;;
1083 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1085 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1086 dvidir=$ac_optarg ;;
1088 -enable-* | --enable-*)
1089 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1090 # Reject names that are not valid shell variable names.
1091 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1092 as_fn_error $? "invalid feature name: \`$ac_useropt'"
1093 ac_useropt_orig=$ac_useropt
1094 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1095 case $ac_user_opts in
1097 "enable_$ac_useropt"
1099 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1100 ac_unrecognized_sep=', ';;
1102 eval enable_$ac_useropt=\$ac_optarg ;;
1104 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1105 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1106 | --exec | --exe | --ex)
1107 ac_prev=exec_prefix ;;
1108 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1109 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1110 | --exec=* | --exe=* | --ex=*)
1111 exec_prefix=$ac_optarg ;;
1113 -gas | --gas | --ga | --g)
1114 # Obsolete; use --with-gas.
1117 -help | --help | --hel | --he | -h)
1118 ac_init_help=long ;;
1119 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1120 ac_init_help=recursive ;;
1121 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1122 ac_init_help=short ;;
1124 -host | --host | --hos | --ho)
1125 ac_prev=host_alias ;;
1126 -host=* | --host=* | --hos=* | --ho=*)
1127 host_alias=$ac_optarg ;;
1129 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1131 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1133 htmldir=$ac_optarg ;;
1135 -includedir | --includedir | --includedi | --included | --include \
1136 | --includ | --inclu | --incl | --inc)
1137 ac_prev=includedir ;;
1138 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1139 | --includ=* | --inclu=* | --incl=* | --inc=*)
1140 includedir=$ac_optarg ;;
1142 -infodir | --infodir | --infodi | --infod | --info | --inf)
1144 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1145 infodir=$ac_optarg ;;
1147 -libdir | --libdir | --libdi | --libd)
1149 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1150 libdir=$ac_optarg ;;
1152 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1153 | --libexe | --libex | --libe)
1154 ac_prev=libexecdir ;;
1155 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1156 | --libexe=* | --libex=* | --libe=*)
1157 libexecdir=$ac_optarg ;;
1159 -localedir | --localedir | --localedi | --localed | --locale)
1160 ac_prev=localedir ;;
1161 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1162 localedir=$ac_optarg ;;
1164 -localstatedir | --localstatedir | --localstatedi | --localstated \
1165 | --localstate | --localstat | --localsta | --localst | --locals)
1166 ac_prev=localstatedir ;;
1167 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1168 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1169 localstatedir=$ac_optarg ;;
1171 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1173 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1174 mandir=$ac_optarg ;;
1176 -nfp | --nfp | --nf)
1177 # Obsolete; use --without-fp.
1180 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1181 | --no-cr | --no-c | -n)
1184 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1185 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1188 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1189 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1190 | --oldin | --oldi | --old | --ol | --o)
1191 ac_prev=oldincludedir ;;
1192 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1193 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1194 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1195 oldincludedir=$ac_optarg ;;
1197 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1199 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1200 prefix=$ac_optarg ;;
1202 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1203 | --program-pre | --program-pr | --program-p)
1204 ac_prev=program_prefix ;;
1205 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1206 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1207 program_prefix=$ac_optarg ;;
1209 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1210 | --program-suf | --program-su | --program-s)
1211 ac_prev=program_suffix ;;
1212 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1213 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1214 program_suffix=$ac_optarg ;;
1216 -program-transform-name | --program-transform-name \
1217 | --program-transform-nam | --program-transform-na \
1218 | --program-transform-n | --program-transform- \
1219 | --program-transform | --program-transfor \
1220 | --program-transfo | --program-transf \
1221 | --program-trans | --program-tran \
1222 | --progr-tra | --program-tr | --program-t)
1223 ac_prev=program_transform_name ;;
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 program_transform_name=$ac_optarg ;;
1233 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1235 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1236 pdfdir=$ac_optarg ;;
1238 -psdir | --psdir | --psdi | --psd | --ps)
1240 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1243 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1244 | -silent | --silent | --silen | --sile | --sil)
1247 -runstatedir | --runstatedir | --runstatedi | --runstated \
1248 | --runstate | --runstat | --runsta | --runst | --runs \
1249 | --run | --ru | --r)
1250 ac_prev=runstatedir ;;
1251 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1252 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1253 | --run=* | --ru=* | --r=*)
1254 runstatedir=$ac_optarg ;;
1256 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1258 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1260 sbindir=$ac_optarg ;;
1262 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1263 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1264 | --sharedst | --shareds | --shared | --share | --shar \
1266 ac_prev=sharedstatedir ;;
1267 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1268 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1269 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1271 sharedstatedir=$ac_optarg ;;
1273 -site | --site | --sit)
1275 -site=* | --site=* | --sit=*)
1278 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1280 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1281 srcdir=$ac_optarg ;;
1283 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1284 | --syscon | --sysco | --sysc | --sys | --sy)
1285 ac_prev=sysconfdir ;;
1286 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1287 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1288 sysconfdir=$ac_optarg ;;
1290 -target | --target | --targe | --targ | --tar | --ta | --t)
1291 ac_prev=target_alias ;;
1292 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1293 target_alias=$ac_optarg ;;
1295 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1298 -version | --version | --versio | --versi | --vers | -V)
1299 ac_init_version=: ;;
1302 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1303 # Reject names that are not valid shell variable names.
1304 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1305 as_fn_error $? "invalid package name: \`$ac_useropt'"
1306 ac_useropt_orig=$ac_useropt
1307 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1308 case $ac_user_opts in
1312 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1313 ac_unrecognized_sep=', ';;
1315 eval with_$ac_useropt=\$ac_optarg ;;
1317 -without-* | --without-*)
1318 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1319 # Reject names that are not valid shell variable names.
1320 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1321 as_fn_error $? "invalid package name: \`$ac_useropt'"
1322 ac_useropt_orig=$ac_useropt
1323 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1324 case $ac_user_opts in
1328 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1329 ac_unrecognized_sep=', ';;
1331 eval with_$ac_useropt=no ;;
1334 # Obsolete; use --with-x.
1337 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1338 | --x-incl | --x-inc | --x-in | --x-i)
1339 ac_prev=x_includes ;;
1340 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1341 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1342 x_includes=$ac_optarg ;;
1344 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1345 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1346 ac_prev=x_libraries ;;
1347 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1348 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1349 x_libraries=$ac_optarg ;;
1351 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1352 Try \`$0 --help' for more information"
1356 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1357 # Reject names that are not valid shell variable names.
1358 case $ac_envvar in #(
1359 '' | [0-9]* | *[!_$as_cr_alnum]* )
1360 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1362 eval $ac_envvar=\$ac_optarg
1363 export $ac_envvar ;;
1366 # FIXME: should be removed in autoconf 3.0.
1367 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1368 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1369 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1370 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1376 if test -n "$ac_prev"; then
1377 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1378 as_fn_error $? "missing argument to $ac_option"
1381 if test -n "$ac_unrecognized_opts"; then
1382 case $enable_option_checking in
1384 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1385 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1389 # Check all directory arguments for consistency.
1390 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1391 datadir sysconfdir sharedstatedir localstatedir includedir \
1392 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1393 libdir localedir mandir runstatedir
1395 eval ac_val=\$$ac_var
1396 # Remove trailing slashes.
1399 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1400 eval $ac_var=\$ac_val;;
1402 # Be sure to have absolute directory names.
1404 [\\/$]* | ?:[\\/]* ) continue;;
1405 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1407 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1410 # There might be people who depend on the old broken behavior: `$host'
1411 # used to hold the argument of --host etc.
1412 # FIXME: To remove some day.
1415 target=$target_alias
1417 # FIXME: To remove some day.
1418 if test "x$host_alias" != x; then
1419 if test "x$build_alias" = x; then
1420 cross_compiling=maybe
1421 elif test "x$build_alias" != "x$host_alias"; then
1427 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1429 test "$silent" = yes && exec 6>/dev/null
1432 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1433 ac_ls_di=`ls -di .` &&
1434 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1435 as_fn_error $? "working directory cannot be determined"
1436 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1437 as_fn_error $? "pwd does not report name of working directory"
1440 # Find the source files, if location was not specified.
1441 if test -z "$srcdir"; then
1442 ac_srcdir_defaulted=yes
1443 # Try the directory containing this script, then the parent directory.
1444 ac_confdir=`$as_dirname -- "$as_myself" ||
1445 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1446 X"$as_myself" : 'X\(//\)[^/]' \| \
1447 X"$as_myself" : 'X\(//\)$' \| \
1448 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1449 printf "%s\n" X"$as_myself" |
1450 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1468 if test ! -r "$srcdir/$ac_unique_file"; then
1472 ac_srcdir_defaulted=no
1474 if test ! -r "$srcdir/$ac_unique_file"; then
1475 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1476 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1478 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1480 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1482 # When building in place, set srcdir=.
1483 if test "$ac_abs_confdir" = "$ac_pwd"; then
1486 # Remove unnecessary trailing slashes from srcdir.
1487 # Double slashes in file names in object file debugging info
1488 # mess up M-x gdb in Emacs.
1490 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1492 for ac_var in $ac_precious_vars; do
1493 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1494 eval ac_env_${ac_var}_value=\$${ac_var}
1495 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1496 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1500 # Report the --help message.
1502 if test "$ac_init_help" = "long"; then
1503 # Omit some internal or obsolete options to make the list less imposing.
1504 # This message is too long to be a string in the A/UX 3.1 sh.
1506 \`configure' configures this package to adapt to many kinds of systems.
1508 Usage: $0 [OPTION]... [VAR=VALUE]...
1510 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1511 VAR=VALUE. See below for descriptions of some of the useful variables.
1513 Defaults for the options are specified in brackets.
1516 -h, --help display this help and exit
1517 --help=short display options specific to this package
1518 --help=recursive display the short help of all the included packages
1519 -V, --version display version information and exit
1520 -q, --quiet, --silent do not print \`checking ...' messages
1521 --cache-file=FILE cache test results in FILE [disabled]
1522 -C, --config-cache alias for \`--cache-file=config.cache'
1523 -n, --no-create do not create output files
1524 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1526 Installation directories:
1527 --prefix=PREFIX install architecture-independent files in PREFIX
1528 [$ac_default_prefix]
1529 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1532 By default, \`make install' will install all the files in
1533 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1534 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1535 for instance \`--prefix=\$HOME'.
1537 For better control, use the options below.
1539 Fine tuning of the installation directories:
1540 --bindir=DIR user executables [EPREFIX/bin]
1541 --sbindir=DIR system admin executables [EPREFIX/sbin]
1542 --libexecdir=DIR program executables [EPREFIX/libexec]
1543 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1544 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1545 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1546 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1547 --libdir=DIR object code libraries [EPREFIX/lib]
1548 --includedir=DIR C header files [PREFIX/include]
1549 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1550 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1551 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1552 --infodir=DIR info documentation [DATAROOTDIR/info]
1553 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1554 --mandir=DIR man documentation [DATAROOTDIR/man]
1555 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1556 --htmldir=DIR html documentation [DOCDIR]
1557 --dvidir=DIR dvi documentation [DOCDIR]
1558 --pdfdir=DIR pdf documentation [DOCDIR]
1559 --psdir=DIR ps documentation [DOCDIR]
1565 --build=BUILD configure for building on BUILD [guessed]
1566 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1570 if test -n "$ac_init_help"; then
1575 --disable-option-checking ignore unrecognized --enable/--with options
1576 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1577 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1578 --enable-maintainer-mode
1579 enable makefile rules useful for maintainers
1580 --enable-symlink-install
1581 use symlinks when installing instead of hard links
1582 --enable-relative-symlinks
1583 use relative symlinks when installing
1585 --enable-symlink-build use symlinks while building instead of hard links
1586 --enable-verbose-makecmds
1587 enable verbose make command output
1588 --enable-elf-shlibs select ELF shared libraries
1589 --enable-bsd-shlibs select BSD shared libraries
1590 --enable-profile build profiling libraries
1591 --enable-gcov build for coverage testing using gcov
1592 --enable-hardening build for coverage testing using gcov
1593 --enable-jbd-debug enable journal debugging
1594 --enable-blkid-debug enable blkid debugging
1595 --disable-testio-debug disable the use of the test I/O manager for
1597 --enable-developer-features
1598 enable features for use by ext4 developers
1599 --enable-libuuid build and use private uuid library
1600 --enable-libblkid build and use private blkid library
1601 --enable-subset enable subset-only build
1602 --disable-backtrace disable use backtrace
1603 --disable-debugfs disable support of debugfs program
1604 --disable-imager disable support of e2image program
1605 --disable-resizer disable support of e2resize program
1606 --disable-defrag disable support of e4defrag program
1607 --enable-fsck build fsck wrapper program
1608 --enable-e2initrd-helper
1609 build e2initrd-helper program
1610 --disable-tls disable use of thread local support
1611 --disable-uuidd disable building the uuid daemon
1612 --disable-mmp disable support mmp, Multi Mount Protection
1613 --disable-tdb disable tdb support
1614 --disable-bmap-stats disable collection of bitmap stats
1615 --enable-bmap-stats-ops enable collection of additional bitmap stats
1616 --disable-nls do not use Native Language Support
1617 --disable-rpath do not hardcode runtime library paths
1618 --disable-fuse2fs do not build fuse2fs
1619 --enable-lto enable link time optimization
1620 --enable-ubsan enable undefined behavior sanitizer
1621 --enable-addrsan enable address sanitizer
1622 --enable-threadsan enable thread sanitizer
1623 --enable-fuzzing enable fuzzing sanitizer
1626 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1627 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1628 --with-diet-libc use diet libc
1629 --with-cc no longer supported, use CC= instead
1630 --with-ccopts no longer supported, use CFLAGS= instead
1631 --with-ldopts no longer supported, use LDFLAGS= instead
1632 --with-root-prefix=PREFIX
1633 override prefix variable for files to be placed in
1635 --without-pthread disable use of pthread support
1636 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1637 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1638 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1639 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1640 --without-libintl-prefix don't search for libintl in includedir and libdir
1641 --with-multiarch=ARCH specify the multiarch triplet
1642 --with-udev-rules-dir[=DIR]
1643 Install udev rules into DIR.
1644 --with-crond-dir[=DIR] Install system crontabs into DIR.
1645 --with-systemd-unit-dir[=DIR]
1646 Install systemd system units into DIR.
1648 Some influential environment variables:
1649 CC C compiler command
1650 CFLAGS C compiler flags
1651 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1652 nonstandard directory <lib dir>
1653 LIBS libraries to pass to the linker, e.g. -l<library>
1654 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1655 you have headers in a nonstandard directory <include dir>
1657 PKG_CONFIG path to pkg-config utility
1659 directories to add to pkg-config's search path
1661 path overriding pkg-config's built-in search path
1662 CXX C++ compiler command
1663 CXXFLAGS C++ compiler flags
1664 udev_CFLAGS C compiler flags for udev, overriding pkg-config
1665 udev_LIBS linker flags for udev, overriding pkg-config
1667 C compiler flags for systemd, overriding pkg-config
1669 linker flags for systemd, overriding pkg-config
1671 Use these variables to override the choices made by `configure' or to help
1672 it to find libraries and programs with nonstandard names/locations.
1674 Report bugs to the package provider.
1679 if test "$ac_init_help" = "recursive"; then
1680 # If there are subdirs, report their specific --help.
1681 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1682 test -d "$ac_dir" ||
1683 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1688 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1690 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1691 # A ".." for each directory in $ac_dir_suffix.
1692 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1693 case $ac_top_builddir_sub in
1694 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1695 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1698 ac_abs_top_builddir=$ac_pwd
1699 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1700 # for backward compatibility:
1701 ac_top_builddir=$ac_top_build_prefix
1704 .) # We are building in place.
1706 ac_top_srcdir=$ac_top_builddir_sub
1707 ac_abs_top_srcdir=$ac_pwd ;;
1708 [\\/]* | ?:[\\/]* ) # Absolute name.
1709 ac_srcdir=$srcdir$ac_dir_suffix;
1710 ac_top_srcdir=$srcdir
1711 ac_abs_top_srcdir=$srcdir ;;
1713 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1714 ac_top_srcdir=$ac_top_build_prefix$srcdir
1715 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1717 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1719 cd "$ac_dir" || { ac_status=$?; continue; }
1720 # Check for configure.gnu first; this name is used for a wrapper for
1721 # Metaconfig's "Configure" on case-insensitive file systems.
1722 if test -f "$ac_srcdir/configure.gnu"; then
1724 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1725 elif test -f "$ac_srcdir/configure"; then
1727 $SHELL "$ac_srcdir/configure" --help=recursive
1729 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1731 cd "$ac_pwd" || { ac_status=$?; break; }
1735 test -n "$ac_init_help" && exit $ac_status
1736 if $ac_init_version; then
1739 generated by GNU Autoconf 2.71
1741 Copyright (C) 2021 Free Software Foundation, Inc.
1742 This configure script is free software; the Free Software Foundation
1743 gives unlimited permission to copy, distribute and modify it.
1748 ## ------------------------ ##
1749 ## Autoconf initialization. ##
1750 ## ------------------------ ##
1752 # ac_fn_c_try_compile LINENO
1753 # --------------------------
1754 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1755 ac_fn_c_try_compile ()
1757 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1758 rm -f conftest.$ac_objext conftest.beam
1759 if { { ac_try="$ac_compile"
1761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1762 *) ac_try_echo=$ac_try;;
1764 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1765 printf "%s\n" "$ac_try_echo"; } >&5
1766 (eval "$ac_compile") 2>conftest.err
1768 if test -s conftest.err; then
1769 grep -v '^ *+' conftest.err >conftest.er1
1770 cat conftest.er1 >&5
1771 mv -f conftest.er1 conftest.err
1773 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1774 test $ac_status = 0; } && {
1775 test -z "$ac_c_werror_flag" ||
1776 test ! -s conftest.err
1777 } && test -s conftest.$ac_objext
1781 printf "%s\n" "$as_me: failed program was:" >&5
1782 sed 's/^/| /' conftest.$ac_ext >&5
1786 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1787 as_fn_set_status $ac_retval
1789 } # ac_fn_c_try_compile
1791 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1792 # -------------------------------------------------------
1793 # Tests whether HEADER exists and can be compiled using the include files in
1794 # INCLUDES, setting the cache variable VAR accordingly.
1795 ac_fn_c_check_header_compile ()
1797 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1799 printf %s "checking for $2... " >&6; }
1800 if eval test \${$3+y}
1802 printf %s "(cached) " >&6
1804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1805 /* end confdefs.h. */
1809 if ac_fn_c_try_compile "$LINENO"
1815 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1819 printf "%s\n" "$ac_res" >&6; }
1820 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1822 } # ac_fn_c_check_header_compile
1824 # ac_fn_c_try_link LINENO
1825 # -----------------------
1826 # Try to link conftest.$ac_ext, and return whether this succeeded.
1829 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1830 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1831 if { { ac_try="$ac_link"
1833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1834 *) ac_try_echo=$ac_try;;
1836 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1837 printf "%s\n" "$ac_try_echo"; } >&5
1838 (eval "$ac_link") 2>conftest.err
1840 if test -s conftest.err; then
1841 grep -v '^ *+' conftest.err >conftest.er1
1842 cat conftest.er1 >&5
1843 mv -f conftest.er1 conftest.err
1845 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1846 test $ac_status = 0; } && {
1847 test -z "$ac_c_werror_flag" ||
1848 test ! -s conftest.err
1849 } && test -s conftest$ac_exeext && {
1850 test "$cross_compiling" = yes ||
1851 test -x conftest$ac_exeext
1856 printf "%s\n" "$as_me: failed program was:" >&5
1857 sed 's/^/| /' conftest.$ac_ext >&5
1861 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1862 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1863 # interfere with the next link command; also delete a directory that is
1864 # left behind by Apple's compiler. We do this before executing the actions.
1865 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1866 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1867 as_fn_set_status $ac_retval
1869 } # ac_fn_c_try_link
1871 # ac_fn_c_try_cpp LINENO
1872 # ----------------------
1873 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1876 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1877 if { { ac_try="$ac_cpp conftest.$ac_ext"
1879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1880 *) ac_try_echo=$ac_try;;
1882 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1883 printf "%s\n" "$ac_try_echo"; } >&5
1884 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1886 if test -s conftest.err; then
1887 grep -v '^ *+' conftest.err >conftest.er1
1888 cat conftest.er1 >&5
1889 mv -f conftest.er1 conftest.err
1891 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1892 test $ac_status = 0; } > conftest.i && {
1893 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1894 test ! -s conftest.err
1899 printf "%s\n" "$as_me: failed program was:" >&5
1900 sed 's/^/| /' conftest.$ac_ext >&5
1904 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1905 as_fn_set_status $ac_retval
1909 # ac_fn_c_try_run LINENO
1910 # ----------------------
1911 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
1912 # executables *can* be run.
1915 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1916 if { { ac_try="$ac_link"
1918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1919 *) ac_try_echo=$ac_try;;
1921 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1922 printf "%s\n" "$ac_try_echo"; } >&5
1923 (eval "$ac_link") 2>&5
1925 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1926 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1927 { { case "(($ac_try" in
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_try") 2>&5
1935 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1936 test $ac_status = 0; }; }
1940 printf "%s\n" "$as_me: program exited with status $ac_status" >&5
1941 printf "%s\n" "$as_me: failed program was:" >&5
1942 sed 's/^/| /' conftest.$ac_ext >&5
1944 ac_retval=$ac_status
1946 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1947 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1948 as_fn_set_status $ac_retval
1952 # ac_fn_c_check_func LINENO FUNC VAR
1953 # ----------------------------------
1954 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1955 ac_fn_c_check_func ()
1957 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1959 printf %s "checking for $2... " >&6; }
1960 if eval test \${$3+y}
1962 printf %s "(cached) " >&6
1964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1965 /* end confdefs.h. */
1966 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1967 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1968 #define $2 innocuous_$2
1970 /* System header to define __stub macros and hopefully few prototypes,
1971 which can conflict with char $2 (); below. */
1976 /* Override any GCC internal prototype to avoid an error.
1977 Use char because int might match the return type of a GCC
1978 builtin and then its argument prototype would still apply. */
1983 /* The GNU C library defines this for functions which it implements
1984 to always fail with ENOSYS. Some functions are actually named
1985 something starting with __ and the normal name is an alias. */
1986 #if defined __stub_$2 || defined __stub___$2
1998 if ac_fn_c_try_link "$LINENO"
2004 rm -f core conftest.err conftest.$ac_objext conftest.beam \
2005 conftest$ac_exeext conftest.$ac_ext
2008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2009 printf "%s\n" "$ac_res" >&6; }
2010 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2012 } # ac_fn_c_check_func
2014 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2015 # ----------------------------------------------------
2016 # Tries to find if the field MEMBER exists in type AGGR, after including
2017 # INCLUDES, setting cache variable VAR accordingly.
2018 ac_fn_c_check_member ()
2020 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2022 printf %s "checking for $2.$3... " >&6; }
2023 if eval test \${$4+y}
2025 printf %s "(cached) " >&6
2027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2028 /* end confdefs.h. */
2040 if ac_fn_c_try_compile "$LINENO"
2044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2045 /* end confdefs.h. */
2051 if (sizeof ac_aggr.$3)
2057 if ac_fn_c_try_compile "$LINENO"
2063 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2065 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2069 printf "%s\n" "$ac_res" >&6; }
2070 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2072 } # ac_fn_c_check_member
2074 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2075 # -------------------------------------------
2076 # Tests whether TYPE exists after having included INCLUDES, setting cache
2077 # variable VAR accordingly.
2078 ac_fn_c_check_type ()
2080 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2082 printf %s "checking for $2... " >&6; }
2083 if eval test \${$3+y}
2085 printf %s "(cached) " >&6
2088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2089 /* end confdefs.h. */
2100 if ac_fn_c_try_compile "$LINENO"
2102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2103 /* end confdefs.h. */
2114 if ac_fn_c_try_compile "$LINENO"
2120 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2122 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2126 printf "%s\n" "$ac_res" >&6; }
2127 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2129 } # ac_fn_c_check_type
2131 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
2132 # ------------------------------------------------------------------
2133 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2134 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
2137 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2138 as_decl_name=`echo $2|sed 's/ *(.*//'`
2139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2140 printf %s "checking whether $as_decl_name is declared... " >&6; }
2141 if eval test \${$3+y}
2143 printf %s "(cached) " >&6
2145 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2146 eval ac_save_FLAGS=\$$6
2147 as_fn_append $6 " $5"
2148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2149 /* end confdefs.h. */
2154 #ifndef $as_decl_name
2156 (void) $as_decl_use;
2158 (void) $as_decl_name;
2166 if ac_fn_c_try_compile "$LINENO"
2172 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2173 eval $6=\$ac_save_FLAGS
2177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2178 printf "%s\n" "$ac_res" >&6; }
2179 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2181 } # ac_fn_check_decl
2183 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2184 # --------------------------------------------
2185 # Tries to find the compile-time value of EXPR in a program that includes
2186 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2188 ac_fn_c_compute_int ()
2190 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2191 if test "$cross_compiling" = yes; then
2192 # Depending upon the size, compute the lo and hi bounds.
2193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2194 /* end confdefs.h. */
2199 static int test_array [1 - 2 * !(($2) >= 0)];
2201 return test_array [0];
2207 if ac_fn_c_try_compile "$LINENO"
2211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2212 /* end confdefs.h. */
2217 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2219 return test_array [0];
2225 if ac_fn_c_try_compile "$LINENO"
2227 ac_hi=$ac_mid; break
2229 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2230 if test $ac_lo -le $ac_mid; then
2234 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2236 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2240 /* end confdefs.h. */
2245 static int test_array [1 - 2 * !(($2) < 0)];
2247 return test_array [0];
2253 if ac_fn_c_try_compile "$LINENO"
2257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2258 /* end confdefs.h. */
2263 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2265 return test_array [0];
2271 if ac_fn_c_try_compile "$LINENO"
2273 ac_lo=$ac_mid; break
2275 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2276 if test $ac_mid -le $ac_hi; then
2280 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2282 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2287 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2289 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2290 # Binary search between lo and hi bounds.
2291 while test "x$ac_lo" != "x$ac_hi"; do
2292 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2294 /* end confdefs.h. */
2299 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2301 return test_array [0];
2307 if ac_fn_c_try_compile "$LINENO"
2311 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2313 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2316 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2321 /* end confdefs.h. */
2323 static long int longval (void) { return $2; }
2324 static unsigned long int ulongval (void) { return $2; }
2331 FILE *f = fopen ("conftest.val", "w");
2336 long int i = longval ();
2339 fprintf (f, "%ld", i);
2343 unsigned long int i = ulongval ();
2346 fprintf (f, "%lu", i);
2348 /* Do not output a trailing newline, as this causes \r\n confusion
2349 on some platforms. */
2350 return ferror (f) || fclose (f) != 0;
2356 if ac_fn_c_try_run "$LINENO"
2358 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2362 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2363 conftest.$ac_objext conftest.beam conftest.$ac_ext
2367 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2368 as_fn_set_status $ac_retval
2370 } # ac_fn_c_compute_int
2372 # ac_fn_cxx_try_compile LINENO
2373 # ----------------------------
2374 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2375 ac_fn_cxx_try_compile ()
2377 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2378 rm -f conftest.$ac_objext conftest.beam
2379 if { { ac_try="$ac_compile"
2381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2382 *) ac_try_echo=$ac_try;;
2384 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2385 printf "%s\n" "$ac_try_echo"; } >&5
2386 (eval "$ac_compile") 2>conftest.err
2388 if test -s conftest.err; then
2389 grep -v '^ *+' conftest.err >conftest.er1
2390 cat conftest.er1 >&5
2391 mv -f conftest.er1 conftest.err
2393 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2394 test $ac_status = 0; } && {
2395 test -z "$ac_cxx_werror_flag" ||
2396 test ! -s conftest.err
2397 } && test -s conftest.$ac_objext
2401 printf "%s\n" "$as_me: failed program was:" >&5
2402 sed 's/^/| /' conftest.$ac_ext >&5
2406 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2407 as_fn_set_status $ac_retval
2409 } # ac_fn_cxx_try_compile
2410 ac_configure_args_raw=
2415 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2417 as_fn_append ac_configure_args_raw " '$ac_arg'"
2420 case $ac_configure_args_raw in
2424 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
2425 ac_unsafe_a="$ac_unsafe_z#~"
2426 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2427 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2430 cat >config.log <<_ACEOF
2431 This file contains any messages produced by compilers while
2432 running configure, to aid debugging if configure makes a mistake.
2434 It was created by $as_me, which was
2435 generated by GNU Autoconf 2.71. Invocation command line was
2437 $ $0$ac_configure_args_raw
2447 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2448 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2449 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2450 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2451 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2453 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2454 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2456 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2457 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2458 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2459 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2460 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2461 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2462 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2470 case $as_dir in #(((
2473 *) as_dir=$as_dir/ ;;
2475 printf "%s\n" "PATH: $as_dir"
2491 # Keep a trace of the command line.
2492 # Strip out --no-create and --no-recursion so they do not pile up.
2493 # Strip out --silent because we don't want to record it for future runs.
2494 # Also quote any args containing shell meta-characters.
2495 # Make two passes to allow for proper duplicate-argument suppression.
2499 ac_must_keep_next=false
2505 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2506 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2507 | -silent | --silent | --silen | --sile | --sil)
2510 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2513 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2515 as_fn_append ac_configure_args1 " '$ac_arg'"
2516 if test $ac_must_keep_next = true; then
2517 ac_must_keep_next=false # Got value, back to normal.
2520 *=* | --config-cache | -C | -disable-* | --disable-* \
2521 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2522 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2523 | -with-* | --with-* | -without-* | --without-* | --x)
2524 case "$ac_configure_args0 " in
2525 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2528 -* ) ac_must_keep_next=true ;;
2531 as_fn_append ac_configure_args " '$ac_arg'"
2536 { ac_configure_args0=; unset ac_configure_args0;}
2537 { ac_configure_args1=; unset ac_configure_args1;}
2539 # When interrupted or exit'd, cleanup temporary files, and complete
2540 # config.log. We remove comments because anyway the quotes in there
2541 # would cause problems or look ugly.
2542 # WARNING: Use '\'' to represent an apostrophe within the trap.
2543 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2544 trap 'exit_status=$?
2547 # Save into config.log some information that might help in debugging.
2551 printf "%s\n" "## ---------------- ##
2552 ## Cache variables. ##
2553 ## ---------------- ##"
2555 # The following way of writing the cache mishandles newlines in values,
2557 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2558 eval ac_val=\$$ac_var
2562 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2563 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2566 _ | IFS | as_nl) ;; #(
2567 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2568 *) { eval $ac_var=; unset $ac_var;} ;;
2573 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2574 *${as_nl}ac_space=\ *)
2576 "s/'\''/'\''\\\\'\'''\''/g;
2577 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2580 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2587 printf "%s\n" "## ----------------- ##
2588 ## Output variables. ##
2589 ## ----------------- ##"
2591 for ac_var in $ac_subst_vars
2593 eval ac_val=\$$ac_var
2595 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2597 printf "%s\n" "$ac_var='\''$ac_val'\''"
2601 if test -n "$ac_subst_files"; then
2602 printf "%s\n" "## ------------------- ##
2603 ## File substitutions. ##
2604 ## ------------------- ##"
2606 for ac_var in $ac_subst_files
2608 eval ac_val=\$$ac_var
2610 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2612 printf "%s\n" "$ac_var='\''$ac_val'\''"
2617 if test -s confdefs.h; then
2618 printf "%s\n" "## ----------- ##
2625 test "$ac_signal" != 0 &&
2626 printf "%s\n" "$as_me: caught signal $ac_signal"
2627 printf "%s\n" "$as_me: exit $exit_status"
2629 rm -f core *.core core.conftest.* &&
2630 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2633 for ac_signal in 1 2 13 15; do
2634 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2638 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2639 rm -f -r conftest* confdefs.h
2641 printf "%s\n" "/* confdefs.h */" > confdefs.h
2643 # Predefined preprocessor variables.
2645 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2647 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2649 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2651 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2653 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2655 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2658 # Let the site file select an alternate cache file if it wants to.
2659 # Prefer an explicitly selected file to automatically selected ones.
2660 if test -n "$CONFIG_SITE"; then
2661 ac_site_files="$CONFIG_SITE"
2662 elif test "x$prefix" != xNONE; then
2663 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2665 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2668 for ac_site_file in $ac_site_files
2670 case $ac_site_file in #(
2674 ac_site_file=./$ac_site_file ;;
2676 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2678 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2679 sed 's/^/| /' "$ac_site_file" >&5
2681 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2682 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2683 as_fn_error $? "failed to load site script $ac_site_file
2684 See \`config.log' for more details" "$LINENO" 5; }
2688 if test -r "$cache_file"; then
2689 # Some versions of bash will fail to source /dev/null (special files
2690 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2691 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2693 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2695 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2696 *) . "./$cache_file";;
2700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2701 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2705 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2706 # Test code for whether the C compiler supports C89 (global declarations)
2707 ac_c_conftest_c89_globals='
2708 /* Does the compiler advertise C89 conformance?
2709 Do not test the value of __STDC__, because some compilers set it to 0
2710 while being otherwise adequately conformant. */
2711 #if !defined __STDC__
2712 # error "Compiler does not advertise C89 conformance"
2718 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2719 struct buf { int x; };
2720 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2721 static char *e (p, i)
2727 static char *f (char * (*g) (char **, int), char **p, ...)
2732 s = g (p, va_arg (v,int));
2737 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2738 function prototypes and stuff, but not \xHH hex character constants.
2739 These do not provoke an error unfortunately, instead are silently treated
2740 as an "x". The following induces an error, until -std is added to get
2741 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2742 array size at least. It is necessary to write \x00 == 0 to get something
2743 that is true only with -std. */
2744 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2746 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2747 inside strings and character constants. */
2748 #define FOO(x) '\''x'\''
2749 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2751 int test (int i, double x);
2752 struct s1 {int (*f) (int a);};
2753 struct s2 {int (*f) (double a);};
2754 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2757 # Test code for whether the C compiler supports C89 (body of main).
2758 ac_c_conftest_c89_main='
2759 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2762 # Test code for whether the C compiler supports C99 (global declarations)
2763 ac_c_conftest_c99_globals='
2764 // Does the compiler advertise C99 conformance?
2765 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2766 # error "Compiler does not advertise C99 conformance"
2769 #include <stdbool.h>
2770 extern int puts (const char *);
2771 extern int printf (const char *, ...);
2772 extern int dprintf (int, const char *, ...);
2773 extern void *malloc (size_t);
2775 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2776 // dprintf is used instead of fprintf to avoid needing to declare
2778 #define debug(...) dprintf (2, __VA_ARGS__)
2779 #define showlist(...) puts (#__VA_ARGS__)
2780 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2782 test_varargs_macros (void)
2787 debug ("X = %d\n", x);
2788 showlist (The first, second, and third items.);
2789 report (x>y, "x is %d but y is %d", x, y);
2792 // Check long long types.
2793 #define BIG64 18446744073709551615ull
2794 #define BIG32 4294967295ul
2795 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2797 #error "your preprocessor is broken"
2801 #error "your preprocessor is broken"
2803 static long long int bignum = -9223372036854775807LL;
2804 static unsigned long long int ubignum = BIG64;
2806 struct incomplete_array
2814 const wchar_t *name;
2818 typedef const char *ccp;
2821 test_restrict (ccp restrict text)
2823 // See if C++-style comments work.
2824 // Iterate through items via the restricted pointer.
2825 // Also check for declarations in for loops.
2826 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2831 // Check varargs and va_copy.
2833 test_varargs (const char *format, ...)
2836 va_start (args, format);
2838 va_copy (args_copy, args);
2840 const char *str = "";
2848 case '\''s'\'': // string
2849 str = va_arg (args_copy, const char *);
2851 case '\''d'\'': // int
2852 number = va_arg (args_copy, int);
2854 case '\''f'\'': // float
2855 fnumber = va_arg (args_copy, double);
2864 return *str && number && fnumber;
2868 # Test code for whether the C compiler supports C99 (body of main).
2869 ac_c_conftest_c99_main='
2871 _Bool success = false;
2872 success |= (argc != 0);
2875 if (test_restrict ("String literal") == 0)
2877 char *restrict newvar = "Another string";
2880 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2881 test_varargs_macros ();
2883 // Check flexible array members.
2884 struct incomplete_array *ia =
2885 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2887 for (int i = 0; i < ia->datasize; ++i)
2888 ia->data[i] = i * 1.234;
2890 // Check named initializers.
2891 struct named_init ni = {
2893 .name = L"Test wide string",
2894 .average = 543.34343,
2899 int dynamic_array[ni.number];
2900 dynamic_array[0] = argv[0][0];
2901 dynamic_array[ni.number - 1] = 543;
2903 // work around unused variable warnings
2904 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2905 || dynamic_array[ni.number - 1] != 543);
2908 # Test code for whether the C compiler supports C11 (global declarations)
2909 ac_c_conftest_c11_globals='
2910 // Does the compiler advertise C11 conformance?
2911 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2912 # error "Compiler does not advertise C11 conformance"
2916 char _Alignas (double) aligned_as_double;
2917 char _Alignas (0) no_special_alignment;
2918 extern char aligned_as_int;
2919 char _Alignas (0) _Alignas (int) aligned_as_int;
2924 int_alignment = _Alignof (int),
2925 int_array_alignment = _Alignof (int[100]),
2926 char_alignment = _Alignof (char)
2928 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2931 int _Noreturn does_not_return (void) { for (;;) continue; }
2933 // Check _Static_assert.
2934 struct test_static_assert
2937 _Static_assert (sizeof (int) <= sizeof (long int),
2938 "_Static_assert does not work in struct");
2942 // Check UTF-8 literals.
2943 #define u8 syntax error!
2944 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2946 // Check duplicate typedefs.
2947 typedef long *long_ptr;
2948 typedef long int *long_ptr;
2949 typedef long_ptr long_ptr;
2951 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2955 struct { int i; int j; };
2956 struct { int k; long int l; } w;
2962 # Test code for whether the C compiler supports C11 (body of main).
2963 ac_c_conftest_c11_main='
2964 _Static_assert ((offsetof (struct anonymous, i)
2965 == offsetof (struct anonymous, w.k)),
2966 "Anonymous union alignment botch");
2972 # Test code for whether the C compiler supports C11 (complete).
2973 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2974 ${ac_c_conftest_c99_globals}
2975 ${ac_c_conftest_c11_globals}
2978 main (int argc, char **argv)
2981 ${ac_c_conftest_c89_main}
2982 ${ac_c_conftest_c99_main}
2983 ${ac_c_conftest_c11_main}
2988 # Test code for whether the C compiler supports C99 (complete).
2989 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2990 ${ac_c_conftest_c99_globals}
2993 main (int argc, char **argv)
2996 ${ac_c_conftest_c89_main}
2997 ${ac_c_conftest_c99_main}
3002 # Test code for whether the C compiler supports C89 (complete).
3003 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
3006 main (int argc, char **argv)
3009 ${ac_c_conftest_c89_main}
3014 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
3015 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
3016 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
3017 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
3018 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
3019 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
3020 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
3021 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
3022 as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
3023 as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
3024 gt_needs="$gt_needs "
3025 as_fn_append ac_func_c_list " vprintf HAVE_VPRINTF"
3026 # Test code for whether the C++ compiler supports C++98 (global declarations)
3027 ac_cxx_conftest_cxx98_globals='
3028 // Does the compiler advertise C++98 conformance?
3029 #if !defined __cplusplus || __cplusplus < 199711L
3030 # error "Compiler does not advertise C++98 conformance"
3033 // These inclusions are to reject old compilers that
3034 // lack the unsuffixed header files.
3036 #include <exception>
3038 // <cassert> and <cstring> are *not* freestanding headers in C++98.
3039 extern void assert (int);
3041 extern int strcmp (const char *, const char *);
3044 // Namespaces, exceptions, and templates were all added after "C++ 2.0".
3045 using std::exception;
3050 void test_exception_syntax()
3054 } catch (const char *s) {
3055 // Extra parentheses suppress a warning when building autoconf itself,
3056 // due to lint rules shared with more typical C programs.
3057 assert (!(strcmp) (s, "test"));
3061 template <typename T> struct test_template
3064 explicit test_template(T t) : val(t) {}
3065 template <typename U> T add(U u) { return static_cast<T>(u) + val; }
3068 } // anonymous namespace
3071 # Test code for whether the C++ compiler supports C++98 (body of main)
3072 ac_cxx_conftest_cxx98_main='
3076 test_exception_syntax ();
3077 test_template<double> tt (2.0);
3078 assert (tt.add (4) == 6.0);
3079 assert (true && !false);
3083 # Test code for whether the C++ compiler supports C++11 (global declarations)
3084 ac_cxx_conftest_cxx11_globals='
3085 // Does the compiler advertise C++ 2011 conformance?
3086 #if !defined __cplusplus || __cplusplus < 201103L
3087 # error "Compiler does not advertise C++11 conformance"
3092 constexpr int get_val() { return 20; }
3103 delegate(int n) : n(n) {}
3104 delegate(): delegate(2354) {}
3106 virtual int getval() { return this->n; };
3111 class overridden : public delegate
3114 overridden(int n): delegate(n) {}
3115 virtual int getval() override final { return this->n * 2; }
3121 nocopy(int i): i(i) {}
3123 nocopy(const nocopy&) = delete;
3124 nocopy & operator=(const nocopy&) = delete;
3129 // for testing lambda expressions
3130 template <typename Ret, typename Fn> Ret eval(Fn f, Ret v)
3135 // for testing variadic templates and trailing return types
3136 template <typename V> auto sum(V first) -> V
3140 template <typename V, typename... Args> auto sum(V first, Args... rest) -> V
3142 return first + sum(rest...);
3147 # Test code for whether the C++ compiler supports C++11 (body of main)
3148 ac_cxx_conftest_cxx11_main='
3150 // Test auto and decltype
3152 auto a2 = 48573953.4;
3153 auto a3 = "String literal";
3156 for (auto i = a3; *i; ++i) { total += *i; }
3158 decltype(a2) a4 = 34895.034;
3162 short sa[cxx11test::get_val()] = { 0 };
3165 // Test initializer lists
3166 cxx11test::testinit il = { 4323, 435234.23544 };
3169 // Test range-based for
3170 int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3,
3171 14, 19, 17, 8, 6, 20, 16, 2, 11, 1};
3172 for (auto &x : array) { x += 23; }
3175 // Test lambda expressions
3176 using cxx11test::eval;
3177 assert (eval ([](int x) { return x*2; }, 21) == 42);
3179 assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0);
3181 assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0);
3185 // Test use of variadic templates
3186 using cxx11test::sum;
3189 auto c = sum(1.0, 2.0, 3.0);
3192 // Test constructor delegation
3193 cxx11test::delegate d1;
3194 cxx11test::delegate d2();
3195 cxx11test::delegate d3(45);
3198 // Test override and final
3199 cxx11test::overridden o1(55464);
3206 // Test template brackets
3207 test_template<::test_template<int>> v(test_template<int>(12));
3211 char const *utf8 = u8"UTF-8 string \u2500";
3212 char16_t const *utf16 = u"UTF-8 string \u2500";
3213 char32_t const *utf32 = U"UTF-32 string \u2500";
3217 # Test code for whether the C compiler supports C++11 (complete).
3218 ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals}
3219 ${ac_cxx_conftest_cxx11_globals}
3222 main (int argc, char **argv)
3225 ${ac_cxx_conftest_cxx98_main}
3226 ${ac_cxx_conftest_cxx11_main}
3231 # Test code for whether the C compiler supports C++98 (complete).
3232 ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals}
3234 main (int argc, char **argv)
3237 ${ac_cxx_conftest_cxx98_main}
3243 # Auxiliary files required by this configure script.
3244 ac_aux_files="config.rpath install-sh config.guess config.sub"
3246 # Locations in which to look for auxiliary files.
3247 ac_aux_dir_candidates="${srcdir}/config"
3249 # Search for a directory containing all of the required auxiliary files,
3250 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
3251 # If we don't find one directory that contains all the files we need,
3252 # we report the set of missing files from the *first* directory in
3253 # $ac_aux_dir_candidates and give up.
3254 ac_missing_aux_files=""
3255 ac_first_candidate=:
3256 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
3257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3259 for as_dir in $ac_aux_dir_candidates
3262 case $as_dir in #(((
3265 *) as_dir=$as_dir/ ;;
3269 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
3270 ac_aux_dir_found=yes
3272 for ac_aux in $ac_aux_files
3274 # As a special case, if "install-sh" is required, that requirement
3275 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
3276 # and $ac_install_sh is set appropriately for whichever one is found.
3277 if test x"$ac_aux" = x"install-sh"
3279 if test -f "${as_dir}install-sh"; then
3280 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
3281 ac_install_sh="${as_dir}install-sh -c"
3282 elif test -f "${as_dir}install.sh"; then
3283 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
3284 ac_install_sh="${as_dir}install.sh -c"
3285 elif test -f "${as_dir}shtool"; then
3286 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
3287 ac_install_sh="${as_dir}shtool install -c"
3290 if $ac_first_candidate; then
3291 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
3297 if test -f "${as_dir}${ac_aux}"; then
3298 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
3301 if $ac_first_candidate; then
3302 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
3309 if test "$ac_aux_dir_found" = yes; then
3310 ac_aux_dir="$as_dir"
3313 ac_first_candidate=false
3322 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
3326 # These three variables are undocumented and unsupported,
3327 # and are intended to be withdrawn in a future Autoconf release.
3328 # They can cause serious problems if a builder's source tree is in a directory
3329 # whose full name contains unusual characters.
3330 if test -f "${ac_aux_dir}config.guess"; then
3331 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
3333 if test -f "${ac_aux_dir}config.sub"; then
3334 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
3336 if test -f "$ac_aux_dir/configure"; then
3337 ac_configure="$SHELL ${ac_aux_dir}configure"
3340 # Check that the precious variables saved in the cache have kept the same
3342 ac_cache_corrupted=false
3343 for ac_var in $ac_precious_vars; do
3344 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3345 eval ac_new_set=\$ac_env_${ac_var}_set
3346 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3347 eval ac_new_val=\$ac_env_${ac_var}_value
3348 case $ac_old_set,$ac_new_set in
3350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3351 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3352 ac_cache_corrupted=: ;;
3354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3355 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3356 ac_cache_corrupted=: ;;
3359 if test "x$ac_old_val" != "x$ac_new_val"; then
3360 # differences in whitespace do not lead to failure.
3361 ac_old_val_w=`echo x $ac_old_val`
3362 ac_new_val_w=`echo x $ac_new_val`
3363 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3365 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3366 ac_cache_corrupted=:
3368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3369 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3370 eval $ac_var=\$ac_old_val
3372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3373 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
3374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3375 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
3378 # Pass precious variables to config.status.
3379 if test "$ac_new_set" = set; then
3381 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3382 *) ac_arg=$ac_var=$ac_new_val ;;
3384 case " $ac_configure_args " in
3385 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3386 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3390 if $ac_cache_corrupted; then
3391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3392 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3394 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
3395 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
3396 and start over" "$LINENO" 5
3398 ## -------------------- ##
3399 ## Main body of script. ##
3400 ## -------------------- ##
3403 ac_cpp='$CPP $CPPFLAGS'
3404 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3405 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3406 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3412 ac_config_headers="$ac_config_headers lib/config.h"
3425 ac_cpp='$CPP $CPPFLAGS'
3426 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3427 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3428 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3429 if test -n "$ac_tool_prefix"; then
3430 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3431 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3433 printf %s "checking for $ac_word... " >&6; }
3434 if test ${ac_cv_prog_CC+y}
3436 printf %s "(cached) " >&6
3438 if test -n "$CC"; then
3439 ac_cv_prog_CC="$CC" # Let the user override the test.
3441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3445 case $as_dir in #(((
3448 *) as_dir=$as_dir/ ;;
3450 for ac_exec_ext in '' $ac_executable_extensions; do
3451 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3452 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3453 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3463 if test -n "$CC"; then
3464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3465 printf "%s\n" "$CC" >&6; }
3467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3468 printf "%s\n" "no" >&6; }
3473 if test -z "$ac_cv_prog_CC"; then
3475 # Extract the first word of "gcc", so it can be a program name with args.
3476 set dummy gcc; ac_word=$2
3477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3478 printf %s "checking for $ac_word... " >&6; }
3479 if test ${ac_cv_prog_ac_ct_CC+y}
3481 printf %s "(cached) " >&6
3483 if test -n "$ac_ct_CC"; then
3484 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3490 case $as_dir in #(((
3493 *) as_dir=$as_dir/ ;;
3495 for ac_exec_ext in '' $ac_executable_extensions; do
3496 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3497 ac_cv_prog_ac_ct_CC="gcc"
3498 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3507 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3508 if test -n "$ac_ct_CC"; then
3509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3510 printf "%s\n" "$ac_ct_CC" >&6; }
3512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3513 printf "%s\n" "no" >&6; }
3516 if test "x$ac_ct_CC" = x; then
3519 case $cross_compiling:$ac_tool_warned in
3521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3522 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3523 ac_tool_warned=yes ;;
3531 if test -z "$CC"; then
3532 if test -n "$ac_tool_prefix"; then
3533 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3534 set dummy ${ac_tool_prefix}cc; ac_word=$2
3535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3536 printf %s "checking for $ac_word... " >&6; }
3537 if test ${ac_cv_prog_CC+y}
3539 printf %s "(cached) " >&6
3541 if test -n "$CC"; then
3542 ac_cv_prog_CC="$CC" # Let the user override the test.
3544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3548 case $as_dir in #(((
3551 *) as_dir=$as_dir/ ;;
3553 for ac_exec_ext in '' $ac_executable_extensions; do
3554 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3555 ac_cv_prog_CC="${ac_tool_prefix}cc"
3556 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3566 if test -n "$CC"; then
3567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3568 printf "%s\n" "$CC" >&6; }
3570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3571 printf "%s\n" "no" >&6; }
3577 if test -z "$CC"; then
3578 # Extract the first word of "cc", so it can be a program name with args.
3579 set dummy cc; ac_word=$2
3580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3581 printf %s "checking for $ac_word... " >&6; }
3582 if test ${ac_cv_prog_CC+y}
3584 printf %s "(cached) " >&6
3586 if test -n "$CC"; then
3587 ac_cv_prog_CC="$CC" # Let the user override the test.
3590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3594 case $as_dir in #(((
3597 *) as_dir=$as_dir/ ;;
3599 for ac_exec_ext in '' $ac_executable_extensions; do
3600 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3601 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3602 ac_prog_rejected=yes
3606 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3613 if test $ac_prog_rejected = yes; then
3614 # We found a bogon in the path, so make sure we never use it.
3615 set dummy $ac_cv_prog_CC
3617 if test $# != 0; then
3618 # We chose a different compiler from the bogus one.
3619 # However, it has the same basename, so the bogon will be chosen
3620 # first if we set CC to just the basename; use the full file name.
3622 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3628 if test -n "$CC"; then
3629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3630 printf "%s\n" "$CC" >&6; }
3632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3633 printf "%s\n" "no" >&6; }
3638 if test -z "$CC"; then
3639 if test -n "$ac_tool_prefix"; then
3640 for ac_prog in cl.exe
3642 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3643 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3645 printf %s "checking for $ac_word... " >&6; }
3646 if test ${ac_cv_prog_CC+y}
3648 printf %s "(cached) " >&6
3650 if test -n "$CC"; then
3651 ac_cv_prog_CC="$CC" # Let the user override the test.
3653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3657 case $as_dir in #(((
3660 *) as_dir=$as_dir/ ;;
3662 for ac_exec_ext in '' $ac_executable_extensions; do
3663 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3664 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3665 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3675 if test -n "$CC"; then
3676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3677 printf "%s\n" "$CC" >&6; }
3679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3680 printf "%s\n" "no" >&6; }
3684 test -n "$CC" && break
3687 if test -z "$CC"; then
3689 for ac_prog in cl.exe
3691 # Extract the first word of "$ac_prog", so it can be a program name with args.
3692 set dummy $ac_prog; ac_word=$2
3693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3694 printf %s "checking for $ac_word... " >&6; }
3695 if test ${ac_cv_prog_ac_ct_CC+y}
3697 printf %s "(cached) " >&6
3699 if test -n "$ac_ct_CC"; then
3700 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3706 case $as_dir in #(((
3709 *) as_dir=$as_dir/ ;;
3711 for ac_exec_ext in '' $ac_executable_extensions; do
3712 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3713 ac_cv_prog_ac_ct_CC="$ac_prog"
3714 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3723 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3724 if test -n "$ac_ct_CC"; then
3725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3726 printf "%s\n" "$ac_ct_CC" >&6; }
3728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3729 printf "%s\n" "no" >&6; }
3733 test -n "$ac_ct_CC" && break
3736 if test "x$ac_ct_CC" = x; then
3739 case $cross_compiling:$ac_tool_warned in
3741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3742 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3743 ac_tool_warned=yes ;;
3750 if test -z "$CC"; then
3751 if test -n "$ac_tool_prefix"; then
3752 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3753 set dummy ${ac_tool_prefix}clang; ac_word=$2
3754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3755 printf %s "checking for $ac_word... " >&6; }
3756 if test ${ac_cv_prog_CC+y}
3758 printf %s "(cached) " >&6
3760 if test -n "$CC"; then
3761 ac_cv_prog_CC="$CC" # Let the user override the test.
3763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3767 case $as_dir in #(((
3770 *) as_dir=$as_dir/ ;;
3772 for ac_exec_ext in '' $ac_executable_extensions; do
3773 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3774 ac_cv_prog_CC="${ac_tool_prefix}clang"
3775 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3785 if test -n "$CC"; then
3786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3787 printf "%s\n" "$CC" >&6; }
3789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3790 printf "%s\n" "no" >&6; }
3795 if test -z "$ac_cv_prog_CC"; then
3797 # Extract the first word of "clang", so it can be a program name with args.
3798 set dummy clang; ac_word=$2
3799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3800 printf %s "checking for $ac_word... " >&6; }
3801 if test ${ac_cv_prog_ac_ct_CC+y}
3803 printf %s "(cached) " >&6
3805 if test -n "$ac_ct_CC"; then
3806 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3812 case $as_dir in #(((
3815 *) as_dir=$as_dir/ ;;
3817 for ac_exec_ext in '' $ac_executable_extensions; do
3818 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3819 ac_cv_prog_ac_ct_CC="clang"
3820 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3829 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3830 if test -n "$ac_ct_CC"; then
3831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3832 printf "%s\n" "$ac_ct_CC" >&6; }
3834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3835 printf "%s\n" "no" >&6; }
3838 if test "x$ac_ct_CC" = x; then
3841 case $cross_compiling:$ac_tool_warned in
3843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3844 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3845 ac_tool_warned=yes ;;
3856 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3857 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3858 as_fn_error $? "no acceptable C compiler found in \$PATH
3859 See \`config.log' for more details" "$LINENO" 5; }
3861 # Provide some information about the compiler.
3862 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3865 for ac_option in --version -v -V -qversion -version; do
3866 { { ac_try="$ac_compiler $ac_option >&5"
3868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3869 *) ac_try_echo=$ac_try;;
3871 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3872 printf "%s\n" "$ac_try_echo"; } >&5
3873 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3875 if test -s conftest.err; then
3877 ... rest of stderr output deleted ...
3878 10q' conftest.err >conftest.er1
3879 cat conftest.er1 >&5
3881 rm -f conftest.er1 conftest.err
3882 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3883 test $ac_status = 0; }
3886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3887 /* end confdefs.h. */
3897 ac_clean_files_save=$ac_clean_files
3898 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3899 # Try to create an executable without -o first, disregard a.out.
3900 # It will help us diagnose broken compilers, and finding out an intuition
3902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3903 printf %s "checking whether the C compiler works... " >&6; }
3904 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3906 # The possible output files:
3907 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3910 for ac_file in $ac_files
3913 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3914 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3919 if { { ac_try="$ac_link_default"
3921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3922 *) ac_try_echo=$ac_try;;
3924 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3925 printf "%s\n" "$ac_try_echo"; } >&5
3926 (eval "$ac_link_default") 2>&5
3928 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3929 test $ac_status = 0; }
3931 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3932 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3933 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3934 # so that the user can short-circuit this test for compilers unknown to
3936 for ac_file in $ac_files ''
3938 test -f "$ac_file" || continue
3940 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3943 # We found the default executable, but exeext='' is most
3947 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3949 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3951 # We set ac_cv_exeext here because the later test for it is not
3952 # safe: cross compilers may not add the suffix if given an `-o'
3953 # argument, so we may need to know it at that point already.
3954 # Even if this section looks crufty: it has the advantage of
3961 test "$ac_cv_exeext" = no && ac_cv_exeext=
3966 if test -z "$ac_file"
3968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3969 printf "%s\n" "no" >&6; }
3970 printf "%s\n" "$as_me: failed program was:" >&5
3971 sed 's/^/| /' conftest.$ac_ext >&5
3973 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3974 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3975 as_fn_error 77 "C compiler cannot create executables
3976 See \`config.log' for more details" "$LINENO" 5; }
3978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3979 printf "%s\n" "yes" >&6; }
3981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3982 printf %s "checking for C compiler default output file name... " >&6; }
3983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3984 printf "%s\n" "$ac_file" >&6; }
3985 ac_exeext=$ac_cv_exeext
3987 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3988 ac_clean_files=$ac_clean_files_save
3989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3990 printf %s "checking for suffix of executables... " >&6; }
3991 if { { ac_try="$ac_link"
3993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3994 *) ac_try_echo=$ac_try;;
3996 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3997 printf "%s\n" "$ac_try_echo"; } >&5
3998 (eval "$ac_link") 2>&5
4000 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4001 test $ac_status = 0; }
4003 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4004 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4005 # work properly (i.e., refer to `conftest.exe'), while it won't with
4007 for ac_file in conftest.exe conftest conftest.*; do
4008 test -f "$ac_file" || continue
4010 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4011 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4017 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4018 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4019 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4020 See \`config.log' for more details" "$LINENO" 5; }
4022 rm -f conftest conftest$ac_cv_exeext
4023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4024 printf "%s\n" "$ac_cv_exeext" >&6; }
4026 rm -f conftest.$ac_ext
4027 EXEEXT=$ac_cv_exeext
4029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4030 /* end confdefs.h. */
4035 FILE *f = fopen ("conftest.out", "w");
4036 return ferror (f) || fclose (f) != 0;
4042 ac_clean_files="$ac_clean_files conftest.out"
4043 # Check that the compiler produces executables we can run. If not, either
4044 # the compiler is broken, or we cross compile.
4045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4046 printf %s "checking whether we are cross compiling... " >&6; }
4047 if test "$cross_compiling" != yes; then
4048 { { ac_try="$ac_link"
4050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4051 *) ac_try_echo=$ac_try;;
4053 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4054 printf "%s\n" "$ac_try_echo"; } >&5
4055 (eval "$ac_link") 2>&5
4057 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4058 test $ac_status = 0; }
4059 if { ac_try='./conftest$ac_cv_exeext'
4060 { { case "(($ac_try" in
4061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4062 *) ac_try_echo=$ac_try;;
4064 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4065 printf "%s\n" "$ac_try_echo"; } >&5
4066 (eval "$ac_try") 2>&5
4068 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4069 test $ac_status = 0; }; }; then
4072 if test "$cross_compiling" = maybe; then
4075 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4076 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4077 as_fn_error 77 "cannot run C compiled programs.
4078 If you meant to cross compile, use \`--host'.
4079 See \`config.log' for more details" "$LINENO" 5; }
4083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4084 printf "%s\n" "$cross_compiling" >&6; }
4086 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4087 ac_clean_files=$ac_clean_files_save
4088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4089 printf %s "checking for suffix of object files... " >&6; }
4090 if test ${ac_cv_objext+y}
4092 printf %s "(cached) " >&6
4094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4095 /* end confdefs.h. */
4105 rm -f conftest.o conftest.obj
4106 if { { ac_try="$ac_compile"
4108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4109 *) ac_try_echo=$ac_try;;
4111 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4112 printf "%s\n" "$ac_try_echo"; } >&5
4113 (eval "$ac_compile") 2>&5
4115 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4116 test $ac_status = 0; }
4118 for ac_file in conftest.o conftest.obj conftest.*; do
4119 test -f "$ac_file" || continue;
4121 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4122 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4127 printf "%s\n" "$as_me: failed program was:" >&5
4128 sed 's/^/| /' conftest.$ac_ext >&5
4130 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4131 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4132 as_fn_error $? "cannot compute suffix of object files: cannot compile
4133 See \`config.log' for more details" "$LINENO" 5; }
4135 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4138 printf "%s\n" "$ac_cv_objext" >&6; }
4139 OBJEXT=$ac_cv_objext
4141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4142 printf %s "checking whether the compiler supports GNU C... " >&6; }
4143 if test ${ac_cv_c_compiler_gnu+y}
4145 printf %s "(cached) " >&6
4147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4148 /* end confdefs.h. */
4161 if ac_fn_c_try_compile "$LINENO"
4167 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4168 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4172 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4173 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4175 if test $ac_compiler_gnu = yes; then
4180 ac_test_CFLAGS=${CFLAGS+y}
4181 ac_save_CFLAGS=$CFLAGS
4182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4183 printf %s "checking whether $CC accepts -g... " >&6; }
4184 if test ${ac_cv_prog_cc_g+y}
4186 printf %s "(cached) " >&6
4188 ac_save_c_werror_flag=$ac_c_werror_flag
4189 ac_c_werror_flag=yes
4192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4193 /* end confdefs.h. */
4203 if ac_fn_c_try_compile "$LINENO"
4208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4209 /* end confdefs.h. */
4219 if ac_fn_c_try_compile "$LINENO"
4223 ac_c_werror_flag=$ac_save_c_werror_flag
4225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4226 /* end confdefs.h. */
4236 if ac_fn_c_try_compile "$LINENO"
4240 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4242 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4244 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4245 ac_c_werror_flag=$ac_save_c_werror_flag
4247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4248 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4249 if test $ac_test_CFLAGS; then
4250 CFLAGS=$ac_save_CFLAGS
4251 elif test $ac_cv_prog_cc_g = yes; then
4252 if test "$GCC" = yes; then
4258 if test "$GCC" = yes; then
4265 if test x$ac_prog_cc_stdc = xno
4267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4268 printf %s "checking for $CC option to enable C11 features... " >&6; }
4269 if test ${ac_cv_prog_cc_c11+y}
4271 printf %s "(cached) " >&6
4273 ac_cv_prog_cc_c11=no
4275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4276 /* end confdefs.h. */
4277 $ac_c_conftest_c11_program
4279 for ac_arg in '' -std=gnu11
4281 CC="$ac_save_CC $ac_arg"
4282 if ac_fn_c_try_compile "$LINENO"
4284 ac_cv_prog_cc_c11=$ac_arg
4286 rm -f core conftest.err conftest.$ac_objext conftest.beam
4287 test "x$ac_cv_prog_cc_c11" != "xno" && break
4289 rm -f conftest.$ac_ext
4293 if test "x$ac_cv_prog_cc_c11" = xno
4295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4296 printf "%s\n" "unsupported" >&6; }
4298 if test "x$ac_cv_prog_cc_c11" = x
4300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4301 printf "%s\n" "none needed" >&6; }
4303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4304 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4305 CC="$CC $ac_cv_prog_cc_c11"
4307 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4311 if test x$ac_prog_cc_stdc = xno
4313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4314 printf %s "checking for $CC option to enable C99 features... " >&6; }
4315 if test ${ac_cv_prog_cc_c99+y}
4317 printf %s "(cached) " >&6
4319 ac_cv_prog_cc_c99=no
4321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4322 /* end confdefs.h. */
4323 $ac_c_conftest_c99_program
4325 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4327 CC="$ac_save_CC $ac_arg"
4328 if ac_fn_c_try_compile "$LINENO"
4330 ac_cv_prog_cc_c99=$ac_arg
4332 rm -f core conftest.err conftest.$ac_objext conftest.beam
4333 test "x$ac_cv_prog_cc_c99" != "xno" && break
4335 rm -f conftest.$ac_ext
4339 if test "x$ac_cv_prog_cc_c99" = xno
4341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4342 printf "%s\n" "unsupported" >&6; }
4344 if test "x$ac_cv_prog_cc_c99" = x
4346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4347 printf "%s\n" "none needed" >&6; }
4349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4350 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4351 CC="$CC $ac_cv_prog_cc_c99"
4353 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4357 if test x$ac_prog_cc_stdc = xno
4359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4360 printf %s "checking for $CC option to enable C89 features... " >&6; }
4361 if test ${ac_cv_prog_cc_c89+y}
4363 printf %s "(cached) " >&6
4365 ac_cv_prog_cc_c89=no
4367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4368 /* end confdefs.h. */
4369 $ac_c_conftest_c89_program
4371 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4373 CC="$ac_save_CC $ac_arg"
4374 if ac_fn_c_try_compile "$LINENO"
4376 ac_cv_prog_cc_c89=$ac_arg
4378 rm -f core conftest.err conftest.$ac_objext conftest.beam
4379 test "x$ac_cv_prog_cc_c89" != "xno" && break
4381 rm -f conftest.$ac_ext
4385 if test "x$ac_cv_prog_cc_c89" = xno
4387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4388 printf "%s\n" "unsupported" >&6; }
4390 if test "x$ac_cv_prog_cc_c89" = x
4392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4393 printf "%s\n" "none needed" >&6; }
4395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4396 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4397 CC="$CC $ac_cv_prog_cc_c89"
4399 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4405 ac_cpp='$CPP $CPPFLAGS'
4406 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4407 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4408 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4411 ac_header= ac_cache=
4412 for ac_item in $ac_header_c_list
4414 if test $ac_cache; then
4415 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
4416 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
4417 printf "%s\n" "#define $ac_item 1" >> confdefs.h
4419 ac_header= ac_cache=
4420 elif test $ac_header; then
4434 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
4437 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
4446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4447 printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4448 if test ${ac_cv_safe_to_define___extensions__+y}
4450 printf %s "(cached) " >&6
4452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4453 /* end confdefs.h. */
4455 # define __EXTENSIONS__ 1
4456 $ac_includes_default
4465 if ac_fn_c_try_compile "$LINENO"
4467 ac_cv_safe_to_define___extensions__=yes
4469 ac_cv_safe_to_define___extensions__=no
4471 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4474 printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
4476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
4477 printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
4478 if test ${ac_cv_should_define__xopen_source+y}
4480 printf %s "(cached) " >&6
4482 ac_cv_should_define__xopen_source=no
4483 if test $ac_cv_header_wchar_h = yes
4485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4486 /* end confdefs.h. */
4498 if ac_fn_c_try_compile "$LINENO"
4502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4503 /* end confdefs.h. */
4505 #define _XOPEN_SOURCE 500
4516 if ac_fn_c_try_compile "$LINENO"
4518 ac_cv_should_define__xopen_source=yes
4520 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4522 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
4526 printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
4528 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
4530 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
4532 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
4534 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
4536 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
4538 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
4540 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4542 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
4544 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
4546 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
4548 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
4550 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
4552 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
4554 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
4556 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
4558 if test $ac_cv_header_minix_config_h = yes
4561 printf "%s\n" "#define _MINIX 1" >>confdefs.h
4563 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
4565 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
4570 if test $ac_cv_safe_to_define___extensions__ = yes
4572 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
4575 if test $ac_cv_should_define__xopen_source = yes
4577 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
4584 E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \
4585 | awk '{print $3}' | tr \" " " | awk '{print $1}'`
4586 E2FSPROGS_DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
4587 | tr \" " " | awk '{print $1}'`
4588 E2FSPROGS_DAY=$(echo $E2FSPROGS_DATE | awk -F- '{print $1}' | sed -e '/^[1-9]$/s/^/0/')
4589 MONTH=`echo $E2FSPROGS_DATE | awk -F- '{print $2}'`
4590 YEAR=`echo $E2FSPROGS_DATE | awk -F- '{print $3}'`
4592 if expr $YEAR ">" 1900 > /dev/null ; then
4593 E2FSPROGS_YEAR=$YEAR
4594 elif expr $YEAR ">" 90 >/dev/null ; then
4595 E2FSPROGS_YEAR=19$YEAR
4597 E2FSPROGS_YEAR=20$YEAR
4601 Jan) MONTH_NUM=01; E2FSPROGS_MONTH="January" ;;
4602 Feb) MONTH_NUM=02; E2FSPROGS_MONTH="February" ;;
4603 Mar) MONTH_NUM=03; E2FSPROGS_MONTH="March" ;;
4604 Apr) MONTH_NUM=04; E2FSPROGS_MONTH="April" ;;
4605 May) MONTH_NUM=05; E2FSPROGS_MONTH="May" ;;
4606 Jun) MONTH_NUM=06; E2FSPROGS_MONTH="June" ;;
4607 Jul) MONTH_NUM=07; E2FSPROGS_MONTH="July" ;;
4608 Aug) MONTH_NUM=08; E2FSPROGS_MONTH="August" ;;
4609 Sep) MONTH_NUM=09; E2FSPROGS_MONTH="September" ;;
4610 Oct) MONTH_NUM=10; E2FSPROGS_MONTH="October" ;;
4611 Nov) MONTH_NUM=11; E2FSPROGS_MONTH="November" ;;
4612 Dec) MONTH_NUM=12; E2FSPROGS_MONTH="December" ;;
4613 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Unknown month $MONTH??" >&5
4614 printf "%s\n" "$as_me: WARNING: Unknown month $MONTH??" >&2;} ;;
4617 base_ver=`echo $E2FSPROGS_VERSION | \
4618 sed -e 's/-WIP//' -e 's/pre-//' -e 's/-PLUS//'`
4620 date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY}
4622 case $E2FSPROGS_VERSION in
4624 E2FSPROGS_PKGVER="$base_ver~WIP.$date_spec"
4627 E2FSPROGS_PKGVER="$base_ver"
4631 unset DATE MONTH YEAR base_ver pre_vers date_spec
4632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&5
4633 printf "%s\n" "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&6; }
4634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&5
4635 printf "%s\n" "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&6; }
4644 # Check whether --with-diet-libc was given.
4645 if test ${with_diet_libc+y}
4647 withval=$with_diet_libc; CC="diet cc -nostdinc"
4653 LIBS="$LIBS -lcompat"
4655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: CC=$CC" >&5
4656 printf "%s\n" "CC=$CC" >&6; }
4661 # Make sure we can run config.sub.
4662 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4663 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4666 printf %s "checking build system type... " >&6; }
4667 if test ${ac_cv_build+y}
4669 printf %s "(cached) " >&6
4671 ac_build_alias=$build_alias
4672 test "x$ac_build_alias" = x &&
4673 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4674 test "x$ac_build_alias" = x &&
4675 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4676 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4677 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4681 printf "%s\n" "$ac_cv_build" >&6; }
4682 case $ac_cv_build in
4684 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4687 ac_save_IFS=$IFS; IFS='-'
4693 # Remember, the first character of IFS is used to create $*,
4694 # except with old shells:
4697 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4701 printf %s "checking host system type... " >&6; }
4702 if test ${ac_cv_host+y}
4704 printf %s "(cached) " >&6
4706 if test "x$host_alias" = x; then
4707 ac_cv_host=$ac_cv_build
4709 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4710 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4715 printf "%s\n" "$ac_cv_host" >&6; }
4718 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4721 ac_save_IFS=$IFS; IFS='-'
4727 # Remember, the first character of IFS is used to create $*,
4728 # except with old shells:
4731 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
4736 printf %s "checking for dlopen in -ldl... " >&6; }
4737 if test ${ac_cv_lib_dl_dlopen+y}
4739 printf %s "(cached) " >&6
4741 ac_check_lib_save_LIBS=$LIBS
4743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4744 /* end confdefs.h. */
4746 /* Override any GCC internal prototype to avoid an error.
4747 Use char because int might match the return type of a GCC
4748 builtin and then its argument prototype would still apply. */
4758 if ac_fn_c_try_link "$LINENO"
4760 ac_cv_lib_dl_dlopen=yes
4762 ac_cv_lib_dl_dlopen=no
4764 rm -f core conftest.err conftest.$ac_objext conftest.beam \
4765 conftest$ac_exeext conftest.$ac_ext
4766 LIBS=$ac_check_lib_save_LIBS
4768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
4769 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
4770 if test "x$ac_cv_lib_dl_dlopen" = xyes
4777 # Check whether --with-cc was given.
4778 if test ${with_cc+y}
4780 withval=$with_cc; as_fn_error $? "--with-cc no longer supported; use CC= instead" "$LINENO" 5
4784 # Check whether --with-ccopts was given.
4785 if test ${with_ccopts+y}
4787 withval=$with_ccopts; as_fn_error $? "--with-ccopts no longer supported; use CFLAGS= instead" "$LINENO" 5
4791 # Check whether --with-ldopts was given.
4792 if test ${with_ldopts+y}
4794 withval=$with_ldopts; as_fn_error $? "--with-ldopts no longer supported; use LDFLAGS= instead" "$LINENO" 5
4798 ac_cpp='$CPP $CPPFLAGS'
4799 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4800 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4801 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4802 if test -n "$ac_tool_prefix"; then
4803 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4804 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4806 printf %s "checking for $ac_word... " >&6; }
4807 if test ${ac_cv_prog_CC+y}
4809 printf %s "(cached) " >&6
4811 if test -n "$CC"; then
4812 ac_cv_prog_CC="$CC" # Let the user override the test.
4814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4818 case $as_dir in #(((
4821 *) as_dir=$as_dir/ ;;
4823 for ac_exec_ext in '' $ac_executable_extensions; do
4824 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4825 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4826 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4836 if test -n "$CC"; then
4837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4838 printf "%s\n" "$CC" >&6; }
4840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4841 printf "%s\n" "no" >&6; }
4846 if test -z "$ac_cv_prog_CC"; then
4848 # Extract the first word of "gcc", so it can be a program name with args.
4849 set dummy gcc; ac_word=$2
4850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4851 printf %s "checking for $ac_word... " >&6; }
4852 if test ${ac_cv_prog_ac_ct_CC+y}
4854 printf %s "(cached) " >&6
4856 if test -n "$ac_ct_CC"; then
4857 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4863 case $as_dir in #(((
4866 *) as_dir=$as_dir/ ;;
4868 for ac_exec_ext in '' $ac_executable_extensions; do
4869 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4870 ac_cv_prog_ac_ct_CC="gcc"
4871 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4880 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4881 if test -n "$ac_ct_CC"; then
4882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4883 printf "%s\n" "$ac_ct_CC" >&6; }
4885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4886 printf "%s\n" "no" >&6; }
4889 if test "x$ac_ct_CC" = x; then
4892 case $cross_compiling:$ac_tool_warned in
4894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4895 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4896 ac_tool_warned=yes ;;
4904 if test -z "$CC"; then
4905 if test -n "$ac_tool_prefix"; then
4906 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4907 set dummy ${ac_tool_prefix}cc; ac_word=$2
4908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4909 printf %s "checking for $ac_word... " >&6; }
4910 if test ${ac_cv_prog_CC+y}
4912 printf %s "(cached) " >&6
4914 if test -n "$CC"; then
4915 ac_cv_prog_CC="$CC" # Let the user override the test.
4917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4921 case $as_dir in #(((
4924 *) as_dir=$as_dir/ ;;
4926 for ac_exec_ext in '' $ac_executable_extensions; do
4927 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4928 ac_cv_prog_CC="${ac_tool_prefix}cc"
4929 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4939 if test -n "$CC"; then
4940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4941 printf "%s\n" "$CC" >&6; }
4943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4944 printf "%s\n" "no" >&6; }
4950 if test -z "$CC"; then
4951 # Extract the first word of "cc", so it can be a program name with args.
4952 set dummy cc; ac_word=$2
4953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4954 printf %s "checking for $ac_word... " >&6; }
4955 if test ${ac_cv_prog_CC+y}
4957 printf %s "(cached) " >&6
4959 if test -n "$CC"; then
4960 ac_cv_prog_CC="$CC" # Let the user override the test.
4963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4967 case $as_dir in #(((
4970 *) as_dir=$as_dir/ ;;
4972 for ac_exec_ext in '' $ac_executable_extensions; do
4973 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4974 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4975 ac_prog_rejected=yes
4979 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4986 if test $ac_prog_rejected = yes; then
4987 # We found a bogon in the path, so make sure we never use it.
4988 set dummy $ac_cv_prog_CC
4990 if test $# != 0; then
4991 # We chose a different compiler from the bogus one.
4992 # However, it has the same basename, so the bogon will be chosen
4993 # first if we set CC to just the basename; use the full file name.
4995 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
5001 if test -n "$CC"; then
5002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5003 printf "%s\n" "$CC" >&6; }
5005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5006 printf "%s\n" "no" >&6; }
5011 if test -z "$CC"; then
5012 if test -n "$ac_tool_prefix"; then
5013 for ac_prog in cl.exe
5015 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5016 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5018 printf %s "checking for $ac_word... " >&6; }
5019 if test ${ac_cv_prog_CC+y}
5021 printf %s "(cached) " >&6
5023 if test -n "$CC"; then
5024 ac_cv_prog_CC="$CC" # Let the user override the test.
5026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5030 case $as_dir in #(((
5033 *) as_dir=$as_dir/ ;;
5035 for ac_exec_ext in '' $ac_executable_extensions; do
5036 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5037 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5038 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5048 if test -n "$CC"; then
5049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5050 printf "%s\n" "$CC" >&6; }
5052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5053 printf "%s\n" "no" >&6; }
5057 test -n "$CC" && break
5060 if test -z "$CC"; then
5062 for ac_prog in cl.exe
5064 # Extract the first word of "$ac_prog", so it can be a program name with args.
5065 set dummy $ac_prog; ac_word=$2
5066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5067 printf %s "checking for $ac_word... " >&6; }
5068 if test ${ac_cv_prog_ac_ct_CC+y}
5070 printf %s "(cached) " >&6
5072 if test -n "$ac_ct_CC"; then
5073 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5079 case $as_dir in #(((
5082 *) as_dir=$as_dir/ ;;
5084 for ac_exec_ext in '' $ac_executable_extensions; do
5085 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5086 ac_cv_prog_ac_ct_CC="$ac_prog"
5087 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5096 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5097 if test -n "$ac_ct_CC"; then
5098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5099 printf "%s\n" "$ac_ct_CC" >&6; }
5101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5102 printf "%s\n" "no" >&6; }
5106 test -n "$ac_ct_CC" && break
5109 if test "x$ac_ct_CC" = x; then
5112 case $cross_compiling:$ac_tool_warned in
5114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5115 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5116 ac_tool_warned=yes ;;
5123 if test -z "$CC"; then
5124 if test -n "$ac_tool_prefix"; then
5125 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
5126 set dummy ${ac_tool_prefix}clang; ac_word=$2
5127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5128 printf %s "checking for $ac_word... " >&6; }
5129 if test ${ac_cv_prog_CC+y}
5131 printf %s "(cached) " >&6
5133 if test -n "$CC"; then
5134 ac_cv_prog_CC="$CC" # Let the user override the test.
5136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5140 case $as_dir in #(((
5143 *) as_dir=$as_dir/ ;;
5145 for ac_exec_ext in '' $ac_executable_extensions; do
5146 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5147 ac_cv_prog_CC="${ac_tool_prefix}clang"
5148 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5158 if test -n "$CC"; then
5159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5160 printf "%s\n" "$CC" >&6; }
5162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5163 printf "%s\n" "no" >&6; }
5168 if test -z "$ac_cv_prog_CC"; then
5170 # Extract the first word of "clang", so it can be a program name with args.
5171 set dummy clang; ac_word=$2
5172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5173 printf %s "checking for $ac_word... " >&6; }
5174 if test ${ac_cv_prog_ac_ct_CC+y}
5176 printf %s "(cached) " >&6
5178 if test -n "$ac_ct_CC"; then
5179 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5185 case $as_dir in #(((
5188 *) as_dir=$as_dir/ ;;
5190 for ac_exec_ext in '' $ac_executable_extensions; do
5191 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5192 ac_cv_prog_ac_ct_CC="clang"
5193 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5202 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5203 if test -n "$ac_ct_CC"; then
5204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5205 printf "%s\n" "$ac_ct_CC" >&6; }
5207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5208 printf "%s\n" "no" >&6; }
5211 if test "x$ac_ct_CC" = x; then
5214 case $cross_compiling:$ac_tool_warned in
5216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5217 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5218 ac_tool_warned=yes ;;
5229 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5230 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5231 as_fn_error $? "no acceptable C compiler found in \$PATH
5232 See \`config.log' for more details" "$LINENO" 5; }
5234 # Provide some information about the compiler.
5235 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5238 for ac_option in --version -v -V -qversion -version; do
5239 { { ac_try="$ac_compiler $ac_option >&5"
5241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5242 *) ac_try_echo=$ac_try;;
5244 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5245 printf "%s\n" "$ac_try_echo"; } >&5
5246 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5248 if test -s conftest.err; then
5250 ... rest of stderr output deleted ...
5251 10q' conftest.err >conftest.er1
5252 cat conftest.er1 >&5
5254 rm -f conftest.er1 conftest.err
5255 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5256 test $ac_status = 0; }
5259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
5260 printf %s "checking whether the compiler supports GNU C... " >&6; }
5261 if test ${ac_cv_c_compiler_gnu+y}
5263 printf %s "(cached) " >&6
5265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5266 /* end confdefs.h. */
5279 if ac_fn_c_try_compile "$LINENO"
5285 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5286 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5290 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
5291 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5293 if test $ac_compiler_gnu = yes; then
5298 ac_test_CFLAGS=${CFLAGS+y}
5299 ac_save_CFLAGS=$CFLAGS
5300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5301 printf %s "checking whether $CC accepts -g... " >&6; }
5302 if test ${ac_cv_prog_cc_g+y}
5304 printf %s "(cached) " >&6
5306 ac_save_c_werror_flag=$ac_c_werror_flag
5307 ac_c_werror_flag=yes
5310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5311 /* end confdefs.h. */
5321 if ac_fn_c_try_compile "$LINENO"
5326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5327 /* end confdefs.h. */
5337 if ac_fn_c_try_compile "$LINENO"
5341 ac_c_werror_flag=$ac_save_c_werror_flag
5343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5344 /* end confdefs.h. */
5354 if ac_fn_c_try_compile "$LINENO"
5358 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5360 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5362 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5363 ac_c_werror_flag=$ac_save_c_werror_flag
5365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5366 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
5367 if test $ac_test_CFLAGS; then
5368 CFLAGS=$ac_save_CFLAGS
5369 elif test $ac_cv_prog_cc_g = yes; then
5370 if test "$GCC" = yes; then
5376 if test "$GCC" = yes; then
5383 if test x$ac_prog_cc_stdc = xno
5385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
5386 printf %s "checking for $CC option to enable C11 features... " >&6; }
5387 if test ${ac_cv_prog_cc_c11+y}
5389 printf %s "(cached) " >&6
5391 ac_cv_prog_cc_c11=no
5393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5394 /* end confdefs.h. */
5395 $ac_c_conftest_c11_program
5397 for ac_arg in '' -std=gnu11
5399 CC="$ac_save_CC $ac_arg"
5400 if ac_fn_c_try_compile "$LINENO"
5402 ac_cv_prog_cc_c11=$ac_arg
5404 rm -f core conftest.err conftest.$ac_objext conftest.beam
5405 test "x$ac_cv_prog_cc_c11" != "xno" && break
5407 rm -f conftest.$ac_ext
5411 if test "x$ac_cv_prog_cc_c11" = xno
5413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5414 printf "%s\n" "unsupported" >&6; }
5416 if test "x$ac_cv_prog_cc_c11" = x
5418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5419 printf "%s\n" "none needed" >&6; }
5421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
5422 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
5423 CC="$CC $ac_cv_prog_cc_c11"
5425 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
5429 if test x$ac_prog_cc_stdc = xno
5431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
5432 printf %s "checking for $CC option to enable C99 features... " >&6; }
5433 if test ${ac_cv_prog_cc_c99+y}
5435 printf %s "(cached) " >&6
5437 ac_cv_prog_cc_c99=no
5439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5440 /* end confdefs.h. */
5441 $ac_c_conftest_c99_program
5443 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
5445 CC="$ac_save_CC $ac_arg"
5446 if ac_fn_c_try_compile "$LINENO"
5448 ac_cv_prog_cc_c99=$ac_arg
5450 rm -f core conftest.err conftest.$ac_objext conftest.beam
5451 test "x$ac_cv_prog_cc_c99" != "xno" && break
5453 rm -f conftest.$ac_ext
5457 if test "x$ac_cv_prog_cc_c99" = xno
5459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5460 printf "%s\n" "unsupported" >&6; }
5462 if test "x$ac_cv_prog_cc_c99" = x
5464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5465 printf "%s\n" "none needed" >&6; }
5467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5468 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
5469 CC="$CC $ac_cv_prog_cc_c99"
5471 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
5475 if test x$ac_prog_cc_stdc = xno
5477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
5478 printf %s "checking for $CC option to enable C89 features... " >&6; }
5479 if test ${ac_cv_prog_cc_c89+y}
5481 printf %s "(cached) " >&6
5483 ac_cv_prog_cc_c89=no
5485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5486 /* end confdefs.h. */
5487 $ac_c_conftest_c89_program
5489 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5491 CC="$ac_save_CC $ac_arg"
5492 if ac_fn_c_try_compile "$LINENO"
5494 ac_cv_prog_cc_c89=$ac_arg
5496 rm -f core conftest.err conftest.$ac_objext conftest.beam
5497 test "x$ac_cv_prog_cc_c89" != "xno" && break
5499 rm -f conftest.$ac_ext
5503 if test "x$ac_cv_prog_cc_c89" = xno
5505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5506 printf "%s\n" "unsupported" >&6; }
5508 if test "x$ac_cv_prog_cc_c89" = x
5510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5511 printf "%s\n" "none needed" >&6; }
5513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5514 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
5515 CC="$CC $ac_cv_prog_cc_c89"
5517 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
5523 ac_cpp='$CPP $CPPFLAGS'
5524 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5525 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5526 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5528 if test "$GCC" = yes; then
5529 RDYNAMIC="-rdynamic"
5533 ac_cpp='$CPP $CPPFLAGS'
5534 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5535 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5536 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5538 printf %s "checking how to run the C preprocessor... " >&6; }
5539 # On Suns, sometimes $CPP names a directory.
5540 if test -n "$CPP" && test -d "$CPP"; then
5543 if test -z "$CPP"; then
5544 if test ${ac_cv_prog_CPP+y}
5546 printf %s "(cached) " >&6
5548 # Double quotes because $CC needs to be expanded
5549 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
5552 for ac_c_preproc_warn_flag in '' yes
5554 # Use a header file that comes with gcc, so configuring glibc
5555 # with a fresh cross-compiler works.
5556 # On the NeXT, cc -E runs the code through the compiler's parser,
5557 # not just through cpp. "Syntax error" is here to catch this case.
5558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5559 /* end confdefs.h. */
5563 if ac_fn_c_try_cpp "$LINENO"
5567 # Broken: fails on valid input.
5570 rm -f conftest.err conftest.i conftest.$ac_ext
5572 # OK, works on sane cases. Now check whether nonexistent headers
5573 # can be detected and how.
5574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5575 /* end confdefs.h. */
5576 #include <ac_nonexistent.h>
5578 if ac_fn_c_try_cpp "$LINENO"
5580 # Broken: success on invalid input.
5583 # Passes both tests.
5587 rm -f conftest.err conftest.i conftest.$ac_ext
5590 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5591 rm -f conftest.i conftest.err conftest.$ac_ext
5605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5606 printf "%s\n" "$CPP" >&6; }
5608 for ac_c_preproc_warn_flag in '' yes
5610 # Use a header file that comes with gcc, so configuring glibc
5611 # with a fresh cross-compiler works.
5612 # On the NeXT, cc -E runs the code through the compiler's parser,
5613 # not just through cpp. "Syntax error" is here to catch this case.
5614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5615 /* end confdefs.h. */
5619 if ac_fn_c_try_cpp "$LINENO"
5623 # Broken: fails on valid input.
5626 rm -f conftest.err conftest.i conftest.$ac_ext
5628 # OK, works on sane cases. Now check whether nonexistent headers
5629 # can be detected and how.
5630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5631 /* end confdefs.h. */
5632 #include <ac_nonexistent.h>
5634 if ac_fn_c_try_cpp "$LINENO"
5636 # Broken: success on invalid input.
5639 # Passes both tests.
5643 rm -f conftest.err conftest.i conftest.$ac_ext
5646 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5647 rm -f conftest.i conftest.err conftest.$ac_ext
5652 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5653 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5654 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5655 See \`config.log' for more details" "$LINENO" 5; }
5659 ac_cpp='$CPP $CPPFLAGS'
5660 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5661 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5662 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for additional special compiler flags" >&5
5665 printf %s "checking for additional special compiler flags... " >&6; }
5666 if test "$GCC" = yes
5669 alpha) addcflags="-mieee" ;;
5672 if test "x$addcflags" != x
5674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $addcflags" >&5
5675 printf "%s\n" "$addcflags" >&6; }
5676 CFLAGS="$addcflags $CFLAGS"
5678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: (none)" >&5
5679 printf "%s\n" "(none)" >&6; }
5685 # Check whether --with-root-prefix was given.
5686 if test ${with_root_prefix+y}
5688 withval=$with_root_prefix; root_prefix=$withval
5692 # Check whether --enable-maintainer-mode was given.
5693 if test ${enable_maintainer_mode+y}
5695 enableval=$enable_maintainer_mode; if test "$enableval" = "no"
5698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode" >&5
5699 printf "%s\n" "Disabling maintainer mode" >&6; }
5702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling maintainer mode" >&5
5703 printf "%s\n" "Enabling maintainer mode" >&6; }
5708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode by default" >&5
5709 printf "%s\n" "Disabling maintainer mode by default" >&6; }
5714 # Check whether --enable-symlink-install was given.
5715 if test ${enable_symlink_install+y}
5717 enableval=$enable_symlink_install; if test "$enableval" = "no"
5719 LINK_INSTALL_FLAGS=-f
5720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install" >&5
5721 printf "%s\n" "Disabling symlinks for install" >&6; }
5723 LINK_INSTALL_FLAGS=-sf
5724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for install" >&5
5725 printf "%s\n" "Enabling symlinks for install" >&6; }
5729 LINK_INSTALL_FLAGS=-f
5730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install by default" >&5
5731 printf "%s\n" "Disabling symlinks for install by default" >&6; }
5736 relative_symlink_defined=
5737 # Check whether --enable-relative-symlinks was given.
5738 if test ${enable_relative_symlinks+y}
5740 enableval=$enable_relative_symlinks; if test "$enableval" = "no"
5743 relative_symlink_defined=yes
5744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
5745 printf "%s\n" "Disabling relative symlinks for install" >&6; }
5747 SYMLINK_RELATIVE=--relative
5748 relative_symlink_defined=yes
5749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5
5750 printf "%s\n" "Enabling relative symlinks for install" >&6; }
5754 # Check whether --enable-symlink-relative-symlinks was given.
5755 if test ${enable_symlink_relative_symlinks+y}
5757 enableval=$enable_symlink_relative_symlinks; if test "$enableval" = "no"
5759 SYMLINK_RELATIVE=yes
5760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
5761 printf "%s\n" "Disabling relative symlinks for install" >&6; }
5763 SYMLINK_RELATIVE=--relative
5764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5
5765 printf "%s\n" "Enabling relative symlinks for install" >&6; }
5769 if test -z "$relative_symlink_defined"
5772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install by default" >&5
5773 printf "%s\n" "Disabling relative symlinks for install by default" >&6; }
5779 # Check whether --enable-symlink-build was given.
5780 if test ${enable_symlink_build+y}
5782 enableval=$enable_symlink_build; if test "$enableval" = "no"
5785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build" >&5
5786 printf "%s\n" "Disabling symlinks for build" >&6; }
5789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for build" >&5
5790 printf "%s\n" "Enabling symlinks for build" >&6; }
5795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build by default" >&5
5796 printf "%s\n" "Disabling symlinks for build by default" >&6; }
5801 # Check whether --enable-verbose-makecmds was given.
5802 if test ${enable_verbose_makecmds+y}
5804 enableval=$enable_verbose_makecmds; if test "$enableval" = "no"
5806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
5807 printf "%s\n" "Disabling verbose make commands" >&6; }
5812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling verbose make commands" >&5
5813 printf "%s\n" "Enabling verbose make commands" >&6; }
5820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
5821 printf "%s\n" "Disabling verbose make commands" >&6; }
5831 E2_PKG_CONFIG_STATIC=--static
5834 # Check whether --enable-elf-shlibs was given.
5835 if test ${enable_elf_shlibs+y}
5837 enableval=$enable_elf_shlibs; if test "$enableval" = "no"
5840 MAKEFILE_ELF=/dev/null
5841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries" >&5
5842 printf "%s\n" "Disabling ELF shared libraries" >&6; }
5844 E2_PKG_CONFIG_STATIC=
5846 MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
5849 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
5855 LDFLAG_DYNAMIC='-Wl,-rpath-link,$(top_builddir)/lib'
5856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling ELF shared libraries" >&5
5857 printf "%s\n" "Enabling ELF shared libraries" >&6; }
5861 MAKEFILE_ELF=/dev/null
5863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries by default" >&5
5864 printf "%s\n" "Disabling ELF shared libraries by default" >&6; }
5870 # Check whether --enable-bsd-shlibs was given.
5871 if test ${enable_bsd_shlibs+y}
5873 enableval=$enable_bsd_shlibs; if test "$enableval" = "no"
5876 MAKEFILE_BSDLIB=/dev/null
5877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries" >&5
5878 printf "%s\n" "Disabling BSD shared libraries" >&6; }
5880 E2_PKG_CONFIG_STATIC=
5882 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
5886 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib
5890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling BSD shared libraries" >&5
5891 printf "%s\n" "Enabling BSD shared libraries" >&6; }
5895 MAKEFILE_BSDLIB=/dev/null
5897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries by default" >&5
5898 printf "%s\n" "Disabling BSD shared libraries by default" >&6; }
5904 # Check whether --enable-profile was given.
5905 if test ${enable_profile+y}
5907 enableval=$enable_profile; if test "$enableval" = "no"
5910 MAKEFILE_PROFILE=/dev/null
5911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries" >&5
5912 printf "%s\n" "Disabling profiling libraries" >&6; }
5915 MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
5916 PROFILED_LIB_EXT=_p.a
5917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Building profiling libraries" >&5
5918 printf "%s\n" "Building profiling libraries" >&6; }
5923 MAKEFILE_PROFILE=/dev/null
5924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries by default" >&5
5925 printf "%s\n" "Disabling profiling libraries by default" >&6; }
5931 # Check whether --enable-gcov was given.
5932 if test ${enable_gcov+y}
5934 enableval=$enable_gcov; if test "$enableval" = "yes"
5936 CFLAGS="-g -fprofile-arcs -ftest-coverage"
5937 LDFLAGS="-fprofile-arcs -ftest-coverage"
5938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling gcov support" >&5
5939 printf "%s\n" "Enabling gcov support" >&6; }
5944 CFLAGS_SHLIB="${CFLAGS_SHLIB:-$CFLAGS}"
5945 CFLAGS_STLIB="${CFLAGS_STLIB:-$CFLAGS}"
5946 LDFLAGS_SHLIB=${LDFLAGS_SHLIB:-$LDFLAGS}
5947 LDFLAGS_STATIC=${LDFLAGS_STATIC:-$LDFLAGS}
5948 # Check whether --enable-hardening was given.
5949 if test ${enable_hardening+y}
5951 enableval=$enable_hardening; if test "$enableval" = "yes"
5953 HARDEN_CFLAGS="-D_FORTIFY_SOURCE=2 -fstack-protector-strong"
5954 HARDEN_LDFLAGS="-Wl,-z,relro -Wl,-z,now"
5955 CFLAGS="$CFLAGS $HARDEN_CFLAGS -fPIE"
5956 CFLAGS_SHLIB="$CFLAGS_SHLIB $HARDEN_CFLAGS"
5957 CFLAGS_STLIB="$CFLAGS_STLIB $HARDEN_CFLAGS -fPIE"
5958 LDFLAGS="$LDFLAGS $HARDEN_LDFLAGS -fPIE -pie"
5959 LDFLAGS_STATIC="$LDFLAGS_STATIC $HARDEN_LDFLAGS"
5960 LDFLAGS_SHLIB="$LDFLAGS_SHLIB $HARDEN_LDFLAGS"
5961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling hardening support" >&5
5962 printf "%s\n" "Enabling hardening support" >&6; }
5972 # Check whether --enable-jbd-debug was given.
5973 if test ${enable_jbd_debug+y}
5975 enableval=$enable_jbd_debug; if test "$enableval" = "no"
5977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging" >&5
5978 printf "%s\n" "Disabling journal debugging" >&6; }
5981 printf "%s\n" "#define CONFIG_JBD_DEBUG 1" >>confdefs.h
5983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling journal debugging" >&5
5984 printf "%s\n" "Enabling journal debugging" >&6; }
5988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging by default" >&5
5989 printf "%s\n" "Disabling journal debugging by default" >&6; }
5993 # Check whether --enable-blkid-debug was given.
5994 if test ${enable_blkid_debug+y}
5996 enableval=$enable_blkid_debug; if test "$enableval" = "no"
5998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging" >&5
5999 printf "%s\n" "Disabling blkid debugging" >&6; }
6002 printf "%s\n" "#define CONFIG_BLKID_DEBUG 1" >>confdefs.h
6004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling blkid debugging" >&5
6005 printf "%s\n" "Enabling blkid debugging" >&6; }
6009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging by default" >&5
6010 printf "%s\n" "Disabling blkid debugging by default" >&6; }
6014 # Check whether --enable-testio-debug was given.
6015 if test ${enable_testio_debug+y}
6017 enableval=$enable_testio_debug;
6018 if test "$enableval" = "no"
6020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling testio debugging" >&5
6021 printf "%s\n" "Disabling testio debugging" >&6; }
6025 printf "%s\n" "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
6027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging" >&5
6028 printf "%s\n" "Enabling testio debugging" >&6; }
6032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging by default" >&5
6033 printf "%s\n" "Enabling testio debugging by default" >&6; }
6034 printf "%s\n" "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
6041 # Check whether --enable-developer-features was given.
6042 if test ${enable_developer_features+y}
6044 enableval=$enable_developer_features;
6045 if test "$enableval" = "yes"
6048 printf "%s\n" "#define CONFIG_DEVELOPER_FEATURES 1" >>confdefs.h
6050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling ext4 developer features" >&5
6051 printf "%s\n" "Enabling ext4 developer features" >&6; }
6053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling ext4 developer features" >&5
6054 printf "%s\n" "Disabling ext4 developer features" >&6; }
6055 DEV_FEATURES_CMT="#"
6059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling ext4 developer features by default" >&5
6060 printf "%s\n" "Disabling ext4 developer features by default" >&6; }
6073 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
6074 if test -n "$ac_tool_prefix"; then
6075 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
6076 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
6077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6078 printf %s "checking for $ac_word... " >&6; }
6079 if test ${ac_cv_path_PKG_CONFIG+y}
6081 printf %s "(cached) " >&6
6085 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6092 case $as_dir in #(((
6095 *) as_dir=$as_dir/ ;;
6097 for ac_exec_ext in '' $ac_executable_extensions; do
6098 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6099 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
6100 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6110 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6111 if test -n "$PKG_CONFIG"; then
6112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
6113 printf "%s\n" "$PKG_CONFIG" >&6; }
6115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6116 printf "%s\n" "no" >&6; }
6121 if test -z "$ac_cv_path_PKG_CONFIG"; then
6122 ac_pt_PKG_CONFIG=$PKG_CONFIG
6123 # Extract the first word of "pkg-config", so it can be a program name with args.
6124 set dummy pkg-config; ac_word=$2
6125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6126 printf %s "checking for $ac_word... " >&6; }
6127 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
6129 printf %s "(cached) " >&6
6131 case $ac_pt_PKG_CONFIG in
6133 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
6136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6140 case $as_dir in #(((
6143 *) as_dir=$as_dir/ ;;
6145 for ac_exec_ext in '' $ac_executable_extensions; do
6146 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6147 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
6148 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6158 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
6159 if test -n "$ac_pt_PKG_CONFIG"; then
6160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
6161 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
6163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6164 printf "%s\n" "no" >&6; }
6167 if test "x$ac_pt_PKG_CONFIG" = x; then
6170 case $cross_compiling:$ac_tool_warned in
6172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6173 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6174 ac_tool_warned=yes ;;
6176 PKG_CONFIG=$ac_pt_PKG_CONFIG
6179 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
6183 if test -n "$PKG_CONFIG"; then
6184 _pkg_min_version=0.9.0
6185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
6186 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
6187 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
6188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6189 printf "%s\n" "yes" >&6; }
6191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6192 printf "%s\n" "no" >&6; }
6201 DEPPROFILED_LIBUUID=
6203 # Check whether --enable-libuuid was given.
6204 if test ${enable_libuuid+y}
6206 enableval=$enable_libuuid; if test "$enableval" = "no"
6208 if test -z "$PKG_CONFIG"; then
6209 as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5
6212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
6213 printf %s "checking for uuid_generate in -luuid... " >&6; }
6214 if test ${ac_cv_lib_uuid_uuid_generate+y}
6216 printf %s "(cached) " >&6
6218 ac_check_lib_save_LIBS=$LIBS
6220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6221 /* end confdefs.h. */
6223 /* Override any GCC internal prototype to avoid an error.
6224 Use char because int might match the return type of a GCC
6225 builtin and then its argument prototype would still apply. */
6226 char uuid_generate ();
6230 return uuid_generate ();
6235 if ac_fn_c_try_link "$LINENO"
6237 ac_cv_lib_uuid_uuid_generate=yes
6239 ac_cv_lib_uuid_uuid_generate=no
6241 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6242 conftest$ac_exeext conftest.$ac_ext
6243 LIBS=$ac_check_lib_save_LIBS
6245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
6246 printf "%s\n" "$ac_cv_lib_uuid_uuid_generate" >&6; }
6247 if test "x$ac_cv_lib_uuid_uuid_generate" = xyes
6249 LIBUUID=`$PKG_CONFIG --libs uuid`;
6250 STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid`
6252 as_fn_error $? "external uuid library not found" "$LINENO" 5
6255 PROFILED_LIBUUID=$LIBUUID
6257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling private uuid library" >&5
6258 printf "%s\n" "Disabling private uuid library" >&6; }
6260 LIBUUID='$(LIB)/libuuid'$LIB_EXT
6262 STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
6263 DEPSTATIC_LIBUUID=$STATIC_LIBUUID
6264 PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
6265 DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
6266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library" >&5
6267 printf "%s\n" "Enabling private uuid library" >&6; }
6271 if test -n "$PKG_CONFIG"; then
6272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
6273 printf %s "checking for uuid_generate in -luuid... " >&6; }
6274 if test ${ac_cv_lib_uuid_uuid_generate+y}
6276 printf %s "(cached) " >&6
6278 ac_check_lib_save_LIBS=$LIBS
6280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6281 /* end confdefs.h. */
6283 /* Override any GCC internal prototype to avoid an error.
6284 Use char because int might match the return type of a GCC
6285 builtin and then its argument prototype would still apply. */
6286 char uuid_generate ();
6290 return uuid_generate ();
6295 if ac_fn_c_try_link "$LINENO"
6297 ac_cv_lib_uuid_uuid_generate=yes
6299 ac_cv_lib_uuid_uuid_generate=no
6301 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6302 conftest$ac_exeext conftest.$ac_ext
6303 LIBS=$ac_check_lib_save_LIBS
6305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
6306 printf "%s\n" "$ac_cv_lib_uuid_uuid_generate" >&6; }
6307 if test "x$ac_cv_lib_uuid_uuid_generate" = xyes
6309 LIBUUID=`$PKG_CONFIG --libs uuid`;
6310 STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid`
6314 if test -n "$LIBUUID"; then
6315 PROFILED_LIBUUID=$LIBUUID
6317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Using system uuid by default" >&5
6318 printf "%s\n" "Using system uuid by default" >&6; }
6320 LIBUUID='$(LIB)/libuuid'$LIB_EXT
6322 STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
6323 DEPSTATIC_LIBUUID=$STATIC_LIBUUID
6324 PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
6325 DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
6326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library by default" >&5
6327 printf "%s\n" "Enabling private uuid library by default" >&6; }
6346 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
6347 if test -n "$ac_tool_prefix"; then
6348 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
6349 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
6350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6351 printf %s "checking for $ac_word... " >&6; }
6352 if test ${ac_cv_path_PKG_CONFIG+y}
6354 printf %s "(cached) " >&6
6358 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6365 case $as_dir in #(((
6368 *) as_dir=$as_dir/ ;;
6370 for ac_exec_ext in '' $ac_executable_extensions; do
6371 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6372 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
6373 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6383 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6384 if test -n "$PKG_CONFIG"; then
6385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
6386 printf "%s\n" "$PKG_CONFIG" >&6; }
6388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6389 printf "%s\n" "no" >&6; }
6394 if test -z "$ac_cv_path_PKG_CONFIG"; then
6395 ac_pt_PKG_CONFIG=$PKG_CONFIG
6396 # Extract the first word of "pkg-config", so it can be a program name with args.
6397 set dummy pkg-config; ac_word=$2
6398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6399 printf %s "checking for $ac_word... " >&6; }
6400 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
6402 printf %s "(cached) " >&6
6404 case $ac_pt_PKG_CONFIG in
6406 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
6409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6413 case $as_dir in #(((
6416 *) as_dir=$as_dir/ ;;
6418 for ac_exec_ext in '' $ac_executable_extensions; do
6419 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6420 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
6421 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6431 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
6432 if test -n "$ac_pt_PKG_CONFIG"; then
6433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
6434 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
6436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6437 printf "%s\n" "no" >&6; }
6440 if test "x$ac_pt_PKG_CONFIG" = x; then
6443 case $cross_compiling:$ac_tool_warned in
6445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6446 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6447 ac_tool_warned=yes ;;
6449 PKG_CONFIG=$ac_pt_PKG_CONFIG
6452 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
6456 if test -n "$PKG_CONFIG"; then
6457 _pkg_min_version=0.9.0
6458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
6459 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
6460 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
6461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6462 printf "%s\n" "yes" >&6; }
6464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6465 printf "%s\n" "no" >&6; }
6474 DEPPROFILED_LIBBLKID=
6477 # Check whether --enable-libblkid was given.
6478 if test ${enable_libblkid+y}
6480 enableval=$enable_libblkid; if test "$enableval" = "no"
6482 if test -z "$PKG_CONFIG"; then
6483 as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5
6486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
6487 printf %s "checking for blkid_get_cache in -lblkid... " >&6; }
6488 if test ${ac_cv_lib_blkid_blkid_get_cache+y}
6490 printf %s "(cached) " >&6
6492 ac_check_lib_save_LIBS=$LIBS
6493 LIBS="-lblkid -luuid $LIBS"
6494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6495 /* end confdefs.h. */
6497 /* Override any GCC internal prototype to avoid an error.
6498 Use char because int might match the return type of a GCC
6499 builtin and then its argument prototype would still apply. */
6500 char blkid_get_cache ();
6504 return blkid_get_cache ();
6509 if ac_fn_c_try_link "$LINENO"
6511 ac_cv_lib_blkid_blkid_get_cache=yes
6513 ac_cv_lib_blkid_blkid_get_cache=no
6515 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6516 conftest$ac_exeext conftest.$ac_ext
6517 LIBS=$ac_check_lib_save_LIBS
6519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
6520 printf "%s\n" "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
6521 if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes
6523 LIBBLKID=`$PKG_CONFIG --libs blkid`;
6524 STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid`
6526 as_fn_error $? "external blkid library not found" "$LINENO" 5
6530 PROFILED_LIBBLKID=$LIBBLKID
6531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling private blkid library" >&5
6532 printf "%s\n" "Disabling private blkid library" >&6; }
6534 LIBBLKID='$(LIB)/libblkid'$LIB_EXT
6535 DEPLIBBLKID=$LIBBLKID
6536 STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
6537 DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
6538 PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
6539 DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
6540 printf "%s\n" "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
6542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library" >&5
6543 printf "%s\n" "Enabling private blkid library" >&6; }
6547 if test -n "$PKG_CONFIG"; then
6548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
6549 printf %s "checking for blkid_get_cache in -lblkid... " >&6; }
6550 if test ${ac_cv_lib_blkid_blkid_get_cache+y}
6552 printf %s "(cached) " >&6
6554 ac_check_lib_save_LIBS=$LIBS
6555 LIBS="-lblkid $LIBS"
6556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6557 /* end confdefs.h. */
6559 /* Override any GCC internal prototype to avoid an error.
6560 Use char because int might match the return type of a GCC
6561 builtin and then its argument prototype would still apply. */
6562 char blkid_get_cache ();
6566 return blkid_get_cache ();
6571 if ac_fn_c_try_link "$LINENO"
6573 ac_cv_lib_blkid_blkid_get_cache=yes
6575 ac_cv_lib_blkid_blkid_get_cache=no
6577 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6578 conftest$ac_exeext conftest.$ac_ext
6579 LIBS=$ac_check_lib_save_LIBS
6581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
6582 printf "%s\n" "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
6583 if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes
6585 LIBBLKID=`$PKG_CONFIG --libs blkid`;
6586 STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid`
6590 if test -n "$LIBBLKID"; then
6592 PROFILED_LIBBLKID=$LIBBLKID
6593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Using system blkid library by default" >&5
6594 printf "%s\n" "Using system blkid library by default" >&6; }
6596 LIBBLKID='$(LIB)/libblkid'$LIB_EXT
6597 DEPLIBBLKID=$LIBBLKID
6598 STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
6599 DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
6600 PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
6601 DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
6602 printf "%s\n" "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
6604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library by default" >&5
6605 printf "%s\n" "Enabling private blkid library by default" >&6; }
6619 # Check whether --enable-subset was given.
6620 if test ${enable_subset+y}
6622 enableval=$enable_subset; if test "$enableval" = "no"
6625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling subset-only build" >&5
6626 printf "%s\n" "Disabling subset-only build" >&6; }
6629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling subset-only-build" >&5
6630 printf "%s\n" "Enabling subset-only-build" >&6; }
6638 # Check whether --enable-backtrace was given.
6639 if test ${enable_backtrace+y}
6641 enableval=$enable_backtrace; if test "$enableval" = "no"
6643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling use of backtrace" >&5
6644 printf "%s\n" "Disabling use of backtrace" >&6; }
6645 printf "%s\n" "#define DISABLE_BACKTRACE 1" >>confdefs.h
6648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace" >&5
6649 printf "%s\n" "Enabling use of backtrace" >&6; }
6653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace by default" >&5
6654 printf "%s\n" "Enabling use of backtrace by default" >&6; }
6658 # Check whether --enable-debugfs was given.
6659 if test ${enable_debugfs+y}
6661 enableval=$enable_debugfs; if test "$enableval" = "no"
6663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling debugfs support" >&5
6664 printf "%s\n" "Disabling debugfs support" >&6; }
6668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support" >&5
6669 printf "%s\n" "Enabling debugfs support" >&6; }
6673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support by default" >&5
6674 printf "%s\n" "Enabling debugfs support by default" >&6; }
6680 # Check whether --enable-imager was given.
6681 if test ${enable_imager+y}
6683 enableval=$enable_imager; if test "$enableval" = "no"
6685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling e2image support" >&5
6686 printf "%s\n" "Disabling e2image support" >&6; }
6690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support" >&5
6691 printf "%s\n" "Enabling e2image support" >&6; }
6695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support by default" >&5
6696 printf "%s\n" "Enabling e2image support by default" >&6; }
6702 # Check whether --enable-resizer was given.
6703 if test ${enable_resizer+y}
6705 enableval=$enable_resizer; if test "$enableval" = "no"
6707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling e2resize support" >&5
6708 printf "%s\n" "Disabling e2resize support" >&6; }
6712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support" >&5
6713 printf "%s\n" "Enabling e2resize support" >&6; }
6717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support by default" >&5
6718 printf "%s\n" "Enabling e2resize support by default" >&6; }
6724 # Check whether --enable-defrag was given.
6725 if test ${enable_defrag+y}
6727 enableval=$enable_defrag; if test "$enableval" = "no"
6729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support" >&5
6730 printf "%s\n" "Disabling e4defrag support" >&6; }
6734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support" >&5
6735 printf "%s\n" "Enabling e4defrag support" >&6; }
6739 if test -z "$WITH_DIET_LIBC"
6741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support by default" >&5
6742 printf "%s\n" "Enabling e4defrag support by default" >&6; }
6745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support by default" >&5
6746 printf "%s\n" "Disabling e4defrag support by default" >&6; }
6753 # Check whether --enable-fsck was given.
6754 if test ${enable_fsck+y}
6756 enableval=$enable_fsck; if test "$enableval" = "no"
6758 FSCK_PROG='' FSCK_MAN=''
6759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper" >&5
6760 printf "%s\n" "Not building fsck wrapper" >&6; }
6762 FSCK_PROG=fsck FSCK_MAN=fsck.8
6763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper" >&5
6764 printf "%s\n" "Building fsck wrapper" >&6; }
6770 FSCK_PROG='' FSCK_MAN=''
6771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper by default" >&5
6772 printf "%s\n" "Not building fsck wrapper by default" >&6; }
6775 FSCK_PROG=fsck FSCK_MAN=fsck.8
6776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper by default" >&5
6777 printf "%s\n" "Building fsck wrapper by default" >&6; }
6784 # Check whether --enable-e2initrd-helper was given.
6785 if test ${enable_e2initrd_helper+y}
6787 enableval=$enable_e2initrd_helper; if test "$enableval" = "no"
6789 E2INITRD_PROG='' E2INITRD_MAN=''
6790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Not building e2initrd helper" >&5
6791 printf "%s\n" "Not building e2initrd helper" >&6; }
6793 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
6794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper" >&5
6795 printf "%s\n" "Building e2initrd helper" >&6; }
6799 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
6800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper by default" >&5
6801 printf "%s\n" "Building e2initrd helper by default" >&6; }
6807 # Check whether --enable-tls was given.
6808 if test ${enable_tls+y}
6810 enableval=$enable_tls; if test "$enableval" = "no"
6813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling thread local support" >&5
6814 printf "%s\n" "Disabling thread local support" >&6; }
6817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling thread local support" >&5
6818 printf "%s\n" "Enabling thread local support" >&6; }
6822 if test -n "$WITH_DIET_LIBC"
6825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Diet libc does not support thread local support" >&5
6826 printf "%s\n" "Diet libc does not support thread local support" >&6; }
6829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Try using thread local support by default" >&5
6830 printf "%s\n" "Try using thread local support by default" >&6; }
6835 if test "$try_tls" = "yes"
6838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for thread local storage (TLS) class" >&5
6839 printf %s "checking for thread local storage (TLS) class... " >&6; }
6840 if test ${ac_cv_tls+y}
6842 printf %s "(cached) " >&6
6845 ax_tls_keywords="__thread __declspec(thread) none"
6846 for ax_tls_keyword in $ax_tls_keywords; do
6847 case $ax_tls_keyword in
6848 none) ac_cv_tls=none ; break ;;
6850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6851 /* end confdefs.h. */
6855 static $ax_tls_keyword int bar;
6866 if ac_fn_c_try_compile "$LINENO"
6868 ac_cv_tls=$ax_tls_keyword ; break
6873 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6880 if test "$ac_cv_tls" != "none"; then
6882 printf "%s\n" "#define TLS $ac_cv_tls" >>confdefs.h
6885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tls" >&5
6886 printf "%s\n" "$ac_cv_tls" >&6; }
6890 # Check whether --with-pthread was given.
6891 if test ${with_pthread+y}
6893 withval=$with_pthread; if test "$withval" = "no"
6896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling pthread support" >&5
6897 printf "%s\n" "Disabling pthread support" >&6; }
6900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Testing for pthread support" >&5
6901 printf "%s\n" "Testing for pthread support" >&6; }
6906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Try testing for pthread support by default" >&5
6907 printf "%s\n" "Try testing for pthread support by default" >&6; }
6911 if test "$try_pthread" = "yes"
6913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6914 printf %s "checking for a sed that does not truncate output... " >&6; }
6915 if test ${ac_cv_path_SED+y}
6917 printf %s "(cached) " >&6
6919 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6920 for ac_i in 1 2 3 4 5 6 7; do
6921 ac_script="$ac_script$as_nl$ac_script"
6923 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6924 { ac_script=; unset ac_script;}
6925 if test -z "$SED"; then
6926 ac_path_SED_found=false
6927 # Loop through the user's path and test for each of PROGNAME-LIST
6928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6932 case $as_dir in #(((
6935 *) as_dir=$as_dir/ ;;
6937 for ac_prog in sed gsed
6939 for ac_exec_ext in '' $ac_executable_extensions; do
6940 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
6941 as_fn_executable_p "$ac_path_SED" || continue
6942 # Check for GNU ac_path_SED and select it if it is found.
6943 # Check for GNU $ac_path_SED
6944 case `"$ac_path_SED" --version 2>&1` in
6946 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6949 printf %s 0123456789 >"conftest.in"
6952 cat "conftest.in" "conftest.in" >"conftest.tmp"
6953 mv "conftest.tmp" "conftest.in"
6954 cp "conftest.in" "conftest.nl"
6955 printf "%s\n" '' >> "conftest.nl"
6956 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6957 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6958 as_fn_arith $ac_count + 1 && ac_count=$as_val
6959 if test $ac_count -gt ${ac_path_SED_max-0}; then
6960 # Best one so far, save it but keep looking for a better one
6961 ac_cv_path_SED="$ac_path_SED"
6962 ac_path_SED_max=$ac_count
6964 # 10*(2^10) chars as input seems more than enough
6965 test $ac_count -gt 10 && break
6967 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6970 $ac_path_SED_found && break 3
6975 if test -z "$ac_cv_path_SED"; then
6976 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6984 printf "%s\n" "$ac_cv_path_SED" >&6; }
6985 SED="$ac_cv_path_SED"
6989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6990 printf %s "checking for grep that handles long lines and -e... " >&6; }
6991 if test ${ac_cv_path_GREP+y}
6993 printf %s "(cached) " >&6
6995 if test -z "$GREP"; then
6996 ac_path_GREP_found=false
6997 # Loop through the user's path and test for each of PROGNAME-LIST
6998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6999 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7002 case $as_dir in #(((
7005 *) as_dir=$as_dir/ ;;
7007 for ac_prog in grep ggrep
7009 for ac_exec_ext in '' $ac_executable_extensions; do
7010 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
7011 as_fn_executable_p "$ac_path_GREP" || continue
7012 # Check for GNU ac_path_GREP and select it if it is found.
7013 # Check for GNU $ac_path_GREP
7014 case `"$ac_path_GREP" --version 2>&1` in
7016 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7019 printf %s 0123456789 >"conftest.in"
7022 cat "conftest.in" "conftest.in" >"conftest.tmp"
7023 mv "conftest.tmp" "conftest.in"
7024 cp "conftest.in" "conftest.nl"
7025 printf "%s\n" 'GREP' >> "conftest.nl"
7026 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7027 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7028 as_fn_arith $ac_count + 1 && ac_count=$as_val
7029 if test $ac_count -gt ${ac_path_GREP_max-0}; then
7030 # Best one so far, save it but keep looking for a better one
7031 ac_cv_path_GREP="$ac_path_GREP"
7032 ac_path_GREP_max=$ac_count
7034 # 10*(2^10) chars as input seems more than enough
7035 test $ac_count -gt 10 && break
7037 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7040 $ac_path_GREP_found && break 3
7045 if test -z "$ac_cv_path_GREP"; then
7046 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7049 ac_cv_path_GREP=$GREP
7053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
7054 printf "%s\n" "$ac_cv_path_GREP" >&6; }
7055 GREP="$ac_cv_path_GREP"
7058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
7059 printf %s "checking for egrep... " >&6; }
7060 if test ${ac_cv_path_EGREP+y}
7062 printf %s "(cached) " >&6
7064 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
7065 then ac_cv_path_EGREP="$GREP -E"
7067 if test -z "$EGREP"; then
7068 ac_path_EGREP_found=false
7069 # Loop through the user's path and test for each of PROGNAME-LIST
7070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7071 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7074 case $as_dir in #(((
7077 *) as_dir=$as_dir/ ;;
7079 for ac_prog in egrep
7081 for ac_exec_ext in '' $ac_executable_extensions; do
7082 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
7083 as_fn_executable_p "$ac_path_EGREP" || continue
7084 # Check for GNU ac_path_EGREP and select it if it is found.
7085 # Check for GNU $ac_path_EGREP
7086 case `"$ac_path_EGREP" --version 2>&1` in
7088 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
7091 printf %s 0123456789 >"conftest.in"
7094 cat "conftest.in" "conftest.in" >"conftest.tmp"
7095 mv "conftest.tmp" "conftest.in"
7096 cp "conftest.in" "conftest.nl"
7097 printf "%s\n" 'EGREP' >> "conftest.nl"
7098 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7099 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7100 as_fn_arith $ac_count + 1 && ac_count=$as_val
7101 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
7102 # Best one so far, save it but keep looking for a better one
7103 ac_cv_path_EGREP="$ac_path_EGREP"
7104 ac_path_EGREP_max=$ac_count
7106 # 10*(2^10) chars as input seems more than enough
7107 test $ac_count -gt 10 && break
7109 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7112 $ac_path_EGREP_found && break 3
7117 if test -z "$ac_cv_path_EGREP"; then
7118 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7121 ac_cv_path_EGREP=$EGREP
7126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
7127 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
7128 EGREP="$ac_cv_path_EGREP"
7136 ac_cpp='$CPP $CPPFLAGS'
7137 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7138 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7139 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7143 # We used to check for pthread.h first, but this fails if pthread.h
7144 # requires special compiler flags (e.g. on Tru64 or Sequent).
7145 # It gets checked for in the link test anyway.
7147 # First of all, check if the user has set any of the PTHREAD_LIBS,
7148 # etcetera environment variables, and if threads linking works using
7150 if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
7151 ax_pthread_save_CC="$CC"
7152 ax_pthread_save_CFLAGS="$CFLAGS"
7153 ax_pthread_save_LIBS="$LIBS"
7154 if test "x$PTHREAD_CC" != "x"
7158 if test "x$PTHREAD_CXX" != "x"
7162 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
7163 LIBS="$PTHREAD_LIBS $LIBS"
7164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
7165 printf %s "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
7166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7167 /* end confdefs.h. */
7169 /* Override any GCC internal prototype to avoid an error.
7170 Use char because int might match the return type of a GCC
7171 builtin and then its argument prototype would still apply. */
7172 char pthread_join ();
7176 return pthread_join ();
7181 if ac_fn_c_try_link "$LINENO"
7185 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7186 conftest$ac_exeext conftest.$ac_ext
7187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
7188 printf "%s\n" "$ax_pthread_ok" >&6; }
7189 if test "x$ax_pthread_ok" = "xno"; then
7193 CC="$ax_pthread_save_CC"
7194 CFLAGS="$ax_pthread_save_CFLAGS"
7195 LIBS="$ax_pthread_save_LIBS"
7198 # We must check for the threads library under a number of different
7199 # names; the ordering is very important because some systems
7200 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
7201 # libraries is broken (non-POSIX).
7203 # Create a list of thread flags to try. Items with a "," contain both
7204 # C compiler flags (before ",") and linker flags (after ","). Other items
7205 # starting with a "-" are C compiler flags, and remaining items are
7206 # library names, except for "none" which indicates that we try without
7207 # any flags at all, and "pthread-config" which is a program returning
7208 # the flags for the Pth emulation library.
7210 ax_pthread_flags="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
7212 # The ordering *is* (sometimes) important. Some notes on the
7213 # individual items follow:
7215 # pthreads: AIX (must check this before -lpthread)
7216 # none: in case threads are in libc; should be tried before -Kthread and
7217 # other compiler flags to prevent continual compiler warnings
7218 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
7219 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
7220 # (Note: HP C rejects this with "bad form for `-t' option")
7221 # -pthreads: Solaris/gcc (Note: HP C also rejects)
7222 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
7223 # doesn't hurt to check since this sometimes defines pthreads and
7224 # -D_REENTRANT too), HP C (must be checked before -lpthread, which
7225 # is present but should not be used directly; and before -mthreads,
7226 # because the compiler interprets this as "-mt" + "-hreads")
7227 # -mthreads: Mingw32/gcc, Lynx/gcc
7228 # pthread: Linux, etcetera
7229 # --thread-safe: KAI C++
7230 # pthread-config: use pthread-config program (for GNU Pth library)
7236 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
7237 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
7239 ax_pthread_flags="-kthread lthread $ax_pthread_flags"
7244 # From the cc(1) man page: "[-mt] Sets various -D flags to enable
7245 # multi-threading and also sets -lpthread."
7247 ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags"
7252 # IBM z/OS requires a feature-test macro to be defined in order to
7253 # enable POSIX threads at all, so give the user a hint if this is
7254 # not set. (We don't define these ourselves, as they can affect
7255 # other portions of the system API in unpredictable ways.)
7257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7258 /* end confdefs.h. */
7260 # if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
7261 AX_PTHREAD_ZOS_MISSING
7265 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7266 $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1
7268 { 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
7269 printf "%s\n" "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
7277 # On Solaris (at least, for some versions), libc contains stubbed
7278 # (non-functional) versions of the pthreads routines, so link-based
7279 # tests will erroneously succeed. (N.B.: The stubs are missing
7280 # pthread_cleanup_push, or rather a function called by this macro,
7281 # so we could check for that, but who knows whether they'll stub
7282 # that too in a future libc.) So we'll check first for the
7283 # standard Solaris way of linking pthreads (-mt -lpthread).
7285 ax_pthread_flags="-mt,-lpthread pthread $ax_pthread_flags"
7289 # Are we compiling with Clang?
7291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
7292 printf %s "checking whether $CC is Clang... " >&6; }
7293 if test ${ax_cv_PTHREAD_CLANG+y}
7295 printf %s "(cached) " >&6
7297 ax_cv_PTHREAD_CLANG=no
7298 # Note that Autoconf sets GCC=yes for Clang as well as GCC
7299 if test "x$GCC" = "xyes"; then
7300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7301 /* end confdefs.h. */
7302 /* Note: Clang 2.7 lacks __clang_[a-z]+__ */
7303 # if defined(__clang__) && defined(__llvm__)
7304 AX_PTHREAD_CC_IS_CLANG
7308 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7309 $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev/null 2>&1
7311 ax_cv_PTHREAD_CLANG=yes
7318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
7319 printf "%s\n" "$ax_cv_PTHREAD_CLANG" >&6; }
7320 ax_pthread_clang="$ax_cv_PTHREAD_CLANG"
7323 # GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
7325 # Note that for GCC and Clang -pthread generally implies -lpthread,
7326 # except when -nostdlib is passed.
7327 # This is problematic using libtool to build C++ shared libraries with pthread:
7328 # [1] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=25460
7329 # [2] https://bugzilla.redhat.com/show_bug.cgi?id=661333
7330 # [3] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=468555
7331 # To solve this, first try -pthread together with -lpthread for GCC
7333 if test "x$GCC" = "xyes"
7335 ax_pthread_flags="-pthread,-lpthread -pthread -pthreads $ax_pthread_flags"
7338 # Clang takes -pthread (never supported any other flag), but we'll try with -lpthread first
7340 if test "x$ax_pthread_clang" = "xyes"
7342 ax_pthread_flags="-pthread,-lpthread -pthread"
7346 # The presence of a feature test macro requesting re-entrant function
7347 # definitions is, on some systems, a strong hint that pthreads support is
7351 darwin* | hpux* | linux* | osf* | solaris*)
7352 ax_pthread_check_macro="_REENTRANT"
7356 ax_pthread_check_macro="_THREAD_SAFE"
7360 ax_pthread_check_macro="--"
7363 if test "x$ax_pthread_check_macro" = "x--"
7365 ax_pthread_check_cond=0
7367 ax_pthread_check_cond="!defined($ax_pthread_check_macro)"
7371 if test "x$ax_pthread_ok" = "xno"; then
7372 for ax_pthread_try_flag in $ax_pthread_flags; do
7374 case $ax_pthread_try_flag in
7376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
7377 printf %s "checking whether pthreads work without any flags... " >&6; }
7381 PTHREAD_CFLAGS=`echo $ax_pthread_try_flag | sed "s/^\(.*\),\(.*\)$/\1/"`
7382 PTHREAD_LIBS=`echo $ax_pthread_try_flag | sed "s/^\(.*\),\(.*\)$/\2/"`
7383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with \"$PTHREAD_CFLAGS\" and \"$PTHREAD_LIBS\"" >&5
7384 printf %s "checking whether pthreads work with \"$PTHREAD_CFLAGS\" and \"$PTHREAD_LIBS\"... " >&6; }
7388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
7389 printf %s "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
7390 PTHREAD_CFLAGS="$ax_pthread_try_flag"
7394 # Extract the first word of "pthread-config", so it can be a program name with args.
7395 set dummy pthread-config; ac_word=$2
7396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7397 printf %s "checking for $ac_word... " >&6; }
7398 if test ${ac_cv_prog_ax_pthread_config+y}
7400 printf %s "(cached) " >&6
7402 if test -n "$ax_pthread_config"; then
7403 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
7405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7409 case $as_dir in #(((
7412 *) as_dir=$as_dir/ ;;
7414 for ac_exec_ext in '' $ac_executable_extensions; do
7415 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7416 ac_cv_prog_ax_pthread_config="yes"
7417 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7424 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
7427 ax_pthread_config=$ac_cv_prog_ax_pthread_config
7428 if test -n "$ax_pthread_config"; then
7429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
7430 printf "%s\n" "$ax_pthread_config" >&6; }
7432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7433 printf "%s\n" "no" >&6; }
7437 if test "x$ax_pthread_config" = "xno"
7441 PTHREAD_CFLAGS="`pthread-config --cflags`"
7442 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
7446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
7447 printf %s "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
7448 PTHREAD_LIBS="-l$ax_pthread_try_flag"
7452 ax_pthread_save_CFLAGS="$CFLAGS"
7453 ax_pthread_save_LIBS="$LIBS"
7454 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
7455 LIBS="$PTHREAD_LIBS $LIBS"
7457 # Check for various functions. We must include pthread.h,
7458 # since some functions may be macros. (On the Sequent, we
7459 # need a special flag -Kthread to make this header compile.)
7460 # We check for pthread_join because it is in -lpthread on IRIX
7461 # while pthread_create is in libc. We check for pthread_attr_init
7462 # due to DEC craziness with -lpthreads. We check for
7463 # pthread_cleanup_push because it is one of the few pthread
7464 # functions on Solaris that doesn't have a non-functional libc stub.
7465 # We try pthread_create on general principles.
7467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7468 /* end confdefs.h. */
7469 #include <pthread.h>
7470 # if $ax_pthread_check_cond
7471 # error "$ax_pthread_check_macro must be defined"
7473 static void *some_global = NULL;
7474 static void routine(void *a)
7476 /* To avoid any unused-parameter or
7477 unused-but-set-parameter warning. */
7480 static void *start_routine(void *a) { return a; }
7484 pthread_t th; pthread_attr_t attr;
7485 pthread_create(&th, 0, start_routine, 0);
7486 pthread_join(th, 0);
7487 pthread_attr_init(&attr);
7488 pthread_cleanup_push(routine, 0);
7489 pthread_cleanup_pop(0) /* ; */
7494 if ac_fn_c_try_link "$LINENO"
7498 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7499 conftest$ac_exeext conftest.$ac_ext
7501 CFLAGS="$ax_pthread_save_CFLAGS"
7502 LIBS="$ax_pthread_save_LIBS"
7504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
7505 printf "%s\n" "$ax_pthread_ok" >&6; }
7506 if test "x$ax_pthread_ok" = "xyes"
7517 # Clang needs special handling, because older versions handle the -pthread
7518 # option in a rather... idiosyncratic way
7520 if test "x$ax_pthread_clang" = "xyes"; then
7522 # Clang takes -pthread; it has never supported any other flag
7524 # (Note 1: This will need to be revisited if a system that Clang
7525 # supports has POSIX threads in a separate library. This tends not
7526 # to be the way of modern systems, but it's conceivable.)
7528 # (Note 2: On some systems, notably Darwin, -pthread is not needed
7529 # to get POSIX threads support; the API is always present and
7530 # active. We could reasonably leave PTHREAD_CFLAGS empty. But
7531 # -pthread does define _REENTRANT, and while the Darwin headers
7532 # ignore this macro, third-party headers might not.)
7534 # However, older versions of Clang make a point of warning the user
7535 # that, in an invocation where only linking and no compilation is
7536 # taking place, the -pthread option has no effect ("argument unused
7537 # during compilation"). They expect -pthread to be passed in only
7538 # when source code is being compiled.
7540 # Problem is, this is at odds with the way Automake and most other
7541 # C build frameworks function, which is that the same flags used in
7542 # compilation (CFLAGS) are also used in linking. Many systems
7543 # supported by AX_PTHREAD require exactly this for POSIX threads
7544 # support, and in fact it is often not straightforward to specify a
7545 # flag that is used only in the compilation phase and not in
7546 # linking. Such a scenario is extremely rare in practice.
7548 # Even though use of the -pthread flag in linking would only print
7549 # a warning, this can be a nuisance for well-run software projects
7550 # that build with -Werror. So if the active version of Clang has
7551 # this misfeature, we search for an option to squash it.
7553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
7554 printf %s "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
7555 if test ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+y}
7557 printf %s "(cached) " >&6
7559 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG=unknown
7560 # Create an alternate version of $ac_link that compiles and
7561 # links in two steps (.c -> .o, .o -> exe) instead of one
7562 # (.c -> exe), because the warning occurs only in the second
7564 ax_pthread_save_ac_link="$ac_link"
7565 ax_pthread_sed='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
7566 ax_pthread_link_step=`printf "%s\n" "$ac_link" | sed "$ax_pthread_sed"`
7567 ax_pthread_2step_ac_link="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
7568 ax_pthread_save_CFLAGS="$CFLAGS"
7569 for ax_pthread_try in '' -Qunused-arguments -Wno-unused-command-line-argument unknown; do
7570 if test "x$ax_pthread_try" = "xunknown"
7574 CFLAGS="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
7575 ac_link="$ax_pthread_save_ac_link"
7576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7577 /* end confdefs.h. */
7578 int main(void){return 0;}
7580 if ac_fn_c_try_link "$LINENO"
7582 ac_link="$ax_pthread_2step_ac_link"
7583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7584 /* end confdefs.h. */
7585 int main(void){return 0;}
7587 if ac_fn_c_try_link "$LINENO"
7591 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7592 conftest$ac_exeext conftest.$ac_ext
7595 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7596 conftest$ac_exeext conftest.$ac_ext
7598 ac_link="$ax_pthread_save_ac_link"
7599 CFLAGS="$ax_pthread_save_CFLAGS"
7600 if test "x$ax_pthread_try" = "x"
7604 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG="$ax_pthread_try"
7607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
7608 printf "%s\n" "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
7610 case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
7612 *) PTHREAD_CFLAGS="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
7615 fi # $ax_pthread_clang = yes
7619 # Various other checks:
7620 if test "x$ax_pthread_ok" = "xyes"; then
7621 ax_pthread_save_CFLAGS="$CFLAGS"
7622 ax_pthread_save_LIBS="$LIBS"
7623 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
7624 LIBS="$PTHREAD_LIBS $LIBS"
7626 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
7627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
7628 printf %s "checking for joinable pthread attribute... " >&6; }
7629 if test ${ax_cv_PTHREAD_JOINABLE_ATTR+y}
7631 printf %s "(cached) " >&6
7633 ax_cv_PTHREAD_JOINABLE_ATTR=unknown
7634 for ax_pthread_attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
7635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7636 /* end confdefs.h. */
7637 #include <pthread.h>
7641 int attr = $ax_pthread_attr; return attr /* ; */
7646 if ac_fn_c_try_link "$LINENO"
7648 ax_cv_PTHREAD_JOINABLE_ATTR=$ax_pthread_attr; break
7650 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7651 conftest$ac_exeext conftest.$ac_ext
7655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
7656 printf "%s\n" "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
7657 if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
7658 test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
7659 test "x$ax_pthread_joinable_attr_defined" != "xyes"
7662 printf "%s\n" "#define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR" >>confdefs.h
7664 ax_pthread_joinable_attr_defined=yes
7668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
7669 printf %s "checking whether more special flags are required for pthreads... " >&6; }
7670 if test ${ax_cv_PTHREAD_SPECIAL_FLAGS+y}
7672 printf %s "(cached) " >&6
7674 ax_cv_PTHREAD_SPECIAL_FLAGS=no
7677 ax_cv_PTHREAD_SPECIAL_FLAGS="-D_POSIX_PTHREAD_SEMANTICS"
7682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
7683 printf "%s\n" "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
7684 if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
7685 test "x$ax_pthread_special_flags_added" != "xyes"
7687 PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
7688 ax_pthread_special_flags_added=yes
7691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
7692 printf %s "checking for PTHREAD_PRIO_INHERIT... " >&6; }
7693 if test ${ax_cv_PTHREAD_PRIO_INHERIT+y}
7695 printf %s "(cached) " >&6
7697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7698 /* end confdefs.h. */
7699 #include <pthread.h>
7703 int i = PTHREAD_PRIO_INHERIT;
7709 if ac_fn_c_try_link "$LINENO"
7711 ax_cv_PTHREAD_PRIO_INHERIT=yes
7713 ax_cv_PTHREAD_PRIO_INHERIT=no
7715 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7716 conftest$ac_exeext conftest.$ac_ext
7719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
7720 printf "%s\n" "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
7721 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
7722 test "x$ax_pthread_prio_inherit_defined" != "xyes"
7725 printf "%s\n" "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
7727 ax_pthread_prio_inherit_defined=yes
7731 CFLAGS="$ax_pthread_save_CFLAGS"
7732 LIBS="$ax_pthread_save_LIBS"
7734 # More AIX lossage: compile with *_r variant
7735 if test "x$GCC" != "xyes"; then
7739 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
7740 #handle absolute path differently from PATH based program lookup
7744 if as_fn_executable_p ${CC}_r
7746 PTHREAD_CC="${CC}_r"
7748 if test "x${CXX}" != "x"
7750 if as_fn_executable_p ${CXX}_r
7752 PTHREAD_CXX="${CXX}_r"
7758 for ac_prog in ${CC}_r
7760 # Extract the first word of "$ac_prog", so it can be a program name with args.
7761 set dummy $ac_prog; ac_word=$2
7762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7763 printf %s "checking for $ac_word... " >&6; }
7764 if test ${ac_cv_prog_PTHREAD_CC+y}
7766 printf %s "(cached) " >&6
7768 if test -n "$PTHREAD_CC"; then
7769 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
7771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7775 case $as_dir in #(((
7778 *) as_dir=$as_dir/ ;;
7780 for ac_exec_ext in '' $ac_executable_extensions; do
7781 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7782 ac_cv_prog_PTHREAD_CC="$ac_prog"
7783 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7792 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
7793 if test -n "$PTHREAD_CC"; then
7794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
7795 printf "%s\n" "$PTHREAD_CC" >&6; }
7797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7798 printf "%s\n" "no" >&6; }
7802 test -n "$PTHREAD_CC" && break
7804 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
7806 if test "x${CXX}" != "x"
7808 for ac_prog in ${CXX}_r
7810 # Extract the first word of "$ac_prog", so it can be a program name with args.
7811 set dummy $ac_prog; ac_word=$2
7812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7813 printf %s "checking for $ac_word... " >&6; }
7814 if test ${ac_cv_prog_PTHREAD_CXX+y}
7816 printf %s "(cached) " >&6
7818 if test -n "$PTHREAD_CXX"; then
7819 ac_cv_prog_PTHREAD_CXX="$PTHREAD_CXX" # Let the user override the test.
7821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7825 case $as_dir in #(((
7828 *) as_dir=$as_dir/ ;;
7830 for ac_exec_ext in '' $ac_executable_extensions; do
7831 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7832 ac_cv_prog_PTHREAD_CXX="$ac_prog"
7833 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7842 PTHREAD_CXX=$ac_cv_prog_PTHREAD_CXX
7843 if test -n "$PTHREAD_CXX"; then
7844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CXX" >&5
7845 printf "%s\n" "$PTHREAD_CXX" >&6; }
7847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7848 printf "%s\n" "no" >&6; }
7852 test -n "$PTHREAD_CXX" && break
7854 test -n "$PTHREAD_CXX" || PTHREAD_CXX="$CXX"
7869 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
7870 test -n "$PTHREAD_CXX" || PTHREAD_CXX="$CXX"
7877 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
7878 if test "x$ax_pthread_ok" = "xyes"; then
7880 printf "%s\n" "#define HAVE_PTHREAD 1" >>confdefs.h
7888 ac_cpp='$CPP $CPPFLAGS'
7889 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7890 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7891 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7895 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
7899 # Check whether --enable-uuidd was given.
7900 if test ${enable_uuidd+y}
7902 enableval=$enable_uuidd; if test "$enableval" = "no"
7904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Not building uuidd" >&5
7905 printf "%s\n" "Not building uuidd" >&6; }
7908 printf "%s\n" "#define USE_UUIDD 1" >>confdefs.h
7911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Building uuidd" >&5
7912 printf "%s\n" "Building uuidd" >&6; }
7916 printf "%s\n" "#define USE_UUIDD 1" >>confdefs.h
7918 if test -z "$UUID_CMT"
7921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Building uuidd by default" >&5
7922 printf "%s\n" "Building uuidd by default" >&6; }
7925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling uuidd by default" >&5
7926 printf "%s\n" "Disabling uuidd by default" >&6; }
7933 # Check whether --enable-mmp was given.
7934 if test ${enable_mmp+y}
7936 enableval=$enable_mmp; if test "$enableval" = "no"
7938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling mmp support" >&5
7939 printf "%s\n" "Disabling mmp support" >&6; }
7941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support" >&5
7942 printf "%s\n" "Enabling mmp support" >&6; }
7943 printf "%s\n" "#define CONFIG_MMP 1" >>confdefs.h
7948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support by default" >&5
7949 printf "%s\n" "Enabling mmp support by default" >&6; }
7950 printf "%s\n" "#define CONFIG_MMP 1" >>confdefs.h
7956 # Check whether --enable-tdb was given.
7957 if test ${enable_tdb+y}
7959 enableval=$enable_tdb;
7960 if test "$enableval" = "no"
7962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling tdb support" >&5
7963 printf "%s\n" "Disabling tdb support" >&6; }
7966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling tdb support" >&5
7967 printf "%s\n" "Enabling tdb support" >&6; }
7976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling tdb support by default" >&5
7977 printf "%s\n" "Disabling tdb support by default" >&6; }
7981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling tdb support by default" >&5
7982 printf "%s\n" "Enabling tdb support by default" >&6; }
7990 if test "$CONFIG_TDB" = "1"
7992 printf "%s\n" "#define CONFIG_TDB 1" >>confdefs.h
7998 TDB_MAN_COMMENT='.\"'
8003 # Check whether --enable-bmap-stats was given.
8004 if test ${enable_bmap_stats+y}
8006 enableval=$enable_bmap_stats; if test "$enableval" = "no"
8008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling bitmap statistics support" >&5
8009 printf "%s\n" "Disabling bitmap statistics support" >&6; }
8011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling bitmap statistics support" >&5
8012 printf "%s\n" "Enabling bitmap statistics support" >&6; }
8013 printf "%s\n" "#define ENABLE_BMAP_STATS 1" >>confdefs.h
8018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling bitmap statistics support by default" >&5
8019 printf "%s\n" "Enabling bitmap statistics support by default" >&6; }
8020 printf "%s\n" "#define ENABLE_BMAP_STATS 1" >>confdefs.h
8026 # Check whether --enable-bmap-stats-ops was given.
8027 if test ${enable_bmap_stats_ops+y}
8029 enableval=$enable_bmap_stats_ops; if test "$enableval" = "no"
8031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling additional bitmap statistics" >&5
8032 printf "%s\n" "Disabling additional bitmap statistics" >&6; }
8034 if test "x${enable_bmap_stats}" = "xno"
8036 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8037 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
8038 as_fn_error $? "Error --enable-bmap-stats-ops requires bmap-stats
8039 See \`config.log' for more details" "$LINENO" 5; }
8042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling additional bitmap statistics" >&5
8043 printf "%s\n" "Enabling additional bitmap statistics" >&6; }
8044 printf "%s\n" "#define ENABLE_BMAP_STATS_OPS 1" >>confdefs.h
8049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling additional bitmap statistics by default" >&5
8050 printf "%s\n" "Disabling additional bitmap statistics by default" >&6; }
8054 MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
8056 GETTEXT_PACKAGE=e2fsprogs
8058 VERSION="$E2FSPROGS_VERSION"
8061 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
8064 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
8070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8071 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
8073 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8074 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
8076 printf %s "(cached) " >&6
8078 cat >conftest.make <<\_ACEOF
8081 @echo '@@@%%%=$(MAKE)=@@@%%%'
8083 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
8084 case `${MAKE-make} -f conftest.make 2>/dev/null` in
8086 eval ac_cv_prog_make_${ac_make}_set=yes;;
8088 eval ac_cv_prog_make_${ac_make}_set=no;;
8092 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8094 printf "%s\n" "yes" >&6; }
8097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8098 printf "%s\n" "no" >&6; }
8099 SET_MAKE="MAKE=${MAKE-make}"
8103 # Find a good install program. We prefer a C program (faster),
8104 # so one script is as good as another. But avoid the broken or
8105 # incompatible versions:
8106 # SysV /etc/install, /usr/sbin/install
8107 # SunOS /usr/etc/install
8108 # IRIX /sbin/install
8110 # AmigaOS /C/install, which installs bootblocks on floppy discs
8111 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8112 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8113 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8114 # OS/2's system install, which has a completely different semantic
8115 # ./install, which can be erroneously created by make from ./install.sh.
8116 # Reject install programs that cannot install multiple files.
8117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
8118 printf %s "checking for a BSD-compatible install... " >&6; }
8119 if test -z "$INSTALL"; then
8120 if test ${ac_cv_path_install+y}
8122 printf %s "(cached) " >&6
8124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8128 case $as_dir in #(((
8131 *) as_dir=$as_dir/ ;;
8133 # Account for fact that we put trailing slashes in our PATH walk.
8136 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
8137 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
8140 # OSF1 and SCO ODT 3.0 have their own names for install.
8141 # Don't use installbsd from OSF since it installs stuff as root
8143 for ac_prog in ginstall scoinst install; do
8144 for ac_exec_ext in '' $ac_executable_extensions; do
8145 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
8146 if test $ac_prog = install &&
8147 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8148 # AIX install. It has an incompatible calling convention.
8150 elif test $ac_prog = install &&
8151 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8152 # program-specific install script used by HP pwplus--don't use.
8155 rm -rf conftest.one conftest.two conftest.dir
8156 echo one > conftest.one
8157 echo two > conftest.two
8159 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
8160 test -s conftest.one && test -s conftest.two &&
8161 test -s conftest.dir/conftest.one &&
8162 test -s conftest.dir/conftest.two
8164 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
8177 rm -rf conftest.one conftest.two conftest.dir
8180 if test ${ac_cv_path_install+y}; then
8181 INSTALL=$ac_cv_path_install
8183 # As a last resort, use the slow shell script. Don't cache a
8184 # value for INSTALL within a source directory, because that will
8185 # break other packages using the cache if that directory is
8186 # removed, or if the value is a relative name.
8187 INSTALL=$ac_install_sh
8190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
8191 printf "%s\n" "$INSTALL" >&6; }
8193 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8194 # It thinks the first close brace ends the variable substitution.
8195 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8197 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
8199 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
8203 printf %s "checking for a race-free mkdir -p... " >&6; }
8204 if test -z "$MKDIR_P"; then
8205 if test ${ac_cv_path_mkdir+y}
8207 printf %s "(cached) " >&6
8209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8210 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
8213 case $as_dir in #(((
8216 *) as_dir=$as_dir/ ;;
8218 for ac_prog in mkdir gmkdir; do
8219 for ac_exec_ext in '' $ac_executable_extensions; do
8220 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
8221 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
8222 'mkdir ('*'coreutils) '* | \
8224 'mkdir (fileutils) '4.1*)
8225 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
8235 test -d ./--version && rmdir ./--version
8236 if test ${ac_cv_path_mkdir+y}; then
8237 MKDIR_P="$ac_cv_path_mkdir -p"
8239 # As a last resort, use the slow shell script. Don't cache a
8240 # value for MKDIR_P within a source directory, because that will
8241 # break other packages using the cache if that directory is
8242 # removed, or if the value is a relative name.
8243 MKDIR_P="$ac_install_sh -d"
8246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
8247 printf "%s\n" "$MKDIR_P" >&6; }
8250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
8251 printf %s "checking whether NLS is requested... " >&6; }
8252 # Check whether --enable-nls was given.
8253 if test ${enable_nls+y}
8255 enableval=$enable_nls; USE_NLS=$enableval
8260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
8261 printf "%s\n" "$USE_NLS" >&6; }
8266 GETTEXT_MACRO_VERSION=0.20
8271 # Prepare PATH_SEPARATOR.
8272 # The user is always right.
8273 if test "${PATH_SEPARATOR+set}" != set; then
8274 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
8275 # contains only /bin. Note that ksh looks also at the FPATH variable,
8276 # so we have to set that as well for the test.
8278 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
8279 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
8280 || PATH_SEPARATOR=';'
8284 # Find out how to test for executable files. Don't use a zero-byte file,
8285 # as systems may use methods other than mode bits to determine executability.
8286 cat >conf$$.file <<_ASEOF
8290 chmod +x conf$$.file
8291 if test -x conf$$.file >/dev/null 2>&1; then
8292 ac_executable_p="test -x"
8294 ac_executable_p="test -f"
8298 # Extract the first word of "msgfmt", so it can be a program name with args.
8299 set dummy msgfmt; ac_word=$2
8300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8301 printf %s "checking for $ac_word... " >&6; }
8302 if test ${ac_cv_path_MSGFMT+y}
8304 printf %s "(cached) " >&6
8308 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
8311 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
8312 for ac_dir in $PATH; do
8314 test -z "$ac_dir" && ac_dir=.
8315 for ac_exec_ext in '' $ac_executable_extensions; do
8316 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
8317 echo "$as_me: trying $ac_dir/$ac_word..." >&5
8318 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
8319 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
8320 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
8327 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
8331 MSGFMT="$ac_cv_path_MSGFMT"
8332 if test "$MSGFMT" != ":"; then
8333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
8334 printf "%s\n" "$MSGFMT" >&6; }
8336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8337 printf "%s\n" "no" >&6; }
8340 # Extract the first word of "gmsgfmt", so it can be a program name with args.
8341 set dummy gmsgfmt; ac_word=$2
8342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8343 printf %s "checking for $ac_word... " >&6; }
8344 if test ${ac_cv_path_GMSGFMT+y}
8346 printf %s "(cached) " >&6
8350 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
8353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8357 case $as_dir in #(((
8360 *) as_dir=$as_dir/ ;;
8362 for ac_exec_ext in '' $ac_executable_extensions; do
8363 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8364 ac_cv_path_GMSGFMT="$as_dir$ac_word$ac_exec_ext"
8365 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8372 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
8376 GMSGFMT=$ac_cv_path_GMSGFMT
8377 if test -n "$GMSGFMT"; then
8378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
8379 printf "%s\n" "$GMSGFMT" >&6; }
8381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8382 printf "%s\n" "no" >&6; }
8387 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
8388 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
8389 *) GMSGFMT_015=$GMSGFMT ;;
8394 # Prepare PATH_SEPARATOR.
8395 # The user is always right.
8396 if test "${PATH_SEPARATOR+set}" != set; then
8397 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
8398 # contains only /bin. Note that ksh looks also at the FPATH variable,
8399 # so we have to set that as well for the test.
8401 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
8402 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
8403 || PATH_SEPARATOR=';'
8407 # Find out how to test for executable files. Don't use a zero-byte file,
8408 # as systems may use methods other than mode bits to determine executability.
8409 cat >conf$$.file <<_ASEOF
8413 chmod +x conf$$.file
8414 if test -x conf$$.file >/dev/null 2>&1; then
8415 ac_executable_p="test -x"
8417 ac_executable_p="test -f"
8421 # Extract the first word of "xgettext", so it can be a program name with args.
8422 set dummy xgettext; ac_word=$2
8423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8424 printf %s "checking for $ac_word... " >&6; }
8425 if test ${ac_cv_path_XGETTEXT+y}
8427 printf %s "(cached) " >&6
8431 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
8434 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
8435 for ac_dir in $PATH; do
8437 test -z "$ac_dir" && ac_dir=.
8438 for ac_exec_ext in '' $ac_executable_extensions; do
8439 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
8440 echo "$as_me: trying $ac_dir/$ac_word..." >&5
8441 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
8442 (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
8443 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
8450 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
8454 XGETTEXT="$ac_cv_path_XGETTEXT"
8455 if test "$XGETTEXT" != ":"; then
8456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
8457 printf "%s\n" "$XGETTEXT" >&6; }
8459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8460 printf "%s\n" "no" >&6; }
8465 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
8466 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
8467 *) XGETTEXT_015=$XGETTEXT ;;
8472 # Prepare PATH_SEPARATOR.
8473 # The user is always right.
8474 if test "${PATH_SEPARATOR+set}" != set; then
8475 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
8476 # contains only /bin. Note that ksh looks also at the FPATH variable,
8477 # so we have to set that as well for the test.
8479 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
8480 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
8481 || PATH_SEPARATOR=';'
8485 # Find out how to test for executable files. Don't use a zero-byte file,
8486 # as systems may use methods other than mode bits to determine executability.
8487 cat >conf$$.file <<_ASEOF
8491 chmod +x conf$$.file
8492 if test -x conf$$.file >/dev/null 2>&1; then
8493 ac_executable_p="test -x"
8495 ac_executable_p="test -f"
8499 # Extract the first word of "msgmerge", so it can be a program name with args.
8500 set dummy msgmerge; ac_word=$2
8501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8502 printf %s "checking for $ac_word... " >&6; }
8503 if test ${ac_cv_path_MSGMERGE+y}
8505 printf %s "(cached) " >&6
8509 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
8512 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
8513 for ac_dir in $PATH; do
8515 test -z "$ac_dir" && ac_dir=.
8516 for ac_exec_ext in '' $ac_executable_extensions; do
8517 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
8518 echo "$as_me: trying $ac_dir/$ac_word..." >&5
8519 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
8520 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
8527 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
8531 MSGMERGE="$ac_cv_path_MSGMERGE"
8532 if test "$MSGMERGE" != ":"; then
8533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
8534 printf "%s\n" "$MSGMERGE" >&6; }
8536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8537 printf "%s\n" "no" >&6; }
8541 if LC_ALL=C $MSGMERGE --help | grep ' --for-msgfmt ' >/dev/null; then
8542 MSGMERGE_FOR_MSGFMT_OPTION='--for-msgfmt'
8544 if LC_ALL=C $MSGMERGE --help | grep ' --no-fuzzy-matching ' >/dev/null; then
8545 MSGMERGE_FOR_MSGFMT_OPTION='--no-fuzzy-matching --no-location --quiet'
8547 MSGMERGE_FOR_MSGFMT_OPTION='--no-location --quiet'
8552 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
8555 ac_config_commands="$ac_config_commands po-directories"
8559 if test "X$prefix" = "XNONE"; then
8560 acl_final_prefix="$ac_default_prefix"
8562 acl_final_prefix="$prefix"
8564 if test "X$exec_prefix" = "XNONE"; then
8565 acl_final_exec_prefix='${prefix}'
8567 acl_final_exec_prefix="$exec_prefix"
8569 acl_save_prefix="$prefix"
8570 prefix="$acl_final_prefix"
8571 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
8572 prefix="$acl_save_prefix"
8576 # Check whether --with-gnu-ld was given.
8577 if test ${with_gnu_ld+y}
8579 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
8584 # Prepare PATH_SEPARATOR.
8585 # The user is always right.
8586 if test "${PATH_SEPARATOR+set}" != set; then
8587 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
8588 # contains only /bin. Note that ksh looks also at the FPATH variable,
8589 # so we have to set that as well for the test.
8591 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
8592 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
8593 || PATH_SEPARATOR=';'
8597 if test -n "$LD"; then
8598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld" >&5
8599 printf %s "checking for ld... " >&6; }
8600 elif test "$GCC" = yes; then
8601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
8602 printf %s "checking for ld used by $CC... " >&6; }
8603 elif test "$with_gnu_ld" = yes; then
8604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8605 printf %s "checking for GNU ld... " >&6; }
8607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
8608 printf %s "checking for non-GNU ld... " >&6; }
8610 if test -n "$LD"; then
8611 # Let the user override the test with a path.
8614 if test ${acl_cv_path_LD+y}
8616 printf %s "(cached) " >&6
8619 acl_cv_path_LD= # Final result of this test
8620 ac_prog=ld # Program to search in $PATH
8621 if test "$GCC" = yes; then
8622 # Check if gcc -print-prog-name=ld gives a path.
8625 # gcc leaves a trailing carriage return which upsets mingw
8626 acl_output=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8628 acl_output=`($CC -print-prog-name=ld) 2>&5` ;;
8631 # Accept absolute paths.
8633 re_direlt='/[^/][^/]*/\.\./'
8634 # Canonicalize the pathname of ld
8635 acl_output=`echo "$acl_output" | sed 's%\\\\%/%g'`
8636 while echo "$acl_output" | grep "$re_direlt" > /dev/null 2>&1; do
8637 acl_output=`echo $acl_output | sed "s%$re_direlt%/%"`
8639 # Got the pathname. No search in PATH is needed.
8640 acl_cv_path_LD="$acl_output"
8644 # If it fails, then pretend we aren't using GCC.
8647 # If it is relative, then search for the first ld in PATH.
8652 if test -n "$ac_prog"; then
8653 # Search for $ac_prog in $PATH.
8654 acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8655 for ac_dir in $PATH; do
8657 test -z "$ac_dir" && ac_dir=.
8658 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8659 acl_cv_path_LD="$ac_dir/$ac_prog"
8660 # Check to see if the program is GNU ld. I'd rather use --version,
8661 # but apparently some variants of GNU ld only accept -v.
8662 # Break only if it was the GNU/non-GNU ld that we prefer.
8663 case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
8664 *GNU* | *'with BFD'*)
8665 test "$with_gnu_ld" != no && break
8668 test "$with_gnu_ld" != yes && break
8677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8678 /* end confdefs.h. */
8679 #if defined __powerpc64__ || defined _ARCH_PPC64
8686 if ac_fn_c_try_compile "$LINENO"
8688 # The compiler produces 64-bit code. Add option '-b64' so that the
8689 # linker groks 64-bit object files.
8690 case "$acl_cv_path_LD " in
8692 *) acl_cv_path_LD="$acl_cv_path_LD -b64" ;;
8696 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8700 /* end confdefs.h. */
8701 #if defined __sparcv9 || defined __arch64__
8708 if ac_fn_c_try_compile "$LINENO"
8712 # The compiler produces 32-bit code. Add option '-m elf32_sparc'
8713 # so that the linker groks 32-bit object files.
8714 case "$acl_cv_path_LD " in
8715 *" -m elf32_sparc "*) ;;
8716 *) acl_cv_path_LD="$acl_cv_path_LD -m elf32_sparc" ;;
8720 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8726 LD="$acl_cv_path_LD"
8728 if test -n "$LD"; then
8729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8730 printf "%s\n" "$LD" >&6; }
8732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8733 printf "%s\n" "no" >&6; }
8734 as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
8736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
8737 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
8738 if test ${acl_cv_prog_gnu_ld+y}
8740 printf %s "(cached) " >&6
8742 # I'd rather use --version here, but apparently some GNU lds only accept -v.
8743 case `$LD -v 2>&1 </dev/null` in
8744 *GNU* | *'with BFD'*)
8745 acl_cv_prog_gnu_ld=yes
8748 acl_cv_prog_gnu_ld=no
8752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
8753 printf "%s\n" "$acl_cv_prog_gnu_ld" >&6; }
8754 with_gnu_ld=$acl_cv_prog_gnu_ld
8761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
8762 printf %s "checking for shared library run path origin... " >&6; }
8763 if test ${acl_cv_rpath+y}
8765 printf %s "(cached) " >&6
8768 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
8769 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
8775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
8776 printf "%s\n" "$acl_cv_rpath" >&6; }
8778 acl_libext="$acl_cv_libext"
8779 acl_shlibext="$acl_cv_shlibext"
8780 acl_libname_spec="$acl_cv_libname_spec"
8781 acl_library_names_spec="$acl_cv_library_names_spec"
8782 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
8783 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
8784 acl_hardcode_direct="$acl_cv_hardcode_direct"
8785 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
8786 # Check whether --enable-rpath was given.
8787 if test ${enable_rpath+y}
8789 enableval=$enable_rpath; :
8797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking 32-bit host C ABI" >&5
8798 printf %s "checking 32-bit host C ABI... " >&6; }
8799 if test ${gl_cv_host_cpu_c_abi_32bit+y}
8801 printf %s "(cached) " >&6
8803 if test -n "$gl_cv_host_cpu_c_abi"; then
8804 case "$gl_cv_host_cpu_c_abi" in
8805 i386 | x86_64-x32 | arm | armhf | arm64-ilp32 | hppa | ia64-ilp32 | mips | mipsn32 | powerpc | riscv*-ilp32* | s390 | sparc)
8806 gl_cv_host_cpu_c_abi_32bit=yes ;;
8807 x86_64 | alpha | arm64 | hppa64 | ia64 | mips64 | powerpc64 | powerpc64-elfv2 | riscv*-lp64* | s390x | sparc64 )
8808 gl_cv_host_cpu_c_abi_32bit=no ;;
8810 gl_cv_host_cpu_c_abi_32bit=unknown ;;
8815 # CPUs that only support a 32-bit ABI.
8824 | microblaze | microblazeel \
8825 | nds32 | nds32le | nds32be \
8826 | nios2 | nios2eb | nios2el \
8829 | sh | sh1234 | sh1234elb \
8832 gl_cv_host_cpu_c_abi_32bit=yes
8835 # CPUs that only support a 64-bit ABI.
8836 alpha | alphaev[4-8] | alphaev56 | alphapca5[67] | alphaev6[78] \
8838 gl_cv_host_cpu_c_abi_32bit=no
8842 gl_cv_host_cpu_c_abi_32bit=yes
8846 # On x86_64 systems, the C compiler may be generating code in one of
8848 # - 64-bit instruction set, 64-bit pointers, 64-bit 'long': x86_64.
8849 # - 64-bit instruction set, 64-bit pointers, 32-bit 'long': x86_64
8850 # with native Windows (mingw, MSVC).
8851 # - 64-bit instruction set, 32-bit pointers, 32-bit 'long': x86_64-x32.
8852 # - 32-bit instruction set, 32-bit pointers, 32-bit 'long': i386.
8853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8854 /* end confdefs.h. */
8855 #if (defined __x86_64__ || defined __amd64__ \
8856 || defined _M_X64 || defined _M_AMD64) \
8857 && !(defined __ILP32__ || defined _ILP32)
8864 if ac_fn_c_try_compile "$LINENO"
8866 gl_cv_host_cpu_c_abi_32bit=no
8868 gl_cv_host_cpu_c_abi_32bit=yes
8870 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8874 # Assume arm with EABI.
8875 # On arm64 systems, the C compiler may be generating code in one of
8877 # - aarch64 instruction set, 64-bit pointers, 64-bit 'long': arm64.
8878 # - aarch64 instruction set, 32-bit pointers, 32-bit 'long': arm64-ilp32.
8879 # - 32-bit instruction set, 32-bit pointers, 32-bit 'long': arm or armhf.
8880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8881 /* end confdefs.h. */
8882 #if defined __aarch64__ && !(defined __ILP32__ || defined _ILP32)
8889 if ac_fn_c_try_compile "$LINENO"
8891 gl_cv_host_cpu_c_abi_32bit=no
8893 gl_cv_host_cpu_c_abi_32bit=yes
8895 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8898 hppa1.0 | hppa1.1 | hppa2.0* | hppa64 )
8899 # On hppa, the C compiler may be generating 32-bit code or 64-bit
8900 # code. In the latter case, it defines _LP64 and __LP64__.
8901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8902 /* end confdefs.h. */
8910 if ac_fn_c_try_compile "$LINENO"
8912 gl_cv_host_cpu_c_abi_32bit=no
8914 gl_cv_host_cpu_c_abi_32bit=yes
8916 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8920 # On ia64 on HP-UX, the C compiler may be generating 64-bit code or
8921 # 32-bit code. In the latter case, it defines _ILP32.
8922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8923 /* end confdefs.h. */
8931 if ac_fn_c_try_compile "$LINENO"
8933 gl_cv_host_cpu_c_abi_32bit=yes
8935 gl_cv_host_cpu_c_abi_32bit=no
8937 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8941 # We should also check for (_MIPS_SZPTR == 64), but gcc keeps this
8943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8944 /* end confdefs.h. */
8945 #if defined _MIPS_SZLONG && (_MIPS_SZLONG == 64)
8952 if ac_fn_c_try_compile "$LINENO"
8954 gl_cv_host_cpu_c_abi_32bit=no
8956 gl_cv_host_cpu_c_abi_32bit=yes
8958 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8962 # Different ABIs are in use on AIX vs. Mac OS X vs. Linux,*BSD.
8963 # No need to distinguish them here; the caller may distinguish
8964 # them based on the OS.
8965 # On powerpc64 systems, the C compiler may still be generating
8966 # 32-bit code. And on powerpc-ibm-aix systems, the C compiler may
8967 # be generating 64-bit code.
8968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8969 /* end confdefs.h. */
8970 #if defined __powerpc64__ || defined _ARCH_PPC64
8977 if ac_fn_c_try_compile "$LINENO"
8979 gl_cv_host_cpu_c_abi_32bit=no
8981 gl_cv_host_cpu_c_abi_32bit=yes
8983 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8987 gl_cv_host_cpu_c_abi_32bit=yes
8991 # There are 6 ABIs: ilp32, ilp32f, ilp32d, lp64, lp64f, lp64d.
8992 # Size of 'long' and 'void *':
8993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8994 /* end confdefs.h. */
8995 #if defined __LP64__
9002 if ac_fn_c_try_compile "$LINENO"
9004 gl_cv_host_cpu_c_abi_32bit=no
9006 gl_cv_host_cpu_c_abi_32bit=yes
9008 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9012 # On s390x, the C compiler may be generating 64-bit (= s390x) code
9013 # or 31-bit (= s390) code.
9014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9015 /* end confdefs.h. */
9016 #if defined __LP64__ || defined __s390x__
9023 if ac_fn_c_try_compile "$LINENO"
9025 gl_cv_host_cpu_c_abi_32bit=no
9027 gl_cv_host_cpu_c_abi_32bit=yes
9029 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9033 # UltraSPARCs running Linux have `uname -m` = "sparc64", but the
9034 # C compiler still generates 32-bit code.
9035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9036 /* end confdefs.h. */
9037 #if defined __sparcv9 || defined __arch64__
9044 if ac_fn_c_try_compile "$LINENO"
9046 gl_cv_host_cpu_c_abi_32bit=no
9048 gl_cv_host_cpu_c_abi_32bit=yes
9050 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9054 gl_cv_host_cpu_c_abi_32bit=unknown
9060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_host_cpu_c_abi_32bit" >&5
9061 printf "%s\n" "$gl_cv_host_cpu_c_abi_32bit" >&6; }
9063 HOST_CPU_C_ABI_32BIT="$gl_cv_host_cpu_c_abi_32bit"
9069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ELF binary format" >&5
9070 printf %s "checking for ELF binary format... " >&6; }
9071 if test ${gl_cv_elf+y}
9073 printf %s "(cached) " >&6
9075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9076 /* end confdefs.h. */
9078 Extensible Linking Format
9082 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9083 $EGREP "Extensible Linking Format" >/dev/null 2>&1
9093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_elf" >&5
9094 printf "%s\n" "$gl_cv_elf" >&6; }
9095 if test $gl_cv_elf; then
9096 # Extract the ELF class of a file (5th byte) in decimal.
9097 # Cf. https://en.wikipedia.org/wiki/Executable_and_Linkable_Format#File_header
9098 if od -A x < /dev/null >/dev/null 2>/dev/null; then
9102 od -A n -t d1 -j 4 -N 1
9108 dd bs=1 count=1 skip=4 2>/dev/null | hexdump -e '1/1 "%3d "'
9112 case $HOST_CPU_C_ABI_32BIT in
9115 acl_is_expected_elfclass ()
9117 test "`func_elfclass | sed -e 's/[ ]//g'`" = 1
9122 acl_is_expected_elfclass ()
9124 test "`func_elfclass | sed -e 's/[ ]//g'`" = 2
9129 acl_is_expected_elfclass ()
9136 acl_is_expected_elfclass ()
9142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the common suffixes of directories in the library search path" >&5
9143 printf %s "checking for the common suffixes of directories in the library search path... " >&6; }
9144 if test ${acl_cv_libdirstems+y}
9146 printf %s "(cached) " >&6
9153 if test $HOST_CPU_C_ABI_32BIT = no; then
9154 acl_libdirstem2=lib/64
9156 sparc*) acl_libdirstem3=lib/sparcv9 ;;
9157 i*86 | x86_64) acl_libdirstem3=lib/amd64 ;;
9162 searchpath=`(LC_ALL=C $CC $CPPFLAGS $CFLAGS -print-search-dirs) 2>/dev/null \
9163 | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
9164 if test $HOST_CPU_C_ABI_32BIT != no; then
9165 # 32-bit or unknown ABI.
9166 if test -d /usr/lib32; then
9167 acl_libdirstem2=lib32
9170 if test $HOST_CPU_C_ABI_32BIT != yes; then
9171 # 64-bit or unknown ABI.
9172 if test -d /usr/lib64; then
9173 acl_libdirstem3=lib64
9176 if test -n "$searchpath"; then
9177 acl_save_IFS="${IFS= }"; IFS=":"
9178 for searchdir in $searchpath; do
9179 if test -d "$searchdir"; then
9180 case "$searchdir" in
9181 */lib32/ | */lib32 ) acl_libdirstem2=lib32 ;;
9182 */lib64/ | */lib64 ) acl_libdirstem3=lib64 ;;
9184 # Better ignore directories of this form. They are misleading.
9186 *) searchdir=`cd "$searchdir" && pwd`
9187 case "$searchdir" in
9188 */lib32 ) acl_libdirstem2=lib32 ;;
9189 */lib64 ) acl_libdirstem3=lib64 ;;
9195 if test $HOST_CPU_C_ABI_32BIT = yes; then
9199 if test $HOST_CPU_C_ABI_32BIT = no; then
9206 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
9207 test -n "$acl_libdirstem3" || acl_libdirstem3="$acl_libdirstem"
9208 acl_cv_libdirstems="$acl_libdirstem,$acl_libdirstem2,$acl_libdirstem3"
9211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_libdirstems" >&5
9212 printf "%s\n" "$acl_cv_libdirstems" >&6; }
9213 acl_libdirstem=`echo "$acl_cv_libdirstems" | sed -e 's/,.*//'`
9214 acl_libdirstem2=`echo "$acl_cv_libdirstems" | sed -e 's/^[^,]*,//' -e 's/,.*//'`
9215 acl_libdirstem3=`echo "$acl_cv_libdirstems" | sed -e 's/^[^,]*,[^,]*,//' -e 's/,.*//'`
9229 acl_save_prefix="$prefix"
9230 prefix="$acl_final_prefix"
9231 acl_save_exec_prefix="$exec_prefix"
9232 exec_prefix="$acl_final_exec_prefix"
9234 eval additional_includedir=\"$includedir\"
9235 eval additional_libdir=\"$libdir\"
9236 eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
9237 eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
9239 exec_prefix="$acl_save_exec_prefix"
9240 prefix="$acl_save_prefix"
9243 # Check whether --with-libiconv-prefix was given.
9244 if test ${with_libiconv_prefix+y}
9246 withval=$with_libiconv_prefix;
9247 if test "X$withval" = "Xno"; then
9250 if test "X$withval" = "X"; then
9252 acl_save_prefix="$prefix"
9253 prefix="$acl_final_prefix"
9254 acl_save_exec_prefix="$exec_prefix"
9255 exec_prefix="$acl_final_exec_prefix"
9257 eval additional_includedir=\"$includedir\"
9258 eval additional_libdir=\"$libdir\"
9259 eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
9260 eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
9262 exec_prefix="$acl_save_exec_prefix"
9263 prefix="$acl_save_prefix"
9266 additional_includedir="$withval/include"
9267 additional_libdir="$withval/$acl_libdirstem"
9268 additional_libdir2="$withval/$acl_libdirstem2"
9269 additional_libdir3="$withval/$acl_libdirstem3"
9275 if test "X$additional_libdir2" = "X$additional_libdir"; then
9278 if test "X$additional_libdir3" = "X$additional_libdir"; then
9288 names_already_handled=
9289 names_next_round='iconv '
9290 while test -n "$names_next_round"; do
9291 names_this_round="$names_next_round"
9293 for name in $names_this_round; do
9295 for n in $names_already_handled; do
9296 if test "$n" = "$name"; then
9301 if test -z "$already_handled"; then
9302 names_already_handled="$names_already_handled $name"
9303 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
9304 eval value=\"\$HAVE_LIB$uppername\"
9305 if test -n "$value"; then
9306 if test "$value" = yes; then
9307 eval value=\"\$LIB$uppername\"
9308 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
9309 eval value=\"\$LTLIB$uppername\"
9310 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
9319 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
9320 if test -n "$acl_shlibext"; then
9321 shrext=".$acl_shlibext" # typically: shrext=.so
9325 if test $use_additional = yes; then
9326 for additional_libdir_variable in additional_libdir additional_libdir2 additional_libdir3; do
9327 if test "X$found_dir" = "X"; then
9328 eval dir=\$$additional_libdir_variable
9329 if test -n "$dir"; then
9330 if test -n "$acl_shlibext"; then
9331 if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
9333 found_so="$dir/$libname$shrext"
9335 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
9336 ver=`(cd "$dir" && \
9337 for f in "$libname$shrext".*; do echo "$f"; done \
9338 | sed -e "s,^$libname$shrext\\\\.,," \
9339 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
9340 | sed 1q ) 2>/dev/null`
9341 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
9343 found_so="$dir/$libname$shrext.$ver"
9346 eval library_names=\"$acl_library_names_spec\"
9347 for f in $library_names; do
9348 if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
9357 if test "X$found_dir" = "X"; then
9358 if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
9360 found_a="$dir/$libname.$acl_libext"
9363 if test "X$found_dir" != "X"; then
9364 if test -f "$dir/$libname.la"; then
9365 found_la="$dir/$libname.la"
9372 if test "X$found_dir" = "X"; then
9373 for x in $LDFLAGS $LTLIBICONV; do
9375 acl_save_prefix="$prefix"
9376 prefix="$acl_final_prefix"
9377 acl_save_exec_prefix="$exec_prefix"
9378 exec_prefix="$acl_final_exec_prefix"
9380 exec_prefix="$acl_save_exec_prefix"
9381 prefix="$acl_save_prefix"
9385 dir=`echo "X$x" | sed -e 's/^X-L//'`
9386 if test -n "$acl_shlibext"; then
9387 if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
9389 found_so="$dir/$libname$shrext"
9391 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
9392 ver=`(cd "$dir" && \
9393 for f in "$libname$shrext".*; do echo "$f"; done \
9394 | sed -e "s,^$libname$shrext\\\\.,," \
9395 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
9396 | sed 1q ) 2>/dev/null`
9397 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
9399 found_so="$dir/$libname$shrext.$ver"
9402 eval library_names=\"$acl_library_names_spec\"
9403 for f in $library_names; do
9404 if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
9413 if test "X$found_dir" = "X"; then
9414 if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
9416 found_a="$dir/$libname.$acl_libext"
9419 if test "X$found_dir" != "X"; then
9420 if test -f "$dir/$libname.la"; then
9421 found_la="$dir/$libname.la"
9426 if test "X$found_dir" != "X"; then
9431 if test "X$found_dir" != "X"; then
9432 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9433 if test "X$found_so" != "X"; then
9434 if test "$enable_rpath" = no \
9435 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
9436 || test "X$found_dir" = "X/usr/$acl_libdirstem2" \
9437 || test "X$found_dir" = "X/usr/$acl_libdirstem3"; then
9438 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9441 for x in $ltrpathdirs; do
9442 if test "X$x" = "X$found_dir"; then
9447 if test -z "$haveit"; then
9448 ltrpathdirs="$ltrpathdirs $found_dir"
9450 if test "$acl_hardcode_direct" = yes; then
9451 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9453 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
9454 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9456 for x in $rpathdirs; do
9457 if test "X$x" = "X$found_dir"; then
9462 if test -z "$haveit"; then
9463 rpathdirs="$rpathdirs $found_dir"
9467 for x in $LDFLAGS $LIBICONV; do
9469 acl_save_prefix="$prefix"
9470 prefix="$acl_final_prefix"
9471 acl_save_exec_prefix="$exec_prefix"
9472 exec_prefix="$acl_final_exec_prefix"
9474 exec_prefix="$acl_save_exec_prefix"
9475 prefix="$acl_save_prefix"
9477 if test "X$x" = "X-L$found_dir"; then
9482 if test -z "$haveit"; then
9483 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9485 if test "$acl_hardcode_minus_L" != no; then
9486 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9488 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9494 if test "X$found_a" != "X"; then
9495 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
9497 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9500 additional_includedir=
9501 case "$found_dir" in
9502 */$acl_libdirstem | */$acl_libdirstem/)
9503 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
9504 if test "$name" = 'iconv'; then
9505 LIBICONV_PREFIX="$basedir"
9507 additional_includedir="$basedir/include"
9509 */$acl_libdirstem2 | */$acl_libdirstem2/)
9510 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
9511 if test "$name" = 'iconv'; then
9512 LIBICONV_PREFIX="$basedir"
9514 additional_includedir="$basedir/include"
9516 */$acl_libdirstem3 | */$acl_libdirstem3/)
9517 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem3/"'*$,,'`
9518 if test "$name" = 'iconv'; then
9519 LIBICONV_PREFIX="$basedir"
9521 additional_includedir="$basedir/include"
9524 if test "X$additional_includedir" != "X"; then
9525 if test "X$additional_includedir" != "X/usr/include"; then
9527 if test "X$additional_includedir" = "X/usr/local/include"; then
9528 if test -n "$GCC"; then
9530 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
9534 if test -z "$haveit"; then
9535 for x in $CPPFLAGS $INCICONV; do
9537 acl_save_prefix="$prefix"
9538 prefix="$acl_final_prefix"
9539 acl_save_exec_prefix="$exec_prefix"
9540 exec_prefix="$acl_final_exec_prefix"
9542 exec_prefix="$acl_save_exec_prefix"
9543 prefix="$acl_save_prefix"
9545 if test "X$x" = "X-I$additional_includedir"; then
9550 if test -z "$haveit"; then
9551 if test -d "$additional_includedir"; then
9552 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9558 if test -n "$found_la"; then
9559 save_libdir="$libdir"
9561 */* | *\\*) . "$found_la" ;;
9562 *) . "./$found_la" ;;
9564 libdir="$save_libdir"
9565 for dep in $dependency_libs; do
9568 dependency_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9569 if test "X$dependency_libdir" != "X/usr/$acl_libdirstem" \
9570 && test "X$dependency_libdir" != "X/usr/$acl_libdirstem2" \
9571 && test "X$dependency_libdir" != "X/usr/$acl_libdirstem3"; then
9573 if test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem" \
9574 || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem2" \
9575 || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem3"; then
9576 if test -n "$GCC"; then
9578 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
9582 if test -z "$haveit"; then
9584 for x in $LDFLAGS $LIBICONV; do
9586 acl_save_prefix="$prefix"
9587 prefix="$acl_final_prefix"
9588 acl_save_exec_prefix="$exec_prefix"
9589 exec_prefix="$acl_final_exec_prefix"
9591 exec_prefix="$acl_save_exec_prefix"
9592 prefix="$acl_save_prefix"
9594 if test "X$x" = "X-L$dependency_libdir"; then
9599 if test -z "$haveit"; then
9600 if test -d "$dependency_libdir"; then
9601 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$dependency_libdir"
9605 for x in $LDFLAGS $LTLIBICONV; do
9607 acl_save_prefix="$prefix"
9608 prefix="$acl_final_prefix"
9609 acl_save_exec_prefix="$exec_prefix"
9610 exec_prefix="$acl_final_exec_prefix"
9612 exec_prefix="$acl_save_exec_prefix"
9613 prefix="$acl_save_prefix"
9615 if test "X$x" = "X-L$dependency_libdir"; then
9620 if test -z "$haveit"; then
9621 if test -d "$dependency_libdir"; then
9622 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$dependency_libdir"
9629 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9630 if test "$enable_rpath" != no; then
9632 for x in $rpathdirs; do
9633 if test "X$x" = "X$dir"; then
9638 if test -z "$haveit"; then
9639 rpathdirs="$rpathdirs $dir"
9642 for x in $ltrpathdirs; do
9643 if test "X$x" = "X$dir"; then
9648 if test -z "$haveit"; then
9649 ltrpathdirs="$ltrpathdirs $dir"
9654 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9657 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9660 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
9661 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
9667 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9668 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
9674 if test "X$rpathdirs" != "X"; then
9675 if test -n "$acl_hardcode_libdir_separator"; then
9677 for found_dir in $rpathdirs; do
9678 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
9680 acl_save_libdir="$libdir"
9682 eval flag=\"$acl_hardcode_libdir_flag_spec\"
9683 libdir="$acl_save_libdir"
9684 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9686 for found_dir in $rpathdirs; do
9687 acl_save_libdir="$libdir"
9689 eval flag=\"$acl_hardcode_libdir_flag_spec\"
9690 libdir="$acl_save_libdir"
9691 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9695 if test "X$ltrpathdirs" != "X"; then
9696 for found_dir in $ltrpathdirs; do
9697 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
9729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
9730 printf %s "checking for CFPreferencesCopyAppValue... " >&6; }
9731 if test ${gt_cv_func_CFPreferencesCopyAppValue+y}
9733 printf %s "(cached) " >&6
9735 gt_save_LIBS="$LIBS"
9736 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
9737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9738 /* end confdefs.h. */
9739 #include <CoreFoundation/CFPreferences.h>
9743 CFPreferencesCopyAppValue(NULL, NULL)
9748 if ac_fn_c_try_link "$LINENO"
9750 gt_cv_func_CFPreferencesCopyAppValue=yes
9752 gt_cv_func_CFPreferencesCopyAppValue=no
9754 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9755 conftest$ac_exeext conftest.$ac_ext
9756 LIBS="$gt_save_LIBS"
9758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
9759 printf "%s\n" "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
9760 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
9762 printf "%s\n" "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
9765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyPreferredLanguages" >&5
9766 printf %s "checking for CFLocaleCopyPreferredLanguages... " >&6; }
9767 if test ${gt_cv_func_CFLocaleCopyPreferredLanguages+y}
9769 printf %s "(cached) " >&6
9771 gt_save_LIBS="$LIBS"
9772 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
9773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9774 /* end confdefs.h. */
9775 #include <CoreFoundation/CFLocale.h>
9779 CFLocaleCopyPreferredLanguages();
9784 if ac_fn_c_try_link "$LINENO"
9786 gt_cv_func_CFLocaleCopyPreferredLanguages=yes
9788 gt_cv_func_CFLocaleCopyPreferredLanguages=no
9790 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9791 conftest$ac_exeext conftest.$ac_ext
9792 LIBS="$gt_save_LIBS"
9794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyPreferredLanguages" >&5
9795 printf "%s\n" "$gt_cv_func_CFLocaleCopyPreferredLanguages" >&6; }
9796 if test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
9798 printf "%s\n" "#define HAVE_CFLOCALECOPYPREFERREDLANGUAGES 1" >>confdefs.h
9802 if test $gt_cv_func_CFPreferencesCopyAppValue = yes \
9803 || test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
9804 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
9816 case " $gt_needs " in
9817 *" need-formatstring-macros "*) gt_api_version=3 ;;
9818 *" need-ngettext "*) gt_api_version=2 ;;
9819 *) gt_api_version=1 ;;
9821 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
9822 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
9824 if test "$USE_NLS" = "yes"; then
9825 gt_use_preinstalled_gnugettext=no
9828 if test $gt_api_version -ge 3; then
9829 gt_revision_test_code='
9830 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
9831 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
9833 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
9836 gt_revision_test_code=
9838 if test $gt_api_version -ge 2; then
9839 gt_expression_test_code=' + * ngettext ("", "", 0)'
9841 gt_expression_test_code=
9844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
9845 printf %s "checking for GNU gettext in libc... " >&6; }
9846 if eval test \${$gt_func_gnugettext_libc+y}
9848 printf %s "(cached) " >&6
9850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9851 /* end confdefs.h. */
9853 #include <libintl.h>
9854 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
9855 extern int _nl_msg_cat_cntr;
9856 extern int *_nl_domain_bindings;
9857 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_domain_bindings)
9859 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
9861 $gt_revision_test_code
9867 bindtextdomain ("", "");
9868 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
9874 if ac_fn_c_try_link "$LINENO"
9876 eval "$gt_func_gnugettext_libc=yes"
9878 eval "$gt_func_gnugettext_libc=no"
9880 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9881 conftest$ac_exeext conftest.$ac_ext
9883 eval ac_res=\$$gt_func_gnugettext_libc
9884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9885 printf "%s\n" "$ac_res" >&6; }
9887 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
9893 am_save_CPPFLAGS="$CPPFLAGS"
9895 for element in $INCICONV; do
9897 for x in $CPPFLAGS; do
9899 acl_save_prefix="$prefix"
9900 prefix="$acl_final_prefix"
9901 acl_save_exec_prefix="$exec_prefix"
9902 exec_prefix="$acl_final_exec_prefix"
9904 exec_prefix="$acl_save_exec_prefix"
9905 prefix="$acl_save_prefix"
9907 if test "X$x" = "X$element"; then
9912 if test -z "$haveit"; then
9913 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
9919 printf %s "checking for iconv... " >&6; }
9920 if test ${am_cv_func_iconv+y}
9922 printf %s "(cached) " >&6
9925 am_cv_func_iconv="no, consider installing GNU libiconv"
9927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9928 /* end confdefs.h. */
9936 iconv_t cd = iconv_open("","");
9937 iconv(cd,NULL,NULL,NULL,NULL);
9943 if ac_fn_c_try_link "$LINENO"
9945 am_cv_func_iconv=yes
9947 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9948 conftest$ac_exeext conftest.$ac_ext
9949 if test "$am_cv_func_iconv" != yes; then
9950 am_save_LIBS="$LIBS"
9951 LIBS="$LIBS $LIBICONV"
9952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9953 /* end confdefs.h. */
9961 iconv_t cd = iconv_open("","");
9962 iconv(cd,NULL,NULL,NULL,NULL);
9968 if ac_fn_c_try_link "$LINENO"
9971 am_cv_func_iconv=yes
9973 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9974 conftest$ac_exeext conftest.$ac_ext
9975 LIBS="$am_save_LIBS"
9979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
9980 printf "%s\n" "$am_cv_func_iconv" >&6; }
9981 if test "$am_cv_func_iconv" = yes; then
9982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
9983 printf %s "checking for working iconv... " >&6; }
9984 if test ${am_cv_func_iconv_works+y}
9986 printf %s "(cached) " >&6
9989 am_save_LIBS="$LIBS"
9990 if test $am_cv_lib_iconv = yes; then
9991 LIBS="$LIBS $LIBICONV"
9993 am_cv_func_iconv_works=no
9994 for ac_iconv_const in '' 'const'; do
9995 if test "$cross_compiling" = yes
9998 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
9999 *) am_cv_func_iconv_works="guessing yes" ;;
10002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10003 /* end confdefs.h. */
10006 #include <string.h>
10008 #ifndef ICONV_CONST
10009 # define ICONV_CONST $ac_iconv_const
10016 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
10019 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
10020 if (cd_utf8_to_88591 != (iconv_t)(-1))
10022 static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
10024 ICONV_CONST char *inptr = input;
10025 size_t inbytesleft = strlen (input);
10026 char *outptr = buf;
10027 size_t outbytesleft = sizeof (buf);
10028 size_t res = iconv (cd_utf8_to_88591,
10029 &inptr, &inbytesleft,
10030 &outptr, &outbytesleft);
10033 iconv_close (cd_utf8_to_88591);
10036 /* Test against Solaris 10 bug: Failures are not distinguishable from
10037 successful returns. */
10039 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
10040 if (cd_ascii_to_88591 != (iconv_t)(-1))
10042 static ICONV_CONST char input[] = "\263";
10044 ICONV_CONST char *inptr = input;
10045 size_t inbytesleft = strlen (input);
10046 char *outptr = buf;
10047 size_t outbytesleft = sizeof (buf);
10048 size_t res = iconv (cd_ascii_to_88591,
10049 &inptr, &inbytesleft,
10050 &outptr, &outbytesleft);
10053 iconv_close (cd_ascii_to_88591);
10056 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
10058 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
10059 if (cd_88591_to_utf8 != (iconv_t)(-1))
10061 static ICONV_CONST char input[] = "\304";
10062 static char buf[2] = { (char)0xDE, (char)0xAD };
10063 ICONV_CONST char *inptr = input;
10064 size_t inbytesleft = 1;
10065 char *outptr = buf;
10066 size_t outbytesleft = 1;
10067 size_t res = iconv (cd_88591_to_utf8,
10068 &inptr, &inbytesleft,
10069 &outptr, &outbytesleft);
10070 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
10072 iconv_close (cd_88591_to_utf8);
10075 #if 0 /* This bug could be worked around by the caller. */
10076 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
10078 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
10079 if (cd_88591_to_utf8 != (iconv_t)(-1))
10081 static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
10083 ICONV_CONST char *inptr = input;
10084 size_t inbytesleft = strlen (input);
10085 char *outptr = buf;
10086 size_t outbytesleft = sizeof (buf);
10087 size_t res = iconv (cd_88591_to_utf8,
10088 &inptr, &inbytesleft,
10089 &outptr, &outbytesleft);
10092 iconv_close (cd_88591_to_utf8);
10096 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
10099 /* Try standardized names. */
10100 iconv_t cd1 = iconv_open ("UTF-8", "EUC-JP");
10101 /* Try IRIX, OSF/1 names. */
10102 iconv_t cd2 = iconv_open ("UTF-8", "eucJP");
10103 /* Try AIX names. */
10104 iconv_t cd3 = iconv_open ("UTF-8", "IBM-eucJP");
10105 /* Try HP-UX names. */
10106 iconv_t cd4 = iconv_open ("utf8", "eucJP");
10107 if (cd1 == (iconv_t)(-1) && cd2 == (iconv_t)(-1)
10108 && cd3 == (iconv_t)(-1) && cd4 == (iconv_t)(-1))
10110 if (cd1 != (iconv_t)(-1))
10112 if (cd2 != (iconv_t)(-1))
10114 if (cd3 != (iconv_t)(-1))
10116 if (cd4 != (iconv_t)(-1))
10125 if ac_fn_c_try_run "$LINENO"
10127 am_cv_func_iconv_works=yes
10129 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10130 conftest.$ac_objext conftest.beam conftest.$ac_ext
10133 test "$am_cv_func_iconv_works" = no || break
10135 LIBS="$am_save_LIBS"
10138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
10139 printf "%s\n" "$am_cv_func_iconv_works" >&6; }
10140 case "$am_cv_func_iconv_works" in
10141 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
10142 *) am_func_iconv=yes ;;
10145 am_func_iconv=no am_cv_lib_iconv=no
10147 if test "$am_func_iconv" = yes; then
10149 printf "%s\n" "#define HAVE_ICONV 1" >>confdefs.h
10152 if test "$am_cv_lib_iconv" = yes; then
10153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10154 printf %s "checking how to link with libiconv... " >&6; }
10155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10156 printf "%s\n" "$LIBICONV" >&6; }
10158 CPPFLAGS="$am_save_CPPFLAGS"
10174 acl_save_prefix="$prefix"
10175 prefix="$acl_final_prefix"
10176 acl_save_exec_prefix="$exec_prefix"
10177 exec_prefix="$acl_final_exec_prefix"
10179 eval additional_includedir=\"$includedir\"
10180 eval additional_libdir=\"$libdir\"
10181 eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
10182 eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
10184 exec_prefix="$acl_save_exec_prefix"
10185 prefix="$acl_save_prefix"
10188 # Check whether --with-libintl-prefix was given.
10189 if test ${with_libintl_prefix+y}
10191 withval=$with_libintl_prefix;
10192 if test "X$withval" = "Xno"; then
10195 if test "X$withval" = "X"; then
10197 acl_save_prefix="$prefix"
10198 prefix="$acl_final_prefix"
10199 acl_save_exec_prefix="$exec_prefix"
10200 exec_prefix="$acl_final_exec_prefix"
10202 eval additional_includedir=\"$includedir\"
10203 eval additional_libdir=\"$libdir\"
10204 eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
10205 eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
10207 exec_prefix="$acl_save_exec_prefix"
10208 prefix="$acl_save_prefix"
10211 additional_includedir="$withval/include"
10212 additional_libdir="$withval/$acl_libdirstem"
10213 additional_libdir2="$withval/$acl_libdirstem2"
10214 additional_libdir3="$withval/$acl_libdirstem3"
10220 if test "X$additional_libdir2" = "X$additional_libdir"; then
10221 additional_libdir2=
10223 if test "X$additional_libdir3" = "X$additional_libdir"; then
10224 additional_libdir3=
10233 names_already_handled=
10234 names_next_round='intl '
10235 while test -n "$names_next_round"; do
10236 names_this_round="$names_next_round"
10238 for name in $names_this_round; do
10240 for n in $names_already_handled; do
10241 if test "$n" = "$name"; then
10242 already_handled=yes
10246 if test -z "$already_handled"; then
10247 names_already_handled="$names_already_handled $name"
10248 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
10249 eval value=\"\$HAVE_LIB$uppername\"
10250 if test -n "$value"; then
10251 if test "$value" = yes; then
10252 eval value=\"\$LIB$uppername\"
10253 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
10254 eval value=\"\$LTLIB$uppername\"
10255 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
10264 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
10265 if test -n "$acl_shlibext"; then
10266 shrext=".$acl_shlibext" # typically: shrext=.so
10270 if test $use_additional = yes; then
10271 for additional_libdir_variable in additional_libdir additional_libdir2 additional_libdir3; do
10272 if test "X$found_dir" = "X"; then
10273 eval dir=\$$additional_libdir_variable
10274 if test -n "$dir"; then
10275 if test -n "$acl_shlibext"; then
10276 if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
10278 found_so="$dir/$libname$shrext"
10280 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
10281 ver=`(cd "$dir" && \
10282 for f in "$libname$shrext".*; do echo "$f"; done \
10283 | sed -e "s,^$libname$shrext\\\\.,," \
10284 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
10285 | sed 1q ) 2>/dev/null`
10286 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
10288 found_so="$dir/$libname$shrext.$ver"
10291 eval library_names=\"$acl_library_names_spec\"
10292 for f in $library_names; do
10293 if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
10302 if test "X$found_dir" = "X"; then
10303 if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
10305 found_a="$dir/$libname.$acl_libext"
10308 if test "X$found_dir" != "X"; then
10309 if test -f "$dir/$libname.la"; then
10310 found_la="$dir/$libname.la"
10317 if test "X$found_dir" = "X"; then
10318 for x in $LDFLAGS $LTLIBINTL; do
10320 acl_save_prefix="$prefix"
10321 prefix="$acl_final_prefix"
10322 acl_save_exec_prefix="$exec_prefix"
10323 exec_prefix="$acl_final_exec_prefix"
10325 exec_prefix="$acl_save_exec_prefix"
10326 prefix="$acl_save_prefix"
10330 dir=`echo "X$x" | sed -e 's/^X-L//'`
10331 if test -n "$acl_shlibext"; then
10332 if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
10334 found_so="$dir/$libname$shrext"
10336 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
10337 ver=`(cd "$dir" && \
10338 for f in "$libname$shrext".*; do echo "$f"; done \
10339 | sed -e "s,^$libname$shrext\\\\.,," \
10340 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
10341 | sed 1q ) 2>/dev/null`
10342 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
10344 found_so="$dir/$libname$shrext.$ver"
10347 eval library_names=\"$acl_library_names_spec\"
10348 for f in $library_names; do
10349 if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
10358 if test "X$found_dir" = "X"; then
10359 if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
10361 found_a="$dir/$libname.$acl_libext"
10364 if test "X$found_dir" != "X"; then
10365 if test -f "$dir/$libname.la"; then
10366 found_la="$dir/$libname.la"
10371 if test "X$found_dir" != "X"; then
10376 if test "X$found_dir" != "X"; then
10377 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
10378 if test "X$found_so" != "X"; then
10379 if test "$enable_rpath" = no \
10380 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
10381 || test "X$found_dir" = "X/usr/$acl_libdirstem2" \
10382 || test "X$found_dir" = "X/usr/$acl_libdirstem3"; then
10383 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10386 for x in $ltrpathdirs; do
10387 if test "X$x" = "X$found_dir"; then
10392 if test -z "$haveit"; then
10393 ltrpathdirs="$ltrpathdirs $found_dir"
10395 if test "$acl_hardcode_direct" = yes; then
10396 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10398 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
10399 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10401 for x in $rpathdirs; do
10402 if test "X$x" = "X$found_dir"; then
10407 if test -z "$haveit"; then
10408 rpathdirs="$rpathdirs $found_dir"
10412 for x in $LDFLAGS $LIBINTL; do
10414 acl_save_prefix="$prefix"
10415 prefix="$acl_final_prefix"
10416 acl_save_exec_prefix="$exec_prefix"
10417 exec_prefix="$acl_final_exec_prefix"
10419 exec_prefix="$acl_save_exec_prefix"
10420 prefix="$acl_save_prefix"
10422 if test "X$x" = "X-L$found_dir"; then
10427 if test -z "$haveit"; then
10428 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
10430 if test "$acl_hardcode_minus_L" != no; then
10431 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10433 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
10439 if test "X$found_a" != "X"; then
10440 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
10442 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
10445 additional_includedir=
10446 case "$found_dir" in
10447 */$acl_libdirstem | */$acl_libdirstem/)
10448 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
10449 if test "$name" = 'intl'; then
10450 LIBINTL_PREFIX="$basedir"
10452 additional_includedir="$basedir/include"
10454 */$acl_libdirstem2 | */$acl_libdirstem2/)
10455 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
10456 if test "$name" = 'intl'; then
10457 LIBINTL_PREFIX="$basedir"
10459 additional_includedir="$basedir/include"
10461 */$acl_libdirstem3 | */$acl_libdirstem3/)
10462 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem3/"'*$,,'`
10463 if test "$name" = 'intl'; then
10464 LIBINTL_PREFIX="$basedir"
10466 additional_includedir="$basedir/include"
10469 if test "X$additional_includedir" != "X"; then
10470 if test "X$additional_includedir" != "X/usr/include"; then
10472 if test "X$additional_includedir" = "X/usr/local/include"; then
10473 if test -n "$GCC"; then
10475 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
10479 if test -z "$haveit"; then
10480 for x in $CPPFLAGS $INCINTL; do
10482 acl_save_prefix="$prefix"
10483 prefix="$acl_final_prefix"
10484 acl_save_exec_prefix="$exec_prefix"
10485 exec_prefix="$acl_final_exec_prefix"
10487 exec_prefix="$acl_save_exec_prefix"
10488 prefix="$acl_save_prefix"
10490 if test "X$x" = "X-I$additional_includedir"; then
10495 if test -z "$haveit"; then
10496 if test -d "$additional_includedir"; then
10497 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
10503 if test -n "$found_la"; then
10504 save_libdir="$libdir"
10505 case "$found_la" in
10506 */* | *\\*) . "$found_la" ;;
10507 *) . "./$found_la" ;;
10509 libdir="$save_libdir"
10510 for dep in $dependency_libs; do
10513 dependency_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10514 if test "X$dependency_libdir" != "X/usr/$acl_libdirstem" \
10515 && test "X$dependency_libdir" != "X/usr/$acl_libdirstem2" \
10516 && test "X$dependency_libdir" != "X/usr/$acl_libdirstem3"; then
10518 if test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem" \
10519 || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem2" \
10520 || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem3"; then
10521 if test -n "$GCC"; then
10523 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
10527 if test -z "$haveit"; then
10529 for x in $LDFLAGS $LIBINTL; do
10531 acl_save_prefix="$prefix"
10532 prefix="$acl_final_prefix"
10533 acl_save_exec_prefix="$exec_prefix"
10534 exec_prefix="$acl_final_exec_prefix"
10536 exec_prefix="$acl_save_exec_prefix"
10537 prefix="$acl_save_prefix"
10539 if test "X$x" = "X-L$dependency_libdir"; then
10544 if test -z "$haveit"; then
10545 if test -d "$dependency_libdir"; then
10546 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$dependency_libdir"
10550 for x in $LDFLAGS $LTLIBINTL; do
10552 acl_save_prefix="$prefix"
10553 prefix="$acl_final_prefix"
10554 acl_save_exec_prefix="$exec_prefix"
10555 exec_prefix="$acl_final_exec_prefix"
10557 exec_prefix="$acl_save_exec_prefix"
10558 prefix="$acl_save_prefix"
10560 if test "X$x" = "X-L$dependency_libdir"; then
10565 if test -z "$haveit"; then
10566 if test -d "$dependency_libdir"; then
10567 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$dependency_libdir"
10574 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10575 if test "$enable_rpath" != no; then
10577 for x in $rpathdirs; do
10578 if test "X$x" = "X$dir"; then
10583 if test -z "$haveit"; then
10584 rpathdirs="$rpathdirs $dir"
10587 for x in $ltrpathdirs; do
10588 if test "X$x" = "X$dir"; then
10593 if test -z "$haveit"; then
10594 ltrpathdirs="$ltrpathdirs $dir"
10599 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10602 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10605 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
10606 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
10612 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
10613 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
10619 if test "X$rpathdirs" != "X"; then
10620 if test -n "$acl_hardcode_libdir_separator"; then
10622 for found_dir in $rpathdirs; do
10623 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
10625 acl_save_libdir="$libdir"
10627 eval flag=\"$acl_hardcode_libdir_flag_spec\"
10628 libdir="$acl_save_libdir"
10629 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
10631 for found_dir in $rpathdirs; do
10632 acl_save_libdir="$libdir"
10633 libdir="$found_dir"
10634 eval flag=\"$acl_hardcode_libdir_flag_spec\"
10635 libdir="$acl_save_libdir"
10636 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
10640 if test "X$ltrpathdirs" != "X"; then
10641 for found_dir in $ltrpathdirs; do
10642 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
10650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
10651 printf %s "checking for GNU gettext in libintl... " >&6; }
10652 if eval test \${$gt_func_gnugettext_libintl+y}
10654 printf %s "(cached) " >&6
10656 gt_save_CPPFLAGS="$CPPFLAGS"
10657 CPPFLAGS="$CPPFLAGS $INCINTL"
10658 gt_save_LIBS="$LIBS"
10659 LIBS="$LIBS $LIBINTL"
10660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10661 /* end confdefs.h. */
10663 #include <libintl.h>
10664 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
10665 extern int _nl_msg_cat_cntr;
10670 const char *_nl_expand_alias (const char *);
10671 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
10673 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
10675 $gt_revision_test_code
10681 bindtextdomain ("", "");
10682 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
10688 if ac_fn_c_try_link "$LINENO"
10690 eval "$gt_func_gnugettext_libintl=yes"
10692 eval "$gt_func_gnugettext_libintl=no"
10694 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10695 conftest$ac_exeext conftest.$ac_ext
10696 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
10697 LIBS="$LIBS $LIBICONV"
10698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10699 /* end confdefs.h. */
10701 #include <libintl.h>
10702 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
10703 extern int _nl_msg_cat_cntr;
10708 const char *_nl_expand_alias (const char *);
10709 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
10711 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
10713 $gt_revision_test_code
10719 bindtextdomain ("", "");
10720 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
10726 if ac_fn_c_try_link "$LINENO"
10728 LIBINTL="$LIBINTL $LIBICONV"
10729 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
10730 eval "$gt_func_gnugettext_libintl=yes"
10733 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10734 conftest$ac_exeext conftest.$ac_ext
10736 CPPFLAGS="$gt_save_CPPFLAGS"
10737 LIBS="$gt_save_LIBS"
10739 eval ac_res=\$$gt_func_gnugettext_libintl
10740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10741 printf "%s\n" "$ac_res" >&6; }
10744 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
10745 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
10746 && test "$PACKAGE" != gettext-runtime \
10747 && test "$PACKAGE" != gettext-tools; }; then
10748 gt_use_preinstalled_gnugettext=yes
10757 if test -n "$INTL_MACOSX_LIBS"; then
10758 if test "$gt_use_preinstalled_gnugettext" = "yes" \
10759 || test "$nls_cv_use_gnu_gettext" = "yes"; then
10760 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
10761 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
10765 if test "$gt_use_preinstalled_gnugettext" = "yes" \
10766 || test "$nls_cv_use_gnu_gettext" = "yes"; then
10768 printf "%s\n" "#define ENABLE_NLS 1" >>confdefs.h
10775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
10776 printf %s "checking whether to use NLS... " >&6; }
10777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
10778 printf "%s\n" "$USE_NLS" >&6; }
10779 if test "$USE_NLS" = "yes"; then
10780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
10781 printf %s "checking where the gettext function comes from... " >&6; }
10782 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
10783 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
10784 gt_source="external libintl"
10789 gt_source="included intl directory"
10791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
10792 printf "%s\n" "$gt_source" >&6; }
10795 if test "$USE_NLS" = "yes"; then
10797 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
10798 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
10799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
10800 printf %s "checking how to link with libintl... " >&6; }
10801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
10802 printf "%s\n" "$LIBINTL" >&6; }
10804 for element in $INCINTL; do
10806 for x in $CPPFLAGS; do
10808 acl_save_prefix="$prefix"
10809 prefix="$acl_final_prefix"
10810 acl_save_exec_prefix="$exec_prefix"
10811 exec_prefix="$acl_final_exec_prefix"
10813 exec_prefix="$acl_save_exec_prefix"
10814 prefix="$acl_save_prefix"
10816 if test "X$x" = "X$element"; then
10821 if test -z "$haveit"; then
10822 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10829 printf "%s\n" "#define HAVE_GETTEXT 1" >>confdefs.h
10832 printf "%s\n" "#define HAVE_DCGETTEXT 1" >>confdefs.h
10841 INTLLIBS="$LIBINTL"
10849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
10850 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
10852 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
10853 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
10855 printf %s "(cached) " >&6
10857 cat >conftest.make <<\_ACEOF
10860 @echo '@@@%%%=$(MAKE)=@@@%%%'
10862 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
10863 case `${MAKE-make} -f conftest.make 2>/dev/null` in
10864 *@@@%%%=?*=@@@%%%*)
10865 eval ac_cv_prog_make_${ac_make}_set=yes;;
10867 eval ac_cv_prog_make_${ac_make}_set=no;;
10869 rm -f conftest.make
10871 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
10872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10873 printf "%s\n" "yes" >&6; }
10876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10877 printf "%s\n" "no" >&6; }
10878 SET_MAKE="MAKE=${MAKE-make}"
10881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5
10882 printf %s "checking for GNU make... " >&6; }
10883 if test ${_cv_gnu_make_command+y}
10885 printf %s "(cached) " >&6
10887 _cv_gnu_make_command='' ;
10888 if test -n "$FORCE_NATIVE_MAKE" ; then
10891 MAKES="make gmake gnumake"
10893 for a in "$MAKE" $MAKES ; do
10894 if test -z "$a" ; then continue ; fi ;
10895 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
10896 _cv_gnu_make_command=$a ;
10902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_cv_gnu_make_command" >&5
10903 printf "%s\n" "$_cv_gnu_make_command" >&6; } ;
10904 if test "x$_cv_gnu_make_command" != "x" ; then
10910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: \"Not found\"" >&5
10911 printf "%s\n" "\"Not found\"" >&6; };
10916 # Extract the first word of "ln", so it can be a program name with args.
10917 set dummy ln; ac_word=$2
10918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10919 printf %s "checking for $ac_word... " >&6; }
10920 if test ${ac_cv_path_LN+y}
10922 printf %s "(cached) " >&6
10926 ac_cv_path_LN="$LN" # Let the user override the test with a path.
10929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10930 for as_dir in $PATH
10933 case $as_dir in #(((
10936 *) as_dir=$as_dir/ ;;
10938 for ac_exec_ext in '' $ac_executable_extensions; do
10939 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10940 ac_cv_path_LN="$as_dir$ac_word$ac_exec_ext"
10941 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10948 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
10953 if test -n "$LN"; then
10954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
10955 printf "%s\n" "$LN" >&6; }
10957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10958 printf "%s\n" "no" >&6; }
10965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
10966 printf %s "checking whether ln -s works... " >&6; }
10968 if test "$LN_S" = "ln -s"; then
10969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10970 printf "%s\n" "yes" >&6; }
10972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
10973 printf "%s\n" "no, using $LN_S" >&6; }
10976 # Extract the first word of "mv", so it can be a program name with args.
10977 set dummy mv; ac_word=$2
10978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10979 printf %s "checking for $ac_word... " >&6; }
10980 if test ${ac_cv_path_MV+y}
10982 printf %s "(cached) " >&6
10986 ac_cv_path_MV="$MV" # Let the user override the test with a path.
10989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10990 for as_dir in $PATH
10993 case $as_dir in #(((
10996 *) as_dir=$as_dir/ ;;
10998 for ac_exec_ext in '' $ac_executable_extensions; do
10999 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11000 ac_cv_path_MV="$as_dir$ac_word$ac_exec_ext"
11001 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11008 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
11013 if test -n "$MV"; then
11014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
11015 printf "%s\n" "$MV" >&6; }
11017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11018 printf "%s\n" "no" >&6; }
11022 # Extract the first word of "cp", so it can be a program name with args.
11023 set dummy cp; ac_word=$2
11024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11025 printf %s "checking for $ac_word... " >&6; }
11026 if test ${ac_cv_path_CP+y}
11028 printf %s "(cached) " >&6
11032 ac_cv_path_CP="$CP" # Let the user override the test with a path.
11035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11036 for as_dir in $PATH
11039 case $as_dir in #(((
11042 *) as_dir=$as_dir/ ;;
11044 for ac_exec_ext in '' $ac_executable_extensions; do
11045 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11046 ac_cv_path_CP="$as_dir$ac_word$ac_exec_ext"
11047 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11054 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
11059 if test -n "$CP"; then
11060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
11061 printf "%s\n" "$CP" >&6; }
11063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11064 printf "%s\n" "no" >&6; }
11068 # Extract the first word of "rm", so it can be a program name with args.
11069 set dummy rm; ac_word=$2
11070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11071 printf %s "checking for $ac_word... " >&6; }
11072 if test ${ac_cv_path_RM+y}
11074 printf %s "(cached) " >&6
11078 ac_cv_path_RM="$RM" # Let the user override the test with a path.
11081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11082 for as_dir in $PATH
11085 case $as_dir in #(((
11088 *) as_dir=$as_dir/ ;;
11090 for ac_exec_ext in '' $ac_executable_extensions; do
11091 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11092 ac_cv_path_RM="$as_dir$ac_word$ac_exec_ext"
11093 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11100 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
11105 if test -n "$RM"; then
11106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
11107 printf "%s\n" "$RM" >&6; }
11109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11110 printf "%s\n" "no" >&6; }
11114 # Extract the first word of "chmod", so it can be a program name with args.
11115 set dummy chmod; ac_word=$2
11116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11117 printf %s "checking for $ac_word... " >&6; }
11118 if test ${ac_cv_path_CHMOD+y}
11120 printf %s "(cached) " >&6
11124 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
11127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11128 for as_dir in $PATH
11131 case $as_dir in #(((
11134 *) as_dir=$as_dir/ ;;
11136 for ac_exec_ext in '' $ac_executable_extensions; do
11137 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11138 ac_cv_path_CHMOD="$as_dir$ac_word$ac_exec_ext"
11139 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11146 test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
11150 CHMOD=$ac_cv_path_CHMOD
11151 if test -n "$CHMOD"; then
11152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
11153 printf "%s\n" "$CHMOD" >&6; }
11155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11156 printf "%s\n" "no" >&6; }
11160 for ac_prog in gawk mawk nawk awk
11162 # Extract the first word of "$ac_prog", so it can be a program name with args.
11163 set dummy $ac_prog; ac_word=$2
11164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11165 printf %s "checking for $ac_word... " >&6; }
11166 if test ${ac_cv_prog_AWK+y}
11168 printf %s "(cached) " >&6
11170 if test -n "$AWK"; then
11171 ac_cv_prog_AWK="$AWK" # Let the user override the test.
11173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11174 for as_dir in $PATH
11177 case $as_dir in #(((
11180 *) as_dir=$as_dir/ ;;
11182 for ac_exec_ext in '' $ac_executable_extensions; do
11183 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11184 ac_cv_prog_AWK="$ac_prog"
11185 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11194 AWK=$ac_cv_prog_AWK
11195 if test -n "$AWK"; then
11196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
11197 printf "%s\n" "$AWK" >&6; }
11199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11200 printf "%s\n" "no" >&6; }
11204 test -n "$AWK" && break
11207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
11208 printf %s "checking for egrep... " >&6; }
11209 if test ${ac_cv_path_EGREP+y}
11211 printf %s "(cached) " >&6
11213 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
11214 then ac_cv_path_EGREP="$GREP -E"
11216 if test -z "$EGREP"; then
11217 ac_path_EGREP_found=false
11218 # Loop through the user's path and test for each of PROGNAME-LIST
11219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11220 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11223 case $as_dir in #(((
11226 *) as_dir=$as_dir/ ;;
11228 for ac_prog in egrep
11230 for ac_exec_ext in '' $ac_executable_extensions; do
11231 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
11232 as_fn_executable_p "$ac_path_EGREP" || continue
11233 # Check for GNU ac_path_EGREP and select it if it is found.
11234 # Check for GNU $ac_path_EGREP
11235 case `"$ac_path_EGREP" --version 2>&1` in
11237 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
11240 printf %s 0123456789 >"conftest.in"
11243 cat "conftest.in" "conftest.in" >"conftest.tmp"
11244 mv "conftest.tmp" "conftest.in"
11245 cp "conftest.in" "conftest.nl"
11246 printf "%s\n" 'EGREP' >> "conftest.nl"
11247 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11248 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11249 as_fn_arith $ac_count + 1 && ac_count=$as_val
11250 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
11251 # Best one so far, save it but keep looking for a better one
11252 ac_cv_path_EGREP="$ac_path_EGREP"
11253 ac_path_EGREP_max=$ac_count
11255 # 10*(2^10) chars as input seems more than enough
11256 test $ac_count -gt 10 && break
11258 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11261 $ac_path_EGREP_found && break 3
11266 if test -z "$ac_cv_path_EGREP"; then
11267 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11270 ac_cv_path_EGREP=$EGREP
11275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
11276 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
11277 EGREP="$ac_cv_path_EGREP"
11280 # Extract the first word of "sed", so it can be a program name with args.
11281 set dummy sed; ac_word=$2
11282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11283 printf %s "checking for $ac_word... " >&6; }
11284 if test ${ac_cv_path_SED+y}
11286 printf %s "(cached) " >&6
11290 ac_cv_path_SED="$SED" # Let the user override the test with a path.
11293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11294 for as_dir in $PATH
11297 case $as_dir in #(((
11300 *) as_dir=$as_dir/ ;;
11302 for ac_exec_ext in '' $ac_executable_extensions; do
11303 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11304 ac_cv_path_SED="$as_dir$ac_word$ac_exec_ext"
11305 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11312 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
11316 SED=$ac_cv_path_SED
11317 if test -n "$SED"; then
11318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
11319 printf "%s\n" "$SED" >&6; }
11321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11322 printf "%s\n" "no" >&6; }
11326 # Extract the first word of "perl", so it can be a program name with args.
11327 set dummy perl; ac_word=$2
11328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11329 printf %s "checking for $ac_word... " >&6; }
11330 if test ${ac_cv_path_PERL+y}
11332 printf %s "(cached) " >&6
11336 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
11339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11340 for as_dir in $PATH
11343 case $as_dir in #(((
11346 *) as_dir=$as_dir/ ;;
11348 for ac_exec_ext in '' $ac_executable_extensions; do
11349 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11350 ac_cv_path_PERL="$as_dir$ac_word$ac_exec_ext"
11351 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11358 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
11362 PERL=$ac_cv_path_PERL
11363 if test -n "$PERL"; then
11364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
11365 printf "%s\n" "$PERL" >&6; }
11367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11368 printf "%s\n" "no" >&6; }
11372 # Extract the first word of "ldconfig", so it can be a program name with args.
11373 set dummy ldconfig; ac_word=$2
11374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11375 printf %s "checking for $ac_word... " >&6; }
11376 if test ${ac_cv_path_LDCONFIG+y}
11378 printf %s "(cached) " >&6
11382 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
11385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11386 for as_dir in $PATH
11389 case $as_dir in #(((
11392 *) as_dir=$as_dir/ ;;
11394 for ac_exec_ext in '' $ac_executable_extensions; do
11395 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11396 ac_cv_path_LDCONFIG="$as_dir$ac_word$ac_exec_ext"
11397 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11404 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
11408 LDCONFIG=$ac_cv_path_LDCONFIG
11409 if test -n "$LDCONFIG"; then
11410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
11411 printf "%s\n" "$LDCONFIG" >&6; }
11413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11414 printf "%s\n" "no" >&6; }
11418 if test -n "$ac_tool_prefix"; then
11419 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
11420 set dummy ${ac_tool_prefix}ar; ac_word=$2
11421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11422 printf %s "checking for $ac_word... " >&6; }
11423 if test ${ac_cv_prog_AR+y}
11425 printf %s "(cached) " >&6
11427 if test -n "$AR"; then
11428 ac_cv_prog_AR="$AR" # Let the user override the test.
11430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11431 for as_dir in $PATH
11434 case $as_dir in #(((
11437 *) as_dir=$as_dir/ ;;
11439 for ac_exec_ext in '' $ac_executable_extensions; do
11440 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11441 ac_cv_prog_AR="${ac_tool_prefix}ar"
11442 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11452 if test -n "$AR"; then
11453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
11454 printf "%s\n" "$AR" >&6; }
11456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11457 printf "%s\n" "no" >&6; }
11462 if test -z "$ac_cv_prog_AR"; then
11464 # Extract the first word of "ar", so it can be a program name with args.
11465 set dummy ar; ac_word=$2
11466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11467 printf %s "checking for $ac_word... " >&6; }
11468 if test ${ac_cv_prog_ac_ct_AR+y}
11470 printf %s "(cached) " >&6
11472 if test -n "$ac_ct_AR"; then
11473 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11476 for as_dir in $PATH
11479 case $as_dir in #(((
11482 *) as_dir=$as_dir/ ;;
11484 for ac_exec_ext in '' $ac_executable_extensions; do
11485 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11486 ac_cv_prog_ac_ct_AR="ar"
11487 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11496 ac_ct_AR=$ac_cv_prog_ac_ct_AR
11497 if test -n "$ac_ct_AR"; then
11498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
11499 printf "%s\n" "$ac_ct_AR" >&6; }
11501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11502 printf "%s\n" "no" >&6; }
11505 if test "x$ac_ct_AR" = x; then
11508 case $cross_compiling:$ac_tool_warned in
11510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11511 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11512 ac_tool_warned=yes ;;
11517 AR="$ac_cv_prog_AR"
11520 if test -n "$ac_tool_prefix"; then
11521 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11522 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11524 printf %s "checking for $ac_word... " >&6; }
11525 if test ${ac_cv_prog_RANLIB+y}
11527 printf %s "(cached) " >&6
11529 if test -n "$RANLIB"; then
11530 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11533 for as_dir in $PATH
11536 case $as_dir in #(((
11539 *) as_dir=$as_dir/ ;;
11541 for ac_exec_ext in '' $ac_executable_extensions; do
11542 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11543 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11544 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11553 RANLIB=$ac_cv_prog_RANLIB
11554 if test -n "$RANLIB"; then
11555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11556 printf "%s\n" "$RANLIB" >&6; }
11558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11559 printf "%s\n" "no" >&6; }
11564 if test -z "$ac_cv_prog_RANLIB"; then
11565 ac_ct_RANLIB=$RANLIB
11566 # Extract the first word of "ranlib", so it can be a program name with args.
11567 set dummy ranlib; ac_word=$2
11568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11569 printf %s "checking for $ac_word... " >&6; }
11570 if test ${ac_cv_prog_ac_ct_RANLIB+y}
11572 printf %s "(cached) " >&6
11574 if test -n "$ac_ct_RANLIB"; then
11575 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11578 for as_dir in $PATH
11581 case $as_dir in #(((
11584 *) as_dir=$as_dir/ ;;
11586 for ac_exec_ext in '' $ac_executable_extensions; do
11587 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11588 ac_cv_prog_ac_ct_RANLIB="ranlib"
11589 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11598 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11599 if test -n "$ac_ct_RANLIB"; then
11600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
11601 printf "%s\n" "$ac_ct_RANLIB" >&6; }
11603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11604 printf "%s\n" "no" >&6; }
11607 if test "x$ac_ct_RANLIB" = x; then
11610 case $cross_compiling:$ac_tool_warned in
11612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11613 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11614 ac_tool_warned=yes ;;
11616 RANLIB=$ac_ct_RANLIB
11619 RANLIB="$ac_cv_prog_RANLIB"
11622 if test -n "$ac_tool_prefix"; then
11623 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11624 set dummy ${ac_tool_prefix}strip; ac_word=$2
11625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11626 printf %s "checking for $ac_word... " >&6; }
11627 if test ${ac_cv_prog_STRIP+y}
11629 printf %s "(cached) " >&6
11631 if test -n "$STRIP"; then
11632 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11635 for as_dir in $PATH
11638 case $as_dir in #(((
11641 *) as_dir=$as_dir/ ;;
11643 for ac_exec_ext in '' $ac_executable_extensions; do
11644 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11645 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11646 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11655 STRIP=$ac_cv_prog_STRIP
11656 if test -n "$STRIP"; then
11657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11658 printf "%s\n" "$STRIP" >&6; }
11660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11661 printf "%s\n" "no" >&6; }
11666 if test -z "$ac_cv_prog_STRIP"; then
11668 # Extract the first word of "strip", so it can be a program name with args.
11669 set dummy strip; ac_word=$2
11670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11671 printf %s "checking for $ac_word... " >&6; }
11672 if test ${ac_cv_prog_ac_ct_STRIP+y}
11674 printf %s "(cached) " >&6
11676 if test -n "$ac_ct_STRIP"; then
11677 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11680 for as_dir in $PATH
11683 case $as_dir in #(((
11686 *) as_dir=$as_dir/ ;;
11688 for ac_exec_ext in '' $ac_executable_extensions; do
11689 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11690 ac_cv_prog_ac_ct_STRIP="strip"
11691 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11700 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11701 if test -n "$ac_ct_STRIP"; then
11702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
11703 printf "%s\n" "$ac_ct_STRIP" >&6; }
11705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11706 printf "%s\n" "no" >&6; }
11709 if test "x$ac_ct_STRIP" = x; then
11712 case $cross_compiling:$ac_tool_warned in
11714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11715 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11716 ac_tool_warned=yes ;;
11721 STRIP="$ac_cv_prog_STRIP"
11724 # Extract the first word of "makeinfo", so it can be a program name with args.
11725 set dummy makeinfo; ac_word=$2
11726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11727 printf %s "checking for $ac_word... " >&6; }
11728 if test ${ac_cv_prog_MAKEINFO+y}
11730 printf %s "(cached) " >&6
11732 if test -n "$MAKEINFO"; then
11733 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
11735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11736 for as_dir in $PATH
11739 case $as_dir in #(((
11742 *) as_dir=$as_dir/ ;;
11744 for ac_exec_ext in '' $ac_executable_extensions; do
11745 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11746 ac_cv_prog_MAKEINFO="makeinfo"
11747 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11756 MAKEINFO=$ac_cv_prog_MAKEINFO
11757 if test -n "$MAKEINFO"; then
11758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
11759 printf "%s\n" "$MAKEINFO" >&6; }
11761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11762 printf "%s\n" "no" >&6; }
11766 if test "_$MAKEINFO" = "_"; then
11767 MAKEINFO="echo Makeinfo is missing. Info documentation will not be built."
11769 case "$MAKEINFO" in
11771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING:
11772 *** Makeinfo is missing. Info documentation will not be built." >&5
11773 printf "%s\n" "$as_me: WARNING:
11774 *** Makeinfo is missing. Info documentation will not be built." >&2;}
11782 # See if we need a separate native compiler.
11783 if test $cross_compiling = no; then
11787 for ac_prog in gcc cc
11789 # Extract the first word of "$ac_prog", so it can be a program name with args.
11790 set dummy $ac_prog; ac_word=$2
11791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11792 printf %s "checking for $ac_word... " >&6; }
11793 if test ${ac_cv_prog_BUILD_CC+y}
11795 printf %s "(cached) " >&6
11797 if test -n "$BUILD_CC"; then
11798 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
11800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11801 for as_dir in $PATH
11804 case $as_dir in #(((
11807 *) as_dir=$as_dir/ ;;
11809 for ac_exec_ext in '' $ac_executable_extensions; do
11810 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11811 ac_cv_prog_BUILD_CC="$ac_prog"
11812 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11821 BUILD_CC=$ac_cv_prog_BUILD_CC
11822 if test -n "$BUILD_CC"; then
11823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
11824 printf "%s\n" "$BUILD_CC" >&6; }
11826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11827 printf "%s\n" "no" >&6; }
11831 test -n "$BUILD_CC" && break
11835 ac_fn_c_check_header_compile "$LINENO" "dirent.h" "ac_cv_header_dirent_h" "$ac_includes_default"
11836 if test "x$ac_cv_header_dirent_h" = xyes
11838 printf "%s\n" "#define HAVE_DIRENT_H 1" >>confdefs.h
11841 ac_fn_c_check_header_compile "$LINENO" "errno.h" "ac_cv_header_errno_h" "$ac_includes_default"
11842 if test "x$ac_cv_header_errno_h" = xyes
11844 printf "%s\n" "#define HAVE_ERRNO_H 1" >>confdefs.h
11847 ac_fn_c_check_header_compile "$LINENO" "execinfo.h" "ac_cv_header_execinfo_h" "$ac_includes_default"
11848 if test "x$ac_cv_header_execinfo_h" = xyes
11850 printf "%s\n" "#define HAVE_EXECINFO_H 1" >>confdefs.h
11853 ac_fn_c_check_header_compile "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
11854 if test "x$ac_cv_header_getopt_h" = xyes
11856 printf "%s\n" "#define HAVE_GETOPT_H 1" >>confdefs.h
11859 ac_fn_c_check_header_compile "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default"
11860 if test "x$ac_cv_header_malloc_h" = xyes
11862 printf "%s\n" "#define HAVE_MALLOC_H 1" >>confdefs.h
11865 ac_fn_c_check_header_compile "$LINENO" "mntent.h" "ac_cv_header_mntent_h" "$ac_includes_default"
11866 if test "x$ac_cv_header_mntent_h" = xyes
11868 printf "%s\n" "#define HAVE_MNTENT_H 1" >>confdefs.h
11871 ac_fn_c_check_header_compile "$LINENO" "paths.h" "ac_cv_header_paths_h" "$ac_includes_default"
11872 if test "x$ac_cv_header_paths_h" = xyes
11874 printf "%s\n" "#define HAVE_PATHS_H 1" >>confdefs.h
11877 ac_fn_c_check_header_compile "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
11878 if test "x$ac_cv_header_pthread_h" = xyes
11880 printf "%s\n" "#define HAVE_PTHREAD_H 1" >>confdefs.h
11883 ac_fn_c_check_header_compile "$LINENO" "semaphore.h" "ac_cv_header_semaphore_h" "$ac_includes_default"
11884 if test "x$ac_cv_header_semaphore_h" = xyes
11886 printf "%s\n" "#define HAVE_SEMAPHORE_H 1" >>confdefs.h
11889 ac_fn_c_check_header_compile "$LINENO" "setjmp.h" "ac_cv_header_setjmp_h" "$ac_includes_default"
11890 if test "x$ac_cv_header_setjmp_h" = xyes
11892 printf "%s\n" "#define HAVE_SETJMP_H 1" >>confdefs.h
11895 ac_fn_c_check_header_compile "$LINENO" "signal.h" "ac_cv_header_signal_h" "$ac_includes_default"
11896 if test "x$ac_cv_header_signal_h" = xyes
11898 printf "%s\n" "#define HAVE_SIGNAL_H 1" >>confdefs.h
11901 ac_fn_c_check_header_compile "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default"
11902 if test "x$ac_cv_header_stdarg_h" = xyes
11904 printf "%s\n" "#define HAVE_STDARG_H 1" >>confdefs.h
11907 ac_fn_c_check_header_compile "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
11908 if test "x$ac_cv_header_stdint_h" = xyes
11910 printf "%s\n" "#define HAVE_STDINT_H 1" >>confdefs.h
11913 ac_fn_c_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
11914 if test "x$ac_cv_header_stdlib_h" = xyes
11916 printf "%s\n" "#define HAVE_STDLIB_H 1" >>confdefs.h
11919 ac_fn_c_check_header_compile "$LINENO" "termios.h" "ac_cv_header_termios_h" "$ac_includes_default"
11920 if test "x$ac_cv_header_termios_h" = xyes
11922 printf "%s\n" "#define HAVE_TERMIOS_H 1" >>confdefs.h
11925 ac_fn_c_check_header_compile "$LINENO" "termio.h" "ac_cv_header_termio_h" "$ac_includes_default"
11926 if test "x$ac_cv_header_termio_h" = xyes
11928 printf "%s\n" "#define HAVE_TERMIO_H 1" >>confdefs.h
11931 ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
11932 if test "x$ac_cv_header_unistd_h" = xyes
11934 printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
11937 ac_fn_c_check_header_compile "$LINENO" "utime.h" "ac_cv_header_utime_h" "$ac_includes_default"
11938 if test "x$ac_cv_header_utime_h" = xyes
11940 printf "%s\n" "#define HAVE_UTIME_H 1" >>confdefs.h
11943 ac_fn_c_check_header_compile "$LINENO" "attr/xattr.h" "ac_cv_header_attr_xattr_h" "$ac_includes_default"
11944 if test "x$ac_cv_header_attr_xattr_h" = xyes
11946 printf "%s\n" "#define HAVE_ATTR_XATTR_H 1" >>confdefs.h
11949 ac_fn_c_check_header_compile "$LINENO" "linux/falloc.h" "ac_cv_header_linux_falloc_h" "$ac_includes_default"
11950 if test "x$ac_cv_header_linux_falloc_h" = xyes
11952 printf "%s\n" "#define HAVE_LINUX_FALLOC_H 1" >>confdefs.h
11955 ac_fn_c_check_header_compile "$LINENO" "linux/fd.h" "ac_cv_header_linux_fd_h" "$ac_includes_default"
11956 if test "x$ac_cv_header_linux_fd_h" = xyes
11958 printf "%s\n" "#define HAVE_LINUX_FD_H 1" >>confdefs.h
11961 ac_fn_c_check_header_compile "$LINENO" "linux/fsmap.h" "ac_cv_header_linux_fsmap_h" "$ac_includes_default"
11962 if test "x$ac_cv_header_linux_fsmap_h" = xyes
11964 printf "%s\n" "#define HAVE_LINUX_FSMAP_H 1" >>confdefs.h
11967 ac_fn_c_check_header_compile "$LINENO" "linux/major.h" "ac_cv_header_linux_major_h" "$ac_includes_default"
11968 if test "x$ac_cv_header_linux_major_h" = xyes
11970 printf "%s\n" "#define HAVE_LINUX_MAJOR_H 1" >>confdefs.h
11973 ac_fn_c_check_header_compile "$LINENO" "linux/loop.h" "ac_cv_header_linux_loop_h" "$ac_includes_default"
11974 if test "x$ac_cv_header_linux_loop_h" = xyes
11976 printf "%s\n" "#define HAVE_LINUX_LOOP_H 1" >>confdefs.h
11979 ac_fn_c_check_header_compile "$LINENO" "linux/types.h" "ac_cv_header_linux_types_h" "$ac_includes_default"
11980 if test "x$ac_cv_header_linux_types_h" = xyes
11982 printf "%s\n" "#define HAVE_LINUX_TYPES_H 1" >>confdefs.h
11985 ac_fn_c_check_header_compile "$LINENO" "net/if_dl.h" "ac_cv_header_net_if_dl_h" "$ac_includes_default"
11986 if test "x$ac_cv_header_net_if_dl_h" = xyes
11988 printf "%s\n" "#define HAVE_NET_IF_DL_H 1" >>confdefs.h
11991 ac_fn_c_check_header_compile "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
11992 if test "x$ac_cv_header_netinet_in_h" = xyes
11994 printf "%s\n" "#define HAVE_NETINET_IN_H 1" >>confdefs.h
11997 ac_fn_c_check_header_compile "$LINENO" "sys/acl.h" "ac_cv_header_sys_acl_h" "$ac_includes_default"
11998 if test "x$ac_cv_header_sys_acl_h" = xyes
12000 printf "%s\n" "#define HAVE_SYS_ACL_H 1" >>confdefs.h
12003 ac_fn_c_check_header_compile "$LINENO" "sys/disklabel.h" "ac_cv_header_sys_disklabel_h" "$ac_includes_default"
12004 if test "x$ac_cv_header_sys_disklabel_h" = xyes
12006 printf "%s\n" "#define HAVE_SYS_DISKLABEL_H 1" >>confdefs.h
12009 ac_fn_c_check_header_compile "$LINENO" "sys/disk.h" "ac_cv_header_sys_disk_h" "$ac_includes_default"
12010 if test "x$ac_cv_header_sys_disk_h" = xyes
12012 printf "%s\n" "#define HAVE_SYS_DISK_H 1" >>confdefs.h
12015 ac_fn_c_check_header_compile "$LINENO" "sys/file.h" "ac_cv_header_sys_file_h" "$ac_includes_default"
12016 if test "x$ac_cv_header_sys_file_h" = xyes
12018 printf "%s\n" "#define HAVE_SYS_FILE_H 1" >>confdefs.h
12021 ac_fn_c_check_header_compile "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
12022 if test "x$ac_cv_header_sys_ioctl_h" = xyes
12024 printf "%s\n" "#define HAVE_SYS_IOCTL_H 1" >>confdefs.h
12027 ac_fn_c_check_header_compile "$LINENO" "sys/key.h" "ac_cv_header_sys_key_h" "$ac_includes_default"
12028 if test "x$ac_cv_header_sys_key_h" = xyes
12030 printf "%s\n" "#define HAVE_SYS_KEY_H 1" >>confdefs.h
12033 ac_fn_c_check_header_compile "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
12034 if test "x$ac_cv_header_sys_mkdev_h" = xyes
12036 printf "%s\n" "#define HAVE_SYS_MKDEV_H 1" >>confdefs.h
12039 ac_fn_c_check_header_compile "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
12040 if test "x$ac_cv_header_sys_mman_h" = xyes
12042 printf "%s\n" "#define HAVE_SYS_MMAN_H 1" >>confdefs.h
12045 ac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "$ac_includes_default"
12046 if test "x$ac_cv_header_sys_mount_h" = xyes
12048 printf "%s\n" "#define HAVE_SYS_MOUNT_H 1" >>confdefs.h
12051 ac_fn_c_check_header_compile "$LINENO" "sys/prctl.h" "ac_cv_header_sys_prctl_h" "$ac_includes_default"
12052 if test "x$ac_cv_header_sys_prctl_h" = xyes
12054 printf "%s\n" "#define HAVE_SYS_PRCTL_H 1" >>confdefs.h
12057 ac_fn_c_check_header_compile "$LINENO" "sys/random.h" "ac_cv_header_sys_random_h" "$ac_includes_default"
12058 if test "x$ac_cv_header_sys_random_h" = xyes
12060 printf "%s\n" "#define HAVE_SYS_RANDOM_H 1" >>confdefs.h
12063 ac_fn_c_check_header_compile "$LINENO" "sys/resource.h" "ac_cv_header_sys_resource_h" "$ac_includes_default"
12064 if test "x$ac_cv_header_sys_resource_h" = xyes
12066 printf "%s\n" "#define HAVE_SYS_RESOURCE_H 1" >>confdefs.h
12069 ac_fn_c_check_header_compile "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default"
12070 if test "x$ac_cv_header_sys_select_h" = xyes
12072 printf "%s\n" "#define HAVE_SYS_SELECT_H 1" >>confdefs.h
12075 ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
12076 if test "x$ac_cv_header_sys_socket_h" = xyes
12078 printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
12081 ac_fn_c_check_header_compile "$LINENO" "sys/sockio.h" "ac_cv_header_sys_sockio_h" "$ac_includes_default"
12082 if test "x$ac_cv_header_sys_sockio_h" = xyes
12084 printf "%s\n" "#define HAVE_SYS_SOCKIO_H 1" >>confdefs.h
12087 ac_fn_c_check_header_compile "$LINENO" "sys/stat.h" "ac_cv_header_sys_stat_h" "$ac_includes_default"
12088 if test "x$ac_cv_header_sys_stat_h" = xyes
12090 printf "%s\n" "#define HAVE_SYS_STAT_H 1" >>confdefs.h
12093 ac_fn_c_check_header_compile "$LINENO" "sys/syscall.h" "ac_cv_header_sys_syscall_h" "$ac_includes_default"
12094 if test "x$ac_cv_header_sys_syscall_h" = xyes
12096 printf "%s\n" "#define HAVE_SYS_SYSCALL_H 1" >>confdefs.h
12099 ac_fn_c_check_header_compile "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
12100 if test "x$ac_cv_header_sys_sysmacros_h" = xyes
12102 printf "%s\n" "#define HAVE_SYS_SYSMACROS_H 1" >>confdefs.h
12105 ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
12106 if test "x$ac_cv_header_sys_time_h" = xyes
12108 printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h
12111 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
12112 if test "x$ac_cv_header_sys_types_h" = xyes
12114 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
12117 ac_fn_c_check_header_compile "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default"
12118 if test "x$ac_cv_header_sys_un_h" = xyes
12120 printf "%s\n" "#define HAVE_SYS_UN_H 1" >>confdefs.h
12123 ac_fn_c_check_header_compile "$LINENO" "sys/wait.h" "ac_cv_header_sys_wait_h" "$ac_includes_default"
12124 if test "x$ac_cv_header_sys_wait_h" = xyes
12126 printf "%s\n" "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
12129 ac_fn_c_check_header_compile "$LINENO" "sys/xattr.h" "ac_cv_header_sys_xattr_h" "$ac_includes_default"
12130 if test "x$ac_cv_header_sys_xattr_h" = xyes
12132 printf "%s\n" "#define HAVE_SYS_XATTR_H 1" >>confdefs.h
12138 # The above checks only detect system headers, not the headers in
12139 # ./include/mingw/, so explicitly define them to be available.
12140 printf "%s\n" "#define HAVE_LINUX_TYPES_H 1" >>confdefs.h
12142 printf "%s\n" "#define HAVE_SYS_STAT_H 1" >>confdefs.h
12144 printf "%s\n" "#define HAVE_SYS_SYSMACROS_H 1" >>confdefs.h
12146 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
12148 printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
12152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a dd(1) program that supports iflag=fullblock" >&5
12153 printf %s "checking for a dd(1) program that supports iflag=fullblock... " >&6; }
12155 for i in dd gdd ; do
12156 if "$i" if=/dev/null of=/dev/null count=1 bs=10k 2>/dev/null iflag=fullblock oflag=append ; then
12161 if test -n "$DD" ; then
12162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DD" >&5
12163 printf "%s\n" "$DD" >&6; }
12165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not found, using dd" >&5
12166 printf "%s\n" "not found, using dd" >&6; }
12168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: No GNU-compatible dd(1) program found, expect some self-test failures." >&5
12169 printf "%s\n" "$as_me: WARNING: No GNU-compatible dd(1) program found, expect some self-test failures." >&2;}
12173 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
12174 #if HAVE_SYS_TYPES_H
12175 #include <sys/types.h>
12177 #if HAVE_SYS_SOCKET
12178 #include <sys/socket.h>
12182 if test "x$ac_cv_header_net_if_h" = xyes
12184 printf "%s\n" "#define HAVE_NET_IF_H 1" >>confdefs.h
12189 for ac_item in $ac_func_c_list
12191 if test $ac_func; then
12192 ac_fn_c_check_func "$LINENO" $ac_func ac_cv_func_$ac_func
12193 if eval test \"x\$ac_cv_func_$ac_func\" = xyes; then
12194 echo "#define $ac_item 1" >> confdefs.h
12202 if test "x$ac_cv_func_vprintf" = xno
12204 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
12205 if test "x$ac_cv_func__doprnt" = xyes
12208 printf "%s\n" "#define HAVE_DOPRNT 1" >>confdefs.h
12213 ac_fn_c_check_member "$LINENO" "struct dirent" "d_reclen" "ac_cv_member_struct_dirent_d_reclen" "#include <dirent.h>
12215 if test "x$ac_cv_member_struct_dirent_d_reclen" = xyes
12218 printf "%s\n" "#define HAVE_RECLEN_DIRENT 1" >>confdefs.h
12222 ac_fn_c_check_member "$LINENO" "struct stat" "st_atim" "ac_cv_member_struct_stat_st_atim" "$ac_includes_default"
12223 if test "x$ac_cv_member_struct_stat_st_atim" = xyes
12226 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_ATIM 1" >>confdefs.h
12231 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "#include <sys/types.h>
12233 if test "x$ac_cv_type_ssize_t" = xyes
12236 printf "%s\n" "#define HAVE_TYPE_SSIZE_T 1" >>confdefs.h
12240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
12241 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
12242 if test ${ac_cv_c_undeclared_builtin_options+y}
12244 printf %s "(cached) " >&6
12246 ac_save_CFLAGS=$CFLAGS
12247 ac_cv_c_undeclared_builtin_options='cannot detect'
12248 for ac_arg in '' -fno-builtin; do
12249 CFLAGS="$ac_save_CFLAGS $ac_arg"
12250 # This test program should *not* compile successfully.
12251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12252 /* end confdefs.h. */
12262 if ac_fn_c_try_compile "$LINENO"
12266 # This test program should compile successfully.
12267 # No library function is consistently available on
12268 # freestanding implementations, so test against a dummy
12269 # declaration. Include always-available headers on the
12270 # off chance that they somehow elicit warnings.
12271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12272 /* end confdefs.h. */
12274 #include <limits.h>
12275 #include <stdarg.h>
12276 #include <stddef.h>
12277 extern void ac_decl (int, char *);
12282 (void) ac_decl (0, (char *) 0);
12289 if ac_fn_c_try_compile "$LINENO"
12291 if test x"$ac_arg" = x
12293 ac_cv_c_undeclared_builtin_options='none needed'
12295 ac_cv_c_undeclared_builtin_options=$ac_arg
12299 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12301 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12303 CFLAGS=$ac_save_CFLAGS
12306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
12307 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
12308 case $ac_cv_c_undeclared_builtin_options in #(
12310 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12311 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12312 as_fn_error $? "cannot make $CC report undeclared builtins
12313 See \`config.log' for more details" "$LINENO" 5; } ;; #(
12315 ac_c_undeclared_builtin_options='' ;; #(
12317 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
12320 ac_fn_check_decl "$LINENO" "llseek" "ac_cv_have_decl_llseek" "#include <unistd.h>
12321 " "$ac_c_undeclared_builtin_options" "CFLAGS"
12322 if test "x$ac_cv_have_decl_llseek" = xyes
12325 printf "%s\n" "#define HAVE_LLSEEK_PROTOTYPE 1" >>confdefs.h
12328 ac_fn_check_decl "$LINENO" "lseek64" "ac_cv_have_decl_lseek64" "#define _LARGEFILE_SOURCE
12329 #define _LARGEFILE64_SOURCE
12330 #include <unistd.h>
12331 " "$ac_c_undeclared_builtin_options" "CFLAGS"
12332 if test "x$ac_cv_have_decl_lseek64" = xyes
12335 printf "%s\n" "#define HAVE_LSEEK64_PROTOTYPE 1" >>confdefs.h
12338 # The cast to long int works around a bug in the HP C Compiler
12339 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12340 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12341 # This bug is HP SR number 8606223364.
12342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
12343 printf %s "checking size of short... " >&6; }
12344 if test ${ac_cv_sizeof_short+y}
12346 printf %s "(cached) " >&6
12348 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"
12352 if test "$ac_cv_type_short" = yes; then
12353 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12354 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12355 as_fn_error 77 "cannot compute sizeof (short)
12356 See \`config.log' for more details" "$LINENO" 5; }
12358 ac_cv_sizeof_short=0
12363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
12364 printf "%s\n" "$ac_cv_sizeof_short" >&6; }
12368 printf "%s\n" "#define SIZEOF_SHORT $ac_cv_sizeof_short" >>confdefs.h
12371 # The cast to long int works around a bug in the HP C Compiler
12372 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12373 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12374 # This bug is HP SR number 8606223364.
12375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
12376 printf %s "checking size of int... " >&6; }
12377 if test ${ac_cv_sizeof_int+y}
12379 printf %s "(cached) " >&6
12381 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"
12385 if test "$ac_cv_type_int" = yes; then
12386 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12387 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12388 as_fn_error 77 "cannot compute sizeof (int)
12389 See \`config.log' for more details" "$LINENO" 5; }
12396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
12397 printf "%s\n" "$ac_cv_sizeof_int" >&6; }
12401 printf "%s\n" "#define SIZEOF_INT $ac_cv_sizeof_int" >>confdefs.h
12404 # The cast to long int works around a bug in the HP C Compiler
12405 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12406 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12407 # This bug is HP SR number 8606223364.
12408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
12409 printf %s "checking size of long... " >&6; }
12410 if test ${ac_cv_sizeof_long+y}
12412 printf %s "(cached) " >&6
12414 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"
12418 if test "$ac_cv_type_long" = yes; then
12419 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12420 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12421 as_fn_error 77 "cannot compute sizeof (long)
12422 See \`config.log' for more details" "$LINENO" 5; }
12424 ac_cv_sizeof_long=0
12429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
12430 printf "%s\n" "$ac_cv_sizeof_long" >&6; }
12434 printf "%s\n" "#define SIZEOF_LONG $ac_cv_sizeof_long" >>confdefs.h
12437 # The cast to long int works around a bug in the HP C Compiler
12438 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12439 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12440 # This bug is HP SR number 8606223364.
12441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
12442 printf %s "checking size of long long... " >&6; }
12443 if test ${ac_cv_sizeof_long_long+y}
12445 printf %s "(cached) " >&6
12447 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"
12451 if test "$ac_cv_type_long_long" = yes; then
12452 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12453 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12454 as_fn_error 77 "cannot compute sizeof (long long)
12455 See \`config.log' for more details" "$LINENO" 5; }
12457 ac_cv_sizeof_long_long=0
12462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
12463 printf "%s\n" "$ac_cv_sizeof_long_long" >&6; }
12467 printf "%s\n" "#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long" >>confdefs.h
12470 # The cast to long int works around a bug in the HP C Compiler
12471 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12472 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12473 # This bug is HP SR number 8606223364.
12474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
12475 printf %s "checking size of off_t... " >&6; }
12476 if test ${ac_cv_sizeof_off_t+y}
12478 printf %s "(cached) " >&6
12480 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"
12484 if test "$ac_cv_type_off_t" = yes; then
12485 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12486 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12487 as_fn_error 77 "cannot compute sizeof (off_t)
12488 See \`config.log' for more details" "$LINENO" 5; }
12490 ac_cv_sizeof_off_t=0
12495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
12496 printf "%s\n" "$ac_cv_sizeof_off_t" >&6; }
12500 printf "%s\n" "#define SIZEOF_OFF_T $ac_cv_sizeof_off_t" >>confdefs.h
12503 # The cast to long int works around a bug in the HP C Compiler
12504 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12505 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12506 # This bug is HP SR number 8606223364.
12507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
12508 printf %s "checking size of time_t... " >&6; }
12509 if test ${ac_cv_sizeof_time_t+y}
12511 printf %s "(cached) " >&6
12513 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" "$ac_includes_default"
12517 if test "$ac_cv_type_time_t" = yes; then
12518 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12519 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12520 as_fn_error 77 "cannot compute sizeof (time_t)
12521 See \`config.log' for more details" "$LINENO" 5; }
12523 ac_cv_sizeof_time_t=0
12528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
12529 printf "%s\n" "$ac_cv_sizeof_time_t" >&6; }
12533 printf "%s\n" "#define SIZEOF_TIME_T $ac_cv_sizeof_time_t" >>confdefs.h
12536 SIZEOF_SHORT=$ac_cv_sizeof_short
12537 SIZEOF_INT=$ac_cv_sizeof_int
12538 SIZEOF_LONG=$ac_cv_sizeof_long
12539 SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
12540 SIZEOF_OFF_T=$ac_cv_sizeof_off_t
12541 SIZEOF_TIME_T=$ac_cv_sizeof_time_t
12548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
12549 printf %s "checking whether byte ordering is bigendian... " >&6; }
12550 if test ${ac_cv_c_bigendian+y}
12552 printf %s "(cached) " >&6
12554 ac_cv_c_bigendian=unknown
12555 # See if we're dealing with a universal compiler.
12556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12557 /* end confdefs.h. */
12558 #ifndef __APPLE_CC__
12559 not a universal capable compiler
12564 if ac_fn_c_try_compile "$LINENO"
12567 # Check for potential -arch flags. It is not universal unless
12568 # there are at least two -arch flags with different values.
12571 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
12572 if test -n "$ac_prev"; then
12574 i?86 | x86_64 | ppc | ppc64)
12575 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
12578 ac_cv_c_bigendian=universal
12584 elif test "x$ac_word" = "x-arch"; then
12589 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12590 if test $ac_cv_c_bigendian = unknown; then
12591 # See if sys/param.h defines the BYTE_ORDER macro.
12592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12593 /* end confdefs.h. */
12594 #include <sys/types.h>
12595 #include <sys/param.h>
12600 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
12601 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
12603 bogus endian macros
12610 if ac_fn_c_try_compile "$LINENO"
12612 # It does; now see whether it defined to BIG_ENDIAN or not.
12613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12614 /* end confdefs.h. */
12615 #include <sys/types.h>
12616 #include <sys/param.h>
12621 #if BYTE_ORDER != BIG_ENDIAN
12629 if ac_fn_c_try_compile "$LINENO"
12631 ac_cv_c_bigendian=yes
12633 ac_cv_c_bigendian=no
12635 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12637 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12639 if test $ac_cv_c_bigendian = unknown; then
12640 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
12641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12642 /* end confdefs.h. */
12643 #include <limits.h>
12648 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
12649 bogus endian macros
12656 if ac_fn_c_try_compile "$LINENO"
12658 # It does; now see whether it defined to _BIG_ENDIAN or not.
12659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12660 /* end confdefs.h. */
12661 #include <limits.h>
12666 #ifndef _BIG_ENDIAN
12674 if ac_fn_c_try_compile "$LINENO"
12676 ac_cv_c_bigendian=yes
12678 ac_cv_c_bigendian=no
12680 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12682 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12684 if test $ac_cv_c_bigendian = unknown; then
12685 # Compile a test program.
12686 if test "$cross_compiling" = yes
12688 # Try to guess by grepping values from an object file.
12689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12690 /* end confdefs.h. */
12691 unsigned short int ascii_mm[] =
12692 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12693 unsigned short int ascii_ii[] =
12694 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12695 int use_ascii (int i) {
12696 return ascii_mm[i] + ascii_ii[i];
12698 unsigned short int ebcdic_ii[] =
12699 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12700 unsigned short int ebcdic_mm[] =
12701 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12702 int use_ebcdic (int i) {
12703 return ebcdic_mm[i] + ebcdic_ii[i];
12710 return use_ascii (foo) == use_ebcdic (foo);
12715 if ac_fn_c_try_compile "$LINENO"
12717 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
12718 ac_cv_c_bigendian=yes
12720 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
12721 if test "$ac_cv_c_bigendian" = unknown; then
12722 ac_cv_c_bigendian=no
12724 # finding both strings is unlikely to happen, but who knows?
12725 ac_cv_c_bigendian=unknown
12729 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12732 /* end confdefs.h. */
12733 $ac_includes_default
12738 /* Are we little or big endian? From Harbison&Steele. */
12742 char c[sizeof (long int)];
12745 return u.c[sizeof (long int) - 1] == 1;
12751 if ac_fn_c_try_run "$LINENO"
12753 ac_cv_c_bigendian=no
12755 ac_cv_c_bigendian=yes
12757 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12758 conftest.$ac_objext conftest.beam conftest.$ac_ext
12763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
12764 printf "%s\n" "$ac_cv_c_bigendian" >&6; }
12765 case $ac_cv_c_bigendian in #(
12767 printf "%s\n" "#define WORDS_BIGENDIAN 1" >>confdefs.h
12773 printf "%s\n" "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
12777 as_fn_error $? "unknown endianness
12778 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
12781 if test $cross_compiling = no; then
12782 BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
12784 CROSS_COMPILE="1" BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
12786 ASM_TYPES_HEADER=./asm_types.h
12788 echo "/* These defines are needed for the public ext2fs.h header file */" \
12790 if grep HAVE_SYS_TYPES_H confdefs.h > tmp_config.$$; then
12791 uniq tmp_config.$$ >> public_config.h
12793 echo "#undef HAVE_SYS_TYPES_H" >> public_config.h
12795 if grep WORDS_BIGENDIAN confdefs.h > tmp_config.$$; then
12796 uniq tmp_config.$$ >> public_config.h
12798 echo "#undef WORDS_BIGENDIAN" >> public_config.h
12800 rm -f tmp_config.$$
12801 PUBLIC_CONFIG_HEADER=./public_config.h
12803 ac_fn_c_check_header_compile "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
12804 if test "x$ac_cv_header_inttypes_h" = xyes
12806 printf "%s\n" "#define HAVE_INTTYPES_H 1" >>confdefs.h
12810 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
12811 if test "x$ac_cv_type_intptr_t" = xyes
12814 printf "%s\n" "#define HAVE_INTPTR_T 1" >>confdefs.h
12819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether struct stat has a st_flags field" >&5
12820 printf %s "checking whether struct stat has a st_flags field... " >&6; }
12821 if test ${e2fsprogs_cv_struct_st_flags+y}
12823 printf %s "(cached) " >&6
12825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12826 /* end confdefs.h. */
12827 #include <sys/stat.h>
12831 struct stat stat; stat.st_flags = 0;
12836 if ac_fn_c_try_compile "$LINENO"
12838 e2fsprogs_cv_struct_st_flags=yes
12840 e2fsprogs_cv_struct_st_flags=no
12842 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags" >&5
12846 printf "%s\n" "$e2fsprogs_cv_struct_st_flags" >&6; }
12847 if test "$e2fsprogs_cv_struct_st_flags" = yes; then
12848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether st_flags field is useful" >&5
12849 printf %s "checking whether st_flags field is useful... " >&6; }
12850 if test ${e2fsprogs_cv_struct_st_flags_immut+y}
12852 printf %s "(cached) " >&6
12854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12855 /* end confdefs.h. */
12856 #include <sys/stat.h>
12860 struct stat stat; stat.st_flags |= UF_IMMUTABLE;
12865 if ac_fn_c_try_compile "$LINENO"
12867 e2fsprogs_cv_struct_st_flags_immut=yes
12869 e2fsprogs_cv_struct_st_flags_immut=no
12871 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags_immut" >&5
12875 printf "%s\n" "$e2fsprogs_cv_struct_st_flags_immut" >&6; }
12876 if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
12878 printf "%s\n" "#define HAVE_STAT_FLAGS 1" >>confdefs.h
12882 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h>
12883 #include <sys/socket.h>
12885 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes
12888 printf "%s\n" "#define HAVE_SA_LEN 1" >>confdefs.h
12892 if test -n "$BLKID_CMT"; then
12893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for blkid_probe_get_topology in -lblkid" >&5
12894 printf %s "checking for blkid_probe_get_topology in -lblkid... " >&6; }
12895 if test ${ac_cv_lib_blkid_blkid_probe_get_topology+y}
12897 printf %s "(cached) " >&6
12899 ac_check_lib_save_LIBS=$LIBS
12900 LIBS="-lblkid $LIBS"
12901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12902 /* end confdefs.h. */
12904 /* Override any GCC internal prototype to avoid an error.
12905 Use char because int might match the return type of a GCC
12906 builtin and then its argument prototype would still apply. */
12907 char blkid_probe_get_topology ();
12911 return blkid_probe_get_topology ();
12916 if ac_fn_c_try_link "$LINENO"
12918 ac_cv_lib_blkid_blkid_probe_get_topology=yes
12920 ac_cv_lib_blkid_blkid_probe_get_topology=no
12922 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12923 conftest$ac_exeext conftest.$ac_ext
12924 LIBS=$ac_check_lib_save_LIBS
12926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_probe_get_topology" >&5
12927 printf "%s\n" "$ac_cv_lib_blkid_blkid_probe_get_topology" >&6; }
12928 if test "x$ac_cv_lib_blkid_blkid_probe_get_topology" = xyes
12931 printf "%s\n" "#define HAVE_BLKID_PROBE_GET_TOPOLOGY 1" >>confdefs.h
12935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for blkid_topology_get_dax in -lblkid" >&5
12936 printf %s "checking for blkid_topology_get_dax in -lblkid... " >&6; }
12937 if test ${ac_cv_lib_blkid_blkid_topology_get_dax+y}
12939 printf %s "(cached) " >&6
12941 ac_check_lib_save_LIBS=$LIBS
12942 LIBS="-lblkid $LIBS"
12943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12944 /* end confdefs.h. */
12946 /* Override any GCC internal prototype to avoid an error.
12947 Use char because int might match the return type of a GCC
12948 builtin and then its argument prototype would still apply. */
12949 char blkid_topology_get_dax ();
12953 return blkid_topology_get_dax ();
12958 if ac_fn_c_try_link "$LINENO"
12960 ac_cv_lib_blkid_blkid_topology_get_dax=yes
12962 ac_cv_lib_blkid_blkid_topology_get_dax=no
12964 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12965 conftest$ac_exeext conftest.$ac_ext
12966 LIBS=$ac_check_lib_save_LIBS
12968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_topology_get_dax" >&5
12969 printf "%s\n" "$ac_cv_lib_blkid_blkid_topology_get_dax" >&6; }
12970 if test "x$ac_cv_lib_blkid_blkid_topology_get_dax" = xyes
12973 printf "%s\n" "#define HAVE_BLKID_TOPOLOGY_GET_DAX 1" >>confdefs.h
12977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for blkid_probe_enable_partitions in -lblkid" >&5
12978 printf %s "checking for blkid_probe_enable_partitions in -lblkid... " >&6; }
12979 if test ${ac_cv_lib_blkid_blkid_probe_enable_partitions+y}
12981 printf %s "(cached) " >&6
12983 ac_check_lib_save_LIBS=$LIBS
12984 LIBS="-lblkid $LIBS"
12985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12986 /* end confdefs.h. */
12988 /* Override any GCC internal prototype to avoid an error.
12989 Use char because int might match the return type of a GCC
12990 builtin and then its argument prototype would still apply. */
12991 char blkid_probe_enable_partitions ();
12995 return blkid_probe_enable_partitions ();
13000 if ac_fn_c_try_link "$LINENO"
13002 ac_cv_lib_blkid_blkid_probe_enable_partitions=yes
13004 ac_cv_lib_blkid_blkid_probe_enable_partitions=no
13006 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13007 conftest$ac_exeext conftest.$ac_ext
13008 LIBS=$ac_check_lib_save_LIBS
13010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_probe_enable_partitions" >&5
13011 printf "%s\n" "$ac_cv_lib_blkid_blkid_probe_enable_partitions" >&6; }
13012 if test "x$ac_cv_lib_blkid_blkid_probe_enable_partitions" = xyes
13015 printf "%s\n" "#define HAVE_BLKID_PROBE_ENABLE_PARTITIONS 1" >>confdefs.h
13020 if test -n "$DLOPEN_LIB" ; then
13021 ac_cv_func_dlopen=yes
13023 ac_fn_c_check_func "$LINENO" "__secure_getenv" "ac_cv_func___secure_getenv"
13024 if test "x$ac_cv_func___secure_getenv" = xyes
13026 printf "%s\n" "#define HAVE___SECURE_GETENV 1" >>confdefs.h
13029 ac_fn_c_check_func "$LINENO" "add_key" "ac_cv_func_add_key"
13030 if test "x$ac_cv_func_add_key" = xyes
13032 printf "%s\n" "#define HAVE_ADD_KEY 1" >>confdefs.h
13035 ac_fn_c_check_func "$LINENO" "backtrace" "ac_cv_func_backtrace"
13036 if test "x$ac_cv_func_backtrace" = xyes
13038 printf "%s\n" "#define HAVE_BACKTRACE 1" >>confdefs.h
13041 ac_fn_c_check_func "$LINENO" "chflags" "ac_cv_func_chflags"
13042 if test "x$ac_cv_func_chflags" = xyes
13044 printf "%s\n" "#define HAVE_CHFLAGS 1" >>confdefs.h
13047 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13048 if test "x$ac_cv_func_dlopen" = xyes
13050 printf "%s\n" "#define HAVE_DLOPEN 1" >>confdefs.h
13053 ac_fn_c_check_func "$LINENO" "fadvise64" "ac_cv_func_fadvise64"
13054 if test "x$ac_cv_func_fadvise64" = xyes
13056 printf "%s\n" "#define HAVE_FADVISE64 1" >>confdefs.h
13059 ac_fn_c_check_func "$LINENO" "fallocate" "ac_cv_func_fallocate"
13060 if test "x$ac_cv_func_fallocate" = xyes
13062 printf "%s\n" "#define HAVE_FALLOCATE 1" >>confdefs.h
13065 ac_fn_c_check_func "$LINENO" "fallocate64" "ac_cv_func_fallocate64"
13066 if test "x$ac_cv_func_fallocate64" = xyes
13068 printf "%s\n" "#define HAVE_FALLOCATE64 1" >>confdefs.h
13071 ac_fn_c_check_func "$LINENO" "fchown" "ac_cv_func_fchown"
13072 if test "x$ac_cv_func_fchown" = xyes
13074 printf "%s\n" "#define HAVE_FCHOWN 1" >>confdefs.h
13077 ac_fn_c_check_func "$LINENO" "fcntl" "ac_cv_func_fcntl"
13078 if test "x$ac_cv_func_fcntl" = xyes
13080 printf "%s\n" "#define HAVE_FCNTL 1" >>confdefs.h
13083 ac_fn_c_check_func "$LINENO" "fdatasync" "ac_cv_func_fdatasync"
13084 if test "x$ac_cv_func_fdatasync" = xyes
13086 printf "%s\n" "#define HAVE_FDATASYNC 1" >>confdefs.h
13089 ac_fn_c_check_func "$LINENO" "fstat64" "ac_cv_func_fstat64"
13090 if test "x$ac_cv_func_fstat64" = xyes
13092 printf "%s\n" "#define HAVE_FSTAT64 1" >>confdefs.h
13095 ac_fn_c_check_func "$LINENO" "fsync" "ac_cv_func_fsync"
13096 if test "x$ac_cv_func_fsync" = xyes
13098 printf "%s\n" "#define HAVE_FSYNC 1" >>confdefs.h
13101 ac_fn_c_check_func "$LINENO" "ftruncate64" "ac_cv_func_ftruncate64"
13102 if test "x$ac_cv_func_ftruncate64" = xyes
13104 printf "%s\n" "#define HAVE_FTRUNCATE64 1" >>confdefs.h
13107 ac_fn_c_check_func "$LINENO" "futimes" "ac_cv_func_futimes"
13108 if test "x$ac_cv_func_futimes" = xyes
13110 printf "%s\n" "#define HAVE_FUTIMES 1" >>confdefs.h
13113 ac_fn_c_check_func "$LINENO" "getcwd" "ac_cv_func_getcwd"
13114 if test "x$ac_cv_func_getcwd" = xyes
13116 printf "%s\n" "#define HAVE_GETCWD 1" >>confdefs.h
13119 ac_fn_c_check_func "$LINENO" "getdtablesize" "ac_cv_func_getdtablesize"
13120 if test "x$ac_cv_func_getdtablesize" = xyes
13122 printf "%s\n" "#define HAVE_GETDTABLESIZE 1" >>confdefs.h
13125 ac_fn_c_check_func "$LINENO" "getentropy" "ac_cv_func_getentropy"
13126 if test "x$ac_cv_func_getentropy" = xyes
13128 printf "%s\n" "#define HAVE_GETENTROPY 1" >>confdefs.h
13131 ac_fn_c_check_func "$LINENO" "gethostname" "ac_cv_func_gethostname"
13132 if test "x$ac_cv_func_gethostname" = xyes
13134 printf "%s\n" "#define HAVE_GETHOSTNAME 1" >>confdefs.h
13137 ac_fn_c_check_func "$LINENO" "getmntinfo" "ac_cv_func_getmntinfo"
13138 if test "x$ac_cv_func_getmntinfo" = xyes
13140 printf "%s\n" "#define HAVE_GETMNTINFO 1" >>confdefs.h
13143 ac_fn_c_check_func "$LINENO" "getpwuid_r" "ac_cv_func_getpwuid_r"
13144 if test "x$ac_cv_func_getpwuid_r" = xyes
13146 printf "%s\n" "#define HAVE_GETPWUID_R 1" >>confdefs.h
13149 ac_fn_c_check_func "$LINENO" "getrandom" "ac_cv_func_getrandom"
13150 if test "x$ac_cv_func_getrandom" = xyes
13152 printf "%s\n" "#define HAVE_GETRANDOM 1" >>confdefs.h
13155 ac_fn_c_check_func "$LINENO" "getrlimit" "ac_cv_func_getrlimit"
13156 if test "x$ac_cv_func_getrlimit" = xyes
13158 printf "%s\n" "#define HAVE_GETRLIMIT 1" >>confdefs.h
13161 ac_fn_c_check_func "$LINENO" "getrusage" "ac_cv_func_getrusage"
13162 if test "x$ac_cv_func_getrusage" = xyes
13164 printf "%s\n" "#define HAVE_GETRUSAGE 1" >>confdefs.h
13167 ac_fn_c_check_func "$LINENO" "jrand48" "ac_cv_func_jrand48"
13168 if test "x$ac_cv_func_jrand48" = xyes
13170 printf "%s\n" "#define HAVE_JRAND48 1" >>confdefs.h
13173 ac_fn_c_check_func "$LINENO" "keyctl" "ac_cv_func_keyctl"
13174 if test "x$ac_cv_func_keyctl" = xyes
13176 printf "%s\n" "#define HAVE_KEYCTL 1" >>confdefs.h
13179 ac_fn_c_check_func "$LINENO" "llistxattr" "ac_cv_func_llistxattr"
13180 if test "x$ac_cv_func_llistxattr" = xyes
13182 printf "%s\n" "#define HAVE_LLISTXATTR 1" >>confdefs.h
13185 ac_fn_c_check_func "$LINENO" "llseek" "ac_cv_func_llseek"
13186 if test "x$ac_cv_func_llseek" = xyes
13188 printf "%s\n" "#define HAVE_LLSEEK 1" >>confdefs.h
13191 ac_fn_c_check_func "$LINENO" "lseek64" "ac_cv_func_lseek64"
13192 if test "x$ac_cv_func_lseek64" = xyes
13194 printf "%s\n" "#define HAVE_LSEEK64 1" >>confdefs.h
13197 ac_fn_c_check_func "$LINENO" "mallinfo" "ac_cv_func_mallinfo"
13198 if test "x$ac_cv_func_mallinfo" = xyes
13200 printf "%s\n" "#define HAVE_MALLINFO 1" >>confdefs.h
13203 ac_fn_c_check_func "$LINENO" "mallinfo2" "ac_cv_func_mallinfo2"
13204 if test "x$ac_cv_func_mallinfo2" = xyes
13206 printf "%s\n" "#define HAVE_MALLINFO2 1" >>confdefs.h
13209 ac_fn_c_check_func "$LINENO" "mbstowcs" "ac_cv_func_mbstowcs"
13210 if test "x$ac_cv_func_mbstowcs" = xyes
13212 printf "%s\n" "#define HAVE_MBSTOWCS 1" >>confdefs.h
13215 ac_fn_c_check_func "$LINENO" "memalign" "ac_cv_func_memalign"
13216 if test "x$ac_cv_func_memalign" = xyes
13218 printf "%s\n" "#define HAVE_MEMALIGN 1" >>confdefs.h
13221 ac_fn_c_check_func "$LINENO" "mempcpy" "ac_cv_func_mempcpy"
13222 if test "x$ac_cv_func_mempcpy" = xyes
13224 printf "%s\n" "#define HAVE_MEMPCPY 1" >>confdefs.h
13227 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
13228 if test "x$ac_cv_func_mmap" = xyes
13230 printf "%s\n" "#define HAVE_MMAP 1" >>confdefs.h
13233 ac_fn_c_check_func "$LINENO" "msync" "ac_cv_func_msync"
13234 if test "x$ac_cv_func_msync" = xyes
13236 printf "%s\n" "#define HAVE_MSYNC 1" >>confdefs.h
13239 ac_fn_c_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep"
13240 if test "x$ac_cv_func_nanosleep" = xyes
13242 printf "%s\n" "#define HAVE_NANOSLEEP 1" >>confdefs.h
13245 ac_fn_c_check_func "$LINENO" "open64" "ac_cv_func_open64"
13246 if test "x$ac_cv_func_open64" = xyes
13248 printf "%s\n" "#define HAVE_OPEN64 1" >>confdefs.h
13251 ac_fn_c_check_func "$LINENO" "pathconf" "ac_cv_func_pathconf"
13252 if test "x$ac_cv_func_pathconf" = xyes
13254 printf "%s\n" "#define HAVE_PATHCONF 1" >>confdefs.h
13257 ac_fn_c_check_func "$LINENO" "posix_fadvise" "ac_cv_func_posix_fadvise"
13258 if test "x$ac_cv_func_posix_fadvise" = xyes
13260 printf "%s\n" "#define HAVE_POSIX_FADVISE 1" >>confdefs.h
13263 ac_fn_c_check_func "$LINENO" "posix_fadvise64" "ac_cv_func_posix_fadvise64"
13264 if test "x$ac_cv_func_posix_fadvise64" = xyes
13266 printf "%s\n" "#define HAVE_POSIX_FADVISE64 1" >>confdefs.h
13269 ac_fn_c_check_func "$LINENO" "posix_memalign" "ac_cv_func_posix_memalign"
13270 if test "x$ac_cv_func_posix_memalign" = xyes
13272 printf "%s\n" "#define HAVE_POSIX_MEMALIGN 1" >>confdefs.h
13275 ac_fn_c_check_func "$LINENO" "prctl" "ac_cv_func_prctl"
13276 if test "x$ac_cv_func_prctl" = xyes
13278 printf "%s\n" "#define HAVE_PRCTL 1" >>confdefs.h
13281 ac_fn_c_check_func "$LINENO" "pread" "ac_cv_func_pread"
13282 if test "x$ac_cv_func_pread" = xyes
13284 printf "%s\n" "#define HAVE_PREAD 1" >>confdefs.h
13287 ac_fn_c_check_func "$LINENO" "pwrite" "ac_cv_func_pwrite"
13288 if test "x$ac_cv_func_pwrite" = xyes
13290 printf "%s\n" "#define HAVE_PWRITE 1" >>confdefs.h
13293 ac_fn_c_check_func "$LINENO" "pread64" "ac_cv_func_pread64"
13294 if test "x$ac_cv_func_pread64" = xyes
13296 printf "%s\n" "#define HAVE_PREAD64 1" >>confdefs.h
13299 ac_fn_c_check_func "$LINENO" "pwrite64" "ac_cv_func_pwrite64"
13300 if test "x$ac_cv_func_pwrite64" = xyes
13302 printf "%s\n" "#define HAVE_PWRITE64 1" >>confdefs.h
13305 ac_fn_c_check_func "$LINENO" "qsort_r" "ac_cv_func_qsort_r"
13306 if test "x$ac_cv_func_qsort_r" = xyes
13308 printf "%s\n" "#define HAVE_QSORT_R 1" >>confdefs.h
13311 ac_fn_c_check_func "$LINENO" "secure_getenv" "ac_cv_func_secure_getenv"
13312 if test "x$ac_cv_func_secure_getenv" = xyes
13314 printf "%s\n" "#define HAVE_SECURE_GETENV 1" >>confdefs.h
13317 ac_fn_c_check_func "$LINENO" "setmntent" "ac_cv_func_setmntent"
13318 if test "x$ac_cv_func_setmntent" = xyes
13320 printf "%s\n" "#define HAVE_SETMNTENT 1" >>confdefs.h
13323 ac_fn_c_check_func "$LINENO" "setresgid" "ac_cv_func_setresgid"
13324 if test "x$ac_cv_func_setresgid" = xyes
13326 printf "%s\n" "#define HAVE_SETRESGID 1" >>confdefs.h
13329 ac_fn_c_check_func "$LINENO" "setresuid" "ac_cv_func_setresuid"
13330 if test "x$ac_cv_func_setresuid" = xyes
13332 printf "%s\n" "#define HAVE_SETRESUID 1" >>confdefs.h
13335 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
13336 if test "x$ac_cv_func_snprintf" = xyes
13338 printf "%s\n" "#define HAVE_SNPRINTF 1" >>confdefs.h
13341 ac_fn_c_check_func "$LINENO" "srandom" "ac_cv_func_srandom"
13342 if test "x$ac_cv_func_srandom" = xyes
13344 printf "%s\n" "#define HAVE_SRANDOM 1" >>confdefs.h
13347 ac_fn_c_check_func "$LINENO" "stpcpy" "ac_cv_func_stpcpy"
13348 if test "x$ac_cv_func_stpcpy" = xyes
13350 printf "%s\n" "#define HAVE_STPCPY 1" >>confdefs.h
13353 ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
13354 if test "x$ac_cv_func_strcasecmp" = xyes
13356 printf "%s\n" "#define HAVE_STRCASECMP 1" >>confdefs.h
13359 ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup"
13360 if test "x$ac_cv_func_strdup" = xyes
13362 printf "%s\n" "#define HAVE_STRDUP 1" >>confdefs.h
13365 ac_fn_c_check_func "$LINENO" "strnlen" "ac_cv_func_strnlen"
13366 if test "x$ac_cv_func_strnlen" = xyes
13368 printf "%s\n" "#define HAVE_STRNLEN 1" >>confdefs.h
13371 ac_fn_c_check_func "$LINENO" "strptime" "ac_cv_func_strptime"
13372 if test "x$ac_cv_func_strptime" = xyes
13374 printf "%s\n" "#define HAVE_STRPTIME 1" >>confdefs.h
13377 ac_fn_c_check_func "$LINENO" "strtoull" "ac_cv_func_strtoull"
13378 if test "x$ac_cv_func_strtoull" = xyes
13380 printf "%s\n" "#define HAVE_STRTOULL 1" >>confdefs.h
13383 ac_fn_c_check_func "$LINENO" "sync_file_range" "ac_cv_func_sync_file_range"
13384 if test "x$ac_cv_func_sync_file_range" = xyes
13386 printf "%s\n" "#define HAVE_SYNC_FILE_RANGE 1" >>confdefs.h
13389 ac_fn_c_check_func "$LINENO" "sysconf" "ac_cv_func_sysconf"
13390 if test "x$ac_cv_func_sysconf" = xyes
13392 printf "%s\n" "#define HAVE_SYSCONF 1" >>confdefs.h
13395 ac_fn_c_check_func "$LINENO" "usleep" "ac_cv_func_usleep"
13396 if test "x$ac_cv_func_usleep" = xyes
13398 printf "%s\n" "#define HAVE_USLEEP 1" >>confdefs.h
13401 ac_fn_c_check_func "$LINENO" "utime" "ac_cv_func_utime"
13402 if test "x$ac_cv_func_utime" = xyes
13404 printf "%s\n" "#define HAVE_UTIME 1" >>confdefs.h
13407 ac_fn_c_check_func "$LINENO" "utimes" "ac_cv_func_utimes"
13408 if test "x$ac_cv_func_utimes" = xyes
13410 printf "%s\n" "#define HAVE_UTIMES 1" >>confdefs.h
13413 ac_fn_c_check_func "$LINENO" "valloc" "ac_cv_func_valloc"
13414 if test "x$ac_cv_func_valloc" = xyes
13416 printf "%s\n" "#define HAVE_VALLOC 1" >>confdefs.h
13421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
13422 printf %s "checking for socket in -lsocket... " >&6; }
13423 if test ${ac_cv_lib_socket_socket+y}
13425 printf %s "(cached) " >&6
13427 ac_check_lib_save_LIBS=$LIBS
13428 LIBS="-lsocket $LIBS"
13429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13430 /* end confdefs.h. */
13432 /* Override any GCC internal prototype to avoid an error.
13433 Use char because int might match the return type of a GCC
13434 builtin and then its argument prototype would still apply. */
13444 if ac_fn_c_try_link "$LINENO"
13446 ac_cv_lib_socket_socket=yes
13448 ac_cv_lib_socket_socket=no
13450 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13451 conftest$ac_exeext conftest.$ac_ext
13452 LIBS=$ac_check_lib_save_LIBS
13454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
13455 printf "%s\n" "$ac_cv_lib_socket_socket" >&6; }
13456 if test "x$ac_cv_lib_socket_socket" = xyes
13458 SOCKET_LIB=-lsocket
13462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for magic_file in -lmagic" >&5
13463 printf %s "checking for magic_file in -lmagic... " >&6; }
13464 if test ${ac_cv_lib_magic_magic_file+y}
13466 printf %s "(cached) " >&6
13468 ac_check_lib_save_LIBS=$LIBS
13469 LIBS="-lmagic $LIBS"
13470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13471 /* end confdefs.h. */
13473 /* Override any GCC internal prototype to avoid an error.
13474 Use char because int might match the return type of a GCC
13475 builtin and then its argument prototype would still apply. */
13476 char magic_file ();
13480 return magic_file ();
13485 if ac_fn_c_try_link "$LINENO"
13487 ac_cv_lib_magic_magic_file=yes
13489 ac_cv_lib_magic_magic_file=no
13491 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13492 conftest$ac_exeext conftest.$ac_ext
13493 LIBS=$ac_check_lib_save_LIBS
13495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_magic_magic_file" >&5
13496 printf "%s\n" "$ac_cv_lib_magic_magic_file" >&6; }
13497 if test "x$ac_cv_lib_magic_magic_file" = xyes
13500 ac_fn_c_check_header_compile "$LINENO" "magic.h" "ac_cv_header_magic_h" "$ac_includes_default"
13501 if test "x$ac_cv_header_magic_h" = xyes
13503 printf "%s\n" "#define HAVE_MAGIC_H 1" >>confdefs.h
13509 if test "$ac_cv_func_dlopen" = yes ; then
13510 MAGIC_LIB=$DLOPEN_LIB
13513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
13514 printf %s "checking for clock_gettime in -lrt... " >&6; }
13515 if test ${ac_cv_lib_rt_clock_gettime+y}
13517 printf %s "(cached) " >&6
13519 ac_check_lib_save_LIBS=$LIBS
13521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13522 /* end confdefs.h. */
13524 /* Override any GCC internal prototype to avoid an error.
13525 Use char because int might match the return type of a GCC
13526 builtin and then its argument prototype would still apply. */
13527 char clock_gettime ();
13531 return clock_gettime ();
13536 if ac_fn_c_try_link "$LINENO"
13538 ac_cv_lib_rt_clock_gettime=yes
13540 ac_cv_lib_rt_clock_gettime=no
13542 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13543 conftest$ac_exeext conftest.$ac_ext
13544 LIBS=$ac_check_lib_save_LIBS
13546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
13547 printf "%s\n" "$ac_cv_lib_rt_clock_gettime" >&6; }
13548 if test "x$ac_cv_lib_rt_clock_gettime" = xyes
13550 CLOCK_GETTIME_LIB=-lrt
13556 # Check whether --enable-fuse2fs was given.
13557 if test ${enable_fuse2fs+y}
13559 enableval=$enable_fuse2fs; if test "$enableval" = "no"
13562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling fuse2fs" >&5
13563 printf "%s\n" "Disabling fuse2fs" >&6; }
13565 for ac_header in pthread.h fuse.h
13567 as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | $as_tr_sh`
13568 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#define _FILE_OFFSET_BITS 64
13569 #define FUSE_USE_VERSION 29
13571 if eval test \"x\$"$as_ac_Header"\" = x"yes"
13573 cat >>confdefs.h <<_ACEOF
13574 #define `printf "%s\n" "HAVE_$ac_header" | $as_tr_cpp` 1
13578 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13579 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
13580 as_fn_error $? "Cannot find fuse2fs headers.
13581 See \`config.log' for more details" "$LINENO" 5; }
13586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13587 /* end confdefs.h. */
13588 #define FUSE_USE_VERSION 29
13590 #include <linux/fs.h>
13591 #include <linux/falloc.h>
13592 #include <linux/xattr.h>
13603 if ac_fn_c_try_cpp "$LINENO"
13607 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13608 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
13609 as_fn_error $? "Cannot find fuse2fs Linux headers.
13610 See \`config.log' for more details" "$LINENO" 5; }
13612 rm -f conftest.err conftest.i conftest.$ac_ext
13614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -losxfuse" >&5
13615 printf %s "checking for fuse_main in -losxfuse... " >&6; }
13616 if test ${ac_cv_lib_osxfuse_fuse_main+y}
13618 printf %s "(cached) " >&6
13620 ac_check_lib_save_LIBS=$LIBS
13621 LIBS="-losxfuse $LIBS"
13622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13623 /* end confdefs.h. */
13625 /* Override any GCC internal prototype to avoid an error.
13626 Use char because int might match the return type of a GCC
13627 builtin and then its argument prototype would still apply. */
13632 return fuse_main ();
13637 if ac_fn_c_try_link "$LINENO"
13639 ac_cv_lib_osxfuse_fuse_main=yes
13641 ac_cv_lib_osxfuse_fuse_main=no
13643 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13644 conftest$ac_exeext conftest.$ac_ext
13645 LIBS=$ac_check_lib_save_LIBS
13647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_osxfuse_fuse_main" >&5
13648 printf "%s\n" "$ac_cv_lib_osxfuse_fuse_main" >&6; }
13649 if test "x$ac_cv_lib_osxfuse_fuse_main" = xyes
13653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -lfuse" >&5
13654 printf %s "checking for fuse_main in -lfuse... " >&6; }
13655 if test ${ac_cv_lib_fuse_fuse_main+y}
13657 printf %s "(cached) " >&6
13659 ac_check_lib_save_LIBS=$LIBS
13660 LIBS="-lfuse $LIBS"
13661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13662 /* end confdefs.h. */
13664 /* Override any GCC internal prototype to avoid an error.
13665 Use char because int might match the return type of a GCC
13666 builtin and then its argument prototype would still apply. */
13671 return fuse_main ();
13676 if ac_fn_c_try_link "$LINENO"
13678 ac_cv_lib_fuse_fuse_main=yes
13680 ac_cv_lib_fuse_fuse_main=no
13682 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13683 conftest$ac_exeext conftest.$ac_ext
13684 LIBS=$ac_check_lib_save_LIBS
13686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fuse_fuse_main" >&5
13687 printf "%s\n" "$ac_cv_lib_fuse_fuse_main" >&6; }
13688 if test "x$ac_cv_lib_fuse_fuse_main" = xyes
13692 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13693 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
13694 as_fn_error $? "Cannot find fuse library.
13695 See \`config.log' for more details" "$LINENO" 5; }
13700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling fuse2fs" >&5
13701 printf "%s\n" "Enabling fuse2fs" >&6; }
13705 for ac_header in pthread.h fuse.h
13707 as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | $as_tr_sh`
13708 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#define _FILE_OFFSET_BITS 64
13709 #define FUSE_USE_VERSION 29
13711 # include <linux/fs.h>
13712 # include <linux/falloc.h>
13713 # include <linux/xattr.h>
13716 if eval test \"x\$"$as_ac_Header"\" = x"yes"
13718 cat >>confdefs.h <<_ACEOF
13719 #define `printf "%s\n" "HAVE_$ac_header" | $as_tr_cpp` 1
13727 if test -z "$FUSE_CMT"
13729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -losxfuse" >&5
13730 printf %s "checking for fuse_main in -losxfuse... " >&6; }
13731 if test ${ac_cv_lib_osxfuse_fuse_main+y}
13733 printf %s "(cached) " >&6
13735 ac_check_lib_save_LIBS=$LIBS
13736 LIBS="-losxfuse $LIBS"
13737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13738 /* end confdefs.h. */
13740 /* Override any GCC internal prototype to avoid an error.
13741 Use char because int might match the return type of a GCC
13742 builtin and then its argument prototype would still apply. */
13747 return fuse_main ();
13752 if ac_fn_c_try_link "$LINENO"
13754 ac_cv_lib_osxfuse_fuse_main=yes
13756 ac_cv_lib_osxfuse_fuse_main=no
13758 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13759 conftest$ac_exeext conftest.$ac_ext
13760 LIBS=$ac_check_lib_save_LIBS
13762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_osxfuse_fuse_main" >&5
13763 printf "%s\n" "$ac_cv_lib_osxfuse_fuse_main" >&6; }
13764 if test "x$ac_cv_lib_osxfuse_fuse_main" = xyes
13768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -lfuse" >&5
13769 printf %s "checking for fuse_main in -lfuse... " >&6; }
13770 if test ${ac_cv_lib_fuse_fuse_main+y}
13772 printf %s "(cached) " >&6
13774 ac_check_lib_save_LIBS=$LIBS
13775 LIBS="-lfuse $LIBS"
13776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13777 /* end confdefs.h. */
13779 /* Override any GCC internal prototype to avoid an error.
13780 Use char because int might match the return type of a GCC
13781 builtin and then its argument prototype would still apply. */
13786 return fuse_main ();
13791 if ac_fn_c_try_link "$LINENO"
13793 ac_cv_lib_fuse_fuse_main=yes
13795 ac_cv_lib_fuse_fuse_main=no
13797 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13798 conftest$ac_exeext conftest.$ac_ext
13799 LIBS=$ac_check_lib_save_LIBS
13801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fuse_fuse_main" >&5
13802 printf "%s\n" "$ac_cv_lib_fuse_fuse_main" >&6; }
13803 if test "x$ac_cv_lib_fuse_fuse_main" = xyes
13813 if test -z "$FUSE_CMT"
13815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling fuse2fs by default." >&5
13816 printf "%s\n" "Enabling fuse2fs by default." >&6; }
13823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for optreset" >&5
13824 printf %s "checking for optreset... " >&6; }
13825 if test ${ac_cv_have_optreset+y}
13827 printf %s "(cached) " >&6
13829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13830 /* end confdefs.h. */
13831 #include <unistd.h>
13834 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13835 $EGREP "optreset" >/dev/null 2>&1
13837 ac_cv_have_optreset=yes
13839 ac_cv_have_optreset=no
13844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_optreset" >&5
13845 printf "%s\n" "$ac_cv_have_optreset" >&6; }
13846 if test $ac_cv_have_optreset = yes; then
13848 printf "%s\n" "#define HAVE_OPTRESET 1" >>confdefs.h
13853 echo GL_THREADS_API: ${gl_threads_api}
13854 if test "${gl_threads_api}" != none
13856 ac_fn_c_check_func "$LINENO" "sem_init" "ac_cv_func_sem_init"
13857 if test "x$ac_cv_func_sem_init" = xyes
13861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lpthread" >&5
13862 printf %s "checking for sem_init in -lpthread... " >&6; }
13863 if test ${ac_cv_lib_pthread_sem_init+y}
13865 printf %s "(cached) " >&6
13867 ac_check_lib_save_LIBS=$LIBS
13868 LIBS="-lpthread $LIBS"
13869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13870 /* end confdefs.h. */
13872 /* Override any GCC internal prototype to avoid an error.
13873 Use char because int might match the return type of a GCC
13874 builtin and then its argument prototype would still apply. */
13879 return sem_init ();
13884 if ac_fn_c_try_link "$LINENO"
13886 ac_cv_lib_pthread_sem_init=yes
13888 ac_cv_lib_pthread_sem_init=no
13890 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13891 conftest$ac_exeext conftest.$ac_ext
13892 LIBS=$ac_check_lib_save_LIBS
13894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_sem_init" >&5
13895 printf "%s\n" "$ac_cv_lib_pthread_sem_init" >&6; }
13896 if test "x$ac_cv_lib_pthread_sem_init" = xyes
13898 printf "%s\n" "#define HAVE_SEM_INIT 1" >>confdefs.h
13900 SEM_INIT_LIB=-lpthread
13902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lrt" >&5
13903 printf %s "checking for sem_init in -lrt... " >&6; }
13904 if test ${ac_cv_lib_rt_sem_init+y}
13906 printf %s "(cached) " >&6
13908 ac_check_lib_save_LIBS=$LIBS
13910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13911 /* end confdefs.h. */
13913 /* Override any GCC internal prototype to avoid an error.
13914 Use char because int might match the return type of a GCC
13915 builtin and then its argument prototype would still apply. */
13920 return sem_init ();
13925 if ac_fn_c_try_link "$LINENO"
13927 ac_cv_lib_rt_sem_init=yes
13929 ac_cv_lib_rt_sem_init=no
13931 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13932 conftest$ac_exeext conftest.$ac_ext
13933 LIBS=$ac_check_lib_save_LIBS
13935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sem_init" >&5
13936 printf "%s\n" "$ac_cv_lib_rt_sem_init" >&6; }
13937 if test "x$ac_cv_lib_rt_sem_init" = xyes
13939 printf "%s\n" "#define HAVE_SEM_INIT 1" >>confdefs.h
13943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lposix4" >&5
13944 printf %s "checking for sem_init in -lposix4... " >&6; }
13945 if test ${ac_cv_lib_posix4_sem_init+y}
13947 printf %s "(cached) " >&6
13949 ac_check_lib_save_LIBS=$LIBS
13950 LIBS="-lposix4 $LIBS"
13951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13952 /* end confdefs.h. */
13954 /* Override any GCC internal prototype to avoid an error.
13955 Use char because int might match the return type of a GCC
13956 builtin and then its argument prototype would still apply. */
13961 return sem_init ();
13966 if ac_fn_c_try_link "$LINENO"
13968 ac_cv_lib_posix4_sem_init=yes
13970 ac_cv_lib_posix4_sem_init=no
13972 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13973 conftest$ac_exeext conftest.$ac_ext
13974 LIBS=$ac_check_lib_save_LIBS
13976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sem_init" >&5
13977 printf "%s\n" "$ac_cv_lib_posix4_sem_init" >&6; }
13978 if test "x$ac_cv_lib_posix4_sem_init" = xyes
13980 printf "%s\n" "#define HAVE_SEM_INIT 1" >>confdefs.h
13982 SEM_INIT_LIB=-lposix4
13992 if test "$ac_cv_func_qsort_r" != no
13995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether qsort_r is GNU version" >&5
13996 printf %s "checking whether qsort_r is GNU version... " >&6; }
13997 if test ${e2_cv_gnu_qsort_r+y}
13999 printf %s "(cached) " >&6
14001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14002 /* end confdefs.h. */
14004 #include <stdlib.h>
14005 void (qsort_r)(void *base, size_t nmemb, size_t size,
14006 int (*compar)(const void *, const void *, void *),
14017 if ac_fn_c_try_compile "$LINENO"
14019 e2_cv_gnu_qsort_r=yes
14021 e2_cv_gnu_qsort_r=no
14023 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $e2_cv_gnu_qsort_r" >&5
14027 printf "%s\n" "$e2_cv_gnu_qsort_r" >&6; }
14028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether qsort_r is BSD version" >&5
14029 printf %s "checking whether qsort_r is BSD version... " >&6; }
14030 if test ${e2_cv_bsd_qsort_r+y}
14032 printf %s "(cached) " >&6
14034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14035 /* end confdefs.h. */
14037 #include <stdlib.h>
14038 void (qsort_r)(void *base, size_t nmemb, size_t size,
14039 void *arg, int (*compar)(void *, const void *, const void *));
14049 if ac_fn_c_try_compile "$LINENO"
14051 e2_cv_bsd_qsort_r=yes
14053 e2_cv_bsd_qsort_r=no
14055 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $e2_cv_bsd_qsort_r" >&5
14059 printf "%s\n" "$e2_cv_bsd_qsort_r" >&6; }
14060 case "$e2_cv_gnu_qsort_r:$e2_cv_bsd_qsort_r" in #(
14064 printf "%s\n" "#define HAVE_GNU_QSORT_R 1" >>confdefs.h
14070 printf "%s\n" "#define HAVE_BSD_QSORT_R 1" >>confdefs.h
14078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for unified diff option" >&5
14079 printf %s "checking for unified diff option... " >&6; }
14080 if diff -u $0 $0 > /dev/null 2>&1 ; then
14085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $UNI_DIFF_OPTS" >&5
14086 printf "%s\n" "$UNI_DIFF_OPTS" >&6; }
14091 printf "%s\n" "#define HAVE_EXT2_IOCTLS 1" >>confdefs.h
14096 printf %s "checking for mount 'nosuid' option... "
14097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14098 /* end confdefs.h. */
14099 #include <sys/mount.h>
14103 void *temp = (void *)(MS_NOSUID); (void) temp;
14108 if ac_fn_c_try_compile "$LINENO"
14111 printf "%s\n" "#define HAVE_MOUNT_NOSUID 1" >>confdefs.h
14113 ac_cv_mount_nosuid=yes
14114 printf "%s\n" "yes"
14116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14117 /* end confdefs.h. */
14118 #include <sys/mount.h>
14122 void *temp = (void *)(MNT_NOSUID); (void) temp;
14127 if ac_fn_c_try_compile "$LINENO"
14130 printf "%s\n" "#define HAVE_MOUNT_NOSUID 1" >>confdefs.h
14132 ac_cv_mount_nosuid=yes
14133 printf "%s\n" "yes"
14135 ac_cv_mount_nosuid=no
14139 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14142 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14145 printf %s "checking for mount 'nodev' option... "
14146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14147 /* end confdefs.h. */
14148 #include <sys/mount.h>
14152 void *temp = (void *)(MS_NODEV); (void) temp;
14157 if ac_fn_c_try_compile "$LINENO"
14160 printf "%s\n" "#define HAVE_MOUNT_NODEV 1" >>confdefs.h
14162 ac_cv_mount_nodev=yes
14163 printf "%s\n" "yes"
14165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14166 /* end confdefs.h. */
14167 #include <sys/mount.h>
14171 void *temp = (void *)(MNT_NODEV); (void) temp;
14176 if ac_fn_c_try_compile "$LINENO"
14179 printf "%s\n" "#define HAVE_MOUNT_NODEV 1" >>confdefs.h
14181 ac_cv_mount_nodev=yes
14182 printf "%s\n" "yes"
14184 ac_cv_mount_nodev=no
14188 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14191 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14193 # Check whether --enable-lto was given.
14194 if test ${enable_lto+y}
14196 enableval=$enable_lto;
14201 if test "$enable_lto" = "yes" || test "$enable_lto" = "probe"; then
14202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if C compiler supports LTO" >&5
14203 printf %s "checking if C compiler supports LTO... " >&6; }
14204 OLD_CFLAGS="$CFLAGS"
14205 OLD_LDFLAGS="$LDFLAGS"
14206 LTO_FLAGS="-g -flto -ffat-lto-objects"
14207 CFLAGS="$CFLAGS $LTO_FLAGS"
14208 LDFLAGS="$LDFLAGS $LTO_FLAGS"
14209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14210 /* end confdefs.h. */
14220 if ac_fn_c_try_link "$LINENO"
14222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14223 printf "%s\n" "yes" >&6; }
14224 lto_cflags=$LTO_FLAGS
14225 lto_ldflags=$LTO_FLAGS
14226 # Extract the first word of "gcc-ar", so it can be a program name with args.
14227 set dummy gcc-ar; ac_word=$2
14228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14229 printf %s "checking for $ac_word... " >&6; }
14230 if test ${ac_cv_path_gcc_ar+y}
14232 printf %s "(cached) " >&6
14236 ac_cv_path_gcc_ar="$gcc_ar" # Let the user override the test with a path.
14239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14240 for as_dir in $PATH
14243 case $as_dir in #(((
14246 *) as_dir=$as_dir/ ;;
14248 for ac_exec_ext in '' $ac_executable_extensions; do
14249 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14250 ac_cv_path_gcc_ar="$as_dir$ac_word$ac_exec_ext"
14251 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14261 gcc_ar=$ac_cv_path_gcc_ar
14262 if test -n "$gcc_ar"; then
14263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gcc_ar" >&5
14264 printf "%s\n" "$gcc_ar" >&6; }
14266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14267 printf "%s\n" "no" >&6; }
14271 # Extract the first word of "gcc-ranlib", so it can be a program name with args.
14272 set dummy gcc-ranlib; ac_word=$2
14273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14274 printf %s "checking for $ac_word... " >&6; }
14275 if test ${ac_cv_path_gcc_ranlib+y}
14277 printf %s "(cached) " >&6
14279 case $gcc_ranlib in
14281 ac_cv_path_gcc_ranlib="$gcc_ranlib" # Let the user override the test with a path.
14284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14285 for as_dir in $PATH
14288 case $as_dir in #(((
14291 *) as_dir=$as_dir/ ;;
14293 for ac_exec_ext in '' $ac_executable_extensions; do
14294 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14295 ac_cv_path_gcc_ranlib="$as_dir$ac_word$ac_exec_ext"
14296 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14306 gcc_ranlib=$ac_cv_path_gcc_ranlib
14307 if test -n "$gcc_ranlib"; then
14308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gcc_ranlib" >&5
14309 printf "%s\n" "$gcc_ranlib" >&6; }
14311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14312 printf "%s\n" "no" >&6; }
14317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14318 printf "%s\n" "no" >&6; }
14320 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14321 conftest$ac_exeext conftest.$ac_ext
14322 if test -x "$gcc_ar" && test -x "$gcc_ranlib"; then
14325 RANLIB="${gcc_ranlib}"
14327 CFLAGS="${OLD_CFLAGS}"
14328 LDFLAGS="${OLD_LDFLAGS}"
14333 if test "$enable_lto" = "yes" && test "$have_lto" != "yes"; then
14334 as_fn_error $? "LTO not supported by compiler." "$LINENO" 5
14336 # Check whether --enable-ubsan was given.
14337 if test ${enable_ubsan+y}
14339 enableval=$enable_ubsan;
14344 if test "$enable_ubsan" = "yes" || test "$enable_ubsan" = "probe"; then
14345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if C compiler supports UBSAN" >&5
14346 printf %s "checking if C compiler supports UBSAN... " >&6; }
14347 OLD_CFLAGS="$CFLAGS"
14348 OLD_LDFLAGS="$LDFLAGS"
14349 UBSAN_FLAGS="-fsanitize=undefined"
14350 CFLAGS="$CFLAGS $UBSAN_FLAGS"
14351 LDFLAGS="$LDFLAGS $UBSAN_FLAGS"
14352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14353 /* end confdefs.h. */
14363 if ac_fn_c_try_link "$LINENO"
14365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14366 printf "%s\n" "yes" >&6; }
14367 ubsan_cflags=$UBSAN_FLAGS
14368 ubsan_ldflags=$UBSAN_FLAGS
14371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14372 printf "%s\n" "no" >&6; }
14374 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14375 conftest$ac_exeext conftest.$ac_ext
14376 CFLAGS="${OLD_CFLAGS}"
14377 LDFLAGS="${OLD_LDFLAGS}"
14382 if test "$enable_ubsan" = "yes" && test "$have_ubsan" != "yes"; then
14383 as_fn_error $? "UBSAN not supported by compiler." "$LINENO" 5
14385 # Check whether --enable-addrsan was given.
14386 if test ${enable_addrsan+y}
14388 enableval=$enable_addrsan;
14393 if test "$enable_addrsan" = "yes" || test "$enable_addrsan" = "probe"; then
14394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if C compiler supports ADDRSAN" >&5
14395 printf %s "checking if C compiler supports ADDRSAN... " >&6; }
14396 OLD_CFLAGS="$CFLAGS"
14397 OLD_LDFLAGS="$LDFLAGS"
14398 ADDRSAN_FLAGS="-fsanitize=address"
14399 CFLAGS="$CFLAGS $ADDRSAN_FLAGS"
14400 LDFLAGS="$LDFLAGS $ADDRSAN_FLAGS"
14401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14402 /* end confdefs.h. */
14412 if ac_fn_c_try_link "$LINENO"
14414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14415 printf "%s\n" "yes" >&6; }
14416 addrsan_cflags=$ADDRSAN_FLAGS
14417 addrsan_ldflags=$ADDRSAN_FLAGS
14420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14421 printf "%s\n" "no" >&6; }
14423 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14424 conftest$ac_exeext conftest.$ac_ext
14425 CFLAGS="${OLD_CFLAGS}"
14426 LDFLAGS="${OLD_LDFLAGS}"
14431 if test "$enable_addrsan" = "yes" && test "$have_addrsan" != "yes"; then
14432 as_fn_error $? "ADDRSAN not supported by compiler." "$LINENO" 5
14434 # Check whether --enable-threadsan was given.
14435 if test ${enable_threadsan+y}
14437 enableval=$enable_threadsan;
14439 enable_threadsan=no
14442 if test "$enable_threadsan" = "yes" || test "$enable_threadsan" = "probe"; then
14443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if C compiler supports THREADSAN" >&5
14444 printf %s "checking if C compiler supports THREADSAN... " >&6; }
14445 OLD_CFLAGS="$CFLAGS"
14446 OLD_LDFLAGS="$LDFLAGS"
14447 THREADSAN_FLAGS="-fsanitize=thread"
14448 CFLAGS="$CFLAGS $THREADSAN_FLAGS"
14449 LDFLAGS="$LDFLAGS $THREADSAN_FLAGS"
14450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14451 /* end confdefs.h. */
14461 if ac_fn_c_try_link "$LINENO"
14463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14464 printf "%s\n" "yes" >&6; }
14465 threadsan_cflags=$THREADSAN_FLAGS
14466 threadsan_ldflags=$THREADSAN_FLAGS
14469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14470 printf "%s\n" "no" >&6; }
14472 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14473 conftest$ac_exeext conftest.$ac_ext
14474 CFLAGS="${OLD_CFLAGS}"
14475 LDFLAGS="${OLD_LDFLAGS}"
14480 if test "$enable_threadsan" = "yes" && test "$have_threadsan" != "yes"; then
14481 as_fn_error $? "THREADSAN not supported by compiler." "$LINENO" 5
14483 if test "$have_threadsan" = "yes" && test "$have_addrsan" = "yes"; then
14484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ADDRSAN and THREADSAN are not known to work together." >&5
14485 printf "%s\n" "$as_me: WARNING: ADDRSAN and THREADSAN are not known to work together." >&2;}
14488 # Check whether --enable-fuzzing was given.
14489 if test ${enable_fuzzing+y}
14491 enableval=$enable_fuzzing;
14496 if test "$enable_fuzzing" = "yes" || test "$enable_fuzzing" = "probe"; then
14504 ac_cpp='$CXXCPP $CPPFLAGS'
14505 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14506 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14507 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14508 if test -z "$CXX"; then
14509 if test -n "$CCC"; then
14512 if test -n "$ac_tool_prefix"; then
14513 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
14515 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
14516 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
14517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14518 printf %s "checking for $ac_word... " >&6; }
14519 if test ${ac_cv_prog_CXX+y}
14521 printf %s "(cached) " >&6
14523 if test -n "$CXX"; then
14524 ac_cv_prog_CXX="$CXX" # Let the user override the test.
14526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14527 for as_dir in $PATH
14530 case $as_dir in #(((
14533 *) as_dir=$as_dir/ ;;
14535 for ac_exec_ext in '' $ac_executable_extensions; do
14536 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14537 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
14538 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14547 CXX=$ac_cv_prog_CXX
14548 if test -n "$CXX"; then
14549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
14550 printf "%s\n" "$CXX" >&6; }
14552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14553 printf "%s\n" "no" >&6; }
14557 test -n "$CXX" && break
14560 if test -z "$CXX"; then
14562 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
14564 # Extract the first word of "$ac_prog", so it can be a program name with args.
14565 set dummy $ac_prog; ac_word=$2
14566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14567 printf %s "checking for $ac_word... " >&6; }
14568 if test ${ac_cv_prog_ac_ct_CXX+y}
14570 printf %s "(cached) " >&6
14572 if test -n "$ac_ct_CXX"; then
14573 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
14575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14576 for as_dir in $PATH
14579 case $as_dir in #(((
14582 *) as_dir=$as_dir/ ;;
14584 for ac_exec_ext in '' $ac_executable_extensions; do
14585 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14586 ac_cv_prog_ac_ct_CXX="$ac_prog"
14587 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14596 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
14597 if test -n "$ac_ct_CXX"; then
14598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
14599 printf "%s\n" "$ac_ct_CXX" >&6; }
14601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14602 printf "%s\n" "no" >&6; }
14606 test -n "$ac_ct_CXX" && break
14609 if test "x$ac_ct_CXX" = x; then
14612 case $cross_compiling:$ac_tool_warned in
14614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14615 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14616 ac_tool_warned=yes ;;
14624 # Provide some information about the compiler.
14625 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
14628 for ac_option in --version -v -V -qversion; do
14629 { { ac_try="$ac_compiler $ac_option >&5"
14630 case "(($ac_try" in
14631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14632 *) ac_try_echo=$ac_try;;
14634 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
14635 printf "%s\n" "$ac_try_echo"; } >&5
14636 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
14638 if test -s conftest.err; then
14640 ... rest of stderr output deleted ...
14641 10q' conftest.err >conftest.er1
14642 cat conftest.er1 >&5
14644 rm -f conftest.er1 conftest.err
14645 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14646 test $ac_status = 0; }
14649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5
14650 printf %s "checking whether the compiler supports GNU C++... " >&6; }
14651 if test ${ac_cv_cxx_compiler_gnu+y}
14653 printf %s "(cached) " >&6
14655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14656 /* end confdefs.h. */
14669 if ac_fn_cxx_try_compile "$LINENO"
14671 ac_compiler_gnu=yes
14675 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14676 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
14679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
14680 printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; }
14681 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14683 if test $ac_compiler_gnu = yes; then
14688 ac_test_CXXFLAGS=${CXXFLAGS+y}
14689 ac_save_CXXFLAGS=$CXXFLAGS
14690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
14691 printf %s "checking whether $CXX accepts -g... " >&6; }
14692 if test ${ac_cv_prog_cxx_g+y}
14694 printf %s "(cached) " >&6
14696 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
14697 ac_cxx_werror_flag=yes
14698 ac_cv_prog_cxx_g=no
14700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14701 /* end confdefs.h. */
14711 if ac_fn_cxx_try_compile "$LINENO"
14713 ac_cv_prog_cxx_g=yes
14716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14717 /* end confdefs.h. */
14727 if ac_fn_cxx_try_compile "$LINENO"
14731 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
14733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14734 /* end confdefs.h. */
14744 if ac_fn_cxx_try_compile "$LINENO"
14746 ac_cv_prog_cxx_g=yes
14748 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14750 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14752 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14753 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
14755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
14756 printf "%s\n" "$ac_cv_prog_cxx_g" >&6; }
14757 if test $ac_test_CXXFLAGS; then
14758 CXXFLAGS=$ac_save_CXXFLAGS
14759 elif test $ac_cv_prog_cxx_g = yes; then
14760 if test "$GXX" = yes; then
14766 if test "$GXX" = yes; then
14772 ac_prog_cxx_stdcxx=no
14773 if test x$ac_prog_cxx_stdcxx = xno
14775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5
14776 printf %s "checking for $CXX option to enable C++11 features... " >&6; }
14777 if test ${ac_cv_prog_cxx_cxx11+y}
14779 printf %s "(cached) " >&6
14781 ac_cv_prog_cxx_cxx11=no
14783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14784 /* end confdefs.h. */
14785 $ac_cxx_conftest_cxx11_program
14787 for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA
14789 CXX="$ac_save_CXX $ac_arg"
14790 if ac_fn_cxx_try_compile "$LINENO"
14792 ac_cv_prog_cxx_cxx11=$ac_arg
14794 rm -f core conftest.err conftest.$ac_objext conftest.beam
14795 test "x$ac_cv_prog_cxx_cxx11" != "xno" && break
14797 rm -f conftest.$ac_ext
14801 if test "x$ac_cv_prog_cxx_cxx11" = xno
14803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
14804 printf "%s\n" "unsupported" >&6; }
14806 if test "x$ac_cv_prog_cxx_cxx11" = x
14808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
14809 printf "%s\n" "none needed" >&6; }
14811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5
14812 printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; }
14813 CXX="$CXX $ac_cv_prog_cxx_cxx11"
14815 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11
14816 ac_prog_cxx_stdcxx=cxx11
14819 if test x$ac_prog_cxx_stdcxx = xno
14821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5
14822 printf %s "checking for $CXX option to enable C++98 features... " >&6; }
14823 if test ${ac_cv_prog_cxx_cxx98+y}
14825 printf %s "(cached) " >&6
14827 ac_cv_prog_cxx_cxx98=no
14829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14830 /* end confdefs.h. */
14831 $ac_cxx_conftest_cxx98_program
14833 for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA
14835 CXX="$ac_save_CXX $ac_arg"
14836 if ac_fn_cxx_try_compile "$LINENO"
14838 ac_cv_prog_cxx_cxx98=$ac_arg
14840 rm -f core conftest.err conftest.$ac_objext conftest.beam
14841 test "x$ac_cv_prog_cxx_cxx98" != "xno" && break
14843 rm -f conftest.$ac_ext
14847 if test "x$ac_cv_prog_cxx_cxx98" = xno
14849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
14850 printf "%s\n" "unsupported" >&6; }
14852 if test "x$ac_cv_prog_cxx_cxx98" = x
14854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
14855 printf "%s\n" "none needed" >&6; }
14857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5
14858 printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; }
14859 CXX="$CXX $ac_cv_prog_cxx_cxx98"
14861 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98
14862 ac_prog_cxx_stdcxx=cxx98
14867 ac_cpp='$CPP $CPPFLAGS'
14868 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14869 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14870 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if C compiler supports fuzzing sanitizer" >&5
14873 printf %s "checking if C compiler supports fuzzing sanitizer... " >&6; }
14875 ac_cpp='$CXXCPP $CPPFLAGS'
14876 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14877 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14878 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14880 OLD_CXXFLAGS="$CXXFLAGS"
14881 OLD_LDFLAGS="$LDFLAGS"
14882 FUZZER_FLAGS="-fsanitize=fuzzer"
14883 CXXFLAGS="$CXXFLAGS $FUZZER_FLAGS"
14884 LDFLAGS="$LDFLAGS $FUZZER_FLAGS"
14886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14887 /* end confdefs.h. */
14889 #include <stddef.h>
14890 #include <stdint.h>
14900 if ac_fn_cxx_try_compile "$LINENO"
14902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14903 printf "%s\n" "yes" >&6; }
14904 fuzzer_cflags=$FUZZER_FLAGS
14905 fuzzer_ldflags=$FUZZER_FLAGS
14909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14910 printf "%s\n" "no" >&6; }
14911 as_fn_error $? "fuzzing requested but not available" "$LINENO" 5
14913 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14914 CXXFLAGS="${OLD_CXXFLAGS}"
14915 LDFLAGS="${OLD_LDFLAGS}"
14917 ac_cpp='$CPP $CPPFLAGS'
14918 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14919 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14920 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14926 if test "$enable_fuzzer" = "yes" && test "$have_fuzzer" != "yes"; then
14927 as_fn_error $? "Fuzzing not supported by compiler." "$LINENO" 5
14945 E2SCRUB_CMT="$LINUX_CMT"
14948 linux* | gnu* | k*bsd*-gnu)
14949 if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
14951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, root_prefix defaults to ''" >&5
14952 printf "%s\n" "On $host_os systems, root_prefix defaults to ''" >&6; }
14957 linux* | gnu* | k*bsd*-gnu)
14958 if test "$prefix" = NONE ; then
14960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, prefix defaults to /usr" >&5
14961 printf "%s\n" "On $host_os systems, prefix defaults to /usr" >&6; }
14962 if test "$mandir" = '${prefix}/man' ; then
14963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ...and mandir defaults to /usr/share/man" >&5
14964 printf "%s\n" "...and mandir defaults to /usr/share/man" >&6; }
14965 mandir=/usr/share/man
14970 if test "$root_prefix" = NONE ; then
14971 if test "$prefix" = NONE ; then
14972 root_prefix="$ac_default_prefix"
14974 root_prefix="$prefix"
14976 root_bindir=$bindir
14977 root_sbindir=$sbindir
14978 root_libdir=$libdir
14979 root_sysconfdir=$sysconfdir
14981 root_bindir='${root_prefix}/bin'
14982 root_sbindir='${root_prefix}/sbin'
14983 root_libdir='${root_prefix}/lib'
14984 root_sysconfdir='${root_prefix}/etc'
14986 if test "$bindir" != '${exec_prefix}/bin'; then
14987 root_bindir=$bindir
14988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Setting root_bindir to $root_bindir" >&5
14989 printf "%s\n" "Setting root_bindir to $root_bindir" >&6; }
14991 if test "$sbindir" != '${exec_prefix}/sbin'; then
14992 root_sbindir=$sbindir
14993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Setting root_sbindir to $root_sbindir" >&5
14994 printf "%s\n" "Setting root_sbindir to $root_sbindir" >&6; }
14996 if test "$libdir" != '${exec_prefix}/lib'; then
14997 root_libdir=$libdir
14998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Setting root_libdir to $root_libdir" >&5
14999 printf "%s\n" "Setting root_libdir to $root_libdir" >&6; }
15001 if test "$sysconfdir" != '${prefix}/etc'; then
15002 root_sysconfdir=$sysconfdir
15003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Setting root_sysconfdir to $root_sysconfdir" >&5
15004 printf "%s\n" "Setting root_sysconfdir to $root_sysconfdir" >&6; }
15012 # Check whether --with-multiarch was given.
15013 if test ${with_multiarch+y}
15015 withval=$with_multiarch; if test "$withval" = "lib64"; then
15019 libdir=$libdir/$withval
15020 root_libdir=$root_libdir/$withval
15025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we can link with -static" >&5
15026 printf %s "checking whether we can link with -static... " >&6; }
15027 if test ${ac_cv_e2fsprogs_use_static+y}
15029 printf %s "(cached) " >&6
15031 SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS_STATIC -static"
15032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15033 /* end confdefs.h. */
15043 if ac_fn_c_try_link "$LINENO"
15045 ac_cv_e2fsprogs_use_static=yes
15047 ac_cv_e2fsprogs_use_static=no
15049 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15050 conftest$ac_exeext conftest.$ac_ext
15051 LDFLAGS=$SAVE_LDFLAGS
15056 ac_cv_e2fsprogs_use_static=no
15059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_e2fsprogs_use_static" >&5
15060 printf "%s\n" "$ac_cv_e2fsprogs_use_static" >&6; }
15061 if test $ac_cv_e2fsprogs_use_static = yes; then
15062 LDFLAGS_STATIC="$LDFLAGS_STATIC -static"
15067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Using Apple Darwin / GNU libintl workaround" >&5
15068 printf "%s\n" "Using Apple Darwin / GNU libintl workaround" >&6; }
15070 printf "%s\n" "#define _INTL_REDIRECT_MACROS 1" >>confdefs.h
15074 if test "$cross_compiling" = yes ; then
15077 DO_TEST_SUITE=check
15080 INCLUDES='-I. -I$(top_builddir)/lib -I$(top_srcdir)/lib'
15081 if test -n "$CPPFLAGS" ; then
15082 INCLUDES="$INCLUDES $CPPFLAGS"
15084 if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
15085 INCLUDES=$INCLUDES' -I$(top_builddir)/intl -I$(top_srcdir)/intl'
15087 if test -n "$WITH_DIET_LIBC" ; then
15088 INCLUDES="$INCLUDES -D_REENTRANT"
15092 INCLUDES=$INCLUDES' -I$(top_srcdir)/include/mingw'
15096 if test $cross_compiling = no; then
15097 BUILD_CFLAGS="$CFLAGS $CPPFLAGS $INCLUDES -DHAVE_CONFIG_H"
15098 BUILD_LDFLAGS="$LDFLAGS"
15102 CFLAGS_SHLIB=${CFLAGS_SHLIB:-$CFLAGS}
15103 CFLAGS_STLIB=${CFLAGS_STLIB:-$CFLAGS}
15104 LDFLAGS_SHLIB=${LDFLAGS_SHLIB:-$LDFLAGS}
15110 # Check whether --with-udev_rules_dir was given.
15111 if test ${with_udev_rules_dir+y}
15113 withval=$with_udev_rules_dir;
15115 with_udev_rules_dir=yes
15118 if test "x${with_udev_rules_dir}" != "xno"
15121 if test "x${with_udev_rules_dir}" = "xyes"
15126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for udev" >&5
15127 printf %s "checking for udev... " >&6; }
15129 if test -n "$udev_CFLAGS"; then
15130 pkg_cv_udev_CFLAGS="$udev_CFLAGS"
15131 elif test -n "$PKG_CONFIG"; then
15132 if test -n "$PKG_CONFIG" && \
15133 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"udev\""; } >&5
15134 ($PKG_CONFIG --exists --print-errors "udev") 2>&5
15136 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15137 test $ac_status = 0; }; then
15138 pkg_cv_udev_CFLAGS=`$PKG_CONFIG --cflags "udev" 2>/dev/null`
15139 test "x$?" != "x0" && pkg_failed=yes
15146 if test -n "$udev_LIBS"; then
15147 pkg_cv_udev_LIBS="$udev_LIBS"
15148 elif test -n "$PKG_CONFIG"; then
15149 if test -n "$PKG_CONFIG" && \
15150 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"udev\""; } >&5
15151 ($PKG_CONFIG --exists --print-errors "udev") 2>&5
15153 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15154 test $ac_status = 0; }; then
15155 pkg_cv_udev_LIBS=`$PKG_CONFIG --libs "udev" 2>/dev/null`
15156 test "x$?" != "x0" && pkg_failed=yes
15166 if test $pkg_failed = yes; then
15167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15168 printf "%s\n" "no" >&6; }
15170 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15171 _pkg_short_errors_supported=yes
15173 _pkg_short_errors_supported=no
15175 if test $_pkg_short_errors_supported = yes; then
15176 udev_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "udev" 2>&1`
15178 udev_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "udev" 2>&1`
15180 # Put the nasty error message in config.log where it belongs
15181 echo "$udev_PKG_ERRORS" >&5
15184 with_udev_rules_dir=""
15186 elif test $pkg_failed = untried; then
15187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15188 printf "%s\n" "no" >&6; }
15190 with_udev_rules_dir=""
15193 udev_CFLAGS=$pkg_cv_udev_CFLAGS
15194 udev_LIBS=$pkg_cv_udev_LIBS
15195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15196 printf "%s\n" "yes" >&6; }
15198 with_udev_rules_dir="$($PKG_CONFIG --variable=udevdir udev)/rules.d"
15203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for udev rules dir" >&5
15204 printf %s "checking for udev rules dir... " >&6; }
15205 pkg_udev_rules_dir="${with_udev_rules_dir}"
15206 if test -n "${pkg_udev_rules_dir}"
15209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${pkg_udev_rules_dir}" >&5
15210 printf "%s\n" "${pkg_udev_rules_dir}" >&6; }
15215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15216 printf "%s\n" "no" >&6; }
15223 have_udev="disabled"
15230 # Check whether --with-crond_dir was given.
15231 if test ${with_crond_dir+y}
15233 withval=$with_crond_dir;
15238 if test "x${with_crond_dir}" != "xno"
15241 if test "x${with_crond_dir}" = "xyes"
15244 if test -d "/etc/cron.d"
15246 with_crond_dir="/etc/cron.d"
15248 have_crond="no"; with_crond_dir=""
15252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for system crontab dir" >&5
15253 printf %s "checking for system crontab dir... " >&6; }
15254 crond_dir="${with_crond_dir}"
15255 if test -n "${crond_dir}"
15258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${crond_dir}" >&5
15259 printf "%s\n" "${crond_dir}" >&6; }
15264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15265 printf "%s\n" "no" >&6; }
15272 have_crond="disabled"
15279 # Check whether --with-systemd_unit_dir was given.
15280 if test ${with_systemd_unit_dir+y}
15282 withval=$with_systemd_unit_dir;
15284 with_systemd_unit_dir=yes
15287 if test "x${with_systemd_unit_dir}" != "xno"
15290 if test "x${with_systemd_unit_dir}" = "xyes"
15295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for systemd" >&5
15296 printf %s "checking for systemd... " >&6; }
15298 if test -n "$systemd_CFLAGS"; then
15299 pkg_cv_systemd_CFLAGS="$systemd_CFLAGS"
15300 elif test -n "$PKG_CONFIG"; then
15301 if test -n "$PKG_CONFIG" && \
15302 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"systemd\""; } >&5
15303 ($PKG_CONFIG --exists --print-errors "systemd") 2>&5
15305 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15306 test $ac_status = 0; }; then
15307 pkg_cv_systemd_CFLAGS=`$PKG_CONFIG --cflags "systemd" 2>/dev/null`
15308 test "x$?" != "x0" && pkg_failed=yes
15315 if test -n "$systemd_LIBS"; then
15316 pkg_cv_systemd_LIBS="$systemd_LIBS"
15317 elif test -n "$PKG_CONFIG"; then
15318 if test -n "$PKG_CONFIG" && \
15319 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"systemd\""; } >&5
15320 ($PKG_CONFIG --exists --print-errors "systemd") 2>&5
15322 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15323 test $ac_status = 0; }; then
15324 pkg_cv_systemd_LIBS=`$PKG_CONFIG --libs "systemd" 2>/dev/null`
15325 test "x$?" != "x0" && pkg_failed=yes
15335 if test $pkg_failed = yes; then
15336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15337 printf "%s\n" "no" >&6; }
15339 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15340 _pkg_short_errors_supported=yes
15342 _pkg_short_errors_supported=no
15344 if test $_pkg_short_errors_supported = yes; then
15345 systemd_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "systemd" 2>&1`
15347 systemd_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "systemd" 2>&1`
15349 # Put the nasty error message in config.log where it belongs
15350 echo "$systemd_PKG_ERRORS" >&5
15353 with_systemd_unit_dir=""
15355 elif test $pkg_failed = untried; then
15356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15357 printf "%s\n" "no" >&6; }
15359 with_systemd_unit_dir=""
15362 systemd_CFLAGS=$pkg_cv_systemd_CFLAGS
15363 systemd_LIBS=$pkg_cv_systemd_LIBS
15364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15365 printf "%s\n" "yes" >&6; }
15367 with_systemd_unit_dir="$($PKG_CONFIG --variable=systemdsystemunitdir systemd)"
15373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for systemd system unit dir" >&5
15374 printf %s "checking for systemd system unit dir... " >&6; }
15375 systemd_system_unit_dir="${with_systemd_unit_dir}"
15376 if test -n "${systemd_system_unit_dir}"
15379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${systemd_system_unit_dir}" >&5
15380 printf "%s\n" "${systemd_system_unit_dir}" >&6; }
15385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15386 printf "%s\n" "no" >&6; }
15393 have_systemd="disabled"
15401 OS_IO_FILE=windows_io
15408 test -d lib || mkdir lib
15409 test -d include || mkdir include
15410 test -d include/linux || mkdir include/linux
15411 test -d include/asm || mkdir include/asm
15412 if test -z "$UUID_CMT" ; then
15413 uuid_out_list="lib/uuid/Makefile lib/uuid/uuid.pc \
15414 lib/uuid/uuid_types.h"
15416 if test -z "$BLKID_CMT" ; then
15417 blkid_out_list="lib/blkid/Makefile lib/blkid/blkid.pc \
15418 lib/blkid/blkid_types.h"
15420 for i in MCONFIG Makefile \
15421 util/Makefile util/subst.conf util/gen-tarball util/install-symlink \
15422 lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \
15423 lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \
15424 $uuid_out_list $blkid_out_list lib/support/Makefile \
15425 lib/ss/ss.pc lib/et/com_err.pc lib/e2p/e2p.pc lib/ext2fs/ext2fs.pc \
15426 misc/Makefile ext2ed/Makefile e2fsck/Makefile \
15427 debugfs/Makefile tests/Makefile tests/progs/Makefile \
15428 tests/fuzz/Makefile resize/Makefile doc/Makefile \
15429 po/Makefile.in scrub/Makefile; do
15430 if test -d `dirname ${srcdir}/$i` ; then
15431 outlist="$outlist $i"
15434 ac_config_files="$ac_config_files $outlist"
15436 cat >confcache <<\_ACEOF
15437 # This file is a shell script that caches the results of configure
15438 # tests run on this system so they can be shared between configure
15439 # scripts and configure runs, see configure's option --config-cache.
15440 # It is not useful on other systems. If it contains results you don't
15441 # want to keep, you may remove or edit it.
15443 # config.status only pays attention to the cache file if you give it
15444 # the --recheck option to rerun configure.
15446 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15447 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15448 # following values.
15452 # The following way of writing the cache mishandles newlines in values,
15453 # but we know of no workaround that is simple, portable, and efficient.
15454 # So, we kill variables containing newlines.
15455 # Ultrix sh set writes to stderr and can't be redirected directly,
15456 # and sets the high bit in the cache file unless we assign to the vars.
15458 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15459 eval ac_val=\$$ac_var
15463 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15464 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15467 _ | IFS | as_nl) ;; #(
15468 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15469 *) { eval $ac_var=; unset $ac_var;} ;;
15475 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15476 *${as_nl}ac_space=\ *)
15477 # `set' does not quote correctly, so add quotes: double-quote
15478 # substitution turns \\\\ into \\, and sed turns \\ into \.
15481 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15484 # `set' quotes correctly as required by POSIX, so do not add quotes.
15485 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15494 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
15496 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15498 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15499 if test -w "$cache_file"; then
15500 if test "x$cache_file" != "x/dev/null"; then
15501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15502 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
15503 if test ! -f "$cache_file" || test -h "$cache_file"; then
15504 cat confcache >"$cache_file"
15506 case $cache_file in #(
15508 mv -f confcache "$cache_file"$$ &&
15509 mv -f "$cache_file"$$ "$cache_file" ;; #(
15511 mv -f confcache "$cache_file" ;;
15516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15517 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
15522 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15523 # Let make expand exec_prefix.
15524 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15526 DEFS=-DHAVE_CONFIG_H
15531 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15532 # 1. Remove the extension, and $U if already installed.
15533 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15534 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
15535 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15536 # will be set to the directory where LIBOBJS objects are built.
15537 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15538 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15540 LIBOBJS=$ac_libobjs
15542 LTLIBOBJS=$ac_ltlibobjs
15547 : "${CONFIG_STATUS=./config.status}"
15549 ac_clean_files_save=$ac_clean_files
15550 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15552 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
15554 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15556 # Generated by $as_me.
15557 # Run this file to recreate the current configuration.
15558 # Compiler output produced by configure, useful for debugging
15559 # configure, is in config.log if it exists.
15562 ac_cs_recheck=false
15565 SHELL=\${CONFIG_SHELL-$SHELL}
15568 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15569 ## -------------------- ##
15570 ## M4sh Initialization. ##
15571 ## -------------------- ##
15573 # Be more Bourne compatible
15574 DUALCASE=1; export DUALCASE # for MKS sh
15576 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
15580 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15581 # is contrary to our usage. Disable this feature.
15582 alias -g '${1+"$@"}'='"$@"'
15583 setopt NO_GLOB_SUBST
15585 case `(set -o) 2>/dev/null` in #(
15595 # Reset variables that may have inherited troublesome values from
15598 # IFS needs to be set, to space, tab, and newline, in precisely that order.
15599 # (If _AS_PATH_WALK were called with IFS unset, it would have the
15600 # side effect of setting IFS to empty, thus disabling word splitting.)
15601 # Quoting is to prevent editors from complaining about space-tab.
15611 # Ensure predictable behavior from utilities with locale-dependent output.
15617 # We cannot yet rely on "unset" to work, but we need these variables
15618 # to be unset--not just set to an empty or harmless value--now, to
15619 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
15620 # also avoids known problems related to "unset" and subshell syntax
15621 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
15622 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
15623 do eval test \${$as_var+y} \
15624 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15627 # Ensure that fds 0, 1, and 2 are open.
15628 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
15629 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
15630 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
15632 # The user is always right.
15633 if ${PATH_SEPARATOR+false} :; then
15635 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15636 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15642 # Find who we are. Look in the path if we contain no directory separator.
15645 *[\\/]* ) as_myself=$0 ;;
15646 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15647 for as_dir in $PATH
15650 case $as_dir in #(((
15653 *) as_dir=$as_dir/ ;;
15655 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
15661 # We did not find ourselves, most probably we were run as `sh COMMAND'
15662 # in which case we are not to be found in the path.
15663 if test "x$as_myself" = x; then
15666 if test ! -f "$as_myself"; then
15667 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15673 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15674 # ----------------------------------------
15675 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15676 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15677 # script with STATUS, using 1 if that was 0.
15680 as_status=$1; test $as_status -eq 0 && as_status=1
15682 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15683 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15685 printf "%s\n" "$as_me: error: $2" >&2
15686 as_fn_exit $as_status
15691 # as_fn_set_status STATUS
15692 # -----------------------
15693 # Set $? to STATUS, without forking.
15694 as_fn_set_status ()
15697 } # as_fn_set_status
15699 # as_fn_exit STATUS
15700 # -----------------
15701 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15705 as_fn_set_status $1
15711 # Portably unset VAR.
15714 { eval $1=; unset $1;}
15716 as_unset=as_fn_unset
15718 # as_fn_append VAR VALUE
15719 # ----------------------
15720 # Append the text in VALUE to the end of the definition contained in VAR. Take
15721 # advantage of any shell optimizations that allow amortized linear growth over
15722 # repeated appends, instead of the typical quadratic growth present in naive
15724 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
15726 eval 'as_fn_append ()
15737 # as_fn_arith ARG...
15738 # ------------------
15739 # Perform arithmetic evaluation on the ARGs, and store the result in the
15740 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15741 # must be portable across $(()) and expr.
15742 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
15744 eval 'as_fn_arith ()
15751 as_val=`expr "$@" || test $? -eq 1`
15756 if expr a : '\(a\)' >/dev/null 2>&1 &&
15757 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15763 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15764 as_basename=basename
15769 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15775 as_me=`$as_basename -- "$0" ||
15776 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15777 X"$0" : 'X\(//\)$' \| \
15778 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15779 printf "%s\n" X/"$0" |
15780 sed '/^.*\/\([^/][^/]*\)\/*$/{
15794 # Avoid depending upon Character Ranges.
15795 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15796 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15797 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15798 as_cr_digits='0123456789'
15799 as_cr_alnum=$as_cr_Letters$as_cr_digits
15802 # Determine whether it's possible to make 'echo' print without a newline.
15803 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
15804 # for compatibility with existing Makefiles.
15805 ECHO_C= ECHO_N= ECHO_T=
15806 case `echo -n x` in #(((((
15808 case `echo 'xy\c'` in
15809 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15811 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15818 # For backward compatibility with old third-party macros, we provide
15819 # the shell variables $as_echo and $as_echo_n. New code should use
15820 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
15821 as_echo='printf %s\n'
15822 as_echo_n='printf %s'
15824 rm -f conf$$ conf$$.exe conf$$.file
15825 if test -d conf$$.dir; then
15826 rm -f conf$$.dir/conf$$.file
15829 mkdir conf$$.dir 2>/dev/null
15831 if (echo >conf$$.file) 2>/dev/null; then
15832 if ln -s conf$$.file conf$$ 2>/dev/null; then
15834 # ... but there are two gotchas:
15835 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15836 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15837 # In both cases, we have to default to `cp -pR'.
15838 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15840 elif ln conf$$.file conf$$ 2>/dev/null; then
15848 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15849 rmdir conf$$.dir 2>/dev/null
15854 # Create "$as_dir" as a directory, including parents if necessary.
15859 -*) as_dir=./$as_dir;;
15861 test -d "$as_dir" || eval $as_mkdir_p || {
15865 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15866 *) as_qdir=$as_dir;;
15868 as_dirs="'$as_qdir' $as_dirs"
15869 as_dir=`$as_dirname -- "$as_dir" ||
15870 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15871 X"$as_dir" : 'X\(//\)[^/]' \| \
15872 X"$as_dir" : 'X\(//\)$' \| \
15873 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15874 printf "%s\n" X"$as_dir" |
15875 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15879 /^X\(\/\/\)[^/].*/{
15892 test -d "$as_dir" && break
15894 test -z "$as_dirs" || eval "mkdir $as_dirs"
15895 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15899 if mkdir -p . 2>/dev/null; then
15900 as_mkdir_p='mkdir -p "$as_dir"'
15902 test -d ./-p && rmdir ./-p
15907 # as_fn_executable_p FILE
15908 # -----------------------
15909 # Test if FILE is an executable regular file.
15910 as_fn_executable_p ()
15912 test -f "$1" && test -x "$1"
15913 } # as_fn_executable_p
15914 as_test_x='test -x'
15915 as_executable_p=as_fn_executable_p
15917 # Sed expression to map a string onto a valid CPP name.
15918 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15920 # Sed expression to map a string onto a valid variable name.
15921 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15925 ## ----------------------------------- ##
15926 ## Main body of $CONFIG_STATUS script. ##
15927 ## ----------------------------------- ##
15929 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15931 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15932 # Save the log message, to keep $0 and so on meaningful, and to
15933 # report actual input values of CONFIG_FILES etc. instead of their
15934 # values after options handling.
15936 This file was extended by $as_me, which was
15937 generated by GNU Autoconf 2.71. Invocation command line was
15939 CONFIG_FILES = $CONFIG_FILES
15940 CONFIG_HEADERS = $CONFIG_HEADERS
15941 CONFIG_LINKS = $CONFIG_LINKS
15942 CONFIG_COMMANDS = $CONFIG_COMMANDS
15945 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15950 case $ac_config_files in *"
15951 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15954 case $ac_config_headers in *"
15955 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15959 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15960 # Files that config.status was made for.
15961 config_files="$ac_config_files"
15962 config_headers="$ac_config_headers"
15963 config_commands="$ac_config_commands"
15967 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15969 \`$as_me' instantiates files and other configuration actions
15970 from templates according to the current configuration. Unless the files
15971 and actions are specified as TAGs, all are instantiated by default.
15973 Usage: $0 [OPTION]... [TAG]...
15975 -h, --help print this help, then exit
15976 -V, --version print version number and configuration settings, then exit
15977 --config print configuration, then exit
15978 -q, --quiet, --silent
15979 do not print progress messages
15980 -d, --debug don't remove temporary files
15981 --recheck update $as_me by reconfiguring in the same conditions
15982 --file=FILE[:TEMPLATE]
15983 instantiate the configuration file FILE
15984 --header=FILE[:TEMPLATE]
15985 instantiate the configuration header FILE
15987 Configuration files:
15990 Configuration headers:
15993 Configuration commands:
15996 Report bugs to the package provider."
15999 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
16000 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
16001 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16002 ac_cs_config='$ac_cs_config_escaped'
16005 configured by $0, generated by GNU Autoconf 2.71,
16006 with options \\"\$ac_cs_config\\"
16008 Copyright (C) 2021 Free Software Foundation, Inc.
16009 This config.status script is free software; the Free Software Foundation
16010 gives unlimited permission to copy, distribute and modify it."
16017 test -n "\$AWK" || AWK=awk
16020 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16021 # The default lists apply if the user does not specify any file.
16027 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16028 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16032 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16044 # Handling of the options.
16045 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16047 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16048 printf "%s\n" "$ac_cs_version"; exit ;;
16049 --config | --confi | --conf | --con | --co | --c )
16050 printf "%s\n" "$ac_cs_config"; exit ;;
16051 --debug | --debu | --deb | --de | --d | -d )
16053 --file | --fil | --fi | --f )
16056 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16057 '') as_fn_error $? "missing file argument" ;;
16059 as_fn_append CONFIG_FILES " '$ac_optarg'"
16060 ac_need_defaults=false;;
16061 --header | --heade | --head | --hea )
16064 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16066 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16067 ac_need_defaults=false;;
16069 # Conflict between --help and --header
16070 as_fn_error $? "ambiguous option: \`$1'
16071 Try \`$0 --help' for more information.";;
16072 --help | --hel | -h )
16073 printf "%s\n" "$ac_cs_usage"; exit ;;
16074 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16075 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16078 # This is an error.
16079 -*) as_fn_error $? "unrecognized option: \`$1'
16080 Try \`$0 --help' for more information." ;;
16082 *) as_fn_append ac_config_targets " $1"
16083 ac_need_defaults=false ;;
16089 ac_configure_extra_args=
16091 if $ac_cs_silent; then
16093 ac_configure_extra_args="$ac_configure_extra_args --silent"
16097 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16098 if \$ac_cs_recheck; then
16099 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16101 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
16102 CONFIG_SHELL='$SHELL'
16103 export CONFIG_SHELL
16108 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16112 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16113 ## Running $as_me. ##
16115 printf "%s\n" "$ac_log"
16119 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16123 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
16124 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS.
16125 OBSOLETE_ALL_LINGUAS="$ALL_LINGUAS"
16126 # Capture the value of LINGUAS because we need it to compute CATALOGS.
16127 LINGUAS="${LINGUAS-%UNSET%}"
16132 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16134 # Handling of arguments.
16135 for ac_config_target in $ac_config_targets
16137 case $ac_config_target in
16138 "lib/config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/config.h" ;;
16139 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
16140 "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;;
16142 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16147 # If the user did not use the arguments to specify the items to instantiate,
16148 # then the envvar interface is used. Set only those that are not.
16149 # We use the long form for the default assignment because of an extremely
16150 # bizarre bug on SunOS 4.1.3.
16151 if $ac_need_defaults; then
16152 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
16153 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
16154 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
16157 # Have a temporary directory for convenience. Make it in the build tree
16158 # simply because there is no reason against having it here, and in addition,
16159 # creating and moving files from /tmp can sometimes cause problems.
16160 # Hook for its removal unless debugging.
16161 # Note that there is a small window in which the directory will not be cleaned:
16162 # after its creation but before its name has been assigned to `$tmp'.
16166 trap 'exit_status=$?
16167 : "${ac_tmp:=$tmp}"
16168 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16170 trap 'as_fn_exit 1' 1 2 13 15
16172 # Create a (secure) tmp directory for tmp files.
16175 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16179 tmp=./conf$$-$RANDOM
16180 (umask 077 && mkdir "$tmp")
16181 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16184 # Set up the scripts for CONFIG_FILES section.
16185 # No need to generate them if there are no CONFIG_FILES.
16186 # This happens for instance with `./config.status config.h'.
16187 if test -n "$CONFIG_FILES"; then
16189 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
16190 ac_cs_awk_getline=:
16191 ac_cs_awk_pipe_init=
16192 ac_cs_awk_read_file='
16193 while ((getline aline < (F[key])) > 0)
16196 ac_cs_awk_pipe_fini=
16198 ac_cs_awk_getline=false
16199 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
16200 ac_cs_awk_read_file='
16202 print "cat " F[key] " &&"
16203 '$ac_cs_awk_pipe_init
16204 # The final `:' finishes the AND list.
16205 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
16207 ac_cr=`echo X | tr X '\015'`
16208 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16209 # But we know of no other shell where ac_cr would be empty at this
16210 # point, so we can use a bashism as a fallback.
16211 if test "x$ac_cr" = x; then
16212 eval ac_cr=\$\'\\r\'
16214 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16215 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16218 ac_cs_awk_cr=$ac_cr
16221 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16224 # Create commands to substitute file output variables.
16226 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
16227 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
16228 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
16231 } >conf$$files.sh &&
16232 . ./conf$$files.sh ||
16233 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16234 rm -f conf$$files.sh
16237 echo "cat >conf$$subs.awk <<_ACEOF" &&
16238 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16240 } >conf$$subs.sh ||
16241 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16242 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16244 for ac_last_try in false false false false false :; do
16245 . ./conf$$subs.sh ||
16246 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16248 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16249 if test $ac_delim_n = $ac_delim_num; then
16251 elif $ac_last_try; then
16252 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16254 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16257 rm -f conf$$subs.sh
16259 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16260 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16264 s/^/S["/; s/!.*/"]=/
16274 s/\(.\{148\}\)..*/\1/
16276 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16281 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16288 s/\(.\{148\}\)..*/\1/
16290 s/["\\]/\\&/g; s/^/"/; s/$/"/
16294 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16299 ' <conf$$subs.awk | sed '
16304 ' >>$CONFIG_STATUS || ac_write_fail=1
16305 rm -f conf$$subs.awk
16306 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16308 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16309 for (key in S) S_is_set[key] = 1
16311 \$ac_cs_awk_pipe_init
16315 nfields = split(line, field, "@")
16317 len = length(field[1])
16318 for (i = 2; i < nfields; i++) {
16320 keylen = length(key)
16321 if (S_is_set[key]) {
16323 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16324 len += length(value) + length(field[++i])
16329 if (nfields == 3 && !substed) {
16331 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
16332 \$ac_cs_awk_read_file
16338 \$ac_cs_awk_pipe_fini
16341 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16342 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16343 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16346 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16347 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16350 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16351 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16352 # trailing colons and then remove the whole line if VPATH becomes empty
16353 # (actually we leave an empty line to preserve line numbers).
16354 if test "x$srcdir" = x.; then
16355 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16373 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16374 fi # test -n "$CONFIG_FILES"
16376 # Set up the scripts for CONFIG_HEADERS section.
16377 # No need to generate them if there are no CONFIG_HEADERS.
16378 # This happens for instance with `./config.status Makefile'.
16379 if test -n "$CONFIG_HEADERS"; then
16380 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16384 # Transform confdefs.h into an awk script `defines.awk', embedded as
16385 # here-document in config.status, that substitutes the proper values into
16386 # config.h.in to produce config.h.
16388 # Create a delimiter string that does not exist in confdefs.h, to ease
16389 # handling of long lines.
16391 for ac_last_try in false false :; do
16392 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16393 if test -z "$ac_tt"; then
16395 elif $ac_last_try; then
16396 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16398 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16402 # For the awk script, D is an array of macro values keyed by name,
16403 # likewise P contains macro parameters if any. Preserve backslash
16404 # newline sequences.
16406 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16408 s/.\{148\}/&'"$ac_delim"'/g
16411 s/^[ ]*#[ ]*define[ ][ ]*/ /
16418 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16420 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16424 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16425 D["\1"]=" \3\\\\\\n"\\/p
16427 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16432 s/.\{148\}/&'"$ac_delim"'/g
16437 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16440 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16442 ' <confdefs.h | sed '
16443 s/'"$ac_delim"'/"\\\
16444 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16446 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16447 for (key in D) D_is_set[key] = 1
16450 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16452 split(line, arg, " ")
16453 if (arg[1] == "#") {
16457 defundef = substr(arg[1], 2)
16460 split(mac1, mac2, "(") #)
16462 prefix = substr(line, 1, index(line, defundef) - 1)
16463 if (D_is_set[macro]) {
16464 # Preserve the white space surrounding the "#".
16465 print prefix "define", macro P[macro] D[macro]
16468 # Replace #undef with comments. This is necessary, for example,
16469 # in the case of _POSIX_SOURCE, which is predefined and required
16470 # on some systems where configure will not decide to define it.
16471 if (defundef == "undef") {
16472 print "/*", prefix defundef, macro, "*/"
16480 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16481 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16482 fi # test -n "$CONFIG_HEADERS"
16485 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16490 :[FHLC]) ac_mode=$ac_tag; continue;;
16492 case $ac_mode$ac_tag in
16494 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16495 :[FH]-) ac_tag=-:-;;
16496 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16513 -) ac_f="$ac_tmp/stdin";;
16514 *) # Look for the file first in the build tree, then in the source tree
16515 # (if the path is not absolute). The absolute path cannot be DOS-style,
16516 # because $ac_f cannot contain `:'.
16520 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16522 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16524 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16525 as_fn_append ac_file_inputs " '$ac_f'"
16528 # Let's still pretend it is `configure' which instantiates (i.e., don't
16529 # use $as_me), people would be surprised to read:
16530 # /* config.h. Generated by config.status. */
16531 configure_input='Generated from '`
16532 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16534 if test x"$ac_file" != x-; then
16535 configure_input="$ac_file. $configure_input"
16536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16537 printf "%s\n" "$as_me: creating $ac_file" >&6;}
16539 # Neutralize special characters interpreted by sed in replacement strings.
16540 case $configure_input in #(
16541 *\&* | *\|* | *\\* )
16542 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
16543 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16544 *) ac_sed_conf_input=$configure_input;;
16548 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16549 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16554 ac_dir=`$as_dirname -- "$ac_file" ||
16555 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16556 X"$ac_file" : 'X\(//\)[^/]' \| \
16557 X"$ac_file" : 'X\(//\)$' \| \
16558 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16559 printf "%s\n" X"$ac_file" |
16560 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16564 /^X\(\/\/\)[^/].*/{
16577 as_dir="$ac_dir"; as_fn_mkdir_p
16581 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16583 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
16584 # A ".." for each directory in $ac_dir_suffix.
16585 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16586 case $ac_top_builddir_sub in
16587 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16588 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16591 ac_abs_top_builddir=$ac_pwd
16592 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16593 # for backward compatibility:
16594 ac_top_builddir=$ac_top_build_prefix
16597 .) # We are building in place.
16599 ac_top_srcdir=$ac_top_builddir_sub
16600 ac_abs_top_srcdir=$ac_pwd ;;
16601 [\\/]* | ?:[\\/]* ) # Absolute name.
16602 ac_srcdir=$srcdir$ac_dir_suffix;
16603 ac_top_srcdir=$srcdir
16604 ac_abs_top_srcdir=$srcdir ;;
16605 *) # Relative name.
16606 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16607 ac_top_srcdir=$ac_top_build_prefix$srcdir
16608 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16610 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16620 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16621 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16623 ac_MKDIR_P=$MKDIR_P
16625 [\\/$]* | ?:[\\/]* ) ;;
16626 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16630 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16631 # If the template does not know about datarootdir, expand it.
16632 # FIXME: This hack should be removed a few years after 2.60.
16633 ac_datarootdir_hack=; ac_datarootdir_seen=
16644 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16645 *datarootdir*) ac_datarootdir_seen=yes;;
16646 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16648 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16650 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16651 ac_datarootdir_hack='
16652 s&@datadir@&$datadir&g
16653 s&@docdir@&$docdir&g
16654 s&@infodir@&$infodir&g
16655 s&@localedir@&$localedir&g
16656 s&@mandir@&$mandir&g
16657 s&\\\${datarootdir}&$datarootdir&g' ;;
16661 # Neutralize VPATH when `$srcdir' = `.'.
16662 # Shell code in configure.ac might set extrasub.
16663 # FIXME: do we really want to maintain this feature?
16664 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16665 ac_sed_extra="$ac_vpsub
16668 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16670 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16671 s|@configure_input@|$ac_sed_conf_input|;t t
16672 s&@top_builddir@&$ac_top_builddir_sub&;t t
16673 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16674 s&@srcdir@&$ac_srcdir&;t t
16675 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16676 s&@top_srcdir@&$ac_top_srcdir&;t t
16677 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16678 s&@builddir@&$ac_builddir&;t t
16679 s&@abs_builddir@&$ac_abs_builddir&;t t
16680 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16681 s&@INSTALL@&$ac_INSTALL&;t t
16682 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16683 $ac_datarootdir_hack
16685 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
16686 if $ac_cs_awk_getline; then
16687 $AWK -f "$ac_tmp/subs.awk"
16689 $AWK -f "$ac_tmp/subs.awk" | $SHELL
16691 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16693 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16694 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16695 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16696 "$ac_tmp/out"`; test -z "$ac_out"; } &&
16697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16698 which seems to be undefined. Please make sure it is defined" >&5
16699 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16700 which seems to be undefined. Please make sure it is defined" >&2;}
16702 rm -f "$ac_tmp/stdin"
16704 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16705 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16707 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16713 if test x"$ac_file" != x-; then
16715 printf "%s\n" "/* $configure_input */" >&1 \
16716 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16717 } >"$ac_tmp/config.h" \
16718 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16719 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16721 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
16724 mv "$ac_tmp/config.h" "$ac_file" \
16725 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16728 printf "%s\n" "/* $configure_input */" >&1 \
16729 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16730 || as_fn_error $? "could not create -" "$LINENO" 5
16734 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16735 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
16740 case $ac_file$ac_mode in
16741 "po-directories":C)
16742 for ac_file in $CONFIG_FILES; do
16743 # Support "outfile[:infile[:infile...]]"
16745 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16747 # PO directories have a Makefile.in generated from Makefile.in.in.
16748 case "$ac_file" in */Makefile.in)
16749 # Adjust a relative srcdir.
16750 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
16751 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
16752 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
16753 # In autoconf-2.13 it is called $ac_given_srcdir.
16754 # In autoconf-2.50 it is called $srcdir.
16755 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
16756 case "$ac_given_srcdir" in
16757 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
16758 /*) top_srcdir="$ac_given_srcdir" ;;
16759 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
16761 # Treat a directory as a PO directory if and only if it has a
16762 # POTFILES.in file. This allows packages to have multiple PO
16763 # directories under different names or in different locations.
16764 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
16765 rm -f "$ac_dir/POTFILES"
16766 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
16767 gt_tab=`printf '\t'`
16768 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"
16769 POMAKEFILEDEPS="POTFILES.in"
16770 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
16771 # on $ac_dir but don't depend on user-specified configuration
16773 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
16774 # The LINGUAS file contains the set of available languages.
16775 if test -n "$OBSOLETE_ALL_LINGUAS"; then
16776 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
16778 ALL_LINGUAS=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
16779 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
16781 # The set of available languages was given in configure.in.
16782 ALL_LINGUAS=$OBSOLETE_ALL_LINGUAS
16785 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
16786 # Compute UPDATEPOFILES
16787 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
16788 # Compute DUMMYPOFILES
16789 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
16791 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
16792 case "$ac_given_srcdir" in
16794 *) srcdirpre='$(srcdir)/' ;;
16800 for lang in $ALL_LINGUAS; do
16801 POFILES="$POFILES $srcdirpre$lang.po"
16802 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
16803 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
16804 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
16806 # CATALOGS depends on both $ac_dir and the user's LINGUAS
16807 # environment variable.
16809 if test -n "$ALL_LINGUAS"; then
16810 for presentlang in $ALL_LINGUAS; do
16812 if test "%UNSET%" != "$LINGUAS"; then
16813 desiredlanguages="$LINGUAS"
16815 desiredlanguages="$ALL_LINGUAS"
16817 for desiredlang in $desiredlanguages; do
16818 # Use the presentlang catalog if desiredlang is
16819 # a. equal to presentlang, or
16820 # b. a variant of presentlang (because in this case,
16821 # presentlang can be used as a fallback for messages
16822 # which are not translated in the desiredlang catalog).
16823 case "$desiredlang" in
16824 "$presentlang"*) useit=yes;;
16827 if test $useit = yes; then
16828 INST_LINGUAS="$INST_LINGUAS $presentlang"
16833 if test -n "$INST_LINGUAS"; then
16834 for lang in $INST_LINGUAS; do
16835 CATALOGS="$CATALOGS $lang.gmo"
16838 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
16839 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"
16840 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
16841 if test -f "$f"; then
16843 *.orig | *.bak | *~) ;;
16844 *) cat "$f" >> "$ac_dir/Makefile" ;;
16859 ac_clean_files=$ac_clean_files_save
16861 test $ac_write_fail = 0 ||
16862 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16865 # configure is writing to config.log, and then calls config.status.
16866 # config.status does its own redirection, appending to config.log.
16867 # Unfortunately, on DOS this fails, as config.log is still kept open
16868 # by configure, so config.status won't be able to write to it; its
16869 # output is simply discarded. So we exec the FD to /dev/null,
16870 # effectively closing config.log, so it can be properly (re)opened and
16871 # appended to by config.status. When coming back to configure, we
16872 # need to make the FD available again.
16873 if test "$no_create" != yes; then
16875 ac_config_status_args=
16876 test "$silent" = yes &&
16877 ac_config_status_args="$ac_config_status_args --quiet"
16879 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16881 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16882 # would make configure fail if this is the last instruction.
16883 $ac_cs_success || as_fn_exit 1
16885 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16887 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16890 if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi