2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in #(
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 as_echo_n='sh -c $as_echo_n_body as_echo'
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
89 # Find who we are. Look in the path if we contain no directory separator.
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
147 *v*x* | *x*v* ) as_opts=-vx ;;
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 case \`(set -o) 2>/dev/null\` in #(
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1"
200 if (eval "$as_required") 2>/dev/null; then :
205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
210 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213 test -z "$as_dir" && as_dir=.
217 for as_base in sh bash ksh sh5; do
218 # Try only shells that exist, to save several forks.
219 as_shell=$as_dir/$as_base
220 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222 CONFIG_SHELL=$as_shell as_have_required=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
231 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233 CONFIG_SHELL=$SHELL as_have_required=yes
238 if test "x$CONFIG_SHELL" != x; then :
240 # We cannot yet assume a decent shell, so we have to provide a
241 # neutralization value for shells without unset; and this also
242 # works around shells that cannot unset nonexistent variables.
243 # Preserve -v and -x to the replacement shell.
246 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
248 *v*x* | *x*v* ) as_opts=-vx ;;
253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254 # Admittedly, this is quite paranoid, since all the known shells bail
255 # out after a failed `exec'.
256 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
260 if test x$as_have_required = xno; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x${ZSH_VERSION+set} = xset ; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268 $0: including any error possibly output before this
269 $0: message. Then install a modern shell, or manually run
270 $0: the script under such a shell if you do have one."
276 SHELL=${CONFIG_SHELL-/bin/sh}
278 # Unset more variables known to interfere with behavior of common tools.
279 CLICOLOR_FORCE= GREP_OPTIONS=
280 unset CLICOLOR_FORCE GREP_OPTIONS
282 ## --------------------- ##
283 ## M4sh Shell Functions. ##
284 ## --------------------- ##
287 # Portably unset VAR.
290 { eval $1=; unset $1;}
294 # as_fn_set_status STATUS
295 # -----------------------
296 # Set $? to STATUS, without forking.
304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
314 # Create "$as_dir" as a directory, including parents if necessary.
319 -*) as_dir=./$as_dir;;
321 test -d "$as_dir" || eval $as_mkdir_p || {
325 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
328 as_dirs="'$as_qdir' $as_dirs"
329 as_dir=`$as_dirname -- "$as_dir" ||
330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334 $as_echo X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
352 test -d "$as_dir" && break
354 test -z "$as_dirs" || eval "mkdir $as_dirs"
355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
360 # as_fn_executable_p FILE
361 # -----------------------
362 # Test if FILE is an executable regular file.
363 as_fn_executable_p ()
365 test -f "$1" && test -x "$1"
366 } # as_fn_executable_p
367 # as_fn_append VAR VALUE
368 # ----------------------
369 # Append the text in VALUE to the end of the definition contained in VAR. Take
370 # advantage of any shell optimizations that allow amortized linear growth over
371 # repeated appends, instead of the typical quadratic growth present in naive
373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374 eval 'as_fn_append ()
387 # Perform arithmetic evaluation on the ARGs, and store the result in the
388 # global $as_val. Take advantage of shells that can avoid forks. The arguments
389 # must be portable across $(()) and expr.
390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
398 as_val=`expr "$@" || test $? -eq 1`
403 # as_fn_error STATUS ERROR [LINENO LOG_FD]
404 # ----------------------------------------
405 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407 # script with STATUS, using 1 if that was 0.
410 as_status=$1; test $as_status -eq 0 && as_status=1
412 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
415 $as_echo "$as_me: error: $2" >&2
416 as_fn_exit $as_status
419 if expr a : '\(a\)' >/dev/null 2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001; then
426 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
432 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
438 as_me=`$as_basename -- "$0" ||
439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
443 sed '/^.*\/\([^/][^/]*\)\/*$/{
457 # Avoid depending upon Character Ranges.
458 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461 as_cr_digits='0123456789'
462 as_cr_alnum=$as_cr_Letters$as_cr_digits
465 as_lineno_1=$LINENO as_lineno_1a=$LINENO
466 as_lineno_2=$LINENO as_lineno_2a=$LINENO
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
485 chmod +x "$as_me.lineno" ||
486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec=no; export _as_can_reexec
492 # Don't try to exec as it changes $[0], causing all sort of problems
493 # (the dirname of $[0] is not the place where we might find the
494 # original and so on. Autoconf is especially sensitive to this).
496 # Exit status is that of the last command.
500 ECHO_C= ECHO_N= ECHO_T=
501 case `echo -n x` in #(((((
503 case `echo 'xy\c'` in
504 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
513 rm -f conf$$ conf$$.exe conf$$.file
514 if test -d conf$$.dir; then
515 rm -f conf$$.dir/conf$$.file
518 mkdir conf$$.dir 2>/dev/null
520 if (echo >conf$$.file) 2>/dev/null; then
521 if ln -s conf$$.file conf$$ 2>/dev/null; then
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526 # In both cases, we have to default to `cp -pR'.
527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
529 elif ln conf$$.file conf$$ 2>/dev/null; then
537 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538 rmdir conf$$.dir 2>/dev/null
540 if mkdir -p . 2>/dev/null; then
541 as_mkdir_p='mkdir -p "$as_dir"'
543 test -d ./-p && rmdir ./-p
548 as_executable_p=as_fn_executable_p
550 # Sed expression to map a string onto a valid CPP name.
551 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
553 # Sed expression to map a string onto a valid variable name.
554 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
557 test -n "$DJDIR" || exec 7<&0 </dev/null
561 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562 # so uname gets run too.
563 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
568 ac_default_prefix=/usr/local
570 ac_config_libobj_dir=.
577 # Identity of this package.
585 ac_unique_file="version.h"
586 # Factoring default headers for most tests.
587 ac_includes_default="\
589 #ifdef HAVE_SYS_TYPES_H
590 # include <sys/types.h>
592 #ifdef HAVE_SYS_STAT_H
593 # include <sys/stat.h>
599 # ifdef HAVE_STDLIB_H
604 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
609 #ifdef HAVE_STRINGS_H
610 # include <strings.h>
612 #ifdef HAVE_INTTYPES_H
613 # include <inttypes.h>
624 gl_use_threads_default=
626 ac_subst_vars='LTLIBOBJS
628 systemd_system_unit_dir
703 INTL_LIBTOOL_SUFFIX_PREFIX
710 BUILD_INCLUDED_LIBINTL
720 INTL_DEFAULT_VERBOSITY
739 XGETTEXT_EXTRA_OPTIONS
747 GETTEXT_MACRO_VERSION
856 program_transform_name
867 ac_subst_files='MCONFIG
873 PUBLIC_CONFIG_HEADER'
875 enable_option_checking
881 enable_maintainer_mode
882 enable_symlink_install
883 enable_relative_symlinks
884 enable_symlink_relative_symlinks
886 enable_verbose_makecmds
903 enable_e2initrd_helper
909 enable_bmap_stats_ops
916 with_included_gettext
926 with_systemd_unit_dir
928 ac_precious_vars='build_alias
946 # Initialize some variables set by options.
948 ac_init_version=false
949 ac_unrecognized_opts=
951 # The variables have the same names as the options, with
952 # dashes changed to underlines.
960 program_transform_name=s,x,x,
968 # Installation directory options.
969 # These are left unexpanded so users can "make install exec_prefix=/foo"
970 # and all the variables that are supposed to be based on exec_prefix
971 # by default will actually change.
972 # Use braces instead of parens because sh, perl, etc. also accept them.
973 # (The list follows the same order as the GNU Coding Standards.)
974 bindir='${exec_prefix}/bin'
975 sbindir='${exec_prefix}/sbin'
976 libexecdir='${exec_prefix}/libexec'
977 datarootdir='${prefix}/share'
978 datadir='${datarootdir}'
979 sysconfdir='${prefix}/etc'
980 sharedstatedir='${prefix}/com'
981 localstatedir='${prefix}/var'
982 runstatedir='${localstatedir}/run'
983 includedir='${prefix}/include'
984 oldincludedir='/usr/include'
985 docdir='${datarootdir}/doc/${PACKAGE}'
986 infodir='${datarootdir}/info'
991 libdir='${exec_prefix}/lib'
992 localedir='${datarootdir}/locale'
993 mandir='${datarootdir}/man'
999 # If the previous option needs an argument, assign it.
1000 if test -n "$ac_prev"; then
1001 eval $ac_prev=\$ac_option
1007 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1012 # Accept the important Cygnus configure options, so we can diagnose typos.
1014 case $ac_dashdash$ac_option in
1018 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1020 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1021 bindir=$ac_optarg ;;
1023 -build | --build | --buil | --bui | --bu)
1024 ac_prev=build_alias ;;
1025 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1026 build_alias=$ac_optarg ;;
1028 -cache-file | --cache-file | --cache-fil | --cache-fi \
1029 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1030 ac_prev=cache_file ;;
1031 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1032 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1033 cache_file=$ac_optarg ;;
1035 --config-cache | -C)
1036 cache_file=config.cache ;;
1038 -datadir | --datadir | --datadi | --datad)
1040 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1041 datadir=$ac_optarg ;;
1043 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1044 | --dataroo | --dataro | --datar)
1045 ac_prev=datarootdir ;;
1046 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1047 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1048 datarootdir=$ac_optarg ;;
1050 -disable-* | --disable-*)
1051 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1052 # Reject names that are not valid shell variable names.
1053 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1054 as_fn_error $? "invalid feature name: $ac_useropt"
1055 ac_useropt_orig=$ac_useropt
1056 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1057 case $ac_user_opts in
1059 "enable_$ac_useropt"
1061 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1062 ac_unrecognized_sep=', ';;
1064 eval enable_$ac_useropt=no ;;
1066 -docdir | --docdir | --docdi | --doc | --do)
1068 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1069 docdir=$ac_optarg ;;
1071 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1073 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1074 dvidir=$ac_optarg ;;
1076 -enable-* | --enable-*)
1077 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1078 # Reject names that are not valid shell variable names.
1079 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1080 as_fn_error $? "invalid feature name: $ac_useropt"
1081 ac_useropt_orig=$ac_useropt
1082 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1083 case $ac_user_opts in
1085 "enable_$ac_useropt"
1087 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1088 ac_unrecognized_sep=', ';;
1090 eval enable_$ac_useropt=\$ac_optarg ;;
1092 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1093 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1094 | --exec | --exe | --ex)
1095 ac_prev=exec_prefix ;;
1096 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1097 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1098 | --exec=* | --exe=* | --ex=*)
1099 exec_prefix=$ac_optarg ;;
1101 -gas | --gas | --ga | --g)
1102 # Obsolete; use --with-gas.
1105 -help | --help | --hel | --he | -h)
1106 ac_init_help=long ;;
1107 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1108 ac_init_help=recursive ;;
1109 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1110 ac_init_help=short ;;
1112 -host | --host | --hos | --ho)
1113 ac_prev=host_alias ;;
1114 -host=* | --host=* | --hos=* | --ho=*)
1115 host_alias=$ac_optarg ;;
1117 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1119 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1121 htmldir=$ac_optarg ;;
1123 -includedir | --includedir | --includedi | --included | --include \
1124 | --includ | --inclu | --incl | --inc)
1125 ac_prev=includedir ;;
1126 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1127 | --includ=* | --inclu=* | --incl=* | --inc=*)
1128 includedir=$ac_optarg ;;
1130 -infodir | --infodir | --infodi | --infod | --info | --inf)
1132 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1133 infodir=$ac_optarg ;;
1135 -libdir | --libdir | --libdi | --libd)
1137 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1138 libdir=$ac_optarg ;;
1140 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1141 | --libexe | --libex | --libe)
1142 ac_prev=libexecdir ;;
1143 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1144 | --libexe=* | --libex=* | --libe=*)
1145 libexecdir=$ac_optarg ;;
1147 -localedir | --localedir | --localedi | --localed | --locale)
1148 ac_prev=localedir ;;
1149 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1150 localedir=$ac_optarg ;;
1152 -localstatedir | --localstatedir | --localstatedi | --localstated \
1153 | --localstate | --localstat | --localsta | --localst | --locals)
1154 ac_prev=localstatedir ;;
1155 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1156 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1157 localstatedir=$ac_optarg ;;
1159 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1161 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1162 mandir=$ac_optarg ;;
1164 -nfp | --nfp | --nf)
1165 # Obsolete; use --without-fp.
1168 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1169 | --no-cr | --no-c | -n)
1172 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1173 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1176 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1177 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1178 | --oldin | --oldi | --old | --ol | --o)
1179 ac_prev=oldincludedir ;;
1180 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1181 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1182 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1183 oldincludedir=$ac_optarg ;;
1185 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1187 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1188 prefix=$ac_optarg ;;
1190 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1191 | --program-pre | --program-pr | --program-p)
1192 ac_prev=program_prefix ;;
1193 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1194 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1195 program_prefix=$ac_optarg ;;
1197 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1198 | --program-suf | --program-su | --program-s)
1199 ac_prev=program_suffix ;;
1200 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1201 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1202 program_suffix=$ac_optarg ;;
1204 -program-transform-name | --program-transform-name \
1205 | --program-transform-nam | --program-transform-na \
1206 | --program-transform-n | --program-transform- \
1207 | --program-transform | --program-transfor \
1208 | --program-transfo | --program-transf \
1209 | --program-trans | --program-tran \
1210 | --progr-tra | --program-tr | --program-t)
1211 ac_prev=program_transform_name ;;
1212 -program-transform-name=* | --program-transform-name=* \
1213 | --program-transform-nam=* | --program-transform-na=* \
1214 | --program-transform-n=* | --program-transform-=* \
1215 | --program-transform=* | --program-transfor=* \
1216 | --program-transfo=* | --program-transf=* \
1217 | --program-trans=* | --program-tran=* \
1218 | --progr-tra=* | --program-tr=* | --program-t=*)
1219 program_transform_name=$ac_optarg ;;
1221 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1223 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1224 pdfdir=$ac_optarg ;;
1226 -psdir | --psdir | --psdi | --psd | --ps)
1228 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1231 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1232 | -silent | --silent | --silen | --sile | --sil)
1235 -runstatedir | --runstatedir | --runstatedi | --runstated \
1236 | --runstate | --runstat | --runsta | --runst | --runs \
1237 | --run | --ru | --r)
1238 ac_prev=runstatedir ;;
1239 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1240 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1241 | --run=* | --ru=* | --r=*)
1242 runstatedir=$ac_optarg ;;
1244 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1246 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1248 sbindir=$ac_optarg ;;
1250 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1251 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1252 | --sharedst | --shareds | --shared | --share | --shar \
1254 ac_prev=sharedstatedir ;;
1255 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1256 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1257 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1259 sharedstatedir=$ac_optarg ;;
1261 -site | --site | --sit)
1263 -site=* | --site=* | --sit=*)
1266 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1268 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1269 srcdir=$ac_optarg ;;
1271 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1272 | --syscon | --sysco | --sysc | --sys | --sy)
1273 ac_prev=sysconfdir ;;
1274 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1275 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1276 sysconfdir=$ac_optarg ;;
1278 -target | --target | --targe | --targ | --tar | --ta | --t)
1279 ac_prev=target_alias ;;
1280 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1281 target_alias=$ac_optarg ;;
1283 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1286 -version | --version | --versio | --versi | --vers | -V)
1287 ac_init_version=: ;;
1290 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1291 # Reject names that are not valid shell variable names.
1292 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1293 as_fn_error $? "invalid package name: $ac_useropt"
1294 ac_useropt_orig=$ac_useropt
1295 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1296 case $ac_user_opts in
1300 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1301 ac_unrecognized_sep=', ';;
1303 eval with_$ac_useropt=\$ac_optarg ;;
1305 -without-* | --without-*)
1306 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1307 # Reject names that are not valid shell variable names.
1308 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1309 as_fn_error $? "invalid package name: $ac_useropt"
1310 ac_useropt_orig=$ac_useropt
1311 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1312 case $ac_user_opts in
1316 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1317 ac_unrecognized_sep=', ';;
1319 eval with_$ac_useropt=no ;;
1322 # Obsolete; use --with-x.
1325 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1326 | --x-incl | --x-inc | --x-in | --x-i)
1327 ac_prev=x_includes ;;
1328 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1329 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1330 x_includes=$ac_optarg ;;
1332 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1333 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1334 ac_prev=x_libraries ;;
1335 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1336 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1337 x_libraries=$ac_optarg ;;
1339 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1340 Try \`$0 --help' for more information"
1344 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1345 # Reject names that are not valid shell variable names.
1346 case $ac_envvar in #(
1347 '' | [0-9]* | *[!_$as_cr_alnum]* )
1348 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1350 eval $ac_envvar=\$ac_optarg
1351 export $ac_envvar ;;
1354 # FIXME: should be removed in autoconf 3.0.
1355 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1356 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1357 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1358 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1364 if test -n "$ac_prev"; then
1365 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1366 as_fn_error $? "missing argument to $ac_option"
1369 if test -n "$ac_unrecognized_opts"; then
1370 case $enable_option_checking in
1372 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1373 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1377 # Check all directory arguments for consistency.
1378 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1379 datadir sysconfdir sharedstatedir localstatedir includedir \
1380 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1381 libdir localedir mandir runstatedir
1383 eval ac_val=\$$ac_var
1384 # Remove trailing slashes.
1387 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1388 eval $ac_var=\$ac_val;;
1390 # Be sure to have absolute directory names.
1392 [\\/$]* | ?:[\\/]* ) continue;;
1393 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1395 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1398 # There might be people who depend on the old broken behavior: `$host'
1399 # used to hold the argument of --host etc.
1400 # FIXME: To remove some day.
1403 target=$target_alias
1405 # FIXME: To remove some day.
1406 if test "x$host_alias" != x; then
1407 if test "x$build_alias" = x; then
1408 cross_compiling=maybe
1409 elif test "x$build_alias" != "x$host_alias"; then
1415 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1417 test "$silent" = yes && exec 6>/dev/null
1420 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1421 ac_ls_di=`ls -di .` &&
1422 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1423 as_fn_error $? "working directory cannot be determined"
1424 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1425 as_fn_error $? "pwd does not report name of working directory"
1428 # Find the source files, if location was not specified.
1429 if test -z "$srcdir"; then
1430 ac_srcdir_defaulted=yes
1431 # Try the directory containing this script, then the parent directory.
1432 ac_confdir=`$as_dirname -- "$as_myself" ||
1433 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1434 X"$as_myself" : 'X\(//\)[^/]' \| \
1435 X"$as_myself" : 'X\(//\)$' \| \
1436 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1437 $as_echo X"$as_myself" |
1438 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1456 if test ! -r "$srcdir/$ac_unique_file"; then
1460 ac_srcdir_defaulted=no
1462 if test ! -r "$srcdir/$ac_unique_file"; then
1463 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1464 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1466 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1468 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1470 # When building in place, set srcdir=.
1471 if test "$ac_abs_confdir" = "$ac_pwd"; then
1474 # Remove unnecessary trailing slashes from srcdir.
1475 # Double slashes in file names in object file debugging info
1476 # mess up M-x gdb in Emacs.
1478 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1480 for ac_var in $ac_precious_vars; do
1481 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1482 eval ac_env_${ac_var}_value=\$${ac_var}
1483 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1484 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1488 # Report the --help message.
1490 if test "$ac_init_help" = "long"; then
1491 # Omit some internal or obsolete options to make the list less imposing.
1492 # This message is too long to be a string in the A/UX 3.1 sh.
1494 \`configure' configures this package to adapt to many kinds of systems.
1496 Usage: $0 [OPTION]... [VAR=VALUE]...
1498 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1499 VAR=VALUE. See below for descriptions of some of the useful variables.
1501 Defaults for the options are specified in brackets.
1504 -h, --help display this help and exit
1505 --help=short display options specific to this package
1506 --help=recursive display the short help of all the included packages
1507 -V, --version display version information and exit
1508 -q, --quiet, --silent do not print \`checking ...' messages
1509 --cache-file=FILE cache test results in FILE [disabled]
1510 -C, --config-cache alias for \`--cache-file=config.cache'
1511 -n, --no-create do not create output files
1512 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1514 Installation directories:
1515 --prefix=PREFIX install architecture-independent files in PREFIX
1516 [$ac_default_prefix]
1517 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1520 By default, \`make install' will install all the files in
1521 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1522 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1523 for instance \`--prefix=\$HOME'.
1525 For better control, use the options below.
1527 Fine tuning of the installation directories:
1528 --bindir=DIR user executables [EPREFIX/bin]
1529 --sbindir=DIR system admin executables [EPREFIX/sbin]
1530 --libexecdir=DIR program executables [EPREFIX/libexec]
1531 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1532 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1533 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1534 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1535 --libdir=DIR object code libraries [EPREFIX/lib]
1536 --includedir=DIR C header files [PREFIX/include]
1537 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1538 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1539 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1540 --infodir=DIR info documentation [DATAROOTDIR/info]
1541 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1542 --mandir=DIR man documentation [DATAROOTDIR/man]
1543 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1544 --htmldir=DIR html documentation [DOCDIR]
1545 --dvidir=DIR dvi documentation [DOCDIR]
1546 --pdfdir=DIR pdf documentation [DOCDIR]
1547 --psdir=DIR ps documentation [DOCDIR]
1553 --build=BUILD configure for building on BUILD [guessed]
1554 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1558 if test -n "$ac_init_help"; then
1563 --disable-option-checking ignore unrecognized --enable/--with options
1564 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1565 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1566 --enable-maintainer-mode enable makefile rules useful for maintainers
1567 --enable-symlink-install use symlinks when installing instead of hard links
1568 --enable-relative-symlinks use relative symlinks when installing
1570 --enable-symlink-build use symlinks while building instead of hard links
1571 --enable-verbose-makecmds enable verbose make command output
1572 --enable-elf-shlibs select ELF shared libraries
1573 --enable-bsd-shlibs select BSD shared libraries
1574 --enable-profile build profiling libraries
1575 --enable-gcov build for coverage testing using gcov
1576 --enable-hardening build for coverage testing using gcov
1577 --enable-jbd-debug enable journal debugging
1578 --enable-blkid-debug enable blkid debugging
1579 --disable-testio-debug disable the use of the test I/O manager for debugging
1580 --enable-libuuid build and use private uuid library
1581 --enable-libblkid build and use private blkid library
1582 --disable-backtrace disable use backtrace
1583 --disable-debugfs disable support of debugfs program
1584 --disable-imager disable support of e2image program
1585 --disable-resizer disable support of e2resize program
1586 --disable-defrag disable support of e4defrag program
1587 --enable-fsck build fsck wrapper program
1588 --enable-e2initrd-helper build e2initrd-helper program
1589 --disable-tls disable use of thread local support
1590 --disable-uuidd disable building the uuid daemon
1591 --disable-mmp disable support mmp, Multi Mount Protection
1592 --disable-tdb disable tdb support
1593 --disable-bmap-stats disable collection of bitmap stats.
1594 --enable-bmap-stats-ops enable collection of additional bitmap stats
1595 --disable-nls do not use Native Language Support
1596 --enable-threads={posix|solaris|pth|windows}
1597 specify multithreading API
1598 --disable-threads build without multithread safety
1599 --disable-rpath do not hardcode runtime library paths
1600 --disable-fuse2fs do not build fuse2fs
1601 --enable-lto enable link time optimization
1602 --enable-ubsan enable undefined behavior sanitizer
1603 --enable-addrsan enable address sanitizer
1604 --enable-threadsan enable thread sanitizer
1607 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1608 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1609 --with-diet-libc use diet libc
1610 --with-cc no longer supported, use CC= instead
1611 --with-ccopts no longer supported, use CFLAGS= instead
1612 --with-ldopts no longer supported, use LDFLAGS= instead
1613 --with-root-prefix=PREFIX override prefix variable for files to be placed in the root
1614 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1615 --with-libpth-prefix[=DIR] search for libpth in DIR/include and DIR/lib
1616 --without-libpth-prefix don't search for libpth in includedir and libdir
1617 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1618 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1619 --with-included-gettext use the GNU gettext library included here
1620 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1621 --without-libintl-prefix don't search for libintl in includedir and libdir
1622 --with-multiarch=ARCH specify the multiarch triplet
1623 --with-udev-rules-dir[=DIR]
1624 Install udev rules into DIR.
1625 --with-crond-dir[=DIR] Install system crontabs into DIR.
1626 --with-systemd-unit-dir[=DIR]
1627 Install systemd system units into DIR.
1629 Some influential environment variables:
1630 CC C compiler command
1631 CFLAGS C compiler flags
1632 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1633 nonstandard directory <lib dir>
1634 LIBS libraries to pass to the linker, e.g. -l<library>
1635 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1636 you have headers in a nonstandard directory <include dir>
1638 PKG_CONFIG path to pkg-config utility
1640 directories to add to pkg-config's search path
1642 path overriding pkg-config's built-in search path
1643 udev_CFLAGS C compiler flags for udev, overriding pkg-config
1644 udev_LIBS linker flags for udev, overriding pkg-config
1646 C compiler flags for systemd, overriding pkg-config
1648 linker flags for systemd, overriding pkg-config
1650 Use these variables to override the choices made by `configure' or to help
1651 it to find libraries and programs with nonstandard names/locations.
1653 Report bugs to the package provider.
1658 if test "$ac_init_help" = "recursive"; then
1659 # If there are subdirs, report their specific --help.
1660 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1661 test -d "$ac_dir" ||
1662 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1667 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1669 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1670 # A ".." for each directory in $ac_dir_suffix.
1671 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1672 case $ac_top_builddir_sub in
1673 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1674 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1677 ac_abs_top_builddir=$ac_pwd
1678 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1679 # for backward compatibility:
1680 ac_top_builddir=$ac_top_build_prefix
1683 .) # We are building in place.
1685 ac_top_srcdir=$ac_top_builddir_sub
1686 ac_abs_top_srcdir=$ac_pwd ;;
1687 [\\/]* | ?:[\\/]* ) # Absolute name.
1688 ac_srcdir=$srcdir$ac_dir_suffix;
1689 ac_top_srcdir=$srcdir
1690 ac_abs_top_srcdir=$srcdir ;;
1692 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1693 ac_top_srcdir=$ac_top_build_prefix$srcdir
1694 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1696 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1698 cd "$ac_dir" || { ac_status=$?; continue; }
1699 # Check for guested configure.
1700 if test -f "$ac_srcdir/configure.gnu"; then
1702 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1703 elif test -f "$ac_srcdir/configure"; then
1705 $SHELL "$ac_srcdir/configure" --help=recursive
1707 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1709 cd "$ac_pwd" || { ac_status=$?; break; }
1713 test -n "$ac_init_help" && exit $ac_status
1714 if $ac_init_version; then
1717 generated by GNU Autoconf 2.69
1719 Copyright (C) 2012 Free Software Foundation, Inc.
1720 This configure script is free software; the Free Software Foundation
1721 gives unlimited permission to copy, distribute and modify it.
1726 ## ------------------------ ##
1727 ## Autoconf initialization. ##
1728 ## ------------------------ ##
1730 # ac_fn_c_try_compile LINENO
1731 # --------------------------
1732 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1733 ac_fn_c_try_compile ()
1735 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1736 rm -f conftest.$ac_objext
1737 if { { ac_try="$ac_compile"
1739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1740 *) ac_try_echo=$ac_try;;
1742 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1743 $as_echo "$ac_try_echo"; } >&5
1744 (eval "$ac_compile") 2>conftest.err
1746 if test -s conftest.err; then
1747 grep -v '^ *+' conftest.err >conftest.er1
1748 cat conftest.er1 >&5
1749 mv -f conftest.er1 conftest.err
1751 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1752 test $ac_status = 0; } && {
1753 test -z "$ac_c_werror_flag" ||
1754 test ! -s conftest.err
1755 } && test -s conftest.$ac_objext; then :
1758 $as_echo "$as_me: failed program was:" >&5
1759 sed 's/^/| /' conftest.$ac_ext >&5
1763 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1764 as_fn_set_status $ac_retval
1766 } # ac_fn_c_try_compile
1768 # ac_fn_c_try_link LINENO
1769 # -----------------------
1770 # Try to link conftest.$ac_ext, and return whether this succeeded.
1773 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1774 rm -f conftest.$ac_objext conftest$ac_exeext
1775 if { { ac_try="$ac_link"
1777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1778 *) ac_try_echo=$ac_try;;
1780 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1781 $as_echo "$ac_try_echo"; } >&5
1782 (eval "$ac_link") 2>conftest.err
1784 if test -s conftest.err; then
1785 grep -v '^ *+' conftest.err >conftest.er1
1786 cat conftest.er1 >&5
1787 mv -f conftest.er1 conftest.err
1789 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1790 test $ac_status = 0; } && {
1791 test -z "$ac_c_werror_flag" ||
1792 test ! -s conftest.err
1793 } && test -s conftest$ac_exeext && {
1794 test "$cross_compiling" = yes ||
1795 test -x conftest$ac_exeext
1799 $as_echo "$as_me: failed program was:" >&5
1800 sed 's/^/| /' conftest.$ac_ext >&5
1804 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1805 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1806 # interfere with the next link command; also delete a directory that is
1807 # left behind by Apple's compiler. We do this before executing the actions.
1808 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1809 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1810 as_fn_set_status $ac_retval
1812 } # ac_fn_c_try_link
1814 # ac_fn_c_try_cpp LINENO
1815 # ----------------------
1816 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1819 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1820 if { { ac_try="$ac_cpp conftest.$ac_ext"
1822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1823 *) ac_try_echo=$ac_try;;
1825 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1826 $as_echo "$ac_try_echo"; } >&5
1827 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1829 if test -s conftest.err; then
1830 grep -v '^ *+' conftest.err >conftest.er1
1831 cat conftest.er1 >&5
1832 mv -f conftest.er1 conftest.err
1834 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1835 test $ac_status = 0; } > conftest.i && {
1836 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1837 test ! -s conftest.err
1841 $as_echo "$as_me: failed program was:" >&5
1842 sed 's/^/| /' conftest.$ac_ext >&5
1846 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1847 as_fn_set_status $ac_retval
1851 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1852 # -------------------------------------------------------
1853 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1854 # the include files in INCLUDES and setting the cache variable VAR
1856 ac_fn_c_check_header_mongrel ()
1858 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1859 if eval \${$3+:} false; then :
1860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1861 $as_echo_n "checking for $2... " >&6; }
1862 if eval \${$3+:} false; then :
1863 $as_echo_n "(cached) " >&6
1866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1867 $as_echo "$ac_res" >&6; }
1869 # Is the header compilable?
1870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1871 $as_echo_n "checking $2 usability... " >&6; }
1872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1873 /* end confdefs.h. */
1877 if ac_fn_c_try_compile "$LINENO"; then :
1878 ac_header_compiler=yes
1880 ac_header_compiler=no
1882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1884 $as_echo "$ac_header_compiler" >&6; }
1886 # Is the header present?
1887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1888 $as_echo_n "checking $2 presence... " >&6; }
1889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1890 /* end confdefs.h. */
1893 if ac_fn_c_try_cpp "$LINENO"; then :
1894 ac_header_preproc=yes
1896 ac_header_preproc=no
1898 rm -f conftest.err conftest.i conftest.$ac_ext
1899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1900 $as_echo "$ac_header_preproc" >&6; }
1902 # So? What about this header?
1903 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1905 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1906 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1907 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1908 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1911 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1912 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1913 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1914 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1915 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1916 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1917 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1918 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1919 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1920 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1924 $as_echo_n "checking for $2... " >&6; }
1925 if eval \${$3+:} false; then :
1926 $as_echo_n "(cached) " >&6
1928 eval "$3=\$ac_header_compiler"
1931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1932 $as_echo "$ac_res" >&6; }
1934 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1936 } # ac_fn_c_check_header_mongrel
1938 # ac_fn_c_try_run LINENO
1939 # ----------------------
1940 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1941 # that executables *can* be run.
1944 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1945 if { { ac_try="$ac_link"
1947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1948 *) ac_try_echo=$ac_try;;
1950 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1951 $as_echo "$ac_try_echo"; } >&5
1952 (eval "$ac_link") 2>&5
1954 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1955 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1956 { { case "(($ac_try" in
1957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1958 *) ac_try_echo=$ac_try;;
1960 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1961 $as_echo "$ac_try_echo"; } >&5
1962 (eval "$ac_try") 2>&5
1964 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1965 test $ac_status = 0; }; }; then :
1968 $as_echo "$as_me: program exited with status $ac_status" >&5
1969 $as_echo "$as_me: failed program was:" >&5
1970 sed 's/^/| /' conftest.$ac_ext >&5
1972 ac_retval=$ac_status
1974 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1975 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1976 as_fn_set_status $ac_retval
1980 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1981 # -------------------------------------------------------
1982 # Tests whether HEADER exists and can be compiled using the include files in
1983 # INCLUDES, setting the cache variable VAR accordingly.
1984 ac_fn_c_check_header_compile ()
1986 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1988 $as_echo_n "checking for $2... " >&6; }
1989 if eval \${$3+:} false; then :
1990 $as_echo_n "(cached) " >&6
1992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1993 /* end confdefs.h. */
1997 if ac_fn_c_try_compile "$LINENO"; then :
2002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2006 $as_echo "$ac_res" >&6; }
2007 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2009 } # ac_fn_c_check_header_compile
2011 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2012 # -------------------------------------------
2013 # Tests whether TYPE exists after having included INCLUDES, setting cache
2014 # variable VAR accordingly.
2015 ac_fn_c_check_type ()
2017 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2019 $as_echo_n "checking for $2... " >&6; }
2020 if eval \${$3+:} false; then :
2021 $as_echo_n "(cached) " >&6
2024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2025 /* end confdefs.h. */
2036 if ac_fn_c_try_compile "$LINENO"; then :
2037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2038 /* end confdefs.h. */
2049 if ac_fn_c_try_compile "$LINENO"; then :
2054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2060 $as_echo "$ac_res" >&6; }
2061 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2063 } # ac_fn_c_check_type
2065 # ac_fn_c_check_func LINENO FUNC VAR
2066 # ----------------------------------
2067 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2068 ac_fn_c_check_func ()
2070 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2072 $as_echo_n "checking for $2... " >&6; }
2073 if eval \${$3+:} false; then :
2074 $as_echo_n "(cached) " >&6
2076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2077 /* end confdefs.h. */
2078 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2079 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2080 #define $2 innocuous_$2
2082 /* System header to define __stub macros and hopefully few prototypes,
2083 which can conflict with char $2 (); below.
2084 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2085 <limits.h> exists even on freestanding compilers. */
2088 # include <limits.h>
2090 # include <assert.h>
2095 /* Override any GCC internal prototype to avoid an error.
2096 Use char because int might match the return type of a GCC
2097 builtin and then its argument prototype would still apply. */
2102 /* The GNU C library defines this for functions which it implements
2103 to always fail with ENOSYS. Some functions are actually named
2104 something starting with __ and the normal name is an alias. */
2105 #if defined __stub_$2 || defined __stub___$2
2117 if ac_fn_c_try_link "$LINENO"; then :
2122 rm -f core conftest.err conftest.$ac_objext \
2123 conftest$ac_exeext conftest.$ac_ext
2126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2127 $as_echo "$ac_res" >&6; }
2128 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2130 } # ac_fn_c_check_func
2132 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2133 # ---------------------------------------------
2134 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2136 ac_fn_c_check_decl ()
2138 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2139 as_decl_name=`echo $2|sed 's/ *(.*//'`
2140 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2142 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2143 if eval \${$3+:} false; then :
2144 $as_echo_n "(cached) " >&6
2146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2147 /* end confdefs.h. */
2152 #ifndef $as_decl_name
2154 (void) $as_decl_use;
2156 (void) $as_decl_name;
2164 if ac_fn_c_try_compile "$LINENO"; then :
2169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2173 $as_echo "$ac_res" >&6; }
2174 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2176 } # ac_fn_c_check_decl
2178 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2179 # --------------------------------------------
2180 # Tries to find the compile-time value of EXPR in a program that includes
2181 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2183 ac_fn_c_compute_int ()
2185 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2186 if test "$cross_compiling" = yes; then
2187 # Depending upon the size, compute the lo and hi bounds.
2188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2189 /* end confdefs.h. */
2194 static int test_array [1 - 2 * !(($2) >= 0)];
2196 return test_array [0];
2202 if ac_fn_c_try_compile "$LINENO"; then :
2205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2206 /* end confdefs.h. */
2211 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2213 return test_array [0];
2219 if ac_fn_c_try_compile "$LINENO"; then :
2220 ac_hi=$ac_mid; break
2222 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2223 if test $ac_lo -le $ac_mid; then
2227 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2233 /* end confdefs.h. */
2238 static int test_array [1 - 2 * !(($2) < 0)];
2240 return test_array [0];
2246 if ac_fn_c_try_compile "$LINENO"; then :
2249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2250 /* end confdefs.h. */
2255 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2257 return test_array [0];
2263 if ac_fn_c_try_compile "$LINENO"; then :
2264 ac_lo=$ac_mid; break
2266 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2267 if test $ac_mid -le $ac_hi; then
2271 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2281 # Binary search between lo and hi bounds.
2282 while test "x$ac_lo" != "x$ac_hi"; do
2283 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2285 /* end confdefs.h. */
2290 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2292 return test_array [0];
2298 if ac_fn_c_try_compile "$LINENO"; then :
2301 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2306 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2311 /* end confdefs.h. */
2313 static long int longval () { return $2; }
2314 static unsigned long int ulongval () { return $2; }
2321 FILE *f = fopen ("conftest.val", "w");
2326 long int i = longval ();
2329 fprintf (f, "%ld", i);
2333 unsigned long int i = ulongval ();
2336 fprintf (f, "%lu", i);
2338 /* Do not output a trailing newline, as this causes \r\n confusion
2339 on some platforms. */
2340 return ferror (f) || fclose (f) != 0;
2346 if ac_fn_c_try_run "$LINENO"; then :
2347 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2351 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2352 conftest.$ac_objext conftest.beam conftest.$ac_ext
2356 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2357 as_fn_set_status $ac_retval
2359 } # ac_fn_c_compute_int
2361 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2362 # ----------------------------------------------------
2363 # Tries to find if the field MEMBER exists in type AGGR, after including
2364 # INCLUDES, setting cache variable VAR accordingly.
2365 ac_fn_c_check_member ()
2367 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2369 $as_echo_n "checking for $2.$3... " >&6; }
2370 if eval \${$4+:} false; then :
2371 $as_echo_n "(cached) " >&6
2373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2374 /* end confdefs.h. */
2386 if ac_fn_c_try_compile "$LINENO"; then :
2389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2390 /* end confdefs.h. */
2396 if (sizeof ac_aggr.$3)
2402 if ac_fn_c_try_compile "$LINENO"; then :
2407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2413 $as_echo "$ac_res" >&6; }
2414 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2416 } # ac_fn_c_check_member
2417 cat >config.log <<_ACEOF
2418 This file contains any messages produced by compilers while
2419 running configure, to aid debugging if configure makes a mistake.
2421 It was created by $as_me, which was
2422 generated by GNU Autoconf 2.69. Invocation command line was
2434 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2435 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2436 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2437 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2438 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2440 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2441 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2443 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2444 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2445 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2446 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2447 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2448 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2449 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2457 test -z "$as_dir" && as_dir=.
2458 $as_echo "PATH: $as_dir"
2474 # Keep a trace of the command line.
2475 # Strip out --no-create and --no-recursion so they do not pile up.
2476 # Strip out --silent because we don't want to record it for future runs.
2477 # Also quote any args containing shell meta-characters.
2478 # Make two passes to allow for proper duplicate-argument suppression.
2482 ac_must_keep_next=false
2488 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2489 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2490 | -silent | --silent | --silen | --sile | --sil)
2493 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2496 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2498 as_fn_append ac_configure_args1 " '$ac_arg'"
2499 if test $ac_must_keep_next = true; then
2500 ac_must_keep_next=false # Got value, back to normal.
2503 *=* | --config-cache | -C | -disable-* | --disable-* \
2504 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2505 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2506 | -with-* | --with-* | -without-* | --without-* | --x)
2507 case "$ac_configure_args0 " in
2508 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2511 -* ) ac_must_keep_next=true ;;
2514 as_fn_append ac_configure_args " '$ac_arg'"
2519 { ac_configure_args0=; unset ac_configure_args0;}
2520 { ac_configure_args1=; unset ac_configure_args1;}
2522 # When interrupted or exit'd, cleanup temporary files, and complete
2523 # config.log. We remove comments because anyway the quotes in there
2524 # would cause problems or look ugly.
2525 # WARNING: Use '\'' to represent an apostrophe within the trap.
2526 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2527 trap 'exit_status=$?
2528 # Save into config.log some information that might help in debugging.
2532 $as_echo "## ---------------- ##
2533 ## Cache variables. ##
2534 ## ---------------- ##"
2536 # The following way of writing the cache mishandles newlines in values,
2538 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2539 eval ac_val=\$$ac_var
2543 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2544 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2547 _ | IFS | as_nl) ;; #(
2548 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2549 *) { eval $ac_var=; unset $ac_var;} ;;
2554 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2555 *${as_nl}ac_space=\ *)
2557 "s/'\''/'\''\\\\'\'''\''/g;
2558 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2561 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2568 $as_echo "## ----------------- ##
2569 ## Output variables. ##
2570 ## ----------------- ##"
2572 for ac_var in $ac_subst_vars
2574 eval ac_val=\$$ac_var
2576 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2578 $as_echo "$ac_var='\''$ac_val'\''"
2582 if test -n "$ac_subst_files"; then
2583 $as_echo "## ------------------- ##
2584 ## File substitutions. ##
2585 ## ------------------- ##"
2587 for ac_var in $ac_subst_files
2589 eval ac_val=\$$ac_var
2591 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2593 $as_echo "$ac_var='\''$ac_val'\''"
2598 if test -s confdefs.h; then
2599 $as_echo "## ----------- ##
2606 test "$ac_signal" != 0 &&
2607 $as_echo "$as_me: caught signal $ac_signal"
2608 $as_echo "$as_me: exit $exit_status"
2610 rm -f core *.core core.conftest.* &&
2611 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2614 for ac_signal in 1 2 13 15; do
2615 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2619 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2620 rm -f -r conftest* confdefs.h
2622 $as_echo "/* confdefs.h */" > confdefs.h
2624 # Predefined preprocessor variables.
2626 cat >>confdefs.h <<_ACEOF
2627 #define PACKAGE_NAME "$PACKAGE_NAME"
2630 cat >>confdefs.h <<_ACEOF
2631 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2634 cat >>confdefs.h <<_ACEOF
2635 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2638 cat >>confdefs.h <<_ACEOF
2639 #define PACKAGE_STRING "$PACKAGE_STRING"
2642 cat >>confdefs.h <<_ACEOF
2643 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2646 cat >>confdefs.h <<_ACEOF
2647 #define PACKAGE_URL "$PACKAGE_URL"
2651 # Let the site file select an alternate cache file if it wants to.
2652 # Prefer an explicitly selected file to automatically selected ones.
2655 if test -n "$CONFIG_SITE"; then
2656 # We do not want a PATH search for config.site.
2657 case $CONFIG_SITE in #((
2658 -*) ac_site_file1=./$CONFIG_SITE;;
2659 */*) ac_site_file1=$CONFIG_SITE;;
2660 *) ac_site_file1=./$CONFIG_SITE;;
2662 elif test "x$prefix" != xNONE; then
2663 ac_site_file1=$prefix/share/config.site
2664 ac_site_file2=$prefix/etc/config.site
2666 ac_site_file1=$ac_default_prefix/share/config.site
2667 ac_site_file2=$ac_default_prefix/etc/config.site
2669 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2671 test "x$ac_site_file" = xNONE && continue
2672 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2673 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2674 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2675 sed 's/^/| /' "$ac_site_file" >&5
2677 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2678 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2679 as_fn_error $? "failed to load site script $ac_site_file
2680 See \`config.log' for more details" "$LINENO" 5; }
2684 if test -r "$cache_file"; then
2685 # Some versions of bash will fail to source /dev/null (special files
2686 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2687 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2688 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2689 $as_echo "$as_me: loading cache $cache_file" >&6;}
2691 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2692 *) . "./$cache_file";;
2696 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2697 $as_echo "$as_me: creating cache $cache_file" >&6;}
2701 gt_needs="$gt_needs "
2702 as_fn_append ac_header_list " stdlib.h"
2703 as_fn_append ac_header_list " unistd.h"
2704 as_fn_append ac_header_list " sys/param.h"
2705 as_fn_append ac_func_list " symlink"
2706 # Check that the precious variables saved in the cache have kept the same
2708 ac_cache_corrupted=false
2709 for ac_var in $ac_precious_vars; do
2710 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2711 eval ac_new_set=\$ac_env_${ac_var}_set
2712 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2713 eval ac_new_val=\$ac_env_${ac_var}_value
2714 case $ac_old_set,$ac_new_set in
2716 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2717 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2718 ac_cache_corrupted=: ;;
2720 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2721 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2722 ac_cache_corrupted=: ;;
2725 if test "x$ac_old_val" != "x$ac_new_val"; then
2726 # differences in whitespace do not lead to failure.
2727 ac_old_val_w=`echo x $ac_old_val`
2728 ac_new_val_w=`echo x $ac_new_val`
2729 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2730 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2731 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2732 ac_cache_corrupted=:
2734 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2735 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2736 eval $ac_var=\$ac_old_val
2738 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2739 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2740 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2741 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2744 # Pass precious variables to config.status.
2745 if test "$ac_new_set" = set; then
2747 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2748 *) ac_arg=$ac_var=$ac_new_val ;;
2750 case " $ac_configure_args " in
2751 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2752 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2756 if $ac_cache_corrupted; then
2757 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2758 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2759 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2760 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2761 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2763 ## -------------------- ##
2764 ## Main body of script. ##
2765 ## -------------------- ##
2768 ac_cpp='$CPP $CPPFLAGS'
2769 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2770 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2771 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2776 for ac_dir in config "$srcdir"/config; do
2777 if test -f "$ac_dir/install-sh"; then
2779 ac_install_sh="$ac_aux_dir/install-sh -c"
2781 elif test -f "$ac_dir/install.sh"; then
2783 ac_install_sh="$ac_aux_dir/install.sh -c"
2785 elif test -f "$ac_dir/shtool"; then
2787 ac_install_sh="$ac_aux_dir/shtool install -c"
2791 if test -z "$ac_aux_dir"; then
2792 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2795 # These three variables are undocumented and unsupported,
2796 # and are intended to be withdrawn in a future Autoconf release.
2797 # They can cause serious problems if a builder's source tree is in a directory
2798 # whose full name contains unusual characters.
2799 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2800 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2801 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2804 ac_config_headers="$ac_config_headers lib/config.h"
2810 E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \
2811 | awk '{print $3}' | tr \" " " | awk '{print $1}'`
2812 E2FSPROGS_DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
2813 | tr \" " " | awk '{print $1}'`
2814 E2FSPROGS_DAY=$(echo $E2FSPROGS_DATE | awk -F- '{print $1}' | sed -e '/^[1-9]$/s/^/0/')
2815 MONTH=`echo $E2FSPROGS_DATE | awk -F- '{print $2}'`
2816 YEAR=`echo $E2FSPROGS_DATE | awk -F- '{print $3}'`
2818 if expr $YEAR ">" 1900 > /dev/null ; then
2819 E2FSPROGS_YEAR=$YEAR
2820 elif expr $YEAR ">" 90 >/dev/null ; then
2821 E2FSPROGS_YEAR=19$YEAR
2823 E2FSPROGS_YEAR=20$YEAR
2827 Jan) MONTH_NUM=01; E2FSPROGS_MONTH="January" ;;
2828 Feb) MONTH_NUM=02; E2FSPROGS_MONTH="February" ;;
2829 Mar) MONTH_NUM=03; E2FSPROGS_MONTH="March" ;;
2830 Apr) MONTH_NUM=04; E2FSPROGS_MONTH="April" ;;
2831 May) MONTH_NUM=05; E2FSPROGS_MONTH="May" ;;
2832 Jun) MONTH_NUM=06; E2FSPROGS_MONTH="June" ;;
2833 Jul) MONTH_NUM=07; E2FSPROGS_MONTH="July" ;;
2834 Aug) MONTH_NUM=08; E2FSPROGS_MONTH="August" ;;
2835 Sep) MONTH_NUM=09; E2FSPROGS_MONTH="September" ;;
2836 Oct) MONTH_NUM=10; E2FSPROGS_MONTH="October" ;;
2837 Nov) MONTH_NUM=11; E2FSPROGS_MONTH="November" ;;
2838 Dec) MONTH_NUM=12; E2FSPROGS_MONTH="December" ;;
2839 *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unknown month $MONTH??" >&5
2840 $as_echo "$as_me: WARNING: Unknown month $MONTH??" >&2;} ;;
2843 base_ver=`echo $E2FSPROGS_VERSION | \
2844 sed -e 's/-WIP//' -e 's/pre-//' -e 's/-PLUS//'`
2846 date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY}
2848 case $E2FSPROGS_VERSION in
2850 E2FSPROGS_PKGVER="$base_ver~WIP.$date_spec"
2853 E2FSPROGS_PKGVER="$base_ver"
2857 unset DATE MONTH YEAR base_ver pre_vers date_spec
2858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&5
2859 $as_echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&6; }
2860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&5
2861 $as_echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&6; }
2870 # Check whether --with-diet-libc was given.
2871 if test "${with_diet_libc+set}" = set; then :
2872 withval=$with_diet_libc; CC="diet cc -nostdinc"
2878 LIBS="$LIBS -lcompat"
2880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: CC=$CC" >&5
2881 $as_echo "CC=$CC" >&6; }
2883 # Make sure we can run config.sub.
2884 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2885 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2888 $as_echo_n "checking build system type... " >&6; }
2889 if ${ac_cv_build+:} false; then :
2890 $as_echo_n "(cached) " >&6
2892 ac_build_alias=$build_alias
2893 test "x$ac_build_alias" = x &&
2894 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2895 test "x$ac_build_alias" = x &&
2896 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2897 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2898 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2902 $as_echo "$ac_cv_build" >&6; }
2903 case $ac_cv_build in
2905 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2908 ac_save_IFS=$IFS; IFS='-'
2914 # Remember, the first character of IFS is used to create $*,
2915 # except with old shells:
2918 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2922 $as_echo_n "checking host system type... " >&6; }
2923 if ${ac_cv_host+:} false; then :
2924 $as_echo_n "(cached) " >&6
2926 if test "x$host_alias" = x; then
2927 ac_cv_host=$ac_cv_build
2929 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2930 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2935 $as_echo "$ac_cv_host" >&6; }
2938 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2941 ac_save_IFS=$IFS; IFS='-'
2947 # Remember, the first character of IFS is used to create $*,
2948 # except with old shells:
2951 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2956 ac_cpp='$CPP $CPPFLAGS'
2957 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2958 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2959 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2960 if test -n "$ac_tool_prefix"; then
2961 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2962 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2964 $as_echo_n "checking for $ac_word... " >&6; }
2965 if ${ac_cv_prog_CC+:} false; then :
2966 $as_echo_n "(cached) " >&6
2968 if test -n "$CC"; then
2969 ac_cv_prog_CC="$CC" # Let the user override the test.
2971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2975 test -z "$as_dir" && as_dir=.
2976 for ac_exec_ext in '' $ac_executable_extensions; do
2977 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2978 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2989 if test -n "$CC"; then
2990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2991 $as_echo "$CC" >&6; }
2993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2994 $as_echo "no" >&6; }
2999 if test -z "$ac_cv_prog_CC"; then
3001 # Extract the first word of "gcc", so it can be a program name with args.
3002 set dummy gcc; ac_word=$2
3003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3004 $as_echo_n "checking for $ac_word... " >&6; }
3005 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3006 $as_echo_n "(cached) " >&6
3008 if test -n "$ac_ct_CC"; then
3009 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3015 test -z "$as_dir" && as_dir=.
3016 for ac_exec_ext in '' $ac_executable_extensions; do
3017 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3018 ac_cv_prog_ac_ct_CC="gcc"
3019 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3028 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3029 if test -n "$ac_ct_CC"; then
3030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3031 $as_echo "$ac_ct_CC" >&6; }
3033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3034 $as_echo "no" >&6; }
3037 if test "x$ac_ct_CC" = x; then
3040 case $cross_compiling:$ac_tool_warned in
3042 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3043 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3044 ac_tool_warned=yes ;;
3052 if test -z "$CC"; then
3053 if test -n "$ac_tool_prefix"; then
3054 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3055 set dummy ${ac_tool_prefix}cc; ac_word=$2
3056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3057 $as_echo_n "checking for $ac_word... " >&6; }
3058 if ${ac_cv_prog_CC+:} false; then :
3059 $as_echo_n "(cached) " >&6
3061 if test -n "$CC"; then
3062 ac_cv_prog_CC="$CC" # Let the user override the test.
3064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3068 test -z "$as_dir" && as_dir=.
3069 for ac_exec_ext in '' $ac_executable_extensions; do
3070 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3071 ac_cv_prog_CC="${ac_tool_prefix}cc"
3072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3082 if test -n "$CC"; then
3083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3084 $as_echo "$CC" >&6; }
3086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3087 $as_echo "no" >&6; }
3093 if test -z "$CC"; then
3094 # Extract the first word of "cc", so it can be a program name with args.
3095 set dummy cc; ac_word=$2
3096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3097 $as_echo_n "checking for $ac_word... " >&6; }
3098 if ${ac_cv_prog_CC+:} false; then :
3099 $as_echo_n "(cached) " >&6
3101 if test -n "$CC"; then
3102 ac_cv_prog_CC="$CC" # Let the user override the test.
3105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3109 test -z "$as_dir" && as_dir=.
3110 for ac_exec_ext in '' $ac_executable_extensions; do
3111 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3112 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3113 ac_prog_rejected=yes
3117 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3124 if test $ac_prog_rejected = yes; then
3125 # We found a bogon in the path, so make sure we never use it.
3126 set dummy $ac_cv_prog_CC
3128 if test $# != 0; then
3129 # We chose a different compiler from the bogus one.
3130 # However, it has the same basename, so the bogon will be chosen
3131 # first if we set CC to just the basename; use the full file name.
3133 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3139 if test -n "$CC"; then
3140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3141 $as_echo "$CC" >&6; }
3143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3144 $as_echo "no" >&6; }
3149 if test -z "$CC"; then
3150 if test -n "$ac_tool_prefix"; then
3151 for ac_prog in cl.exe
3153 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3154 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3156 $as_echo_n "checking for $ac_word... " >&6; }
3157 if ${ac_cv_prog_CC+:} false; then :
3158 $as_echo_n "(cached) " >&6
3160 if test -n "$CC"; then
3161 ac_cv_prog_CC="$CC" # Let the user override the test.
3163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3167 test -z "$as_dir" && as_dir=.
3168 for ac_exec_ext in '' $ac_executable_extensions; do
3169 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3170 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3171 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3181 if test -n "$CC"; then
3182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3183 $as_echo "$CC" >&6; }
3185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3186 $as_echo "no" >&6; }
3190 test -n "$CC" && break
3193 if test -z "$CC"; then
3195 for ac_prog in cl.exe
3197 # Extract the first word of "$ac_prog", so it can be a program name with args.
3198 set dummy $ac_prog; ac_word=$2
3199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3200 $as_echo_n "checking for $ac_word... " >&6; }
3201 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3202 $as_echo_n "(cached) " >&6
3204 if test -n "$ac_ct_CC"; then
3205 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3211 test -z "$as_dir" && as_dir=.
3212 for ac_exec_ext in '' $ac_executable_extensions; do
3213 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3214 ac_cv_prog_ac_ct_CC="$ac_prog"
3215 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3224 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3225 if test -n "$ac_ct_CC"; then
3226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3227 $as_echo "$ac_ct_CC" >&6; }
3229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3230 $as_echo "no" >&6; }
3234 test -n "$ac_ct_CC" && break
3237 if test "x$ac_ct_CC" = x; then
3240 case $cross_compiling:$ac_tool_warned in
3242 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3243 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3244 ac_tool_warned=yes ;;
3253 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3254 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3255 as_fn_error $? "no acceptable C compiler found in \$PATH
3256 See \`config.log' for more details" "$LINENO" 5; }
3258 # Provide some information about the compiler.
3259 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3262 for ac_option in --version -v -V -qversion; do
3263 { { ac_try="$ac_compiler $ac_option >&5"
3265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3266 *) ac_try_echo=$ac_try;;
3268 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3269 $as_echo "$ac_try_echo"; } >&5
3270 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3272 if test -s conftest.err; then
3274 ... rest of stderr output deleted ...
3275 10q' conftest.err >conftest.er1
3276 cat conftest.er1 >&5
3278 rm -f conftest.er1 conftest.err
3279 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3280 test $ac_status = 0; }
3283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3284 /* end confdefs.h. */
3294 ac_clean_files_save=$ac_clean_files
3295 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3296 # Try to create an executable without -o first, disregard a.out.
3297 # It will help us diagnose broken compilers, and finding out an intuition
3299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3300 $as_echo_n "checking whether the C compiler works... " >&6; }
3301 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3303 # The possible output files:
3304 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3307 for ac_file in $ac_files
3310 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3311 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3316 if { { ac_try="$ac_link_default"
3318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3319 *) ac_try_echo=$ac_try;;
3321 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3322 $as_echo "$ac_try_echo"; } >&5
3323 (eval "$ac_link_default") 2>&5
3325 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3326 test $ac_status = 0; }; then :
3327 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3328 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3329 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3330 # so that the user can short-circuit this test for compilers unknown to
3332 for ac_file in $ac_files ''
3334 test -f "$ac_file" || continue
3336 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3339 # We found the default executable, but exeext='' is most
3343 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3345 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3347 # We set ac_cv_exeext here because the later test for it is not
3348 # safe: cross compilers may not add the suffix if given an `-o'
3349 # argument, so we may need to know it at that point already.
3350 # Even if this section looks crufty: it has the advantage of
3357 test "$ac_cv_exeext" = no && ac_cv_exeext=
3362 if test -z "$ac_file"; then :
3363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3364 $as_echo "no" >&6; }
3365 $as_echo "$as_me: failed program was:" >&5
3366 sed 's/^/| /' conftest.$ac_ext >&5
3368 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3369 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3370 as_fn_error 77 "C compiler cannot create executables
3371 See \`config.log' for more details" "$LINENO" 5; }
3373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3374 $as_echo "yes" >&6; }
3376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3377 $as_echo_n "checking for C compiler default output file name... " >&6; }
3378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3379 $as_echo "$ac_file" >&6; }
3380 ac_exeext=$ac_cv_exeext
3382 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3383 ac_clean_files=$ac_clean_files_save
3384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3385 $as_echo_n "checking for suffix of executables... " >&6; }
3386 if { { ac_try="$ac_link"
3388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3389 *) ac_try_echo=$ac_try;;
3391 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3392 $as_echo "$ac_try_echo"; } >&5
3393 (eval "$ac_link") 2>&5
3395 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3396 test $ac_status = 0; }; then :
3397 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3398 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3399 # work properly (i.e., refer to `conftest.exe'), while it won't with
3401 for ac_file in conftest.exe conftest conftest.*; do
3402 test -f "$ac_file" || continue
3404 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3405 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3411 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3412 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3413 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3414 See \`config.log' for more details" "$LINENO" 5; }
3416 rm -f conftest conftest$ac_cv_exeext
3417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3418 $as_echo "$ac_cv_exeext" >&6; }
3420 rm -f conftest.$ac_ext
3421 EXEEXT=$ac_cv_exeext
3423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3424 /* end confdefs.h. */
3429 FILE *f = fopen ("conftest.out", "w");
3430 return ferror (f) || fclose (f) != 0;
3436 ac_clean_files="$ac_clean_files conftest.out"
3437 # Check that the compiler produces executables we can run. If not, either
3438 # the compiler is broken, or we cross compile.
3439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3440 $as_echo_n "checking whether we are cross compiling... " >&6; }
3441 if test "$cross_compiling" != yes; then
3442 { { ac_try="$ac_link"
3444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3445 *) ac_try_echo=$ac_try;;
3447 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3448 $as_echo "$ac_try_echo"; } >&5
3449 (eval "$ac_link") 2>&5
3451 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3452 test $ac_status = 0; }
3453 if { ac_try='./conftest$ac_cv_exeext'
3454 { { case "(($ac_try" in
3455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3456 *) ac_try_echo=$ac_try;;
3458 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3459 $as_echo "$ac_try_echo"; } >&5
3460 (eval "$ac_try") 2>&5
3462 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3463 test $ac_status = 0; }; }; then
3466 if test "$cross_compiling" = maybe; then
3469 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3470 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3471 as_fn_error $? "cannot run C compiled programs.
3472 If you meant to cross compile, use \`--host'.
3473 See \`config.log' for more details" "$LINENO" 5; }
3477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3478 $as_echo "$cross_compiling" >&6; }
3480 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3481 ac_clean_files=$ac_clean_files_save
3482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3483 $as_echo_n "checking for suffix of object files... " >&6; }
3484 if ${ac_cv_objext+:} false; then :
3485 $as_echo_n "(cached) " >&6
3487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3488 /* end confdefs.h. */
3498 rm -f conftest.o conftest.obj
3499 if { { ac_try="$ac_compile"
3501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3502 *) ac_try_echo=$ac_try;;
3504 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3505 $as_echo "$ac_try_echo"; } >&5
3506 (eval "$ac_compile") 2>&5
3508 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3509 test $ac_status = 0; }; then :
3510 for ac_file in conftest.o conftest.obj conftest.*; do
3511 test -f "$ac_file" || continue;
3513 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3514 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3519 $as_echo "$as_me: failed program was:" >&5
3520 sed 's/^/| /' conftest.$ac_ext >&5
3522 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3523 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3524 as_fn_error $? "cannot compute suffix of object files: cannot compile
3525 See \`config.log' for more details" "$LINENO" 5; }
3527 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3530 $as_echo "$ac_cv_objext" >&6; }
3531 OBJEXT=$ac_cv_objext
3533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3534 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3535 if ${ac_cv_c_compiler_gnu+:} false; then :
3536 $as_echo_n "(cached) " >&6
3538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3539 /* end confdefs.h. */
3552 if ac_fn_c_try_compile "$LINENO"; then :
3557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3558 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3562 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3563 if test $ac_compiler_gnu = yes; then
3568 ac_test_CFLAGS=${CFLAGS+set}
3569 ac_save_CFLAGS=$CFLAGS
3570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3571 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3572 if ${ac_cv_prog_cc_g+:} false; then :
3573 $as_echo_n "(cached) " >&6
3575 ac_save_c_werror_flag=$ac_c_werror_flag
3576 ac_c_werror_flag=yes
3579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3580 /* end confdefs.h. */
3590 if ac_fn_c_try_compile "$LINENO"; then :
3594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3595 /* end confdefs.h. */
3605 if ac_fn_c_try_compile "$LINENO"; then :
3608 ac_c_werror_flag=$ac_save_c_werror_flag
3610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3611 /* end confdefs.h. */
3621 if ac_fn_c_try_compile "$LINENO"; then :
3624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3629 ac_c_werror_flag=$ac_save_c_werror_flag
3631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3632 $as_echo "$ac_cv_prog_cc_g" >&6; }
3633 if test "$ac_test_CFLAGS" = set; then
3634 CFLAGS=$ac_save_CFLAGS
3635 elif test $ac_cv_prog_cc_g = yes; then
3636 if test "$GCC" = yes; then
3642 if test "$GCC" = yes; then
3648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3649 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3650 if ${ac_cv_prog_cc_c89+:} false; then :
3651 $as_echo_n "(cached) " >&6
3653 ac_cv_prog_cc_c89=no
3655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3656 /* end confdefs.h. */
3660 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3661 struct buf { int x; };
3662 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3663 static char *e (p, i)
3669 static char *f (char * (*g) (char **, int), char **p, ...)
3674 s = g (p, va_arg (v,int));
3679 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3680 function prototypes and stuff, but not '\xHH' hex character constants.
3681 These don't provoke an error unfortunately, instead are silently treated
3682 as 'x'. The following induces an error, until -std is added to get
3683 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3684 array size at least. It's necessary to write '\x00'==0 to get something
3685 that's true only with -std. */
3686 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3688 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3689 inside strings and character constants. */
3691 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3693 int test (int i, double x);
3694 struct s1 {int (*f) (int a);};
3695 struct s2 {int (*f) (double a);};
3696 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3702 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3707 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3708 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3710 CC="$ac_save_CC $ac_arg"
3711 if ac_fn_c_try_compile "$LINENO"; then :
3712 ac_cv_prog_cc_c89=$ac_arg
3714 rm -f core conftest.err conftest.$ac_objext
3715 test "x$ac_cv_prog_cc_c89" != "xno" && break
3717 rm -f conftest.$ac_ext
3722 case "x$ac_cv_prog_cc_c89" in
3724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3725 $as_echo "none needed" >&6; } ;;
3727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3728 $as_echo "unsupported" >&6; } ;;
3730 CC="$CC $ac_cv_prog_cc_c89"
3731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3732 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3734 if test "x$ac_cv_prog_cc_c89" != xno; then :
3739 ac_cpp='$CPP $CPPFLAGS'
3740 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3741 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3742 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
3746 $as_echo_n "checking for dlopen in -ldl... " >&6; }
3747 if ${ac_cv_lib_dl_dlopen+:} false; then :
3748 $as_echo_n "(cached) " >&6
3750 ac_check_lib_save_LIBS=$LIBS
3752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3753 /* end confdefs.h. */
3755 /* Override any GCC internal prototype to avoid an error.
3756 Use char because int might match the return type of a GCC
3757 builtin and then its argument prototype would still apply. */
3770 if ac_fn_c_try_link "$LINENO"; then :
3771 ac_cv_lib_dl_dlopen=yes
3773 ac_cv_lib_dl_dlopen=no
3775 rm -f core conftest.err conftest.$ac_objext \
3776 conftest$ac_exeext conftest.$ac_ext
3777 LIBS=$ac_check_lib_save_LIBS
3779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
3780 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
3781 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
3787 # Check whether --with-cc was given.
3788 if test "${with_cc+set}" = set; then :
3789 withval=$with_cc; as_fn_error $? "--with-cc no longer supported; use CC= instead" "$LINENO" 5
3793 # Check whether --with-ccopts was given.
3794 if test "${with_ccopts+set}" = set; then :
3795 withval=$with_ccopts; as_fn_error $? "--with-ccopts no longer supported; use CFLAGS= instead" "$LINENO" 5
3799 # Check whether --with-ldopts was given.
3800 if test "${with_ldopts+set}" = set; then :
3801 withval=$with_ldopts; as_fn_error $? "--with-ldopts no longer supported; use LDFLAGS= instead" "$LINENO" 5
3805 ac_cpp='$CPP $CPPFLAGS'
3806 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3807 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3808 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3809 if test -n "$ac_tool_prefix"; then
3810 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3811 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3813 $as_echo_n "checking for $ac_word... " >&6; }
3814 if ${ac_cv_prog_CC+:} false; then :
3815 $as_echo_n "(cached) " >&6
3817 if test -n "$CC"; then
3818 ac_cv_prog_CC="$CC" # Let the user override the test.
3820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3824 test -z "$as_dir" && as_dir=.
3825 for ac_exec_ext in '' $ac_executable_extensions; do
3826 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3827 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3828 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3838 if test -n "$CC"; then
3839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3840 $as_echo "$CC" >&6; }
3842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3843 $as_echo "no" >&6; }
3848 if test -z "$ac_cv_prog_CC"; then
3850 # Extract the first word of "gcc", so it can be a program name with args.
3851 set dummy gcc; ac_word=$2
3852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3853 $as_echo_n "checking for $ac_word... " >&6; }
3854 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3855 $as_echo_n "(cached) " >&6
3857 if test -n "$ac_ct_CC"; then
3858 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3864 test -z "$as_dir" && as_dir=.
3865 for ac_exec_ext in '' $ac_executable_extensions; do
3866 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3867 ac_cv_prog_ac_ct_CC="gcc"
3868 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3877 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3878 if test -n "$ac_ct_CC"; then
3879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3880 $as_echo "$ac_ct_CC" >&6; }
3882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3883 $as_echo "no" >&6; }
3886 if test "x$ac_ct_CC" = x; then
3889 case $cross_compiling:$ac_tool_warned in
3891 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3892 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3893 ac_tool_warned=yes ;;
3901 if test -z "$CC"; then
3902 if test -n "$ac_tool_prefix"; then
3903 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3904 set dummy ${ac_tool_prefix}cc; ac_word=$2
3905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3906 $as_echo_n "checking for $ac_word... " >&6; }
3907 if ${ac_cv_prog_CC+:} false; then :
3908 $as_echo_n "(cached) " >&6
3910 if test -n "$CC"; then
3911 ac_cv_prog_CC="$CC" # Let the user override the test.
3913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3917 test -z "$as_dir" && as_dir=.
3918 for ac_exec_ext in '' $ac_executable_extensions; do
3919 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3920 ac_cv_prog_CC="${ac_tool_prefix}cc"
3921 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3931 if test -n "$CC"; then
3932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3933 $as_echo "$CC" >&6; }
3935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3936 $as_echo "no" >&6; }
3942 if test -z "$CC"; then
3943 # Extract the first word of "cc", so it can be a program name with args.
3944 set dummy cc; ac_word=$2
3945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3946 $as_echo_n "checking for $ac_word... " >&6; }
3947 if ${ac_cv_prog_CC+:} false; then :
3948 $as_echo_n "(cached) " >&6
3950 if test -n "$CC"; then
3951 ac_cv_prog_CC="$CC" # Let the user override the test.
3954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3958 test -z "$as_dir" && as_dir=.
3959 for ac_exec_ext in '' $ac_executable_extensions; do
3960 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3961 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3962 ac_prog_rejected=yes
3966 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3973 if test $ac_prog_rejected = yes; then
3974 # We found a bogon in the path, so make sure we never use it.
3975 set dummy $ac_cv_prog_CC
3977 if test $# != 0; then
3978 # We chose a different compiler from the bogus one.
3979 # However, it has the same basename, so the bogon will be chosen
3980 # first if we set CC to just the basename; use the full file name.
3982 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3988 if test -n "$CC"; then
3989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3990 $as_echo "$CC" >&6; }
3992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3993 $as_echo "no" >&6; }
3998 if test -z "$CC"; then
3999 if test -n "$ac_tool_prefix"; then
4000 for ac_prog in cl.exe
4002 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4003 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4005 $as_echo_n "checking for $ac_word... " >&6; }
4006 if ${ac_cv_prog_CC+:} false; then :
4007 $as_echo_n "(cached) " >&6
4009 if test -n "$CC"; then
4010 ac_cv_prog_CC="$CC" # Let the user override the test.
4012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4016 test -z "$as_dir" && as_dir=.
4017 for ac_exec_ext in '' $ac_executable_extensions; do
4018 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4019 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4030 if test -n "$CC"; then
4031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4032 $as_echo "$CC" >&6; }
4034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4035 $as_echo "no" >&6; }
4039 test -n "$CC" && break
4042 if test -z "$CC"; then
4044 for ac_prog in cl.exe
4046 # Extract the first word of "$ac_prog", so it can be a program name with args.
4047 set dummy $ac_prog; ac_word=$2
4048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4049 $as_echo_n "checking for $ac_word... " >&6; }
4050 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4051 $as_echo_n "(cached) " >&6
4053 if test -n "$ac_ct_CC"; then
4054 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4060 test -z "$as_dir" && as_dir=.
4061 for ac_exec_ext in '' $ac_executable_extensions; do
4062 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4063 ac_cv_prog_ac_ct_CC="$ac_prog"
4064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4073 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4074 if test -n "$ac_ct_CC"; then
4075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4076 $as_echo "$ac_ct_CC" >&6; }
4078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4079 $as_echo "no" >&6; }
4083 test -n "$ac_ct_CC" && break
4086 if test "x$ac_ct_CC" = x; then
4089 case $cross_compiling:$ac_tool_warned in
4091 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4092 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4093 ac_tool_warned=yes ;;
4102 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4103 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4104 as_fn_error $? "no acceptable C compiler found in \$PATH
4105 See \`config.log' for more details" "$LINENO" 5; }
4107 # Provide some information about the compiler.
4108 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4111 for ac_option in --version -v -V -qversion; do
4112 { { ac_try="$ac_compiler $ac_option >&5"
4114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4115 *) ac_try_echo=$ac_try;;
4117 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4118 $as_echo "$ac_try_echo"; } >&5
4119 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4121 if test -s conftest.err; then
4123 ... rest of stderr output deleted ...
4124 10q' conftest.err >conftest.er1
4125 cat conftest.er1 >&5
4127 rm -f conftest.er1 conftest.err
4128 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4129 test $ac_status = 0; }
4132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4133 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4134 if ${ac_cv_c_compiler_gnu+:} false; then :
4135 $as_echo_n "(cached) " >&6
4137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4138 /* end confdefs.h. */
4151 if ac_fn_c_try_compile "$LINENO"; then :
4156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4157 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4161 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4162 if test $ac_compiler_gnu = yes; then
4167 ac_test_CFLAGS=${CFLAGS+set}
4168 ac_save_CFLAGS=$CFLAGS
4169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4170 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4171 if ${ac_cv_prog_cc_g+:} false; then :
4172 $as_echo_n "(cached) " >&6
4174 ac_save_c_werror_flag=$ac_c_werror_flag
4175 ac_c_werror_flag=yes
4178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4179 /* end confdefs.h. */
4189 if ac_fn_c_try_compile "$LINENO"; then :
4193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4194 /* end confdefs.h. */
4204 if ac_fn_c_try_compile "$LINENO"; then :
4207 ac_c_werror_flag=$ac_save_c_werror_flag
4209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4210 /* end confdefs.h. */
4220 if ac_fn_c_try_compile "$LINENO"; then :
4223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4228 ac_c_werror_flag=$ac_save_c_werror_flag
4230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4231 $as_echo "$ac_cv_prog_cc_g" >&6; }
4232 if test "$ac_test_CFLAGS" = set; then
4233 CFLAGS=$ac_save_CFLAGS
4234 elif test $ac_cv_prog_cc_g = yes; then
4235 if test "$GCC" = yes; then
4241 if test "$GCC" = yes; then
4247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4248 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4249 if ${ac_cv_prog_cc_c89+:} false; then :
4250 $as_echo_n "(cached) " >&6
4252 ac_cv_prog_cc_c89=no
4254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4255 /* end confdefs.h. */
4259 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4260 struct buf { int x; };
4261 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4262 static char *e (p, i)
4268 static char *f (char * (*g) (char **, int), char **p, ...)
4273 s = g (p, va_arg (v,int));
4278 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4279 function prototypes and stuff, but not '\xHH' hex character constants.
4280 These don't provoke an error unfortunately, instead are silently treated
4281 as 'x'. The following induces an error, until -std is added to get
4282 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4283 array size at least. It's necessary to write '\x00'==0 to get something
4284 that's true only with -std. */
4285 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4287 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4288 inside strings and character constants. */
4290 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4292 int test (int i, double x);
4293 struct s1 {int (*f) (int a);};
4294 struct s2 {int (*f) (double a);};
4295 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4301 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4306 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4307 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4309 CC="$ac_save_CC $ac_arg"
4310 if ac_fn_c_try_compile "$LINENO"; then :
4311 ac_cv_prog_cc_c89=$ac_arg
4313 rm -f core conftest.err conftest.$ac_objext
4314 test "x$ac_cv_prog_cc_c89" != "xno" && break
4316 rm -f conftest.$ac_ext
4321 case "x$ac_cv_prog_cc_c89" in
4323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4324 $as_echo "none needed" >&6; } ;;
4326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4327 $as_echo "unsupported" >&6; } ;;
4329 CC="$CC $ac_cv_prog_cc_c89"
4330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4331 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4333 if test "x$ac_cv_prog_cc_c89" != xno; then :
4338 ac_cpp='$CPP $CPPFLAGS'
4339 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4340 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4341 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4343 if test "$GCC" = yes; then
4344 RDYNAMIC="-rdynamic"
4348 ac_cpp='$CPP $CPPFLAGS'
4349 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4350 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4351 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4353 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4354 # On Suns, sometimes $CPP names a directory.
4355 if test -n "$CPP" && test -d "$CPP"; then
4358 if test -z "$CPP"; then
4359 if ${ac_cv_prog_CPP+:} false; then :
4360 $as_echo_n "(cached) " >&6
4362 # Double quotes because CPP needs to be expanded
4363 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4366 for ac_c_preproc_warn_flag in '' yes
4368 # Use a header file that comes with gcc, so configuring glibc
4369 # with a fresh cross-compiler works.
4370 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4371 # <limits.h> exists even on freestanding compilers.
4372 # On the NeXT, cc -E runs the code through the compiler's parser,
4373 # not just through cpp. "Syntax error" is here to catch this case.
4374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4375 /* end confdefs.h. */
4377 # include <limits.h>
4379 # include <assert.h>
4383 if ac_fn_c_try_cpp "$LINENO"; then :
4386 # Broken: fails on valid input.
4389 rm -f conftest.err conftest.i conftest.$ac_ext
4391 # OK, works on sane cases. Now check whether nonexistent headers
4392 # can be detected and how.
4393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4394 /* end confdefs.h. */
4395 #include <ac_nonexistent.h>
4397 if ac_fn_c_try_cpp "$LINENO"; then :
4398 # Broken: success on invalid input.
4401 # Passes both tests.
4405 rm -f conftest.err conftest.i conftest.$ac_ext
4408 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4409 rm -f conftest.i conftest.err conftest.$ac_ext
4410 if $ac_preproc_ok; then :
4422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4423 $as_echo "$CPP" >&6; }
4425 for ac_c_preproc_warn_flag in '' yes
4427 # Use a header file that comes with gcc, so configuring glibc
4428 # with a fresh cross-compiler works.
4429 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4430 # <limits.h> exists even on freestanding compilers.
4431 # On the NeXT, cc -E runs the code through the compiler's parser,
4432 # not just through cpp. "Syntax error" is here to catch this case.
4433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4434 /* end confdefs.h. */
4436 # include <limits.h>
4438 # include <assert.h>
4442 if ac_fn_c_try_cpp "$LINENO"; then :
4445 # Broken: fails on valid input.
4448 rm -f conftest.err conftest.i conftest.$ac_ext
4450 # OK, works on sane cases. Now check whether nonexistent headers
4451 # can be detected and how.
4452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4453 /* end confdefs.h. */
4454 #include <ac_nonexistent.h>
4456 if ac_fn_c_try_cpp "$LINENO"; then :
4457 # Broken: success on invalid input.
4460 # Passes both tests.
4464 rm -f conftest.err conftest.i conftest.$ac_ext
4467 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4468 rm -f conftest.i conftest.err conftest.$ac_ext
4469 if $ac_preproc_ok; then :
4472 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4473 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4474 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4475 See \`config.log' for more details" "$LINENO" 5; }
4479 ac_cpp='$CPP $CPPFLAGS'
4480 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4481 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4482 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for additional special compiler flags" >&5
4485 $as_echo_n "checking for additional special compiler flags... " >&6; }
4486 if test "$GCC" = yes
4489 alpha) addcflags="-mieee" ;;
4492 if test "x$addcflags" != x
4494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $addcflags" >&5
4495 $as_echo "$addcflags" >&6; }
4496 CFLAGS="$addcflags $CFLAGS"
4498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (none)" >&5
4499 $as_echo "(none)" >&6; }
4502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4503 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4504 if ${ac_cv_path_GREP+:} false; then :
4505 $as_echo_n "(cached) " >&6
4507 if test -z "$GREP"; then
4508 ac_path_GREP_found=false
4509 # Loop through the user's path and test for each of PROGNAME-LIST
4510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4511 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4514 test -z "$as_dir" && as_dir=.
4515 for ac_prog in grep ggrep; do
4516 for ac_exec_ext in '' $ac_executable_extensions; do
4517 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4518 as_fn_executable_p "$ac_path_GREP" || continue
4519 # Check for GNU ac_path_GREP and select it if it is found.
4520 # Check for GNU $ac_path_GREP
4521 case `"$ac_path_GREP" --version 2>&1` in
4523 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4526 $as_echo_n 0123456789 >"conftest.in"
4529 cat "conftest.in" "conftest.in" >"conftest.tmp"
4530 mv "conftest.tmp" "conftest.in"
4531 cp "conftest.in" "conftest.nl"
4532 $as_echo 'GREP' >> "conftest.nl"
4533 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4534 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4535 as_fn_arith $ac_count + 1 && ac_count=$as_val
4536 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4537 # Best one so far, save it but keep looking for a better one
4538 ac_cv_path_GREP="$ac_path_GREP"
4539 ac_path_GREP_max=$ac_count
4541 # 10*(2^10) chars as input seems more than enough
4542 test $ac_count -gt 10 && break
4544 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4547 $ac_path_GREP_found && break 3
4552 if test -z "$ac_cv_path_GREP"; then
4553 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4556 ac_cv_path_GREP=$GREP
4560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4561 $as_echo "$ac_cv_path_GREP" >&6; }
4562 GREP="$ac_cv_path_GREP"
4565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4566 $as_echo_n "checking for egrep... " >&6; }
4567 if ${ac_cv_path_EGREP+:} false; then :
4568 $as_echo_n "(cached) " >&6
4570 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4571 then ac_cv_path_EGREP="$GREP -E"
4573 if test -z "$EGREP"; then
4574 ac_path_EGREP_found=false
4575 # Loop through the user's path and test for each of PROGNAME-LIST
4576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4577 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4580 test -z "$as_dir" && as_dir=.
4581 for ac_prog in egrep; do
4582 for ac_exec_ext in '' $ac_executable_extensions; do
4583 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4584 as_fn_executable_p "$ac_path_EGREP" || continue
4585 # Check for GNU ac_path_EGREP and select it if it is found.
4586 # Check for GNU $ac_path_EGREP
4587 case `"$ac_path_EGREP" --version 2>&1` in
4589 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4592 $as_echo_n 0123456789 >"conftest.in"
4595 cat "conftest.in" "conftest.in" >"conftest.tmp"
4596 mv "conftest.tmp" "conftest.in"
4597 cp "conftest.in" "conftest.nl"
4598 $as_echo 'EGREP' >> "conftest.nl"
4599 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4600 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4601 as_fn_arith $ac_count + 1 && ac_count=$as_val
4602 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4603 # Best one so far, save it but keep looking for a better one
4604 ac_cv_path_EGREP="$ac_path_EGREP"
4605 ac_path_EGREP_max=$ac_count
4607 # 10*(2^10) chars as input seems more than enough
4608 test $ac_count -gt 10 && break
4610 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4613 $ac_path_EGREP_found && break 3
4618 if test -z "$ac_cv_path_EGREP"; then
4619 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4622 ac_cv_path_EGREP=$EGREP
4627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4628 $as_echo "$ac_cv_path_EGREP" >&6; }
4629 EGREP="$ac_cv_path_EGREP"
4632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4633 $as_echo_n "checking for ANSI C header files... " >&6; }
4634 if ${ac_cv_header_stdc+:} false; then :
4635 $as_echo_n "(cached) " >&6
4637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4638 /* end confdefs.h. */
4652 if ac_fn_c_try_compile "$LINENO"; then :
4653 ac_cv_header_stdc=yes
4655 ac_cv_header_stdc=no
4657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4659 if test $ac_cv_header_stdc = yes; then
4660 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4662 /* end confdefs.h. */
4666 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4667 $EGREP "memchr" >/dev/null 2>&1; then :
4670 ac_cv_header_stdc=no
4676 if test $ac_cv_header_stdc = yes; then
4677 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4679 /* end confdefs.h. */
4683 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4684 $EGREP "free" >/dev/null 2>&1; then :
4687 ac_cv_header_stdc=no
4693 if test $ac_cv_header_stdc = yes; then
4694 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4695 if test "$cross_compiling" = yes; then :
4698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4699 /* end confdefs.h. */
4702 #if ((' ' & 0x0FF) == 0x020)
4703 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4704 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4706 # define ISLOWER(c) \
4707 (('a' <= (c) && (c) <= 'i') \
4708 || ('j' <= (c) && (c) <= 'r') \
4709 || ('s' <= (c) && (c) <= 'z'))
4710 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4713 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4718 for (i = 0; i < 256; i++)
4719 if (XOR (islower (i), ISLOWER (i))
4720 || toupper (i) != TOUPPER (i))
4725 if ac_fn_c_try_run "$LINENO"; then :
4728 ac_cv_header_stdc=no
4730 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4731 conftest.$ac_objext conftest.beam conftest.$ac_ext
4736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4737 $as_echo "$ac_cv_header_stdc" >&6; }
4738 if test $ac_cv_header_stdc = yes; then
4740 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4744 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4745 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4746 inttypes.h stdint.h unistd.h
4748 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4749 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4751 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4752 cat >>confdefs.h <<_ACEOF
4753 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4762 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4763 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4770 if test "$MINIX" = yes; then
4772 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4775 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4778 $as_echo "#define _MINIX 1" >>confdefs.h
4783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4784 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4785 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4786 $as_echo_n "(cached) " >&6
4788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4789 /* end confdefs.h. */
4791 # define __EXTENSIONS__ 1
4792 $ac_includes_default
4801 if ac_fn_c_try_compile "$LINENO"; then :
4802 ac_cv_safe_to_define___extensions__=yes
4804 ac_cv_safe_to_define___extensions__=no
4806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4809 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4810 test $ac_cv_safe_to_define___extensions__ = yes &&
4811 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4813 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4815 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4817 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4819 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4826 # Check whether --with-root-prefix was given.
4827 if test "${with_root_prefix+set}" = set; then :
4828 withval=$with_root_prefix; root_prefix=$withval
4832 # Check whether --enable-maintainer-mode was given.
4833 if test "${enable_maintainer_mode+set}" = set; then :
4834 enableval=$enable_maintainer_mode; if test "$enableval" = "no"
4837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode" >&5
4838 $as_echo "Disabling maintainer mode" >&6; }
4841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling maintainer mode" >&5
4842 $as_echo "Enabling maintainer mode" >&6; }
4847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode by default" >&5
4848 $as_echo "Disabling maintainer mode by default" >&6; }
4853 # Check whether --enable-symlink-install was given.
4854 if test "${enable_symlink_install+set}" = set; then :
4855 enableval=$enable_symlink_install; if test "$enableval" = "no"
4857 LINK_INSTALL_FLAGS=-f
4858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install" >&5
4859 $as_echo "Disabling symlinks for install" >&6; }
4861 LINK_INSTALL_FLAGS=-sf
4862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for install" >&5
4863 $as_echo "Enabling symlinks for install" >&6; }
4867 LINK_INSTALL_FLAGS=-f
4868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install by default" >&5
4869 $as_echo "Disabling symlinks for install by default" >&6; }
4874 relative_symlink_defined=
4875 # Check whether --enable-relative-symlinks was given.
4876 if test "${enable_relative_symlinks+set}" = set; then :
4877 enableval=$enable_relative_symlinks; if test "$enableval" = "no"
4880 relative_symlink_defined=yes
4881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
4882 $as_echo "Disabling relative symlinks for install" >&6; }
4884 SYMLINK_RELATIVE=--relative
4885 relative_symlink_defined=yes
4886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5
4887 $as_echo "Enabling relative symlinks for install" >&6; }
4891 # Check whether --enable-symlink-relative-symlinks was given.
4892 if test "${enable_symlink_relative_symlinks+set}" = set; then :
4893 enableval=$enable_symlink_relative_symlinks; if test "$enableval" = "no"
4895 SYMLINK_RELATIVE=yes
4896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
4897 $as_echo "Disabling relative symlinks for install" >&6; }
4899 SYMLINK_RELATIVE=--relative
4900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5
4901 $as_echo "Enabling relative symlinks for install" >&6; }
4905 if test -z "$relative_symlink_defined"
4908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install by default" >&5
4909 $as_echo "Disabling relative symlinks for install by default" >&6; }
4915 # Check whether --enable-symlink-build was given.
4916 if test "${enable_symlink_build+set}" = set; then :
4917 enableval=$enable_symlink_build; if test "$enableval" = "no"
4920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build" >&5
4921 $as_echo "Disabling symlinks for build" >&6; }
4924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for build" >&5
4925 $as_echo "Enabling symlinks for build" >&6; }
4930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build by default" >&5
4931 $as_echo "Disabling symlinks for build by default" >&6; }
4936 # Check whether --enable-verbose-makecmds was given.
4937 if test "${enable_verbose_makecmds+set}" = set; then :
4938 enableval=$enable_verbose_makecmds; if test "$enableval" = "no"
4940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
4941 $as_echo "Disabling verbose make commands" >&6; }
4946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling verbose make commands" >&5
4947 $as_echo "Enabling verbose make commands" >&6; }
4954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
4955 $as_echo "Disabling verbose make commands" >&6; }
4965 E2_PKG_CONFIG_STATIC=--static
4968 # Check whether --enable-elf-shlibs was given.
4969 if test "${enable_elf_shlibs+set}" = set; then :
4970 enableval=$enable_elf_shlibs; if test "$enableval" = "no"
4973 MAKEFILE_ELF=/dev/null
4974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries" >&5
4975 $as_echo "Disabling ELF shared libraries" >&6; }
4977 E2_PKG_CONFIG_STATIC=
4979 MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
4982 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
4988 LDFLAG_DYNAMIC='-Wl,-rpath-link,$(top_builddir)/lib'
4989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling ELF shared libraries" >&5
4990 $as_echo "Enabling ELF shared libraries" >&6; }
4994 MAKEFILE_ELF=/dev/null
4996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries by default" >&5
4997 $as_echo "Disabling ELF shared libraries by default" >&6; }
5003 # Check whether --enable-bsd-shlibs was given.
5004 if test "${enable_bsd_shlibs+set}" = set; then :
5005 enableval=$enable_bsd_shlibs; if test "$enableval" = "no"
5008 MAKEFILE_BSDLIB=/dev/null
5009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries" >&5
5010 $as_echo "Disabling BSD shared libraries" >&6; }
5012 E2_PKG_CONFIG_STATIC=
5014 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
5018 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib
5022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling BSD shared libraries" >&5
5023 $as_echo "Enabling BSD shared libraries" >&6; }
5027 MAKEFILE_BSDLIB=/dev/null
5029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries by default" >&5
5030 $as_echo "Disabling BSD shared libraries by default" >&6; }
5036 # Check whether --enable-profile was given.
5037 if test "${enable_profile+set}" = set; then :
5038 enableval=$enable_profile; if test "$enableval" = "no"
5041 MAKEFILE_PROFILE=/dev/null
5042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries" >&5
5043 $as_echo "Disabling profiling libraries" >&6; }
5046 MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
5047 PROFILED_LIB_EXT=_p.a
5048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building profiling libraries" >&5
5049 $as_echo "Building profiling libraries" >&6; }
5054 MAKEFILE_PROFILE=/dev/null
5055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries by default" >&5
5056 $as_echo "Disabling profiling libraries by default" >&6; }
5062 # Check whether --enable-gcov was given.
5063 if test "${enable_gcov+set}" = set; then :
5064 enableval=$enable_gcov; if test "$enableval" = "yes"
5066 CFLAGS="-g -fprofile-arcs -ftest-coverage"
5067 LDFLAGS="-fprofile-arcs -ftest-coverage"
5068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling gcov support" >&5
5069 $as_echo "Enabling gcov support" >&6; }
5074 CFLAGS_SHLIB="${CFLAGS_SHLIB:-$CFLAGS}"
5075 CFLAGS_STLIB="${CFLAGS_STLIB:-$CFLAGS}"
5076 LDFLAGS_SHLIB=${LDFLAGS_SHLIB:-$LDFLAGS}
5077 LDFLAGS_STATIC=${LDFLAGS_STATIC:-$LDFLAGS}
5078 # Check whether --enable-hardening was given.
5079 if test "${enable_hardening+set}" = set; then :
5080 enableval=$enable_hardening; if test "$enableval" = "yes"
5082 HARDEN_CFLAGS="-D_FORTIFY_SOURCE=2 -fstack-protector-strong"
5083 HARDEN_LDFLAGS="-Wl,-z,relro -Wl,-z,now"
5084 CFLAGS="$CFLAGS $HARDEN_CFLAGS -fPIE"
5085 CFLAGS_SHLIB="$CFLAGS_SHLIB $HARDEN_CFLAGS"
5086 CFLAGS_STLIB="$CFLAGS_STLIB $HARDEN_CFLAGS -fPIE"
5087 LDFLAGS="$LDFLAGS $HARDEN_LDFLAGS -fPIE -pie"
5088 LDFLAGS_STATIC="$LDFLAGS_STATIC $HARDEN_LDFLAGS"
5089 LDFLAGS_SHLIB="$LDFLAGS_SHLIB $HARDEN_LDFLAGS"
5090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling hardening support" >&5
5091 $as_echo "Enabling hardening support" >&6; }
5101 # Check whether --enable-jbd-debug was given.
5102 if test "${enable_jbd_debug+set}" = set; then :
5103 enableval=$enable_jbd_debug; if test "$enableval" = "no"
5105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging" >&5
5106 $as_echo "Disabling journal debugging" >&6; }
5109 $as_echo "#define CONFIG_JBD_DEBUG 1" >>confdefs.h
5111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling journal debugging" >&5
5112 $as_echo "Enabling journal debugging" >&6; }
5116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging by default" >&5
5117 $as_echo "Disabling journal debugging by default" >&6; }
5121 # Check whether --enable-blkid-debug was given.
5122 if test "${enable_blkid_debug+set}" = set; then :
5123 enableval=$enable_blkid_debug; if test "$enableval" = "no"
5125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging" >&5
5126 $as_echo "Disabling blkid debugging" >&6; }
5129 $as_echo "#define CONFIG_BLKID_DEBUG 1" >>confdefs.h
5131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling blkid debugging" >&5
5132 $as_echo "Enabling blkid debugging" >&6; }
5136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging by default" >&5
5137 $as_echo "Disabling blkid debugging by default" >&6; }
5141 # Check whether --enable-testio-debug was given.
5142 if test "${enable_testio_debug+set}" = set; then :
5143 enableval=$enable_testio_debug;
5144 if test "$enableval" = "no"
5146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling testio debugging" >&5
5147 $as_echo "Disabling testio debugging" >&6; }
5151 $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
5153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging" >&5
5154 $as_echo "Enabling testio debugging" >&6; }
5158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging by default" >&5
5159 $as_echo "Enabling testio debugging by default" >&6; }
5160 $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
5174 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5175 if test -n "$ac_tool_prefix"; then
5176 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5177 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5179 $as_echo_n "checking for $ac_word... " >&6; }
5180 if ${ac_cv_path_PKG_CONFIG+:} false; then :
5181 $as_echo_n "(cached) " >&6
5185 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5192 test -z "$as_dir" && as_dir=.
5193 for ac_exec_ext in '' $ac_executable_extensions; do
5194 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5195 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5206 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5207 if test -n "$PKG_CONFIG"; then
5208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5209 $as_echo "$PKG_CONFIG" >&6; }
5211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5212 $as_echo "no" >&6; }
5217 if test -z "$ac_cv_path_PKG_CONFIG"; then
5218 ac_pt_PKG_CONFIG=$PKG_CONFIG
5219 # Extract the first word of "pkg-config", so it can be a program name with args.
5220 set dummy pkg-config; ac_word=$2
5221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5222 $as_echo_n "checking for $ac_word... " >&6; }
5223 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
5224 $as_echo_n "(cached) " >&6
5226 case $ac_pt_PKG_CONFIG in
5228 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5235 test -z "$as_dir" && as_dir=.
5236 for ac_exec_ext in '' $ac_executable_extensions; do
5237 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5238 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5249 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5250 if test -n "$ac_pt_PKG_CONFIG"; then
5251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5252 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5255 $as_echo "no" >&6; }
5258 if test "x$ac_pt_PKG_CONFIG" = x; then
5261 case $cross_compiling:$ac_tool_warned in
5263 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5264 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5265 ac_tool_warned=yes ;;
5267 PKG_CONFIG=$ac_pt_PKG_CONFIG
5270 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5274 if test -n "$PKG_CONFIG"; then
5275 _pkg_min_version=0.9.0
5276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5277 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5278 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5280 $as_echo "yes" >&6; }
5282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5283 $as_echo "no" >&6; }
5292 DEPPROFILED_LIBUUID=
5294 # Check whether --enable-libuuid was given.
5295 if test "${enable_libuuid+set}" = set; then :
5296 enableval=$enable_libuuid; if test "$enableval" = "no"
5298 if test -z "$PKG_CONFIG"; then
5299 as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5
5302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
5303 $as_echo_n "checking for uuid_generate in -luuid... " >&6; }
5304 if ${ac_cv_lib_uuid_uuid_generate+:} false; then :
5305 $as_echo_n "(cached) " >&6
5307 ac_check_lib_save_LIBS=$LIBS
5309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5310 /* end confdefs.h. */
5312 /* Override any GCC internal prototype to avoid an error.
5313 Use char because int might match the return type of a GCC
5314 builtin and then its argument prototype would still apply. */
5318 char uuid_generate ();
5322 return uuid_generate ();
5327 if ac_fn_c_try_link "$LINENO"; then :
5328 ac_cv_lib_uuid_uuid_generate=yes
5330 ac_cv_lib_uuid_uuid_generate=no
5332 rm -f core conftest.err conftest.$ac_objext \
5333 conftest$ac_exeext conftest.$ac_ext
5334 LIBS=$ac_check_lib_save_LIBS
5336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
5337 $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
5338 if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then :
5339 LIBUUID=`$PKG_CONFIG --libs uuid`;
5340 STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid`
5342 as_fn_error $? "external uuid library not found" "$LINENO" 5
5345 PROFILED_LIBUUID=$LIBUUID
5347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private uuid library" >&5
5348 $as_echo "Disabling private uuid library" >&6; }
5350 LIBUUID='$(LIB)/libuuid'$LIB_EXT
5352 STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
5353 DEPSTATIC_LIBUUID=$STATIC_LIBUUID
5354 PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
5355 DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
5356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library" >&5
5357 $as_echo "Enabling private uuid library" >&6; }
5361 if test -n "$PKG_CONFIG"; then
5362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
5363 $as_echo_n "checking for uuid_generate in -luuid... " >&6; }
5364 if ${ac_cv_lib_uuid_uuid_generate+:} false; then :
5365 $as_echo_n "(cached) " >&6
5367 ac_check_lib_save_LIBS=$LIBS
5369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5370 /* end confdefs.h. */
5372 /* Override any GCC internal prototype to avoid an error.
5373 Use char because int might match the return type of a GCC
5374 builtin and then its argument prototype would still apply. */
5378 char uuid_generate ();
5382 return uuid_generate ();
5387 if ac_fn_c_try_link "$LINENO"; then :
5388 ac_cv_lib_uuid_uuid_generate=yes
5390 ac_cv_lib_uuid_uuid_generate=no
5392 rm -f core conftest.err conftest.$ac_objext \
5393 conftest$ac_exeext conftest.$ac_ext
5394 LIBS=$ac_check_lib_save_LIBS
5396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
5397 $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
5398 if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then :
5399 LIBUUID=`$PKG_CONFIG --libs uuid`;
5400 STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid`
5404 if test -n "$LIBUUID"; then
5405 PROFILED_LIBUUID=$LIBUUID
5407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using system uuid by default" >&5
5408 $as_echo "Using system uuid by default" >&6; }
5410 LIBUUID='$(LIB)/libuuid'$LIB_EXT
5412 STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
5413 DEPSTATIC_LIBUUID=$STATIC_LIBUUID
5414 PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
5415 DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
5416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library by default" >&5
5417 $as_echo "Enabling private uuid library by default" >&6; }
5436 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5437 if test -n "$ac_tool_prefix"; then
5438 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5439 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5441 $as_echo_n "checking for $ac_word... " >&6; }
5442 if ${ac_cv_path_PKG_CONFIG+:} false; then :
5443 $as_echo_n "(cached) " >&6
5447 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5454 test -z "$as_dir" && as_dir=.
5455 for ac_exec_ext in '' $ac_executable_extensions; do
5456 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5457 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5458 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5468 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5469 if test -n "$PKG_CONFIG"; then
5470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5471 $as_echo "$PKG_CONFIG" >&6; }
5473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5474 $as_echo "no" >&6; }
5479 if test -z "$ac_cv_path_PKG_CONFIG"; then
5480 ac_pt_PKG_CONFIG=$PKG_CONFIG
5481 # Extract the first word of "pkg-config", so it can be a program name with args.
5482 set dummy pkg-config; ac_word=$2
5483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5484 $as_echo_n "checking for $ac_word... " >&6; }
5485 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
5486 $as_echo_n "(cached) " >&6
5488 case $ac_pt_PKG_CONFIG in
5490 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5497 test -z "$as_dir" && as_dir=.
5498 for ac_exec_ext in '' $ac_executable_extensions; do
5499 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5500 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5501 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5511 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5512 if test -n "$ac_pt_PKG_CONFIG"; then
5513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5514 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5517 $as_echo "no" >&6; }
5520 if test "x$ac_pt_PKG_CONFIG" = x; then
5523 case $cross_compiling:$ac_tool_warned in
5525 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5526 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5527 ac_tool_warned=yes ;;
5529 PKG_CONFIG=$ac_pt_PKG_CONFIG
5532 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5536 if test -n "$PKG_CONFIG"; then
5537 _pkg_min_version=0.9.0
5538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5539 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5540 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5542 $as_echo "yes" >&6; }
5544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5545 $as_echo "no" >&6; }
5554 DEPPROFILED_LIBBLKID=
5557 # Check whether --enable-libblkid was given.
5558 if test "${enable_libblkid+set}" = set; then :
5559 enableval=$enable_libblkid; if test "$enableval" = "no"
5561 if test -z "$PKG_CONFIG"; then
5562 as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5
5565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
5566 $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
5567 if ${ac_cv_lib_blkid_blkid_get_cache+:} false; then :
5568 $as_echo_n "(cached) " >&6
5570 ac_check_lib_save_LIBS=$LIBS
5571 LIBS="-lblkid -luuid $LIBS"
5572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5573 /* end confdefs.h. */
5575 /* Override any GCC internal prototype to avoid an error.
5576 Use char because int might match the return type of a GCC
5577 builtin and then its argument prototype would still apply. */
5581 char blkid_get_cache ();
5585 return blkid_get_cache ();
5590 if ac_fn_c_try_link "$LINENO"; then :
5591 ac_cv_lib_blkid_blkid_get_cache=yes
5593 ac_cv_lib_blkid_blkid_get_cache=no
5595 rm -f core conftest.err conftest.$ac_objext \
5596 conftest$ac_exeext conftest.$ac_ext
5597 LIBS=$ac_check_lib_save_LIBS
5599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
5600 $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
5601 if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes; then :
5602 LIBBLKID=`$PKG_CONFIG --libs blkid`;
5603 STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid`
5605 as_fn_error $? "external blkid library not found" "$LINENO" 5
5609 PROFILED_LIBBLKID=$LIBBLKID
5610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private blkid library" >&5
5611 $as_echo "Disabling private blkid library" >&6; }
5613 LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5614 DEPLIBBLKID=$LIBBLKID
5615 STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5616 DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5617 PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5618 DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
5619 $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
5621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library" >&5
5622 $as_echo "Enabling private blkid library" >&6; }
5626 if test -n "$PKG_CONFIG"; then
5627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
5628 $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
5629 if ${ac_cv_lib_blkid_blkid_get_cache+:} false; then :
5630 $as_echo_n "(cached) " >&6
5632 ac_check_lib_save_LIBS=$LIBS
5633 LIBS="-lblkid $LIBS"
5634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5635 /* end confdefs.h. */
5637 /* Override any GCC internal prototype to avoid an error.
5638 Use char because int might match the return type of a GCC
5639 builtin and then its argument prototype would still apply. */
5643 char blkid_get_cache ();
5647 return blkid_get_cache ();
5652 if ac_fn_c_try_link "$LINENO"; then :
5653 ac_cv_lib_blkid_blkid_get_cache=yes
5655 ac_cv_lib_blkid_blkid_get_cache=no
5657 rm -f core conftest.err conftest.$ac_objext \
5658 conftest$ac_exeext conftest.$ac_ext
5659 LIBS=$ac_check_lib_save_LIBS
5661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
5662 $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
5663 if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes; then :
5664 LIBBLKID=`$PKG_CONFIG --libs blkid`;
5665 STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid`
5669 if test -n "$LIBBLKID"; then
5671 PROFILED_LIBBLKID=$LIBBLKID
5672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using system blkid library by default" >&5
5673 $as_echo "Using system blkid library by default" >&6; }
5675 LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5676 DEPLIBBLKID=$LIBBLKID
5677 STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5678 DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5679 PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5680 DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
5681 $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
5683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library by default" >&5
5684 $as_echo "Enabling private blkid library by default" >&6; }
5697 # Check whether --enable-backtrace was given.
5698 if test "${enable_backtrace+set}" = set; then :
5699 enableval=$enable_backtrace; if test "$enableval" = "no"
5701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling use of backtrace" >&5
5702 $as_echo "Disabling use of backtrace" >&6; }
5703 $as_echo "#define DISABLE_BACKTRACE 1" >>confdefs.h
5706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace" >&5
5707 $as_echo "Enabling use of backtrace" >&6; }
5711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace by default" >&5
5712 $as_echo "Enabling use of backtrace by default" >&6; }
5716 # Check whether --enable-debugfs was given.
5717 if test "${enable_debugfs+set}" = set; then :
5718 enableval=$enable_debugfs; if test "$enableval" = "no"
5720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling debugfs support" >&5
5721 $as_echo "Disabling debugfs support" >&6; }
5725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support" >&5
5726 $as_echo "Enabling debugfs support" >&6; }
5730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support by default" >&5
5731 $as_echo "Enabling debugfs support by default" >&6; }
5737 # Check whether --enable-imager was given.
5738 if test "${enable_imager+set}" = set; then :
5739 enableval=$enable_imager; if test "$enableval" = "no"
5741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2image support" >&5
5742 $as_echo "Disabling e2image support" >&6; }
5746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support" >&5
5747 $as_echo "Enabling e2image support" >&6; }
5751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support by default" >&5
5752 $as_echo "Enabling e2image support by default" >&6; }
5758 # Check whether --enable-resizer was given.
5759 if test "${enable_resizer+set}" = set; then :
5760 enableval=$enable_resizer; if test "$enableval" = "no"
5762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2resize support" >&5
5763 $as_echo "Disabling e2resize support" >&6; }
5767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support" >&5
5768 $as_echo "Enabling e2resize support" >&6; }
5772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support by default" >&5
5773 $as_echo "Enabling e2resize support by default" >&6; }
5779 # Check whether --enable-defrag was given.
5780 if test "${enable_defrag+set}" = set; then :
5781 enableval=$enable_defrag; if test "$enableval" = "no"
5783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support" >&5
5784 $as_echo "Disabling e4defrag support" >&6; }
5788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support" >&5
5789 $as_echo "Enabling e4defrag support" >&6; }
5793 if test -z "$WITH_DIET_LIBC"
5795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support by default" >&5
5796 $as_echo "Enabling e4defrag support by default" >&6; }
5799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support by default" >&5
5800 $as_echo "Disabling e4defrag support by default" >&6; }
5807 # Check whether --enable-fsck was given.
5808 if test "${enable_fsck+set}" = set; then :
5809 enableval=$enable_fsck; if test "$enableval" = "no"
5811 FSCK_PROG='' FSCK_MAN=''
5812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper" >&5
5813 $as_echo "Not building fsck wrapper" >&6; }
5815 FSCK_PROG=fsck FSCK_MAN=fsck.8
5816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper" >&5
5817 $as_echo "Building fsck wrapper" >&6; }
5823 FSCK_PROG='' FSCK_MAN=''
5824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper by default" >&5
5825 $as_echo "Not building fsck wrapper by default" >&6; }
5828 FSCK_PROG=fsck FSCK_MAN=fsck.8
5829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper by default" >&5
5830 $as_echo "Building fsck wrapper by default" >&6; }
5837 # Check whether --enable-e2initrd-helper was given.
5838 if test "${enable_e2initrd_helper+set}" = set; then :
5839 enableval=$enable_e2initrd_helper; if test "$enableval" = "no"
5841 E2INITRD_PROG='' E2INITRD_MAN=''
5842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building e2initrd helper" >&5
5843 $as_echo "Not building e2initrd helper" >&6; }
5845 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
5846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper" >&5
5847 $as_echo "Building e2initrd helper" >&6; }
5851 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
5852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper by default" >&5
5853 $as_echo "Building e2initrd helper by default" >&6; }
5859 # Check whether --enable-tls was given.
5860 if test "${enable_tls+set}" = set; then :
5861 enableval=$enable_tls; if test "$enableval" = "no"
5864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling thread local support" >&5
5865 $as_echo "Disabling thread local support" >&6; }
5868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling thread local support" >&5
5869 $as_echo "Enabling thread local support" >&6; }
5873 if test -n "$WITH_DIET_LIBC"
5876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Diet libc does not support thread local support" >&5
5877 $as_echo "Diet libc does not support thread local support" >&6; }
5880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Try using thread local support by default" >&5
5881 $as_echo "Try using thread local support by default" >&6; }
5886 if test "$try_tls" = "yes"
5889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread local storage (TLS) class" >&5
5890 $as_echo_n "checking for thread local storage (TLS) class... " >&6; }
5891 if ${ac_cv_tls+:} false; then :
5892 $as_echo_n "(cached) " >&6
5895 ax_tls_keywords="__thread __declspec(thread) none"
5896 for ax_tls_keyword in $ax_tls_keywords; do
5897 case $ax_tls_keyword in
5898 none) ac_cv_tls=none ; break ;;
5900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5901 /* end confdefs.h. */
5905 static $ax_tls_keyword int bar;
5916 if ac_fn_c_try_compile "$LINENO"; then :
5917 ac_cv_tls=$ax_tls_keyword ; break
5922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5929 if test "$ac_cv_tls" != "none"; then
5931 cat >>confdefs.h <<_ACEOF
5932 #define TLS $ac_cv_tls
5936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tls" >&5
5937 $as_echo "$ac_cv_tls" >&6; }
5941 # Check whether --enable-uuidd was given.
5942 if test "${enable_uuidd+set}" = set; then :
5943 enableval=$enable_uuidd; if test "$enableval" = "no"
5945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building uuidd" >&5
5946 $as_echo "Not building uuidd" >&6; }
5949 $as_echo "#define USE_UUIDD 1" >>confdefs.h
5952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd" >&5
5953 $as_echo "Building uuidd" >&6; }
5957 $as_echo "#define USE_UUIDD 1" >>confdefs.h
5959 if test -z "$UUID_CMT"
5962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd by default" >&5
5963 $as_echo "Building uuidd by default" >&6; }
5966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling uuidd by default" >&5
5967 $as_echo "Disabling uuidd by default" >&6; }
5974 # Check whether --enable-mmp was given.
5975 if test "${enable_mmp+set}" = set; then :
5976 enableval=$enable_mmp; if test "$enableval" = "no"
5978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling mmp support" >&5
5979 $as_echo "Disabling mmp support" >&6; }
5981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support" >&5
5982 $as_echo "Enabling mmp support" >&6; }
5983 $as_echo "#define CONFIG_MMP 1" >>confdefs.h
5988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support by default" >&5
5989 $as_echo "Enabling mmp support by default" >&6; }
5990 $as_echo "#define CONFIG_MMP 1" >>confdefs.h
5996 # Check whether --enable-tdb was given.
5997 if test "${enable_tdb+set}" = set; then :
5998 enableval=$enable_tdb; if test "$enableval" = "no"
6000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling tdb support" >&5
6001 $as_echo "Disabling tdb support" >&6; }
6003 TDB_MAN_COMMENT='.\"'
6005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling tdb support" >&5
6006 $as_echo "Enabling tdb support" >&6; }
6007 $as_echo "#define CONFIG_TDB 1" >>confdefs.h
6014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support by default" >&5
6015 $as_echo "Enabling mmp support by default" >&6; }
6016 $as_echo "#define CONFIG_TDB 1" >>confdefs.h
6026 # Check whether --enable-bmap-stats was given.
6027 if test "${enable_bmap_stats+set}" = set; then :
6028 enableval=$enable_bmap_stats; if test "$enableval" = "no"
6030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling bitmap statistics support" >&5
6031 $as_echo "Disabling bitmap statistics support" >&6; }
6033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling bitmap statistics support" >&5
6034 $as_echo "Enabling bitmap statistics support" >&6; }
6035 $as_echo "#define ENABLE_BMAP_STATS 1" >>confdefs.h
6040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling bitmap statistics support by default" >&5
6041 $as_echo "Enabling bitmap statistics support by default" >&6; }
6042 $as_echo "#define ENABLE_BMAP_STATS 1" >>confdefs.h
6048 # Check whether --enable-bmap-stats-ops was given.
6049 if test "${enable_bmap_stats_ops+set}" = set; then :
6050 enableval=$enable_bmap_stats_ops; if test "$enableval" = "no"
6052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling additional bitmap statistics" >&5
6053 $as_echo "Disabling additional bitmap statistics" >&6; }
6055 if test "x${enable_bmap_stats}" = "xno"; then :
6056 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6057 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6058 as_fn_error $? "Error --enable-bmap-stats-ops requires bmap-stats
6059 See \`config.log' for more details" "$LINENO" 5; }
6062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling additional bitmap statistics" >&5
6063 $as_echo "Enabling additional bitmap statistics" >&6; }
6064 $as_echo "#define ENABLE_BMAP_STATS_OPS 1" >>confdefs.h
6069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling additional bitmap statistics by default" >&5
6070 $as_echo "Disabling additional bitmap statistics by default" >&6; }
6074 MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
6076 GETTEXT_PACKAGE=e2fsprogs
6078 VERSION="$E2FSPROGS_VERSION"
6081 cat >>confdefs.h <<_ACEOF
6082 #define PACKAGE "$PACKAGE"
6086 cat >>confdefs.h <<_ACEOF
6087 #define VERSION "$VERSION"
6094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6095 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6097 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6098 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
6099 $as_echo_n "(cached) " >&6
6101 cat >conftest.make <<\_ACEOF
6104 @echo '@@@%%%=$(MAKE)=@@@%%%'
6106 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
6107 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6109 eval ac_cv_prog_make_${ac_make}_set=yes;;
6111 eval ac_cv_prog_make_${ac_make}_set=no;;
6115 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6117 $as_echo "yes" >&6; }
6120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6121 $as_echo "no" >&6; }
6122 SET_MAKE="MAKE=${MAKE-make}"
6125 # Find a good install program. We prefer a C program (faster),
6126 # so one script is as good as another. But avoid the broken or
6127 # incompatible versions:
6128 # SysV /etc/install, /usr/sbin/install
6129 # SunOS /usr/etc/install
6130 # IRIX /sbin/install
6132 # AmigaOS /C/install, which installs bootblocks on floppy discs
6133 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6134 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6135 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6136 # OS/2's system install, which has a completely different semantic
6137 # ./install, which can be erroneously created by make from ./install.sh.
6138 # Reject install programs that cannot install multiple files.
6139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
6140 $as_echo_n "checking for a BSD-compatible install... " >&6; }
6141 if test -z "$INSTALL"; then
6142 if ${ac_cv_path_install+:} false; then :
6143 $as_echo_n "(cached) " >&6
6145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6149 test -z "$as_dir" && as_dir=.
6150 # Account for people who put trailing slashes in PATH elements.
6151 case $as_dir/ in #((
6152 ./ | .// | /[cC]/* | \
6153 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6154 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
6157 # OSF1 and SCO ODT 3.0 have their own names for install.
6158 # Don't use installbsd from OSF since it installs stuff as root
6160 for ac_prog in ginstall scoinst install; do
6161 for ac_exec_ext in '' $ac_executable_extensions; do
6162 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
6163 if test $ac_prog = install &&
6164 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6165 # AIX install. It has an incompatible calling convention.
6167 elif test $ac_prog = install &&
6168 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6169 # program-specific install script used by HP pwplus--don't use.
6172 rm -rf conftest.one conftest.two conftest.dir
6173 echo one > conftest.one
6174 echo two > conftest.two
6176 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
6177 test -s conftest.one && test -s conftest.two &&
6178 test -s conftest.dir/conftest.one &&
6179 test -s conftest.dir/conftest.two
6181 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6194 rm -rf conftest.one conftest.two conftest.dir
6197 if test "${ac_cv_path_install+set}" = set; then
6198 INSTALL=$ac_cv_path_install
6200 # As a last resort, use the slow shell script. Don't cache a
6201 # value for INSTALL within a source directory, because that will
6202 # break other packages using the cache if that directory is
6203 # removed, or if the value is a relative name.
6204 INSTALL=$ac_install_sh
6207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
6208 $as_echo "$INSTALL" >&6; }
6210 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6211 # It thinks the first close brace ends the variable substitution.
6212 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6214 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6216 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
6219 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
6220 if test -z "$MKDIR_P"; then
6221 if ${ac_cv_path_mkdir+:} false; then :
6222 $as_echo_n "(cached) " >&6
6224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6225 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
6228 test -z "$as_dir" && as_dir=.
6229 for ac_prog in mkdir gmkdir; do
6230 for ac_exec_ext in '' $ac_executable_extensions; do
6231 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
6232 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
6233 'mkdir (GNU coreutils) '* | \
6234 'mkdir (coreutils) '* | \
6235 'mkdir (fileutils) '4.1*)
6236 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
6246 test -d ./--version && rmdir ./--version
6247 if test "${ac_cv_path_mkdir+set}" = set; then
6248 MKDIR_P="$ac_cv_path_mkdir -p"
6250 # As a last resort, use the slow shell script. Don't cache a
6251 # value for MKDIR_P within a source directory, because that will
6252 # break other packages using the cache if that directory is
6253 # removed, or if the value is a relative name.
6254 MKDIR_P="$ac_install_sh -d"
6257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
6258 $as_echo "$MKDIR_P" >&6; }
6260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6261 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6262 if ${ac_cv_path_SED+:} false; then :
6263 $as_echo_n "(cached) " >&6
6265 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6266 for ac_i in 1 2 3 4 5 6 7; do
6267 ac_script="$ac_script$as_nl$ac_script"
6269 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6270 { ac_script=; unset ac_script;}
6271 if test -z "$SED"; then
6272 ac_path_SED_found=false
6273 # Loop through the user's path and test for each of PROGNAME-LIST
6274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6278 test -z "$as_dir" && as_dir=.
6279 for ac_prog in sed gsed; do
6280 for ac_exec_ext in '' $ac_executable_extensions; do
6281 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6282 as_fn_executable_p "$ac_path_SED" || continue
6283 # Check for GNU ac_path_SED and select it if it is found.
6284 # Check for GNU $ac_path_SED
6285 case `"$ac_path_SED" --version 2>&1` in
6287 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6290 $as_echo_n 0123456789 >"conftest.in"
6293 cat "conftest.in" "conftest.in" >"conftest.tmp"
6294 mv "conftest.tmp" "conftest.in"
6295 cp "conftest.in" "conftest.nl"
6296 $as_echo '' >> "conftest.nl"
6297 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6298 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6299 as_fn_arith $ac_count + 1 && ac_count=$as_val
6300 if test $ac_count -gt ${ac_path_SED_max-0}; then
6301 # Best one so far, save it but keep looking for a better one
6302 ac_cv_path_SED="$ac_path_SED"
6303 ac_path_SED_max=$ac_count
6305 # 10*(2^10) chars as input seems more than enough
6306 test $ac_count -gt 10 && break
6308 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6311 $ac_path_SED_found && break 3
6316 if test -z "$ac_cv_path_SED"; then
6317 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6325 $as_echo "$ac_cv_path_SED" >&6; }
6326 SED="$ac_cv_path_SED"
6330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
6331 $as_echo_n "checking whether NLS is requested... " >&6; }
6332 # Check whether --enable-nls was given.
6333 if test "${enable_nls+set}" = set; then :
6334 enableval=$enable_nls; USE_NLS=$enableval
6339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
6340 $as_echo "$USE_NLS" >&6; }
6345 GETTEXT_MACRO_VERSION=0.18
6350 # Prepare PATH_SEPARATOR.
6351 # The user is always right.
6352 if test "${PATH_SEPARATOR+set}" != set; then
6353 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
6354 # contains only /bin. Note that ksh looks also at the FPATH variable,
6355 # so we have to set that as well for the test.
6357 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6358 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6359 || PATH_SEPARATOR=';'
6363 # Find out how to test for executable files. Don't use a zero-byte file,
6364 # as systems may use methods other than mode bits to determine executability.
6365 cat >conf$$.file <<_ASEOF
6369 chmod +x conf$$.file
6370 if test -x conf$$.file >/dev/null 2>&1; then
6371 ac_executable_p="test -x"
6373 ac_executable_p="test -f"
6377 # Extract the first word of "msgfmt", so it can be a program name with args.
6378 set dummy msgfmt; ac_word=$2
6379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6380 $as_echo_n "checking for $ac_word... " >&6; }
6381 if ${ac_cv_path_MSGFMT+:} false; then :
6382 $as_echo_n "(cached) " >&6
6386 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
6389 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6390 for ac_dir in $PATH; do
6392 test -z "$ac_dir" && ac_dir=.
6393 for ac_exec_ext in '' $ac_executable_extensions; do
6394 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6395 echo "$as_me: trying $ac_dir/$ac_word..." >&5
6396 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
6397 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6398 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
6405 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
6409 MSGFMT="$ac_cv_path_MSGFMT"
6410 if test "$MSGFMT" != ":"; then
6411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
6412 $as_echo "$MSGFMT" >&6; }
6414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6415 $as_echo "no" >&6; }
6418 # Extract the first word of "gmsgfmt", so it can be a program name with args.
6419 set dummy gmsgfmt; ac_word=$2
6420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6421 $as_echo_n "checking for $ac_word... " >&6; }
6422 if ${ac_cv_path_GMSGFMT+:} false; then :
6423 $as_echo_n "(cached) " >&6
6427 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
6430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6434 test -z "$as_dir" && as_dir=.
6435 for ac_exec_ext in '' $ac_executable_extensions; do
6436 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6437 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
6438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6445 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
6449 GMSGFMT=$ac_cv_path_GMSGFMT
6450 if test -n "$GMSGFMT"; then
6451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
6452 $as_echo "$GMSGFMT" >&6; }
6454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6455 $as_echo "no" >&6; }
6460 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6461 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
6462 *) MSGFMT_015=$MSGFMT ;;
6465 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6466 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
6467 *) GMSGFMT_015=$GMSGFMT ;;
6472 # Prepare PATH_SEPARATOR.
6473 # The user is always right.
6474 if test "${PATH_SEPARATOR+set}" != set; then
6475 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
6476 # contains only /bin. Note that ksh looks also at the FPATH variable,
6477 # so we have to set that as well for the test.
6479 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6480 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6481 || PATH_SEPARATOR=';'
6485 # Find out how to test for executable files. Don't use a zero-byte file,
6486 # as systems may use methods other than mode bits to determine executability.
6487 cat >conf$$.file <<_ASEOF
6491 chmod +x conf$$.file
6492 if test -x conf$$.file >/dev/null 2>&1; then
6493 ac_executable_p="test -x"
6495 ac_executable_p="test -f"
6499 # Extract the first word of "xgettext", so it can be a program name with args.
6500 set dummy xgettext; ac_word=$2
6501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6502 $as_echo_n "checking for $ac_word... " >&6; }
6503 if ${ac_cv_path_XGETTEXT+:} false; then :
6504 $as_echo_n "(cached) " >&6
6508 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
6511 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6512 for ac_dir in $PATH; do
6514 test -z "$ac_dir" && ac_dir=.
6515 for ac_exec_ext in '' $ac_executable_extensions; do
6516 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6517 echo "$as_me: trying $ac_dir/$ac_word..." >&5
6518 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
6519 (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
6520 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
6527 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
6531 XGETTEXT="$ac_cv_path_XGETTEXT"
6532 if test "$XGETTEXT" != ":"; then
6533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
6534 $as_echo "$XGETTEXT" >&6; }
6536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6537 $as_echo "no" >&6; }
6542 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6543 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
6544 *) XGETTEXT_015=$XGETTEXT ;;
6549 # Prepare PATH_SEPARATOR.
6550 # The user is always right.
6551 if test "${PATH_SEPARATOR+set}" != set; then
6552 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
6553 # contains only /bin. Note that ksh looks also at the FPATH variable,
6554 # so we have to set that as well for the test.
6556 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6557 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6558 || PATH_SEPARATOR=';'
6562 # Find out how to test for executable files. Don't use a zero-byte file,
6563 # as systems may use methods other than mode bits to determine executability.
6564 cat >conf$$.file <<_ASEOF
6568 chmod +x conf$$.file
6569 if test -x conf$$.file >/dev/null 2>&1; then
6570 ac_executable_p="test -x"
6572 ac_executable_p="test -f"
6576 # Extract the first word of "msgmerge", so it can be a program name with args.
6577 set dummy msgmerge; ac_word=$2
6578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6579 $as_echo_n "checking for $ac_word... " >&6; }
6580 if ${ac_cv_path_MSGMERGE+:} false; then :
6581 $as_echo_n "(cached) " >&6
6585 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
6588 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6589 for ac_dir in $PATH; do
6591 test -z "$ac_dir" && ac_dir=.
6592 for ac_exec_ext in '' $ac_executable_extensions; do
6593 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6594 echo "$as_me: trying $ac_dir/$ac_word..." >&5
6595 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
6596 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
6603 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
6607 MSGMERGE="$ac_cv_path_MSGMERGE"
6608 if test "$MSGMERGE" != ":"; then
6609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
6610 $as_echo "$MSGMERGE" >&6; }
6612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6613 $as_echo "no" >&6; }
6617 test -n "$localedir" || localedir='${datadir}/locale'
6620 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
6623 ac_config_commands="$ac_config_commands po-directories"
6627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2 or newer" >&5
6628 $as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; }
6629 if ${ac_cv_gnu_library_2+:} false; then :
6630 $as_echo_n "(cached) " >&6
6632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6633 /* end confdefs.h. */
6635 #include <features.h>
6636 #ifdef __GNU_LIBRARY__
6637 #if (__GLIBC__ >= 2) && !defined __UCLIBC__
6643 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6644 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
6645 ac_cv_gnu_library_2=yes
6647 ac_cv_gnu_library_2=no
6654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2" >&5
6655 $as_echo "$ac_cv_gnu_library_2" >&6; }
6657 GLIBC2="$ac_cv_gnu_library_2"
6660 if test -n "$ac_tool_prefix"; then
6661 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6662 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6664 $as_echo_n "checking for $ac_word... " >&6; }
6665 if ${ac_cv_prog_RANLIB+:} false; then :
6666 $as_echo_n "(cached) " >&6
6668 if test -n "$RANLIB"; then
6669 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6675 test -z "$as_dir" && as_dir=.
6676 for ac_exec_ext in '' $ac_executable_extensions; do
6677 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6678 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6679 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6688 RANLIB=$ac_cv_prog_RANLIB
6689 if test -n "$RANLIB"; then
6690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6691 $as_echo "$RANLIB" >&6; }
6693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6694 $as_echo "no" >&6; }
6699 if test -z "$ac_cv_prog_RANLIB"; then
6700 ac_ct_RANLIB=$RANLIB
6701 # Extract the first word of "ranlib", so it can be a program name with args.
6702 set dummy ranlib; ac_word=$2
6703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6704 $as_echo_n "checking for $ac_word... " >&6; }
6705 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6706 $as_echo_n "(cached) " >&6
6708 if test -n "$ac_ct_RANLIB"; then
6709 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6715 test -z "$as_dir" && as_dir=.
6716 for ac_exec_ext in '' $ac_executable_extensions; do
6717 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6718 ac_cv_prog_ac_ct_RANLIB="ranlib"
6719 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6728 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6729 if test -n "$ac_ct_RANLIB"; then
6730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6731 $as_echo "$ac_ct_RANLIB" >&6; }
6733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6734 $as_echo "no" >&6; }
6737 if test "x$ac_ct_RANLIB" = x; then
6740 case $cross_compiling:$ac_tool_warned in
6742 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6743 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6744 ac_tool_warned=yes ;;
6746 RANLIB=$ac_ct_RANLIB
6749 RANLIB="$ac_cv_prog_RANLIB"
6756 if test -n "$GCC"; then
6757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the -Werror option is usable" >&5
6758 $as_echo_n "checking whether the -Werror option is usable... " >&6; }
6759 if ${gl_cv_cc_vis_werror+:} false; then :
6760 $as_echo_n "(cached) " >&6
6763 gl_save_CFLAGS="$CFLAGS"
6764 CFLAGS="$CFLAGS -Werror"
6765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6766 /* end confdefs.h. */
6776 if ac_fn_c_try_compile "$LINENO"; then :
6777 gl_cv_cc_vis_werror=yes
6779 gl_cv_cc_vis_werror=no
6781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6782 CFLAGS="$gl_save_CFLAGS"
6785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_vis_werror" >&5
6786 $as_echo "$gl_cv_cc_vis_werror" >&6; }
6787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5
6788 $as_echo_n "checking for simple visibility declarations... " >&6; }
6789 if ${gl_cv_cc_visibility+:} false; then :
6790 $as_echo_n "(cached) " >&6
6793 gl_save_CFLAGS="$CFLAGS"
6794 CFLAGS="$CFLAGS -fvisibility=hidden"
6795 if test $gl_cv_cc_vis_werror = yes; then
6796 CFLAGS="$CFLAGS -Werror"
6798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6799 /* end confdefs.h. */
6800 extern __attribute__((__visibility__("hidden"))) int hiddenvar;
6801 extern __attribute__((__visibility__("default"))) int exportedvar;
6802 extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
6803 extern __attribute__((__visibility__("default"))) int exportedfunc (void);
6804 void dummyfunc (void) {}
6814 if ac_fn_c_try_compile "$LINENO"; then :
6815 gl_cv_cc_visibility=yes
6817 gl_cv_cc_visibility=no
6819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6820 CFLAGS="$gl_save_CFLAGS"
6823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5
6824 $as_echo "$gl_cv_cc_visibility" >&6; }
6825 if test $gl_cv_cc_visibility = yes; then
6826 CFLAG_VISIBILITY="-fvisibility=hidden"
6833 cat >>confdefs.h <<_ACEOF
6834 #define HAVE_VISIBILITY $HAVE_VISIBILITY
6838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
6839 $as_echo_n "checking for inline... " >&6; }
6840 if ${ac_cv_c_inline+:} false; then :
6841 $as_echo_n "(cached) " >&6
6844 for ac_kw in inline __inline__ __inline; do
6845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6846 /* end confdefs.h. */
6849 static $ac_kw foo_t static_foo () {return 0; }
6850 $ac_kw foo_t foo () {return 0; }
6854 if ac_fn_c_try_compile "$LINENO"; then :
6855 ac_cv_c_inline=$ac_kw
6857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6858 test "$ac_cv_c_inline" != no && break
6862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
6863 $as_echo "$ac_cv_c_inline" >&6; }
6865 case $ac_cv_c_inline in
6868 case $ac_cv_c_inline in
6870 *) ac_val=$ac_cv_c_inline;;
6872 cat >>confdefs.h <<_ACEOF
6874 #define inline $ac_val
6880 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6881 if test "x$ac_cv_type_size_t" = xyes; then :
6885 cat >>confdefs.h <<_ACEOF
6886 #define size_t unsigned int
6892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
6893 $as_echo_n "checking for stdint.h... " >&6; }
6894 if ${gl_cv_header_stdint_h+:} false; then :
6895 $as_echo_n "(cached) " >&6
6897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6898 /* end confdefs.h. */
6899 #include <sys/types.h>
6904 uintmax_t i = (uintmax_t) -1; return !i;
6909 if ac_fn_c_try_compile "$LINENO"; then :
6910 gl_cv_header_stdint_h=yes
6912 gl_cv_header_stdint_h=no
6914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
6917 $as_echo "$gl_cv_header_stdint_h" >&6; }
6918 if test $gl_cv_header_stdint_h = yes; then
6920 cat >>confdefs.h <<_ACEOF
6921 #define HAVE_STDINT_H_WITH_UINTMAX 1
6926 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6927 # for constant arguments. Useless!
6928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
6929 $as_echo_n "checking for working alloca.h... " >&6; }
6930 if ${ac_cv_working_alloca_h+:} false; then :
6931 $as_echo_n "(cached) " >&6
6933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6934 /* end confdefs.h. */
6939 char *p = (char *) alloca (2 * sizeof (int));
6945 if ac_fn_c_try_link "$LINENO"; then :
6946 ac_cv_working_alloca_h=yes
6948 ac_cv_working_alloca_h=no
6950 rm -f core conftest.err conftest.$ac_objext \
6951 conftest$ac_exeext conftest.$ac_ext
6953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
6954 $as_echo "$ac_cv_working_alloca_h" >&6; }
6955 if test $ac_cv_working_alloca_h = yes; then
6957 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
6961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
6962 $as_echo_n "checking for alloca... " >&6; }
6963 if ${ac_cv_func_alloca_works+:} false; then :
6964 $as_echo_n "(cached) " >&6
6966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6967 /* end confdefs.h. */
6969 # define alloca __builtin_alloca
6972 # include <malloc.h>
6973 # define alloca _alloca
6975 # ifdef HAVE_ALLOCA_H
6976 # include <alloca.h>
6981 # ifndef alloca /* predefined by HP cc +Olibcalls */
6982 void *alloca (size_t);
6992 char *p = (char *) alloca (1);
6998 if ac_fn_c_try_link "$LINENO"; then :
6999 ac_cv_func_alloca_works=yes
7001 ac_cv_func_alloca_works=no
7003 rm -f core conftest.err conftest.$ac_objext \
7004 conftest$ac_exeext conftest.$ac_ext
7006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
7007 $as_echo "$ac_cv_func_alloca_works" >&6; }
7009 if test $ac_cv_func_alloca_works = yes; then
7011 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
7014 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
7015 # that cause trouble. Some versions do not even contain alloca or
7016 # contain a buggy version. If you still want to use their alloca,
7017 # use ar to extract alloca.o from them instead of compiling alloca.c.
7019 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
7021 $as_echo "#define C_ALLOCA 1" >>confdefs.h
7024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
7025 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
7026 if ${ac_cv_os_cray+:} false; then :
7027 $as_echo_n "(cached) " >&6
7029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7030 /* end confdefs.h. */
7031 #if defined CRAY && ! defined CRAY2
7038 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7039 $EGREP "webecray" >/dev/null 2>&1; then :
7047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
7048 $as_echo "$ac_cv_os_cray" >&6; }
7049 if test $ac_cv_os_cray = yes; then
7050 for ac_func in _getb67 GETB67 getb67; do
7051 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7052 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7053 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7055 cat >>confdefs.h <<_ACEOF
7056 #define CRAY_STACKSEG_END $ac_func
7065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
7066 $as_echo_n "checking stack direction for C alloca... " >&6; }
7067 if ${ac_cv_c_stack_direction+:} false; then :
7068 $as_echo_n "(cached) " >&6
7070 if test "$cross_compiling" = yes; then :
7071 ac_cv_c_stack_direction=0
7073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7074 /* end confdefs.h. */
7075 $ac_includes_default
7077 find_stack_direction (int *addr, int depth)
7082 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
7083 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
7088 main (int argc, char **argv)
7090 return find_stack_direction (0, argc + !argv + 20) < 0;
7093 if ac_fn_c_try_run "$LINENO"; then :
7094 ac_cv_c_stack_direction=1
7096 ac_cv_c_stack_direction=-1
7098 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7099 conftest.$ac_objext conftest.beam conftest.$ac_ext
7103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
7104 $as_echo "$ac_cv_c_stack_direction" >&6; }
7105 cat >>confdefs.h <<_ACEOF
7106 #define STACK_DIRECTION $ac_cv_c_stack_direction
7115 for ac_header in $ac_header_list
7117 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7118 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7120 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7121 cat >>confdefs.h <<_ACEOF
7122 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7136 for ac_func in getpagesize
7138 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
7139 if test "x$ac_cv_func_getpagesize" = xyes; then :
7140 cat >>confdefs.h <<_ACEOF
7141 #define HAVE_GETPAGESIZE 1
7147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
7148 $as_echo_n "checking for working mmap... " >&6; }
7149 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
7150 $as_echo_n "(cached) " >&6
7152 if test "$cross_compiling" = yes; then :
7153 ac_cv_func_mmap_fixed_mapped=no
7155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7156 /* end confdefs.h. */
7157 $ac_includes_default
7158 /* malloc might have been renamed as rpl_malloc. */
7161 /* Thanks to Mike Haertel and Jim Avera for this test.
7162 Here is a matrix of mmap possibilities:
7163 mmap private not fixed
7164 mmap private fixed at somewhere currently unmapped
7165 mmap private fixed at somewhere already mapped
7166 mmap shared not fixed
7167 mmap shared fixed at somewhere currently unmapped
7168 mmap shared fixed at somewhere already mapped
7169 For private mappings, we should verify that changes cannot be read()
7170 back from the file, nor mmap's back from the file at a different
7171 address. (There have been systems where private was not correctly
7172 implemented like the infamous i386 svr4.0, and systems where the
7173 VM page cache was not coherent with the file system buffer cache
7174 like early versions of FreeBSD and possibly contemporary NetBSD.)
7175 For shared mappings, we should conversely verify that changes get
7176 propagated back to all the places they're supposed to be.
7178 Grep wants private fixed already mapped.
7179 The main things grep needs to know about mmap are:
7180 * does it exist and is it safe to write into the mmap'd area
7181 * how to use it (BSD variants) */
7184 #include <sys/mman.h>
7186 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7190 /* This mess was copied from the GNU getpagesize.h. */
7191 #ifndef HAVE_GETPAGESIZE
7192 # ifdef _SC_PAGESIZE
7193 # define getpagesize() sysconf(_SC_PAGESIZE)
7194 # else /* no _SC_PAGESIZE */
7195 # ifdef HAVE_SYS_PARAM_H
7196 # include <sys/param.h>
7197 # ifdef EXEC_PAGESIZE
7198 # define getpagesize() EXEC_PAGESIZE
7199 # else /* no EXEC_PAGESIZE */
7201 # define getpagesize() NBPG * CLSIZE
7204 # endif /* no CLSIZE */
7205 # else /* no NBPG */
7207 # define getpagesize() NBPC
7208 # else /* no NBPC */
7210 # define getpagesize() PAGESIZE
7211 # endif /* PAGESIZE */
7212 # endif /* no NBPC */
7213 # endif /* no NBPG */
7214 # endif /* no EXEC_PAGESIZE */
7215 # else /* no HAVE_SYS_PARAM_H */
7216 # define getpagesize() 8192 /* punt totally */
7217 # endif /* no HAVE_SYS_PARAM_H */
7218 # endif /* no _SC_PAGESIZE */
7220 #endif /* no HAVE_GETPAGESIZE */
7225 char *data, *data2, *data3;
7230 pagesize = getpagesize ();
7232 /* First, make a file with some known garbage in it. */
7233 data = (char *) malloc (pagesize);
7236 for (i = 0; i < pagesize; ++i)
7237 *(data + i) = rand ();
7239 fd = creat ("conftest.mmap", 0600);
7242 if (write (fd, data, pagesize) != pagesize)
7246 /* Next, check that the tail of a page is zero-filled. File must have
7247 non-zero length, otherwise we risk SIGBUS for entire page. */
7248 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7252 if (write (fd2, cdata2, 1) != 1)
7254 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7255 if (data2 == MAP_FAILED)
7257 for (i = 0; i < pagesize; ++i)
7261 if (munmap (data2, pagesize))
7264 /* Next, try to mmap the file at a fixed address which already has
7265 something else allocated at it. If we can, also make sure that
7266 we see the same garbage. */
7267 fd = open ("conftest.mmap", O_RDWR);
7270 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7271 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7273 for (i = 0; i < pagesize; ++i)
7274 if (*(data + i) != *(data2 + i))
7277 /* Finally, make sure that changes to the mapped area do not
7278 percolate back to the file as seen by read(). (This is a bug on
7279 some variants of i386 svr4.0.) */
7280 for (i = 0; i < pagesize; ++i)
7281 *(data2 + i) = *(data2 + i) + 1;
7282 data3 = (char *) malloc (pagesize);
7285 if (read (fd, data3, pagesize) != pagesize)
7287 for (i = 0; i < pagesize; ++i)
7288 if (*(data + i) != *(data3 + i))
7296 if ac_fn_c_try_run "$LINENO"; then :
7297 ac_cv_func_mmap_fixed_mapped=yes
7299 ac_cv_func_mmap_fixed_mapped=no
7301 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7302 conftest.$ac_objext conftest.beam conftest.$ac_ext
7306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
7307 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
7308 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7310 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
7313 rm -f conftest.mmap conftest.txt
7317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
7318 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
7319 if ${gt_cv_int_divbyzero_sigfpe+:} false; then :
7320 $as_echo_n "(cached) " >&6
7323 gt_cv_int_divbyzero_sigfpe=
7325 macos* | darwin[6-9]* | darwin[1-9][0-9]*)
7326 # On Mac OS X 10.2 or newer, just assume the same as when cross-
7327 # compiling. If we were to perform the real test, 1 Crash Report
7328 # dialog window would pop up.
7330 i[34567]86 | x86_64)
7331 gt_cv_int_divbyzero_sigfpe="guessing yes" ;;
7335 if test -z "$gt_cv_int_divbyzero_sigfpe"; then
7336 if test "$cross_compiling" = yes; then :
7338 # Guess based on the CPU.
7340 alpha* | i[34567]86 | x86_64 | m68k | s390*)
7341 gt_cv_int_divbyzero_sigfpe="guessing yes";;
7343 gt_cv_int_divbyzero_sigfpe="guessing no";;
7347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7348 /* end confdefs.h. */
7354 sigfpe_handler (int sig)
7356 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
7357 exit (sig != SIGFPE);
7367 signal (SIGFPE, sigfpe_handler);
7368 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
7369 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
7370 signal (SIGTRAP, sigfpe_handler);
7372 /* Linux/SPARC yields signal SIGILL. */
7373 #if defined (__sparc__) && defined (__linux__)
7374 signal (SIGILL, sigfpe_handler);
7383 if ac_fn_c_try_run "$LINENO"; then :
7384 gt_cv_int_divbyzero_sigfpe=yes
7386 gt_cv_int_divbyzero_sigfpe=no
7388 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7389 conftest.$ac_objext conftest.beam conftest.$ac_ext
7395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
7396 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
7397 case "$gt_cv_int_divbyzero_sigfpe" in
7402 cat >>confdefs.h <<_ACEOF
7403 #define INTDIV0_RAISES_SIGFPE $value
7408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
7409 $as_echo_n "checking for inttypes.h... " >&6; }
7410 if ${gl_cv_header_inttypes_h+:} false; then :
7411 $as_echo_n "(cached) " >&6
7413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7414 /* end confdefs.h. */
7416 #include <sys/types.h>
7417 #include <inttypes.h>
7422 uintmax_t i = (uintmax_t) -1; return !i;
7427 if ac_fn_c_try_compile "$LINENO"; then :
7428 gl_cv_header_inttypes_h=yes
7430 gl_cv_header_inttypes_h=no
7432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
7435 $as_echo "$gl_cv_header_inttypes_h" >&6; }
7436 if test $gl_cv_header_inttypes_h = yes; then
7438 cat >>confdefs.h <<_ACEOF
7439 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
7445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
7446 $as_echo_n "checking for unsigned long long int... " >&6; }
7447 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
7448 $as_echo_n "(cached) " >&6
7450 ac_cv_type_unsigned_long_long_int=yes
7451 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
7452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7453 /* end confdefs.h. */
7455 /* For now, do not test the preprocessor; as of 2007 there are too many
7456 implementations with broken preprocessors. Perhaps this can
7457 be revisited in 2012. In the meantime, code should not expect
7458 #if to work with literals wider than 32 bits. */
7459 /* Test literals. */
7460 long long int ll = 9223372036854775807ll;
7461 long long int nll = -9223372036854775807LL;
7462 unsigned long long int ull = 18446744073709551615ULL;
7463 /* Test constant expressions. */
7464 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
7466 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
7472 /* Test availability of runtime routines for shift and division. */
7473 long long int llmax = 9223372036854775807ll;
7474 unsigned long long int ullmax = 18446744073709551615ull;
7475 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
7476 | (llmax / ll) | (llmax % ll)
7477 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
7478 | (ullmax / ull) | (ullmax % ull));
7484 if ac_fn_c_try_link "$LINENO"; then :
7487 ac_cv_type_unsigned_long_long_int=no
7489 rm -f core conftest.err conftest.$ac_objext \
7490 conftest$ac_exeext conftest.$ac_ext
7493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
7494 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
7495 if test $ac_cv_type_unsigned_long_long_int = yes; then
7497 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
7504 if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
7506 test $ac_cv_type_unsigned_long_long_int = yes \
7507 && ac_type='unsigned long long' \
7508 || ac_type='unsigned long'
7510 cat >>confdefs.h <<_ACEOF
7511 #define uintmax_t $ac_type
7516 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
7521 for ac_header in inttypes.h
7523 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
7524 if test "x$ac_cv_header_inttypes_h" = xyes; then :
7525 cat >>confdefs.h <<_ACEOF
7526 #define HAVE_INTTYPES_H 1
7533 if test $ac_cv_header_inttypes_h = yes; then
7534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
7535 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
7536 if ${gt_cv_inttypes_pri_broken+:} false; then :
7537 $as_echo_n "(cached) " >&6
7540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7541 /* end confdefs.h. */
7543 #include <inttypes.h>
7556 if ac_fn_c_try_compile "$LINENO"; then :
7557 gt_cv_inttypes_pri_broken=no
7559 gt_cv_inttypes_pri_broken=yes
7561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
7565 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
7567 if test "$gt_cv_inttypes_pri_broken" = yes; then
7569 cat >>confdefs.h <<_ACEOF
7570 #define PRI_MACROS_BROKEN 1
7584 # Check whether --enable-threads was given.
7585 if test "${enable_threads+set}" = set; then :
7586 enableval=$enable_threads; gl_use_threads=$enableval
7588 if test -n "$gl_use_threads_default"; then
7589 gl_use_threads="$gl_use_threads_default"
7592 osf*) gl_use_threads=no ;;
7595 1.[0-5].*) gl_use_threads=no ;;
7596 *) gl_use_threads=yes ;;
7599 *) gl_use_threads=yes ;;
7605 if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
7606 # For using <pthread.h>:
7609 # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
7610 # groks <pthread.h>. cc also understands the flag -pthread, but
7611 # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
7612 # 2. putting a flag into CPPFLAGS that has an effect on the linker
7613 # causes the AC_LINK_IFELSE test below to succeed unexpectedly,
7614 # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
7615 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
7618 # Some systems optimize for single-threaded programs by default, and
7619 # need special flags to disable these optimizations. For example, the
7620 # definition of 'errno' in <errno.h>.
7622 aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;;
7623 solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;;
7631 if test "X$prefix" = "XNONE"; then
7632 acl_final_prefix="$ac_default_prefix"
7634 acl_final_prefix="$prefix"
7636 if test "X$exec_prefix" = "XNONE"; then
7637 acl_final_exec_prefix='${prefix}'
7639 acl_final_exec_prefix="$exec_prefix"
7641 acl_save_prefix="$prefix"
7642 prefix="$acl_final_prefix"
7643 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7644 prefix="$acl_save_prefix"
7648 # Check whether --with-gnu-ld was given.
7649 if test "${with_gnu_ld+set}" = set; then :
7650 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7655 # Prepare PATH_SEPARATOR.
7656 # The user is always right.
7657 if test "${PATH_SEPARATOR+set}" != set; then
7658 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
7659 # contains only /bin. Note that ksh looks also at the FPATH variable,
7660 # so we have to set that as well for the test.
7662 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7663 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7664 || PATH_SEPARATOR=';'
7669 if test "$GCC" = yes; then
7670 # Check if gcc -print-prog-name=ld gives a path.
7671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7672 $as_echo_n "checking for ld used by $CC... " >&6; }
7675 # gcc leaves a trailing carriage return which upsets mingw
7676 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7678 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7681 # Accept absolute paths.
7683 re_direlt='/[^/][^/]*/\.\./'
7684 # Canonicalize the pathname of ld
7685 ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'`
7686 while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do
7687 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
7689 test -z "$LD" && LD="$ac_prog"
7692 # If it fails, then pretend we aren't using GCC.
7696 # If it is relative, then search for the first ld in PATH.
7700 elif test "$with_gnu_ld" = yes; then
7701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7702 $as_echo_n "checking for GNU ld... " >&6; }
7704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7705 $as_echo_n "checking for non-GNU ld... " >&6; }
7707 if ${acl_cv_path_LD+:} false; then :
7708 $as_echo_n "(cached) " >&6
7710 if test -z "$LD"; then
7711 acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7712 for ac_dir in $PATH; do
7714 test -z "$ac_dir" && ac_dir=.
7715 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7716 acl_cv_path_LD="$ac_dir/$ac_prog"
7717 # Check to see if the program is GNU ld. I'd rather use --version,
7718 # but apparently some variants of GNU ld only accept -v.
7719 # Break only if it was the GNU/non-GNU ld that we prefer.
7720 case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
7721 *GNU* | *'with BFD'*)
7722 test "$with_gnu_ld" != no && break
7725 test "$with_gnu_ld" != yes && break
7732 acl_cv_path_LD="$LD" # Let the user override the test with a path.
7736 LD="$acl_cv_path_LD"
7737 if test -n "$LD"; then
7738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7739 $as_echo "$LD" >&6; }
7741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7742 $as_echo "no" >&6; }
7744 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7746 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7747 if ${acl_cv_prog_gnu_ld+:} false; then :
7748 $as_echo_n "(cached) " >&6
7750 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7751 case `$LD -v 2>&1 </dev/null` in
7752 *GNU* | *'with BFD'*)
7753 acl_cv_prog_gnu_ld=yes
7756 acl_cv_prog_gnu_ld=no
7760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
7761 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
7762 with_gnu_ld=$acl_cv_prog_gnu_ld
7767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
7768 $as_echo_n "checking for shared library run path origin... " >&6; }
7769 if ${acl_cv_rpath+:} false; then :
7770 $as_echo_n "(cached) " >&6
7773 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
7774 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
7781 $as_echo "$acl_cv_rpath" >&6; }
7783 acl_libext="$acl_cv_libext"
7784 acl_shlibext="$acl_cv_shlibext"
7785 acl_libname_spec="$acl_cv_libname_spec"
7786 acl_library_names_spec="$acl_cv_library_names_spec"
7787 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
7788 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
7789 acl_hardcode_direct="$acl_cv_hardcode_direct"
7790 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
7791 # Check whether --enable-rpath was given.
7792 if test "${enable_rpath+set}" = set; then :
7793 enableval=$enable_rpath; :
7805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
7806 $as_echo_n "checking for 64-bit host... " >&6; }
7807 if ${gl_cv_solaris_64bit+:} false; then :
7808 $as_echo_n "(cached) " >&6
7810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7811 /* end confdefs.h. */
7818 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7819 $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
7820 gl_cv_solaris_64bit=yes
7822 gl_cv_solaris_64bit=no
7828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
7829 $as_echo "$gl_cv_solaris_64bit" >&6; }
7830 if test $gl_cv_solaris_64bit = yes; then
7831 acl_libdirstem=lib/64
7833 sparc*) acl_libdirstem2=lib/sparcv9 ;;
7834 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
7839 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
7840 if test -n "$searchpath"; then
7841 acl_save_IFS="${IFS= }"; IFS=":"
7842 for searchdir in $searchpath; do
7843 if test -d "$searchdir"; then
7844 case "$searchdir" in
7845 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
7847 # Better ignore directories of this form. They are misleading.
7849 *) searchdir=`cd "$searchdir" && pwd`
7850 case "$searchdir" in
7851 */lib64 ) acl_libdirstem=lib64 ;;
7860 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
7869 if test "$gl_use_threads" != no; then
7870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5
7871 $as_echo_n "checking whether imported symbols can be declared weak... " >&6; }
7872 if ${gl_cv_have_weak+:} false; then :
7873 $as_echo_n "(cached) " >&6
7876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7877 /* end confdefs.h. */
7878 extern void xyzzy ();
7888 if ac_fn_c_try_link "$LINENO"; then :
7889 gl_cv_have_weak=maybe
7891 rm -f core conftest.err conftest.$ac_objext \
7892 conftest$ac_exeext conftest.$ac_ext
7893 if test $gl_cv_have_weak = maybe; then
7894 if test "$cross_compiling" = yes; then :
7895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7896 /* end confdefs.h. */
7898 Extensible Linking Format
7902 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7903 $EGREP "Extensible Linking Format" >/dev/null 2>&1; then :
7904 gl_cv_have_weak="guessing yes"
7906 gl_cv_have_weak="guessing no"
7912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7913 /* end confdefs.h. */
7919 return (fputs == NULL);
7922 if ac_fn_c_try_run "$LINENO"; then :
7927 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7928 conftest.$ac_objext conftest.beam conftest.$ac_ext
7934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5
7935 $as_echo "$gl_cv_have_weak" >&6; }
7936 if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
7937 # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
7938 # it groks <pthread.h>. It's added above, in gl_THREADLIB_EARLY_BODY.
7939 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
7940 if test "x$ac_cv_header_pthread_h" = xyes; then :
7941 gl_have_pthread_h=yes
7943 gl_have_pthread_h=no
7947 if test "$gl_have_pthread_h" = yes; then
7948 # Other possible tests:
7949 # -lpthreads (FSU threads, PCthreads)
7952 # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
7953 # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
7954 # the second one only in libpthread, and lock.c needs it.
7955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7956 /* end confdefs.h. */
7957 #include <pthread.h>
7961 pthread_mutex_lock((pthread_mutex_t*)0);
7962 pthread_mutexattr_init((pthread_mutexattr_t*)0);
7967 if ac_fn_c_try_link "$LINENO"; then :
7970 rm -f core conftest.err conftest.$ac_objext \
7971 conftest$ac_exeext conftest.$ac_ext
7972 # Test for libpthread by looking for pthread_kill. (Not pthread_self,
7973 # since it is defined as a macro on OSF/1.)
7974 if test -n "$gl_have_pthread"; then
7975 # The program links fine without libpthread. But it may actually
7976 # need to link with libpthread in order to create multiple threads.
7977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
7978 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
7979 if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
7980 $as_echo_n "(cached) " >&6
7982 ac_check_lib_save_LIBS=$LIBS
7983 LIBS="-lpthread $LIBS"
7984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7985 /* end confdefs.h. */
7987 /* Override any GCC internal prototype to avoid an error.
7988 Use char because int might match the return type of a GCC
7989 builtin and then its argument prototype would still apply. */
7993 char pthread_kill ();
7997 return pthread_kill ();
8002 if ac_fn_c_try_link "$LINENO"; then :
8003 ac_cv_lib_pthread_pthread_kill=yes
8005 ac_cv_lib_pthread_pthread_kill=no
8007 rm -f core conftest.err conftest.$ac_objext \
8008 conftest$ac_exeext conftest.$ac_ext
8009 LIBS=$ac_check_lib_save_LIBS
8011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
8012 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
8013 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
8014 LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
8015 # On Solaris and HP-UX, most pthread functions exist also in libc.
8016 # Therefore pthread_in_use() needs to actually try to create a
8017 # thread: pthread_create from libc will fail, whereas
8018 # pthread_create will actually create a thread.
8022 $as_echo "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h
8029 # Some library is needed. Try libpthread and libc_r.
8030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
8031 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
8032 if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
8033 $as_echo_n "(cached) " >&6
8035 ac_check_lib_save_LIBS=$LIBS
8036 LIBS="-lpthread $LIBS"
8037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8038 /* end confdefs.h. */
8040 /* Override any GCC internal prototype to avoid an error.
8041 Use char because int might match the return type of a GCC
8042 builtin and then its argument prototype would still apply. */
8046 char pthread_kill ();
8050 return pthread_kill ();
8055 if ac_fn_c_try_link "$LINENO"; then :
8056 ac_cv_lib_pthread_pthread_kill=yes
8058 ac_cv_lib_pthread_pthread_kill=no
8060 rm -f core conftest.err conftest.$ac_objext \
8061 conftest$ac_exeext conftest.$ac_ext
8062 LIBS=$ac_check_lib_save_LIBS
8064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
8065 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
8066 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
8068 LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread
8069 LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
8072 if test -z "$gl_have_pthread"; then
8074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5
8075 $as_echo_n "checking for pthread_kill in -lc_r... " >&6; }
8076 if ${ac_cv_lib_c_r_pthread_kill+:} false; then :
8077 $as_echo_n "(cached) " >&6
8079 ac_check_lib_save_LIBS=$LIBS
8081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8082 /* end confdefs.h. */
8084 /* Override any GCC internal prototype to avoid an error.
8085 Use char because int might match the return type of a GCC
8086 builtin and then its argument prototype would still apply. */
8090 char pthread_kill ();
8094 return pthread_kill ();
8099 if ac_fn_c_try_link "$LINENO"; then :
8100 ac_cv_lib_c_r_pthread_kill=yes
8102 ac_cv_lib_c_r_pthread_kill=no
8104 rm -f core conftest.err conftest.$ac_objext \
8105 conftest$ac_exeext conftest.$ac_ext
8106 LIBS=$ac_check_lib_save_LIBS
8108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5
8109 $as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; }
8110 if test "x$ac_cv_lib_c_r_pthread_kill" = xyes; then :
8112 LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r
8113 LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r
8118 if test -n "$gl_have_pthread"; then
8119 gl_threads_api=posix
8121 $as_echo "#define USE_POSIX_THREADS 1" >>confdefs.h
8123 if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
8124 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
8126 $as_echo "#define USE_POSIX_THREADS_WEAK 1" >>confdefs.h
8135 if test -z "$gl_have_pthread"; then
8136 if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then
8137 gl_have_solaristhread=
8138 gl_save_LIBS="$LIBS"
8139 LIBS="$LIBS -lthread"
8140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8141 /* end confdefs.h. */
8154 if ac_fn_c_try_link "$LINENO"; then :
8155 gl_have_solaristhread=yes
8157 rm -f core conftest.err conftest.$ac_objext \
8158 conftest$ac_exeext conftest.$ac_ext
8159 LIBS="$gl_save_LIBS"
8160 if test -n "$gl_have_solaristhread"; then
8161 gl_threads_api=solaris
8163 LTLIBTHREAD=-lthread
8164 LIBMULTITHREAD="$LIBTHREAD"
8165 LTLIBMULTITHREAD="$LTLIBTHREAD"
8167 $as_echo "#define USE_SOLARIS_THREADS 1" >>confdefs.h
8169 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
8171 $as_echo "#define USE_SOLARIS_THREADS_WEAK 1" >>confdefs.h
8179 if test "$gl_use_threads" = pth; then
8180 gl_save_CPPFLAGS="$CPPFLAGS"
8186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libpth" >&5
8187 $as_echo_n "checking how to link with libpth... " >&6; }
8188 if ${ac_cv_libpth_libs+:} false; then :
8189 $as_echo_n "(cached) " >&6
8201 acl_save_prefix="$prefix"
8202 prefix="$acl_final_prefix"
8203 acl_save_exec_prefix="$exec_prefix"
8204 exec_prefix="$acl_final_exec_prefix"
8206 eval additional_includedir=\"$includedir\"
8207 eval additional_libdir=\"$libdir\"
8209 exec_prefix="$acl_save_exec_prefix"
8210 prefix="$acl_save_prefix"
8213 # Check whether --with-libpth-prefix was given.
8214 if test "${with_libpth_prefix+set}" = set; then :
8215 withval=$with_libpth_prefix;
8216 if test "X$withval" = "Xno"; then
8219 if test "X$withval" = "X"; then
8221 acl_save_prefix="$prefix"
8222 prefix="$acl_final_prefix"
8223 acl_save_exec_prefix="$exec_prefix"
8224 exec_prefix="$acl_final_exec_prefix"
8226 eval additional_includedir=\"$includedir\"
8227 eval additional_libdir=\"$libdir\"
8229 exec_prefix="$acl_save_exec_prefix"
8230 prefix="$acl_save_prefix"
8233 additional_includedir="$withval/include"
8234 additional_libdir="$withval/$acl_libdirstem"
8235 if test "$acl_libdirstem2" != "$acl_libdirstem" \
8236 && ! test -d "$withval/$acl_libdirstem"; then
8237 additional_libdir="$withval/$acl_libdirstem2"
8251 names_already_handled=
8252 names_next_round='pth '
8253 while test -n "$names_next_round"; do
8254 names_this_round="$names_next_round"
8256 for name in $names_this_round; do
8258 for n in $names_already_handled; do
8259 if test "$n" = "$name"; then
8264 if test -z "$already_handled"; then
8265 names_already_handled="$names_already_handled $name"
8266 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
8267 eval value=\"\$HAVE_LIB$uppername\"
8268 if test -n "$value"; then
8269 if test "$value" = yes; then
8270 eval value=\"\$LIB$uppername\"
8271 test -z "$value" || LIBPTH="${LIBPTH}${LIBPTH:+ }$value"
8272 eval value=\"\$LTLIB$uppername\"
8273 test -z "$value" || LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$value"
8282 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
8283 if test -n "$acl_shlibext"; then
8284 shrext=".$acl_shlibext" # typically: shrext=.so
8288 if test $use_additional = yes; then
8289 dir="$additional_libdir"
8290 if test -n "$acl_shlibext"; then
8291 if test -f "$dir/$libname$shrext"; then
8293 found_so="$dir/$libname$shrext"
8295 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8296 ver=`(cd "$dir" && \
8297 for f in "$libname$shrext".*; do echo "$f"; done \
8298 | sed -e "s,^$libname$shrext\\\\.,," \
8299 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8300 | sed 1q ) 2>/dev/null`
8301 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8303 found_so="$dir/$libname$shrext.$ver"
8306 eval library_names=\"$acl_library_names_spec\"
8307 for f in $library_names; do
8308 if test -f "$dir/$f"; then
8317 if test "X$found_dir" = "X"; then
8318 if test -f "$dir/$libname.$acl_libext"; then
8320 found_a="$dir/$libname.$acl_libext"
8323 if test "X$found_dir" != "X"; then
8324 if test -f "$dir/$libname.la"; then
8325 found_la="$dir/$libname.la"
8329 if test "X$found_dir" = "X"; then
8330 for x in $LDFLAGS $LTLIBPTH; do
8332 acl_save_prefix="$prefix"
8333 prefix="$acl_final_prefix"
8334 acl_save_exec_prefix="$exec_prefix"
8335 exec_prefix="$acl_final_exec_prefix"
8337 exec_prefix="$acl_save_exec_prefix"
8338 prefix="$acl_save_prefix"
8342 dir=`echo "X$x" | sed -e 's/^X-L//'`
8343 if test -n "$acl_shlibext"; then
8344 if test -f "$dir/$libname$shrext"; then
8346 found_so="$dir/$libname$shrext"
8348 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8349 ver=`(cd "$dir" && \
8350 for f in "$libname$shrext".*; do echo "$f"; done \
8351 | sed -e "s,^$libname$shrext\\\\.,," \
8352 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8353 | sed 1q ) 2>/dev/null`
8354 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8356 found_so="$dir/$libname$shrext.$ver"
8359 eval library_names=\"$acl_library_names_spec\"
8360 for f in $library_names; do
8361 if test -f "$dir/$f"; then
8370 if test "X$found_dir" = "X"; then
8371 if test -f "$dir/$libname.$acl_libext"; then
8373 found_a="$dir/$libname.$acl_libext"
8376 if test "X$found_dir" != "X"; then
8377 if test -f "$dir/$libname.la"; then
8378 found_la="$dir/$libname.la"
8383 if test "X$found_dir" != "X"; then
8388 if test "X$found_dir" != "X"; then
8389 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name"
8390 if test "X$found_so" != "X"; then
8391 if test "$enable_rpath" = no \
8392 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
8393 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
8394 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
8397 for x in $ltrpathdirs; do
8398 if test "X$x" = "X$found_dir"; then
8403 if test -z "$haveit"; then
8404 ltrpathdirs="$ltrpathdirs $found_dir"
8406 if test "$acl_hardcode_direct" = yes; then
8407 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
8409 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
8410 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
8412 for x in $rpathdirs; do
8413 if test "X$x" = "X$found_dir"; then
8418 if test -z "$haveit"; then
8419 rpathdirs="$rpathdirs $found_dir"
8423 for x in $LDFLAGS $LIBPTH; do
8425 acl_save_prefix="$prefix"
8426 prefix="$acl_final_prefix"
8427 acl_save_exec_prefix="$exec_prefix"
8428 exec_prefix="$acl_final_exec_prefix"
8430 exec_prefix="$acl_save_exec_prefix"
8431 prefix="$acl_save_prefix"
8433 if test "X$x" = "X-L$found_dir"; then
8438 if test -z "$haveit"; then
8439 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir"
8441 if test "$acl_hardcode_minus_L" != no; then
8442 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
8444 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
8450 if test "X$found_a" != "X"; then
8451 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_a"
8453 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name"
8456 additional_includedir=
8457 case "$found_dir" in
8458 */$acl_libdirstem | */$acl_libdirstem/)
8459 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
8460 if test "$name" = 'pth'; then
8461 LIBPTH_PREFIX="$basedir"
8463 additional_includedir="$basedir/include"
8465 */$acl_libdirstem2 | */$acl_libdirstem2/)
8466 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
8467 if test "$name" = 'pth'; then
8468 LIBPTH_PREFIX="$basedir"
8470 additional_includedir="$basedir/include"
8473 if test "X$additional_includedir" != "X"; then
8474 if test "X$additional_includedir" != "X/usr/include"; then
8476 if test "X$additional_includedir" = "X/usr/local/include"; then
8477 if test -n "$GCC"; then
8479 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
8483 if test -z "$haveit"; then
8484 for x in $CPPFLAGS $INCPTH; do
8486 acl_save_prefix="$prefix"
8487 prefix="$acl_final_prefix"
8488 acl_save_exec_prefix="$exec_prefix"
8489 exec_prefix="$acl_final_exec_prefix"
8491 exec_prefix="$acl_save_exec_prefix"
8492 prefix="$acl_save_prefix"
8494 if test "X$x" = "X-I$additional_includedir"; then
8499 if test -z "$haveit"; then
8500 if test -d "$additional_includedir"; then
8501 INCPTH="${INCPTH}${INCPTH:+ }-I$additional_includedir"
8507 if test -n "$found_la"; then
8508 save_libdir="$libdir"
8510 */* | *\\*) . "$found_la" ;;
8511 *) . "./$found_la" ;;
8513 libdir="$save_libdir"
8514 for dep in $dependency_libs; do
8517 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8518 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
8519 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
8521 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
8522 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
8523 if test -n "$GCC"; then
8525 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
8529 if test -z "$haveit"; then
8531 for x in $LDFLAGS $LIBPTH; do
8533 acl_save_prefix="$prefix"
8534 prefix="$acl_final_prefix"
8535 acl_save_exec_prefix="$exec_prefix"
8536 exec_prefix="$acl_final_exec_prefix"
8538 exec_prefix="$acl_save_exec_prefix"
8539 prefix="$acl_save_prefix"
8541 if test "X$x" = "X-L$additional_libdir"; then
8546 if test -z "$haveit"; then
8547 if test -d "$additional_libdir"; then
8548 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$additional_libdir"
8552 for x in $LDFLAGS $LTLIBPTH; do
8554 acl_save_prefix="$prefix"
8555 prefix="$acl_final_prefix"
8556 acl_save_exec_prefix="$exec_prefix"
8557 exec_prefix="$acl_final_exec_prefix"
8559 exec_prefix="$acl_save_exec_prefix"
8560 prefix="$acl_save_prefix"
8562 if test "X$x" = "X-L$additional_libdir"; then
8567 if test -z "$haveit"; then
8568 if test -d "$additional_libdir"; then
8569 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir"
8576 dir=`echo "X$dep" | sed -e 's/^X-R//'`
8577 if test "$enable_rpath" != no; then
8579 for x in $rpathdirs; do
8580 if test "X$x" = "X$dir"; then
8585 if test -z "$haveit"; then
8586 rpathdirs="$rpathdirs $dir"
8589 for x in $ltrpathdirs; do
8590 if test "X$x" = "X$dir"; then
8595 if test -z "$haveit"; then
8596 ltrpathdirs="$ltrpathdirs $dir"
8601 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8604 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8607 LIBPTH="${LIBPTH}${LIBPTH:+ }$dep"
8608 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$dep"
8614 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
8615 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-l$name"
8621 if test "X$rpathdirs" != "X"; then
8622 if test -n "$acl_hardcode_libdir_separator"; then
8624 for found_dir in $rpathdirs; do
8625 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
8627 acl_save_libdir="$libdir"
8629 eval flag=\"$acl_hardcode_libdir_flag_spec\"
8630 libdir="$acl_save_libdir"
8631 LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
8633 for found_dir in $rpathdirs; do
8634 acl_save_libdir="$libdir"
8636 eval flag=\"$acl_hardcode_libdir_flag_spec\"
8637 libdir="$acl_save_libdir"
8638 LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
8642 if test "X$ltrpathdirs" != "X"; then
8643 for found_dir in $ltrpathdirs; do
8644 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir"
8653 ac_cv_libpth_libs="$LIBPTH"
8654 ac_cv_libpth_ltlibs="$LTLIBPTH"
8655 ac_cv_libpth_cppflags="$INCPTH"
8656 ac_cv_libpth_prefix="$LIBPTH_PREFIX"
8659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libpth_libs" >&5
8660 $as_echo "$ac_cv_libpth_libs" >&6; }
8661 LIBPTH="$ac_cv_libpth_libs"
8662 LTLIBPTH="$ac_cv_libpth_ltlibs"
8663 INCPTH="$ac_cv_libpth_cppflags"
8664 LIBPTH_PREFIX="$ac_cv_libpth_prefix"
8666 for element in $INCPTH; do
8668 for x in $CPPFLAGS; do
8670 acl_save_prefix="$prefix"
8671 prefix="$acl_final_prefix"
8672 acl_save_exec_prefix="$exec_prefix"
8673 exec_prefix="$acl_final_exec_prefix"
8675 exec_prefix="$acl_save_exec_prefix"
8676 prefix="$acl_save_prefix"
8678 if test "X$x" = "X$element"; then
8683 if test -z "$haveit"; then
8684 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8696 gl_save_LIBS="$LIBS"
8697 LIBS="$LIBS $LIBPTH"
8698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8699 /* end confdefs.h. */
8709 if ac_fn_c_try_link "$LINENO"; then :
8712 rm -f core conftest.err conftest.$ac_objext \
8713 conftest$ac_exeext conftest.$ac_ext
8714 LIBS="$gl_save_LIBS"
8715 if test -n "$gl_have_pth"; then
8718 LTLIBTHREAD="$LTLIBPTH"
8719 LIBMULTITHREAD="$LIBTHREAD"
8720 LTLIBMULTITHREAD="$LTLIBTHREAD"
8722 $as_echo "#define USE_PTH_THREADS 1" >>confdefs.h
8724 if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
8725 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
8727 $as_echo "#define USE_PTH_THREADS_WEAK 1" >>confdefs.h
8734 CPPFLAGS="$gl_save_CPPFLAGS"
8737 if test -z "$gl_have_pthread"; then
8738 case "$gl_use_threads" in
8739 yes | windows | win32) # The 'win32' is for backward compatibility.
8740 if { case "$host_os" in
8745 gl_threads_api=windows
8747 $as_echo "#define USE_WINDOWS_THREADS 1" >>confdefs.h
8754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multithread API to use" >&5
8755 $as_echo_n "checking for multithread API to use... " >&6; }
8756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_threads_api" >&5
8757 $as_echo "$gl_threads_api" >&6; }
8769 if test "$gl_threads_api" = posix; then
8770 # OSF/1 4.0 and Mac OS X 10.1 lack the pthread_rwlock_t type and the
8771 # pthread_rwlock_* functions.
8772 ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h>
8774 if test "x$ac_cv_type_pthread_rwlock_t" = xyes; then :
8776 $as_echo "#define HAVE_PTHREAD_RWLOCK 1" >>confdefs.h
8780 # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
8781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8782 /* end confdefs.h. */
8784 #include <pthread.h>
8789 #if __FreeBSD__ == 4
8790 error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
8791 #elif (defined __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ \
8792 && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 1070)
8793 error "No, in Mac OS X < 10.7 recursive mutexes actually don't work."
8795 int x = (int)PTHREAD_MUTEX_RECURSIVE;
8803 if ac_fn_c_try_compile "$LINENO"; then :
8805 $as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h
8808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8825 acl_save_prefix="$prefix"
8826 prefix="$acl_final_prefix"
8827 acl_save_exec_prefix="$exec_prefix"
8828 exec_prefix="$acl_final_exec_prefix"
8830 eval additional_includedir=\"$includedir\"
8831 eval additional_libdir=\"$libdir\"
8833 exec_prefix="$acl_save_exec_prefix"
8834 prefix="$acl_save_prefix"
8837 # Check whether --with-libiconv-prefix was given.
8838 if test "${with_libiconv_prefix+set}" = set; then :
8839 withval=$with_libiconv_prefix;
8840 if test "X$withval" = "Xno"; then
8843 if test "X$withval" = "X"; then
8845 acl_save_prefix="$prefix"
8846 prefix="$acl_final_prefix"
8847 acl_save_exec_prefix="$exec_prefix"
8848 exec_prefix="$acl_final_exec_prefix"
8850 eval additional_includedir=\"$includedir\"
8851 eval additional_libdir=\"$libdir\"
8853 exec_prefix="$acl_save_exec_prefix"
8854 prefix="$acl_save_prefix"
8857 additional_includedir="$withval/include"
8858 additional_libdir="$withval/$acl_libdirstem"
8859 if test "$acl_libdirstem2" != "$acl_libdirstem" \
8860 && ! test -d "$withval/$acl_libdirstem"; then
8861 additional_libdir="$withval/$acl_libdirstem2"
8875 names_already_handled=
8876 names_next_round='iconv '
8877 while test -n "$names_next_round"; do
8878 names_this_round="$names_next_round"
8880 for name in $names_this_round; do
8882 for n in $names_already_handled; do
8883 if test "$n" = "$name"; then
8888 if test -z "$already_handled"; then
8889 names_already_handled="$names_already_handled $name"
8890 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
8891 eval value=\"\$HAVE_LIB$uppername\"
8892 if test -n "$value"; then
8893 if test "$value" = yes; then
8894 eval value=\"\$LIB$uppername\"
8895 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
8896 eval value=\"\$LTLIB$uppername\"
8897 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
8906 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
8907 if test -n "$acl_shlibext"; then
8908 shrext=".$acl_shlibext" # typically: shrext=.so
8912 if test $use_additional = yes; then
8913 dir="$additional_libdir"
8914 if test -n "$acl_shlibext"; then
8915 if test -f "$dir/$libname$shrext"; then
8917 found_so="$dir/$libname$shrext"
8919 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8920 ver=`(cd "$dir" && \
8921 for f in "$libname$shrext".*; do echo "$f"; done \
8922 | sed -e "s,^$libname$shrext\\\\.,," \
8923 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8924 | sed 1q ) 2>/dev/null`
8925 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8927 found_so="$dir/$libname$shrext.$ver"
8930 eval library_names=\"$acl_library_names_spec\"
8931 for f in $library_names; do
8932 if test -f "$dir/$f"; then
8941 if test "X$found_dir" = "X"; then
8942 if test -f "$dir/$libname.$acl_libext"; then
8944 found_a="$dir/$libname.$acl_libext"
8947 if test "X$found_dir" != "X"; then
8948 if test -f "$dir/$libname.la"; then
8949 found_la="$dir/$libname.la"
8953 if test "X$found_dir" = "X"; then
8954 for x in $LDFLAGS $LTLIBICONV; do
8956 acl_save_prefix="$prefix"
8957 prefix="$acl_final_prefix"
8958 acl_save_exec_prefix="$exec_prefix"
8959 exec_prefix="$acl_final_exec_prefix"
8961 exec_prefix="$acl_save_exec_prefix"
8962 prefix="$acl_save_prefix"
8966 dir=`echo "X$x" | sed -e 's/^X-L//'`
8967 if test -n "$acl_shlibext"; then
8968 if test -f "$dir/$libname$shrext"; then
8970 found_so="$dir/$libname$shrext"
8972 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8973 ver=`(cd "$dir" && \
8974 for f in "$libname$shrext".*; do echo "$f"; done \
8975 | sed -e "s,^$libname$shrext\\\\.,," \
8976 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8977 | sed 1q ) 2>/dev/null`
8978 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8980 found_so="$dir/$libname$shrext.$ver"
8983 eval library_names=\"$acl_library_names_spec\"
8984 for f in $library_names; do
8985 if test -f "$dir/$f"; then
8994 if test "X$found_dir" = "X"; then
8995 if test -f "$dir/$libname.$acl_libext"; then
8997 found_a="$dir/$libname.$acl_libext"
9000 if test "X$found_dir" != "X"; then
9001 if test -f "$dir/$libname.la"; then
9002 found_la="$dir/$libname.la"
9007 if test "X$found_dir" != "X"; then
9012 if test "X$found_dir" != "X"; then
9013 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9014 if test "X$found_so" != "X"; then
9015 if test "$enable_rpath" = no \
9016 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
9017 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
9018 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9021 for x in $ltrpathdirs; do
9022 if test "X$x" = "X$found_dir"; then
9027 if test -z "$haveit"; then
9028 ltrpathdirs="$ltrpathdirs $found_dir"
9030 if test "$acl_hardcode_direct" = yes; then
9031 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9033 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
9034 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9036 for x in $rpathdirs; do
9037 if test "X$x" = "X$found_dir"; then
9042 if test -z "$haveit"; then
9043 rpathdirs="$rpathdirs $found_dir"
9047 for x in $LDFLAGS $LIBICONV; do
9049 acl_save_prefix="$prefix"
9050 prefix="$acl_final_prefix"
9051 acl_save_exec_prefix="$exec_prefix"
9052 exec_prefix="$acl_final_exec_prefix"
9054 exec_prefix="$acl_save_exec_prefix"
9055 prefix="$acl_save_prefix"
9057 if test "X$x" = "X-L$found_dir"; then
9062 if test -z "$haveit"; then
9063 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9065 if test "$acl_hardcode_minus_L" != no; then
9066 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9068 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9074 if test "X$found_a" != "X"; then
9075 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
9077 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9080 additional_includedir=
9081 case "$found_dir" in
9082 */$acl_libdirstem | */$acl_libdirstem/)
9083 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
9084 if test "$name" = 'iconv'; then
9085 LIBICONV_PREFIX="$basedir"
9087 additional_includedir="$basedir/include"
9089 */$acl_libdirstem2 | */$acl_libdirstem2/)
9090 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
9091 if test "$name" = 'iconv'; then
9092 LIBICONV_PREFIX="$basedir"
9094 additional_includedir="$basedir/include"
9097 if test "X$additional_includedir" != "X"; then
9098 if test "X$additional_includedir" != "X/usr/include"; then
9100 if test "X$additional_includedir" = "X/usr/local/include"; then
9101 if test -n "$GCC"; then
9103 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
9107 if test -z "$haveit"; then
9108 for x in $CPPFLAGS $INCICONV; do
9110 acl_save_prefix="$prefix"
9111 prefix="$acl_final_prefix"
9112 acl_save_exec_prefix="$exec_prefix"
9113 exec_prefix="$acl_final_exec_prefix"
9115 exec_prefix="$acl_save_exec_prefix"
9116 prefix="$acl_save_prefix"
9118 if test "X$x" = "X-I$additional_includedir"; then
9123 if test -z "$haveit"; then
9124 if test -d "$additional_includedir"; then
9125 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9131 if test -n "$found_la"; then
9132 save_libdir="$libdir"
9134 */* | *\\*) . "$found_la" ;;
9135 *) . "./$found_la" ;;
9137 libdir="$save_libdir"
9138 for dep in $dependency_libs; do
9141 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9142 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
9143 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
9145 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
9146 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
9147 if test -n "$GCC"; then
9149 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
9153 if test -z "$haveit"; then
9155 for x in $LDFLAGS $LIBICONV; do
9157 acl_save_prefix="$prefix"
9158 prefix="$acl_final_prefix"
9159 acl_save_exec_prefix="$exec_prefix"
9160 exec_prefix="$acl_final_exec_prefix"
9162 exec_prefix="$acl_save_exec_prefix"
9163 prefix="$acl_save_prefix"
9165 if test "X$x" = "X-L$additional_libdir"; then
9170 if test -z "$haveit"; then
9171 if test -d "$additional_libdir"; then
9172 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9176 for x in $LDFLAGS $LTLIBICONV; do
9178 acl_save_prefix="$prefix"
9179 prefix="$acl_final_prefix"
9180 acl_save_exec_prefix="$exec_prefix"
9181 exec_prefix="$acl_final_exec_prefix"
9183 exec_prefix="$acl_save_exec_prefix"
9184 prefix="$acl_save_prefix"
9186 if test "X$x" = "X-L$additional_libdir"; then
9191 if test -z "$haveit"; then
9192 if test -d "$additional_libdir"; then
9193 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
9200 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9201 if test "$enable_rpath" != no; then
9203 for x in $rpathdirs; do
9204 if test "X$x" = "X$dir"; then
9209 if test -z "$haveit"; then
9210 rpathdirs="$rpathdirs $dir"
9213 for x in $ltrpathdirs; do
9214 if test "X$x" = "X$dir"; then
9219 if test -z "$haveit"; then
9220 ltrpathdirs="$ltrpathdirs $dir"
9225 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9228 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9231 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
9232 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
9238 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9239 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
9245 if test "X$rpathdirs" != "X"; then
9246 if test -n "$acl_hardcode_libdir_separator"; then
9248 for found_dir in $rpathdirs; do
9249 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
9251 acl_save_libdir="$libdir"
9253 eval flag=\"$acl_hardcode_libdir_flag_spec\"
9254 libdir="$acl_save_libdir"
9255 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9257 for found_dir in $rpathdirs; do
9258 acl_save_libdir="$libdir"
9260 eval flag=\"$acl_hardcode_libdir_flag_spec\"
9261 libdir="$acl_save_libdir"
9262 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9266 if test "X$ltrpathdirs" != "X"; then
9267 for found_dir in $ltrpathdirs; do
9268 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
9283 am_save_CPPFLAGS="$CPPFLAGS"
9285 for element in $INCICONV; do
9287 for x in $CPPFLAGS; do
9289 acl_save_prefix="$prefix"
9290 prefix="$acl_final_prefix"
9291 acl_save_exec_prefix="$exec_prefix"
9292 exec_prefix="$acl_final_exec_prefix"
9294 exec_prefix="$acl_save_exec_prefix"
9295 prefix="$acl_save_prefix"
9297 if test "X$x" = "X$element"; then
9302 if test -z "$haveit"; then
9303 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
9309 $as_echo_n "checking for iconv... " >&6; }
9310 if ${am_cv_func_iconv+:} false; then :
9311 $as_echo_n "(cached) " >&6
9314 am_cv_func_iconv="no, consider installing GNU libiconv"
9316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9317 /* end confdefs.h. */
9325 iconv_t cd = iconv_open("","");
9326 iconv(cd,NULL,NULL,NULL,NULL);
9332 if ac_fn_c_try_link "$LINENO"; then :
9333 am_cv_func_iconv=yes
9335 rm -f core conftest.err conftest.$ac_objext \
9336 conftest$ac_exeext conftest.$ac_ext
9337 if test "$am_cv_func_iconv" != yes; then
9338 am_save_LIBS="$LIBS"
9339 LIBS="$LIBS $LIBICONV"
9340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9341 /* end confdefs.h. */
9349 iconv_t cd = iconv_open("","");
9350 iconv(cd,NULL,NULL,NULL,NULL);
9356 if ac_fn_c_try_link "$LINENO"; then :
9358 am_cv_func_iconv=yes
9360 rm -f core conftest.err conftest.$ac_objext \
9361 conftest$ac_exeext conftest.$ac_ext
9362 LIBS="$am_save_LIBS"
9366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
9367 $as_echo "$am_cv_func_iconv" >&6; }
9368 if test "$am_cv_func_iconv" = yes; then
9369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
9370 $as_echo_n "checking for working iconv... " >&6; }
9371 if ${am_cv_func_iconv_works+:} false; then :
9372 $as_echo_n "(cached) " >&6
9375 am_save_LIBS="$LIBS"
9376 if test $am_cv_lib_iconv = yes; then
9377 LIBS="$LIBS $LIBICONV"
9379 if test "$cross_compiling" = yes; then :
9382 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
9383 *) am_cv_func_iconv_works="guessing yes" ;;
9387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9388 /* end confdefs.h. */
9395 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
9398 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
9399 if (cd_utf8_to_88591 != (iconv_t)(-1))
9401 static const char input[] = "\342\202\254"; /* EURO SIGN */
9403 const char *inptr = input;
9404 size_t inbytesleft = strlen (input);
9406 size_t outbytesleft = sizeof (buf);
9407 size_t res = iconv (cd_utf8_to_88591,
9408 (char **) &inptr, &inbytesleft,
9409 &outptr, &outbytesleft);
9412 iconv_close (cd_utf8_to_88591);
9415 /* Test against Solaris 10 bug: Failures are not distinguishable from
9416 successful returns. */
9418 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
9419 if (cd_ascii_to_88591 != (iconv_t)(-1))
9421 static const char input[] = "\263";
9423 const char *inptr = input;
9424 size_t inbytesleft = strlen (input);
9426 size_t outbytesleft = sizeof (buf);
9427 size_t res = iconv (cd_ascii_to_88591,
9428 (char **) &inptr, &inbytesleft,
9429 &outptr, &outbytesleft);
9432 iconv_close (cd_ascii_to_88591);
9435 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
9437 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
9438 if (cd_88591_to_utf8 != (iconv_t)(-1))
9440 static const char input[] = "\304";
9441 static char buf[2] = { (char)0xDE, (char)0xAD };
9442 const char *inptr = input;
9443 size_t inbytesleft = 1;
9445 size_t outbytesleft = 1;
9446 size_t res = iconv (cd_88591_to_utf8,
9447 (char **) &inptr, &inbytesleft,
9448 &outptr, &outbytesleft);
9449 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
9451 iconv_close (cd_88591_to_utf8);
9454 #if 0 /* This bug could be worked around by the caller. */
9455 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
9457 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
9458 if (cd_88591_to_utf8 != (iconv_t)(-1))
9460 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
9462 const char *inptr = input;
9463 size_t inbytesleft = strlen (input);
9465 size_t outbytesleft = sizeof (buf);
9466 size_t res = iconv (cd_88591_to_utf8,
9467 (char **) &inptr, &inbytesleft,
9468 &outptr, &outbytesleft);
9471 iconv_close (cd_88591_to_utf8);
9475 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
9477 if (/* Try standardized names. */
9478 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
9479 /* Try IRIX, OSF/1 names. */
9480 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
9481 /* Try AIX names. */
9482 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
9483 /* Try HP-UX names. */
9484 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
9489 if ac_fn_c_try_run "$LINENO"; then :
9490 am_cv_func_iconv_works=yes
9492 am_cv_func_iconv_works=no
9494 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9495 conftest.$ac_objext conftest.beam conftest.$ac_ext
9498 LIBS="$am_save_LIBS"
9501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
9502 $as_echo "$am_cv_func_iconv_works" >&6; }
9503 case "$am_cv_func_iconv_works" in
9504 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
9505 *) am_func_iconv=yes ;;
9508 am_func_iconv=no am_cv_lib_iconv=no
9510 if test "$am_func_iconv" = yes; then
9512 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
9515 if test "$am_cv_lib_iconv" = yes; then
9516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
9517 $as_echo_n "checking how to link with libiconv... " >&6; }
9518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
9519 $as_echo "$LIBICONV" >&6; }
9521 CPPFLAGS="$am_save_CPPFLAGS"
9528 if test "$am_cv_func_iconv" = yes; then
9529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
9530 $as_echo_n "checking for iconv declaration... " >&6; }
9531 if ${am_cv_proto_iconv+:} false; then :
9532 $as_echo_n "(cached) " >&6
9535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9536 /* end confdefs.h. */
9544 #if defined(__STDC__) || defined(_MSC_VER) || defined(__cplusplus)
9545 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9558 if ac_fn_c_try_compile "$LINENO"; then :
9559 am_cv_proto_iconv_arg1=""
9561 am_cv_proto_iconv_arg1="const"
9563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9564 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
9567 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
9568 { $as_echo "$as_me:${as_lineno-$LINENO}: result:
9569 $am_cv_proto_iconv" >&5
9571 $am_cv_proto_iconv" >&6; }
9573 cat >>confdefs.h <<_ACEOF
9574 #define ICONV_CONST $am_cv_proto_iconv_arg1
9583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9584 /* end confdefs.h. */
9585 int foo (int a) { a = __builtin_expect (a, 10); return a == 10 ? 0 : 1; }
9594 if ac_fn_c_try_link "$LINENO"; then :
9596 $as_echo "#define HAVE_BUILTIN_EXPECT 1" >>confdefs.h
9599 rm -f core conftest.err conftest.$ac_objext \
9600 conftest$ac_exeext conftest.$ac_ext
9602 for ac_header in argz.h inttypes.h limits.h unistd.h sys/param.h
9604 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9605 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9606 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9607 cat >>confdefs.h <<_ACEOF
9608 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9615 for ac_func in getcwd getegid geteuid getgid getuid mempcpy munmap \
9616 stpcpy strcasecmp strdup strtoul tsearch uselocale argz_count \
9617 argz_stringify argz_next __fsetlocking
9619 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9620 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9621 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9622 cat >>confdefs.h <<_ACEOF
9623 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9630 ac_fn_c_check_decl "$LINENO" "feof_unlocked" "ac_cv_have_decl_feof_unlocked" "#include <stdio.h>
9632 if test "x$ac_cv_have_decl_feof_unlocked" = xyes; then :
9638 cat >>confdefs.h <<_ACEOF
9639 #define HAVE_DECL_FEOF_UNLOCKED $ac_have_decl
9641 ac_fn_c_check_decl "$LINENO" "fgets_unlocked" "ac_cv_have_decl_fgets_unlocked" "#include <stdio.h>
9643 if test "x$ac_cv_have_decl_fgets_unlocked" = xyes; then :
9649 cat >>confdefs.h <<_ACEOF
9650 #define HAVE_DECL_FGETS_UNLOCKED $ac_have_decl
9656 for ac_prog in bison
9658 # Extract the first word of "$ac_prog", so it can be a program name with args.
9659 set dummy $ac_prog; ac_word=$2
9660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9661 $as_echo_n "checking for $ac_word... " >&6; }
9662 if ${ac_cv_prog_INTLBISON+:} false; then :
9663 $as_echo_n "(cached) " >&6
9665 if test -n "$INTLBISON"; then
9666 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
9668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9672 test -z "$as_dir" && as_dir=.
9673 for ac_exec_ext in '' $ac_executable_extensions; do
9674 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9675 ac_cv_prog_INTLBISON="$ac_prog"
9676 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9685 INTLBISON=$ac_cv_prog_INTLBISON
9686 if test -n "$INTLBISON"; then
9687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
9688 $as_echo "$INTLBISON" >&6; }
9690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9691 $as_echo "no" >&6; }
9695 test -n "$INTLBISON" && break
9698 if test -z "$INTLBISON"; then
9701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
9702 $as_echo_n "checking version of bison... " >&6; }
9703 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
9704 case $ac_prog_version in
9705 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
9706 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
9707 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
9708 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
9710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
9711 $as_echo "$ac_prog_version" >&6; }
9713 if test $ac_verc_fail = yes; then
9719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
9720 $as_echo_n "checking for long long int... " >&6; }
9721 if ${ac_cv_type_long_long_int+:} false; then :
9722 $as_echo_n "(cached) " >&6
9724 ac_cv_type_long_long_int=yes
9725 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
9726 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
9727 if test $ac_cv_type_long_long_int = yes; then
9728 if test "$cross_compiling" = yes; then :
9731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9732 /* end confdefs.h. */
9736 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
9737 # define LLONG_MAX (HALF - 1 + HALF)
9742 long long int n = 1;
9746 long long int m = n << i;
9749 if (LLONG_MAX / 2 < m)
9757 if ac_fn_c_try_run "$LINENO"; then :
9760 ac_cv_type_long_long_int=no
9762 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9763 conftest.$ac_objext conftest.beam conftest.$ac_ext
9769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
9770 $as_echo "$ac_cv_type_long_long_int" >&6; }
9771 if test $ac_cv_type_long_long_int = yes; then
9773 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
9778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
9779 $as_echo_n "checking for wchar_t... " >&6; }
9780 if ${gt_cv_c_wchar_t+:} false; then :
9781 $as_echo_n "(cached) " >&6
9783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9784 /* end confdefs.h. */
9786 wchar_t foo = (wchar_t)'\0';
9795 if ac_fn_c_try_compile "$LINENO"; then :
9800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
9803 $as_echo "$gt_cv_c_wchar_t" >&6; }
9804 if test $gt_cv_c_wchar_t = yes; then
9806 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
9811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
9812 $as_echo_n "checking for wint_t... " >&6; }
9813 if ${gt_cv_c_wint_t+:} false; then :
9814 $as_echo_n "(cached) " >&6
9816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9817 /* end confdefs.h. */
9819 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
9821 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
9822 before <wchar.h>. */
9827 wint_t foo = (wchar_t)'\0';
9836 if ac_fn_c_try_compile "$LINENO"; then :
9841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
9844 $as_echo "$gt_cv_c_wint_t" >&6; }
9845 if test $gt_cv_c_wint_t = yes; then
9847 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
9854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
9855 $as_echo_n "checking for intmax_t... " >&6; }
9856 if ${gt_cv_c_intmax_t+:} false; then :
9857 $as_echo_n "(cached) " >&6
9859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9860 /* end confdefs.h. */
9864 #if HAVE_STDINT_H_WITH_UINTMAX
9867 #if HAVE_INTTYPES_H_WITH_UINTMAX
9868 #include <inttypes.h>
9880 if ac_fn_c_try_compile "$LINENO"; then :
9881 gt_cv_c_intmax_t=yes
9885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
9888 $as_echo "$gt_cv_c_intmax_t" >&6; }
9889 if test $gt_cv_c_intmax_t = yes; then
9891 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
9897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
9898 $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
9899 if ${gt_cv_func_printf_posix+:} false; then :
9900 $as_echo_n "(cached) " >&6
9903 if test "$cross_compiling" = yes; then :
9905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9906 /* end confdefs.h. */
9908 #if defined __NetBSD__ || defined __BEOS__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
9913 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9914 $EGREP "notposix" >/dev/null 2>&1; then :
9915 gt_cv_func_printf_posix="guessing no"
9917 gt_cv_func_printf_posix="guessing yes"
9923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9924 /* end confdefs.h. */
9928 /* The string "%2$d %1$d", with dollar characters protected from the shell's
9929 dollar expansion (possibly an autoconf bug). */
9930 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
9931 static char buf[100];
9934 sprintf (buf, format, 33, 55);
9935 return (strcmp (buf, "55 33") != 0);
9938 if ac_fn_c_try_run "$LINENO"; then :
9939 gt_cv_func_printf_posix=yes
9941 gt_cv_func_printf_posix=no
9943 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9944 conftest.$ac_objext conftest.beam conftest.$ac_ext
9949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
9950 $as_echo "$gt_cv_func_printf_posix" >&6; }
9951 case $gt_cv_func_printf_posix in
9954 $as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
9960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library >= 2.1 or uClibc" >&5
9961 $as_echo_n "checking whether we are using the GNU C Library >= 2.1 or uClibc... " >&6; }
9962 if ${ac_cv_gnu_library_2_1+:} false; then :
9963 $as_echo_n "(cached) " >&6
9965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9966 /* end confdefs.h. */
9968 #include <features.h>
9969 #ifdef __GNU_LIBRARY__
9970 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
9979 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9980 $EGREP "Lucky" >/dev/null 2>&1; then :
9981 ac_cv_gnu_library_2_1=yes
9983 ac_cv_gnu_library_2_1=no
9990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
9991 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
9993 GLIBC21="$ac_cv_gnu_library_2_1"
9997 for ac_header in stdint.h
9999 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
10000 if test "x$ac_cv_header_stdint_h" = xyes; then :
10001 cat >>confdefs.h <<_ACEOF
10002 #define HAVE_STDINT_H 1
10009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
10010 $as_echo_n "checking for SIZE_MAX... " >&6; }
10011 if ${gl_cv_size_max+:} false; then :
10012 $as_echo_n "(cached) " >&6
10016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10017 /* end confdefs.h. */
10019 #include <limits.h>
10021 #include <stdint.h>
10028 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10029 $EGREP "Found it" >/dev/null 2>&1; then :
10034 if test -z "$gl_cv_size_max"; then
10035 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1" "#include <stddef.h>
10036 #include <limits.h>"; then :
10039 size_t_bits_minus_1=
10042 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then :
10048 if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
10049 if test $fits_in_uint = 1; then
10050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10051 /* end confdefs.h. */
10052 #include <stddef.h>
10054 extern unsigned long foo;
10064 if ac_fn_c_try_compile "$LINENO"; then :
10067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10069 if test $fits_in_uint = 1; then
10070 gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
10072 gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
10075 gl_cv_size_max='((size_t)~(size_t)0)'
10080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5
10081 $as_echo "$gl_cv_size_max" >&6; }
10082 if test "$gl_cv_size_max" != yes; then
10084 cat >>confdefs.h <<_ACEOF
10085 #define SIZE_MAX $gl_cv_size_max
10093 for ac_header in stdint.h
10095 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
10096 if test "x$ac_cv_header_stdint_h" = xyes; then :
10097 cat >>confdefs.h <<_ACEOF
10098 #define HAVE_STDINT_H 1
10109 for ac_func in $ac_func_list
10111 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10112 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10113 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10114 cat >>confdefs.h <<_ACEOF
10115 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
10129 $as_echo_n "checking for working fcntl.h... " >&6; }
10130 if ${gl_cv_header_working_fcntl_h+:} false; then :
10131 $as_echo_n "(cached) " >&6
10133 if test "$cross_compiling" = yes; then :
10134 gl_cv_header_working_fcntl_h=cross-compiling
10136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10137 /* end confdefs.h. */
10138 #include <sys/types.h>
10139 #include <sys/stat.h>
10141 # include <unistd.h>
10142 #else /* on Windows with MSVC */
10144 # include <stdlib.h>
10145 # defined sleep(n) _sleep ((n) * 1000)
10149 #define O_NOATIME 0
10152 #define O_NOFOLLOW 0
10154 static int const constants[] =
10156 O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
10157 O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
10164 int result = !constants;
10167 static char const sym[] = "conftest.sym";
10168 if (symlink ("/dev/null", sym) != 0)
10172 int fd = open (sym, O_WRONLY | O_NOFOLLOW | O_CREAT, 0);
10179 if (unlink (sym) != 0 || symlink (".", sym) != 0)
10183 int fd = open (sym, O_RDONLY | O_NOFOLLOW);
10194 static char const file[] = "confdefs.h";
10195 int fd = open (file, O_RDONLY | O_NOATIME);
10201 if (fstat (fd, &st0) != 0)
10207 if (read (fd, &c, 1) != 1)
10211 if (close (fd) != 0)
10216 if (stat (file, &st1) != 0)
10219 if (st0.st_atime != st1.st_atime)
10231 if ac_fn_c_try_run "$LINENO"; then :
10232 gl_cv_header_working_fcntl_h=yes
10235 4) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
10236 64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
10237 68) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
10238 *) gl_cv_header_working_fcntl_h='no';;
10241 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10242 conftest.$ac_objext conftest.beam conftest.$ac_ext
10246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
10247 $as_echo "$gl_cv_header_working_fcntl_h" >&6; }
10249 case $gl_cv_header_working_fcntl_h in #(
10250 *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
10254 cat >>confdefs.h <<_ACEOF
10255 #define HAVE_WORKING_O_NOATIME $ac_val
10259 case $gl_cv_header_working_fcntl_h in #(
10260 *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
10264 cat >>confdefs.h <<_ACEOF
10265 #define HAVE_WORKING_O_NOFOLLOW $ac_val
10270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
10271 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
10272 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
10273 $as_echo_n "(cached) " >&6
10275 gt_save_LIBS="$LIBS"
10276 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10278 /* end confdefs.h. */
10279 #include <CoreFoundation/CFPreferences.h>
10283 CFPreferencesCopyAppValue(NULL, NULL)
10288 if ac_fn_c_try_link "$LINENO"; then :
10289 gt_cv_func_CFPreferencesCopyAppValue=yes
10291 gt_cv_func_CFPreferencesCopyAppValue=no
10293 rm -f core conftest.err conftest.$ac_objext \
10294 conftest$ac_exeext conftest.$ac_ext
10295 LIBS="$gt_save_LIBS"
10297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
10298 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
10299 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
10301 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
10304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
10305 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
10306 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
10307 $as_echo_n "(cached) " >&6
10309 gt_save_LIBS="$LIBS"
10310 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10312 /* end confdefs.h. */
10313 #include <CoreFoundation/CFLocale.h>
10317 CFLocaleCopyCurrent();
10322 if ac_fn_c_try_link "$LINENO"; then :
10323 gt_cv_func_CFLocaleCopyCurrent=yes
10325 gt_cv_func_CFLocaleCopyCurrent=no
10327 rm -f core conftest.err conftest.$ac_objext \
10328 conftest$ac_exeext conftest.$ac_ext
10329 LIBS="$gt_save_LIBS"
10331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
10332 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
10333 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10335 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
10339 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10340 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
10352 case "$enable_silent_rules" in
10353 yes) INTL_DEFAULT_VERBOSITY=0;;
10354 no) INTL_DEFAULT_VERBOSITY=1;;
10355 *) INTL_DEFAULT_VERBOSITY=1;;
10359 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
10360 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
10364 $as_echo "#define ptrdiff_t long" >>confdefs.h
10369 for ac_header in features.h stddef.h stdlib.h string.h
10371 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10372 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10373 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10374 cat >>confdefs.h <<_ACEOF
10375 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10382 for ac_func in asprintf fwprintf newlocale putenv setenv setlocale \
10383 snprintf strnlen wcslen wcsnlen mbrtowc wcrtomb
10385 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10386 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10387 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10388 cat >>confdefs.h <<_ACEOF
10389 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10396 ac_fn_c_check_decl "$LINENO" "_snprintf" "ac_cv_have_decl__snprintf" "#include <stdio.h>
10398 if test "x$ac_cv_have_decl__snprintf" = xyes; then :
10404 cat >>confdefs.h <<_ACEOF
10405 #define HAVE_DECL__SNPRINTF $ac_have_decl
10407 ac_fn_c_check_decl "$LINENO" "_snwprintf" "ac_cv_have_decl__snwprintf" "#include <stdio.h>
10409 if test "x$ac_cv_have_decl__snwprintf" = xyes; then :
10415 cat >>confdefs.h <<_ACEOF
10416 #define HAVE_DECL__SNWPRINTF $ac_have_decl
10420 ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "#include <stdio.h>
10422 if test "x$ac_cv_have_decl_getc_unlocked" = xyes; then :
10428 cat >>confdefs.h <<_ACEOF
10429 #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
10433 case $gt_cv_func_printf_posix in
10434 *yes) HAVE_POSIX_PRINTF=1 ;;
10435 *) HAVE_POSIX_PRINTF=0 ;;
10438 if test "$ac_cv_func_asprintf" = yes; then
10444 if test "$ac_cv_func_snprintf" = yes; then
10450 if test "$ac_cv_func_newlocale" = yes; then
10456 if test "$ac_cv_func_wprintf" = yes; then
10464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10465 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10466 if ${am_cv_langinfo_codeset+:} false; then :
10467 $as_echo_n "(cached) " >&6
10469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10470 /* end confdefs.h. */
10471 #include <langinfo.h>
10475 char* cs = nl_langinfo(CODESET); return !cs;
10480 if ac_fn_c_try_link "$LINENO"; then :
10481 am_cv_langinfo_codeset=yes
10483 am_cv_langinfo_codeset=no
10485 rm -f core conftest.err conftest.$ac_objext \
10486 conftest$ac_exeext conftest.$ac_ext
10489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10490 $as_echo "$am_cv_langinfo_codeset" >&6; }
10491 if test $am_cv_langinfo_codeset = yes; then
10493 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10499 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10500 if ${gt_cv_val_LC_MESSAGES+:} false; then :
10501 $as_echo_n "(cached) " >&6
10503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10504 /* end confdefs.h. */
10505 #include <locale.h>
10514 if ac_fn_c_try_link "$LINENO"; then :
10515 gt_cv_val_LC_MESSAGES=yes
10517 gt_cv_val_LC_MESSAGES=no
10519 rm -f core conftest.err conftest.$ac_objext \
10520 conftest$ac_exeext conftest.$ac_ext
10522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5
10523 $as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
10524 if test $gt_cv_val_LC_MESSAGES = yes; then
10526 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10531 if test "$enable_shared" = yes; then
10533 mingw* | cygwin*) is_woe32dll=yes ;;
10534 *) is_woe32dll=no ;;
10539 WOE32DLL=$is_woe32dll
10543 mingw* | cygwin*) is_woe32=yes ;;
10548 if test $WOE32 = yes; then
10549 if test -n "$ac_tool_prefix"; then
10550 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
10551 set dummy ${ac_tool_prefix}windres; ac_word=$2
10552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10553 $as_echo_n "checking for $ac_word... " >&6; }
10554 if ${ac_cv_prog_WINDRES+:} false; then :
10555 $as_echo_n "(cached) " >&6
10557 if test -n "$WINDRES"; then
10558 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
10560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10561 for as_dir in $PATH
10564 test -z "$as_dir" && as_dir=.
10565 for ac_exec_ext in '' $ac_executable_extensions; do
10566 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10567 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
10568 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10577 WINDRES=$ac_cv_prog_WINDRES
10578 if test -n "$WINDRES"; then
10579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
10580 $as_echo "$WINDRES" >&6; }
10582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10583 $as_echo "no" >&6; }
10588 if test -z "$ac_cv_prog_WINDRES"; then
10589 ac_ct_WINDRES=$WINDRES
10590 # Extract the first word of "windres", so it can be a program name with args.
10591 set dummy windres; ac_word=$2
10592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10593 $as_echo_n "checking for $ac_word... " >&6; }
10594 if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
10595 $as_echo_n "(cached) " >&6
10597 if test -n "$ac_ct_WINDRES"; then
10598 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
10600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10601 for as_dir in $PATH
10604 test -z "$as_dir" && as_dir=.
10605 for ac_exec_ext in '' $ac_executable_extensions; do
10606 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10607 ac_cv_prog_ac_ct_WINDRES="windres"
10608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10617 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
10618 if test -n "$ac_ct_WINDRES"; then
10619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
10620 $as_echo "$ac_ct_WINDRES" >&6; }
10622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10623 $as_echo "no" >&6; }
10626 if test "x$ac_ct_WINDRES" = x; then
10629 case $cross_compiling:$ac_tool_warned in
10631 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10632 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10633 ac_tool_warned=yes ;;
10635 WINDRES=$ac_ct_WINDRES
10638 WINDRES="$ac_cv_prog_WINDRES"
10644 hpux*) LTLIBC="" ;;
10674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
10675 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
10676 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
10677 $as_echo_n "(cached) " >&6
10679 gt_save_LIBS="$LIBS"
10680 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10682 /* end confdefs.h. */
10683 #include <CoreFoundation/CFPreferences.h>
10687 CFPreferencesCopyAppValue(NULL, NULL)
10692 if ac_fn_c_try_link "$LINENO"; then :
10693 gt_cv_func_CFPreferencesCopyAppValue=yes
10695 gt_cv_func_CFPreferencesCopyAppValue=no
10697 rm -f core conftest.err conftest.$ac_objext \
10698 conftest$ac_exeext conftest.$ac_ext
10699 LIBS="$gt_save_LIBS"
10701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
10702 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
10703 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
10705 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
10708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
10709 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
10710 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
10711 $as_echo_n "(cached) " >&6
10713 gt_save_LIBS="$LIBS"
10714 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10716 /* end confdefs.h. */
10717 #include <CoreFoundation/CFLocale.h>
10721 CFLocaleCopyCurrent();
10726 if ac_fn_c_try_link "$LINENO"; then :
10727 gt_cv_func_CFLocaleCopyCurrent=yes
10729 gt_cv_func_CFLocaleCopyCurrent=no
10731 rm -f core conftest.err conftest.$ac_objext \
10732 conftest$ac_exeext conftest.$ac_ext
10733 LIBS="$gt_save_LIBS"
10735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
10736 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
10737 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10739 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
10743 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10744 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
10752 BUILD_INCLUDED_LIBINTL=no
10753 USE_INCLUDED_LIBINTL=no
10759 case " $gt_needs " in
10760 *" need-formatstring-macros "*) gt_api_version=3 ;;
10761 *" need-ngettext "*) gt_api_version=2 ;;
10762 *) gt_api_version=1 ;;
10764 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
10765 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
10767 if test "$USE_NLS" = "yes"; then
10768 gt_use_preinstalled_gnugettext=no
10770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
10771 $as_echo_n "checking whether included gettext is requested... " >&6; }
10773 # Check whether --with-included-gettext was given.
10774 if test "${with_included_gettext+set}" = set; then :
10775 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
10777 nls_cv_force_use_gnu_gettext=no
10780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
10781 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
10783 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
10784 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
10787 if test $gt_api_version -ge 3; then
10788 gt_revision_test_code='
10789 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
10790 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
10792 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
10795 gt_revision_test_code=
10797 if test $gt_api_version -ge 2; then
10798 gt_expression_test_code=' + * ngettext ("", "", 0)'
10800 gt_expression_test_code=
10803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
10804 $as_echo_n "checking for GNU gettext in libc... " >&6; }
10805 if eval \${$gt_func_gnugettext_libc+:} false; then :
10806 $as_echo_n "(cached) " >&6
10808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10809 /* end confdefs.h. */
10811 #include <libintl.h>
10812 $gt_revision_test_code
10813 extern int _nl_msg_cat_cntr;
10814 extern int *_nl_domain_bindings;
10820 bindtextdomain ("", "");
10821 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
10827 if ac_fn_c_try_link "$LINENO"; then :
10828 eval "$gt_func_gnugettext_libc=yes"
10830 eval "$gt_func_gnugettext_libc=no"
10832 rm -f core conftest.err conftest.$ac_objext \
10833 conftest$ac_exeext conftest.$ac_ext
10835 eval ac_res=\$$gt_func_gnugettext_libc
10836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10837 $as_echo "$ac_res" >&6; }
10839 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
10850 acl_save_prefix="$prefix"
10851 prefix="$acl_final_prefix"
10852 acl_save_exec_prefix="$exec_prefix"
10853 exec_prefix="$acl_final_exec_prefix"
10855 eval additional_includedir=\"$includedir\"
10856 eval additional_libdir=\"$libdir\"
10858 exec_prefix="$acl_save_exec_prefix"
10859 prefix="$acl_save_prefix"
10862 # Check whether --with-libintl-prefix was given.
10863 if test "${with_libintl_prefix+set}" = set; then :
10864 withval=$with_libintl_prefix;
10865 if test "X$withval" = "Xno"; then
10868 if test "X$withval" = "X"; then
10870 acl_save_prefix="$prefix"
10871 prefix="$acl_final_prefix"
10872 acl_save_exec_prefix="$exec_prefix"
10873 exec_prefix="$acl_final_exec_prefix"
10875 eval additional_includedir=\"$includedir\"
10876 eval additional_libdir=\"$libdir\"
10878 exec_prefix="$acl_save_exec_prefix"
10879 prefix="$acl_save_prefix"
10882 additional_includedir="$withval/include"
10883 additional_libdir="$withval/$acl_libdirstem"
10884 if test "$acl_libdirstem2" != "$acl_libdirstem" \
10885 && ! test -d "$withval/$acl_libdirstem"; then
10886 additional_libdir="$withval/$acl_libdirstem2"
10900 names_already_handled=
10901 names_next_round='intl '
10902 while test -n "$names_next_round"; do
10903 names_this_round="$names_next_round"
10905 for name in $names_this_round; do
10907 for n in $names_already_handled; do
10908 if test "$n" = "$name"; then
10909 already_handled=yes
10913 if test -z "$already_handled"; then
10914 names_already_handled="$names_already_handled $name"
10915 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
10916 eval value=\"\$HAVE_LIB$uppername\"
10917 if test -n "$value"; then
10918 if test "$value" = yes; then
10919 eval value=\"\$LIB$uppername\"
10920 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
10921 eval value=\"\$LTLIB$uppername\"
10922 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
10931 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
10932 if test -n "$acl_shlibext"; then
10933 shrext=".$acl_shlibext" # typically: shrext=.so
10937 if test $use_additional = yes; then
10938 dir="$additional_libdir"
10939 if test -n "$acl_shlibext"; then
10940 if test -f "$dir/$libname$shrext"; then
10942 found_so="$dir/$libname$shrext"
10944 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
10945 ver=`(cd "$dir" && \
10946 for f in "$libname$shrext".*; do echo "$f"; done \
10947 | sed -e "s,^$libname$shrext\\\\.,," \
10948 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
10949 | sed 1q ) 2>/dev/null`
10950 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
10952 found_so="$dir/$libname$shrext.$ver"
10955 eval library_names=\"$acl_library_names_spec\"
10956 for f in $library_names; do
10957 if test -f "$dir/$f"; then
10966 if test "X$found_dir" = "X"; then
10967 if test -f "$dir/$libname.$acl_libext"; then
10969 found_a="$dir/$libname.$acl_libext"
10972 if test "X$found_dir" != "X"; then
10973 if test -f "$dir/$libname.la"; then
10974 found_la="$dir/$libname.la"
10978 if test "X$found_dir" = "X"; then
10979 for x in $LDFLAGS $LTLIBINTL; do
10981 acl_save_prefix="$prefix"
10982 prefix="$acl_final_prefix"
10983 acl_save_exec_prefix="$exec_prefix"
10984 exec_prefix="$acl_final_exec_prefix"
10986 exec_prefix="$acl_save_exec_prefix"
10987 prefix="$acl_save_prefix"
10991 dir=`echo "X$x" | sed -e 's/^X-L//'`
10992 if test -n "$acl_shlibext"; then
10993 if test -f "$dir/$libname$shrext"; then
10995 found_so="$dir/$libname$shrext"
10997 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
10998 ver=`(cd "$dir" && \
10999 for f in "$libname$shrext".*; do echo "$f"; done \
11000 | sed -e "s,^$libname$shrext\\\\.,," \
11001 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
11002 | sed 1q ) 2>/dev/null`
11003 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
11005 found_so="$dir/$libname$shrext.$ver"
11008 eval library_names=\"$acl_library_names_spec\"
11009 for f in $library_names; do
11010 if test -f "$dir/$f"; then
11019 if test "X$found_dir" = "X"; then
11020 if test -f "$dir/$libname.$acl_libext"; then
11022 found_a="$dir/$libname.$acl_libext"
11025 if test "X$found_dir" != "X"; then
11026 if test -f "$dir/$libname.la"; then
11027 found_la="$dir/$libname.la"
11032 if test "X$found_dir" != "X"; then
11037 if test "X$found_dir" != "X"; then
11038 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
11039 if test "X$found_so" != "X"; then
11040 if test "$enable_rpath" = no \
11041 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
11042 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
11043 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11046 for x in $ltrpathdirs; do
11047 if test "X$x" = "X$found_dir"; then
11052 if test -z "$haveit"; then
11053 ltrpathdirs="$ltrpathdirs $found_dir"
11055 if test "$acl_hardcode_direct" = yes; then
11056 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11058 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
11059 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11061 for x in $rpathdirs; do
11062 if test "X$x" = "X$found_dir"; then
11067 if test -z "$haveit"; then
11068 rpathdirs="$rpathdirs $found_dir"
11072 for x in $LDFLAGS $LIBINTL; do
11074 acl_save_prefix="$prefix"
11075 prefix="$acl_final_prefix"
11076 acl_save_exec_prefix="$exec_prefix"
11077 exec_prefix="$acl_final_exec_prefix"
11079 exec_prefix="$acl_save_exec_prefix"
11080 prefix="$acl_save_prefix"
11082 if test "X$x" = "X-L$found_dir"; then
11087 if test -z "$haveit"; then
11088 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
11090 if test "$acl_hardcode_minus_L" != no; then
11091 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11093 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
11099 if test "X$found_a" != "X"; then
11100 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
11102 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
11105 additional_includedir=
11106 case "$found_dir" in
11107 */$acl_libdirstem | */$acl_libdirstem/)
11108 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
11109 if test "$name" = 'intl'; then
11110 LIBINTL_PREFIX="$basedir"
11112 additional_includedir="$basedir/include"
11114 */$acl_libdirstem2 | */$acl_libdirstem2/)
11115 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
11116 if test "$name" = 'intl'; then
11117 LIBINTL_PREFIX="$basedir"
11119 additional_includedir="$basedir/include"
11122 if test "X$additional_includedir" != "X"; then
11123 if test "X$additional_includedir" != "X/usr/include"; then
11125 if test "X$additional_includedir" = "X/usr/local/include"; then
11126 if test -n "$GCC"; then
11128 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
11132 if test -z "$haveit"; then
11133 for x in $CPPFLAGS $INCINTL; do
11135 acl_save_prefix="$prefix"
11136 prefix="$acl_final_prefix"
11137 acl_save_exec_prefix="$exec_prefix"
11138 exec_prefix="$acl_final_exec_prefix"
11140 exec_prefix="$acl_save_exec_prefix"
11141 prefix="$acl_save_prefix"
11143 if test "X$x" = "X-I$additional_includedir"; then
11148 if test -z "$haveit"; then
11149 if test -d "$additional_includedir"; then
11150 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
11156 if test -n "$found_la"; then
11157 save_libdir="$libdir"
11158 case "$found_la" in
11159 */* | *\\*) . "$found_la" ;;
11160 *) . "./$found_la" ;;
11162 libdir="$save_libdir"
11163 for dep in $dependency_libs; do
11166 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
11167 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
11168 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
11170 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
11171 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
11172 if test -n "$GCC"; then
11174 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
11178 if test -z "$haveit"; then
11180 for x in $LDFLAGS $LIBINTL; do
11182 acl_save_prefix="$prefix"
11183 prefix="$acl_final_prefix"
11184 acl_save_exec_prefix="$exec_prefix"
11185 exec_prefix="$acl_final_exec_prefix"
11187 exec_prefix="$acl_save_exec_prefix"
11188 prefix="$acl_save_prefix"
11190 if test "X$x" = "X-L$additional_libdir"; then
11195 if test -z "$haveit"; then
11196 if test -d "$additional_libdir"; then
11197 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
11201 for x in $LDFLAGS $LTLIBINTL; do
11203 acl_save_prefix="$prefix"
11204 prefix="$acl_final_prefix"
11205 acl_save_exec_prefix="$exec_prefix"
11206 exec_prefix="$acl_final_exec_prefix"
11208 exec_prefix="$acl_save_exec_prefix"
11209 prefix="$acl_save_prefix"
11211 if test "X$x" = "X-L$additional_libdir"; then
11216 if test -z "$haveit"; then
11217 if test -d "$additional_libdir"; then
11218 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
11225 dir=`echo "X$dep" | sed -e 's/^X-R//'`
11226 if test "$enable_rpath" != no; then
11228 for x in $rpathdirs; do
11229 if test "X$x" = "X$dir"; then
11234 if test -z "$haveit"; then
11235 rpathdirs="$rpathdirs $dir"
11238 for x in $ltrpathdirs; do
11239 if test "X$x" = "X$dir"; then
11244 if test -z "$haveit"; then
11245 ltrpathdirs="$ltrpathdirs $dir"
11250 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11253 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11256 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
11257 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
11263 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
11264 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
11270 if test "X$rpathdirs" != "X"; then
11271 if test -n "$acl_hardcode_libdir_separator"; then
11273 for found_dir in $rpathdirs; do
11274 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
11276 acl_save_libdir="$libdir"
11278 eval flag=\"$acl_hardcode_libdir_flag_spec\"
11279 libdir="$acl_save_libdir"
11280 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
11282 for found_dir in $rpathdirs; do
11283 acl_save_libdir="$libdir"
11284 libdir="$found_dir"
11285 eval flag=\"$acl_hardcode_libdir_flag_spec\"
11286 libdir="$acl_save_libdir"
11287 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
11291 if test "X$ltrpathdirs" != "X"; then
11292 for found_dir in $ltrpathdirs; do
11293 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
11302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
11303 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
11304 if eval \${$gt_func_gnugettext_libintl+:} false; then :
11305 $as_echo_n "(cached) " >&6
11307 gt_save_CPPFLAGS="$CPPFLAGS"
11308 CPPFLAGS="$CPPFLAGS $INCINTL"
11309 gt_save_LIBS="$LIBS"
11310 LIBS="$LIBS $LIBINTL"
11311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11312 /* end confdefs.h. */
11314 #include <libintl.h>
11315 $gt_revision_test_code
11316 extern int _nl_msg_cat_cntr;
11321 const char *_nl_expand_alias (const char *);
11327 bindtextdomain ("", "");
11328 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
11334 if ac_fn_c_try_link "$LINENO"; then :
11335 eval "$gt_func_gnugettext_libintl=yes"
11337 eval "$gt_func_gnugettext_libintl=no"
11339 rm -f core conftest.err conftest.$ac_objext \
11340 conftest$ac_exeext conftest.$ac_ext
11341 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
11342 LIBS="$LIBS $LIBICONV"
11343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11344 /* end confdefs.h. */
11346 #include <libintl.h>
11347 $gt_revision_test_code
11348 extern int _nl_msg_cat_cntr;
11353 const char *_nl_expand_alias (const char *);
11359 bindtextdomain ("", "");
11360 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
11366 if ac_fn_c_try_link "$LINENO"; then :
11367 LIBINTL="$LIBINTL $LIBICONV"
11368 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
11369 eval "$gt_func_gnugettext_libintl=yes"
11372 rm -f core conftest.err conftest.$ac_objext \
11373 conftest$ac_exeext conftest.$ac_ext
11375 CPPFLAGS="$gt_save_CPPFLAGS"
11376 LIBS="$gt_save_LIBS"
11378 eval ac_res=\$$gt_func_gnugettext_libintl
11379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11380 $as_echo "$ac_res" >&6; }
11383 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
11384 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
11385 && test "$PACKAGE" != gettext-runtime \
11386 && test "$PACKAGE" != gettext-tools; }; then
11387 gt_use_preinstalled_gnugettext=yes
11395 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
11396 nls_cv_use_gnu_gettext=yes
11400 if test "$nls_cv_use_gnu_gettext" = "yes"; then
11401 BUILD_INCLUDED_LIBINTL=yes
11402 USE_INCLUDED_LIBINTL=yes
11403 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV $LIBTHREAD"
11404 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV $LTLIBTHREAD"
11405 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
11409 if test "$gt_use_preinstalled_gnugettext" = "yes" \
11410 || test "$nls_cv_use_gnu_gettext" = "yes"; then
11415 if test -n "$INTL_MACOSX_LIBS"; then
11416 if test "$gt_use_preinstalled_gnugettext" = "yes" \
11417 || test "$nls_cv_use_gnu_gettext" = "yes"; then
11418 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
11419 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
11423 if test "$gt_use_preinstalled_gnugettext" = "yes" \
11424 || test "$nls_cv_use_gnu_gettext" = "yes"; then
11426 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
11434 $as_echo_n "checking whether to use NLS... " >&6; }
11435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
11436 $as_echo "$USE_NLS" >&6; }
11437 if test "$USE_NLS" = "yes"; then
11438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
11439 $as_echo_n "checking where the gettext function comes from... " >&6; }
11440 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
11441 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
11442 gt_source="external libintl"
11447 gt_source="included intl directory"
11449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
11450 $as_echo "$gt_source" >&6; }
11453 if test "$USE_NLS" = "yes"; then
11455 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
11456 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
11457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
11458 $as_echo_n "checking how to link with libintl... " >&6; }
11459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
11460 $as_echo "$LIBINTL" >&6; }
11462 for element in $INCINTL; do
11464 for x in $CPPFLAGS; do
11466 acl_save_prefix="$prefix"
11467 prefix="$acl_final_prefix"
11468 acl_save_exec_prefix="$exec_prefix"
11469 exec_prefix="$acl_final_exec_prefix"
11471 exec_prefix="$acl_save_exec_prefix"
11472 prefix="$acl_save_prefix"
11474 if test "X$x" = "X$element"; then
11479 if test -z "$haveit"; then
11480 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11487 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
11490 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
11498 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
11499 BUILD_INCLUDED_LIBINTL=yes
11506 nls_cv_header_intl=
11507 nls_cv_header_libgt=
11519 if test "$USE_INCLUDED_LIBINTL" = yes; then
11520 INTLOBJS="\$(GETTOBJS)"
11524 INTL_LIBTOOL_SUFFIX_PREFIX=
11528 INTLLIBS="$LIBINTL"
11536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
11537 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
11539 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
11540 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
11541 $as_echo_n "(cached) " >&6
11543 cat >conftest.make <<\_ACEOF
11546 @echo '@@@%%%=$(MAKE)=@@@%%%'
11548 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
11549 case `${MAKE-make} -f conftest.make 2>/dev/null` in
11550 *@@@%%%=?*=@@@%%%*)
11551 eval ac_cv_prog_make_${ac_make}_set=yes;;
11553 eval ac_cv_prog_make_${ac_make}_set=no;;
11555 rm -f conftest.make
11557 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
11558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11559 $as_echo "yes" >&6; }
11562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11563 $as_echo "no" >&6; }
11564 SET_MAKE="MAKE=${MAKE-make}"
11567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5
11568 $as_echo_n "checking for GNU make... " >&6; }
11569 if ${_cv_gnu_make_command+:} false; then :
11570 $as_echo_n "(cached) " >&6
11572 _cv_gnu_make_command='' ;
11573 if test -n "$FORCE_NATIVE_MAKE" ; then
11576 MAKES="make gmake gnumake"
11578 for a in "$MAKE" $MAKES ; do
11579 if test -z "$a" ; then continue ; fi ;
11580 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
11581 _cv_gnu_make_command=$a ;
11587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_cv_gnu_make_command" >&5
11588 $as_echo "$_cv_gnu_make_command" >&6; } ;
11589 if test "x$_cv_gnu_make_command" != "x" ; then
11595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"Not found\"" >&5
11596 $as_echo "\"Not found\"" >&6; };
11601 # Extract the first word of "ln", so it can be a program name with args.
11602 set dummy ln; ac_word=$2
11603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11604 $as_echo_n "checking for $ac_word... " >&6; }
11605 if ${ac_cv_path_LN+:} false; then :
11606 $as_echo_n "(cached) " >&6
11610 ac_cv_path_LN="$LN" # Let the user override the test with a path.
11613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11614 for as_dir in $PATH
11617 test -z "$as_dir" && as_dir=.
11618 for ac_exec_ext in '' $ac_executable_extensions; do
11619 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11620 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
11621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11628 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
11633 if test -n "$LN"; then
11634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
11635 $as_echo "$LN" >&6; }
11637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11638 $as_echo "no" >&6; }
11643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
11644 $as_echo_n "checking whether ln -s works... " >&6; }
11646 if test "$LN_S" = "ln -s"; then
11647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11648 $as_echo "yes" >&6; }
11650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
11651 $as_echo "no, using $LN_S" >&6; }
11654 # Extract the first word of "mv", so it can be a program name with args.
11655 set dummy mv; ac_word=$2
11656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11657 $as_echo_n "checking for $ac_word... " >&6; }
11658 if ${ac_cv_path_MV+:} false; then :
11659 $as_echo_n "(cached) " >&6
11663 ac_cv_path_MV="$MV" # Let the user override the test with a path.
11666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11667 for as_dir in $PATH
11670 test -z "$as_dir" && as_dir=.
11671 for ac_exec_ext in '' $ac_executable_extensions; do
11672 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11673 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
11674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11681 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
11686 if test -n "$MV"; then
11687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
11688 $as_echo "$MV" >&6; }
11690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11691 $as_echo "no" >&6; }
11695 # Extract the first word of "cp", so it can be a program name with args.
11696 set dummy cp; ac_word=$2
11697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11698 $as_echo_n "checking for $ac_word... " >&6; }
11699 if ${ac_cv_path_CP+:} false; then :
11700 $as_echo_n "(cached) " >&6
11704 ac_cv_path_CP="$CP" # Let the user override the test with a path.
11707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11708 for as_dir in $PATH
11711 test -z "$as_dir" && as_dir=.
11712 for ac_exec_ext in '' $ac_executable_extensions; do
11713 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11714 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
11715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11722 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
11727 if test -n "$CP"; then
11728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
11729 $as_echo "$CP" >&6; }
11731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11732 $as_echo "no" >&6; }
11736 # Extract the first word of "rm", so it can be a program name with args.
11737 set dummy rm; ac_word=$2
11738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11739 $as_echo_n "checking for $ac_word... " >&6; }
11740 if ${ac_cv_path_RM+:} false; then :
11741 $as_echo_n "(cached) " >&6
11745 ac_cv_path_RM="$RM" # Let the user override the test with a path.
11748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11749 for as_dir in $PATH
11752 test -z "$as_dir" && as_dir=.
11753 for ac_exec_ext in '' $ac_executable_extensions; do
11754 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11755 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
11756 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11763 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
11768 if test -n "$RM"; then
11769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
11770 $as_echo "$RM" >&6; }
11772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11773 $as_echo "no" >&6; }
11777 # Extract the first word of "chmod", so it can be a program name with args.
11778 set dummy chmod; ac_word=$2
11779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11780 $as_echo_n "checking for $ac_word... " >&6; }
11781 if ${ac_cv_path_CHMOD+:} false; then :
11782 $as_echo_n "(cached) " >&6
11786 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
11789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11790 for as_dir in $PATH
11793 test -z "$as_dir" && as_dir=.
11794 for ac_exec_ext in '' $ac_executable_extensions; do
11795 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11796 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
11797 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11804 test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
11808 CHMOD=$ac_cv_path_CHMOD
11809 if test -n "$CHMOD"; then
11810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
11811 $as_echo "$CHMOD" >&6; }
11813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11814 $as_echo "no" >&6; }
11818 for ac_prog in gawk mawk nawk awk
11820 # Extract the first word of "$ac_prog", so it can be a program name with args.
11821 set dummy $ac_prog; ac_word=$2
11822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11823 $as_echo_n "checking for $ac_word... " >&6; }
11824 if ${ac_cv_prog_AWK+:} false; then :
11825 $as_echo_n "(cached) " >&6
11827 if test -n "$AWK"; then
11828 ac_cv_prog_AWK="$AWK" # Let the user override the test.
11830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11831 for as_dir in $PATH
11834 test -z "$as_dir" && as_dir=.
11835 for ac_exec_ext in '' $ac_executable_extensions; do
11836 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11837 ac_cv_prog_AWK="$ac_prog"
11838 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11847 AWK=$ac_cv_prog_AWK
11848 if test -n "$AWK"; then
11849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
11850 $as_echo "$AWK" >&6; }
11852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11853 $as_echo "no" >&6; }
11857 test -n "$AWK" && break
11860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
11861 $as_echo_n "checking for egrep... " >&6; }
11862 if ${ac_cv_path_EGREP+:} false; then :
11863 $as_echo_n "(cached) " >&6
11865 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
11866 then ac_cv_path_EGREP="$GREP -E"
11868 if test -z "$EGREP"; then
11869 ac_path_EGREP_found=false
11870 # Loop through the user's path and test for each of PROGNAME-LIST
11871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11872 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11875 test -z "$as_dir" && as_dir=.
11876 for ac_prog in egrep; do
11877 for ac_exec_ext in '' $ac_executable_extensions; do
11878 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
11879 as_fn_executable_p "$ac_path_EGREP" || continue
11880 # Check for GNU ac_path_EGREP and select it if it is found.
11881 # Check for GNU $ac_path_EGREP
11882 case `"$ac_path_EGREP" --version 2>&1` in
11884 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
11887 $as_echo_n 0123456789 >"conftest.in"
11890 cat "conftest.in" "conftest.in" >"conftest.tmp"
11891 mv "conftest.tmp" "conftest.in"
11892 cp "conftest.in" "conftest.nl"
11893 $as_echo 'EGREP' >> "conftest.nl"
11894 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11895 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11896 as_fn_arith $ac_count + 1 && ac_count=$as_val
11897 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
11898 # Best one so far, save it but keep looking for a better one
11899 ac_cv_path_EGREP="$ac_path_EGREP"
11900 ac_path_EGREP_max=$ac_count
11902 # 10*(2^10) chars as input seems more than enough
11903 test $ac_count -gt 10 && break
11905 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11908 $ac_path_EGREP_found && break 3
11913 if test -z "$ac_cv_path_EGREP"; then
11914 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11917 ac_cv_path_EGREP=$EGREP
11922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
11923 $as_echo "$ac_cv_path_EGREP" >&6; }
11924 EGREP="$ac_cv_path_EGREP"
11927 # Extract the first word of "sed", so it can be a program name with args.
11928 set dummy sed; ac_word=$2
11929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11930 $as_echo_n "checking for $ac_word... " >&6; }
11931 if ${ac_cv_path_SED+:} false; then :
11932 $as_echo_n "(cached) " >&6
11936 ac_cv_path_SED="$SED" # Let the user override the test with a path.
11939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11940 for as_dir in $PATH
11943 test -z "$as_dir" && as_dir=.
11944 for ac_exec_ext in '' $ac_executable_extensions; do
11945 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11946 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
11947 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11954 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
11958 SED=$ac_cv_path_SED
11959 if test -n "$SED"; then
11960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
11961 $as_echo "$SED" >&6; }
11963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11964 $as_echo "no" >&6; }
11968 # Extract the first word of "perl", so it can be a program name with args.
11969 set dummy perl; ac_word=$2
11970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11971 $as_echo_n "checking for $ac_word... " >&6; }
11972 if ${ac_cv_path_PERL+:} false; then :
11973 $as_echo_n "(cached) " >&6
11977 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
11980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11981 for as_dir in $PATH
11984 test -z "$as_dir" && as_dir=.
11985 for ac_exec_ext in '' $ac_executable_extensions; do
11986 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11987 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
11988 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11995 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
11999 PERL=$ac_cv_path_PERL
12000 if test -n "$PERL"; then
12001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
12002 $as_echo "$PERL" >&6; }
12004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12005 $as_echo "no" >&6; }
12009 # Extract the first word of "ldconfig", so it can be a program name with args.
12010 set dummy ldconfig; ac_word=$2
12011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12012 $as_echo_n "checking for $ac_word... " >&6; }
12013 if ${ac_cv_path_LDCONFIG+:} false; then :
12014 $as_echo_n "(cached) " >&6
12018 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
12021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12022 for as_dir in $PATH
12025 test -z "$as_dir" && as_dir=.
12026 for ac_exec_ext in '' $ac_executable_extensions; do
12027 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12028 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
12029 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12036 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
12040 LDCONFIG=$ac_cv_path_LDCONFIG
12041 if test -n "$LDCONFIG"; then
12042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
12043 $as_echo "$LDCONFIG" >&6; }
12045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12046 $as_echo "no" >&6; }
12050 if test -n "$ac_tool_prefix"; then
12051 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
12052 set dummy ${ac_tool_prefix}ar; ac_word=$2
12053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12054 $as_echo_n "checking for $ac_word... " >&6; }
12055 if ${ac_cv_prog_AR+:} false; then :
12056 $as_echo_n "(cached) " >&6
12058 if test -n "$AR"; then
12059 ac_cv_prog_AR="$AR" # Let the user override the test.
12061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12062 for as_dir in $PATH
12065 test -z "$as_dir" && as_dir=.
12066 for ac_exec_ext in '' $ac_executable_extensions; do
12067 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12068 ac_cv_prog_AR="${ac_tool_prefix}ar"
12069 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12079 if test -n "$AR"; then
12080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12081 $as_echo "$AR" >&6; }
12083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12084 $as_echo "no" >&6; }
12089 if test -z "$ac_cv_prog_AR"; then
12091 # Extract the first word of "ar", so it can be a program name with args.
12092 set dummy ar; ac_word=$2
12093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12094 $as_echo_n "checking for $ac_word... " >&6; }
12095 if ${ac_cv_prog_ac_ct_AR+:} false; then :
12096 $as_echo_n "(cached) " >&6
12098 if test -n "$ac_ct_AR"; then
12099 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12102 for as_dir in $PATH
12105 test -z "$as_dir" && as_dir=.
12106 for ac_exec_ext in '' $ac_executable_extensions; do
12107 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12108 ac_cv_prog_ac_ct_AR="ar"
12109 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12118 ac_ct_AR=$ac_cv_prog_ac_ct_AR
12119 if test -n "$ac_ct_AR"; then
12120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
12121 $as_echo "$ac_ct_AR" >&6; }
12123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12124 $as_echo "no" >&6; }
12127 if test "x$ac_ct_AR" = x; then
12130 case $cross_compiling:$ac_tool_warned in
12132 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12133 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12134 ac_tool_warned=yes ;;
12139 AR="$ac_cv_prog_AR"
12142 if test -n "$ac_tool_prefix"; then
12143 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12144 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12146 $as_echo_n "checking for $ac_word... " >&6; }
12147 if ${ac_cv_prog_RANLIB+:} false; then :
12148 $as_echo_n "(cached) " >&6
12150 if test -n "$RANLIB"; then
12151 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12154 for as_dir in $PATH
12157 test -z "$as_dir" && as_dir=.
12158 for ac_exec_ext in '' $ac_executable_extensions; do
12159 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12160 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12161 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12170 RANLIB=$ac_cv_prog_RANLIB
12171 if test -n "$RANLIB"; then
12172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12173 $as_echo "$RANLIB" >&6; }
12175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12176 $as_echo "no" >&6; }
12181 if test -z "$ac_cv_prog_RANLIB"; then
12182 ac_ct_RANLIB=$RANLIB
12183 # Extract the first word of "ranlib", so it can be a program name with args.
12184 set dummy ranlib; ac_word=$2
12185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12186 $as_echo_n "checking for $ac_word... " >&6; }
12187 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
12188 $as_echo_n "(cached) " >&6
12190 if test -n "$ac_ct_RANLIB"; then
12191 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12194 for as_dir in $PATH
12197 test -z "$as_dir" && as_dir=.
12198 for ac_exec_ext in '' $ac_executable_extensions; do
12199 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12200 ac_cv_prog_ac_ct_RANLIB="ranlib"
12201 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12210 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12211 if test -n "$ac_ct_RANLIB"; then
12212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12213 $as_echo "$ac_ct_RANLIB" >&6; }
12215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12216 $as_echo "no" >&6; }
12219 if test "x$ac_ct_RANLIB" = x; then
12222 case $cross_compiling:$ac_tool_warned in
12224 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12225 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12226 ac_tool_warned=yes ;;
12228 RANLIB=$ac_ct_RANLIB
12231 RANLIB="$ac_cv_prog_RANLIB"
12234 if test -n "$ac_tool_prefix"; then
12235 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12236 set dummy ${ac_tool_prefix}strip; ac_word=$2
12237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12238 $as_echo_n "checking for $ac_word... " >&6; }
12239 if ${ac_cv_prog_STRIP+:} false; then :
12240 $as_echo_n "(cached) " >&6
12242 if test -n "$STRIP"; then
12243 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12246 for as_dir in $PATH
12249 test -z "$as_dir" && as_dir=.
12250 for ac_exec_ext in '' $ac_executable_extensions; do
12251 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12252 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12253 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12262 STRIP=$ac_cv_prog_STRIP
12263 if test -n "$STRIP"; then
12264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12265 $as_echo "$STRIP" >&6; }
12267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12268 $as_echo "no" >&6; }
12273 if test -z "$ac_cv_prog_STRIP"; then
12275 # Extract the first word of "strip", so it can be a program name with args.
12276 set dummy strip; ac_word=$2
12277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12278 $as_echo_n "checking for $ac_word... " >&6; }
12279 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
12280 $as_echo_n "(cached) " >&6
12282 if test -n "$ac_ct_STRIP"; then
12283 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12286 for as_dir in $PATH
12289 test -z "$as_dir" && as_dir=.
12290 for ac_exec_ext in '' $ac_executable_extensions; do
12291 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12292 ac_cv_prog_ac_ct_STRIP="strip"
12293 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12302 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12303 if test -n "$ac_ct_STRIP"; then
12304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
12305 $as_echo "$ac_ct_STRIP" >&6; }
12307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12308 $as_echo "no" >&6; }
12311 if test "x$ac_ct_STRIP" = x; then
12314 case $cross_compiling:$ac_tool_warned in
12316 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12317 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12318 ac_tool_warned=yes ;;
12323 STRIP="$ac_cv_prog_STRIP"
12326 # Extract the first word of "makeinfo", so it can be a program name with args.
12327 set dummy makeinfo; ac_word=$2
12328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12329 $as_echo_n "checking for $ac_word... " >&6; }
12330 if ${ac_cv_prog_MAKEINFO+:} false; then :
12331 $as_echo_n "(cached) " >&6
12333 if test -n "$MAKEINFO"; then
12334 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
12336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12337 for as_dir in $PATH
12340 test -z "$as_dir" && as_dir=.
12341 for ac_exec_ext in '' $ac_executable_extensions; do
12342 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12343 ac_cv_prog_MAKEINFO="makeinfo"
12344 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12353 MAKEINFO=$ac_cv_prog_MAKEINFO
12354 if test -n "$MAKEINFO"; then
12355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
12356 $as_echo "$MAKEINFO" >&6; }
12358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12359 $as_echo "no" >&6; }
12363 if test "_$MAKEINFO" = "_"; then
12364 MAKEINFO="echo Makeinfo is missing. Info documentation will not be built."
12366 case "$MAKEINFO" in
12368 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
12369 *** Makeinfo is missing. Info documentation will not be built." >&5
12370 $as_echo "$as_me: WARNING:
12371 *** Makeinfo is missing. Info documentation will not be built." >&2;}
12379 # See if we need a separate native compiler.
12380 if test $cross_compiling = no; then
12384 for ac_prog in gcc cc
12386 # Extract the first word of "$ac_prog", so it can be a program name with args.
12387 set dummy $ac_prog; ac_word=$2
12388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12389 $as_echo_n "checking for $ac_word... " >&6; }
12390 if ${ac_cv_prog_BUILD_CC+:} false; then :
12391 $as_echo_n "(cached) " >&6
12393 if test -n "$BUILD_CC"; then
12394 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
12396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12397 for as_dir in $PATH
12400 test -z "$as_dir" && as_dir=.
12401 for ac_exec_ext in '' $ac_executable_extensions; do
12402 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12403 ac_cv_prog_BUILD_CC="$ac_prog"
12404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12413 BUILD_CC=$ac_cv_prog_BUILD_CC
12414 if test -n "$BUILD_CC"; then
12415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
12416 $as_echo "$BUILD_CC" >&6; }
12418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12419 $as_echo "no" >&6; }
12423 test -n "$BUILD_CC" && break
12427 for ac_header in dirent.h errno.h execinfo.h getopt.h malloc.h mntent.h paths.h semaphore.h setjmp.h signal.h stdarg.h stdint.h stdlib.h termios.h termio.h unistd.h utime.h attr/xattr.h linux/falloc.h linux/fd.h linux/fsmap.h linux/major.h linux/loop.h linux/types.h net/if_dl.h netinet/in.h sys/acl.h sys/disklabel.h sys/disk.h sys/file.h sys/ioctl.h sys/key.h sys/mkdev.h sys/mman.h sys/mount.h sys/prctl.h sys/resource.h sys/select.h sys/socket.h sys/sockio.h sys/stat.h sys/syscall.h sys/sysctl.h sys/sysmacros.h sys/time.h sys/types.h sys/un.h sys/wait.h sys/xattr.h
12429 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12430 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12431 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12432 cat >>confdefs.h <<_ACEOF
12433 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a dd(1) program that supports iflag=fullblock" >&5
12441 $as_echo_n "checking for a dd(1) program that supports iflag=fullblock... " >&6; }
12443 for i in dd gdd ; do
12444 if "$i" if=/dev/null of=/dev/null count=1 bs=10k 2>/dev/null iflag=fullblock oflag=append ; then
12449 if test -n "$DD" ; then
12450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DD" >&5
12451 $as_echo "$DD" >&6; }
12453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found, using dd" >&5
12454 $as_echo "not found, using dd" >&6; }
12456 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No GNU-compatible dd(1) program found, expect some self-test failures." >&5
12457 $as_echo "$as_me: WARNING: No GNU-compatible dd(1) program found, expect some self-test failures." >&2;}
12461 for ac_header in net/if.h
12463 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
12464 #if HAVE_SYS_TYPES_H
12465 #include <sys/types.h>
12467 #if HAVE_SYS_SOCKET
12468 #include <sys/socket.h>
12472 if test "x$ac_cv_header_net_if_h" = xyes; then :
12473 cat >>confdefs.h <<_ACEOF
12474 #define HAVE_NET_IF_H 1
12481 for ac_func in vprintf
12483 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
12484 if test "x$ac_cv_func_vprintf" = xyes; then :
12485 cat >>confdefs.h <<_ACEOF
12486 #define HAVE_VPRINTF 1
12489 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
12490 if test "x$ac_cv_func__doprnt" = xyes; then :
12492 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
12500 ac_fn_c_check_member "$LINENO" "struct dirent" "d_reclen" "ac_cv_member_struct_dirent_d_reclen" "#include <dirent.h>
12502 if test "x$ac_cv_member_struct_dirent_d_reclen" = xyes; then :
12504 $as_echo "#define HAVE_RECLEN_DIRENT 1" >>confdefs.h
12508 ac_fn_c_check_member "$LINENO" "struct stat" "st_atim" "ac_cv_member_struct_stat_st_atim" "$ac_includes_default"
12509 if test "x$ac_cv_member_struct_stat_st_atim" = xyes; then :
12511 cat >>confdefs.h <<_ACEOF
12512 #define HAVE_STRUCT_STAT_ST_ATIM 1
12518 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "#include <sys/types.h>
12520 if test "x$ac_cv_type_ssize_t" = xyes; then :
12522 $as_echo "#define HAVE_TYPE_SSIZE_T 1" >>confdefs.h
12526 ac_fn_c_check_decl "$LINENO" "llseek" "ac_cv_have_decl_llseek" "#include <unistd.h>
12528 if test "x$ac_cv_have_decl_llseek" = xyes; then :
12530 $as_echo "#define HAVE_LLSEEK_PROTOTYPE 1" >>confdefs.h
12534 ac_fn_c_check_decl "$LINENO" "lseek64" "ac_cv_have_decl_lseek64" "#define _LARGEFILE_SOURCE
12535 #define _LARGEFILE64_SOURCE
12536 #include <unistd.h>
12538 if test "x$ac_cv_have_decl_lseek64" = xyes; then :
12540 $as_echo "#define HAVE_LSEEK64_PROTOTYPE 1" >>confdefs.h
12544 # The cast to long int works around a bug in the HP C Compiler
12545 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12546 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12547 # This bug is HP SR number 8606223364.
12548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
12549 $as_echo_n "checking size of short... " >&6; }
12550 if ${ac_cv_sizeof_short+:} false; then :
12551 $as_echo_n "(cached) " >&6
12553 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
12556 if test "$ac_cv_type_short" = yes; then
12557 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12558 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12559 as_fn_error 77 "cannot compute sizeof (short)
12560 See \`config.log' for more details" "$LINENO" 5; }
12562 ac_cv_sizeof_short=0
12567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
12568 $as_echo "$ac_cv_sizeof_short" >&6; }
12572 cat >>confdefs.h <<_ACEOF
12573 #define SIZEOF_SHORT $ac_cv_sizeof_short
12577 # The cast to long int works around a bug in the HP C Compiler
12578 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12579 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12580 # This bug is HP SR number 8606223364.
12581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
12582 $as_echo_n "checking size of int... " >&6; }
12583 if ${ac_cv_sizeof_int+:} false; then :
12584 $as_echo_n "(cached) " >&6
12586 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
12589 if test "$ac_cv_type_int" = yes; then
12590 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12591 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12592 as_fn_error 77 "cannot compute sizeof (int)
12593 See \`config.log' for more details" "$LINENO" 5; }
12600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
12601 $as_echo "$ac_cv_sizeof_int" >&6; }
12605 cat >>confdefs.h <<_ACEOF
12606 #define SIZEOF_INT $ac_cv_sizeof_int
12610 # The cast to long int works around a bug in the HP C Compiler
12611 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12612 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12613 # This bug is HP SR number 8606223364.
12614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
12615 $as_echo_n "checking size of long... " >&6; }
12616 if ${ac_cv_sizeof_long+:} false; then :
12617 $as_echo_n "(cached) " >&6
12619 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
12622 if test "$ac_cv_type_long" = yes; then
12623 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12624 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12625 as_fn_error 77 "cannot compute sizeof (long)
12626 See \`config.log' for more details" "$LINENO" 5; }
12628 ac_cv_sizeof_long=0
12633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
12634 $as_echo "$ac_cv_sizeof_long" >&6; }
12638 cat >>confdefs.h <<_ACEOF
12639 #define SIZEOF_LONG $ac_cv_sizeof_long
12643 # The cast to long int works around a bug in the HP C Compiler
12644 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12645 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12646 # This bug is HP SR number 8606223364.
12647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
12648 $as_echo_n "checking size of long long... " >&6; }
12649 if ${ac_cv_sizeof_long_long+:} false; then :
12650 $as_echo_n "(cached) " >&6
12652 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
12655 if test "$ac_cv_type_long_long" = yes; then
12656 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12657 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12658 as_fn_error 77 "cannot compute sizeof (long long)
12659 See \`config.log' for more details" "$LINENO" 5; }
12661 ac_cv_sizeof_long_long=0
12666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
12667 $as_echo "$ac_cv_sizeof_long_long" >&6; }
12671 cat >>confdefs.h <<_ACEOF
12672 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
12676 # The cast to long int works around a bug in the HP C Compiler
12677 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12678 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12679 # This bug is HP SR number 8606223364.
12680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
12681 $as_echo_n "checking size of off_t... " >&6; }
12682 if ${ac_cv_sizeof_off_t+:} false; then :
12683 $as_echo_n "(cached) " >&6
12685 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
12688 if test "$ac_cv_type_off_t" = yes; then
12689 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12690 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12691 as_fn_error 77 "cannot compute sizeof (off_t)
12692 See \`config.log' for more details" "$LINENO" 5; }
12694 ac_cv_sizeof_off_t=0
12699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
12700 $as_echo "$ac_cv_sizeof_off_t" >&6; }
12704 cat >>confdefs.h <<_ACEOF
12705 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
12709 # The cast to long int works around a bug in the HP C Compiler
12710 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12711 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12712 # This bug is HP SR number 8606223364.
12713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
12714 $as_echo_n "checking size of time_t... " >&6; }
12715 if ${ac_cv_sizeof_time_t+:} false; then :
12716 $as_echo_n "(cached) " >&6
12718 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" "$ac_includes_default"; then :
12721 if test "$ac_cv_type_time_t" = yes; then
12722 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12723 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12724 as_fn_error 77 "cannot compute sizeof (time_t)
12725 See \`config.log' for more details" "$LINENO" 5; }
12727 ac_cv_sizeof_time_t=0
12732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
12733 $as_echo "$ac_cv_sizeof_time_t" >&6; }
12737 cat >>confdefs.h <<_ACEOF
12738 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
12742 SIZEOF_SHORT=$ac_cv_sizeof_short
12743 SIZEOF_INT=$ac_cv_sizeof_int
12744 SIZEOF_LONG=$ac_cv_sizeof_long
12745 SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
12746 SIZEOF_OFF_T=$ac_cv_sizeof_off_t
12747 SIZEOF_TIME_T=$ac_cv_sizeof_time_t
12754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
12755 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
12756 if ${ac_cv_c_bigendian+:} false; then :
12757 $as_echo_n "(cached) " >&6
12759 ac_cv_c_bigendian=unknown
12760 # See if we're dealing with a universal compiler.
12761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12762 /* end confdefs.h. */
12763 #ifndef __APPLE_CC__
12764 not a universal capable compiler
12769 if ac_fn_c_try_compile "$LINENO"; then :
12771 # Check for potential -arch flags. It is not universal unless
12772 # there are at least two -arch flags with different values.
12775 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
12776 if test -n "$ac_prev"; then
12778 i?86 | x86_64 | ppc | ppc64)
12779 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
12782 ac_cv_c_bigendian=universal
12788 elif test "x$ac_word" = "x-arch"; then
12793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12794 if test $ac_cv_c_bigendian = unknown; then
12795 # See if sys/param.h defines the BYTE_ORDER macro.
12796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12797 /* end confdefs.h. */
12798 #include <sys/types.h>
12799 #include <sys/param.h>
12804 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
12805 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
12807 bogus endian macros
12814 if ac_fn_c_try_compile "$LINENO"; then :
12815 # It does; now see whether it defined to BIG_ENDIAN or not.
12816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12817 /* end confdefs.h. */
12818 #include <sys/types.h>
12819 #include <sys/param.h>
12824 #if BYTE_ORDER != BIG_ENDIAN
12832 if ac_fn_c_try_compile "$LINENO"; then :
12833 ac_cv_c_bigendian=yes
12835 ac_cv_c_bigendian=no
12837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12841 if test $ac_cv_c_bigendian = unknown; then
12842 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
12843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12844 /* end confdefs.h. */
12845 #include <limits.h>
12850 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
12851 bogus endian macros
12858 if ac_fn_c_try_compile "$LINENO"; then :
12859 # It does; now see whether it defined to _BIG_ENDIAN or not.
12860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12861 /* end confdefs.h. */
12862 #include <limits.h>
12867 #ifndef _BIG_ENDIAN
12875 if ac_fn_c_try_compile "$LINENO"; then :
12876 ac_cv_c_bigendian=yes
12878 ac_cv_c_bigendian=no
12880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12884 if test $ac_cv_c_bigendian = unknown; then
12885 # Compile a test program.
12886 if test "$cross_compiling" = yes; then :
12887 # Try to guess by grepping values from an object file.
12888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12889 /* end confdefs.h. */
12890 short int ascii_mm[] =
12891 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12892 short int ascii_ii[] =
12893 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12894 int use_ascii (int i) {
12895 return ascii_mm[i] + ascii_ii[i];
12897 short int ebcdic_ii[] =
12898 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12899 short int ebcdic_mm[] =
12900 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12901 int use_ebcdic (int i) {
12902 return ebcdic_mm[i] + ebcdic_ii[i];
12909 return use_ascii (foo) == use_ebcdic (foo);
12914 if ac_fn_c_try_compile "$LINENO"; then :
12915 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
12916 ac_cv_c_bigendian=yes
12918 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
12919 if test "$ac_cv_c_bigendian" = unknown; then
12920 ac_cv_c_bigendian=no
12922 # finding both strings is unlikely to happen, but who knows?
12923 ac_cv_c_bigendian=unknown
12927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12930 /* end confdefs.h. */
12931 $ac_includes_default
12936 /* Are we little or big endian? From Harbison&Steele. */
12940 char c[sizeof (long int)];
12943 return u.c[sizeof (long int) - 1] == 1;
12949 if ac_fn_c_try_run "$LINENO"; then :
12950 ac_cv_c_bigendian=no
12952 ac_cv_c_bigendian=yes
12954 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12955 conftest.$ac_objext conftest.beam conftest.$ac_ext
12960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
12961 $as_echo "$ac_cv_c_bigendian" >&6; }
12962 case $ac_cv_c_bigendian in #(
12964 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
12970 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
12974 as_fn_error $? "unknown endianness
12975 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
12978 if test $cross_compiling = no; then
12979 BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
12981 CROSS_COMPILE="1" BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
12983 ASM_TYPES_HEADER=./asm_types.h
12985 echo "/* These defines are needed for the public ext2fs.h header file */" \
12987 if grep HAVE_SYS_TYPES_H confdefs.h > tmp_config.$$; then
12988 uniq tmp_config.$$ >> public_config.h
12990 echo "#undef HAVE_SYS_TYPES_H" >> public_config.h
12992 if grep WORDS_BIGENDIAN confdefs.h > tmp_config.$$; then
12993 uniq tmp_config.$$ >> public_config.h
12995 echo "#undef WORDS_BIGENDIAN" >> public_config.h
12997 rm -f tmp_config.$$
12998 PUBLIC_CONFIG_HEADER=./public_config.h
13000 for ac_header in inttypes.h
13002 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
13003 if test "x$ac_cv_header_inttypes_h" = xyes; then :
13004 cat >>confdefs.h <<_ACEOF
13005 #define HAVE_INTTYPES_H 1
13012 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
13013 if test "x$ac_cv_type_intptr_t" = xyes; then :
13015 cat >>confdefs.h <<_ACEOF
13016 #define HAVE_INTPTR_T 1
13022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat has a st_flags field" >&5
13023 $as_echo_n "checking whether struct stat has a st_flags field... " >&6; }
13024 if ${e2fsprogs_cv_struct_st_flags+:} false; then :
13025 $as_echo_n "(cached) " >&6
13027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13028 /* end confdefs.h. */
13029 #include <sys/stat.h>
13033 struct stat stat; stat.st_flags = 0;
13038 if ac_fn_c_try_compile "$LINENO"; then :
13039 e2fsprogs_cv_struct_st_flags=yes
13041 e2fsprogs_cv_struct_st_flags=no
13043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags" >&5
13047 $as_echo "$e2fsprogs_cv_struct_st_flags" >&6; }
13048 if test "$e2fsprogs_cv_struct_st_flags" = yes; then
13049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether st_flags field is useful" >&5
13050 $as_echo_n "checking whether st_flags field is useful... " >&6; }
13051 if ${e2fsprogs_cv_struct_st_flags_immut+:} false; then :
13052 $as_echo_n "(cached) " >&6
13054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13055 /* end confdefs.h. */
13056 #include <sys/stat.h>
13060 struct stat stat; stat.st_flags |= UF_IMMUTABLE;
13065 if ac_fn_c_try_compile "$LINENO"; then :
13066 e2fsprogs_cv_struct_st_flags_immut=yes
13068 e2fsprogs_cv_struct_st_flags_immut=no
13070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags_immut" >&5
13074 $as_echo "$e2fsprogs_cv_struct_st_flags_immut" >&6; }
13075 if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
13077 $as_echo "#define HAVE_STAT_FLAGS 1" >>confdefs.h
13081 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h>
13082 #include <sys/socket.h>
13084 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
13086 cat >>confdefs.h <<_ACEOF
13087 #define HAVE_SA_LEN 1
13092 if test -n "$BLKID_CMT"; then
13093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing blkid_probe_all" >&5
13094 $as_echo_n "checking for library containing blkid_probe_all... " >&6; }
13095 if ${ac_cv_search_blkid_probe_all+:} false; then :
13096 $as_echo_n "(cached) " >&6
13098 ac_func_search_save_LIBS=$LIBS
13099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13100 /* end confdefs.h. */
13102 /* Override any GCC internal prototype to avoid an error.
13103 Use char because int might match the return type of a GCC
13104 builtin and then its argument prototype would still apply. */
13108 char blkid_probe_all ();
13112 return blkid_probe_all ();
13117 for ac_lib in '' blkid; do
13118 if test -z "$ac_lib"; then
13119 ac_res="none required"
13122 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13124 if ac_fn_c_try_link "$LINENO"; then :
13125 ac_cv_search_blkid_probe_all=$ac_res
13127 rm -f core conftest.err conftest.$ac_objext \
13129 if ${ac_cv_search_blkid_probe_all+:} false; then :
13133 if ${ac_cv_search_blkid_probe_all+:} false; then :
13136 ac_cv_search_blkid_probe_all=no
13138 rm conftest.$ac_ext
13139 LIBS=$ac_func_search_save_LIBS
13141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_blkid_probe_all" >&5
13142 $as_echo "$ac_cv_search_blkid_probe_all" >&6; }
13143 ac_res=$ac_cv_search_blkid_probe_all
13144 if test "$ac_res" != no; then :
13145 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13150 if test -n "$DLOPEN_LIB" ; then
13151 ac_cv_func_dlopen=yes
13153 for ac_func in __secure_getenv add_key backtrace blkid_probe_get_topology blkid_probe_enable_partitions chflags dlopen fadvise64 fallocate fallocate64 fchown fcntl fdatasync fstat64 fsync ftruncate64 futimes getcwd getdtablesize gethostname getmntinfo getpwuid_r getrlimit getrusage jrand48 keyctl llistxattr llseek lseek64 mallinfo mbstowcs memalign mempcpy mmap msync nanosleep open64 pathconf posix_fadvise posix_fadvise64 posix_memalign prctl pread pwrite pread64 pwrite64 secure_getenv setmntent setresgid setresuid snprintf srandom stpcpy strcasecmp strdup strnlen strptime strtoull sync_file_range sysconf usleep utime utimes valloc
13155 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13156 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13157 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13158 cat >>confdefs.h <<_ACEOF
13159 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
13167 $as_echo_n "checking for socket in -lsocket... " >&6; }
13168 if ${ac_cv_lib_socket_socket+:} false; then :
13169 $as_echo_n "(cached) " >&6
13171 ac_check_lib_save_LIBS=$LIBS
13172 LIBS="-lsocket $LIBS"
13173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13174 /* end confdefs.h. */
13176 /* Override any GCC internal prototype to avoid an error.
13177 Use char because int might match the return type of a GCC
13178 builtin and then its argument prototype would still apply. */
13191 if ac_fn_c_try_link "$LINENO"; then :
13192 ac_cv_lib_socket_socket=yes
13194 ac_cv_lib_socket_socket=no
13196 rm -f core conftest.err conftest.$ac_objext \
13197 conftest$ac_exeext conftest.$ac_ext
13198 LIBS=$ac_check_lib_save_LIBS
13200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
13201 $as_echo "$ac_cv_lib_socket_socket" >&6; }
13202 if test "x$ac_cv_lib_socket_socket" = xyes; then :
13203 SOCKET_LIB=-lsocket
13207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for magic_file in -lmagic" >&5
13208 $as_echo_n "checking for magic_file in -lmagic... " >&6; }
13209 if ${ac_cv_lib_magic_magic_file+:} false; then :
13210 $as_echo_n "(cached) " >&6
13212 ac_check_lib_save_LIBS=$LIBS
13213 LIBS="-lmagic $LIBS"
13214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13215 /* end confdefs.h. */
13217 /* Override any GCC internal prototype to avoid an error.
13218 Use char because int might match the return type of a GCC
13219 builtin and then its argument prototype would still apply. */
13223 char magic_file ();
13227 return magic_file ();
13232 if ac_fn_c_try_link "$LINENO"; then :
13233 ac_cv_lib_magic_magic_file=yes
13235 ac_cv_lib_magic_magic_file=no
13237 rm -f core conftest.err conftest.$ac_objext \
13238 conftest$ac_exeext conftest.$ac_ext
13239 LIBS=$ac_check_lib_save_LIBS
13241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_magic_magic_file" >&5
13242 $as_echo "$ac_cv_lib_magic_magic_file" >&6; }
13243 if test "x$ac_cv_lib_magic_magic_file" = xyes; then :
13245 for ac_header in magic.h
13247 ac_fn_c_check_header_mongrel "$LINENO" "magic.h" "ac_cv_header_magic_h" "$ac_includes_default"
13248 if test "x$ac_cv_header_magic_h" = xyes; then :
13249 cat >>confdefs.h <<_ACEOF
13250 #define HAVE_MAGIC_H 1
13259 if test "$ac_cv_func_dlopen" = yes ; then
13260 MAGIC_LIB=$DLOPEN_LIB
13263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
13264 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
13265 if ${ac_cv_lib_rt_clock_gettime+:} false; then :
13266 $as_echo_n "(cached) " >&6
13268 ac_check_lib_save_LIBS=$LIBS
13270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13271 /* end confdefs.h. */
13273 /* Override any GCC internal prototype to avoid an error.
13274 Use char because int might match the return type of a GCC
13275 builtin and then its argument prototype would still apply. */
13279 char clock_gettime ();
13283 return clock_gettime ();
13288 if ac_fn_c_try_link "$LINENO"; then :
13289 ac_cv_lib_rt_clock_gettime=yes
13291 ac_cv_lib_rt_clock_gettime=no
13293 rm -f core conftest.err conftest.$ac_objext \
13294 conftest$ac_exeext conftest.$ac_ext
13295 LIBS=$ac_check_lib_save_LIBS
13297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
13298 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
13299 if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
13300 CLOCK_GETTIME_LIB=-lrt
13306 # Check whether --enable-fuse2fs was given.
13307 if test "${enable_fuse2fs+set}" = set; then :
13308 enableval=$enable_fuse2fs; if test "$enableval" = "no"
13311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling fuse2fs" >&5
13312 $as_echo "Disabling fuse2fs" >&6; }
13314 for ac_header in pthread.h fuse.h
13316 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13317 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#define _FILE_OFFSET_BITS 64
13318 #define FUSE_USE_VERSION 29
13320 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13321 cat >>confdefs.h <<_ACEOF
13322 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13326 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13327 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13328 as_fn_error $? "Cannot find fuse2fs headers.
13329 See \`config.log' for more details" "$LINENO" 5; }
13335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13336 /* end confdefs.h. */
13337 #define FUSE_USE_VERSION 29
13339 #include <linux/fs.h>
13340 #include <linux/falloc.h>
13341 #include <linux/xattr.h>
13352 if ac_fn_c_try_cpp "$LINENO"; then :
13355 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13356 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13357 as_fn_error $? "Cannot find fuse2fs Linux headers.
13358 See \`config.log' for more details" "$LINENO" 5; }
13360 rm -f conftest.err conftest.i conftest.$ac_ext
13362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -losxfuse" >&5
13363 $as_echo_n "checking for fuse_main in -losxfuse... " >&6; }
13364 if ${ac_cv_lib_osxfuse_fuse_main+:} false; then :
13365 $as_echo_n "(cached) " >&6
13367 ac_check_lib_save_LIBS=$LIBS
13368 LIBS="-losxfuse $LIBS"
13369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13370 /* end confdefs.h. */
13372 /* Override any GCC internal prototype to avoid an error.
13373 Use char because int might match the return type of a GCC
13374 builtin and then its argument prototype would still apply. */
13382 return fuse_main ();
13387 if ac_fn_c_try_link "$LINENO"; then :
13388 ac_cv_lib_osxfuse_fuse_main=yes
13390 ac_cv_lib_osxfuse_fuse_main=no
13392 rm -f core conftest.err conftest.$ac_objext \
13393 conftest$ac_exeext conftest.$ac_ext
13394 LIBS=$ac_check_lib_save_LIBS
13396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_osxfuse_fuse_main" >&5
13397 $as_echo "$ac_cv_lib_osxfuse_fuse_main" >&6; }
13398 if test "x$ac_cv_lib_osxfuse_fuse_main" = xyes; then :
13401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -lfuse" >&5
13402 $as_echo_n "checking for fuse_main in -lfuse... " >&6; }
13403 if ${ac_cv_lib_fuse_fuse_main+:} false; then :
13404 $as_echo_n "(cached) " >&6
13406 ac_check_lib_save_LIBS=$LIBS
13407 LIBS="-lfuse $LIBS"
13408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13409 /* end confdefs.h. */
13411 /* Override any GCC internal prototype to avoid an error.
13412 Use char because int might match the return type of a GCC
13413 builtin and then its argument prototype would still apply. */
13421 return fuse_main ();
13426 if ac_fn_c_try_link "$LINENO"; then :
13427 ac_cv_lib_fuse_fuse_main=yes
13429 ac_cv_lib_fuse_fuse_main=no
13431 rm -f core conftest.err conftest.$ac_objext \
13432 conftest$ac_exeext conftest.$ac_ext
13433 LIBS=$ac_check_lib_save_LIBS
13435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fuse_fuse_main" >&5
13436 $as_echo "$ac_cv_lib_fuse_fuse_main" >&6; }
13437 if test "x$ac_cv_lib_fuse_fuse_main" = xyes; then :
13440 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13441 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13442 as_fn_error $? "Cannot find fuse library.
13443 See \`config.log' for more details" "$LINENO" 5; }
13448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling fuse2fs" >&5
13449 $as_echo "Enabling fuse2fs" >&6; }
13453 for ac_header in pthread.h fuse.h
13455 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13456 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#define _FILE_OFFSET_BITS 64
13457 #define FUSE_USE_VERSION 29
13459 # include <linux/fs.h>
13460 # include <linux/falloc.h>
13461 # include <linux/xattr.h>
13464 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13465 cat >>confdefs.h <<_ACEOF
13466 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13475 if test -z "$FUSE_CMT"
13477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -losxfuse" >&5
13478 $as_echo_n "checking for fuse_main in -losxfuse... " >&6; }
13479 if ${ac_cv_lib_osxfuse_fuse_main+:} false; then :
13480 $as_echo_n "(cached) " >&6
13482 ac_check_lib_save_LIBS=$LIBS
13483 LIBS="-losxfuse $LIBS"
13484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13485 /* end confdefs.h. */
13487 /* Override any GCC internal prototype to avoid an error.
13488 Use char because int might match the return type of a GCC
13489 builtin and then its argument prototype would still apply. */
13497 return fuse_main ();
13502 if ac_fn_c_try_link "$LINENO"; then :
13503 ac_cv_lib_osxfuse_fuse_main=yes
13505 ac_cv_lib_osxfuse_fuse_main=no
13507 rm -f core conftest.err conftest.$ac_objext \
13508 conftest$ac_exeext conftest.$ac_ext
13509 LIBS=$ac_check_lib_save_LIBS
13511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_osxfuse_fuse_main" >&5
13512 $as_echo "$ac_cv_lib_osxfuse_fuse_main" >&6; }
13513 if test "x$ac_cv_lib_osxfuse_fuse_main" = xyes; then :
13516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -lfuse" >&5
13517 $as_echo_n "checking for fuse_main in -lfuse... " >&6; }
13518 if ${ac_cv_lib_fuse_fuse_main+:} false; then :
13519 $as_echo_n "(cached) " >&6
13521 ac_check_lib_save_LIBS=$LIBS
13522 LIBS="-lfuse $LIBS"
13523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13524 /* end confdefs.h. */
13526 /* Override any GCC internal prototype to avoid an error.
13527 Use char because int might match the return type of a GCC
13528 builtin and then its argument prototype would still apply. */
13536 return fuse_main ();
13541 if ac_fn_c_try_link "$LINENO"; then :
13542 ac_cv_lib_fuse_fuse_main=yes
13544 ac_cv_lib_fuse_fuse_main=no
13546 rm -f core conftest.err conftest.$ac_objext \
13547 conftest$ac_exeext conftest.$ac_ext
13548 LIBS=$ac_check_lib_save_LIBS
13550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fuse_fuse_main" >&5
13551 $as_echo "$ac_cv_lib_fuse_fuse_main" >&6; }
13552 if test "x$ac_cv_lib_fuse_fuse_main" = xyes; then :
13561 if test -z "$FUSE_CMT"
13563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling fuse2fs by default." >&5
13564 $as_echo "Enabling fuse2fs by default." >&6; }
13571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for optreset" >&5
13572 $as_echo_n "checking for optreset... " >&6; }
13573 if ${ac_cv_have_optreset+:} false; then :
13574 $as_echo_n "(cached) " >&6
13576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13577 /* end confdefs.h. */
13578 #include <unistd.h>
13581 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13582 $EGREP "optreset" >/dev/null 2>&1; then :
13583 ac_cv_have_optreset=yes
13585 ac_cv_have_optreset=no
13590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_optreset" >&5
13591 $as_echo "$ac_cv_have_optreset" >&6; }
13592 if test $ac_cv_have_optreset = yes; then
13594 $as_echo "#define HAVE_OPTRESET 1" >>confdefs.h
13599 echo GL_THREADS_API: ${gl_threads_api}
13600 if test "${gl_threads_api}" != none
13602 ac_fn_c_check_func "$LINENO" "sem_init" "ac_cv_func_sem_init"
13603 if test "x$ac_cv_func_sem_init" = xyes; then :
13606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lpthread" >&5
13607 $as_echo_n "checking for sem_init in -lpthread... " >&6; }
13608 if ${ac_cv_lib_pthread_sem_init+:} false; then :
13609 $as_echo_n "(cached) " >&6
13611 ac_check_lib_save_LIBS=$LIBS
13612 LIBS="-lpthread $LIBS"
13613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13614 /* end confdefs.h. */
13616 /* Override any GCC internal prototype to avoid an error.
13617 Use char because int might match the return type of a GCC
13618 builtin and then its argument prototype would still apply. */
13626 return sem_init ();
13631 if ac_fn_c_try_link "$LINENO"; then :
13632 ac_cv_lib_pthread_sem_init=yes
13634 ac_cv_lib_pthread_sem_init=no
13636 rm -f core conftest.err conftest.$ac_objext \
13637 conftest$ac_exeext conftest.$ac_ext
13638 LIBS=$ac_check_lib_save_LIBS
13640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_sem_init" >&5
13641 $as_echo "$ac_cv_lib_pthread_sem_init" >&6; }
13642 if test "x$ac_cv_lib_pthread_sem_init" = xyes; then :
13643 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
13645 SEM_INIT_LIB=-lpthread
13647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lrt" >&5
13648 $as_echo_n "checking for sem_init in -lrt... " >&6; }
13649 if ${ac_cv_lib_rt_sem_init+:} false; then :
13650 $as_echo_n "(cached) " >&6
13652 ac_check_lib_save_LIBS=$LIBS
13654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13655 /* end confdefs.h. */
13657 /* Override any GCC internal prototype to avoid an error.
13658 Use char because int might match the return type of a GCC
13659 builtin and then its argument prototype would still apply. */
13667 return sem_init ();
13672 if ac_fn_c_try_link "$LINENO"; then :
13673 ac_cv_lib_rt_sem_init=yes
13675 ac_cv_lib_rt_sem_init=no
13677 rm -f core conftest.err conftest.$ac_objext \
13678 conftest$ac_exeext conftest.$ac_ext
13679 LIBS=$ac_check_lib_save_LIBS
13681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sem_init" >&5
13682 $as_echo "$ac_cv_lib_rt_sem_init" >&6; }
13683 if test "x$ac_cv_lib_rt_sem_init" = xyes; then :
13684 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
13688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lposix4" >&5
13689 $as_echo_n "checking for sem_init in -lposix4... " >&6; }
13690 if ${ac_cv_lib_posix4_sem_init+:} false; then :
13691 $as_echo_n "(cached) " >&6
13693 ac_check_lib_save_LIBS=$LIBS
13694 LIBS="-lposix4 $LIBS"
13695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13696 /* end confdefs.h. */
13698 /* Override any GCC internal prototype to avoid an error.
13699 Use char because int might match the return type of a GCC
13700 builtin and then its argument prototype would still apply. */
13708 return sem_init ();
13713 if ac_fn_c_try_link "$LINENO"; then :
13714 ac_cv_lib_posix4_sem_init=yes
13716 ac_cv_lib_posix4_sem_init=no
13718 rm -f core conftest.err conftest.$ac_objext \
13719 conftest$ac_exeext conftest.$ac_ext
13720 LIBS=$ac_check_lib_save_LIBS
13722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sem_init" >&5
13723 $as_echo "$ac_cv_lib_posix4_sem_init" >&6; }
13724 if test "x$ac_cv_lib_posix4_sem_init" = xyes; then :
13725 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
13727 SEM_INIT_LIB=-lposix4
13737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unified diff option" >&5
13738 $as_echo_n "checking for unified diff option... " >&6; }
13739 if diff -u $0 $0 > /dev/null 2>&1 ; then
13744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNI_DIFF_OPTS" >&5
13745 $as_echo "$UNI_DIFF_OPTS" >&6; }
13750 $as_echo "#define HAVE_EXT2_IOCTLS 1" >>confdefs.h
13754 # Check whether --enable-lto was given.
13755 if test "${enable_lto+set}" = set; then :
13756 enableval=$enable_lto;
13761 if test "$enable_lto" = "yes" || test "$enable_lto" = "probe"; then
13762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C compiler supports LTO" >&5
13763 $as_echo_n "checking if C compiler supports LTO... " >&6; }
13764 OLD_CFLAGS="$CFLAGS"
13765 OLD_LDFLAGS="$LDFLAGS"
13766 LTO_FLAGS="-g -flto -ffat-lto-objects"
13767 CFLAGS="$CFLAGS $LTO_FLAGS"
13768 LDFLAGS="$LDFLAGS $LTO_FLAGS"
13769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13770 /* end confdefs.h. */
13780 if ac_fn_c_try_link "$LINENO"; then :
13781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13782 $as_echo "yes" >&6; }
13783 lto_cflags=$LTO_FLAGS
13784 lto_ldflags=$LTO_FLAGS
13785 # Extract the first word of "gcc-ar", so it can be a program name with args.
13786 set dummy gcc-ar; ac_word=$2
13787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13788 $as_echo_n "checking for $ac_word... " >&6; }
13789 if ${ac_cv_path_gcc_ar+:} false; then :
13790 $as_echo_n "(cached) " >&6
13794 ac_cv_path_gcc_ar="$gcc_ar" # Let the user override the test with a path.
13797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13798 for as_dir in $PATH
13801 test -z "$as_dir" && as_dir=.
13802 for ac_exec_ext in '' $ac_executable_extensions; do
13803 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13804 ac_cv_path_gcc_ar="$as_dir/$ac_word$ac_exec_ext"
13805 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13815 gcc_ar=$ac_cv_path_gcc_ar
13816 if test -n "$gcc_ar"; then
13817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_ar" >&5
13818 $as_echo "$gcc_ar" >&6; }
13820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13821 $as_echo "no" >&6; }
13825 # Extract the first word of "gcc-ranlib", so it can be a program name with args.
13826 set dummy gcc-ranlib; ac_word=$2
13827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13828 $as_echo_n "checking for $ac_word... " >&6; }
13829 if ${ac_cv_path_gcc_ranlib+:} false; then :
13830 $as_echo_n "(cached) " >&6
13832 case $gcc_ranlib in
13834 ac_cv_path_gcc_ranlib="$gcc_ranlib" # Let the user override the test with a path.
13837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13838 for as_dir in $PATH
13841 test -z "$as_dir" && as_dir=.
13842 for ac_exec_ext in '' $ac_executable_extensions; do
13843 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13844 ac_cv_path_gcc_ranlib="$as_dir/$ac_word$ac_exec_ext"
13845 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13855 gcc_ranlib=$ac_cv_path_gcc_ranlib
13856 if test -n "$gcc_ranlib"; then
13857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_ranlib" >&5
13858 $as_echo "$gcc_ranlib" >&6; }
13860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13861 $as_echo "no" >&6; }
13866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13867 $as_echo "no" >&6; }
13869 rm -f core conftest.err conftest.$ac_objext \
13870 conftest$ac_exeext conftest.$ac_ext
13871 if test -x "$gcc_ar" && test -x "$gcc_ranlib"; then
13874 RANLIB="${gcc_ranlib}"
13876 CFLAGS="${OLD_CFLAGS}"
13877 LDFLAGS="${OLD_LDFLAGS}"
13882 if test "$enable_lto" = "yes" && test "$have_lto" != "yes"; then
13883 as_fn_error $? "LTO not supported by compiler." "$LINENO" 5
13885 # Check whether --enable-ubsan was given.
13886 if test "${enable_ubsan+set}" = set; then :
13887 enableval=$enable_ubsan;
13892 if test "$enable_ubsan" = "yes" || test "$enable_ubsan" = "probe"; then
13893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C compiler supports UBSAN" >&5
13894 $as_echo_n "checking if C compiler supports UBSAN... " >&6; }
13895 OLD_CFLAGS="$CFLAGS"
13896 OLD_LDFLAGS="$LDFLAGS"
13897 UBSAN_FLAGS="-fsanitize=undefined"
13898 CFLAGS="$CFLAGS $UBSAN_FLAGS"
13899 LDFLAGS="$LDFLAGS $UBSAN_FLAGS"
13900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13901 /* end confdefs.h. */
13911 if ac_fn_c_try_link "$LINENO"; then :
13912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13913 $as_echo "yes" >&6; }
13914 ubsan_cflags=$UBSAN_FLAGS
13915 ubsan_ldflags=$UBSAN_FLAGS
13918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13919 $as_echo "no" >&6; }
13921 rm -f core conftest.err conftest.$ac_objext \
13922 conftest$ac_exeext conftest.$ac_ext
13923 CFLAGS="${OLD_CFLAGS}"
13924 LDFLAGS="${OLD_LDFLAGS}"
13929 if test "$enable_ubsan" = "yes" && test "$have_ubsan" != "yes"; then
13930 as_fn_error $? "UBSAN not supported by compiler." "$LINENO" 5
13932 # Check whether --enable-addrsan was given.
13933 if test "${enable_addrsan+set}" = set; then :
13934 enableval=$enable_addrsan;
13939 if test "$enable_addrsan" = "yes" || test "$enable_addrsan" = "probe"; then
13940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C compiler supports ADDRSAN" >&5
13941 $as_echo_n "checking if C compiler supports ADDRSAN... " >&6; }
13942 OLD_CFLAGS="$CFLAGS"
13943 OLD_LDFLAGS="$LDFLAGS"
13944 ADDRSAN_FLAGS="-fsanitize=address"
13945 CFLAGS="$CFLAGS $ADDRSAN_FLAGS"
13946 LDFLAGS="$LDFLAGS $ADDRSAN_FLAGS"
13947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13948 /* end confdefs.h. */
13958 if ac_fn_c_try_link "$LINENO"; then :
13959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13960 $as_echo "yes" >&6; }
13961 addrsan_cflags=$ADDRSAN_FLAGS
13962 addrsan_ldflags=$ADDRSAN_FLAGS
13965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13966 $as_echo "no" >&6; }
13968 rm -f core conftest.err conftest.$ac_objext \
13969 conftest$ac_exeext conftest.$ac_ext
13970 CFLAGS="${OLD_CFLAGS}"
13971 LDFLAGS="${OLD_LDFLAGS}"
13976 if test "$enable_addrsan" = "yes" && test "$have_addrsan" != "yes"; then
13977 as_fn_error $? "ADDRSAN not supported by compiler." "$LINENO" 5
13979 # Check whether --enable-threadsan was given.
13980 if test "${enable_threadsan+set}" = set; then :
13981 enableval=$enable_threadsan;
13983 enable_threadsan=no
13986 if test "$enable_threadsan" = "yes" || test "$enable_threadsan" = "probe"; then
13987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C compiler supports THREADSAN" >&5
13988 $as_echo_n "checking if C compiler supports THREADSAN... " >&6; }
13989 OLD_CFLAGS="$CFLAGS"
13990 OLD_LDFLAGS="$LDFLAGS"
13991 THREADSAN_FLAGS="-fsanitize=thread"
13992 CFLAGS="$CFLAGS $THREADSAN_FLAGS"
13993 LDFLAGS="$LDFLAGS $THREADSAN_FLAGS"
13994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13995 /* end confdefs.h. */
14005 if ac_fn_c_try_link "$LINENO"; then :
14006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14007 $as_echo "yes" >&6; }
14008 threadsan_cflags=$THREADSAN_FLAGS
14009 threadsan_ldflags=$THREADSAN_FLAGS
14012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14013 $as_echo "no" >&6; }
14015 rm -f core conftest.err conftest.$ac_objext \
14016 conftest$ac_exeext conftest.$ac_ext
14017 CFLAGS="${OLD_CFLAGS}"
14018 LDFLAGS="${OLD_LDFLAGS}"
14023 if test "$enable_threadsan" = "yes" && test "$have_threadsan" != "yes"; then
14024 as_fn_error $? "THREADSAN not supported by compiler." "$LINENO" 5
14026 if test "$have_threadsan" = "yes" && test "$have_addrsan" = "yes"; then
14027 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ADDRSAN and THREADSAN are not known to work together." >&5
14028 $as_echo "$as_me: WARNING: ADDRSAN and THREADSAN are not known to work together." >&2;}
14045 E2SCRUB_CMT="$LINUX_CMT"
14048 linux* | gnu* | k*bsd*-gnu)
14049 if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
14051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, root_prefix defaults to ''" >&5
14052 $as_echo "On $host_os systems, root_prefix defaults to ''" >&6; }
14057 linux* | gnu* | k*bsd*-gnu)
14058 if test "$prefix" = NONE ; then
14060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, prefix defaults to /usr" >&5
14061 $as_echo "On $host_os systems, prefix defaults to /usr" >&6; }
14062 if test "$mandir" = '${prefix}/man' ; then
14063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ...and mandir defaults to /usr/share/man" >&5
14064 $as_echo "...and mandir defaults to /usr/share/man" >&6; }
14065 mandir=/usr/share/man
14070 if test "$root_prefix" = NONE ; then
14071 if test "$prefix" = NONE ; then
14072 root_prefix="$ac_default_prefix"
14074 root_prefix="$prefix"
14076 root_bindir=$bindir
14077 root_sbindir=$sbindir
14078 root_libdir=$libdir
14079 root_sysconfdir=$sysconfdir
14081 root_bindir='${root_prefix}/bin'
14082 root_sbindir='${root_prefix}/sbin'
14083 root_libdir='${root_prefix}/lib'
14084 root_sysconfdir='${root_prefix}/etc'
14086 if test "$bindir" != '${exec_prefix}/bin'; then
14087 root_bindir=$bindir
14088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_bindir to $root_bindir" >&5
14089 $as_echo "Setting root_bindir to $root_bindir" >&6; }
14091 if test "$sbindir" != '${exec_prefix}/sbin'; then
14092 root_sbindir=$sbindir
14093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sbindir to $root_sbindir" >&5
14094 $as_echo "Setting root_sbindir to $root_sbindir" >&6; }
14096 if test "$libdir" != '${exec_prefix}/lib'; then
14097 root_libdir=$libdir
14098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_libdir to $root_libdir" >&5
14099 $as_echo "Setting root_libdir to $root_libdir" >&6; }
14101 if test "$sysconfdir" != '${prefix}/etc'; then
14102 root_sysconfdir=$sysconfdir
14103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sysconfdir to $root_sysconfdir" >&5
14104 $as_echo "Setting root_sysconfdir to $root_sysconfdir" >&6; }
14112 # Check whether --with-multiarch was given.
14113 if test "${with_multiarch+set}" = set; then :
14114 withval=$with_multiarch; if test "$withval" = "lib64"; then
14118 libdir=$libdir/$withval
14119 root_libdir=$root_libdir/$withval
14124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can link with -static" >&5
14125 $as_echo_n "checking whether we can link with -static... " >&6; }
14126 if ${ac_cv_e2fsprogs_use_static+:} false; then :
14127 $as_echo_n "(cached) " >&6
14129 SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS_STATIC -static"
14130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14131 /* end confdefs.h. */
14141 if ac_fn_c_try_link "$LINENO"; then :
14142 ac_cv_e2fsprogs_use_static=yes
14144 ac_cv_e2fsprogs_use_static=no
14146 rm -f core conftest.err conftest.$ac_objext \
14147 conftest$ac_exeext conftest.$ac_ext
14148 LDFLAGS=$SAVE_LDFLAGS
14153 ac_cv_e2fsprogs_use_static=no
14156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_e2fsprogs_use_static" >&5
14157 $as_echo "$ac_cv_e2fsprogs_use_static" >&6; }
14158 if test $ac_cv_e2fsprogs_use_static = yes; then
14159 LDFLAGS_STATIC="$LDFLAGS_STATIC -static"
14164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using Apple Darwin / GNU libintl workaround" >&5
14165 $as_echo "Using Apple Darwin / GNU libintl workaround" >&6; }
14167 $as_echo "#define _INTL_REDIRECT_MACROS 1" >>confdefs.h
14171 if test "$cross_compiling" = yes ; then
14174 DO_TEST_SUITE=check
14177 INCLUDES='-I. -I$(top_builddir)/lib -I$(top_srcdir)/lib'
14178 if test -n "$CPPFLAGS" ; then
14179 INCLUDES="$INCLUDES $CPPFLAGS"
14181 if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
14182 INCLUDES=$INCLUDES' -I$(top_builddir)/intl -I$(top_srcdir)/intl'
14184 if test -n "$WITH_DIET_LIBC" ; then
14185 INCLUDES="$INCLUDES -D_REENTRANT"
14188 if test $cross_compiling = no; then
14189 BUILD_CFLAGS="$CFLAGS $CPPFLAGS $INCLUDES -DHAVE_CONFIG_H"
14190 BUILD_LDFLAGS="$LDFLAGS"
14194 CFLAGS_SHLIB=${CFLAGS_SHLIB:-$CFLAGS}
14195 CFLAGS_STLIB=${CFLAGS_STLIB:-$CFLAGS}
14196 LDFLAGS_SHLIB=${LDFLAGS_SHLIB:-$LDFLAGS}
14202 # Check whether --with-udev_rules_dir was given.
14203 if test "${with_udev_rules_dir+set}" = set; then :
14204 withval=$with_udev_rules_dir;
14206 with_udev_rules_dir=yes
14209 if test "x${with_udev_rules_dir}" != "xno"; then :
14211 if test "x${with_udev_rules_dir}" = "xyes"; then :
14215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for udev" >&5
14216 $as_echo_n "checking for udev... " >&6; }
14218 if test -n "$udev_CFLAGS"; then
14219 pkg_cv_udev_CFLAGS="$udev_CFLAGS"
14220 elif test -n "$PKG_CONFIG"; then
14221 if test -n "$PKG_CONFIG" && \
14222 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"udev\""; } >&5
14223 ($PKG_CONFIG --exists --print-errors "udev") 2>&5
14225 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14226 test $ac_status = 0; }; then
14227 pkg_cv_udev_CFLAGS=`$PKG_CONFIG --cflags "udev" 2>/dev/null`
14228 test "x$?" != "x0" && pkg_failed=yes
14235 if test -n "$udev_LIBS"; then
14236 pkg_cv_udev_LIBS="$udev_LIBS"
14237 elif test -n "$PKG_CONFIG"; then
14238 if test -n "$PKG_CONFIG" && \
14239 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"udev\""; } >&5
14240 ($PKG_CONFIG --exists --print-errors "udev") 2>&5
14242 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14243 test $ac_status = 0; }; then
14244 pkg_cv_udev_LIBS=`$PKG_CONFIG --libs "udev" 2>/dev/null`
14245 test "x$?" != "x0" && pkg_failed=yes
14255 if test $pkg_failed = yes; then
14256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14257 $as_echo "no" >&6; }
14259 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14260 _pkg_short_errors_supported=yes
14262 _pkg_short_errors_supported=no
14264 if test $_pkg_short_errors_supported = yes; then
14265 udev_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "udev" 2>&1`
14267 udev_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "udev" 2>&1`
14269 # Put the nasty error message in config.log where it belongs
14270 echo "$udev_PKG_ERRORS" >&5
14273 with_udev_rules_dir=""
14275 elif test $pkg_failed = untried; then
14276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14277 $as_echo "no" >&6; }
14279 with_udev_rules_dir=""
14282 udev_CFLAGS=$pkg_cv_udev_CFLAGS
14283 udev_LIBS=$pkg_cv_udev_LIBS
14284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14285 $as_echo "yes" >&6; }
14287 with_udev_rules_dir="$($PKG_CONFIG --variable=udevdir udev)/rules.d"
14292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for udev rules dir" >&5
14293 $as_echo_n "checking for udev rules dir... " >&6; }
14294 pkg_udev_rules_dir="${with_udev_rules_dir}"
14295 if test -n "${pkg_udev_rules_dir}"; then :
14297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${pkg_udev_rules_dir}" >&5
14298 $as_echo "${pkg_udev_rules_dir}" >&6; }
14303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14304 $as_echo "no" >&6; }
14311 have_udev="disabled"
14318 # Check whether --with-crond_dir was given.
14319 if test "${with_crond_dir+set}" = set; then :
14320 withval=$with_crond_dir;
14325 if test "x${with_crond_dir}" != "xno"; then :
14327 if test "x${with_crond_dir}" = "xyes"; then :
14329 if test -d "/etc/cron.d"; then :
14330 with_crond_dir="/etc/cron.d"
14334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for system crontab dir" >&5
14335 $as_echo_n "checking for system crontab dir... " >&6; }
14336 crond_dir="${with_crond_dir}"
14337 if test -n "${crond_dir}"; then :
14339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${crond_dir}" >&5
14340 $as_echo "${crond_dir}" >&6; }
14345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14346 $as_echo "no" >&6; }
14353 have_crond="disabled"
14360 # Check whether --with-systemd_unit_dir was given.
14361 if test "${with_systemd_unit_dir+set}" = set; then :
14362 withval=$with_systemd_unit_dir;
14364 with_systemd_unit_dir=yes
14367 if test "x${with_systemd_unit_dir}" != "xno"; then :
14369 if test "x${with_systemd_unit_dir}" = "xyes"; then :
14373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for systemd" >&5
14374 $as_echo_n "checking for systemd... " >&6; }
14376 if test -n "$systemd_CFLAGS"; then
14377 pkg_cv_systemd_CFLAGS="$systemd_CFLAGS"
14378 elif test -n "$PKG_CONFIG"; then
14379 if test -n "$PKG_CONFIG" && \
14380 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"systemd\""; } >&5
14381 ($PKG_CONFIG --exists --print-errors "systemd") 2>&5
14383 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14384 test $ac_status = 0; }; then
14385 pkg_cv_systemd_CFLAGS=`$PKG_CONFIG --cflags "systemd" 2>/dev/null`
14386 test "x$?" != "x0" && pkg_failed=yes
14393 if test -n "$systemd_LIBS"; then
14394 pkg_cv_systemd_LIBS="$systemd_LIBS"
14395 elif test -n "$PKG_CONFIG"; then
14396 if test -n "$PKG_CONFIG" && \
14397 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"systemd\""; } >&5
14398 ($PKG_CONFIG --exists --print-errors "systemd") 2>&5
14400 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14401 test $ac_status = 0; }; then
14402 pkg_cv_systemd_LIBS=`$PKG_CONFIG --libs "systemd" 2>/dev/null`
14403 test "x$?" != "x0" && pkg_failed=yes
14413 if test $pkg_failed = yes; then
14414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14415 $as_echo "no" >&6; }
14417 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14418 _pkg_short_errors_supported=yes
14420 _pkg_short_errors_supported=no
14422 if test $_pkg_short_errors_supported = yes; then
14423 systemd_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "systemd" 2>&1`
14425 systemd_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "systemd" 2>&1`
14427 # Put the nasty error message in config.log where it belongs
14428 echo "$systemd_PKG_ERRORS" >&5
14431 with_systemd_unit_dir=""
14433 elif test $pkg_failed = untried; then
14434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14435 $as_echo "no" >&6; }
14437 with_systemd_unit_dir=""
14440 systemd_CFLAGS=$pkg_cv_systemd_CFLAGS
14441 systemd_LIBS=$pkg_cv_systemd_LIBS
14442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14443 $as_echo "yes" >&6; }
14445 with_systemd_unit_dir="$($PKG_CONFIG --variable=systemdsystemunitdir systemd)"
14451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for systemd system unit dir" >&5
14452 $as_echo_n "checking for systemd system unit dir... " >&6; }
14453 systemd_system_unit_dir="${with_systemd_unit_dir}"
14454 if test -n "${systemd_system_unit_dir}"; then :
14456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${systemd_system_unit_dir}" >&5
14457 $as_echo "${systemd_system_unit_dir}" >&6; }
14462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14463 $as_echo "no" >&6; }
14470 have_systemd="disabled"
14476 test -d lib || mkdir lib
14477 test -d include || mkdir include
14478 test -d include/linux || mkdir include/linux
14479 test -d include/asm || mkdir include/asm
14480 if test -z "$UUID_CMT" ; then
14481 uuid_out_list="lib/uuid/Makefile lib/uuid/uuid.pc \
14482 lib/uuid/uuid_types.h"
14484 if test -z "$BLKID_CMT" ; then
14485 blkid_out_list="lib/blkid/Makefile lib/blkid/blkid.pc \
14486 lib/blkid/blkid_types.h"
14488 for i in MCONFIG Makefile e2fsprogs.spec \
14489 util/Makefile util/subst.conf util/gen-tarball util/install-symlink \
14490 lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \
14491 lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \
14492 $uuid_out_list $blkid_out_list lib/support/Makefile \
14493 lib/ss/ss.pc lib/et/com_err.pc lib/e2p/e2p.pc lib/ext2fs/ext2fs.pc \
14494 misc/Makefile ext2ed/Makefile e2fsck/Makefile \
14495 debugfs/Makefile tests/Makefile tests/progs/Makefile \
14496 resize/Makefile doc/Makefile intl/Makefile \
14497 intl/libgnuintl.h po/Makefile.in scrub/Makefile; do
14498 if test -d `dirname ${srcdir}/$i` ; then
14499 outlist="$outlist $i"
14502 ac_config_files="$ac_config_files $outlist"
14504 cat >confcache <<\_ACEOF
14505 # This file is a shell script that caches the results of configure
14506 # tests run on this system so they can be shared between configure
14507 # scripts and configure runs, see configure's option --config-cache.
14508 # It is not useful on other systems. If it contains results you don't
14509 # want to keep, you may remove or edit it.
14511 # config.status only pays attention to the cache file if you give it
14512 # the --recheck option to rerun configure.
14514 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14515 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14516 # following values.
14520 # The following way of writing the cache mishandles newlines in values,
14521 # but we know of no workaround that is simple, portable, and efficient.
14522 # So, we kill variables containing newlines.
14523 # Ultrix sh set writes to stderr and can't be redirected directly,
14524 # and sets the high bit in the cache file unless we assign to the vars.
14526 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14527 eval ac_val=\$$ac_var
14531 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14532 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14535 _ | IFS | as_nl) ;; #(
14536 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14537 *) { eval $ac_var=; unset $ac_var;} ;;
14543 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14544 *${as_nl}ac_space=\ *)
14545 # `set' does not quote correctly, so add quotes: double-quote
14546 # substitution turns \\\\ into \\, and sed turns \\ into \.
14549 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14552 # `set' quotes correctly as required by POSIX, so do not add quotes.
14553 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14562 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14564 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14566 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14567 if test -w "$cache_file"; then
14568 if test "x$cache_file" != "x/dev/null"; then
14569 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14570 $as_echo "$as_me: updating cache $cache_file" >&6;}
14571 if test ! -f "$cache_file" || test -h "$cache_file"; then
14572 cat confcache >"$cache_file"
14574 case $cache_file in #(
14576 mv -f confcache "$cache_file"$$ &&
14577 mv -f "$cache_file"$$ "$cache_file" ;; #(
14579 mv -f confcache "$cache_file" ;;
14584 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14585 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14590 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14591 # Let make expand exec_prefix.
14592 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14594 DEFS=-DHAVE_CONFIG_H
14599 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14600 # 1. Remove the extension, and $U if already installed.
14601 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14602 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14603 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14604 # will be set to the directory where LIBOBJS objects are built.
14605 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14606 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14608 LIBOBJS=$ac_libobjs
14610 LTLIBOBJS=$ac_ltlibobjs
14615 : "${CONFIG_STATUS=./config.status}"
14617 ac_clean_files_save=$ac_clean_files
14618 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14619 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14620 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14622 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14624 # Generated by $as_me.
14625 # Run this file to recreate the current configuration.
14626 # Compiler output produced by configure, useful for debugging
14627 # configure, is in config.log if it exists.
14630 ac_cs_recheck=false
14633 SHELL=\${CONFIG_SHELL-$SHELL}
14636 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14637 ## -------------------- ##
14638 ## M4sh Initialization. ##
14639 ## -------------------- ##
14641 # Be more Bourne compatible
14642 DUALCASE=1; export DUALCASE # for MKS sh
14643 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14646 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14647 # is contrary to our usage. Disable this feature.
14648 alias -g '${1+"$@"}'='"$@"'
14649 setopt NO_GLOB_SUBST
14651 case `(set -o) 2>/dev/null` in #(
14663 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14664 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14665 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14666 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14667 # Prefer a ksh shell builtin over an external printf program on Solaris,
14668 # but without wasting forks for bash or zsh.
14669 if test -z "$BASH_VERSION$ZSH_VERSION" \
14670 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14671 as_echo='print -r --'
14672 as_echo_n='print -rn --'
14673 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14674 as_echo='printf %s\n'
14675 as_echo_n='printf %s'
14677 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14678 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14679 as_echo_n='/usr/ucb/echo -n'
14681 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14682 as_echo_n_body='eval
14686 expr "X$arg" : "X\\(.*\\)$as_nl";
14687 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14689 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14691 export as_echo_n_body
14692 as_echo_n='sh -c $as_echo_n_body as_echo'
14694 export as_echo_body
14695 as_echo='sh -c $as_echo_body as_echo'
14698 # The user is always right.
14699 if test "${PATH_SEPARATOR+set}" != set; then
14701 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14702 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14709 # We need space, tab and new line, in precisely that order. Quoting is
14710 # there to prevent editors from complaining about space-tab.
14711 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14712 # splitting by setting IFS to empty value.)
14715 # Find who we are. Look in the path if we contain no directory separator.
14718 *[\\/]* ) as_myself=$0 ;;
14719 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14720 for as_dir in $PATH
14723 test -z "$as_dir" && as_dir=.
14724 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14730 # We did not find ourselves, most probably we were run as `sh COMMAND'
14731 # in which case we are not to be found in the path.
14732 if test "x$as_myself" = x; then
14735 if test ! -f "$as_myself"; then
14736 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14740 # Unset variables that we do not need and which cause bugs (e.g. in
14741 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14742 # suppresses any "Segmentation fault" message there. '((' could
14743 # trigger a bug in pdksh 5.2.14.
14744 for as_var in BASH_ENV ENV MAIL MAILPATH
14745 do eval test x\${$as_var+set} = xset \
14746 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14759 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14762 # as_fn_error STATUS ERROR [LINENO LOG_FD]
14763 # ----------------------------------------
14764 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14765 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14766 # script with STATUS, using 1 if that was 0.
14769 as_status=$1; test $as_status -eq 0 && as_status=1
14771 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14772 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14774 $as_echo "$as_me: error: $2" >&2
14775 as_fn_exit $as_status
14779 # as_fn_set_status STATUS
14780 # -----------------------
14781 # Set $? to STATUS, without forking.
14782 as_fn_set_status ()
14785 } # as_fn_set_status
14787 # as_fn_exit STATUS
14788 # -----------------
14789 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14793 as_fn_set_status $1
14799 # Portably unset VAR.
14802 { eval $1=; unset $1;}
14804 as_unset=as_fn_unset
14805 # as_fn_append VAR VALUE
14806 # ----------------------
14807 # Append the text in VALUE to the end of the definition contained in VAR. Take
14808 # advantage of any shell optimizations that allow amortized linear growth over
14809 # repeated appends, instead of the typical quadratic growth present in naive
14811 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14812 eval 'as_fn_append ()
14823 # as_fn_arith ARG...
14824 # ------------------
14825 # Perform arithmetic evaluation on the ARGs, and store the result in the
14826 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14827 # must be portable across $(()) and expr.
14828 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14829 eval 'as_fn_arith ()
14836 as_val=`expr "$@" || test $? -eq 1`
14841 if expr a : '\(a\)' >/dev/null 2>&1 &&
14842 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14848 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14849 as_basename=basename
14854 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14860 as_me=`$as_basename -- "$0" ||
14861 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14862 X"$0" : 'X\(//\)$' \| \
14863 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14865 sed '/^.*\/\([^/][^/]*\)\/*$/{
14879 # Avoid depending upon Character Ranges.
14880 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14881 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14882 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14883 as_cr_digits='0123456789'
14884 as_cr_alnum=$as_cr_Letters$as_cr_digits
14886 ECHO_C= ECHO_N= ECHO_T=
14887 case `echo -n x` in #(((((
14889 case `echo 'xy\c'` in
14890 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14892 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14899 rm -f conf$$ conf$$.exe conf$$.file
14900 if test -d conf$$.dir; then
14901 rm -f conf$$.dir/conf$$.file
14904 mkdir conf$$.dir 2>/dev/null
14906 if (echo >conf$$.file) 2>/dev/null; then
14907 if ln -s conf$$.file conf$$ 2>/dev/null; then
14909 # ... but there are two gotchas:
14910 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14911 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14912 # In both cases, we have to default to `cp -pR'.
14913 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14915 elif ln conf$$.file conf$$ 2>/dev/null; then
14923 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14924 rmdir conf$$.dir 2>/dev/null
14929 # Create "$as_dir" as a directory, including parents if necessary.
14934 -*) as_dir=./$as_dir;;
14936 test -d "$as_dir" || eval $as_mkdir_p || {
14940 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14941 *) as_qdir=$as_dir;;
14943 as_dirs="'$as_qdir' $as_dirs"
14944 as_dir=`$as_dirname -- "$as_dir" ||
14945 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14946 X"$as_dir" : 'X\(//\)[^/]' \| \
14947 X"$as_dir" : 'X\(//\)$' \| \
14948 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14949 $as_echo X"$as_dir" |
14950 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14954 /^X\(\/\/\)[^/].*/{
14967 test -d "$as_dir" && break
14969 test -z "$as_dirs" || eval "mkdir $as_dirs"
14970 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
14974 if mkdir -p . 2>/dev/null; then
14975 as_mkdir_p='mkdir -p "$as_dir"'
14977 test -d ./-p && rmdir ./-p
14982 # as_fn_executable_p FILE
14983 # -----------------------
14984 # Test if FILE is an executable regular file.
14985 as_fn_executable_p ()
14987 test -f "$1" && test -x "$1"
14988 } # as_fn_executable_p
14989 as_test_x='test -x'
14990 as_executable_p=as_fn_executable_p
14992 # Sed expression to map a string onto a valid CPP name.
14993 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14995 # Sed expression to map a string onto a valid variable name.
14996 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15000 ## ----------------------------------- ##
15001 ## Main body of $CONFIG_STATUS script. ##
15002 ## ----------------------------------- ##
15004 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15006 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15007 # Save the log message, to keep $0 and so on meaningful, and to
15008 # report actual input values of CONFIG_FILES etc. instead of their
15009 # values after options handling.
15011 This file was extended by $as_me, which was
15012 generated by GNU Autoconf 2.69. Invocation command line was
15014 CONFIG_FILES = $CONFIG_FILES
15015 CONFIG_HEADERS = $CONFIG_HEADERS
15016 CONFIG_LINKS = $CONFIG_LINKS
15017 CONFIG_COMMANDS = $CONFIG_COMMANDS
15020 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15025 case $ac_config_files in *"
15026 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15029 case $ac_config_headers in *"
15030 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15034 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15035 # Files that config.status was made for.
15036 config_files="$ac_config_files"
15037 config_headers="$ac_config_headers"
15038 config_commands="$ac_config_commands"
15042 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15044 \`$as_me' instantiates files and other configuration actions
15045 from templates according to the current configuration. Unless the files
15046 and actions are specified as TAGs, all are instantiated by default.
15048 Usage: $0 [OPTION]... [TAG]...
15050 -h, --help print this help, then exit
15051 -V, --version print version number and configuration settings, then exit
15052 --config print configuration, then exit
15053 -q, --quiet, --silent
15054 do not print progress messages
15055 -d, --debug don't remove temporary files
15056 --recheck update $as_me by reconfiguring in the same conditions
15057 --file=FILE[:TEMPLATE]
15058 instantiate the configuration file FILE
15059 --header=FILE[:TEMPLATE]
15060 instantiate the configuration header FILE
15062 Configuration files:
15065 Configuration headers:
15068 Configuration commands:
15071 Report bugs to the package provider."
15074 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15075 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15078 configured by $0, generated by GNU Autoconf 2.69,
15079 with options \\"\$ac_cs_config\\"
15081 Copyright (C) 2012 Free Software Foundation, Inc.
15082 This config.status script is free software; the Free Software Foundation
15083 gives unlimited permission to copy, distribute and modify it."
15090 test -n "\$AWK" || AWK=awk
15093 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15094 # The default lists apply if the user does not specify any file.
15100 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15101 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15105 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15117 # Handling of the options.
15118 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15120 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15121 $as_echo "$ac_cs_version"; exit ;;
15122 --config | --confi | --conf | --con | --co | --c )
15123 $as_echo "$ac_cs_config"; exit ;;
15124 --debug | --debu | --deb | --de | --d | -d )
15126 --file | --fil | --fi | --f )
15129 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15130 '') as_fn_error $? "missing file argument" ;;
15132 as_fn_append CONFIG_FILES " '$ac_optarg'"
15133 ac_need_defaults=false;;
15134 --header | --heade | --head | --hea )
15137 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15139 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15140 ac_need_defaults=false;;
15142 # Conflict between --help and --header
15143 as_fn_error $? "ambiguous option: \`$1'
15144 Try \`$0 --help' for more information.";;
15145 --help | --hel | -h )
15146 $as_echo "$ac_cs_usage"; exit ;;
15147 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15148 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15151 # This is an error.
15152 -*) as_fn_error $? "unrecognized option: \`$1'
15153 Try \`$0 --help' for more information." ;;
15155 *) as_fn_append ac_config_targets " $1"
15156 ac_need_defaults=false ;;
15162 ac_configure_extra_args=
15164 if $ac_cs_silent; then
15166 ac_configure_extra_args="$ac_configure_extra_args --silent"
15170 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15171 if \$ac_cs_recheck; then
15172 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15174 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15175 CONFIG_SHELL='$SHELL'
15176 export CONFIG_SHELL
15181 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15185 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15186 ## Running $as_me. ##
15192 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15196 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
15197 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
15198 # from automake < 1.5.
15199 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
15200 # Capture the value of LINGUAS because we need it to compute CATALOGS.
15201 LINGUAS="${LINGUAS-%UNSET%}"
15206 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15208 # Handling of arguments.
15209 for ac_config_target in $ac_config_targets
15211 case $ac_config_target in
15212 "lib/config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/config.h" ;;
15213 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
15214 "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;;
15216 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15221 # If the user did not use the arguments to specify the items to instantiate,
15222 # then the envvar interface is used. Set only those that are not.
15223 # We use the long form for the default assignment because of an extremely
15224 # bizarre bug on SunOS 4.1.3.
15225 if $ac_need_defaults; then
15226 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15227 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15228 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15231 # Have a temporary directory for convenience. Make it in the build tree
15232 # simply because there is no reason against having it here, and in addition,
15233 # creating and moving files from /tmp can sometimes cause problems.
15234 # Hook for its removal unless debugging.
15235 # Note that there is a small window in which the directory will not be cleaned:
15236 # after its creation but before its name has been assigned to `$tmp'.
15240 trap 'exit_status=$?
15241 : "${ac_tmp:=$tmp}"
15242 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15244 trap 'as_fn_exit 1' 1 2 13 15
15246 # Create a (secure) tmp directory for tmp files.
15249 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15253 tmp=./conf$$-$RANDOM
15254 (umask 077 && mkdir "$tmp")
15255 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15258 # Set up the scripts for CONFIG_FILES section.
15259 # No need to generate them if there are no CONFIG_FILES.
15260 # This happens for instance with `./config.status config.h'.
15261 if test -n "$CONFIG_FILES"; then
15263 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
15264 ac_cs_awk_getline=:
15265 ac_cs_awk_pipe_init=
15266 ac_cs_awk_read_file='
15267 while ((getline aline < (F[key])) > 0)
15270 ac_cs_awk_pipe_fini=
15272 ac_cs_awk_getline=false
15273 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
15274 ac_cs_awk_read_file='
15276 print "cat " F[key] " &&"
15277 '$ac_cs_awk_pipe_init
15278 # The final `:' finishes the AND list.
15279 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
15281 ac_cr=`echo X | tr X '\015'`
15282 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15283 # But we know of no other shell where ac_cr would be empty at this
15284 # point, so we can use a bashism as a fallback.
15285 if test "x$ac_cr" = x; then
15286 eval ac_cr=\$\'\\r\'
15288 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15289 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15292 ac_cs_awk_cr=$ac_cr
15295 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15298 # Create commands to substitute file output variables.
15300 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
15301 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
15302 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
15305 } >conf$$files.sh &&
15306 . ./conf$$files.sh ||
15307 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15308 rm -f conf$$files.sh
15311 echo "cat >conf$$subs.awk <<_ACEOF" &&
15312 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15314 } >conf$$subs.sh ||
15315 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15316 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15318 for ac_last_try in false false false false false :; do
15319 . ./conf$$subs.sh ||
15320 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15322 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15323 if test $ac_delim_n = $ac_delim_num; then
15325 elif $ac_last_try; then
15326 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15328 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15331 rm -f conf$$subs.sh
15333 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15334 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15338 s/^/S["/; s/!.*/"]=/
15348 s/\(.\{148\}\)..*/\1/
15350 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15355 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15362 s/\(.\{148\}\)..*/\1/
15364 s/["\\]/\\&/g; s/^/"/; s/$/"/
15368 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15373 ' <conf$$subs.awk | sed '
15378 ' >>$CONFIG_STATUS || ac_write_fail=1
15379 rm -f conf$$subs.awk
15380 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15382 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15383 for (key in S) S_is_set[key] = 1
15385 \$ac_cs_awk_pipe_init
15389 nfields = split(line, field, "@")
15391 len = length(field[1])
15392 for (i = 2; i < nfields; i++) {
15394 keylen = length(key)
15395 if (S_is_set[key]) {
15397 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15398 len += length(value) + length(field[++i])
15403 if (nfields == 3 && !substed) {
15405 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
15406 \$ac_cs_awk_read_file
15412 \$ac_cs_awk_pipe_fini
15415 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15416 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15417 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15420 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15421 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15424 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15425 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15426 # trailing colons and then remove the whole line if VPATH becomes empty
15427 # (actually we leave an empty line to preserve line numbers).
15428 if test "x$srcdir" = x.; then
15429 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
15447 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15448 fi # test -n "$CONFIG_FILES"
15450 # Set up the scripts for CONFIG_HEADERS section.
15451 # No need to generate them if there are no CONFIG_HEADERS.
15452 # This happens for instance with `./config.status Makefile'.
15453 if test -n "$CONFIG_HEADERS"; then
15454 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
15458 # Transform confdefs.h into an awk script `defines.awk', embedded as
15459 # here-document in config.status, that substitutes the proper values into
15460 # config.h.in to produce config.h.
15462 # Create a delimiter string that does not exist in confdefs.h, to ease
15463 # handling of long lines.
15465 for ac_last_try in false false :; do
15466 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
15467 if test -z "$ac_tt"; then
15469 elif $ac_last_try; then
15470 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
15472 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15476 # For the awk script, D is an array of macro values keyed by name,
15477 # likewise P contains macro parameters if any. Preserve backslash
15478 # newline sequences.
15480 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15482 s/.\{148\}/&'"$ac_delim"'/g
15485 s/^[ ]*#[ ]*define[ ][ ]*/ /
15492 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15494 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15498 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15499 D["\1"]=" \3\\\\\\n"\\/p
15501 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15506 s/.\{148\}/&'"$ac_delim"'/g
15511 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15514 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15516 ' <confdefs.h | sed '
15517 s/'"$ac_delim"'/"\\\
15518 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15520 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15521 for (key in D) D_is_set[key] = 1
15524 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15526 split(line, arg, " ")
15527 if (arg[1] == "#") {
15531 defundef = substr(arg[1], 2)
15534 split(mac1, mac2, "(") #)
15536 prefix = substr(line, 1, index(line, defundef) - 1)
15537 if (D_is_set[macro]) {
15538 # Preserve the white space surrounding the "#".
15539 print prefix "define", macro P[macro] D[macro]
15542 # Replace #undef with comments. This is necessary, for example,
15543 # in the case of _POSIX_SOURCE, which is predefined and required
15544 # on some systems where configure will not decide to define it.
15545 if (defundef == "undef") {
15546 print "/*", prefix defundef, macro, "*/"
15554 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15555 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
15556 fi # test -n "$CONFIG_HEADERS"
15559 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15564 :[FHLC]) ac_mode=$ac_tag; continue;;
15566 case $ac_mode$ac_tag in
15568 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
15569 :[FH]-) ac_tag=-:-;;
15570 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15587 -) ac_f="$ac_tmp/stdin";;
15588 *) # Look for the file first in the build tree, then in the source tree
15589 # (if the path is not absolute). The absolute path cannot be DOS-style,
15590 # because $ac_f cannot contain `:'.
15594 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15596 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15598 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15599 as_fn_append ac_file_inputs " '$ac_f'"
15602 # Let's still pretend it is `configure' which instantiates (i.e., don't
15603 # use $as_me), people would be surprised to read:
15604 # /* config.h. Generated by config.status. */
15605 configure_input='Generated from '`
15606 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15608 if test x"$ac_file" != x-; then
15609 configure_input="$ac_file. $configure_input"
15610 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15611 $as_echo "$as_me: creating $ac_file" >&6;}
15613 # Neutralize special characters interpreted by sed in replacement strings.
15614 case $configure_input in #(
15615 *\&* | *\|* | *\\* )
15616 ac_sed_conf_input=`$as_echo "$configure_input" |
15617 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15618 *) ac_sed_conf_input=$configure_input;;
15622 *:-:* | *:-) cat >"$ac_tmp/stdin" \
15623 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15628 ac_dir=`$as_dirname -- "$ac_file" ||
15629 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15630 X"$ac_file" : 'X\(//\)[^/]' \| \
15631 X"$ac_file" : 'X\(//\)$' \| \
15632 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15633 $as_echo X"$ac_file" |
15634 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15638 /^X\(\/\/\)[^/].*/{
15651 as_dir="$ac_dir"; as_fn_mkdir_p
15655 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15657 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15658 # A ".." for each directory in $ac_dir_suffix.
15659 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15660 case $ac_top_builddir_sub in
15661 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15662 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15665 ac_abs_top_builddir=$ac_pwd
15666 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15667 # for backward compatibility:
15668 ac_top_builddir=$ac_top_build_prefix
15671 .) # We are building in place.
15673 ac_top_srcdir=$ac_top_builddir_sub
15674 ac_abs_top_srcdir=$ac_pwd ;;
15675 [\\/]* | ?:[\\/]* ) # Absolute name.
15676 ac_srcdir=$srcdir$ac_dir_suffix;
15677 ac_top_srcdir=$srcdir
15678 ac_abs_top_srcdir=$srcdir ;;
15679 *) # Relative name.
15680 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15681 ac_top_srcdir=$ac_top_build_prefix$srcdir
15682 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15684 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15694 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15695 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15697 ac_MKDIR_P=$MKDIR_P
15699 [\\/$]* | ?:[\\/]* ) ;;
15700 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15704 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15705 # If the template does not know about datarootdir, expand it.
15706 # FIXME: This hack should be removed a few years after 2.60.
15707 ac_datarootdir_hack=; ac_datarootdir_seen=
15718 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15719 *datarootdir*) ac_datarootdir_seen=yes;;
15720 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15721 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15722 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15724 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15725 ac_datarootdir_hack='
15726 s&@datadir@&$datadir&g
15727 s&@docdir@&$docdir&g
15728 s&@infodir@&$infodir&g
15729 s&@localedir@&$localedir&g
15730 s&@mandir@&$mandir&g
15731 s&\\\${datarootdir}&$datarootdir&g' ;;
15735 # Neutralize VPATH when `$srcdir' = `.'.
15736 # Shell code in configure.ac might set extrasub.
15737 # FIXME: do we really want to maintain this feature?
15738 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15739 ac_sed_extra="$ac_vpsub
15742 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15744 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15745 s|@configure_input@|$ac_sed_conf_input|;t t
15746 s&@top_builddir@&$ac_top_builddir_sub&;t t
15747 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15748 s&@srcdir@&$ac_srcdir&;t t
15749 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15750 s&@top_srcdir@&$ac_top_srcdir&;t t
15751 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15752 s&@builddir@&$ac_builddir&;t t
15753 s&@abs_builddir@&$ac_abs_builddir&;t t
15754 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15755 s&@INSTALL@&$ac_INSTALL&;t t
15756 s&@MKDIR_P@&$ac_MKDIR_P&;t t
15757 $ac_datarootdir_hack
15759 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
15760 if $ac_cs_awk_getline; then
15761 $AWK -f "$ac_tmp/subs.awk"
15763 $AWK -f "$ac_tmp/subs.awk" | $SHELL
15765 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15767 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15768 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15769 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
15770 "$ac_tmp/out"`; test -z "$ac_out"; } &&
15771 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15772 which seems to be undefined. Please make sure it is defined" >&5
15773 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15774 which seems to be undefined. Please make sure it is defined" >&2;}
15776 rm -f "$ac_tmp/stdin"
15778 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15779 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15781 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15787 if test x"$ac_file" != x-; then
15789 $as_echo "/* $configure_input */" \
15790 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15791 } >"$ac_tmp/config.h" \
15792 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15793 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
15794 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15795 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15798 mv "$ac_tmp/config.h" "$ac_file" \
15799 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15802 $as_echo "/* $configure_input */" \
15803 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15804 || as_fn_error $? "could not create -" "$LINENO" 5
15808 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15809 $as_echo "$as_me: executing $ac_file commands" >&6;}
15814 case $ac_file$ac_mode in
15815 "po-directories":C)
15816 for ac_file in $CONFIG_FILES; do
15817 # Support "outfile[:infile[:infile...]]"
15819 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
15821 # PO directories have a Makefile.in generated from Makefile.in.in.
15822 case "$ac_file" in */Makefile.in)
15823 # Adjust a relative srcdir.
15824 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
15825 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
15826 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
15827 # In autoconf-2.13 it is called $ac_given_srcdir.
15828 # In autoconf-2.50 it is called $srcdir.
15829 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
15830 case "$ac_given_srcdir" in
15831 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
15832 /*) top_srcdir="$ac_given_srcdir" ;;
15833 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
15835 # Treat a directory as a PO directory if and only if it has a
15836 # POTFILES.in file. This allows packages to have multiple PO
15837 # directories under different names or in different locations.
15838 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
15839 rm -f "$ac_dir/POTFILES"
15840 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
15841 gt_tab=`printf '\t'`
15842 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"
15843 POMAKEFILEDEPS="POTFILES.in"
15844 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
15845 # on $ac_dir but don't depend on user-specified configuration
15847 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
15848 # The LINGUAS file contains the set of available languages.
15849 if test -n "$OBSOLETE_ALL_LINGUAS"; then
15850 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
15852 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
15853 # Hide the ALL_LINGUAS assignment from automake < 1.5.
15854 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
15855 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
15857 # The set of available languages was given in configure.in.
15858 # Hide the ALL_LINGUAS assignment from automake < 1.5.
15859 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
15862 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
15863 # Compute UPDATEPOFILES
15864 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
15865 # Compute DUMMYPOFILES
15866 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
15868 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
15869 case "$ac_given_srcdir" in
15871 *) srcdirpre='$(srcdir)/' ;;
15877 for lang in $ALL_LINGUAS; do
15878 POFILES="$POFILES $srcdirpre$lang.po"
15879 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
15880 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
15881 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
15883 # CATALOGS depends on both $ac_dir and the user's LINGUAS
15884 # environment variable.
15886 if test -n "$ALL_LINGUAS"; then
15887 for presentlang in $ALL_LINGUAS; do
15889 if test "%UNSET%" != "$LINGUAS"; then
15890 desiredlanguages="$LINGUAS"
15892 desiredlanguages="$ALL_LINGUAS"
15894 for desiredlang in $desiredlanguages; do
15895 # Use the presentlang catalog if desiredlang is
15896 # a. equal to presentlang, or
15897 # b. a variant of presentlang (because in this case,
15898 # presentlang can be used as a fallback for messages
15899 # which are not translated in the desiredlang catalog).
15900 case "$desiredlang" in
15901 "$presentlang"*) useit=yes;;
15904 if test $useit = yes; then
15905 INST_LINGUAS="$INST_LINGUAS $presentlang"
15910 if test -n "$INST_LINGUAS"; then
15911 for lang in $INST_LINGUAS; do
15912 CATALOGS="$CATALOGS $lang.gmo"
15915 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
15916 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"
15917 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
15918 if test -f "$f"; then
15920 *.orig | *.bak | *~) ;;
15921 *) cat "$f" >> "$ac_dir/Makefile" ;;
15936 ac_clean_files=$ac_clean_files_save
15938 test $ac_write_fail = 0 ||
15939 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15942 # configure is writing to config.log, and then calls config.status.
15943 # config.status does its own redirection, appending to config.log.
15944 # Unfortunately, on DOS this fails, as config.log is still kept open
15945 # by configure, so config.status won't be able to write to it; its
15946 # output is simply discarded. So we exec the FD to /dev/null,
15947 # effectively closing config.log, so it can be properly (re)opened and
15948 # appended to by config.status. When coming back to configure, we
15949 # need to make the FD available again.
15950 if test "$no_create" != yes; then
15952 ac_config_status_args=
15953 test "$silent" = yes &&
15954 ac_config_status_args="$ac_config_status_args --quiet"
15956 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15958 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15959 # would make configure fail if this is the last instruction.
15960 $ac_cs_success || as_fn_exit 1
15962 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15963 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15964 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15967 if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi