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
695 INTL_LIBTOOL_SUFFIX_PREFIX
702 BUILD_INCLUDED_LIBINTL
712 INTL_DEFAULT_VERBOSITY
731 XGETTEXT_EXTRA_OPTIONS
739 GETTEXT_MACRO_VERSION
848 program_transform_name
859 ac_subst_files='MCONFIG
865 PUBLIC_CONFIG_HEADER'
867 enable_option_checking
873 enable_maintainer_mode
874 enable_symlink_install
875 enable_relative_symlinks
876 enable_symlink_relative_symlinks
878 enable_verbose_makecmds
895 enable_e2initrd_helper
901 enable_bmap_stats_ops
908 with_included_gettext
915 with_systemd_unit_dir
917 ac_precious_vars='build_alias
935 # Initialize some variables set by options.
937 ac_init_version=false
938 ac_unrecognized_opts=
940 # The variables have the same names as the options, with
941 # dashes changed to underlines.
949 program_transform_name=s,x,x,
957 # Installation directory options.
958 # These are left unexpanded so users can "make install exec_prefix=/foo"
959 # and all the variables that are supposed to be based on exec_prefix
960 # by default will actually change.
961 # Use braces instead of parens because sh, perl, etc. also accept them.
962 # (The list follows the same order as the GNU Coding Standards.)
963 bindir='${exec_prefix}/bin'
964 sbindir='${exec_prefix}/sbin'
965 libexecdir='${exec_prefix}/libexec'
966 datarootdir='${prefix}/share'
967 datadir='${datarootdir}'
968 sysconfdir='${prefix}/etc'
969 sharedstatedir='${prefix}/com'
970 localstatedir='${prefix}/var'
971 runstatedir='${localstatedir}/run'
972 includedir='${prefix}/include'
973 oldincludedir='/usr/include'
974 docdir='${datarootdir}/doc/${PACKAGE}'
975 infodir='${datarootdir}/info'
980 libdir='${exec_prefix}/lib'
981 localedir='${datarootdir}/locale'
982 mandir='${datarootdir}/man'
988 # If the previous option needs an argument, assign it.
989 if test -n "$ac_prev"; then
990 eval $ac_prev=\$ac_option
996 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1001 # Accept the important Cygnus configure options, so we can diagnose typos.
1003 case $ac_dashdash$ac_option in
1007 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1009 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1010 bindir=$ac_optarg ;;
1012 -build | --build | --buil | --bui | --bu)
1013 ac_prev=build_alias ;;
1014 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1015 build_alias=$ac_optarg ;;
1017 -cache-file | --cache-file | --cache-fil | --cache-fi \
1018 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1019 ac_prev=cache_file ;;
1020 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1021 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1022 cache_file=$ac_optarg ;;
1024 --config-cache | -C)
1025 cache_file=config.cache ;;
1027 -datadir | --datadir | --datadi | --datad)
1029 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1030 datadir=$ac_optarg ;;
1032 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1033 | --dataroo | --dataro | --datar)
1034 ac_prev=datarootdir ;;
1035 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1036 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1037 datarootdir=$ac_optarg ;;
1039 -disable-* | --disable-*)
1040 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1041 # Reject names that are not valid shell variable names.
1042 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1043 as_fn_error $? "invalid feature name: $ac_useropt"
1044 ac_useropt_orig=$ac_useropt
1045 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1046 case $ac_user_opts in
1048 "enable_$ac_useropt"
1050 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1051 ac_unrecognized_sep=', ';;
1053 eval enable_$ac_useropt=no ;;
1055 -docdir | --docdir | --docdi | --doc | --do)
1057 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1058 docdir=$ac_optarg ;;
1060 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1062 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1063 dvidir=$ac_optarg ;;
1065 -enable-* | --enable-*)
1066 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1067 # Reject names that are not valid shell variable names.
1068 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1069 as_fn_error $? "invalid feature name: $ac_useropt"
1070 ac_useropt_orig=$ac_useropt
1071 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1072 case $ac_user_opts in
1074 "enable_$ac_useropt"
1076 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1077 ac_unrecognized_sep=', ';;
1079 eval enable_$ac_useropt=\$ac_optarg ;;
1081 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1082 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1083 | --exec | --exe | --ex)
1084 ac_prev=exec_prefix ;;
1085 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1086 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1087 | --exec=* | --exe=* | --ex=*)
1088 exec_prefix=$ac_optarg ;;
1090 -gas | --gas | --ga | --g)
1091 # Obsolete; use --with-gas.
1094 -help | --help | --hel | --he | -h)
1095 ac_init_help=long ;;
1096 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1097 ac_init_help=recursive ;;
1098 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1099 ac_init_help=short ;;
1101 -host | --host | --hos | --ho)
1102 ac_prev=host_alias ;;
1103 -host=* | --host=* | --hos=* | --ho=*)
1104 host_alias=$ac_optarg ;;
1106 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1108 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1110 htmldir=$ac_optarg ;;
1112 -includedir | --includedir | --includedi | --included | --include \
1113 | --includ | --inclu | --incl | --inc)
1114 ac_prev=includedir ;;
1115 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1116 | --includ=* | --inclu=* | --incl=* | --inc=*)
1117 includedir=$ac_optarg ;;
1119 -infodir | --infodir | --infodi | --infod | --info | --inf)
1121 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1122 infodir=$ac_optarg ;;
1124 -libdir | --libdir | --libdi | --libd)
1126 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1127 libdir=$ac_optarg ;;
1129 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1130 | --libexe | --libex | --libe)
1131 ac_prev=libexecdir ;;
1132 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1133 | --libexe=* | --libex=* | --libe=*)
1134 libexecdir=$ac_optarg ;;
1136 -localedir | --localedir | --localedi | --localed | --locale)
1137 ac_prev=localedir ;;
1138 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1139 localedir=$ac_optarg ;;
1141 -localstatedir | --localstatedir | --localstatedi | --localstated \
1142 | --localstate | --localstat | --localsta | --localst | --locals)
1143 ac_prev=localstatedir ;;
1144 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1145 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1146 localstatedir=$ac_optarg ;;
1148 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1150 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1151 mandir=$ac_optarg ;;
1153 -nfp | --nfp | --nf)
1154 # Obsolete; use --without-fp.
1157 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1158 | --no-cr | --no-c | -n)
1161 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1162 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1165 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1166 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1167 | --oldin | --oldi | --old | --ol | --o)
1168 ac_prev=oldincludedir ;;
1169 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1170 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1171 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1172 oldincludedir=$ac_optarg ;;
1174 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1176 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1177 prefix=$ac_optarg ;;
1179 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1180 | --program-pre | --program-pr | --program-p)
1181 ac_prev=program_prefix ;;
1182 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1183 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1184 program_prefix=$ac_optarg ;;
1186 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1187 | --program-suf | --program-su | --program-s)
1188 ac_prev=program_suffix ;;
1189 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1190 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1191 program_suffix=$ac_optarg ;;
1193 -program-transform-name | --program-transform-name \
1194 | --program-transform-nam | --program-transform-na \
1195 | --program-transform-n | --program-transform- \
1196 | --program-transform | --program-transfor \
1197 | --program-transfo | --program-transf \
1198 | --program-trans | --program-tran \
1199 | --progr-tra | --program-tr | --program-t)
1200 ac_prev=program_transform_name ;;
1201 -program-transform-name=* | --program-transform-name=* \
1202 | --program-transform-nam=* | --program-transform-na=* \
1203 | --program-transform-n=* | --program-transform-=* \
1204 | --program-transform=* | --program-transfor=* \
1205 | --program-transfo=* | --program-transf=* \
1206 | --program-trans=* | --program-tran=* \
1207 | --progr-tra=* | --program-tr=* | --program-t=*)
1208 program_transform_name=$ac_optarg ;;
1210 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1212 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1213 pdfdir=$ac_optarg ;;
1215 -psdir | --psdir | --psdi | --psd | --ps)
1217 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1220 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1221 | -silent | --silent | --silen | --sile | --sil)
1224 -runstatedir | --runstatedir | --runstatedi | --runstated \
1225 | --runstate | --runstat | --runsta | --runst | --runs \
1226 | --run | --ru | --r)
1227 ac_prev=runstatedir ;;
1228 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1229 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1230 | --run=* | --ru=* | --r=*)
1231 runstatedir=$ac_optarg ;;
1233 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1235 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1237 sbindir=$ac_optarg ;;
1239 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1240 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1241 | --sharedst | --shareds | --shared | --share | --shar \
1243 ac_prev=sharedstatedir ;;
1244 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1245 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1246 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1248 sharedstatedir=$ac_optarg ;;
1250 -site | --site | --sit)
1252 -site=* | --site=* | --sit=*)
1255 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1257 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1258 srcdir=$ac_optarg ;;
1260 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1261 | --syscon | --sysco | --sysc | --sys | --sy)
1262 ac_prev=sysconfdir ;;
1263 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1264 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1265 sysconfdir=$ac_optarg ;;
1267 -target | --target | --targe | --targ | --tar | --ta | --t)
1268 ac_prev=target_alias ;;
1269 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1270 target_alias=$ac_optarg ;;
1272 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1275 -version | --version | --versio | --versi | --vers | -V)
1276 ac_init_version=: ;;
1279 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1280 # Reject names that are not valid shell variable names.
1281 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1282 as_fn_error $? "invalid package name: $ac_useropt"
1283 ac_useropt_orig=$ac_useropt
1284 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1285 case $ac_user_opts in
1289 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1290 ac_unrecognized_sep=', ';;
1292 eval with_$ac_useropt=\$ac_optarg ;;
1294 -without-* | --without-*)
1295 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1296 # Reject names that are not valid shell variable names.
1297 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1298 as_fn_error $? "invalid package name: $ac_useropt"
1299 ac_useropt_orig=$ac_useropt
1300 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1301 case $ac_user_opts in
1305 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1306 ac_unrecognized_sep=', ';;
1308 eval with_$ac_useropt=no ;;
1311 # Obsolete; use --with-x.
1314 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1315 | --x-incl | --x-inc | --x-in | --x-i)
1316 ac_prev=x_includes ;;
1317 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1318 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1319 x_includes=$ac_optarg ;;
1321 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1322 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1323 ac_prev=x_libraries ;;
1324 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1325 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1326 x_libraries=$ac_optarg ;;
1328 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1329 Try \`$0 --help' for more information"
1333 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1334 # Reject names that are not valid shell variable names.
1335 case $ac_envvar in #(
1336 '' | [0-9]* | *[!_$as_cr_alnum]* )
1337 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1339 eval $ac_envvar=\$ac_optarg
1340 export $ac_envvar ;;
1343 # FIXME: should be removed in autoconf 3.0.
1344 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1345 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1346 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1347 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1353 if test -n "$ac_prev"; then
1354 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1355 as_fn_error $? "missing argument to $ac_option"
1358 if test -n "$ac_unrecognized_opts"; then
1359 case $enable_option_checking in
1361 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1362 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1366 # Check all directory arguments for consistency.
1367 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1368 datadir sysconfdir sharedstatedir localstatedir includedir \
1369 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1370 libdir localedir mandir runstatedir
1372 eval ac_val=\$$ac_var
1373 # Remove trailing slashes.
1376 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1377 eval $ac_var=\$ac_val;;
1379 # Be sure to have absolute directory names.
1381 [\\/$]* | ?:[\\/]* ) continue;;
1382 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1384 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1387 # There might be people who depend on the old broken behavior: `$host'
1388 # used to hold the argument of --host etc.
1389 # FIXME: To remove some day.
1392 target=$target_alias
1394 # FIXME: To remove some day.
1395 if test "x$host_alias" != x; then
1396 if test "x$build_alias" = x; then
1397 cross_compiling=maybe
1398 elif test "x$build_alias" != "x$host_alias"; then
1404 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1406 test "$silent" = yes && exec 6>/dev/null
1409 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1410 ac_ls_di=`ls -di .` &&
1411 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1412 as_fn_error $? "working directory cannot be determined"
1413 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1414 as_fn_error $? "pwd does not report name of working directory"
1417 # Find the source files, if location was not specified.
1418 if test -z "$srcdir"; then
1419 ac_srcdir_defaulted=yes
1420 # Try the directory containing this script, then the parent directory.
1421 ac_confdir=`$as_dirname -- "$as_myself" ||
1422 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1423 X"$as_myself" : 'X\(//\)[^/]' \| \
1424 X"$as_myself" : 'X\(//\)$' \| \
1425 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1426 $as_echo X"$as_myself" |
1427 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1445 if test ! -r "$srcdir/$ac_unique_file"; then
1449 ac_srcdir_defaulted=no
1451 if test ! -r "$srcdir/$ac_unique_file"; then
1452 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1453 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1455 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1457 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1459 # When building in place, set srcdir=.
1460 if test "$ac_abs_confdir" = "$ac_pwd"; then
1463 # Remove unnecessary trailing slashes from srcdir.
1464 # Double slashes in file names in object file debugging info
1465 # mess up M-x gdb in Emacs.
1467 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1469 for ac_var in $ac_precious_vars; do
1470 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1471 eval ac_env_${ac_var}_value=\$${ac_var}
1472 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1473 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1477 # Report the --help message.
1479 if test "$ac_init_help" = "long"; then
1480 # Omit some internal or obsolete options to make the list less imposing.
1481 # This message is too long to be a string in the A/UX 3.1 sh.
1483 \`configure' configures this package to adapt to many kinds of systems.
1485 Usage: $0 [OPTION]... [VAR=VALUE]...
1487 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1488 VAR=VALUE. See below for descriptions of some of the useful variables.
1490 Defaults for the options are specified in brackets.
1493 -h, --help display this help and exit
1494 --help=short display options specific to this package
1495 --help=recursive display the short help of all the included packages
1496 -V, --version display version information and exit
1497 -q, --quiet, --silent do not print \`checking ...' messages
1498 --cache-file=FILE cache test results in FILE [disabled]
1499 -C, --config-cache alias for \`--cache-file=config.cache'
1500 -n, --no-create do not create output files
1501 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1503 Installation directories:
1504 --prefix=PREFIX install architecture-independent files in PREFIX
1505 [$ac_default_prefix]
1506 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1509 By default, \`make install' will install all the files in
1510 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1511 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1512 for instance \`--prefix=\$HOME'.
1514 For better control, use the options below.
1516 Fine tuning of the installation directories:
1517 --bindir=DIR user executables [EPREFIX/bin]
1518 --sbindir=DIR system admin executables [EPREFIX/sbin]
1519 --libexecdir=DIR program executables [EPREFIX/libexec]
1520 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1521 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1522 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1523 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1524 --libdir=DIR object code libraries [EPREFIX/lib]
1525 --includedir=DIR C header files [PREFIX/include]
1526 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1527 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1528 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1529 --infodir=DIR info documentation [DATAROOTDIR/info]
1530 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1531 --mandir=DIR man documentation [DATAROOTDIR/man]
1532 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1533 --htmldir=DIR html documentation [DOCDIR]
1534 --dvidir=DIR dvi documentation [DOCDIR]
1535 --pdfdir=DIR pdf documentation [DOCDIR]
1536 --psdir=DIR ps documentation [DOCDIR]
1542 --build=BUILD configure for building on BUILD [guessed]
1543 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1547 if test -n "$ac_init_help"; then
1552 --disable-option-checking ignore unrecognized --enable/--with options
1553 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1554 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1555 --enable-maintainer-mode enable makefile rules useful for maintainers
1556 --enable-symlink-install use symlinks when installing instead of hard links
1557 --enable-relative-symlinks use relative symlinks when installing
1559 --enable-symlink-build use symlinks while building instead of hard links
1560 --enable-verbose-makecmds enable verbose make command output
1561 --enable-elf-shlibs select ELF shared libraries
1562 --enable-bsd-shlibs select BSD shared libraries
1563 --enable-profile build profiling libraries
1564 --enable-gcov build for coverage testing using gcov
1565 --enable-hardening build for coverage testing using gcov
1566 --enable-jbd-debug enable journal debugging
1567 --enable-blkid-debug enable blkid debugging
1568 --disable-testio-debug disable the use of the test I/O manager for debugging
1569 --enable-libuuid build and use private uuid library
1570 --enable-libblkid build and use private blkid library
1571 --disable-backtrace disable use backtrace
1572 --disable-debugfs disable support of debugfs program
1573 --disable-imager disable support of e2image program
1574 --disable-resizer disable support of e2resize program
1575 --disable-defrag disable support of e4defrag program
1576 --enable-fsck build fsck wrapper program
1577 --enable-e2initrd-helper build e2initrd-helper program
1578 --disable-tls disable use of thread local support
1579 --disable-uuidd disable building the uuid daemon
1580 --disable-mmp disable support mmp, Multi Mount Protection
1581 --disable-tdb disable tdb support
1582 --disable-bmap-stats disable collection of bitmap stats.
1583 --enable-bmap-stats-ops enable collection of additional bitmap stats
1584 --disable-nls do not use Native Language Support
1585 --enable-threads={posix|solaris|pth|windows}
1586 specify multithreading API
1587 --disable-threads build without multithread safety
1588 --disable-rpath do not hardcode runtime library paths
1589 --disable-fuse2fs do not build fuse2fs
1590 --enable-lto enable link time optimization
1593 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1594 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1595 --with-diet-libc use diet libc
1596 --with-cc no longer supported, use CC= instead
1597 --with-ccopts no longer supported, use CFLAGS= instead
1598 --with-ldopts no longer supported, use LDFLAGS= instead
1599 --with-root-prefix=PREFIX override prefix variable for files to be placed in the root
1600 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1601 --with-libpth-prefix[=DIR] search for libpth in DIR/include and DIR/lib
1602 --without-libpth-prefix don't search for libpth in includedir and libdir
1603 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1604 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1605 --with-included-gettext use the GNU gettext library included here
1606 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1607 --without-libintl-prefix don't search for libintl in includedir and libdir
1608 --with-multiarch=ARCH specify the multiarch triplet
1609 --with-udev-rules-dir[=DIR]
1610 Install udev rules into DIR.
1611 --with-crond-dir[=DIR] Install system crontabs into DIR.
1612 --with-systemd-unit-dir[=DIR]
1613 Install systemd system units into DIR.
1615 Some influential environment variables:
1616 CC C compiler command
1617 CFLAGS C compiler flags
1618 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1619 nonstandard directory <lib dir>
1620 LIBS libraries to pass to the linker, e.g. -l<library>
1621 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1622 you have headers in a nonstandard directory <include dir>
1624 PKG_CONFIG path to pkg-config utility
1626 directories to add to pkg-config's search path
1628 path overriding pkg-config's built-in search path
1629 udev_CFLAGS C compiler flags for udev, overriding pkg-config
1630 udev_LIBS linker flags for udev, overriding pkg-config
1632 C compiler flags for systemd, overriding pkg-config
1634 linker flags for systemd, overriding pkg-config
1636 Use these variables to override the choices made by `configure' or to help
1637 it to find libraries and programs with nonstandard names/locations.
1639 Report bugs to the package provider.
1644 if test "$ac_init_help" = "recursive"; then
1645 # If there are subdirs, report their specific --help.
1646 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1647 test -d "$ac_dir" ||
1648 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1653 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1655 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1656 # A ".." for each directory in $ac_dir_suffix.
1657 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1658 case $ac_top_builddir_sub in
1659 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1660 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1663 ac_abs_top_builddir=$ac_pwd
1664 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1665 # for backward compatibility:
1666 ac_top_builddir=$ac_top_build_prefix
1669 .) # We are building in place.
1671 ac_top_srcdir=$ac_top_builddir_sub
1672 ac_abs_top_srcdir=$ac_pwd ;;
1673 [\\/]* | ?:[\\/]* ) # Absolute name.
1674 ac_srcdir=$srcdir$ac_dir_suffix;
1675 ac_top_srcdir=$srcdir
1676 ac_abs_top_srcdir=$srcdir ;;
1678 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1679 ac_top_srcdir=$ac_top_build_prefix$srcdir
1680 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1682 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1684 cd "$ac_dir" || { ac_status=$?; continue; }
1685 # Check for guested configure.
1686 if test -f "$ac_srcdir/configure.gnu"; then
1688 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1689 elif test -f "$ac_srcdir/configure"; then
1691 $SHELL "$ac_srcdir/configure" --help=recursive
1693 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1695 cd "$ac_pwd" || { ac_status=$?; break; }
1699 test -n "$ac_init_help" && exit $ac_status
1700 if $ac_init_version; then
1703 generated by GNU Autoconf 2.69
1705 Copyright (C) 2012 Free Software Foundation, Inc.
1706 This configure script is free software; the Free Software Foundation
1707 gives unlimited permission to copy, distribute and modify it.
1712 ## ------------------------ ##
1713 ## Autoconf initialization. ##
1714 ## ------------------------ ##
1716 # ac_fn_c_try_compile LINENO
1717 # --------------------------
1718 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1719 ac_fn_c_try_compile ()
1721 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1722 rm -f conftest.$ac_objext
1723 if { { ac_try="$ac_compile"
1725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1726 *) ac_try_echo=$ac_try;;
1728 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1729 $as_echo "$ac_try_echo"; } >&5
1730 (eval "$ac_compile") 2>conftest.err
1732 if test -s conftest.err; then
1733 grep -v '^ *+' conftest.err >conftest.er1
1734 cat conftest.er1 >&5
1735 mv -f conftest.er1 conftest.err
1737 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1738 test $ac_status = 0; } && {
1739 test -z "$ac_c_werror_flag" ||
1740 test ! -s conftest.err
1741 } && test -s conftest.$ac_objext; then :
1744 $as_echo "$as_me: failed program was:" >&5
1745 sed 's/^/| /' conftest.$ac_ext >&5
1749 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1750 as_fn_set_status $ac_retval
1752 } # ac_fn_c_try_compile
1754 # ac_fn_c_try_link LINENO
1755 # -----------------------
1756 # Try to link conftest.$ac_ext, and return whether this succeeded.
1759 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1760 rm -f conftest.$ac_objext conftest$ac_exeext
1761 if { { ac_try="$ac_link"
1763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1764 *) ac_try_echo=$ac_try;;
1766 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1767 $as_echo "$ac_try_echo"; } >&5
1768 (eval "$ac_link") 2>conftest.err
1770 if test -s conftest.err; then
1771 grep -v '^ *+' conftest.err >conftest.er1
1772 cat conftest.er1 >&5
1773 mv -f conftest.er1 conftest.err
1775 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1776 test $ac_status = 0; } && {
1777 test -z "$ac_c_werror_flag" ||
1778 test ! -s conftest.err
1779 } && test -s conftest$ac_exeext && {
1780 test "$cross_compiling" = yes ||
1781 test -x conftest$ac_exeext
1785 $as_echo "$as_me: failed program was:" >&5
1786 sed 's/^/| /' conftest.$ac_ext >&5
1790 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1791 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1792 # interfere with the next link command; also delete a directory that is
1793 # left behind by Apple's compiler. We do this before executing the actions.
1794 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1795 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1796 as_fn_set_status $ac_retval
1798 } # ac_fn_c_try_link
1800 # ac_fn_c_try_cpp LINENO
1801 # ----------------------
1802 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1805 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1806 if { { ac_try="$ac_cpp conftest.$ac_ext"
1808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1809 *) ac_try_echo=$ac_try;;
1811 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1812 $as_echo "$ac_try_echo"; } >&5
1813 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1815 if test -s conftest.err; then
1816 grep -v '^ *+' conftest.err >conftest.er1
1817 cat conftest.er1 >&5
1818 mv -f conftest.er1 conftest.err
1820 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1821 test $ac_status = 0; } > conftest.i && {
1822 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1823 test ! -s conftest.err
1827 $as_echo "$as_me: failed program was:" >&5
1828 sed 's/^/| /' conftest.$ac_ext >&5
1832 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1833 as_fn_set_status $ac_retval
1837 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1838 # -------------------------------------------------------
1839 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1840 # the include files in INCLUDES and setting the cache variable VAR
1842 ac_fn_c_check_header_mongrel ()
1844 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1845 if eval \${$3+:} false; then :
1846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1847 $as_echo_n "checking for $2... " >&6; }
1848 if eval \${$3+:} false; then :
1849 $as_echo_n "(cached) " >&6
1852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1853 $as_echo "$ac_res" >&6; }
1855 # Is the header compilable?
1856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1857 $as_echo_n "checking $2 usability... " >&6; }
1858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1859 /* end confdefs.h. */
1863 if ac_fn_c_try_compile "$LINENO"; then :
1864 ac_header_compiler=yes
1866 ac_header_compiler=no
1868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1870 $as_echo "$ac_header_compiler" >&6; }
1872 # Is the header present?
1873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1874 $as_echo_n "checking $2 presence... " >&6; }
1875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1876 /* end confdefs.h. */
1879 if ac_fn_c_try_cpp "$LINENO"; then :
1880 ac_header_preproc=yes
1882 ac_header_preproc=no
1884 rm -f conftest.err conftest.i conftest.$ac_ext
1885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1886 $as_echo "$ac_header_preproc" >&6; }
1888 # So? What about this header?
1889 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1891 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1892 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1893 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1894 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1897 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1898 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1899 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1900 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1901 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1902 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1903 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1904 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1905 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1906 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1910 $as_echo_n "checking for $2... " >&6; }
1911 if eval \${$3+:} false; then :
1912 $as_echo_n "(cached) " >&6
1914 eval "$3=\$ac_header_compiler"
1917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1918 $as_echo "$ac_res" >&6; }
1920 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1922 } # ac_fn_c_check_header_mongrel
1924 # ac_fn_c_try_run LINENO
1925 # ----------------------
1926 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1927 # that executables *can* be run.
1930 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1931 if { { ac_try="$ac_link"
1933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1934 *) ac_try_echo=$ac_try;;
1936 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1937 $as_echo "$ac_try_echo"; } >&5
1938 (eval "$ac_link") 2>&5
1940 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1941 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1942 { { case "(($ac_try" in
1943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1944 *) ac_try_echo=$ac_try;;
1946 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1947 $as_echo "$ac_try_echo"; } >&5
1948 (eval "$ac_try") 2>&5
1950 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1951 test $ac_status = 0; }; }; then :
1954 $as_echo "$as_me: program exited with status $ac_status" >&5
1955 $as_echo "$as_me: failed program was:" >&5
1956 sed 's/^/| /' conftest.$ac_ext >&5
1958 ac_retval=$ac_status
1960 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1961 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1962 as_fn_set_status $ac_retval
1966 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1967 # -------------------------------------------------------
1968 # Tests whether HEADER exists and can be compiled using the include files in
1969 # INCLUDES, setting the cache variable VAR accordingly.
1970 ac_fn_c_check_header_compile ()
1972 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1974 $as_echo_n "checking for $2... " >&6; }
1975 if eval \${$3+:} false; then :
1976 $as_echo_n "(cached) " >&6
1978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1979 /* end confdefs.h. */
1983 if ac_fn_c_try_compile "$LINENO"; then :
1988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1992 $as_echo "$ac_res" >&6; }
1993 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1995 } # ac_fn_c_check_header_compile
1997 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1998 # -------------------------------------------
1999 # Tests whether TYPE exists after having included INCLUDES, setting cache
2000 # variable VAR accordingly.
2001 ac_fn_c_check_type ()
2003 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2005 $as_echo_n "checking for $2... " >&6; }
2006 if eval \${$3+:} false; then :
2007 $as_echo_n "(cached) " >&6
2010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2011 /* end confdefs.h. */
2022 if ac_fn_c_try_compile "$LINENO"; then :
2023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2024 /* end confdefs.h. */
2035 if ac_fn_c_try_compile "$LINENO"; then :
2040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2046 $as_echo "$ac_res" >&6; }
2047 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2049 } # ac_fn_c_check_type
2051 # ac_fn_c_check_func LINENO FUNC VAR
2052 # ----------------------------------
2053 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2054 ac_fn_c_check_func ()
2056 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2058 $as_echo_n "checking for $2... " >&6; }
2059 if eval \${$3+:} false; then :
2060 $as_echo_n "(cached) " >&6
2062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2063 /* end confdefs.h. */
2064 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2065 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2066 #define $2 innocuous_$2
2068 /* System header to define __stub macros and hopefully few prototypes,
2069 which can conflict with char $2 (); below.
2070 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2071 <limits.h> exists even on freestanding compilers. */
2074 # include <limits.h>
2076 # include <assert.h>
2081 /* Override any GCC internal prototype to avoid an error.
2082 Use char because int might match the return type of a GCC
2083 builtin and then its argument prototype would still apply. */
2088 /* The GNU C library defines this for functions which it implements
2089 to always fail with ENOSYS. Some functions are actually named
2090 something starting with __ and the normal name is an alias. */
2091 #if defined __stub_$2 || defined __stub___$2
2103 if ac_fn_c_try_link "$LINENO"; then :
2108 rm -f core conftest.err conftest.$ac_objext \
2109 conftest$ac_exeext conftest.$ac_ext
2112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2113 $as_echo "$ac_res" >&6; }
2114 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2116 } # ac_fn_c_check_func
2118 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2119 # ---------------------------------------------
2120 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2122 ac_fn_c_check_decl ()
2124 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2125 as_decl_name=`echo $2|sed 's/ *(.*//'`
2126 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2128 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2129 if eval \${$3+:} false; then :
2130 $as_echo_n "(cached) " >&6
2132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2133 /* end confdefs.h. */
2138 #ifndef $as_decl_name
2140 (void) $as_decl_use;
2142 (void) $as_decl_name;
2150 if ac_fn_c_try_compile "$LINENO"; then :
2155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2159 $as_echo "$ac_res" >&6; }
2160 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2162 } # ac_fn_c_check_decl
2164 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2165 # --------------------------------------------
2166 # Tries to find the compile-time value of EXPR in a program that includes
2167 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2169 ac_fn_c_compute_int ()
2171 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2172 if test "$cross_compiling" = yes; then
2173 # Depending upon the size, compute the lo and hi bounds.
2174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2175 /* end confdefs.h. */
2180 static int test_array [1 - 2 * !(($2) >= 0)];
2182 return test_array [0];
2188 if ac_fn_c_try_compile "$LINENO"; then :
2191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2192 /* end confdefs.h. */
2197 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2199 return test_array [0];
2205 if ac_fn_c_try_compile "$LINENO"; then :
2206 ac_hi=$ac_mid; break
2208 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2209 if test $ac_lo -le $ac_mid; then
2213 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2219 /* end confdefs.h. */
2224 static int test_array [1 - 2 * !(($2) < 0)];
2226 return test_array [0];
2232 if ac_fn_c_try_compile "$LINENO"; then :
2235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2236 /* end confdefs.h. */
2241 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2243 return test_array [0];
2249 if ac_fn_c_try_compile "$LINENO"; then :
2250 ac_lo=$ac_mid; break
2252 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2253 if test $ac_mid -le $ac_hi; then
2257 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2267 # Binary search between lo and hi bounds.
2268 while test "x$ac_lo" != "x$ac_hi"; do
2269 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2271 /* end confdefs.h. */
2276 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2278 return test_array [0];
2284 if ac_fn_c_try_compile "$LINENO"; then :
2287 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2292 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2297 /* end confdefs.h. */
2299 static long int longval () { return $2; }
2300 static unsigned long int ulongval () { return $2; }
2307 FILE *f = fopen ("conftest.val", "w");
2312 long int i = longval ();
2315 fprintf (f, "%ld", i);
2319 unsigned long int i = ulongval ();
2322 fprintf (f, "%lu", i);
2324 /* Do not output a trailing newline, as this causes \r\n confusion
2325 on some platforms. */
2326 return ferror (f) || fclose (f) != 0;
2332 if ac_fn_c_try_run "$LINENO"; then :
2333 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2337 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2338 conftest.$ac_objext conftest.beam conftest.$ac_ext
2342 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2343 as_fn_set_status $ac_retval
2345 } # ac_fn_c_compute_int
2347 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2348 # ----------------------------------------------------
2349 # Tries to find if the field MEMBER exists in type AGGR, after including
2350 # INCLUDES, setting cache variable VAR accordingly.
2351 ac_fn_c_check_member ()
2353 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2355 $as_echo_n "checking for $2.$3... " >&6; }
2356 if eval \${$4+:} false; then :
2357 $as_echo_n "(cached) " >&6
2359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2360 /* end confdefs.h. */
2372 if ac_fn_c_try_compile "$LINENO"; then :
2375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2376 /* end confdefs.h. */
2382 if (sizeof ac_aggr.$3)
2388 if ac_fn_c_try_compile "$LINENO"; then :
2393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2399 $as_echo "$ac_res" >&6; }
2400 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2402 } # ac_fn_c_check_member
2403 cat >config.log <<_ACEOF
2404 This file contains any messages produced by compilers while
2405 running configure, to aid debugging if configure makes a mistake.
2407 It was created by $as_me, which was
2408 generated by GNU Autoconf 2.69. Invocation command line was
2420 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2421 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2422 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2423 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2424 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2426 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2427 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2429 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2430 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2431 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2432 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2433 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2434 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2435 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2443 test -z "$as_dir" && as_dir=.
2444 $as_echo "PATH: $as_dir"
2460 # Keep a trace of the command line.
2461 # Strip out --no-create and --no-recursion so they do not pile up.
2462 # Strip out --silent because we don't want to record it for future runs.
2463 # Also quote any args containing shell meta-characters.
2464 # Make two passes to allow for proper duplicate-argument suppression.
2468 ac_must_keep_next=false
2474 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2475 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2476 | -silent | --silent | --silen | --sile | --sil)
2479 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2482 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2484 as_fn_append ac_configure_args1 " '$ac_arg'"
2485 if test $ac_must_keep_next = true; then
2486 ac_must_keep_next=false # Got value, back to normal.
2489 *=* | --config-cache | -C | -disable-* | --disable-* \
2490 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2491 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2492 | -with-* | --with-* | -without-* | --without-* | --x)
2493 case "$ac_configure_args0 " in
2494 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2497 -* ) ac_must_keep_next=true ;;
2500 as_fn_append ac_configure_args " '$ac_arg'"
2505 { ac_configure_args0=; unset ac_configure_args0;}
2506 { ac_configure_args1=; unset ac_configure_args1;}
2508 # When interrupted or exit'd, cleanup temporary files, and complete
2509 # config.log. We remove comments because anyway the quotes in there
2510 # would cause problems or look ugly.
2511 # WARNING: Use '\'' to represent an apostrophe within the trap.
2512 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2513 trap 'exit_status=$?
2514 # Save into config.log some information that might help in debugging.
2518 $as_echo "## ---------------- ##
2519 ## Cache variables. ##
2520 ## ---------------- ##"
2522 # The following way of writing the cache mishandles newlines in values,
2524 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2525 eval ac_val=\$$ac_var
2529 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2530 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2533 _ | IFS | as_nl) ;; #(
2534 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2535 *) { eval $ac_var=; unset $ac_var;} ;;
2540 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2541 *${as_nl}ac_space=\ *)
2543 "s/'\''/'\''\\\\'\'''\''/g;
2544 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2547 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2554 $as_echo "## ----------------- ##
2555 ## Output variables. ##
2556 ## ----------------- ##"
2558 for ac_var in $ac_subst_vars
2560 eval ac_val=\$$ac_var
2562 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2564 $as_echo "$ac_var='\''$ac_val'\''"
2568 if test -n "$ac_subst_files"; then
2569 $as_echo "## ------------------- ##
2570 ## File substitutions. ##
2571 ## ------------------- ##"
2573 for ac_var in $ac_subst_files
2575 eval ac_val=\$$ac_var
2577 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2579 $as_echo "$ac_var='\''$ac_val'\''"
2584 if test -s confdefs.h; then
2585 $as_echo "## ----------- ##
2592 test "$ac_signal" != 0 &&
2593 $as_echo "$as_me: caught signal $ac_signal"
2594 $as_echo "$as_me: exit $exit_status"
2596 rm -f core *.core core.conftest.* &&
2597 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2600 for ac_signal in 1 2 13 15; do
2601 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2605 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2606 rm -f -r conftest* confdefs.h
2608 $as_echo "/* confdefs.h */" > confdefs.h
2610 # Predefined preprocessor variables.
2612 cat >>confdefs.h <<_ACEOF
2613 #define PACKAGE_NAME "$PACKAGE_NAME"
2616 cat >>confdefs.h <<_ACEOF
2617 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2620 cat >>confdefs.h <<_ACEOF
2621 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2624 cat >>confdefs.h <<_ACEOF
2625 #define PACKAGE_STRING "$PACKAGE_STRING"
2628 cat >>confdefs.h <<_ACEOF
2629 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2632 cat >>confdefs.h <<_ACEOF
2633 #define PACKAGE_URL "$PACKAGE_URL"
2637 # Let the site file select an alternate cache file if it wants to.
2638 # Prefer an explicitly selected file to automatically selected ones.
2641 if test -n "$CONFIG_SITE"; then
2642 # We do not want a PATH search for config.site.
2643 case $CONFIG_SITE in #((
2644 -*) ac_site_file1=./$CONFIG_SITE;;
2645 */*) ac_site_file1=$CONFIG_SITE;;
2646 *) ac_site_file1=./$CONFIG_SITE;;
2648 elif test "x$prefix" != xNONE; then
2649 ac_site_file1=$prefix/share/config.site
2650 ac_site_file2=$prefix/etc/config.site
2652 ac_site_file1=$ac_default_prefix/share/config.site
2653 ac_site_file2=$ac_default_prefix/etc/config.site
2655 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2657 test "x$ac_site_file" = xNONE && continue
2658 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2659 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2660 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2661 sed 's/^/| /' "$ac_site_file" >&5
2663 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2664 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2665 as_fn_error $? "failed to load site script $ac_site_file
2666 See \`config.log' for more details" "$LINENO" 5; }
2670 if test -r "$cache_file"; then
2671 # Some versions of bash will fail to source /dev/null (special files
2672 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2673 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2674 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2675 $as_echo "$as_me: loading cache $cache_file" >&6;}
2677 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2678 *) . "./$cache_file";;
2682 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2683 $as_echo "$as_me: creating cache $cache_file" >&6;}
2687 gt_needs="$gt_needs "
2688 as_fn_append ac_header_list " stdlib.h"
2689 as_fn_append ac_header_list " unistd.h"
2690 as_fn_append ac_header_list " sys/param.h"
2691 as_fn_append ac_func_list " symlink"
2692 # Check that the precious variables saved in the cache have kept the same
2694 ac_cache_corrupted=false
2695 for ac_var in $ac_precious_vars; do
2696 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2697 eval ac_new_set=\$ac_env_${ac_var}_set
2698 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2699 eval ac_new_val=\$ac_env_${ac_var}_value
2700 case $ac_old_set,$ac_new_set in
2702 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2703 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2704 ac_cache_corrupted=: ;;
2706 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2707 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2708 ac_cache_corrupted=: ;;
2711 if test "x$ac_old_val" != "x$ac_new_val"; then
2712 # differences in whitespace do not lead to failure.
2713 ac_old_val_w=`echo x $ac_old_val`
2714 ac_new_val_w=`echo x $ac_new_val`
2715 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2716 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2717 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2718 ac_cache_corrupted=:
2720 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2721 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2722 eval $ac_var=\$ac_old_val
2724 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2725 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2726 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2727 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2730 # Pass precious variables to config.status.
2731 if test "$ac_new_set" = set; then
2733 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2734 *) ac_arg=$ac_var=$ac_new_val ;;
2736 case " $ac_configure_args " in
2737 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2738 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2742 if $ac_cache_corrupted; then
2743 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2744 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2745 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2746 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2747 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2749 ## -------------------- ##
2750 ## Main body of script. ##
2751 ## -------------------- ##
2754 ac_cpp='$CPP $CPPFLAGS'
2755 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2756 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2757 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2762 for ac_dir in config "$srcdir"/config; do
2763 if test -f "$ac_dir/install-sh"; then
2765 ac_install_sh="$ac_aux_dir/install-sh -c"
2767 elif test -f "$ac_dir/install.sh"; then
2769 ac_install_sh="$ac_aux_dir/install.sh -c"
2771 elif test -f "$ac_dir/shtool"; then
2773 ac_install_sh="$ac_aux_dir/shtool install -c"
2777 if test -z "$ac_aux_dir"; then
2778 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2781 # These three variables are undocumented and unsupported,
2782 # and are intended to be withdrawn in a future Autoconf release.
2783 # They can cause serious problems if a builder's source tree is in a directory
2784 # whose full name contains unusual characters.
2785 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2786 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2787 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2790 ac_config_headers="$ac_config_headers lib/config.h"
2796 E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \
2797 | awk '{print $3}' | tr \" " " | awk '{print $1}'`
2798 E2FSPROGS_DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
2799 | tr \" " " | awk '{print $1}'`
2800 E2FSPROGS_DAY=$(echo $E2FSPROGS_DATE | awk -F- '{print $1}' | sed -e '/^[1-9]$/s/^/0/')
2801 MONTH=`echo $E2FSPROGS_DATE | awk -F- '{print $2}'`
2802 YEAR=`echo $E2FSPROGS_DATE | awk -F- '{print $3}'`
2804 if expr $YEAR ">" 1900 > /dev/null ; then
2805 E2FSPROGS_YEAR=$YEAR
2806 elif expr $YEAR ">" 90 >/dev/null ; then
2807 E2FSPROGS_YEAR=19$YEAR
2809 E2FSPROGS_YEAR=20$YEAR
2813 Jan) MONTH_NUM=01; E2FSPROGS_MONTH="January" ;;
2814 Feb) MONTH_NUM=02; E2FSPROGS_MONTH="February" ;;
2815 Mar) MONTH_NUM=03; E2FSPROGS_MONTH="March" ;;
2816 Apr) MONTH_NUM=04; E2FSPROGS_MONTH="April" ;;
2817 May) MONTH_NUM=05; E2FSPROGS_MONTH="May" ;;
2818 Jun) MONTH_NUM=06; E2FSPROGS_MONTH="June" ;;
2819 Jul) MONTH_NUM=07; E2FSPROGS_MONTH="July" ;;
2820 Aug) MONTH_NUM=08; E2FSPROGS_MONTH="August" ;;
2821 Sep) MONTH_NUM=09; E2FSPROGS_MONTH="September" ;;
2822 Oct) MONTH_NUM=10; E2FSPROGS_MONTH="October" ;;
2823 Nov) MONTH_NUM=11; E2FSPROGS_MONTH="November" ;;
2824 Dec) MONTH_NUM=12; E2FSPROGS_MONTH="December" ;;
2825 *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unknown month $MONTH??" >&5
2826 $as_echo "$as_me: WARNING: Unknown month $MONTH??" >&2;} ;;
2829 base_ver=`echo $E2FSPROGS_VERSION | \
2830 sed -e 's/-WIP//' -e 's/pre-//' -e 's/-PLUS//'`
2832 date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY}
2834 case $E2FSPROGS_VERSION in
2836 E2FSPROGS_PKGVER="$base_ver~WIP.$date_spec"
2839 E2FSPROGS_PKGVER="$base_ver"
2843 unset DATE MONTH YEAR base_ver pre_vers date_spec
2844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&5
2845 $as_echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&6; }
2846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&5
2847 $as_echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&6; }
2856 # Check whether --with-diet-libc was given.
2857 if test "${with_diet_libc+set}" = set; then :
2858 withval=$with_diet_libc; CC="diet cc -nostdinc"
2864 LIBS="$LIBS -lcompat"
2866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: CC=$CC" >&5
2867 $as_echo "CC=$CC" >&6; }
2869 # Make sure we can run config.sub.
2870 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2871 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2874 $as_echo_n "checking build system type... " >&6; }
2875 if ${ac_cv_build+:} false; then :
2876 $as_echo_n "(cached) " >&6
2878 ac_build_alias=$build_alias
2879 test "x$ac_build_alias" = x &&
2880 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2881 test "x$ac_build_alias" = x &&
2882 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2883 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2884 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2888 $as_echo "$ac_cv_build" >&6; }
2889 case $ac_cv_build in
2891 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2894 ac_save_IFS=$IFS; IFS='-'
2900 # Remember, the first character of IFS is used to create $*,
2901 # except with old shells:
2904 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2908 $as_echo_n "checking host system type... " >&6; }
2909 if ${ac_cv_host+:} false; then :
2910 $as_echo_n "(cached) " >&6
2912 if test "x$host_alias" = x; then
2913 ac_cv_host=$ac_cv_build
2915 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2916 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2921 $as_echo "$ac_cv_host" >&6; }
2924 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2927 ac_save_IFS=$IFS; IFS='-'
2933 # Remember, the first character of IFS is used to create $*,
2934 # except with old shells:
2937 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2942 ac_cpp='$CPP $CPPFLAGS'
2943 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2944 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2945 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2946 if test -n "$ac_tool_prefix"; then
2947 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2948 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2950 $as_echo_n "checking for $ac_word... " >&6; }
2951 if ${ac_cv_prog_CC+:} false; then :
2952 $as_echo_n "(cached) " >&6
2954 if test -n "$CC"; then
2955 ac_cv_prog_CC="$CC" # Let the user override the test.
2957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2961 test -z "$as_dir" && as_dir=.
2962 for ac_exec_ext in '' $ac_executable_extensions; do
2963 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2964 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2965 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2975 if test -n "$CC"; then
2976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2977 $as_echo "$CC" >&6; }
2979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2980 $as_echo "no" >&6; }
2985 if test -z "$ac_cv_prog_CC"; then
2987 # Extract the first word of "gcc", so it can be a program name with args.
2988 set dummy gcc; ac_word=$2
2989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2990 $as_echo_n "checking for $ac_word... " >&6; }
2991 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2992 $as_echo_n "(cached) " >&6
2994 if test -n "$ac_ct_CC"; then
2995 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3001 test -z "$as_dir" && as_dir=.
3002 for ac_exec_ext in '' $ac_executable_extensions; do
3003 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3004 ac_cv_prog_ac_ct_CC="gcc"
3005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3014 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3015 if test -n "$ac_ct_CC"; then
3016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3017 $as_echo "$ac_ct_CC" >&6; }
3019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3020 $as_echo "no" >&6; }
3023 if test "x$ac_ct_CC" = x; then
3026 case $cross_compiling:$ac_tool_warned in
3028 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3029 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3030 ac_tool_warned=yes ;;
3038 if test -z "$CC"; then
3039 if test -n "$ac_tool_prefix"; then
3040 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3041 set dummy ${ac_tool_prefix}cc; ac_word=$2
3042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3043 $as_echo_n "checking for $ac_word... " >&6; }
3044 if ${ac_cv_prog_CC+:} false; then :
3045 $as_echo_n "(cached) " >&6
3047 if test -n "$CC"; then
3048 ac_cv_prog_CC="$CC" # Let the user override the test.
3050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3054 test -z "$as_dir" && as_dir=.
3055 for ac_exec_ext in '' $ac_executable_extensions; do
3056 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3057 ac_cv_prog_CC="${ac_tool_prefix}cc"
3058 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3068 if test -n "$CC"; then
3069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3070 $as_echo "$CC" >&6; }
3072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3073 $as_echo "no" >&6; }
3079 if test -z "$CC"; then
3080 # Extract the first word of "cc", so it can be a program name with args.
3081 set dummy cc; ac_word=$2
3082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3083 $as_echo_n "checking for $ac_word... " >&6; }
3084 if ${ac_cv_prog_CC+:} false; then :
3085 $as_echo_n "(cached) " >&6
3087 if test -n "$CC"; then
3088 ac_cv_prog_CC="$CC" # Let the user override the test.
3091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3095 test -z "$as_dir" && as_dir=.
3096 for ac_exec_ext in '' $ac_executable_extensions; do
3097 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3098 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3099 ac_prog_rejected=yes
3103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3110 if test $ac_prog_rejected = yes; then
3111 # We found a bogon in the path, so make sure we never use it.
3112 set dummy $ac_cv_prog_CC
3114 if test $# != 0; then
3115 # We chose a different compiler from the bogus one.
3116 # However, it has the same basename, so the bogon will be chosen
3117 # first if we set CC to just the basename; use the full file name.
3119 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3125 if test -n "$CC"; then
3126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3127 $as_echo "$CC" >&6; }
3129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3130 $as_echo "no" >&6; }
3135 if test -z "$CC"; then
3136 if test -n "$ac_tool_prefix"; then
3137 for ac_prog in cl.exe
3139 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3140 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3142 $as_echo_n "checking for $ac_word... " >&6; }
3143 if ${ac_cv_prog_CC+:} false; then :
3144 $as_echo_n "(cached) " >&6
3146 if test -n "$CC"; then
3147 ac_cv_prog_CC="$CC" # Let the user override the test.
3149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3153 test -z "$as_dir" && as_dir=.
3154 for ac_exec_ext in '' $ac_executable_extensions; do
3155 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3156 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3167 if test -n "$CC"; then
3168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3169 $as_echo "$CC" >&6; }
3171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3172 $as_echo "no" >&6; }
3176 test -n "$CC" && break
3179 if test -z "$CC"; then
3181 for ac_prog in cl.exe
3183 # Extract the first word of "$ac_prog", so it can be a program name with args.
3184 set dummy $ac_prog; ac_word=$2
3185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3186 $as_echo_n "checking for $ac_word... " >&6; }
3187 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3188 $as_echo_n "(cached) " >&6
3190 if test -n "$ac_ct_CC"; then
3191 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3197 test -z "$as_dir" && as_dir=.
3198 for ac_exec_ext in '' $ac_executable_extensions; do
3199 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3200 ac_cv_prog_ac_ct_CC="$ac_prog"
3201 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3210 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3211 if test -n "$ac_ct_CC"; then
3212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3213 $as_echo "$ac_ct_CC" >&6; }
3215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3216 $as_echo "no" >&6; }
3220 test -n "$ac_ct_CC" && break
3223 if test "x$ac_ct_CC" = x; then
3226 case $cross_compiling:$ac_tool_warned in
3228 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3229 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3230 ac_tool_warned=yes ;;
3239 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3240 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3241 as_fn_error $? "no acceptable C compiler found in \$PATH
3242 See \`config.log' for more details" "$LINENO" 5; }
3244 # Provide some information about the compiler.
3245 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3248 for ac_option in --version -v -V -qversion; do
3249 { { ac_try="$ac_compiler $ac_option >&5"
3251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3252 *) ac_try_echo=$ac_try;;
3254 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3255 $as_echo "$ac_try_echo"; } >&5
3256 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3258 if test -s conftest.err; then
3260 ... rest of stderr output deleted ...
3261 10q' conftest.err >conftest.er1
3262 cat conftest.er1 >&5
3264 rm -f conftest.er1 conftest.err
3265 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3266 test $ac_status = 0; }
3269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3270 /* end confdefs.h. */
3280 ac_clean_files_save=$ac_clean_files
3281 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3282 # Try to create an executable without -o first, disregard a.out.
3283 # It will help us diagnose broken compilers, and finding out an intuition
3285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3286 $as_echo_n "checking whether the C compiler works... " >&6; }
3287 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3289 # The possible output files:
3290 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3293 for ac_file in $ac_files
3296 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3297 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3302 if { { ac_try="$ac_link_default"
3304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3305 *) ac_try_echo=$ac_try;;
3307 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3308 $as_echo "$ac_try_echo"; } >&5
3309 (eval "$ac_link_default") 2>&5
3311 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3312 test $ac_status = 0; }; then :
3313 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3314 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3315 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3316 # so that the user can short-circuit this test for compilers unknown to
3318 for ac_file in $ac_files ''
3320 test -f "$ac_file" || continue
3322 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3325 # We found the default executable, but exeext='' is most
3329 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3331 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3333 # We set ac_cv_exeext here because the later test for it is not
3334 # safe: cross compilers may not add the suffix if given an `-o'
3335 # argument, so we may need to know it at that point already.
3336 # Even if this section looks crufty: it has the advantage of
3343 test "$ac_cv_exeext" = no && ac_cv_exeext=
3348 if test -z "$ac_file"; then :
3349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3350 $as_echo "no" >&6; }
3351 $as_echo "$as_me: failed program was:" >&5
3352 sed 's/^/| /' conftest.$ac_ext >&5
3354 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3355 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3356 as_fn_error 77 "C compiler cannot create executables
3357 See \`config.log' for more details" "$LINENO" 5; }
3359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3360 $as_echo "yes" >&6; }
3362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3363 $as_echo_n "checking for C compiler default output file name... " >&6; }
3364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3365 $as_echo "$ac_file" >&6; }
3366 ac_exeext=$ac_cv_exeext
3368 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3369 ac_clean_files=$ac_clean_files_save
3370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3371 $as_echo_n "checking for suffix of executables... " >&6; }
3372 if { { ac_try="$ac_link"
3374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3375 *) ac_try_echo=$ac_try;;
3377 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3378 $as_echo "$ac_try_echo"; } >&5
3379 (eval "$ac_link") 2>&5
3381 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3382 test $ac_status = 0; }; then :
3383 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3384 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3385 # work properly (i.e., refer to `conftest.exe'), while it won't with
3387 for ac_file in conftest.exe conftest conftest.*; do
3388 test -f "$ac_file" || continue
3390 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3391 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3397 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3398 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3399 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3400 See \`config.log' for more details" "$LINENO" 5; }
3402 rm -f conftest conftest$ac_cv_exeext
3403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3404 $as_echo "$ac_cv_exeext" >&6; }
3406 rm -f conftest.$ac_ext
3407 EXEEXT=$ac_cv_exeext
3409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3410 /* end confdefs.h. */
3415 FILE *f = fopen ("conftest.out", "w");
3416 return ferror (f) || fclose (f) != 0;
3422 ac_clean_files="$ac_clean_files conftest.out"
3423 # Check that the compiler produces executables we can run. If not, either
3424 # the compiler is broken, or we cross compile.
3425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3426 $as_echo_n "checking whether we are cross compiling... " >&6; }
3427 if test "$cross_compiling" != yes; then
3428 { { ac_try="$ac_link"
3430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3431 *) ac_try_echo=$ac_try;;
3433 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3434 $as_echo "$ac_try_echo"; } >&5
3435 (eval "$ac_link") 2>&5
3437 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3438 test $ac_status = 0; }
3439 if { ac_try='./conftest$ac_cv_exeext'
3440 { { case "(($ac_try" in
3441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3442 *) ac_try_echo=$ac_try;;
3444 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3445 $as_echo "$ac_try_echo"; } >&5
3446 (eval "$ac_try") 2>&5
3448 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3449 test $ac_status = 0; }; }; then
3452 if test "$cross_compiling" = maybe; then
3455 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3456 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3457 as_fn_error $? "cannot run C compiled programs.
3458 If you meant to cross compile, use \`--host'.
3459 See \`config.log' for more details" "$LINENO" 5; }
3463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3464 $as_echo "$cross_compiling" >&6; }
3466 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3467 ac_clean_files=$ac_clean_files_save
3468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3469 $as_echo_n "checking for suffix of object files... " >&6; }
3470 if ${ac_cv_objext+:} false; then :
3471 $as_echo_n "(cached) " >&6
3473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3474 /* end confdefs.h. */
3484 rm -f conftest.o conftest.obj
3485 if { { ac_try="$ac_compile"
3487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3488 *) ac_try_echo=$ac_try;;
3490 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3491 $as_echo "$ac_try_echo"; } >&5
3492 (eval "$ac_compile") 2>&5
3494 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3495 test $ac_status = 0; }; then :
3496 for ac_file in conftest.o conftest.obj conftest.*; do
3497 test -f "$ac_file" || continue;
3499 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3500 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3505 $as_echo "$as_me: failed program was:" >&5
3506 sed 's/^/| /' conftest.$ac_ext >&5
3508 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3509 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3510 as_fn_error $? "cannot compute suffix of object files: cannot compile
3511 See \`config.log' for more details" "$LINENO" 5; }
3513 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3516 $as_echo "$ac_cv_objext" >&6; }
3517 OBJEXT=$ac_cv_objext
3519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3520 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3521 if ${ac_cv_c_compiler_gnu+:} false; then :
3522 $as_echo_n "(cached) " >&6
3524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3525 /* end confdefs.h. */
3538 if ac_fn_c_try_compile "$LINENO"; then :
3543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3544 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3548 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3549 if test $ac_compiler_gnu = yes; then
3554 ac_test_CFLAGS=${CFLAGS+set}
3555 ac_save_CFLAGS=$CFLAGS
3556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3557 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3558 if ${ac_cv_prog_cc_g+:} false; then :
3559 $as_echo_n "(cached) " >&6
3561 ac_save_c_werror_flag=$ac_c_werror_flag
3562 ac_c_werror_flag=yes
3565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3566 /* end confdefs.h. */
3576 if ac_fn_c_try_compile "$LINENO"; then :
3580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3581 /* end confdefs.h. */
3591 if ac_fn_c_try_compile "$LINENO"; then :
3594 ac_c_werror_flag=$ac_save_c_werror_flag
3596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3597 /* end confdefs.h. */
3607 if ac_fn_c_try_compile "$LINENO"; then :
3610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3615 ac_c_werror_flag=$ac_save_c_werror_flag
3617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3618 $as_echo "$ac_cv_prog_cc_g" >&6; }
3619 if test "$ac_test_CFLAGS" = set; then
3620 CFLAGS=$ac_save_CFLAGS
3621 elif test $ac_cv_prog_cc_g = yes; then
3622 if test "$GCC" = yes; then
3628 if test "$GCC" = yes; then
3634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3635 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3636 if ${ac_cv_prog_cc_c89+:} false; then :
3637 $as_echo_n "(cached) " >&6
3639 ac_cv_prog_cc_c89=no
3641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3642 /* end confdefs.h. */
3646 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3647 struct buf { int x; };
3648 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3649 static char *e (p, i)
3655 static char *f (char * (*g) (char **, int), char **p, ...)
3660 s = g (p, va_arg (v,int));
3665 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3666 function prototypes and stuff, but not '\xHH' hex character constants.
3667 These don't provoke an error unfortunately, instead are silently treated
3668 as 'x'. The following induces an error, until -std is added to get
3669 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3670 array size at least. It's necessary to write '\x00'==0 to get something
3671 that's true only with -std. */
3672 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3674 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3675 inside strings and character constants. */
3677 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3679 int test (int i, double x);
3680 struct s1 {int (*f) (int a);};
3681 struct s2 {int (*f) (double a);};
3682 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3688 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3693 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3694 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3696 CC="$ac_save_CC $ac_arg"
3697 if ac_fn_c_try_compile "$LINENO"; then :
3698 ac_cv_prog_cc_c89=$ac_arg
3700 rm -f core conftest.err conftest.$ac_objext
3701 test "x$ac_cv_prog_cc_c89" != "xno" && break
3703 rm -f conftest.$ac_ext
3708 case "x$ac_cv_prog_cc_c89" in
3710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3711 $as_echo "none needed" >&6; } ;;
3713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3714 $as_echo "unsupported" >&6; } ;;
3716 CC="$CC $ac_cv_prog_cc_c89"
3717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3718 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3720 if test "x$ac_cv_prog_cc_c89" != xno; then :
3725 ac_cpp='$CPP $CPPFLAGS'
3726 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3727 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3728 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
3732 $as_echo_n "checking for dlopen in -ldl... " >&6; }
3733 if ${ac_cv_lib_dl_dlopen+:} false; then :
3734 $as_echo_n "(cached) " >&6
3736 ac_check_lib_save_LIBS=$LIBS
3738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3739 /* end confdefs.h. */
3741 /* Override any GCC internal prototype to avoid an error.
3742 Use char because int might match the return type of a GCC
3743 builtin and then its argument prototype would still apply. */
3756 if ac_fn_c_try_link "$LINENO"; then :
3757 ac_cv_lib_dl_dlopen=yes
3759 ac_cv_lib_dl_dlopen=no
3761 rm -f core conftest.err conftest.$ac_objext \
3762 conftest$ac_exeext conftest.$ac_ext
3763 LIBS=$ac_check_lib_save_LIBS
3765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
3766 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
3767 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
3773 # Check whether --with-cc was given.
3774 if test "${with_cc+set}" = set; then :
3775 withval=$with_cc; as_fn_error $? "--with-cc no longer supported; use CC= instead" "$LINENO" 5
3779 # Check whether --with-ccopts was given.
3780 if test "${with_ccopts+set}" = set; then :
3781 withval=$with_ccopts; as_fn_error $? "--with-ccopts no longer supported; use CFLAGS= instead" "$LINENO" 5
3785 # Check whether --with-ldopts was given.
3786 if test "${with_ldopts+set}" = set; then :
3787 withval=$with_ldopts; as_fn_error $? "--with-ldopts no longer supported; use LDFLAGS= instead" "$LINENO" 5
3791 ac_cpp='$CPP $CPPFLAGS'
3792 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3793 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3794 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3795 if test -n "$ac_tool_prefix"; then
3796 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3797 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3799 $as_echo_n "checking for $ac_word... " >&6; }
3800 if ${ac_cv_prog_CC+:} false; then :
3801 $as_echo_n "(cached) " >&6
3803 if test -n "$CC"; then
3804 ac_cv_prog_CC="$CC" # Let the user override the test.
3806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3810 test -z "$as_dir" && as_dir=.
3811 for ac_exec_ext in '' $ac_executable_extensions; do
3812 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3813 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3814 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3824 if test -n "$CC"; then
3825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3826 $as_echo "$CC" >&6; }
3828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3829 $as_echo "no" >&6; }
3834 if test -z "$ac_cv_prog_CC"; then
3836 # Extract the first word of "gcc", so it can be a program name with args.
3837 set dummy gcc; ac_word=$2
3838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3839 $as_echo_n "checking for $ac_word... " >&6; }
3840 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3841 $as_echo_n "(cached) " >&6
3843 if test -n "$ac_ct_CC"; then
3844 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3850 test -z "$as_dir" && as_dir=.
3851 for ac_exec_ext in '' $ac_executable_extensions; do
3852 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3853 ac_cv_prog_ac_ct_CC="gcc"
3854 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3863 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3864 if test -n "$ac_ct_CC"; then
3865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3866 $as_echo "$ac_ct_CC" >&6; }
3868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3869 $as_echo "no" >&6; }
3872 if test "x$ac_ct_CC" = x; then
3875 case $cross_compiling:$ac_tool_warned in
3877 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3878 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3879 ac_tool_warned=yes ;;
3887 if test -z "$CC"; then
3888 if test -n "$ac_tool_prefix"; then
3889 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3890 set dummy ${ac_tool_prefix}cc; ac_word=$2
3891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3892 $as_echo_n "checking for $ac_word... " >&6; }
3893 if ${ac_cv_prog_CC+:} false; then :
3894 $as_echo_n "(cached) " >&6
3896 if test -n "$CC"; then
3897 ac_cv_prog_CC="$CC" # Let the user override the test.
3899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3903 test -z "$as_dir" && as_dir=.
3904 for ac_exec_ext in '' $ac_executable_extensions; do
3905 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3906 ac_cv_prog_CC="${ac_tool_prefix}cc"
3907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3917 if test -n "$CC"; then
3918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3919 $as_echo "$CC" >&6; }
3921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3922 $as_echo "no" >&6; }
3928 if test -z "$CC"; then
3929 # Extract the first word of "cc", so it can be a program name with args.
3930 set dummy cc; ac_word=$2
3931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3932 $as_echo_n "checking for $ac_word... " >&6; }
3933 if ${ac_cv_prog_CC+:} false; then :
3934 $as_echo_n "(cached) " >&6
3936 if test -n "$CC"; then
3937 ac_cv_prog_CC="$CC" # Let the user override the test.
3940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3944 test -z "$as_dir" && as_dir=.
3945 for ac_exec_ext in '' $ac_executable_extensions; do
3946 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3947 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3948 ac_prog_rejected=yes
3952 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3959 if test $ac_prog_rejected = yes; then
3960 # We found a bogon in the path, so make sure we never use it.
3961 set dummy $ac_cv_prog_CC
3963 if test $# != 0; then
3964 # We chose a different compiler from the bogus one.
3965 # However, it has the same basename, so the bogon will be chosen
3966 # first if we set CC to just the basename; use the full file name.
3968 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3974 if test -n "$CC"; then
3975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3976 $as_echo "$CC" >&6; }
3978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3979 $as_echo "no" >&6; }
3984 if test -z "$CC"; then
3985 if test -n "$ac_tool_prefix"; then
3986 for ac_prog in cl.exe
3988 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3989 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3991 $as_echo_n "checking for $ac_word... " >&6; }
3992 if ${ac_cv_prog_CC+:} false; then :
3993 $as_echo_n "(cached) " >&6
3995 if test -n "$CC"; then
3996 ac_cv_prog_CC="$CC" # Let the user override the test.
3998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4002 test -z "$as_dir" && as_dir=.
4003 for ac_exec_ext in '' $ac_executable_extensions; do
4004 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4005 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4006 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4016 if test -n "$CC"; then
4017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4018 $as_echo "$CC" >&6; }
4020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4021 $as_echo "no" >&6; }
4025 test -n "$CC" && break
4028 if test -z "$CC"; then
4030 for ac_prog in cl.exe
4032 # Extract the first word of "$ac_prog", so it can be a program name with args.
4033 set dummy $ac_prog; ac_word=$2
4034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4035 $as_echo_n "checking for $ac_word... " >&6; }
4036 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4037 $as_echo_n "(cached) " >&6
4039 if test -n "$ac_ct_CC"; then
4040 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4046 test -z "$as_dir" && as_dir=.
4047 for ac_exec_ext in '' $ac_executable_extensions; do
4048 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4049 ac_cv_prog_ac_ct_CC="$ac_prog"
4050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4059 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4060 if test -n "$ac_ct_CC"; then
4061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4062 $as_echo "$ac_ct_CC" >&6; }
4064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4065 $as_echo "no" >&6; }
4069 test -n "$ac_ct_CC" && break
4072 if test "x$ac_ct_CC" = x; then
4075 case $cross_compiling:$ac_tool_warned in
4077 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4078 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4079 ac_tool_warned=yes ;;
4088 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4089 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4090 as_fn_error $? "no acceptable C compiler found in \$PATH
4091 See \`config.log' for more details" "$LINENO" 5; }
4093 # Provide some information about the compiler.
4094 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4097 for ac_option in --version -v -V -qversion; do
4098 { { ac_try="$ac_compiler $ac_option >&5"
4100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4101 *) ac_try_echo=$ac_try;;
4103 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4104 $as_echo "$ac_try_echo"; } >&5
4105 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4107 if test -s conftest.err; then
4109 ... rest of stderr output deleted ...
4110 10q' conftest.err >conftest.er1
4111 cat conftest.er1 >&5
4113 rm -f conftest.er1 conftest.err
4114 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4115 test $ac_status = 0; }
4118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4119 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4120 if ${ac_cv_c_compiler_gnu+:} false; then :
4121 $as_echo_n "(cached) " >&6
4123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4124 /* end confdefs.h. */
4137 if ac_fn_c_try_compile "$LINENO"; then :
4142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4143 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4147 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4148 if test $ac_compiler_gnu = yes; then
4153 ac_test_CFLAGS=${CFLAGS+set}
4154 ac_save_CFLAGS=$CFLAGS
4155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4156 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4157 if ${ac_cv_prog_cc_g+:} false; then :
4158 $as_echo_n "(cached) " >&6
4160 ac_save_c_werror_flag=$ac_c_werror_flag
4161 ac_c_werror_flag=yes
4164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4165 /* end confdefs.h. */
4175 if ac_fn_c_try_compile "$LINENO"; then :
4179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4180 /* end confdefs.h. */
4190 if ac_fn_c_try_compile "$LINENO"; then :
4193 ac_c_werror_flag=$ac_save_c_werror_flag
4195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4196 /* end confdefs.h. */
4206 if ac_fn_c_try_compile "$LINENO"; then :
4209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4214 ac_c_werror_flag=$ac_save_c_werror_flag
4216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4217 $as_echo "$ac_cv_prog_cc_g" >&6; }
4218 if test "$ac_test_CFLAGS" = set; then
4219 CFLAGS=$ac_save_CFLAGS
4220 elif test $ac_cv_prog_cc_g = yes; then
4221 if test "$GCC" = yes; then
4227 if test "$GCC" = yes; then
4233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4234 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4235 if ${ac_cv_prog_cc_c89+:} false; then :
4236 $as_echo_n "(cached) " >&6
4238 ac_cv_prog_cc_c89=no
4240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4241 /* end confdefs.h. */
4245 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4246 struct buf { int x; };
4247 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4248 static char *e (p, i)
4254 static char *f (char * (*g) (char **, int), char **p, ...)
4259 s = g (p, va_arg (v,int));
4264 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4265 function prototypes and stuff, but not '\xHH' hex character constants.
4266 These don't provoke an error unfortunately, instead are silently treated
4267 as 'x'. The following induces an error, until -std is added to get
4268 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4269 array size at least. It's necessary to write '\x00'==0 to get something
4270 that's true only with -std. */
4271 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4273 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4274 inside strings and character constants. */
4276 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4278 int test (int i, double x);
4279 struct s1 {int (*f) (int a);};
4280 struct s2 {int (*f) (double a);};
4281 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4287 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4292 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4293 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4295 CC="$ac_save_CC $ac_arg"
4296 if ac_fn_c_try_compile "$LINENO"; then :
4297 ac_cv_prog_cc_c89=$ac_arg
4299 rm -f core conftest.err conftest.$ac_objext
4300 test "x$ac_cv_prog_cc_c89" != "xno" && break
4302 rm -f conftest.$ac_ext
4307 case "x$ac_cv_prog_cc_c89" in
4309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4310 $as_echo "none needed" >&6; } ;;
4312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4313 $as_echo "unsupported" >&6; } ;;
4315 CC="$CC $ac_cv_prog_cc_c89"
4316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4317 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4319 if test "x$ac_cv_prog_cc_c89" != xno; then :
4324 ac_cpp='$CPP $CPPFLAGS'
4325 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4326 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4327 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4329 if test "$GCC" = yes; then
4330 RDYNAMIC="-rdynamic"
4334 ac_cpp='$CPP $CPPFLAGS'
4335 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4336 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4337 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4339 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4340 # On Suns, sometimes $CPP names a directory.
4341 if test -n "$CPP" && test -d "$CPP"; then
4344 if test -z "$CPP"; then
4345 if ${ac_cv_prog_CPP+:} false; then :
4346 $as_echo_n "(cached) " >&6
4348 # Double quotes because CPP needs to be expanded
4349 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4352 for ac_c_preproc_warn_flag in '' yes
4354 # Use a header file that comes with gcc, so configuring glibc
4355 # with a fresh cross-compiler works.
4356 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4357 # <limits.h> exists even on freestanding compilers.
4358 # On the NeXT, cc -E runs the code through the compiler's parser,
4359 # not just through cpp. "Syntax error" is here to catch this case.
4360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4361 /* end confdefs.h. */
4363 # include <limits.h>
4365 # include <assert.h>
4369 if ac_fn_c_try_cpp "$LINENO"; then :
4372 # Broken: fails on valid input.
4375 rm -f conftest.err conftest.i conftest.$ac_ext
4377 # OK, works on sane cases. Now check whether nonexistent headers
4378 # can be detected and how.
4379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4380 /* end confdefs.h. */
4381 #include <ac_nonexistent.h>
4383 if ac_fn_c_try_cpp "$LINENO"; then :
4384 # Broken: success on invalid input.
4387 # Passes both tests.
4391 rm -f conftest.err conftest.i conftest.$ac_ext
4394 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4395 rm -f conftest.i conftest.err conftest.$ac_ext
4396 if $ac_preproc_ok; then :
4408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4409 $as_echo "$CPP" >&6; }
4411 for ac_c_preproc_warn_flag in '' yes
4413 # Use a header file that comes with gcc, so configuring glibc
4414 # with a fresh cross-compiler works.
4415 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4416 # <limits.h> exists even on freestanding compilers.
4417 # On the NeXT, cc -E runs the code through the compiler's parser,
4418 # not just through cpp. "Syntax error" is here to catch this case.
4419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4420 /* end confdefs.h. */
4422 # include <limits.h>
4424 # include <assert.h>
4428 if ac_fn_c_try_cpp "$LINENO"; then :
4431 # Broken: fails on valid input.
4434 rm -f conftest.err conftest.i conftest.$ac_ext
4436 # OK, works on sane cases. Now check whether nonexistent headers
4437 # can be detected and how.
4438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4439 /* end confdefs.h. */
4440 #include <ac_nonexistent.h>
4442 if ac_fn_c_try_cpp "$LINENO"; then :
4443 # Broken: success on invalid input.
4446 # Passes both tests.
4450 rm -f conftest.err conftest.i conftest.$ac_ext
4453 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4454 rm -f conftest.i conftest.err conftest.$ac_ext
4455 if $ac_preproc_ok; then :
4458 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4459 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4460 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4461 See \`config.log' for more details" "$LINENO" 5; }
4465 ac_cpp='$CPP $CPPFLAGS'
4466 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4467 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4468 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for additional special compiler flags" >&5
4471 $as_echo_n "checking for additional special compiler flags... " >&6; }
4472 if test "$GCC" = yes
4475 alpha) addcflags="-mieee" ;;
4478 if test "x$addcflags" != x
4480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $addcflags" >&5
4481 $as_echo "$addcflags" >&6; }
4482 CFLAGS="$addcflags $CFLAGS"
4484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (none)" >&5
4485 $as_echo "(none)" >&6; }
4488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4489 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4490 if ${ac_cv_path_GREP+:} false; then :
4491 $as_echo_n "(cached) " >&6
4493 if test -z "$GREP"; then
4494 ac_path_GREP_found=false
4495 # Loop through the user's path and test for each of PROGNAME-LIST
4496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4497 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4500 test -z "$as_dir" && as_dir=.
4501 for ac_prog in grep ggrep; do
4502 for ac_exec_ext in '' $ac_executable_extensions; do
4503 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4504 as_fn_executable_p "$ac_path_GREP" || continue
4505 # Check for GNU ac_path_GREP and select it if it is found.
4506 # Check for GNU $ac_path_GREP
4507 case `"$ac_path_GREP" --version 2>&1` in
4509 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4512 $as_echo_n 0123456789 >"conftest.in"
4515 cat "conftest.in" "conftest.in" >"conftest.tmp"
4516 mv "conftest.tmp" "conftest.in"
4517 cp "conftest.in" "conftest.nl"
4518 $as_echo 'GREP' >> "conftest.nl"
4519 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4520 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4521 as_fn_arith $ac_count + 1 && ac_count=$as_val
4522 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4523 # Best one so far, save it but keep looking for a better one
4524 ac_cv_path_GREP="$ac_path_GREP"
4525 ac_path_GREP_max=$ac_count
4527 # 10*(2^10) chars as input seems more than enough
4528 test $ac_count -gt 10 && break
4530 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4533 $ac_path_GREP_found && break 3
4538 if test -z "$ac_cv_path_GREP"; then
4539 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4542 ac_cv_path_GREP=$GREP
4546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4547 $as_echo "$ac_cv_path_GREP" >&6; }
4548 GREP="$ac_cv_path_GREP"
4551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4552 $as_echo_n "checking for egrep... " >&6; }
4553 if ${ac_cv_path_EGREP+:} false; then :
4554 $as_echo_n "(cached) " >&6
4556 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4557 then ac_cv_path_EGREP="$GREP -E"
4559 if test -z "$EGREP"; then
4560 ac_path_EGREP_found=false
4561 # Loop through the user's path and test for each of PROGNAME-LIST
4562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4563 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4566 test -z "$as_dir" && as_dir=.
4567 for ac_prog in egrep; do
4568 for ac_exec_ext in '' $ac_executable_extensions; do
4569 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4570 as_fn_executable_p "$ac_path_EGREP" || continue
4571 # Check for GNU ac_path_EGREP and select it if it is found.
4572 # Check for GNU $ac_path_EGREP
4573 case `"$ac_path_EGREP" --version 2>&1` in
4575 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4578 $as_echo_n 0123456789 >"conftest.in"
4581 cat "conftest.in" "conftest.in" >"conftest.tmp"
4582 mv "conftest.tmp" "conftest.in"
4583 cp "conftest.in" "conftest.nl"
4584 $as_echo 'EGREP' >> "conftest.nl"
4585 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4586 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4587 as_fn_arith $ac_count + 1 && ac_count=$as_val
4588 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4589 # Best one so far, save it but keep looking for a better one
4590 ac_cv_path_EGREP="$ac_path_EGREP"
4591 ac_path_EGREP_max=$ac_count
4593 # 10*(2^10) chars as input seems more than enough
4594 test $ac_count -gt 10 && break
4596 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4599 $ac_path_EGREP_found && break 3
4604 if test -z "$ac_cv_path_EGREP"; then
4605 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4608 ac_cv_path_EGREP=$EGREP
4613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4614 $as_echo "$ac_cv_path_EGREP" >&6; }
4615 EGREP="$ac_cv_path_EGREP"
4618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4619 $as_echo_n "checking for ANSI C header files... " >&6; }
4620 if ${ac_cv_header_stdc+:} false; then :
4621 $as_echo_n "(cached) " >&6
4623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4624 /* end confdefs.h. */
4638 if ac_fn_c_try_compile "$LINENO"; then :
4639 ac_cv_header_stdc=yes
4641 ac_cv_header_stdc=no
4643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4645 if test $ac_cv_header_stdc = yes; then
4646 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4648 /* end confdefs.h. */
4652 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4653 $EGREP "memchr" >/dev/null 2>&1; then :
4656 ac_cv_header_stdc=no
4662 if test $ac_cv_header_stdc = yes; then
4663 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4665 /* end confdefs.h. */
4669 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4670 $EGREP "free" >/dev/null 2>&1; then :
4673 ac_cv_header_stdc=no
4679 if test $ac_cv_header_stdc = yes; then
4680 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4681 if test "$cross_compiling" = yes; then :
4684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4685 /* end confdefs.h. */
4688 #if ((' ' & 0x0FF) == 0x020)
4689 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4690 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4692 # define ISLOWER(c) \
4693 (('a' <= (c) && (c) <= 'i') \
4694 || ('j' <= (c) && (c) <= 'r') \
4695 || ('s' <= (c) && (c) <= 'z'))
4696 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4699 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4704 for (i = 0; i < 256; i++)
4705 if (XOR (islower (i), ISLOWER (i))
4706 || toupper (i) != TOUPPER (i))
4711 if ac_fn_c_try_run "$LINENO"; then :
4714 ac_cv_header_stdc=no
4716 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4717 conftest.$ac_objext conftest.beam conftest.$ac_ext
4722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4723 $as_echo "$ac_cv_header_stdc" >&6; }
4724 if test $ac_cv_header_stdc = yes; then
4726 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4730 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4731 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4732 inttypes.h stdint.h unistd.h
4734 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4735 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4737 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4738 cat >>confdefs.h <<_ACEOF
4739 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4748 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4749 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4756 if test "$MINIX" = yes; then
4758 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4761 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4764 $as_echo "#define _MINIX 1" >>confdefs.h
4769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4770 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4771 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4772 $as_echo_n "(cached) " >&6
4774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4775 /* end confdefs.h. */
4777 # define __EXTENSIONS__ 1
4778 $ac_includes_default
4787 if ac_fn_c_try_compile "$LINENO"; then :
4788 ac_cv_safe_to_define___extensions__=yes
4790 ac_cv_safe_to_define___extensions__=no
4792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4795 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4796 test $ac_cv_safe_to_define___extensions__ = yes &&
4797 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4799 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4801 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4803 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4805 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4812 # Check whether --with-root-prefix was given.
4813 if test "${with_root_prefix+set}" = set; then :
4814 withval=$with_root_prefix; root_prefix=$withval
4818 # Check whether --enable-maintainer-mode was given.
4819 if test "${enable_maintainer_mode+set}" = set; then :
4820 enableval=$enable_maintainer_mode; if test "$enableval" = "no"
4823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode" >&5
4824 $as_echo "Disabling maintainer mode" >&6; }
4827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling maintainer mode" >&5
4828 $as_echo "Enabling maintainer mode" >&6; }
4833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode by default" >&5
4834 $as_echo "Disabling maintainer mode by default" >&6; }
4839 # Check whether --enable-symlink-install was given.
4840 if test "${enable_symlink_install+set}" = set; then :
4841 enableval=$enable_symlink_install; if test "$enableval" = "no"
4843 LINK_INSTALL_FLAGS=-f
4844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install" >&5
4845 $as_echo "Disabling symlinks for install" >&6; }
4847 LINK_INSTALL_FLAGS=-sf
4848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for install" >&5
4849 $as_echo "Enabling symlinks for install" >&6; }
4853 LINK_INSTALL_FLAGS=-f
4854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install by default" >&5
4855 $as_echo "Disabling symlinks for install by default" >&6; }
4860 relative_symlink_defined=
4861 # Check whether --enable-relative-symlinks was given.
4862 if test "${enable_relative_symlinks+set}" = set; then :
4863 enableval=$enable_relative_symlinks; if test "$enableval" = "no"
4866 relative_symlink_defined=yes
4867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
4868 $as_echo "Disabling relative symlinks for install" >&6; }
4870 SYMLINK_RELATIVE=--relative
4871 relative_symlink_defined=yes
4872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5
4873 $as_echo "Enabling relative symlinks for install" >&6; }
4877 # Check whether --enable-symlink-relative-symlinks was given.
4878 if test "${enable_symlink_relative_symlinks+set}" = set; then :
4879 enableval=$enable_symlink_relative_symlinks; if test "$enableval" = "no"
4881 SYMLINK_RELATIVE=yes
4882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
4883 $as_echo "Disabling relative symlinks for install" >&6; }
4885 SYMLINK_RELATIVE=--relative
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 if test -z "$relative_symlink_defined"
4894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install by default" >&5
4895 $as_echo "Disabling relative symlinks for install by default" >&6; }
4901 # Check whether --enable-symlink-build was given.
4902 if test "${enable_symlink_build+set}" = set; then :
4903 enableval=$enable_symlink_build; if test "$enableval" = "no"
4906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build" >&5
4907 $as_echo "Disabling symlinks for build" >&6; }
4910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for build" >&5
4911 $as_echo "Enabling symlinks for build" >&6; }
4916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build by default" >&5
4917 $as_echo "Disabling symlinks for build by default" >&6; }
4922 # Check whether --enable-verbose-makecmds was given.
4923 if test "${enable_verbose_makecmds+set}" = set; then :
4924 enableval=$enable_verbose_makecmds; if test "$enableval" = "no"
4926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
4927 $as_echo "Disabling verbose make commands" >&6; }
4932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling verbose make commands" >&5
4933 $as_echo "Enabling verbose make commands" >&6; }
4940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
4941 $as_echo "Disabling verbose make commands" >&6; }
4951 E2_PKG_CONFIG_STATIC=--static
4954 # Check whether --enable-elf-shlibs was given.
4955 if test "${enable_elf_shlibs+set}" = set; then :
4956 enableval=$enable_elf_shlibs; if test "$enableval" = "no"
4959 MAKEFILE_ELF=/dev/null
4960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries" >&5
4961 $as_echo "Disabling ELF shared libraries" >&6; }
4963 E2_PKG_CONFIG_STATIC=
4965 MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
4968 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
4974 LDFLAG_DYNAMIC='-Wl,-rpath-link,$(top_builddir)/lib'
4975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling ELF shared libraries" >&5
4976 $as_echo "Enabling ELF shared libraries" >&6; }
4980 MAKEFILE_ELF=/dev/null
4982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries by default" >&5
4983 $as_echo "Disabling ELF shared libraries by default" >&6; }
4989 # Check whether --enable-bsd-shlibs was given.
4990 if test "${enable_bsd_shlibs+set}" = set; then :
4991 enableval=$enable_bsd_shlibs; if test "$enableval" = "no"
4994 MAKEFILE_BSDLIB=/dev/null
4995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries" >&5
4996 $as_echo "Disabling BSD shared libraries" >&6; }
4998 E2_PKG_CONFIG_STATIC=
5000 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
5004 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib
5008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling BSD shared libraries" >&5
5009 $as_echo "Enabling BSD shared libraries" >&6; }
5013 MAKEFILE_BSDLIB=/dev/null
5015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries by default" >&5
5016 $as_echo "Disabling BSD shared libraries by default" >&6; }
5022 # Check whether --enable-profile was given.
5023 if test "${enable_profile+set}" = set; then :
5024 enableval=$enable_profile; if test "$enableval" = "no"
5027 MAKEFILE_PROFILE=/dev/null
5028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries" >&5
5029 $as_echo "Disabling profiling libraries" >&6; }
5032 MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
5033 PROFILED_LIB_EXT=_p.a
5034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building profiling libraries" >&5
5035 $as_echo "Building profiling libraries" >&6; }
5040 MAKEFILE_PROFILE=/dev/null
5041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries by default" >&5
5042 $as_echo "Disabling profiling libraries by default" >&6; }
5048 # Check whether --enable-gcov was given.
5049 if test "${enable_gcov+set}" = set; then :
5050 enableval=$enable_gcov; if test "$enableval" = "yes"
5052 CFLAGS="-g -fprofile-arcs -ftest-coverage"
5053 LDFLAGS="-fprofile-arcs -ftest-coverage"
5054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling gcov support" >&5
5055 $as_echo "Enabling gcov support" >&6; }
5060 CFLAGS_SHLIB="${CFLAGS_SHLIB:-$CFLAGS}"
5061 CFLAGS_STLIB="${CFLAGS_STLIB:-$CFLAGS}"
5062 LDFLAGS_SHLIB=${LDFLAGS_SHLIB:-$LDFLAGS}
5063 LDFLAGS_STATIC=${LDFLAGS_STATIC:-$LDFLAGS}
5064 # Check whether --enable-hardening was given.
5065 if test "${enable_hardening+set}" = set; then :
5066 enableval=$enable_hardening; if test "$enableval" = "yes"
5068 HARDEN_CFLAGS="-D_FORTIFY_SOURCE=2 -fstack-protector-strong"
5069 HARDEN_LDFLAGS="-Wl,-z,relro -Wl,-z,now"
5070 CFLAGS="$CFLAGS $HARDEN_CFLAGS -fPIE"
5071 CFLAGS_SHLIB="$CFLAGS_SHLIB $HARDEN_CFLAGS"
5072 CFLAGS_STLIB="$CFLAGS_STLIB $HARDEN_CFLAGS -fPIE"
5073 LDFLAGS="$LDFLAGS $HARDEN_LDFLAGS -fPIE -pie"
5074 LDFLAGS_STATIC="$LDFLAGS_STATIC $HARDEN_LDFLAGS"
5075 LDFLAGS_SHLIB="$LDFLAGS_SHLIB $HARDEN_LDFLAGS"
5076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling hardening support" >&5
5077 $as_echo "Enabling hardening support" >&6; }
5087 # Check whether --enable-jbd-debug was given.
5088 if test "${enable_jbd_debug+set}" = set; then :
5089 enableval=$enable_jbd_debug; if test "$enableval" = "no"
5091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging" >&5
5092 $as_echo "Disabling journal debugging" >&6; }
5095 $as_echo "#define CONFIG_JBD_DEBUG 1" >>confdefs.h
5097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling journal debugging" >&5
5098 $as_echo "Enabling journal debugging" >&6; }
5102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging by default" >&5
5103 $as_echo "Disabling journal debugging by default" >&6; }
5107 # Check whether --enable-blkid-debug was given.
5108 if test "${enable_blkid_debug+set}" = set; then :
5109 enableval=$enable_blkid_debug; if test "$enableval" = "no"
5111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging" >&5
5112 $as_echo "Disabling blkid debugging" >&6; }
5115 $as_echo "#define CONFIG_BLKID_DEBUG 1" >>confdefs.h
5117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling blkid debugging" >&5
5118 $as_echo "Enabling blkid debugging" >&6; }
5122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging by default" >&5
5123 $as_echo "Disabling blkid debugging by default" >&6; }
5127 # Check whether --enable-testio-debug was given.
5128 if test "${enable_testio_debug+set}" = set; then :
5129 enableval=$enable_testio_debug;
5130 if test "$enableval" = "no"
5132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling testio debugging" >&5
5133 $as_echo "Disabling testio debugging" >&6; }
5137 $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
5139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging" >&5
5140 $as_echo "Enabling testio debugging" >&6; }
5144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging by default" >&5
5145 $as_echo "Enabling testio debugging by default" >&6; }
5146 $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
5160 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5161 if test -n "$ac_tool_prefix"; then
5162 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5163 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5165 $as_echo_n "checking for $ac_word... " >&6; }
5166 if ${ac_cv_path_PKG_CONFIG+:} false; then :
5167 $as_echo_n "(cached) " >&6
5171 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5178 test -z "$as_dir" && as_dir=.
5179 for ac_exec_ext in '' $ac_executable_extensions; do
5180 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5181 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5192 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5193 if test -n "$PKG_CONFIG"; then
5194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5195 $as_echo "$PKG_CONFIG" >&6; }
5197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5198 $as_echo "no" >&6; }
5203 if test -z "$ac_cv_path_PKG_CONFIG"; then
5204 ac_pt_PKG_CONFIG=$PKG_CONFIG
5205 # Extract the first word of "pkg-config", so it can be a program name with args.
5206 set dummy pkg-config; ac_word=$2
5207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5208 $as_echo_n "checking for $ac_word... " >&6; }
5209 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
5210 $as_echo_n "(cached) " >&6
5212 case $ac_pt_PKG_CONFIG in
5214 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5221 test -z "$as_dir" && as_dir=.
5222 for ac_exec_ext in '' $ac_executable_extensions; do
5223 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5224 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5225 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5235 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5236 if test -n "$ac_pt_PKG_CONFIG"; then
5237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5238 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5241 $as_echo "no" >&6; }
5244 if test "x$ac_pt_PKG_CONFIG" = x; then
5247 case $cross_compiling:$ac_tool_warned in
5249 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5250 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5251 ac_tool_warned=yes ;;
5253 PKG_CONFIG=$ac_pt_PKG_CONFIG
5256 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5260 if test -n "$PKG_CONFIG"; then
5261 _pkg_min_version=0.9.0
5262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5263 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5264 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5266 $as_echo "yes" >&6; }
5268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5269 $as_echo "no" >&6; }
5278 DEPPROFILED_LIBUUID=
5280 # Check whether --enable-libuuid was given.
5281 if test "${enable_libuuid+set}" = set; then :
5282 enableval=$enable_libuuid; if test "$enableval" = "no"
5284 if test -z "$PKG_CONFIG"; then
5285 as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5
5288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
5289 $as_echo_n "checking for uuid_generate in -luuid... " >&6; }
5290 if ${ac_cv_lib_uuid_uuid_generate+:} false; then :
5291 $as_echo_n "(cached) " >&6
5293 ac_check_lib_save_LIBS=$LIBS
5295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5296 /* end confdefs.h. */
5298 /* Override any GCC internal prototype to avoid an error.
5299 Use char because int might match the return type of a GCC
5300 builtin and then its argument prototype would still apply. */
5304 char uuid_generate ();
5308 return uuid_generate ();
5313 if ac_fn_c_try_link "$LINENO"; then :
5314 ac_cv_lib_uuid_uuid_generate=yes
5316 ac_cv_lib_uuid_uuid_generate=no
5318 rm -f core conftest.err conftest.$ac_objext \
5319 conftest$ac_exeext conftest.$ac_ext
5320 LIBS=$ac_check_lib_save_LIBS
5322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
5323 $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
5324 if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then :
5325 LIBUUID=`$PKG_CONFIG --libs uuid`;
5326 STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid`
5328 as_fn_error $? "external uuid library not found" "$LINENO" 5
5331 PROFILED_LIBUUID=$LIBUUID
5333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private uuid library" >&5
5334 $as_echo "Disabling private uuid library" >&6; }
5336 LIBUUID='$(LIB)/libuuid'$LIB_EXT
5338 STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
5339 DEPSTATIC_LIBUUID=$STATIC_LIBUUID
5340 PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
5341 DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
5342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library" >&5
5343 $as_echo "Enabling private uuid library" >&6; }
5347 if test -n "$PKG_CONFIG"; then
5348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
5349 $as_echo_n "checking for uuid_generate in -luuid... " >&6; }
5350 if ${ac_cv_lib_uuid_uuid_generate+:} false; then :
5351 $as_echo_n "(cached) " >&6
5353 ac_check_lib_save_LIBS=$LIBS
5355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5356 /* end confdefs.h. */
5358 /* Override any GCC internal prototype to avoid an error.
5359 Use char because int might match the return type of a GCC
5360 builtin and then its argument prototype would still apply. */
5364 char uuid_generate ();
5368 return uuid_generate ();
5373 if ac_fn_c_try_link "$LINENO"; then :
5374 ac_cv_lib_uuid_uuid_generate=yes
5376 ac_cv_lib_uuid_uuid_generate=no
5378 rm -f core conftest.err conftest.$ac_objext \
5379 conftest$ac_exeext conftest.$ac_ext
5380 LIBS=$ac_check_lib_save_LIBS
5382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
5383 $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
5384 if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then :
5385 LIBUUID=`$PKG_CONFIG --libs uuid`;
5386 STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid`
5390 if test -n "$LIBUUID"; then
5391 PROFILED_LIBUUID=$LIBUUID
5393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using system uuid by default" >&5
5394 $as_echo "Using system uuid by default" >&6; }
5396 LIBUUID='$(LIB)/libuuid'$LIB_EXT
5398 STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
5399 DEPSTATIC_LIBUUID=$STATIC_LIBUUID
5400 PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
5401 DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
5402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library by default" >&5
5403 $as_echo "Enabling private uuid library by default" >&6; }
5422 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5423 if test -n "$ac_tool_prefix"; then
5424 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5425 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5427 $as_echo_n "checking for $ac_word... " >&6; }
5428 if ${ac_cv_path_PKG_CONFIG+:} false; then :
5429 $as_echo_n "(cached) " >&6
5433 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5440 test -z "$as_dir" && as_dir=.
5441 for ac_exec_ext in '' $ac_executable_extensions; do
5442 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5443 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5454 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5455 if test -n "$PKG_CONFIG"; then
5456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5457 $as_echo "$PKG_CONFIG" >&6; }
5459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5460 $as_echo "no" >&6; }
5465 if test -z "$ac_cv_path_PKG_CONFIG"; then
5466 ac_pt_PKG_CONFIG=$PKG_CONFIG
5467 # Extract the first word of "pkg-config", so it can be a program name with args.
5468 set dummy pkg-config; ac_word=$2
5469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5470 $as_echo_n "checking for $ac_word... " >&6; }
5471 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
5472 $as_echo_n "(cached) " >&6
5474 case $ac_pt_PKG_CONFIG in
5476 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5483 test -z "$as_dir" && as_dir=.
5484 for ac_exec_ext in '' $ac_executable_extensions; do
5485 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5486 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5497 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5498 if test -n "$ac_pt_PKG_CONFIG"; then
5499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5500 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5503 $as_echo "no" >&6; }
5506 if test "x$ac_pt_PKG_CONFIG" = x; then
5509 case $cross_compiling:$ac_tool_warned in
5511 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5512 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5513 ac_tool_warned=yes ;;
5515 PKG_CONFIG=$ac_pt_PKG_CONFIG
5518 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5522 if test -n "$PKG_CONFIG"; then
5523 _pkg_min_version=0.9.0
5524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5525 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5526 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5528 $as_echo "yes" >&6; }
5530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5531 $as_echo "no" >&6; }
5540 DEPPROFILED_LIBBLKID=
5543 # Check whether --enable-libblkid was given.
5544 if test "${enable_libblkid+set}" = set; then :
5545 enableval=$enable_libblkid; if test "$enableval" = "no"
5547 if test -z "$PKG_CONFIG"; then
5548 as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5
5551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
5552 $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
5553 if ${ac_cv_lib_blkid_blkid_get_cache+:} false; then :
5554 $as_echo_n "(cached) " >&6
5556 ac_check_lib_save_LIBS=$LIBS
5557 LIBS="-lblkid -luuid $LIBS"
5558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5559 /* end confdefs.h. */
5561 /* Override any GCC internal prototype to avoid an error.
5562 Use char because int might match the return type of a GCC
5563 builtin and then its argument prototype would still apply. */
5567 char blkid_get_cache ();
5571 return blkid_get_cache ();
5576 if ac_fn_c_try_link "$LINENO"; then :
5577 ac_cv_lib_blkid_blkid_get_cache=yes
5579 ac_cv_lib_blkid_blkid_get_cache=no
5581 rm -f core conftest.err conftest.$ac_objext \
5582 conftest$ac_exeext conftest.$ac_ext
5583 LIBS=$ac_check_lib_save_LIBS
5585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
5586 $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
5587 if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes; then :
5588 LIBBLKID=`$PKG_CONFIG --libs blkid`;
5589 STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid`
5591 as_fn_error $? "external blkid library not found" "$LINENO" 5
5595 PROFILED_LIBBLKID=$LIBBLKID
5596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private blkid library" >&5
5597 $as_echo "Disabling private blkid library" >&6; }
5599 LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5600 DEPLIBBLKID=$LIBBLKID
5601 STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5602 DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5603 PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5604 DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
5605 $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
5607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library" >&5
5608 $as_echo "Enabling private blkid library" >&6; }
5612 if test -n "$PKG_CONFIG"; then
5613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
5614 $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
5615 if ${ac_cv_lib_blkid_blkid_get_cache+:} false; then :
5616 $as_echo_n "(cached) " >&6
5618 ac_check_lib_save_LIBS=$LIBS
5619 LIBS="-lblkid $LIBS"
5620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5621 /* end confdefs.h. */
5623 /* Override any GCC internal prototype to avoid an error.
5624 Use char because int might match the return type of a GCC
5625 builtin and then its argument prototype would still apply. */
5629 char blkid_get_cache ();
5633 return blkid_get_cache ();
5638 if ac_fn_c_try_link "$LINENO"; then :
5639 ac_cv_lib_blkid_blkid_get_cache=yes
5641 ac_cv_lib_blkid_blkid_get_cache=no
5643 rm -f core conftest.err conftest.$ac_objext \
5644 conftest$ac_exeext conftest.$ac_ext
5645 LIBS=$ac_check_lib_save_LIBS
5647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
5648 $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
5649 if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes; then :
5650 LIBBLKID=`$PKG_CONFIG --libs blkid`;
5651 STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid`
5655 if test -n "$LIBBLKID"; then
5657 PROFILED_LIBBLKID=$LIBBLKID
5658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using system blkid library by default" >&5
5659 $as_echo "Using system blkid library by default" >&6; }
5661 LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5662 DEPLIBBLKID=$LIBBLKID
5663 STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5664 DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5665 PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5666 DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
5667 $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
5669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library by default" >&5
5670 $as_echo "Enabling private blkid library by default" >&6; }
5683 # Check whether --enable-backtrace was given.
5684 if test "${enable_backtrace+set}" = set; then :
5685 enableval=$enable_backtrace; if test "$enableval" = "no"
5687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling use of backtrace" >&5
5688 $as_echo "Disabling use of backtrace" >&6; }
5689 $as_echo "#define DISABLE_BACKTRACE 1" >>confdefs.h
5692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace" >&5
5693 $as_echo "Enabling use of backtrace" >&6; }
5697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace by default" >&5
5698 $as_echo "Enabling use of backtrace by default" >&6; }
5702 # Check whether --enable-debugfs was given.
5703 if test "${enable_debugfs+set}" = set; then :
5704 enableval=$enable_debugfs; if test "$enableval" = "no"
5706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling debugfs support" >&5
5707 $as_echo "Disabling debugfs support" >&6; }
5711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support" >&5
5712 $as_echo "Enabling debugfs support" >&6; }
5716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support by default" >&5
5717 $as_echo "Enabling debugfs support by default" >&6; }
5723 # Check whether --enable-imager was given.
5724 if test "${enable_imager+set}" = set; then :
5725 enableval=$enable_imager; if test "$enableval" = "no"
5727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2image support" >&5
5728 $as_echo "Disabling e2image support" >&6; }
5732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support" >&5
5733 $as_echo "Enabling e2image support" >&6; }
5737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support by default" >&5
5738 $as_echo "Enabling e2image support by default" >&6; }
5744 # Check whether --enable-resizer was given.
5745 if test "${enable_resizer+set}" = set; then :
5746 enableval=$enable_resizer; if test "$enableval" = "no"
5748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2resize support" >&5
5749 $as_echo "Disabling e2resize support" >&6; }
5753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support" >&5
5754 $as_echo "Enabling e2resize support" >&6; }
5758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support by default" >&5
5759 $as_echo "Enabling e2resize support by default" >&6; }
5765 # Check whether --enable-defrag was given.
5766 if test "${enable_defrag+set}" = set; then :
5767 enableval=$enable_defrag; if test "$enableval" = "no"
5769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support" >&5
5770 $as_echo "Disabling e4defrag support" >&6; }
5774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support" >&5
5775 $as_echo "Enabling e4defrag support" >&6; }
5779 if test -z "$WITH_DIET_LIBC"
5781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support by default" >&5
5782 $as_echo "Enabling e4defrag support by default" >&6; }
5785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support by default" >&5
5786 $as_echo "Disabling e4defrag support by default" >&6; }
5793 # Check whether --enable-fsck was given.
5794 if test "${enable_fsck+set}" = set; then :
5795 enableval=$enable_fsck; if test "$enableval" = "no"
5797 FSCK_PROG='' FSCK_MAN=''
5798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper" >&5
5799 $as_echo "Not building fsck wrapper" >&6; }
5801 FSCK_PROG=fsck FSCK_MAN=fsck.8
5802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper" >&5
5803 $as_echo "Building fsck wrapper" >&6; }
5809 FSCK_PROG='' FSCK_MAN=''
5810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper by default" >&5
5811 $as_echo "Not building fsck wrapper by default" >&6; }
5814 FSCK_PROG=fsck FSCK_MAN=fsck.8
5815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper by default" >&5
5816 $as_echo "Building fsck wrapper by default" >&6; }
5823 # Check whether --enable-e2initrd-helper was given.
5824 if test "${enable_e2initrd_helper+set}" = set; then :
5825 enableval=$enable_e2initrd_helper; if test "$enableval" = "no"
5827 E2INITRD_PROG='' E2INITRD_MAN=''
5828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building e2initrd helper" >&5
5829 $as_echo "Not building e2initrd helper" >&6; }
5831 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
5832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper" >&5
5833 $as_echo "Building e2initrd helper" >&6; }
5837 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
5838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper by default" >&5
5839 $as_echo "Building e2initrd helper by default" >&6; }
5845 # Check whether --enable-tls was given.
5846 if test "${enable_tls+set}" = set; then :
5847 enableval=$enable_tls; if test "$enableval" = "no"
5850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling thread local support" >&5
5851 $as_echo "Disabling thread local support" >&6; }
5854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling thread local support" >&5
5855 $as_echo "Enabling thread local support" >&6; }
5859 if test -n "$WITH_DIET_LIBC"
5862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Diet libc does not support thread local support" >&5
5863 $as_echo "Diet libc does not support thread local support" >&6; }
5866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Try using thread local support by default" >&5
5867 $as_echo "Try using thread local support by default" >&6; }
5872 if test "$try_tls" = "yes"
5875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread local storage (TLS) class" >&5
5876 $as_echo_n "checking for thread local storage (TLS) class... " >&6; }
5877 if ${ac_cv_tls+:} false; then :
5878 $as_echo_n "(cached) " >&6
5881 ax_tls_keywords="__thread __declspec(thread) none"
5882 for ax_tls_keyword in $ax_tls_keywords; do
5883 case $ax_tls_keyword in
5884 none) ac_cv_tls=none ; break ;;
5886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5887 /* end confdefs.h. */
5891 static $ax_tls_keyword int bar;
5902 if ac_fn_c_try_compile "$LINENO"; then :
5903 ac_cv_tls=$ax_tls_keyword ; break
5908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5915 if test "$ac_cv_tls" != "none"; then
5917 cat >>confdefs.h <<_ACEOF
5918 #define TLS $ac_cv_tls
5922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tls" >&5
5923 $as_echo "$ac_cv_tls" >&6; }
5927 # Check whether --enable-uuidd was given.
5928 if test "${enable_uuidd+set}" = set; then :
5929 enableval=$enable_uuidd; if test "$enableval" = "no"
5931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building uuidd" >&5
5932 $as_echo "Not building uuidd" >&6; }
5935 $as_echo "#define USE_UUIDD 1" >>confdefs.h
5938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd" >&5
5939 $as_echo "Building uuidd" >&6; }
5943 $as_echo "#define USE_UUIDD 1" >>confdefs.h
5945 if test -z "$UUID_CMT"
5948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd by default" >&5
5949 $as_echo "Building uuidd by default" >&6; }
5952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling uuidd by default" >&5
5953 $as_echo "Disabling uuidd by default" >&6; }
5960 # Check whether --enable-mmp was given.
5961 if test "${enable_mmp+set}" = set; then :
5962 enableval=$enable_mmp; if test "$enableval" = "no"
5964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling mmp support" >&5
5965 $as_echo "Disabling mmp support" >&6; }
5967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support" >&5
5968 $as_echo "Enabling mmp support" >&6; }
5969 $as_echo "#define CONFIG_MMP 1" >>confdefs.h
5974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support by default" >&5
5975 $as_echo "Enabling mmp support by default" >&6; }
5976 $as_echo "#define CONFIG_MMP 1" >>confdefs.h
5982 # Check whether --enable-tdb was given.
5983 if test "${enable_tdb+set}" = set; then :
5984 enableval=$enable_tdb; if test "$enableval" = "no"
5986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling tdb support" >&5
5987 $as_echo "Disabling tdb support" >&6; }
5989 TDB_MAN_COMMENT='.\"'
5991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling tdb support" >&5
5992 $as_echo "Enabling tdb support" >&6; }
5993 $as_echo "#define CONFIG_TDB 1" >>confdefs.h
6000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support by default" >&5
6001 $as_echo "Enabling mmp support by default" >&6; }
6002 $as_echo "#define CONFIG_TDB 1" >>confdefs.h
6012 # Check whether --enable-bmap-stats was given.
6013 if test "${enable_bmap_stats+set}" = set; then :
6014 enableval=$enable_bmap_stats; if test "$enableval" = "no"
6016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling bitmap statistics support" >&5
6017 $as_echo "Disabling bitmap statistics support" >&6; }
6019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling bitmap statistics support" >&5
6020 $as_echo "Enabling bitmap statistics support" >&6; }
6021 $as_echo "#define ENABLE_BMAP_STATS 1" >>confdefs.h
6026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling bitmap statistics support by default" >&5
6027 $as_echo "Enabling bitmap statistics support by default" >&6; }
6028 $as_echo "#define ENABLE_BMAP_STATS 1" >>confdefs.h
6034 # Check whether --enable-bmap-stats-ops was given.
6035 if test "${enable_bmap_stats_ops+set}" = set; then :
6036 enableval=$enable_bmap_stats_ops; if test "$enableval" = "no"
6038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling additional bitmap statistics" >&5
6039 $as_echo "Disabling additional bitmap statistics" >&6; }
6041 if test "x${enable_bmap_stats}" = "xno"; then :
6042 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6043 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6044 as_fn_error $? "Error --enable-bmap-stats-ops requires bmap-stats
6045 See \`config.log' for more details" "$LINENO" 5; }
6048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling additional bitmap statistics" >&5
6049 $as_echo "Enabling additional bitmap statistics" >&6; }
6050 $as_echo "#define ENABLE_BMAP_STATS_OPS 1" >>confdefs.h
6055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling additional bitmap statistics by default" >&5
6056 $as_echo "Disabling additional bitmap statistics by default" >&6; }
6060 MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
6062 GETTEXT_PACKAGE=e2fsprogs
6064 VERSION="$E2FSPROGS_VERSION"
6067 cat >>confdefs.h <<_ACEOF
6068 #define PACKAGE "$PACKAGE"
6072 cat >>confdefs.h <<_ACEOF
6073 #define VERSION "$VERSION"
6080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6081 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6083 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6084 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
6085 $as_echo_n "(cached) " >&6
6087 cat >conftest.make <<\_ACEOF
6090 @echo '@@@%%%=$(MAKE)=@@@%%%'
6092 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
6093 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6095 eval ac_cv_prog_make_${ac_make}_set=yes;;
6097 eval ac_cv_prog_make_${ac_make}_set=no;;
6101 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6103 $as_echo "yes" >&6; }
6106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6107 $as_echo "no" >&6; }
6108 SET_MAKE="MAKE=${MAKE-make}"
6111 # Find a good install program. We prefer a C program (faster),
6112 # so one script is as good as another. But avoid the broken or
6113 # incompatible versions:
6114 # SysV /etc/install, /usr/sbin/install
6115 # SunOS /usr/etc/install
6116 # IRIX /sbin/install
6118 # AmigaOS /C/install, which installs bootblocks on floppy discs
6119 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6120 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6121 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6122 # OS/2's system install, which has a completely different semantic
6123 # ./install, which can be erroneously created by make from ./install.sh.
6124 # Reject install programs that cannot install multiple files.
6125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
6126 $as_echo_n "checking for a BSD-compatible install... " >&6; }
6127 if test -z "$INSTALL"; then
6128 if ${ac_cv_path_install+:} false; then :
6129 $as_echo_n "(cached) " >&6
6131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6135 test -z "$as_dir" && as_dir=.
6136 # Account for people who put trailing slashes in PATH elements.
6137 case $as_dir/ in #((
6138 ./ | .// | /[cC]/* | \
6139 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6140 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
6143 # OSF1 and SCO ODT 3.0 have their own names for install.
6144 # Don't use installbsd from OSF since it installs stuff as root
6146 for ac_prog in ginstall scoinst install; do
6147 for ac_exec_ext in '' $ac_executable_extensions; do
6148 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
6149 if test $ac_prog = install &&
6150 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6151 # AIX install. It has an incompatible calling convention.
6153 elif test $ac_prog = install &&
6154 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6155 # program-specific install script used by HP pwplus--don't use.
6158 rm -rf conftest.one conftest.two conftest.dir
6159 echo one > conftest.one
6160 echo two > conftest.two
6162 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
6163 test -s conftest.one && test -s conftest.two &&
6164 test -s conftest.dir/conftest.one &&
6165 test -s conftest.dir/conftest.two
6167 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6180 rm -rf conftest.one conftest.two conftest.dir
6183 if test "${ac_cv_path_install+set}" = set; then
6184 INSTALL=$ac_cv_path_install
6186 # As a last resort, use the slow shell script. Don't cache a
6187 # value for INSTALL within a source directory, because that will
6188 # break other packages using the cache if that directory is
6189 # removed, or if the value is a relative name.
6190 INSTALL=$ac_install_sh
6193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
6194 $as_echo "$INSTALL" >&6; }
6196 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6197 # It thinks the first close brace ends the variable substitution.
6198 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6200 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6202 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
6205 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
6206 if test -z "$MKDIR_P"; then
6207 if ${ac_cv_path_mkdir+:} false; then :
6208 $as_echo_n "(cached) " >&6
6210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6211 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
6214 test -z "$as_dir" && as_dir=.
6215 for ac_prog in mkdir gmkdir; do
6216 for ac_exec_ext in '' $ac_executable_extensions; do
6217 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
6218 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
6219 'mkdir (GNU coreutils) '* | \
6220 'mkdir (coreutils) '* | \
6221 'mkdir (fileutils) '4.1*)
6222 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
6232 test -d ./--version && rmdir ./--version
6233 if test "${ac_cv_path_mkdir+set}" = set; then
6234 MKDIR_P="$ac_cv_path_mkdir -p"
6236 # As a last resort, use the slow shell script. Don't cache a
6237 # value for MKDIR_P within a source directory, because that will
6238 # break other packages using the cache if that directory is
6239 # removed, or if the value is a relative name.
6240 MKDIR_P="$ac_install_sh -d"
6243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
6244 $as_echo "$MKDIR_P" >&6; }
6246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6247 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6248 if ${ac_cv_path_SED+:} false; then :
6249 $as_echo_n "(cached) " >&6
6251 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6252 for ac_i in 1 2 3 4 5 6 7; do
6253 ac_script="$ac_script$as_nl$ac_script"
6255 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6256 { ac_script=; unset ac_script;}
6257 if test -z "$SED"; then
6258 ac_path_SED_found=false
6259 # Loop through the user's path and test for each of PROGNAME-LIST
6260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6264 test -z "$as_dir" && as_dir=.
6265 for ac_prog in sed gsed; do
6266 for ac_exec_ext in '' $ac_executable_extensions; do
6267 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6268 as_fn_executable_p "$ac_path_SED" || continue
6269 # Check for GNU ac_path_SED and select it if it is found.
6270 # Check for GNU $ac_path_SED
6271 case `"$ac_path_SED" --version 2>&1` in
6273 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6276 $as_echo_n 0123456789 >"conftest.in"
6279 cat "conftest.in" "conftest.in" >"conftest.tmp"
6280 mv "conftest.tmp" "conftest.in"
6281 cp "conftest.in" "conftest.nl"
6282 $as_echo '' >> "conftest.nl"
6283 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6284 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6285 as_fn_arith $ac_count + 1 && ac_count=$as_val
6286 if test $ac_count -gt ${ac_path_SED_max-0}; then
6287 # Best one so far, save it but keep looking for a better one
6288 ac_cv_path_SED="$ac_path_SED"
6289 ac_path_SED_max=$ac_count
6291 # 10*(2^10) chars as input seems more than enough
6292 test $ac_count -gt 10 && break
6294 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6297 $ac_path_SED_found && break 3
6302 if test -z "$ac_cv_path_SED"; then
6303 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6311 $as_echo "$ac_cv_path_SED" >&6; }
6312 SED="$ac_cv_path_SED"
6316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
6317 $as_echo_n "checking whether NLS is requested... " >&6; }
6318 # Check whether --enable-nls was given.
6319 if test "${enable_nls+set}" = set; then :
6320 enableval=$enable_nls; USE_NLS=$enableval
6325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
6326 $as_echo "$USE_NLS" >&6; }
6331 GETTEXT_MACRO_VERSION=0.18
6336 # Prepare PATH_SEPARATOR.
6337 # The user is always right.
6338 if test "${PATH_SEPARATOR+set}" != set; then
6339 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
6340 # contains only /bin. Note that ksh looks also at the FPATH variable,
6341 # so we have to set that as well for the test.
6343 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6344 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6345 || PATH_SEPARATOR=';'
6349 # Find out how to test for executable files. Don't use a zero-byte file,
6350 # as systems may use methods other than mode bits to determine executability.
6351 cat >conf$$.file <<_ASEOF
6355 chmod +x conf$$.file
6356 if test -x conf$$.file >/dev/null 2>&1; then
6357 ac_executable_p="test -x"
6359 ac_executable_p="test -f"
6363 # Extract the first word of "msgfmt", so it can be a program name with args.
6364 set dummy msgfmt; ac_word=$2
6365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6366 $as_echo_n "checking for $ac_word... " >&6; }
6367 if ${ac_cv_path_MSGFMT+:} false; then :
6368 $as_echo_n "(cached) " >&6
6372 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
6375 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6376 for ac_dir in $PATH; do
6378 test -z "$ac_dir" && ac_dir=.
6379 for ac_exec_ext in '' $ac_executable_extensions; do
6380 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6381 echo "$as_me: trying $ac_dir/$ac_word..." >&5
6382 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
6383 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6384 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
6391 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
6395 MSGFMT="$ac_cv_path_MSGFMT"
6396 if test "$MSGFMT" != ":"; then
6397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
6398 $as_echo "$MSGFMT" >&6; }
6400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6401 $as_echo "no" >&6; }
6404 # Extract the first word of "gmsgfmt", so it can be a program name with args.
6405 set dummy gmsgfmt; ac_word=$2
6406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6407 $as_echo_n "checking for $ac_word... " >&6; }
6408 if ${ac_cv_path_GMSGFMT+:} false; then :
6409 $as_echo_n "(cached) " >&6
6413 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
6416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6420 test -z "$as_dir" && as_dir=.
6421 for ac_exec_ext in '' $ac_executable_extensions; do
6422 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6423 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
6424 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6431 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
6435 GMSGFMT=$ac_cv_path_GMSGFMT
6436 if test -n "$GMSGFMT"; then
6437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
6438 $as_echo "$GMSGFMT" >&6; }
6440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6441 $as_echo "no" >&6; }
6446 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6447 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
6448 *) MSGFMT_015=$MSGFMT ;;
6451 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6452 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
6453 *) GMSGFMT_015=$GMSGFMT ;;
6458 # Prepare PATH_SEPARATOR.
6459 # The user is always right.
6460 if test "${PATH_SEPARATOR+set}" != set; then
6461 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
6462 # contains only /bin. Note that ksh looks also at the FPATH variable,
6463 # so we have to set that as well for the test.
6465 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6466 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6467 || PATH_SEPARATOR=';'
6471 # Find out how to test for executable files. Don't use a zero-byte file,
6472 # as systems may use methods other than mode bits to determine executability.
6473 cat >conf$$.file <<_ASEOF
6477 chmod +x conf$$.file
6478 if test -x conf$$.file >/dev/null 2>&1; then
6479 ac_executable_p="test -x"
6481 ac_executable_p="test -f"
6485 # Extract the first word of "xgettext", so it can be a program name with args.
6486 set dummy xgettext; ac_word=$2
6487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6488 $as_echo_n "checking for $ac_word... " >&6; }
6489 if ${ac_cv_path_XGETTEXT+:} false; then :
6490 $as_echo_n "(cached) " >&6
6494 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
6497 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6498 for ac_dir in $PATH; do
6500 test -z "$ac_dir" && ac_dir=.
6501 for ac_exec_ext in '' $ac_executable_extensions; do
6502 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6503 echo "$as_me: trying $ac_dir/$ac_word..." >&5
6504 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
6505 (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
6506 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
6513 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
6517 XGETTEXT="$ac_cv_path_XGETTEXT"
6518 if test "$XGETTEXT" != ":"; then
6519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
6520 $as_echo "$XGETTEXT" >&6; }
6522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6523 $as_echo "no" >&6; }
6528 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6529 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
6530 *) XGETTEXT_015=$XGETTEXT ;;
6535 # Prepare PATH_SEPARATOR.
6536 # The user is always right.
6537 if test "${PATH_SEPARATOR+set}" != set; then
6538 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
6539 # contains only /bin. Note that ksh looks also at the FPATH variable,
6540 # so we have to set that as well for the test.
6542 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6543 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6544 || PATH_SEPARATOR=';'
6548 # Find out how to test for executable files. Don't use a zero-byte file,
6549 # as systems may use methods other than mode bits to determine executability.
6550 cat >conf$$.file <<_ASEOF
6554 chmod +x conf$$.file
6555 if test -x conf$$.file >/dev/null 2>&1; then
6556 ac_executable_p="test -x"
6558 ac_executable_p="test -f"
6562 # Extract the first word of "msgmerge", so it can be a program name with args.
6563 set dummy msgmerge; ac_word=$2
6564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6565 $as_echo_n "checking for $ac_word... " >&6; }
6566 if ${ac_cv_path_MSGMERGE+:} false; then :
6567 $as_echo_n "(cached) " >&6
6571 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
6574 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6575 for ac_dir in $PATH; do
6577 test -z "$ac_dir" && ac_dir=.
6578 for ac_exec_ext in '' $ac_executable_extensions; do
6579 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6580 echo "$as_me: trying $ac_dir/$ac_word..." >&5
6581 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
6582 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
6589 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
6593 MSGMERGE="$ac_cv_path_MSGMERGE"
6594 if test "$MSGMERGE" != ":"; then
6595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
6596 $as_echo "$MSGMERGE" >&6; }
6598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6599 $as_echo "no" >&6; }
6603 test -n "$localedir" || localedir='${datadir}/locale'
6606 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
6609 ac_config_commands="$ac_config_commands po-directories"
6613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2 or newer" >&5
6614 $as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; }
6615 if ${ac_cv_gnu_library_2+:} false; then :
6616 $as_echo_n "(cached) " >&6
6618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6619 /* end confdefs.h. */
6621 #include <features.h>
6622 #ifdef __GNU_LIBRARY__
6623 #if (__GLIBC__ >= 2) && !defined __UCLIBC__
6629 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6630 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
6631 ac_cv_gnu_library_2=yes
6633 ac_cv_gnu_library_2=no
6640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2" >&5
6641 $as_echo "$ac_cv_gnu_library_2" >&6; }
6643 GLIBC2="$ac_cv_gnu_library_2"
6646 if test -n "$ac_tool_prefix"; then
6647 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6648 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6650 $as_echo_n "checking for $ac_word... " >&6; }
6651 if ${ac_cv_prog_RANLIB+:} false; then :
6652 $as_echo_n "(cached) " >&6
6654 if test -n "$RANLIB"; then
6655 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6661 test -z "$as_dir" && as_dir=.
6662 for ac_exec_ext in '' $ac_executable_extensions; do
6663 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6664 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6674 RANLIB=$ac_cv_prog_RANLIB
6675 if test -n "$RANLIB"; then
6676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6677 $as_echo "$RANLIB" >&6; }
6679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6680 $as_echo "no" >&6; }
6685 if test -z "$ac_cv_prog_RANLIB"; then
6686 ac_ct_RANLIB=$RANLIB
6687 # Extract the first word of "ranlib", so it can be a program name with args.
6688 set dummy ranlib; ac_word=$2
6689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6690 $as_echo_n "checking for $ac_word... " >&6; }
6691 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6692 $as_echo_n "(cached) " >&6
6694 if test -n "$ac_ct_RANLIB"; then
6695 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6701 test -z "$as_dir" && as_dir=.
6702 for ac_exec_ext in '' $ac_executable_extensions; do
6703 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6704 ac_cv_prog_ac_ct_RANLIB="ranlib"
6705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6714 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6715 if test -n "$ac_ct_RANLIB"; then
6716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6717 $as_echo "$ac_ct_RANLIB" >&6; }
6719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6720 $as_echo "no" >&6; }
6723 if test "x$ac_ct_RANLIB" = x; then
6726 case $cross_compiling:$ac_tool_warned in
6728 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6729 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6730 ac_tool_warned=yes ;;
6732 RANLIB=$ac_ct_RANLIB
6735 RANLIB="$ac_cv_prog_RANLIB"
6742 if test -n "$GCC"; then
6743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the -Werror option is usable" >&5
6744 $as_echo_n "checking whether the -Werror option is usable... " >&6; }
6745 if ${gl_cv_cc_vis_werror+:} false; then :
6746 $as_echo_n "(cached) " >&6
6749 gl_save_CFLAGS="$CFLAGS"
6750 CFLAGS="$CFLAGS -Werror"
6751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6752 /* end confdefs.h. */
6762 if ac_fn_c_try_compile "$LINENO"; then :
6763 gl_cv_cc_vis_werror=yes
6765 gl_cv_cc_vis_werror=no
6767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6768 CFLAGS="$gl_save_CFLAGS"
6771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_vis_werror" >&5
6772 $as_echo "$gl_cv_cc_vis_werror" >&6; }
6773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5
6774 $as_echo_n "checking for simple visibility declarations... " >&6; }
6775 if ${gl_cv_cc_visibility+:} false; then :
6776 $as_echo_n "(cached) " >&6
6779 gl_save_CFLAGS="$CFLAGS"
6780 CFLAGS="$CFLAGS -fvisibility=hidden"
6781 if test $gl_cv_cc_vis_werror = yes; then
6782 CFLAGS="$CFLAGS -Werror"
6784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6785 /* end confdefs.h. */
6786 extern __attribute__((__visibility__("hidden"))) int hiddenvar;
6787 extern __attribute__((__visibility__("default"))) int exportedvar;
6788 extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
6789 extern __attribute__((__visibility__("default"))) int exportedfunc (void);
6790 void dummyfunc (void) {}
6800 if ac_fn_c_try_compile "$LINENO"; then :
6801 gl_cv_cc_visibility=yes
6803 gl_cv_cc_visibility=no
6805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6806 CFLAGS="$gl_save_CFLAGS"
6809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5
6810 $as_echo "$gl_cv_cc_visibility" >&6; }
6811 if test $gl_cv_cc_visibility = yes; then
6812 CFLAG_VISIBILITY="-fvisibility=hidden"
6819 cat >>confdefs.h <<_ACEOF
6820 #define HAVE_VISIBILITY $HAVE_VISIBILITY
6824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
6825 $as_echo_n "checking for inline... " >&6; }
6826 if ${ac_cv_c_inline+:} false; then :
6827 $as_echo_n "(cached) " >&6
6830 for ac_kw in inline __inline__ __inline; do
6831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6832 /* end confdefs.h. */
6835 static $ac_kw foo_t static_foo () {return 0; }
6836 $ac_kw foo_t foo () {return 0; }
6840 if ac_fn_c_try_compile "$LINENO"; then :
6841 ac_cv_c_inline=$ac_kw
6843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6844 test "$ac_cv_c_inline" != no && break
6848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
6849 $as_echo "$ac_cv_c_inline" >&6; }
6851 case $ac_cv_c_inline in
6854 case $ac_cv_c_inline in
6856 *) ac_val=$ac_cv_c_inline;;
6858 cat >>confdefs.h <<_ACEOF
6860 #define inline $ac_val
6866 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6867 if test "x$ac_cv_type_size_t" = xyes; then :
6871 cat >>confdefs.h <<_ACEOF
6872 #define size_t unsigned int
6878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
6879 $as_echo_n "checking for stdint.h... " >&6; }
6880 if ${gl_cv_header_stdint_h+:} false; then :
6881 $as_echo_n "(cached) " >&6
6883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6884 /* end confdefs.h. */
6885 #include <sys/types.h>
6890 uintmax_t i = (uintmax_t) -1; return !i;
6895 if ac_fn_c_try_compile "$LINENO"; then :
6896 gl_cv_header_stdint_h=yes
6898 gl_cv_header_stdint_h=no
6900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
6903 $as_echo "$gl_cv_header_stdint_h" >&6; }
6904 if test $gl_cv_header_stdint_h = yes; then
6906 cat >>confdefs.h <<_ACEOF
6907 #define HAVE_STDINT_H_WITH_UINTMAX 1
6912 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6913 # for constant arguments. Useless!
6914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
6915 $as_echo_n "checking for working alloca.h... " >&6; }
6916 if ${ac_cv_working_alloca_h+:} false; then :
6917 $as_echo_n "(cached) " >&6
6919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6920 /* end confdefs.h. */
6925 char *p = (char *) alloca (2 * sizeof (int));
6931 if ac_fn_c_try_link "$LINENO"; then :
6932 ac_cv_working_alloca_h=yes
6934 ac_cv_working_alloca_h=no
6936 rm -f core conftest.err conftest.$ac_objext \
6937 conftest$ac_exeext conftest.$ac_ext
6939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
6940 $as_echo "$ac_cv_working_alloca_h" >&6; }
6941 if test $ac_cv_working_alloca_h = yes; then
6943 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
6947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
6948 $as_echo_n "checking for alloca... " >&6; }
6949 if ${ac_cv_func_alloca_works+:} false; then :
6950 $as_echo_n "(cached) " >&6
6952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6953 /* end confdefs.h. */
6955 # define alloca __builtin_alloca
6958 # include <malloc.h>
6959 # define alloca _alloca
6961 # ifdef HAVE_ALLOCA_H
6962 # include <alloca.h>
6967 # ifndef alloca /* predefined by HP cc +Olibcalls */
6968 void *alloca (size_t);
6978 char *p = (char *) alloca (1);
6984 if ac_fn_c_try_link "$LINENO"; then :
6985 ac_cv_func_alloca_works=yes
6987 ac_cv_func_alloca_works=no
6989 rm -f core conftest.err conftest.$ac_objext \
6990 conftest$ac_exeext conftest.$ac_ext
6992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
6993 $as_echo "$ac_cv_func_alloca_works" >&6; }
6995 if test $ac_cv_func_alloca_works = yes; then
6997 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
7000 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
7001 # that cause trouble. Some versions do not even contain alloca or
7002 # contain a buggy version. If you still want to use their alloca,
7003 # use ar to extract alloca.o from them instead of compiling alloca.c.
7005 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
7007 $as_echo "#define C_ALLOCA 1" >>confdefs.h
7010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
7011 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
7012 if ${ac_cv_os_cray+:} false; then :
7013 $as_echo_n "(cached) " >&6
7015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7016 /* end confdefs.h. */
7017 #if defined CRAY && ! defined CRAY2
7024 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7025 $EGREP "webecray" >/dev/null 2>&1; then :
7033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
7034 $as_echo "$ac_cv_os_cray" >&6; }
7035 if test $ac_cv_os_cray = yes; then
7036 for ac_func in _getb67 GETB67 getb67; do
7037 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7038 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7039 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7041 cat >>confdefs.h <<_ACEOF
7042 #define CRAY_STACKSEG_END $ac_func
7051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
7052 $as_echo_n "checking stack direction for C alloca... " >&6; }
7053 if ${ac_cv_c_stack_direction+:} false; then :
7054 $as_echo_n "(cached) " >&6
7056 if test "$cross_compiling" = yes; then :
7057 ac_cv_c_stack_direction=0
7059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7060 /* end confdefs.h. */
7061 $ac_includes_default
7063 find_stack_direction (int *addr, int depth)
7068 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
7069 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
7074 main (int argc, char **argv)
7076 return find_stack_direction (0, argc + !argv + 20) < 0;
7079 if ac_fn_c_try_run "$LINENO"; then :
7080 ac_cv_c_stack_direction=1
7082 ac_cv_c_stack_direction=-1
7084 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7085 conftest.$ac_objext conftest.beam conftest.$ac_ext
7089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
7090 $as_echo "$ac_cv_c_stack_direction" >&6; }
7091 cat >>confdefs.h <<_ACEOF
7092 #define STACK_DIRECTION $ac_cv_c_stack_direction
7101 for ac_header in $ac_header_list
7103 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7104 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7106 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7107 cat >>confdefs.h <<_ACEOF
7108 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7122 for ac_func in getpagesize
7124 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
7125 if test "x$ac_cv_func_getpagesize" = xyes; then :
7126 cat >>confdefs.h <<_ACEOF
7127 #define HAVE_GETPAGESIZE 1
7133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
7134 $as_echo_n "checking for working mmap... " >&6; }
7135 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
7136 $as_echo_n "(cached) " >&6
7138 if test "$cross_compiling" = yes; then :
7139 ac_cv_func_mmap_fixed_mapped=no
7141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7142 /* end confdefs.h. */
7143 $ac_includes_default
7144 /* malloc might have been renamed as rpl_malloc. */
7147 /* Thanks to Mike Haertel and Jim Avera for this test.
7148 Here is a matrix of mmap possibilities:
7149 mmap private not fixed
7150 mmap private fixed at somewhere currently unmapped
7151 mmap private fixed at somewhere already mapped
7152 mmap shared not fixed
7153 mmap shared fixed at somewhere currently unmapped
7154 mmap shared fixed at somewhere already mapped
7155 For private mappings, we should verify that changes cannot be read()
7156 back from the file, nor mmap's back from the file at a different
7157 address. (There have been systems where private was not correctly
7158 implemented like the infamous i386 svr4.0, and systems where the
7159 VM page cache was not coherent with the file system buffer cache
7160 like early versions of FreeBSD and possibly contemporary NetBSD.)
7161 For shared mappings, we should conversely verify that changes get
7162 propagated back to all the places they're supposed to be.
7164 Grep wants private fixed already mapped.
7165 The main things grep needs to know about mmap are:
7166 * does it exist and is it safe to write into the mmap'd area
7167 * how to use it (BSD variants) */
7170 #include <sys/mman.h>
7172 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7176 /* This mess was copied from the GNU getpagesize.h. */
7177 #ifndef HAVE_GETPAGESIZE
7178 # ifdef _SC_PAGESIZE
7179 # define getpagesize() sysconf(_SC_PAGESIZE)
7180 # else /* no _SC_PAGESIZE */
7181 # ifdef HAVE_SYS_PARAM_H
7182 # include <sys/param.h>
7183 # ifdef EXEC_PAGESIZE
7184 # define getpagesize() EXEC_PAGESIZE
7185 # else /* no EXEC_PAGESIZE */
7187 # define getpagesize() NBPG * CLSIZE
7190 # endif /* no CLSIZE */
7191 # else /* no NBPG */
7193 # define getpagesize() NBPC
7194 # else /* no NBPC */
7196 # define getpagesize() PAGESIZE
7197 # endif /* PAGESIZE */
7198 # endif /* no NBPC */
7199 # endif /* no NBPG */
7200 # endif /* no EXEC_PAGESIZE */
7201 # else /* no HAVE_SYS_PARAM_H */
7202 # define getpagesize() 8192 /* punt totally */
7203 # endif /* no HAVE_SYS_PARAM_H */
7204 # endif /* no _SC_PAGESIZE */
7206 #endif /* no HAVE_GETPAGESIZE */
7211 char *data, *data2, *data3;
7216 pagesize = getpagesize ();
7218 /* First, make a file with some known garbage in it. */
7219 data = (char *) malloc (pagesize);
7222 for (i = 0; i < pagesize; ++i)
7223 *(data + i) = rand ();
7225 fd = creat ("conftest.mmap", 0600);
7228 if (write (fd, data, pagesize) != pagesize)
7232 /* Next, check that the tail of a page is zero-filled. File must have
7233 non-zero length, otherwise we risk SIGBUS for entire page. */
7234 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7238 if (write (fd2, cdata2, 1) != 1)
7240 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7241 if (data2 == MAP_FAILED)
7243 for (i = 0; i < pagesize; ++i)
7247 if (munmap (data2, pagesize))
7250 /* Next, try to mmap the file at a fixed address which already has
7251 something else allocated at it. If we can, also make sure that
7252 we see the same garbage. */
7253 fd = open ("conftest.mmap", O_RDWR);
7256 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7257 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7259 for (i = 0; i < pagesize; ++i)
7260 if (*(data + i) != *(data2 + i))
7263 /* Finally, make sure that changes to the mapped area do not
7264 percolate back to the file as seen by read(). (This is a bug on
7265 some variants of i386 svr4.0.) */
7266 for (i = 0; i < pagesize; ++i)
7267 *(data2 + i) = *(data2 + i) + 1;
7268 data3 = (char *) malloc (pagesize);
7271 if (read (fd, data3, pagesize) != pagesize)
7273 for (i = 0; i < pagesize; ++i)
7274 if (*(data + i) != *(data3 + i))
7282 if ac_fn_c_try_run "$LINENO"; then :
7283 ac_cv_func_mmap_fixed_mapped=yes
7285 ac_cv_func_mmap_fixed_mapped=no
7287 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7288 conftest.$ac_objext conftest.beam conftest.$ac_ext
7292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
7293 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
7294 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7296 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
7299 rm -f conftest.mmap conftest.txt
7303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
7304 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
7305 if ${gt_cv_int_divbyzero_sigfpe+:} false; then :
7306 $as_echo_n "(cached) " >&6
7309 gt_cv_int_divbyzero_sigfpe=
7311 macos* | darwin[6-9]* | darwin[1-9][0-9]*)
7312 # On Mac OS X 10.2 or newer, just assume the same as when cross-
7313 # compiling. If we were to perform the real test, 1 Crash Report
7314 # dialog window would pop up.
7316 i[34567]86 | x86_64)
7317 gt_cv_int_divbyzero_sigfpe="guessing yes" ;;
7321 if test -z "$gt_cv_int_divbyzero_sigfpe"; then
7322 if test "$cross_compiling" = yes; then :
7324 # Guess based on the CPU.
7326 alpha* | i[34567]86 | x86_64 | m68k | s390*)
7327 gt_cv_int_divbyzero_sigfpe="guessing yes";;
7329 gt_cv_int_divbyzero_sigfpe="guessing no";;
7333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7334 /* end confdefs.h. */
7340 sigfpe_handler (int sig)
7342 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
7343 exit (sig != SIGFPE);
7353 signal (SIGFPE, sigfpe_handler);
7354 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
7355 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
7356 signal (SIGTRAP, sigfpe_handler);
7358 /* Linux/SPARC yields signal SIGILL. */
7359 #if defined (__sparc__) && defined (__linux__)
7360 signal (SIGILL, sigfpe_handler);
7369 if ac_fn_c_try_run "$LINENO"; then :
7370 gt_cv_int_divbyzero_sigfpe=yes
7372 gt_cv_int_divbyzero_sigfpe=no
7374 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7375 conftest.$ac_objext conftest.beam conftest.$ac_ext
7381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
7382 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
7383 case "$gt_cv_int_divbyzero_sigfpe" in
7388 cat >>confdefs.h <<_ACEOF
7389 #define INTDIV0_RAISES_SIGFPE $value
7394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
7395 $as_echo_n "checking for inttypes.h... " >&6; }
7396 if ${gl_cv_header_inttypes_h+:} false; then :
7397 $as_echo_n "(cached) " >&6
7399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7400 /* end confdefs.h. */
7402 #include <sys/types.h>
7403 #include <inttypes.h>
7408 uintmax_t i = (uintmax_t) -1; return !i;
7413 if ac_fn_c_try_compile "$LINENO"; then :
7414 gl_cv_header_inttypes_h=yes
7416 gl_cv_header_inttypes_h=no
7418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
7421 $as_echo "$gl_cv_header_inttypes_h" >&6; }
7422 if test $gl_cv_header_inttypes_h = yes; then
7424 cat >>confdefs.h <<_ACEOF
7425 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
7431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
7432 $as_echo_n "checking for unsigned long long int... " >&6; }
7433 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
7434 $as_echo_n "(cached) " >&6
7436 ac_cv_type_unsigned_long_long_int=yes
7437 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
7438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7439 /* end confdefs.h. */
7441 /* For now, do not test the preprocessor; as of 2007 there are too many
7442 implementations with broken preprocessors. Perhaps this can
7443 be revisited in 2012. In the meantime, code should not expect
7444 #if to work with literals wider than 32 bits. */
7445 /* Test literals. */
7446 long long int ll = 9223372036854775807ll;
7447 long long int nll = -9223372036854775807LL;
7448 unsigned long long int ull = 18446744073709551615ULL;
7449 /* Test constant expressions. */
7450 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
7452 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
7458 /* Test availability of runtime routines for shift and division. */
7459 long long int llmax = 9223372036854775807ll;
7460 unsigned long long int ullmax = 18446744073709551615ull;
7461 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
7462 | (llmax / ll) | (llmax % ll)
7463 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
7464 | (ullmax / ull) | (ullmax % ull));
7470 if ac_fn_c_try_link "$LINENO"; then :
7473 ac_cv_type_unsigned_long_long_int=no
7475 rm -f core conftest.err conftest.$ac_objext \
7476 conftest$ac_exeext conftest.$ac_ext
7479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
7480 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
7481 if test $ac_cv_type_unsigned_long_long_int = yes; then
7483 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
7490 if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
7492 test $ac_cv_type_unsigned_long_long_int = yes \
7493 && ac_type='unsigned long long' \
7494 || ac_type='unsigned long'
7496 cat >>confdefs.h <<_ACEOF
7497 #define uintmax_t $ac_type
7502 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
7507 for ac_header in inttypes.h
7509 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
7510 if test "x$ac_cv_header_inttypes_h" = xyes; then :
7511 cat >>confdefs.h <<_ACEOF
7512 #define HAVE_INTTYPES_H 1
7519 if test $ac_cv_header_inttypes_h = yes; then
7520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
7521 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
7522 if ${gt_cv_inttypes_pri_broken+:} false; then :
7523 $as_echo_n "(cached) " >&6
7526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7527 /* end confdefs.h. */
7529 #include <inttypes.h>
7542 if ac_fn_c_try_compile "$LINENO"; then :
7543 gt_cv_inttypes_pri_broken=no
7545 gt_cv_inttypes_pri_broken=yes
7547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
7551 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
7553 if test "$gt_cv_inttypes_pri_broken" = yes; then
7555 cat >>confdefs.h <<_ACEOF
7556 #define PRI_MACROS_BROKEN 1
7570 # Check whether --enable-threads was given.
7571 if test "${enable_threads+set}" = set; then :
7572 enableval=$enable_threads; gl_use_threads=$enableval
7574 if test -n "$gl_use_threads_default"; then
7575 gl_use_threads="$gl_use_threads_default"
7578 osf*) gl_use_threads=no ;;
7581 1.[0-5].*) gl_use_threads=no ;;
7582 *) gl_use_threads=yes ;;
7585 *) gl_use_threads=yes ;;
7591 if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
7592 # For using <pthread.h>:
7595 # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
7596 # groks <pthread.h>. cc also understands the flag -pthread, but
7597 # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
7598 # 2. putting a flag into CPPFLAGS that has an effect on the linker
7599 # causes the AC_LINK_IFELSE test below to succeed unexpectedly,
7600 # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
7601 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
7604 # Some systems optimize for single-threaded programs by default, and
7605 # need special flags to disable these optimizations. For example, the
7606 # definition of 'errno' in <errno.h>.
7608 aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;;
7609 solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;;
7617 if test "X$prefix" = "XNONE"; then
7618 acl_final_prefix="$ac_default_prefix"
7620 acl_final_prefix="$prefix"
7622 if test "X$exec_prefix" = "XNONE"; then
7623 acl_final_exec_prefix='${prefix}'
7625 acl_final_exec_prefix="$exec_prefix"
7627 acl_save_prefix="$prefix"
7628 prefix="$acl_final_prefix"
7629 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7630 prefix="$acl_save_prefix"
7634 # Check whether --with-gnu-ld was given.
7635 if test "${with_gnu_ld+set}" = set; then :
7636 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7641 # Prepare PATH_SEPARATOR.
7642 # The user is always right.
7643 if test "${PATH_SEPARATOR+set}" != set; then
7644 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
7645 # contains only /bin. Note that ksh looks also at the FPATH variable,
7646 # so we have to set that as well for the test.
7648 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7649 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7650 || PATH_SEPARATOR=';'
7655 if test "$GCC" = yes; then
7656 # Check if gcc -print-prog-name=ld gives a path.
7657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7658 $as_echo_n "checking for ld used by $CC... " >&6; }
7661 # gcc leaves a trailing carriage return which upsets mingw
7662 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7664 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7667 # Accept absolute paths.
7669 re_direlt='/[^/][^/]*/\.\./'
7670 # Canonicalize the pathname of ld
7671 ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'`
7672 while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do
7673 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
7675 test -z "$LD" && LD="$ac_prog"
7678 # If it fails, then pretend we aren't using GCC.
7682 # If it is relative, then search for the first ld in PATH.
7686 elif test "$with_gnu_ld" = yes; then
7687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7688 $as_echo_n "checking for GNU ld... " >&6; }
7690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7691 $as_echo_n "checking for non-GNU ld... " >&6; }
7693 if ${acl_cv_path_LD+:} false; then :
7694 $as_echo_n "(cached) " >&6
7696 if test -z "$LD"; then
7697 acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7698 for ac_dir in $PATH; do
7700 test -z "$ac_dir" && ac_dir=.
7701 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7702 acl_cv_path_LD="$ac_dir/$ac_prog"
7703 # Check to see if the program is GNU ld. I'd rather use --version,
7704 # but apparently some variants of GNU ld only accept -v.
7705 # Break only if it was the GNU/non-GNU ld that we prefer.
7706 case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
7707 *GNU* | *'with BFD'*)
7708 test "$with_gnu_ld" != no && break
7711 test "$with_gnu_ld" != yes && break
7718 acl_cv_path_LD="$LD" # Let the user override the test with a path.
7722 LD="$acl_cv_path_LD"
7723 if test -n "$LD"; then
7724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7725 $as_echo "$LD" >&6; }
7727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7728 $as_echo "no" >&6; }
7730 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7732 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7733 if ${acl_cv_prog_gnu_ld+:} false; then :
7734 $as_echo_n "(cached) " >&6
7736 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7737 case `$LD -v 2>&1 </dev/null` in
7738 *GNU* | *'with BFD'*)
7739 acl_cv_prog_gnu_ld=yes
7742 acl_cv_prog_gnu_ld=no
7746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
7747 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
7748 with_gnu_ld=$acl_cv_prog_gnu_ld
7753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
7754 $as_echo_n "checking for shared library run path origin... " >&6; }
7755 if ${acl_cv_rpath+:} false; then :
7756 $as_echo_n "(cached) " >&6
7759 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
7760 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
7767 $as_echo "$acl_cv_rpath" >&6; }
7769 acl_libext="$acl_cv_libext"
7770 acl_shlibext="$acl_cv_shlibext"
7771 acl_libname_spec="$acl_cv_libname_spec"
7772 acl_library_names_spec="$acl_cv_library_names_spec"
7773 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
7774 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
7775 acl_hardcode_direct="$acl_cv_hardcode_direct"
7776 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
7777 # Check whether --enable-rpath was given.
7778 if test "${enable_rpath+set}" = set; then :
7779 enableval=$enable_rpath; :
7791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
7792 $as_echo_n "checking for 64-bit host... " >&6; }
7793 if ${gl_cv_solaris_64bit+:} false; then :
7794 $as_echo_n "(cached) " >&6
7796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7797 /* end confdefs.h. */
7804 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7805 $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
7806 gl_cv_solaris_64bit=yes
7808 gl_cv_solaris_64bit=no
7814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
7815 $as_echo "$gl_cv_solaris_64bit" >&6; }
7816 if test $gl_cv_solaris_64bit = yes; then
7817 acl_libdirstem=lib/64
7819 sparc*) acl_libdirstem2=lib/sparcv9 ;;
7820 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
7825 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
7826 if test -n "$searchpath"; then
7827 acl_save_IFS="${IFS= }"; IFS=":"
7828 for searchdir in $searchpath; do
7829 if test -d "$searchdir"; then
7830 case "$searchdir" in
7831 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
7833 # Better ignore directories of this form. They are misleading.
7835 *) searchdir=`cd "$searchdir" && pwd`
7836 case "$searchdir" in
7837 */lib64 ) acl_libdirstem=lib64 ;;
7846 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
7855 if test "$gl_use_threads" != no; then
7856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5
7857 $as_echo_n "checking whether imported symbols can be declared weak... " >&6; }
7858 if ${gl_cv_have_weak+:} false; then :
7859 $as_echo_n "(cached) " >&6
7862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7863 /* end confdefs.h. */
7864 extern void xyzzy ();
7874 if ac_fn_c_try_link "$LINENO"; then :
7875 gl_cv_have_weak=maybe
7877 rm -f core conftest.err conftest.$ac_objext \
7878 conftest$ac_exeext conftest.$ac_ext
7879 if test $gl_cv_have_weak = maybe; then
7880 if test "$cross_compiling" = yes; then :
7881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7882 /* end confdefs.h. */
7884 Extensible Linking Format
7888 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7889 $EGREP "Extensible Linking Format" >/dev/null 2>&1; then :
7890 gl_cv_have_weak="guessing yes"
7892 gl_cv_have_weak="guessing no"
7898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7899 /* end confdefs.h. */
7905 return (fputs == NULL);
7908 if ac_fn_c_try_run "$LINENO"; then :
7913 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7914 conftest.$ac_objext conftest.beam conftest.$ac_ext
7920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5
7921 $as_echo "$gl_cv_have_weak" >&6; }
7922 if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
7923 # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
7924 # it groks <pthread.h>. It's added above, in gl_THREADLIB_EARLY_BODY.
7925 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
7926 if test "x$ac_cv_header_pthread_h" = xyes; then :
7927 gl_have_pthread_h=yes
7929 gl_have_pthread_h=no
7933 if test "$gl_have_pthread_h" = yes; then
7934 # Other possible tests:
7935 # -lpthreads (FSU threads, PCthreads)
7938 # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
7939 # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
7940 # the second one only in libpthread, and lock.c needs it.
7941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7942 /* end confdefs.h. */
7943 #include <pthread.h>
7947 pthread_mutex_lock((pthread_mutex_t*)0);
7948 pthread_mutexattr_init((pthread_mutexattr_t*)0);
7953 if ac_fn_c_try_link "$LINENO"; then :
7956 rm -f core conftest.err conftest.$ac_objext \
7957 conftest$ac_exeext conftest.$ac_ext
7958 # Test for libpthread by looking for pthread_kill. (Not pthread_self,
7959 # since it is defined as a macro on OSF/1.)
7960 if test -n "$gl_have_pthread"; then
7961 # The program links fine without libpthread. But it may actually
7962 # need to link with libpthread in order to create multiple threads.
7963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
7964 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
7965 if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
7966 $as_echo_n "(cached) " >&6
7968 ac_check_lib_save_LIBS=$LIBS
7969 LIBS="-lpthread $LIBS"
7970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7971 /* end confdefs.h. */
7973 /* Override any GCC internal prototype to avoid an error.
7974 Use char because int might match the return type of a GCC
7975 builtin and then its argument prototype would still apply. */
7979 char pthread_kill ();
7983 return pthread_kill ();
7988 if ac_fn_c_try_link "$LINENO"; then :
7989 ac_cv_lib_pthread_pthread_kill=yes
7991 ac_cv_lib_pthread_pthread_kill=no
7993 rm -f core conftest.err conftest.$ac_objext \
7994 conftest$ac_exeext conftest.$ac_ext
7995 LIBS=$ac_check_lib_save_LIBS
7997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
7998 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
7999 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
8000 LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
8001 # On Solaris and HP-UX, most pthread functions exist also in libc.
8002 # Therefore pthread_in_use() needs to actually try to create a
8003 # thread: pthread_create from libc will fail, whereas
8004 # pthread_create will actually create a thread.
8008 $as_echo "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h
8015 # Some library is needed. Try libpthread and libc_r.
8016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
8017 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
8018 if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
8019 $as_echo_n "(cached) " >&6
8021 ac_check_lib_save_LIBS=$LIBS
8022 LIBS="-lpthread $LIBS"
8023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8024 /* end confdefs.h. */
8026 /* Override any GCC internal prototype to avoid an error.
8027 Use char because int might match the return type of a GCC
8028 builtin and then its argument prototype would still apply. */
8032 char pthread_kill ();
8036 return pthread_kill ();
8041 if ac_fn_c_try_link "$LINENO"; then :
8042 ac_cv_lib_pthread_pthread_kill=yes
8044 ac_cv_lib_pthread_pthread_kill=no
8046 rm -f core conftest.err conftest.$ac_objext \
8047 conftest$ac_exeext conftest.$ac_ext
8048 LIBS=$ac_check_lib_save_LIBS
8050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
8051 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
8052 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
8054 LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread
8055 LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
8058 if test -z "$gl_have_pthread"; then
8060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5
8061 $as_echo_n "checking for pthread_kill in -lc_r... " >&6; }
8062 if ${ac_cv_lib_c_r_pthread_kill+:} false; then :
8063 $as_echo_n "(cached) " >&6
8065 ac_check_lib_save_LIBS=$LIBS
8067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8068 /* end confdefs.h. */
8070 /* Override any GCC internal prototype to avoid an error.
8071 Use char because int might match the return type of a GCC
8072 builtin and then its argument prototype would still apply. */
8076 char pthread_kill ();
8080 return pthread_kill ();
8085 if ac_fn_c_try_link "$LINENO"; then :
8086 ac_cv_lib_c_r_pthread_kill=yes
8088 ac_cv_lib_c_r_pthread_kill=no
8090 rm -f core conftest.err conftest.$ac_objext \
8091 conftest$ac_exeext conftest.$ac_ext
8092 LIBS=$ac_check_lib_save_LIBS
8094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5
8095 $as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; }
8096 if test "x$ac_cv_lib_c_r_pthread_kill" = xyes; then :
8098 LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r
8099 LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r
8104 if test -n "$gl_have_pthread"; then
8105 gl_threads_api=posix
8107 $as_echo "#define USE_POSIX_THREADS 1" >>confdefs.h
8109 if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
8110 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
8112 $as_echo "#define USE_POSIX_THREADS_WEAK 1" >>confdefs.h
8121 if test -z "$gl_have_pthread"; then
8122 if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then
8123 gl_have_solaristhread=
8124 gl_save_LIBS="$LIBS"
8125 LIBS="$LIBS -lthread"
8126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8127 /* end confdefs.h. */
8140 if ac_fn_c_try_link "$LINENO"; then :
8141 gl_have_solaristhread=yes
8143 rm -f core conftest.err conftest.$ac_objext \
8144 conftest$ac_exeext conftest.$ac_ext
8145 LIBS="$gl_save_LIBS"
8146 if test -n "$gl_have_solaristhread"; then
8147 gl_threads_api=solaris
8149 LTLIBTHREAD=-lthread
8150 LIBMULTITHREAD="$LIBTHREAD"
8151 LTLIBMULTITHREAD="$LTLIBTHREAD"
8153 $as_echo "#define USE_SOLARIS_THREADS 1" >>confdefs.h
8155 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
8157 $as_echo "#define USE_SOLARIS_THREADS_WEAK 1" >>confdefs.h
8165 if test "$gl_use_threads" = pth; then
8166 gl_save_CPPFLAGS="$CPPFLAGS"
8172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libpth" >&5
8173 $as_echo_n "checking how to link with libpth... " >&6; }
8174 if ${ac_cv_libpth_libs+:} false; then :
8175 $as_echo_n "(cached) " >&6
8187 acl_save_prefix="$prefix"
8188 prefix="$acl_final_prefix"
8189 acl_save_exec_prefix="$exec_prefix"
8190 exec_prefix="$acl_final_exec_prefix"
8192 eval additional_includedir=\"$includedir\"
8193 eval additional_libdir=\"$libdir\"
8195 exec_prefix="$acl_save_exec_prefix"
8196 prefix="$acl_save_prefix"
8199 # Check whether --with-libpth-prefix was given.
8200 if test "${with_libpth_prefix+set}" = set; then :
8201 withval=$with_libpth_prefix;
8202 if test "X$withval" = "Xno"; then
8205 if test "X$withval" = "X"; then
8207 acl_save_prefix="$prefix"
8208 prefix="$acl_final_prefix"
8209 acl_save_exec_prefix="$exec_prefix"
8210 exec_prefix="$acl_final_exec_prefix"
8212 eval additional_includedir=\"$includedir\"
8213 eval additional_libdir=\"$libdir\"
8215 exec_prefix="$acl_save_exec_prefix"
8216 prefix="$acl_save_prefix"
8219 additional_includedir="$withval/include"
8220 additional_libdir="$withval/$acl_libdirstem"
8221 if test "$acl_libdirstem2" != "$acl_libdirstem" \
8222 && ! test -d "$withval/$acl_libdirstem"; then
8223 additional_libdir="$withval/$acl_libdirstem2"
8237 names_already_handled=
8238 names_next_round='pth '
8239 while test -n "$names_next_round"; do
8240 names_this_round="$names_next_round"
8242 for name in $names_this_round; do
8244 for n in $names_already_handled; do
8245 if test "$n" = "$name"; then
8250 if test -z "$already_handled"; then
8251 names_already_handled="$names_already_handled $name"
8252 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
8253 eval value=\"\$HAVE_LIB$uppername\"
8254 if test -n "$value"; then
8255 if test "$value" = yes; then
8256 eval value=\"\$LIB$uppername\"
8257 test -z "$value" || LIBPTH="${LIBPTH}${LIBPTH:+ }$value"
8258 eval value=\"\$LTLIB$uppername\"
8259 test -z "$value" || LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$value"
8268 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
8269 if test -n "$acl_shlibext"; then
8270 shrext=".$acl_shlibext" # typically: shrext=.so
8274 if test $use_additional = yes; then
8275 dir="$additional_libdir"
8276 if test -n "$acl_shlibext"; then
8277 if test -f "$dir/$libname$shrext"; then
8279 found_so="$dir/$libname$shrext"
8281 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8282 ver=`(cd "$dir" && \
8283 for f in "$libname$shrext".*; do echo "$f"; done \
8284 | sed -e "s,^$libname$shrext\\\\.,," \
8285 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8286 | sed 1q ) 2>/dev/null`
8287 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8289 found_so="$dir/$libname$shrext.$ver"
8292 eval library_names=\"$acl_library_names_spec\"
8293 for f in $library_names; do
8294 if test -f "$dir/$f"; then
8303 if test "X$found_dir" = "X"; then
8304 if test -f "$dir/$libname.$acl_libext"; then
8306 found_a="$dir/$libname.$acl_libext"
8309 if test "X$found_dir" != "X"; then
8310 if test -f "$dir/$libname.la"; then
8311 found_la="$dir/$libname.la"
8315 if test "X$found_dir" = "X"; then
8316 for x in $LDFLAGS $LTLIBPTH; do
8318 acl_save_prefix="$prefix"
8319 prefix="$acl_final_prefix"
8320 acl_save_exec_prefix="$exec_prefix"
8321 exec_prefix="$acl_final_exec_prefix"
8323 exec_prefix="$acl_save_exec_prefix"
8324 prefix="$acl_save_prefix"
8328 dir=`echo "X$x" | sed -e 's/^X-L//'`
8329 if test -n "$acl_shlibext"; then
8330 if test -f "$dir/$libname$shrext"; then
8332 found_so="$dir/$libname$shrext"
8334 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8335 ver=`(cd "$dir" && \
8336 for f in "$libname$shrext".*; do echo "$f"; done \
8337 | sed -e "s,^$libname$shrext\\\\.,," \
8338 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8339 | sed 1q ) 2>/dev/null`
8340 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8342 found_so="$dir/$libname$shrext.$ver"
8345 eval library_names=\"$acl_library_names_spec\"
8346 for f in $library_names; do
8347 if test -f "$dir/$f"; then
8356 if test "X$found_dir" = "X"; then
8357 if test -f "$dir/$libname.$acl_libext"; then
8359 found_a="$dir/$libname.$acl_libext"
8362 if test "X$found_dir" != "X"; then
8363 if test -f "$dir/$libname.la"; then
8364 found_la="$dir/$libname.la"
8369 if test "X$found_dir" != "X"; then
8374 if test "X$found_dir" != "X"; then
8375 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name"
8376 if test "X$found_so" != "X"; then
8377 if test "$enable_rpath" = no \
8378 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
8379 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
8380 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
8383 for x in $ltrpathdirs; do
8384 if test "X$x" = "X$found_dir"; then
8389 if test -z "$haveit"; then
8390 ltrpathdirs="$ltrpathdirs $found_dir"
8392 if test "$acl_hardcode_direct" = yes; then
8393 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
8395 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
8396 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
8398 for x in $rpathdirs; do
8399 if test "X$x" = "X$found_dir"; then
8404 if test -z "$haveit"; then
8405 rpathdirs="$rpathdirs $found_dir"
8409 for x in $LDFLAGS $LIBPTH; do
8411 acl_save_prefix="$prefix"
8412 prefix="$acl_final_prefix"
8413 acl_save_exec_prefix="$exec_prefix"
8414 exec_prefix="$acl_final_exec_prefix"
8416 exec_prefix="$acl_save_exec_prefix"
8417 prefix="$acl_save_prefix"
8419 if test "X$x" = "X-L$found_dir"; then
8424 if test -z "$haveit"; then
8425 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir"
8427 if test "$acl_hardcode_minus_L" != no; then
8428 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
8430 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
8436 if test "X$found_a" != "X"; then
8437 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_a"
8439 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name"
8442 additional_includedir=
8443 case "$found_dir" in
8444 */$acl_libdirstem | */$acl_libdirstem/)
8445 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
8446 if test "$name" = 'pth'; then
8447 LIBPTH_PREFIX="$basedir"
8449 additional_includedir="$basedir/include"
8451 */$acl_libdirstem2 | */$acl_libdirstem2/)
8452 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
8453 if test "$name" = 'pth'; then
8454 LIBPTH_PREFIX="$basedir"
8456 additional_includedir="$basedir/include"
8459 if test "X$additional_includedir" != "X"; then
8460 if test "X$additional_includedir" != "X/usr/include"; then
8462 if test "X$additional_includedir" = "X/usr/local/include"; then
8463 if test -n "$GCC"; then
8465 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
8469 if test -z "$haveit"; then
8470 for x in $CPPFLAGS $INCPTH; do
8472 acl_save_prefix="$prefix"
8473 prefix="$acl_final_prefix"
8474 acl_save_exec_prefix="$exec_prefix"
8475 exec_prefix="$acl_final_exec_prefix"
8477 exec_prefix="$acl_save_exec_prefix"
8478 prefix="$acl_save_prefix"
8480 if test "X$x" = "X-I$additional_includedir"; then
8485 if test -z "$haveit"; then
8486 if test -d "$additional_includedir"; then
8487 INCPTH="${INCPTH}${INCPTH:+ }-I$additional_includedir"
8493 if test -n "$found_la"; then
8494 save_libdir="$libdir"
8496 */* | *\\*) . "$found_la" ;;
8497 *) . "./$found_la" ;;
8499 libdir="$save_libdir"
8500 for dep in $dependency_libs; do
8503 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8504 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
8505 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
8507 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
8508 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
8509 if test -n "$GCC"; then
8511 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
8515 if test -z "$haveit"; then
8517 for x in $LDFLAGS $LIBPTH; do
8519 acl_save_prefix="$prefix"
8520 prefix="$acl_final_prefix"
8521 acl_save_exec_prefix="$exec_prefix"
8522 exec_prefix="$acl_final_exec_prefix"
8524 exec_prefix="$acl_save_exec_prefix"
8525 prefix="$acl_save_prefix"
8527 if test "X$x" = "X-L$additional_libdir"; then
8532 if test -z "$haveit"; then
8533 if test -d "$additional_libdir"; then
8534 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$additional_libdir"
8538 for x in $LDFLAGS $LTLIBPTH; do
8540 acl_save_prefix="$prefix"
8541 prefix="$acl_final_prefix"
8542 acl_save_exec_prefix="$exec_prefix"
8543 exec_prefix="$acl_final_exec_prefix"
8545 exec_prefix="$acl_save_exec_prefix"
8546 prefix="$acl_save_prefix"
8548 if test "X$x" = "X-L$additional_libdir"; then
8553 if test -z "$haveit"; then
8554 if test -d "$additional_libdir"; then
8555 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir"
8562 dir=`echo "X$dep" | sed -e 's/^X-R//'`
8563 if test "$enable_rpath" != no; then
8565 for x in $rpathdirs; do
8566 if test "X$x" = "X$dir"; then
8571 if test -z "$haveit"; then
8572 rpathdirs="$rpathdirs $dir"
8575 for x in $ltrpathdirs; do
8576 if test "X$x" = "X$dir"; then
8581 if test -z "$haveit"; then
8582 ltrpathdirs="$ltrpathdirs $dir"
8587 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8590 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8593 LIBPTH="${LIBPTH}${LIBPTH:+ }$dep"
8594 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$dep"
8600 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
8601 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-l$name"
8607 if test "X$rpathdirs" != "X"; then
8608 if test -n "$acl_hardcode_libdir_separator"; then
8610 for found_dir in $rpathdirs; do
8611 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
8613 acl_save_libdir="$libdir"
8615 eval flag=\"$acl_hardcode_libdir_flag_spec\"
8616 libdir="$acl_save_libdir"
8617 LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
8619 for found_dir in $rpathdirs; do
8620 acl_save_libdir="$libdir"
8622 eval flag=\"$acl_hardcode_libdir_flag_spec\"
8623 libdir="$acl_save_libdir"
8624 LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
8628 if test "X$ltrpathdirs" != "X"; then
8629 for found_dir in $ltrpathdirs; do
8630 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir"
8639 ac_cv_libpth_libs="$LIBPTH"
8640 ac_cv_libpth_ltlibs="$LTLIBPTH"
8641 ac_cv_libpth_cppflags="$INCPTH"
8642 ac_cv_libpth_prefix="$LIBPTH_PREFIX"
8645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libpth_libs" >&5
8646 $as_echo "$ac_cv_libpth_libs" >&6; }
8647 LIBPTH="$ac_cv_libpth_libs"
8648 LTLIBPTH="$ac_cv_libpth_ltlibs"
8649 INCPTH="$ac_cv_libpth_cppflags"
8650 LIBPTH_PREFIX="$ac_cv_libpth_prefix"
8652 for element in $INCPTH; do
8654 for x in $CPPFLAGS; do
8656 acl_save_prefix="$prefix"
8657 prefix="$acl_final_prefix"
8658 acl_save_exec_prefix="$exec_prefix"
8659 exec_prefix="$acl_final_exec_prefix"
8661 exec_prefix="$acl_save_exec_prefix"
8662 prefix="$acl_save_prefix"
8664 if test "X$x" = "X$element"; then
8669 if test -z "$haveit"; then
8670 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8682 gl_save_LIBS="$LIBS"
8683 LIBS="$LIBS $LIBPTH"
8684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8685 /* end confdefs.h. */
8695 if ac_fn_c_try_link "$LINENO"; then :
8698 rm -f core conftest.err conftest.$ac_objext \
8699 conftest$ac_exeext conftest.$ac_ext
8700 LIBS="$gl_save_LIBS"
8701 if test -n "$gl_have_pth"; then
8704 LTLIBTHREAD="$LTLIBPTH"
8705 LIBMULTITHREAD="$LIBTHREAD"
8706 LTLIBMULTITHREAD="$LTLIBTHREAD"
8708 $as_echo "#define USE_PTH_THREADS 1" >>confdefs.h
8710 if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
8711 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
8713 $as_echo "#define USE_PTH_THREADS_WEAK 1" >>confdefs.h
8720 CPPFLAGS="$gl_save_CPPFLAGS"
8723 if test -z "$gl_have_pthread"; then
8724 case "$gl_use_threads" in
8725 yes | windows | win32) # The 'win32' is for backward compatibility.
8726 if { case "$host_os" in
8731 gl_threads_api=windows
8733 $as_echo "#define USE_WINDOWS_THREADS 1" >>confdefs.h
8740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multithread API to use" >&5
8741 $as_echo_n "checking for multithread API to use... " >&6; }
8742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_threads_api" >&5
8743 $as_echo "$gl_threads_api" >&6; }
8755 if test "$gl_threads_api" = posix; then
8756 # OSF/1 4.0 and Mac OS X 10.1 lack the pthread_rwlock_t type and the
8757 # pthread_rwlock_* functions.
8758 ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h>
8760 if test "x$ac_cv_type_pthread_rwlock_t" = xyes; then :
8762 $as_echo "#define HAVE_PTHREAD_RWLOCK 1" >>confdefs.h
8766 # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
8767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8768 /* end confdefs.h. */
8770 #include <pthread.h>
8775 #if __FreeBSD__ == 4
8776 error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
8777 #elif (defined __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ \
8778 && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 1070)
8779 error "No, in Mac OS X < 10.7 recursive mutexes actually don't work."
8781 int x = (int)PTHREAD_MUTEX_RECURSIVE;
8789 if ac_fn_c_try_compile "$LINENO"; then :
8791 $as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h
8794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8811 acl_save_prefix="$prefix"
8812 prefix="$acl_final_prefix"
8813 acl_save_exec_prefix="$exec_prefix"
8814 exec_prefix="$acl_final_exec_prefix"
8816 eval additional_includedir=\"$includedir\"
8817 eval additional_libdir=\"$libdir\"
8819 exec_prefix="$acl_save_exec_prefix"
8820 prefix="$acl_save_prefix"
8823 # Check whether --with-libiconv-prefix was given.
8824 if test "${with_libiconv_prefix+set}" = set; then :
8825 withval=$with_libiconv_prefix;
8826 if test "X$withval" = "Xno"; then
8829 if test "X$withval" = "X"; then
8831 acl_save_prefix="$prefix"
8832 prefix="$acl_final_prefix"
8833 acl_save_exec_prefix="$exec_prefix"
8834 exec_prefix="$acl_final_exec_prefix"
8836 eval additional_includedir=\"$includedir\"
8837 eval additional_libdir=\"$libdir\"
8839 exec_prefix="$acl_save_exec_prefix"
8840 prefix="$acl_save_prefix"
8843 additional_includedir="$withval/include"
8844 additional_libdir="$withval/$acl_libdirstem"
8845 if test "$acl_libdirstem2" != "$acl_libdirstem" \
8846 && ! test -d "$withval/$acl_libdirstem"; then
8847 additional_libdir="$withval/$acl_libdirstem2"
8861 names_already_handled=
8862 names_next_round='iconv '
8863 while test -n "$names_next_round"; do
8864 names_this_round="$names_next_round"
8866 for name in $names_this_round; do
8868 for n in $names_already_handled; do
8869 if test "$n" = "$name"; then
8874 if test -z "$already_handled"; then
8875 names_already_handled="$names_already_handled $name"
8876 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
8877 eval value=\"\$HAVE_LIB$uppername\"
8878 if test -n "$value"; then
8879 if test "$value" = yes; then
8880 eval value=\"\$LIB$uppername\"
8881 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
8882 eval value=\"\$LTLIB$uppername\"
8883 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
8892 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
8893 if test -n "$acl_shlibext"; then
8894 shrext=".$acl_shlibext" # typically: shrext=.so
8898 if test $use_additional = yes; then
8899 dir="$additional_libdir"
8900 if test -n "$acl_shlibext"; then
8901 if test -f "$dir/$libname$shrext"; then
8903 found_so="$dir/$libname$shrext"
8905 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8906 ver=`(cd "$dir" && \
8907 for f in "$libname$shrext".*; do echo "$f"; done \
8908 | sed -e "s,^$libname$shrext\\\\.,," \
8909 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8910 | sed 1q ) 2>/dev/null`
8911 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8913 found_so="$dir/$libname$shrext.$ver"
8916 eval library_names=\"$acl_library_names_spec\"
8917 for f in $library_names; do
8918 if test -f "$dir/$f"; then
8927 if test "X$found_dir" = "X"; then
8928 if test -f "$dir/$libname.$acl_libext"; then
8930 found_a="$dir/$libname.$acl_libext"
8933 if test "X$found_dir" != "X"; then
8934 if test -f "$dir/$libname.la"; then
8935 found_la="$dir/$libname.la"
8939 if test "X$found_dir" = "X"; then
8940 for x in $LDFLAGS $LTLIBICONV; do
8942 acl_save_prefix="$prefix"
8943 prefix="$acl_final_prefix"
8944 acl_save_exec_prefix="$exec_prefix"
8945 exec_prefix="$acl_final_exec_prefix"
8947 exec_prefix="$acl_save_exec_prefix"
8948 prefix="$acl_save_prefix"
8952 dir=`echo "X$x" | sed -e 's/^X-L//'`
8953 if test -n "$acl_shlibext"; then
8954 if test -f "$dir/$libname$shrext"; then
8956 found_so="$dir/$libname$shrext"
8958 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8959 ver=`(cd "$dir" && \
8960 for f in "$libname$shrext".*; do echo "$f"; done \
8961 | sed -e "s,^$libname$shrext\\\\.,," \
8962 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8963 | sed 1q ) 2>/dev/null`
8964 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8966 found_so="$dir/$libname$shrext.$ver"
8969 eval library_names=\"$acl_library_names_spec\"
8970 for f in $library_names; do
8971 if test -f "$dir/$f"; then
8980 if test "X$found_dir" = "X"; then
8981 if test -f "$dir/$libname.$acl_libext"; then
8983 found_a="$dir/$libname.$acl_libext"
8986 if test "X$found_dir" != "X"; then
8987 if test -f "$dir/$libname.la"; then
8988 found_la="$dir/$libname.la"
8993 if test "X$found_dir" != "X"; then
8998 if test "X$found_dir" != "X"; then
8999 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9000 if test "X$found_so" != "X"; then
9001 if test "$enable_rpath" = no \
9002 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
9003 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
9004 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9007 for x in $ltrpathdirs; do
9008 if test "X$x" = "X$found_dir"; then
9013 if test -z "$haveit"; then
9014 ltrpathdirs="$ltrpathdirs $found_dir"
9016 if test "$acl_hardcode_direct" = yes; then
9017 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9019 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
9020 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9022 for x in $rpathdirs; do
9023 if test "X$x" = "X$found_dir"; then
9028 if test -z "$haveit"; then
9029 rpathdirs="$rpathdirs $found_dir"
9033 for x in $LDFLAGS $LIBICONV; do
9035 acl_save_prefix="$prefix"
9036 prefix="$acl_final_prefix"
9037 acl_save_exec_prefix="$exec_prefix"
9038 exec_prefix="$acl_final_exec_prefix"
9040 exec_prefix="$acl_save_exec_prefix"
9041 prefix="$acl_save_prefix"
9043 if test "X$x" = "X-L$found_dir"; then
9048 if test -z "$haveit"; then
9049 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9051 if test "$acl_hardcode_minus_L" != no; then
9052 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9054 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9060 if test "X$found_a" != "X"; then
9061 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
9063 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9066 additional_includedir=
9067 case "$found_dir" in
9068 */$acl_libdirstem | */$acl_libdirstem/)
9069 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
9070 if test "$name" = 'iconv'; then
9071 LIBICONV_PREFIX="$basedir"
9073 additional_includedir="$basedir/include"
9075 */$acl_libdirstem2 | */$acl_libdirstem2/)
9076 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
9077 if test "$name" = 'iconv'; then
9078 LIBICONV_PREFIX="$basedir"
9080 additional_includedir="$basedir/include"
9083 if test "X$additional_includedir" != "X"; then
9084 if test "X$additional_includedir" != "X/usr/include"; then
9086 if test "X$additional_includedir" = "X/usr/local/include"; then
9087 if test -n "$GCC"; then
9089 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
9093 if test -z "$haveit"; then
9094 for x in $CPPFLAGS $INCICONV; do
9096 acl_save_prefix="$prefix"
9097 prefix="$acl_final_prefix"
9098 acl_save_exec_prefix="$exec_prefix"
9099 exec_prefix="$acl_final_exec_prefix"
9101 exec_prefix="$acl_save_exec_prefix"
9102 prefix="$acl_save_prefix"
9104 if test "X$x" = "X-I$additional_includedir"; then
9109 if test -z "$haveit"; then
9110 if test -d "$additional_includedir"; then
9111 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9117 if test -n "$found_la"; then
9118 save_libdir="$libdir"
9120 */* | *\\*) . "$found_la" ;;
9121 *) . "./$found_la" ;;
9123 libdir="$save_libdir"
9124 for dep in $dependency_libs; do
9127 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9128 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
9129 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
9131 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
9132 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
9133 if test -n "$GCC"; then
9135 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
9139 if test -z "$haveit"; then
9141 for x in $LDFLAGS $LIBICONV; do
9143 acl_save_prefix="$prefix"
9144 prefix="$acl_final_prefix"
9145 acl_save_exec_prefix="$exec_prefix"
9146 exec_prefix="$acl_final_exec_prefix"
9148 exec_prefix="$acl_save_exec_prefix"
9149 prefix="$acl_save_prefix"
9151 if test "X$x" = "X-L$additional_libdir"; then
9156 if test -z "$haveit"; then
9157 if test -d "$additional_libdir"; then
9158 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9162 for x in $LDFLAGS $LTLIBICONV; do
9164 acl_save_prefix="$prefix"
9165 prefix="$acl_final_prefix"
9166 acl_save_exec_prefix="$exec_prefix"
9167 exec_prefix="$acl_final_exec_prefix"
9169 exec_prefix="$acl_save_exec_prefix"
9170 prefix="$acl_save_prefix"
9172 if test "X$x" = "X-L$additional_libdir"; then
9177 if test -z "$haveit"; then
9178 if test -d "$additional_libdir"; then
9179 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
9186 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9187 if test "$enable_rpath" != no; then
9189 for x in $rpathdirs; do
9190 if test "X$x" = "X$dir"; then
9195 if test -z "$haveit"; then
9196 rpathdirs="$rpathdirs $dir"
9199 for x in $ltrpathdirs; do
9200 if test "X$x" = "X$dir"; then
9205 if test -z "$haveit"; then
9206 ltrpathdirs="$ltrpathdirs $dir"
9211 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9214 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9217 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
9218 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
9224 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9225 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
9231 if test "X$rpathdirs" != "X"; then
9232 if test -n "$acl_hardcode_libdir_separator"; then
9234 for found_dir in $rpathdirs; do
9235 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
9237 acl_save_libdir="$libdir"
9239 eval flag=\"$acl_hardcode_libdir_flag_spec\"
9240 libdir="$acl_save_libdir"
9241 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9243 for found_dir in $rpathdirs; do
9244 acl_save_libdir="$libdir"
9246 eval flag=\"$acl_hardcode_libdir_flag_spec\"
9247 libdir="$acl_save_libdir"
9248 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9252 if test "X$ltrpathdirs" != "X"; then
9253 for found_dir in $ltrpathdirs; do
9254 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
9269 am_save_CPPFLAGS="$CPPFLAGS"
9271 for element in $INCICONV; do
9273 for x in $CPPFLAGS; do
9275 acl_save_prefix="$prefix"
9276 prefix="$acl_final_prefix"
9277 acl_save_exec_prefix="$exec_prefix"
9278 exec_prefix="$acl_final_exec_prefix"
9280 exec_prefix="$acl_save_exec_prefix"
9281 prefix="$acl_save_prefix"
9283 if test "X$x" = "X$element"; then
9288 if test -z "$haveit"; then
9289 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
9295 $as_echo_n "checking for iconv... " >&6; }
9296 if ${am_cv_func_iconv+:} false; then :
9297 $as_echo_n "(cached) " >&6
9300 am_cv_func_iconv="no, consider installing GNU libiconv"
9302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9303 /* end confdefs.h. */
9311 iconv_t cd = iconv_open("","");
9312 iconv(cd,NULL,NULL,NULL,NULL);
9318 if ac_fn_c_try_link "$LINENO"; then :
9319 am_cv_func_iconv=yes
9321 rm -f core conftest.err conftest.$ac_objext \
9322 conftest$ac_exeext conftest.$ac_ext
9323 if test "$am_cv_func_iconv" != yes; then
9324 am_save_LIBS="$LIBS"
9325 LIBS="$LIBS $LIBICONV"
9326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9327 /* end confdefs.h. */
9335 iconv_t cd = iconv_open("","");
9336 iconv(cd,NULL,NULL,NULL,NULL);
9342 if ac_fn_c_try_link "$LINENO"; then :
9344 am_cv_func_iconv=yes
9346 rm -f core conftest.err conftest.$ac_objext \
9347 conftest$ac_exeext conftest.$ac_ext
9348 LIBS="$am_save_LIBS"
9352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
9353 $as_echo "$am_cv_func_iconv" >&6; }
9354 if test "$am_cv_func_iconv" = yes; then
9355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
9356 $as_echo_n "checking for working iconv... " >&6; }
9357 if ${am_cv_func_iconv_works+:} false; then :
9358 $as_echo_n "(cached) " >&6
9361 am_save_LIBS="$LIBS"
9362 if test $am_cv_lib_iconv = yes; then
9363 LIBS="$LIBS $LIBICONV"
9365 if test "$cross_compiling" = yes; then :
9368 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
9369 *) am_cv_func_iconv_works="guessing yes" ;;
9373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9374 /* end confdefs.h. */
9381 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
9384 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
9385 if (cd_utf8_to_88591 != (iconv_t)(-1))
9387 static const char input[] = "\342\202\254"; /* EURO SIGN */
9389 const char *inptr = input;
9390 size_t inbytesleft = strlen (input);
9392 size_t outbytesleft = sizeof (buf);
9393 size_t res = iconv (cd_utf8_to_88591,
9394 (char **) &inptr, &inbytesleft,
9395 &outptr, &outbytesleft);
9398 iconv_close (cd_utf8_to_88591);
9401 /* Test against Solaris 10 bug: Failures are not distinguishable from
9402 successful returns. */
9404 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
9405 if (cd_ascii_to_88591 != (iconv_t)(-1))
9407 static const char input[] = "\263";
9409 const char *inptr = input;
9410 size_t inbytesleft = strlen (input);
9412 size_t outbytesleft = sizeof (buf);
9413 size_t res = iconv (cd_ascii_to_88591,
9414 (char **) &inptr, &inbytesleft,
9415 &outptr, &outbytesleft);
9418 iconv_close (cd_ascii_to_88591);
9421 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
9423 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
9424 if (cd_88591_to_utf8 != (iconv_t)(-1))
9426 static const char input[] = "\304";
9427 static char buf[2] = { (char)0xDE, (char)0xAD };
9428 const char *inptr = input;
9429 size_t inbytesleft = 1;
9431 size_t outbytesleft = 1;
9432 size_t res = iconv (cd_88591_to_utf8,
9433 (char **) &inptr, &inbytesleft,
9434 &outptr, &outbytesleft);
9435 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
9437 iconv_close (cd_88591_to_utf8);
9440 #if 0 /* This bug could be worked around by the caller. */
9441 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
9443 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
9444 if (cd_88591_to_utf8 != (iconv_t)(-1))
9446 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
9448 const char *inptr = input;
9449 size_t inbytesleft = strlen (input);
9451 size_t outbytesleft = sizeof (buf);
9452 size_t res = iconv (cd_88591_to_utf8,
9453 (char **) &inptr, &inbytesleft,
9454 &outptr, &outbytesleft);
9457 iconv_close (cd_88591_to_utf8);
9461 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
9463 if (/* Try standardized names. */
9464 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
9465 /* Try IRIX, OSF/1 names. */
9466 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
9467 /* Try AIX names. */
9468 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
9469 /* Try HP-UX names. */
9470 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
9475 if ac_fn_c_try_run "$LINENO"; then :
9476 am_cv_func_iconv_works=yes
9478 am_cv_func_iconv_works=no
9480 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9481 conftest.$ac_objext conftest.beam conftest.$ac_ext
9484 LIBS="$am_save_LIBS"
9487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
9488 $as_echo "$am_cv_func_iconv_works" >&6; }
9489 case "$am_cv_func_iconv_works" in
9490 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
9491 *) am_func_iconv=yes ;;
9494 am_func_iconv=no am_cv_lib_iconv=no
9496 if test "$am_func_iconv" = yes; then
9498 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
9501 if test "$am_cv_lib_iconv" = yes; then
9502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
9503 $as_echo_n "checking how to link with libiconv... " >&6; }
9504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
9505 $as_echo "$LIBICONV" >&6; }
9507 CPPFLAGS="$am_save_CPPFLAGS"
9514 if test "$am_cv_func_iconv" = yes; then
9515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
9516 $as_echo_n "checking for iconv declaration... " >&6; }
9517 if ${am_cv_proto_iconv+:} false; then :
9518 $as_echo_n "(cached) " >&6
9521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9522 /* end confdefs.h. */
9530 #if defined(__STDC__) || defined(_MSC_VER) || defined(__cplusplus)
9531 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9544 if ac_fn_c_try_compile "$LINENO"; then :
9545 am_cv_proto_iconv_arg1=""
9547 am_cv_proto_iconv_arg1="const"
9549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9550 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);"
9553 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
9554 { $as_echo "$as_me:${as_lineno-$LINENO}: result:
9555 $am_cv_proto_iconv" >&5
9557 $am_cv_proto_iconv" >&6; }
9559 cat >>confdefs.h <<_ACEOF
9560 #define ICONV_CONST $am_cv_proto_iconv_arg1
9569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9570 /* end confdefs.h. */
9571 int foo (int a) { a = __builtin_expect (a, 10); return a == 10 ? 0 : 1; }
9580 if ac_fn_c_try_link "$LINENO"; then :
9582 $as_echo "#define HAVE_BUILTIN_EXPECT 1" >>confdefs.h
9585 rm -f core conftest.err conftest.$ac_objext \
9586 conftest$ac_exeext conftest.$ac_ext
9588 for ac_header in argz.h inttypes.h limits.h unistd.h sys/param.h
9590 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9591 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9592 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9593 cat >>confdefs.h <<_ACEOF
9594 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9601 for ac_func in getcwd getegid geteuid getgid getuid mempcpy munmap \
9602 stpcpy strcasecmp strdup strtoul tsearch uselocale argz_count \
9603 argz_stringify argz_next __fsetlocking
9605 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9606 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9607 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9608 cat >>confdefs.h <<_ACEOF
9609 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9616 ac_fn_c_check_decl "$LINENO" "feof_unlocked" "ac_cv_have_decl_feof_unlocked" "#include <stdio.h>
9618 if test "x$ac_cv_have_decl_feof_unlocked" = xyes; then :
9624 cat >>confdefs.h <<_ACEOF
9625 #define HAVE_DECL_FEOF_UNLOCKED $ac_have_decl
9627 ac_fn_c_check_decl "$LINENO" "fgets_unlocked" "ac_cv_have_decl_fgets_unlocked" "#include <stdio.h>
9629 if test "x$ac_cv_have_decl_fgets_unlocked" = xyes; then :
9635 cat >>confdefs.h <<_ACEOF
9636 #define HAVE_DECL_FGETS_UNLOCKED $ac_have_decl
9642 for ac_prog in bison
9644 # Extract the first word of "$ac_prog", so it can be a program name with args.
9645 set dummy $ac_prog; ac_word=$2
9646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9647 $as_echo_n "checking for $ac_word... " >&6; }
9648 if ${ac_cv_prog_INTLBISON+:} false; then :
9649 $as_echo_n "(cached) " >&6
9651 if test -n "$INTLBISON"; then
9652 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
9654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9658 test -z "$as_dir" && as_dir=.
9659 for ac_exec_ext in '' $ac_executable_extensions; do
9660 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9661 ac_cv_prog_INTLBISON="$ac_prog"
9662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9671 INTLBISON=$ac_cv_prog_INTLBISON
9672 if test -n "$INTLBISON"; then
9673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
9674 $as_echo "$INTLBISON" >&6; }
9676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9677 $as_echo "no" >&6; }
9681 test -n "$INTLBISON" && break
9684 if test -z "$INTLBISON"; then
9687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
9688 $as_echo_n "checking version of bison... " >&6; }
9689 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
9690 case $ac_prog_version in
9691 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
9692 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
9693 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
9694 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
9696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
9697 $as_echo "$ac_prog_version" >&6; }
9699 if test $ac_verc_fail = yes; then
9705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
9706 $as_echo_n "checking for long long int... " >&6; }
9707 if ${ac_cv_type_long_long_int+:} false; then :
9708 $as_echo_n "(cached) " >&6
9710 ac_cv_type_long_long_int=yes
9711 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
9712 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
9713 if test $ac_cv_type_long_long_int = yes; then
9714 if test "$cross_compiling" = yes; then :
9717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9718 /* end confdefs.h. */
9722 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
9723 # define LLONG_MAX (HALF - 1 + HALF)
9728 long long int n = 1;
9732 long long int m = n << i;
9735 if (LLONG_MAX / 2 < m)
9743 if ac_fn_c_try_run "$LINENO"; then :
9746 ac_cv_type_long_long_int=no
9748 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9749 conftest.$ac_objext conftest.beam conftest.$ac_ext
9755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
9756 $as_echo "$ac_cv_type_long_long_int" >&6; }
9757 if test $ac_cv_type_long_long_int = yes; then
9759 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
9764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
9765 $as_echo_n "checking for wchar_t... " >&6; }
9766 if ${gt_cv_c_wchar_t+:} false; then :
9767 $as_echo_n "(cached) " >&6
9769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9770 /* end confdefs.h. */
9772 wchar_t foo = (wchar_t)'\0';
9781 if ac_fn_c_try_compile "$LINENO"; then :
9786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
9789 $as_echo "$gt_cv_c_wchar_t" >&6; }
9790 if test $gt_cv_c_wchar_t = yes; then
9792 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
9797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
9798 $as_echo_n "checking for wint_t... " >&6; }
9799 if ${gt_cv_c_wint_t+:} false; then :
9800 $as_echo_n "(cached) " >&6
9802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9803 /* end confdefs.h. */
9805 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
9807 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
9808 before <wchar.h>. */
9813 wint_t foo = (wchar_t)'\0';
9822 if ac_fn_c_try_compile "$LINENO"; then :
9827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
9830 $as_echo "$gt_cv_c_wint_t" >&6; }
9831 if test $gt_cv_c_wint_t = yes; then
9833 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
9840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
9841 $as_echo_n "checking for intmax_t... " >&6; }
9842 if ${gt_cv_c_intmax_t+:} false; then :
9843 $as_echo_n "(cached) " >&6
9845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9846 /* end confdefs.h. */
9850 #if HAVE_STDINT_H_WITH_UINTMAX
9853 #if HAVE_INTTYPES_H_WITH_UINTMAX
9854 #include <inttypes.h>
9866 if ac_fn_c_try_compile "$LINENO"; then :
9867 gt_cv_c_intmax_t=yes
9871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
9874 $as_echo "$gt_cv_c_intmax_t" >&6; }
9875 if test $gt_cv_c_intmax_t = yes; then
9877 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
9883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
9884 $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
9885 if ${gt_cv_func_printf_posix+:} false; then :
9886 $as_echo_n "(cached) " >&6
9889 if test "$cross_compiling" = yes; then :
9891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9892 /* end confdefs.h. */
9894 #if defined __NetBSD__ || defined __BEOS__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
9899 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9900 $EGREP "notposix" >/dev/null 2>&1; then :
9901 gt_cv_func_printf_posix="guessing no"
9903 gt_cv_func_printf_posix="guessing yes"
9909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9910 /* end confdefs.h. */
9914 /* The string "%2$d %1$d", with dollar characters protected from the shell's
9915 dollar expansion (possibly an autoconf bug). */
9916 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
9917 static char buf[100];
9920 sprintf (buf, format, 33, 55);
9921 return (strcmp (buf, "55 33") != 0);
9924 if ac_fn_c_try_run "$LINENO"; then :
9925 gt_cv_func_printf_posix=yes
9927 gt_cv_func_printf_posix=no
9929 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9930 conftest.$ac_objext conftest.beam conftest.$ac_ext
9935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
9936 $as_echo "$gt_cv_func_printf_posix" >&6; }
9937 case $gt_cv_func_printf_posix in
9940 $as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
9946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library >= 2.1 or uClibc" >&5
9947 $as_echo_n "checking whether we are using the GNU C Library >= 2.1 or uClibc... " >&6; }
9948 if ${ac_cv_gnu_library_2_1+:} false; then :
9949 $as_echo_n "(cached) " >&6
9951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9952 /* end confdefs.h. */
9954 #include <features.h>
9955 #ifdef __GNU_LIBRARY__
9956 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
9965 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9966 $EGREP "Lucky" >/dev/null 2>&1; then :
9967 ac_cv_gnu_library_2_1=yes
9969 ac_cv_gnu_library_2_1=no
9976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
9977 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
9979 GLIBC21="$ac_cv_gnu_library_2_1"
9983 for ac_header in stdint.h
9985 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
9986 if test "x$ac_cv_header_stdint_h" = xyes; then :
9987 cat >>confdefs.h <<_ACEOF
9988 #define HAVE_STDINT_H 1
9995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
9996 $as_echo_n "checking for SIZE_MAX... " >&6; }
9997 if ${gl_cv_size_max+:} false; then :
9998 $as_echo_n "(cached) " >&6
10002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10003 /* end confdefs.h. */
10005 #include <limits.h>
10007 #include <stdint.h>
10014 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10015 $EGREP "Found it" >/dev/null 2>&1; then :
10020 if test -z "$gl_cv_size_max"; then
10021 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1" "#include <stddef.h>
10022 #include <limits.h>"; then :
10025 size_t_bits_minus_1=
10028 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then :
10034 if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
10035 if test $fits_in_uint = 1; then
10036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10037 /* end confdefs.h. */
10038 #include <stddef.h>
10040 extern unsigned long foo;
10050 if ac_fn_c_try_compile "$LINENO"; then :
10053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10055 if test $fits_in_uint = 1; then
10056 gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
10058 gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
10061 gl_cv_size_max='((size_t)~(size_t)0)'
10066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5
10067 $as_echo "$gl_cv_size_max" >&6; }
10068 if test "$gl_cv_size_max" != yes; then
10070 cat >>confdefs.h <<_ACEOF
10071 #define SIZE_MAX $gl_cv_size_max
10079 for ac_header in stdint.h
10081 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
10082 if test "x$ac_cv_header_stdint_h" = xyes; then :
10083 cat >>confdefs.h <<_ACEOF
10084 #define HAVE_STDINT_H 1
10095 for ac_func in $ac_func_list
10097 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10098 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10099 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10100 cat >>confdefs.h <<_ACEOF
10101 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
10115 $as_echo_n "checking for working fcntl.h... " >&6; }
10116 if ${gl_cv_header_working_fcntl_h+:} false; then :
10117 $as_echo_n "(cached) " >&6
10119 if test "$cross_compiling" = yes; then :
10120 gl_cv_header_working_fcntl_h=cross-compiling
10122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10123 /* end confdefs.h. */
10124 #include <sys/types.h>
10125 #include <sys/stat.h>
10127 # include <unistd.h>
10128 #else /* on Windows with MSVC */
10130 # include <stdlib.h>
10131 # defined sleep(n) _sleep ((n) * 1000)
10135 #define O_NOATIME 0
10138 #define O_NOFOLLOW 0
10140 static int const constants[] =
10142 O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
10143 O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
10150 int result = !constants;
10153 static char const sym[] = "conftest.sym";
10154 if (symlink ("/dev/null", sym) != 0)
10158 int fd = open (sym, O_WRONLY | O_NOFOLLOW | O_CREAT, 0);
10165 if (unlink (sym) != 0 || symlink (".", sym) != 0)
10169 int fd = open (sym, O_RDONLY | O_NOFOLLOW);
10180 static char const file[] = "confdefs.h";
10181 int fd = open (file, O_RDONLY | O_NOATIME);
10187 if (fstat (fd, &st0) != 0)
10193 if (read (fd, &c, 1) != 1)
10197 if (close (fd) != 0)
10202 if (stat (file, &st1) != 0)
10205 if (st0.st_atime != st1.st_atime)
10217 if ac_fn_c_try_run "$LINENO"; then :
10218 gl_cv_header_working_fcntl_h=yes
10221 4) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
10222 64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
10223 68) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
10224 *) gl_cv_header_working_fcntl_h='no';;
10227 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10228 conftest.$ac_objext conftest.beam conftest.$ac_ext
10232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
10233 $as_echo "$gl_cv_header_working_fcntl_h" >&6; }
10235 case $gl_cv_header_working_fcntl_h in #(
10236 *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
10240 cat >>confdefs.h <<_ACEOF
10241 #define HAVE_WORKING_O_NOATIME $ac_val
10245 case $gl_cv_header_working_fcntl_h in #(
10246 *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
10250 cat >>confdefs.h <<_ACEOF
10251 #define HAVE_WORKING_O_NOFOLLOW $ac_val
10256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
10257 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
10258 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
10259 $as_echo_n "(cached) " >&6
10261 gt_save_LIBS="$LIBS"
10262 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10264 /* end confdefs.h. */
10265 #include <CoreFoundation/CFPreferences.h>
10269 CFPreferencesCopyAppValue(NULL, NULL)
10274 if ac_fn_c_try_link "$LINENO"; then :
10275 gt_cv_func_CFPreferencesCopyAppValue=yes
10277 gt_cv_func_CFPreferencesCopyAppValue=no
10279 rm -f core conftest.err conftest.$ac_objext \
10280 conftest$ac_exeext conftest.$ac_ext
10281 LIBS="$gt_save_LIBS"
10283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
10284 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
10285 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
10287 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
10290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
10291 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
10292 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
10293 $as_echo_n "(cached) " >&6
10295 gt_save_LIBS="$LIBS"
10296 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10298 /* end confdefs.h. */
10299 #include <CoreFoundation/CFLocale.h>
10303 CFLocaleCopyCurrent();
10308 if ac_fn_c_try_link "$LINENO"; then :
10309 gt_cv_func_CFLocaleCopyCurrent=yes
10311 gt_cv_func_CFLocaleCopyCurrent=no
10313 rm -f core conftest.err conftest.$ac_objext \
10314 conftest$ac_exeext conftest.$ac_ext
10315 LIBS="$gt_save_LIBS"
10317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
10318 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
10319 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10321 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
10325 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10326 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
10338 case "$enable_silent_rules" in
10339 yes) INTL_DEFAULT_VERBOSITY=0;;
10340 no) INTL_DEFAULT_VERBOSITY=1;;
10341 *) INTL_DEFAULT_VERBOSITY=1;;
10345 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
10346 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
10350 $as_echo "#define ptrdiff_t long" >>confdefs.h
10355 for ac_header in features.h stddef.h stdlib.h string.h
10357 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10358 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10359 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10360 cat >>confdefs.h <<_ACEOF
10361 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10368 for ac_func in asprintf fwprintf newlocale putenv setenv setlocale \
10369 snprintf strnlen wcslen wcsnlen mbrtowc wcrtomb
10371 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10372 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10373 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10374 cat >>confdefs.h <<_ACEOF
10375 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10382 ac_fn_c_check_decl "$LINENO" "_snprintf" "ac_cv_have_decl__snprintf" "#include <stdio.h>
10384 if test "x$ac_cv_have_decl__snprintf" = xyes; then :
10390 cat >>confdefs.h <<_ACEOF
10391 #define HAVE_DECL__SNPRINTF $ac_have_decl
10393 ac_fn_c_check_decl "$LINENO" "_snwprintf" "ac_cv_have_decl__snwprintf" "#include <stdio.h>
10395 if test "x$ac_cv_have_decl__snwprintf" = xyes; then :
10401 cat >>confdefs.h <<_ACEOF
10402 #define HAVE_DECL__SNWPRINTF $ac_have_decl
10406 ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "#include <stdio.h>
10408 if test "x$ac_cv_have_decl_getc_unlocked" = xyes; then :
10414 cat >>confdefs.h <<_ACEOF
10415 #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
10419 case $gt_cv_func_printf_posix in
10420 *yes) HAVE_POSIX_PRINTF=1 ;;
10421 *) HAVE_POSIX_PRINTF=0 ;;
10424 if test "$ac_cv_func_asprintf" = yes; then
10430 if test "$ac_cv_func_snprintf" = yes; then
10436 if test "$ac_cv_func_newlocale" = yes; then
10442 if test "$ac_cv_func_wprintf" = yes; then
10450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10451 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10452 if ${am_cv_langinfo_codeset+:} false; then :
10453 $as_echo_n "(cached) " >&6
10455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10456 /* end confdefs.h. */
10457 #include <langinfo.h>
10461 char* cs = nl_langinfo(CODESET); return !cs;
10466 if ac_fn_c_try_link "$LINENO"; then :
10467 am_cv_langinfo_codeset=yes
10469 am_cv_langinfo_codeset=no
10471 rm -f core conftest.err conftest.$ac_objext \
10472 conftest$ac_exeext conftest.$ac_ext
10475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10476 $as_echo "$am_cv_langinfo_codeset" >&6; }
10477 if test $am_cv_langinfo_codeset = yes; then
10479 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10485 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10486 if ${gt_cv_val_LC_MESSAGES+:} false; then :
10487 $as_echo_n "(cached) " >&6
10489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10490 /* end confdefs.h. */
10491 #include <locale.h>
10500 if ac_fn_c_try_link "$LINENO"; then :
10501 gt_cv_val_LC_MESSAGES=yes
10503 gt_cv_val_LC_MESSAGES=no
10505 rm -f core conftest.err conftest.$ac_objext \
10506 conftest$ac_exeext conftest.$ac_ext
10508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5
10509 $as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
10510 if test $gt_cv_val_LC_MESSAGES = yes; then
10512 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10517 if test "$enable_shared" = yes; then
10519 mingw* | cygwin*) is_woe32dll=yes ;;
10520 *) is_woe32dll=no ;;
10525 WOE32DLL=$is_woe32dll
10529 mingw* | cygwin*) is_woe32=yes ;;
10534 if test $WOE32 = yes; then
10535 if test -n "$ac_tool_prefix"; then
10536 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
10537 set dummy ${ac_tool_prefix}windres; ac_word=$2
10538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10539 $as_echo_n "checking for $ac_word... " >&6; }
10540 if ${ac_cv_prog_WINDRES+:} false; then :
10541 $as_echo_n "(cached) " >&6
10543 if test -n "$WINDRES"; then
10544 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
10546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10547 for as_dir in $PATH
10550 test -z "$as_dir" && as_dir=.
10551 for ac_exec_ext in '' $ac_executable_extensions; do
10552 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10553 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
10554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10563 WINDRES=$ac_cv_prog_WINDRES
10564 if test -n "$WINDRES"; then
10565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
10566 $as_echo "$WINDRES" >&6; }
10568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10569 $as_echo "no" >&6; }
10574 if test -z "$ac_cv_prog_WINDRES"; then
10575 ac_ct_WINDRES=$WINDRES
10576 # Extract the first word of "windres", so it can be a program name with args.
10577 set dummy windres; ac_word=$2
10578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10579 $as_echo_n "checking for $ac_word... " >&6; }
10580 if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
10581 $as_echo_n "(cached) " >&6
10583 if test -n "$ac_ct_WINDRES"; then
10584 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
10586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10587 for as_dir in $PATH
10590 test -z "$as_dir" && as_dir=.
10591 for ac_exec_ext in '' $ac_executable_extensions; do
10592 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10593 ac_cv_prog_ac_ct_WINDRES="windres"
10594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10603 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
10604 if test -n "$ac_ct_WINDRES"; then
10605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
10606 $as_echo "$ac_ct_WINDRES" >&6; }
10608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10609 $as_echo "no" >&6; }
10612 if test "x$ac_ct_WINDRES" = x; then
10615 case $cross_compiling:$ac_tool_warned in
10617 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10618 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10619 ac_tool_warned=yes ;;
10621 WINDRES=$ac_ct_WINDRES
10624 WINDRES="$ac_cv_prog_WINDRES"
10630 hpux*) LTLIBC="" ;;
10660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
10661 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
10662 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
10663 $as_echo_n "(cached) " >&6
10665 gt_save_LIBS="$LIBS"
10666 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10668 /* end confdefs.h. */
10669 #include <CoreFoundation/CFPreferences.h>
10673 CFPreferencesCopyAppValue(NULL, NULL)
10678 if ac_fn_c_try_link "$LINENO"; then :
10679 gt_cv_func_CFPreferencesCopyAppValue=yes
10681 gt_cv_func_CFPreferencesCopyAppValue=no
10683 rm -f core conftest.err conftest.$ac_objext \
10684 conftest$ac_exeext conftest.$ac_ext
10685 LIBS="$gt_save_LIBS"
10687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
10688 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
10689 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
10691 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
10694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
10695 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
10696 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
10697 $as_echo_n "(cached) " >&6
10699 gt_save_LIBS="$LIBS"
10700 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10702 /* end confdefs.h. */
10703 #include <CoreFoundation/CFLocale.h>
10707 CFLocaleCopyCurrent();
10712 if ac_fn_c_try_link "$LINENO"; then :
10713 gt_cv_func_CFLocaleCopyCurrent=yes
10715 gt_cv_func_CFLocaleCopyCurrent=no
10717 rm -f core conftest.err conftest.$ac_objext \
10718 conftest$ac_exeext conftest.$ac_ext
10719 LIBS="$gt_save_LIBS"
10721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
10722 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
10723 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10725 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
10729 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10730 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
10738 BUILD_INCLUDED_LIBINTL=no
10739 USE_INCLUDED_LIBINTL=no
10745 case " $gt_needs " in
10746 *" need-formatstring-macros "*) gt_api_version=3 ;;
10747 *" need-ngettext "*) gt_api_version=2 ;;
10748 *) gt_api_version=1 ;;
10750 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
10751 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
10753 if test "$USE_NLS" = "yes"; then
10754 gt_use_preinstalled_gnugettext=no
10756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
10757 $as_echo_n "checking whether included gettext is requested... " >&6; }
10759 # Check whether --with-included-gettext was given.
10760 if test "${with_included_gettext+set}" = set; then :
10761 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
10763 nls_cv_force_use_gnu_gettext=no
10766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
10767 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
10769 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
10770 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
10773 if test $gt_api_version -ge 3; then
10774 gt_revision_test_code='
10775 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
10776 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
10778 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
10781 gt_revision_test_code=
10783 if test $gt_api_version -ge 2; then
10784 gt_expression_test_code=' + * ngettext ("", "", 0)'
10786 gt_expression_test_code=
10789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
10790 $as_echo_n "checking for GNU gettext in libc... " >&6; }
10791 if eval \${$gt_func_gnugettext_libc+:} false; then :
10792 $as_echo_n "(cached) " >&6
10794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10795 /* end confdefs.h. */
10797 #include <libintl.h>
10798 $gt_revision_test_code
10799 extern int _nl_msg_cat_cntr;
10800 extern int *_nl_domain_bindings;
10806 bindtextdomain ("", "");
10807 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
10813 if ac_fn_c_try_link "$LINENO"; then :
10814 eval "$gt_func_gnugettext_libc=yes"
10816 eval "$gt_func_gnugettext_libc=no"
10818 rm -f core conftest.err conftest.$ac_objext \
10819 conftest$ac_exeext conftest.$ac_ext
10821 eval ac_res=\$$gt_func_gnugettext_libc
10822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10823 $as_echo "$ac_res" >&6; }
10825 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
10836 acl_save_prefix="$prefix"
10837 prefix="$acl_final_prefix"
10838 acl_save_exec_prefix="$exec_prefix"
10839 exec_prefix="$acl_final_exec_prefix"
10841 eval additional_includedir=\"$includedir\"
10842 eval additional_libdir=\"$libdir\"
10844 exec_prefix="$acl_save_exec_prefix"
10845 prefix="$acl_save_prefix"
10848 # Check whether --with-libintl-prefix was given.
10849 if test "${with_libintl_prefix+set}" = set; then :
10850 withval=$with_libintl_prefix;
10851 if test "X$withval" = "Xno"; then
10854 if test "X$withval" = "X"; then
10856 acl_save_prefix="$prefix"
10857 prefix="$acl_final_prefix"
10858 acl_save_exec_prefix="$exec_prefix"
10859 exec_prefix="$acl_final_exec_prefix"
10861 eval additional_includedir=\"$includedir\"
10862 eval additional_libdir=\"$libdir\"
10864 exec_prefix="$acl_save_exec_prefix"
10865 prefix="$acl_save_prefix"
10868 additional_includedir="$withval/include"
10869 additional_libdir="$withval/$acl_libdirstem"
10870 if test "$acl_libdirstem2" != "$acl_libdirstem" \
10871 && ! test -d "$withval/$acl_libdirstem"; then
10872 additional_libdir="$withval/$acl_libdirstem2"
10886 names_already_handled=
10887 names_next_round='intl '
10888 while test -n "$names_next_round"; do
10889 names_this_round="$names_next_round"
10891 for name in $names_this_round; do
10893 for n in $names_already_handled; do
10894 if test "$n" = "$name"; then
10895 already_handled=yes
10899 if test -z "$already_handled"; then
10900 names_already_handled="$names_already_handled $name"
10901 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
10902 eval value=\"\$HAVE_LIB$uppername\"
10903 if test -n "$value"; then
10904 if test "$value" = yes; then
10905 eval value=\"\$LIB$uppername\"
10906 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
10907 eval value=\"\$LTLIB$uppername\"
10908 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
10917 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
10918 if test -n "$acl_shlibext"; then
10919 shrext=".$acl_shlibext" # typically: shrext=.so
10923 if test $use_additional = yes; then
10924 dir="$additional_libdir"
10925 if test -n "$acl_shlibext"; then
10926 if test -f "$dir/$libname$shrext"; then
10928 found_so="$dir/$libname$shrext"
10930 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
10931 ver=`(cd "$dir" && \
10932 for f in "$libname$shrext".*; do echo "$f"; done \
10933 | sed -e "s,^$libname$shrext\\\\.,," \
10934 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
10935 | sed 1q ) 2>/dev/null`
10936 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
10938 found_so="$dir/$libname$shrext.$ver"
10941 eval library_names=\"$acl_library_names_spec\"
10942 for f in $library_names; do
10943 if test -f "$dir/$f"; then
10952 if test "X$found_dir" = "X"; then
10953 if test -f "$dir/$libname.$acl_libext"; then
10955 found_a="$dir/$libname.$acl_libext"
10958 if test "X$found_dir" != "X"; then
10959 if test -f "$dir/$libname.la"; then
10960 found_la="$dir/$libname.la"
10964 if test "X$found_dir" = "X"; then
10965 for x in $LDFLAGS $LTLIBINTL; do
10967 acl_save_prefix="$prefix"
10968 prefix="$acl_final_prefix"
10969 acl_save_exec_prefix="$exec_prefix"
10970 exec_prefix="$acl_final_exec_prefix"
10972 exec_prefix="$acl_save_exec_prefix"
10973 prefix="$acl_save_prefix"
10977 dir=`echo "X$x" | sed -e 's/^X-L//'`
10978 if test -n "$acl_shlibext"; then
10979 if test -f "$dir/$libname$shrext"; then
10981 found_so="$dir/$libname$shrext"
10983 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
10984 ver=`(cd "$dir" && \
10985 for f in "$libname$shrext".*; do echo "$f"; done \
10986 | sed -e "s,^$libname$shrext\\\\.,," \
10987 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
10988 | sed 1q ) 2>/dev/null`
10989 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
10991 found_so="$dir/$libname$shrext.$ver"
10994 eval library_names=\"$acl_library_names_spec\"
10995 for f in $library_names; do
10996 if test -f "$dir/$f"; then
11005 if test "X$found_dir" = "X"; then
11006 if test -f "$dir/$libname.$acl_libext"; then
11008 found_a="$dir/$libname.$acl_libext"
11011 if test "X$found_dir" != "X"; then
11012 if test -f "$dir/$libname.la"; then
11013 found_la="$dir/$libname.la"
11018 if test "X$found_dir" != "X"; then
11023 if test "X$found_dir" != "X"; then
11024 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
11025 if test "X$found_so" != "X"; then
11026 if test "$enable_rpath" = no \
11027 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
11028 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
11029 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11032 for x in $ltrpathdirs; do
11033 if test "X$x" = "X$found_dir"; then
11038 if test -z "$haveit"; then
11039 ltrpathdirs="$ltrpathdirs $found_dir"
11041 if test "$acl_hardcode_direct" = yes; then
11042 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11044 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
11045 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11047 for x in $rpathdirs; do
11048 if test "X$x" = "X$found_dir"; then
11053 if test -z "$haveit"; then
11054 rpathdirs="$rpathdirs $found_dir"
11058 for x in $LDFLAGS $LIBINTL; do
11060 acl_save_prefix="$prefix"
11061 prefix="$acl_final_prefix"
11062 acl_save_exec_prefix="$exec_prefix"
11063 exec_prefix="$acl_final_exec_prefix"
11065 exec_prefix="$acl_save_exec_prefix"
11066 prefix="$acl_save_prefix"
11068 if test "X$x" = "X-L$found_dir"; then
11073 if test -z "$haveit"; then
11074 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
11076 if test "$acl_hardcode_minus_L" != no; then
11077 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11079 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
11085 if test "X$found_a" != "X"; then
11086 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
11088 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
11091 additional_includedir=
11092 case "$found_dir" in
11093 */$acl_libdirstem | */$acl_libdirstem/)
11094 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
11095 if test "$name" = 'intl'; then
11096 LIBINTL_PREFIX="$basedir"
11098 additional_includedir="$basedir/include"
11100 */$acl_libdirstem2 | */$acl_libdirstem2/)
11101 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
11102 if test "$name" = 'intl'; then
11103 LIBINTL_PREFIX="$basedir"
11105 additional_includedir="$basedir/include"
11108 if test "X$additional_includedir" != "X"; then
11109 if test "X$additional_includedir" != "X/usr/include"; then
11111 if test "X$additional_includedir" = "X/usr/local/include"; then
11112 if test -n "$GCC"; then
11114 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
11118 if test -z "$haveit"; then
11119 for x in $CPPFLAGS $INCINTL; do
11121 acl_save_prefix="$prefix"
11122 prefix="$acl_final_prefix"
11123 acl_save_exec_prefix="$exec_prefix"
11124 exec_prefix="$acl_final_exec_prefix"
11126 exec_prefix="$acl_save_exec_prefix"
11127 prefix="$acl_save_prefix"
11129 if test "X$x" = "X-I$additional_includedir"; then
11134 if test -z "$haveit"; then
11135 if test -d "$additional_includedir"; then
11136 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
11142 if test -n "$found_la"; then
11143 save_libdir="$libdir"
11144 case "$found_la" in
11145 */* | *\\*) . "$found_la" ;;
11146 *) . "./$found_la" ;;
11148 libdir="$save_libdir"
11149 for dep in $dependency_libs; do
11152 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
11153 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
11154 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
11156 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
11157 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
11158 if test -n "$GCC"; then
11160 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
11164 if test -z "$haveit"; then
11166 for x in $LDFLAGS $LIBINTL; do
11168 acl_save_prefix="$prefix"
11169 prefix="$acl_final_prefix"
11170 acl_save_exec_prefix="$exec_prefix"
11171 exec_prefix="$acl_final_exec_prefix"
11173 exec_prefix="$acl_save_exec_prefix"
11174 prefix="$acl_save_prefix"
11176 if test "X$x" = "X-L$additional_libdir"; then
11181 if test -z "$haveit"; then
11182 if test -d "$additional_libdir"; then
11183 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
11187 for x in $LDFLAGS $LTLIBINTL; do
11189 acl_save_prefix="$prefix"
11190 prefix="$acl_final_prefix"
11191 acl_save_exec_prefix="$exec_prefix"
11192 exec_prefix="$acl_final_exec_prefix"
11194 exec_prefix="$acl_save_exec_prefix"
11195 prefix="$acl_save_prefix"
11197 if test "X$x" = "X-L$additional_libdir"; then
11202 if test -z "$haveit"; then
11203 if test -d "$additional_libdir"; then
11204 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
11211 dir=`echo "X$dep" | sed -e 's/^X-R//'`
11212 if test "$enable_rpath" != no; then
11214 for x in $rpathdirs; do
11215 if test "X$x" = "X$dir"; then
11220 if test -z "$haveit"; then
11221 rpathdirs="$rpathdirs $dir"
11224 for x in $ltrpathdirs; do
11225 if test "X$x" = "X$dir"; then
11230 if test -z "$haveit"; then
11231 ltrpathdirs="$ltrpathdirs $dir"
11236 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11239 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11242 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
11243 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
11249 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
11250 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
11256 if test "X$rpathdirs" != "X"; then
11257 if test -n "$acl_hardcode_libdir_separator"; then
11259 for found_dir in $rpathdirs; do
11260 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
11262 acl_save_libdir="$libdir"
11264 eval flag=\"$acl_hardcode_libdir_flag_spec\"
11265 libdir="$acl_save_libdir"
11266 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
11268 for found_dir in $rpathdirs; do
11269 acl_save_libdir="$libdir"
11270 libdir="$found_dir"
11271 eval flag=\"$acl_hardcode_libdir_flag_spec\"
11272 libdir="$acl_save_libdir"
11273 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
11277 if test "X$ltrpathdirs" != "X"; then
11278 for found_dir in $ltrpathdirs; do
11279 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
11288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
11289 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
11290 if eval \${$gt_func_gnugettext_libintl+:} false; then :
11291 $as_echo_n "(cached) " >&6
11293 gt_save_CPPFLAGS="$CPPFLAGS"
11294 CPPFLAGS="$CPPFLAGS $INCINTL"
11295 gt_save_LIBS="$LIBS"
11296 LIBS="$LIBS $LIBINTL"
11297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11298 /* end confdefs.h. */
11300 #include <libintl.h>
11301 $gt_revision_test_code
11302 extern int _nl_msg_cat_cntr;
11307 const char *_nl_expand_alias (const char *);
11313 bindtextdomain ("", "");
11314 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
11320 if ac_fn_c_try_link "$LINENO"; then :
11321 eval "$gt_func_gnugettext_libintl=yes"
11323 eval "$gt_func_gnugettext_libintl=no"
11325 rm -f core conftest.err conftest.$ac_objext \
11326 conftest$ac_exeext conftest.$ac_ext
11327 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
11328 LIBS="$LIBS $LIBICONV"
11329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11330 /* end confdefs.h. */
11332 #include <libintl.h>
11333 $gt_revision_test_code
11334 extern int _nl_msg_cat_cntr;
11339 const char *_nl_expand_alias (const char *);
11345 bindtextdomain ("", "");
11346 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
11352 if ac_fn_c_try_link "$LINENO"; then :
11353 LIBINTL="$LIBINTL $LIBICONV"
11354 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
11355 eval "$gt_func_gnugettext_libintl=yes"
11358 rm -f core conftest.err conftest.$ac_objext \
11359 conftest$ac_exeext conftest.$ac_ext
11361 CPPFLAGS="$gt_save_CPPFLAGS"
11362 LIBS="$gt_save_LIBS"
11364 eval ac_res=\$$gt_func_gnugettext_libintl
11365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11366 $as_echo "$ac_res" >&6; }
11369 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
11370 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
11371 && test "$PACKAGE" != gettext-runtime \
11372 && test "$PACKAGE" != gettext-tools; }; then
11373 gt_use_preinstalled_gnugettext=yes
11381 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
11382 nls_cv_use_gnu_gettext=yes
11386 if test "$nls_cv_use_gnu_gettext" = "yes"; then
11387 BUILD_INCLUDED_LIBINTL=yes
11388 USE_INCLUDED_LIBINTL=yes
11389 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV $LIBTHREAD"
11390 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV $LTLIBTHREAD"
11391 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
11395 if test "$gt_use_preinstalled_gnugettext" = "yes" \
11396 || test "$nls_cv_use_gnu_gettext" = "yes"; then
11401 if test -n "$INTL_MACOSX_LIBS"; then
11402 if test "$gt_use_preinstalled_gnugettext" = "yes" \
11403 || test "$nls_cv_use_gnu_gettext" = "yes"; then
11404 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
11405 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
11409 if test "$gt_use_preinstalled_gnugettext" = "yes" \
11410 || test "$nls_cv_use_gnu_gettext" = "yes"; then
11412 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
11420 $as_echo_n "checking whether to use NLS... " >&6; }
11421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
11422 $as_echo "$USE_NLS" >&6; }
11423 if test "$USE_NLS" = "yes"; then
11424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
11425 $as_echo_n "checking where the gettext function comes from... " >&6; }
11426 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
11427 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
11428 gt_source="external libintl"
11433 gt_source="included intl directory"
11435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
11436 $as_echo "$gt_source" >&6; }
11439 if test "$USE_NLS" = "yes"; then
11441 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
11442 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
11443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
11444 $as_echo_n "checking how to link with libintl... " >&6; }
11445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
11446 $as_echo "$LIBINTL" >&6; }
11448 for element in $INCINTL; do
11450 for x in $CPPFLAGS; do
11452 acl_save_prefix="$prefix"
11453 prefix="$acl_final_prefix"
11454 acl_save_exec_prefix="$exec_prefix"
11455 exec_prefix="$acl_final_exec_prefix"
11457 exec_prefix="$acl_save_exec_prefix"
11458 prefix="$acl_save_prefix"
11460 if test "X$x" = "X$element"; then
11465 if test -z "$haveit"; then
11466 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11473 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
11476 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
11484 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
11485 BUILD_INCLUDED_LIBINTL=yes
11492 nls_cv_header_intl=
11493 nls_cv_header_libgt=
11505 if test "$USE_INCLUDED_LIBINTL" = yes; then
11506 INTLOBJS="\$(GETTOBJS)"
11510 INTL_LIBTOOL_SUFFIX_PREFIX=
11514 INTLLIBS="$LIBINTL"
11522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
11523 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
11525 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
11526 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
11527 $as_echo_n "(cached) " >&6
11529 cat >conftest.make <<\_ACEOF
11532 @echo '@@@%%%=$(MAKE)=@@@%%%'
11534 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
11535 case `${MAKE-make} -f conftest.make 2>/dev/null` in
11536 *@@@%%%=?*=@@@%%%*)
11537 eval ac_cv_prog_make_${ac_make}_set=yes;;
11539 eval ac_cv_prog_make_${ac_make}_set=no;;
11541 rm -f conftest.make
11543 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
11544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11545 $as_echo "yes" >&6; }
11548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11549 $as_echo "no" >&6; }
11550 SET_MAKE="MAKE=${MAKE-make}"
11553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5
11554 $as_echo_n "checking for GNU make... " >&6; }
11555 if ${_cv_gnu_make_command+:} false; then :
11556 $as_echo_n "(cached) " >&6
11558 _cv_gnu_make_command='' ;
11559 if test -n "$FORCE_NATIVE_MAKE" ; then
11562 MAKES="make gmake gnumake"
11564 for a in "$MAKE" $MAKES ; do
11565 if test -z "$a" ; then continue ; fi ;
11566 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
11567 _cv_gnu_make_command=$a ;
11573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_cv_gnu_make_command" >&5
11574 $as_echo "$_cv_gnu_make_command" >&6; } ;
11575 if test "x$_cv_gnu_make_command" != "x" ; then
11581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"Not found\"" >&5
11582 $as_echo "\"Not found\"" >&6; };
11587 # Extract the first word of "ln", so it can be a program name with args.
11588 set dummy ln; ac_word=$2
11589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11590 $as_echo_n "checking for $ac_word... " >&6; }
11591 if ${ac_cv_path_LN+:} false; then :
11592 $as_echo_n "(cached) " >&6
11596 ac_cv_path_LN="$LN" # Let the user override the test with a path.
11599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11600 for as_dir in $PATH
11603 test -z "$as_dir" && as_dir=.
11604 for ac_exec_ext in '' $ac_executable_extensions; do
11605 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11606 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
11607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11614 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
11619 if test -n "$LN"; then
11620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
11621 $as_echo "$LN" >&6; }
11623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11624 $as_echo "no" >&6; }
11628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
11629 $as_echo_n "checking whether ln -s works... " >&6; }
11631 if test "$LN_S" = "ln -s"; then
11632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11633 $as_echo "yes" >&6; }
11635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
11636 $as_echo "no, using $LN_S" >&6; }
11639 # Extract the first word of "mv", so it can be a program name with args.
11640 set dummy mv; ac_word=$2
11641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11642 $as_echo_n "checking for $ac_word... " >&6; }
11643 if ${ac_cv_path_MV+:} false; then :
11644 $as_echo_n "(cached) " >&6
11648 ac_cv_path_MV="$MV" # Let the user override the test with a path.
11651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11652 for as_dir in $PATH
11655 test -z "$as_dir" && as_dir=.
11656 for ac_exec_ext in '' $ac_executable_extensions; do
11657 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11658 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
11659 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11666 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
11671 if test -n "$MV"; then
11672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
11673 $as_echo "$MV" >&6; }
11675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11676 $as_echo "no" >&6; }
11680 # Extract the first word of "cp", so it can be a program name with args.
11681 set dummy cp; ac_word=$2
11682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11683 $as_echo_n "checking for $ac_word... " >&6; }
11684 if ${ac_cv_path_CP+:} false; then :
11685 $as_echo_n "(cached) " >&6
11689 ac_cv_path_CP="$CP" # Let the user override the test with a path.
11692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11693 for as_dir in $PATH
11696 test -z "$as_dir" && as_dir=.
11697 for ac_exec_ext in '' $ac_executable_extensions; do
11698 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11699 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
11700 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11707 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
11712 if test -n "$CP"; then
11713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
11714 $as_echo "$CP" >&6; }
11716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11717 $as_echo "no" >&6; }
11721 # Extract the first word of "rm", so it can be a program name with args.
11722 set dummy rm; ac_word=$2
11723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11724 $as_echo_n "checking for $ac_word... " >&6; }
11725 if ${ac_cv_path_RM+:} false; then :
11726 $as_echo_n "(cached) " >&6
11730 ac_cv_path_RM="$RM" # Let the user override the test with a path.
11733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11734 for as_dir in $PATH
11737 test -z "$as_dir" && as_dir=.
11738 for ac_exec_ext in '' $ac_executable_extensions; do
11739 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11740 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
11741 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11748 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
11753 if test -n "$RM"; then
11754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
11755 $as_echo "$RM" >&6; }
11757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11758 $as_echo "no" >&6; }
11762 # Extract the first word of "chmod", so it can be a program name with args.
11763 set dummy chmod; ac_word=$2
11764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11765 $as_echo_n "checking for $ac_word... " >&6; }
11766 if ${ac_cv_path_CHMOD+:} false; then :
11767 $as_echo_n "(cached) " >&6
11771 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
11774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11775 for as_dir in $PATH
11778 test -z "$as_dir" && as_dir=.
11779 for ac_exec_ext in '' $ac_executable_extensions; do
11780 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11781 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
11782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11789 test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
11793 CHMOD=$ac_cv_path_CHMOD
11794 if test -n "$CHMOD"; then
11795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
11796 $as_echo "$CHMOD" >&6; }
11798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11799 $as_echo "no" >&6; }
11803 for ac_prog in gawk mawk nawk awk
11805 # Extract the first word of "$ac_prog", so it can be a program name with args.
11806 set dummy $ac_prog; ac_word=$2
11807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11808 $as_echo_n "checking for $ac_word... " >&6; }
11809 if ${ac_cv_prog_AWK+:} false; then :
11810 $as_echo_n "(cached) " >&6
11812 if test -n "$AWK"; then
11813 ac_cv_prog_AWK="$AWK" # Let the user override the test.
11815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11816 for as_dir in $PATH
11819 test -z "$as_dir" && as_dir=.
11820 for ac_exec_ext in '' $ac_executable_extensions; do
11821 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11822 ac_cv_prog_AWK="$ac_prog"
11823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11832 AWK=$ac_cv_prog_AWK
11833 if test -n "$AWK"; then
11834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
11835 $as_echo "$AWK" >&6; }
11837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11838 $as_echo "no" >&6; }
11842 test -n "$AWK" && break
11845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
11846 $as_echo_n "checking for egrep... " >&6; }
11847 if ${ac_cv_path_EGREP+:} false; then :
11848 $as_echo_n "(cached) " >&6
11850 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
11851 then ac_cv_path_EGREP="$GREP -E"
11853 if test -z "$EGREP"; then
11854 ac_path_EGREP_found=false
11855 # Loop through the user's path and test for each of PROGNAME-LIST
11856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11857 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11860 test -z "$as_dir" && as_dir=.
11861 for ac_prog in egrep; do
11862 for ac_exec_ext in '' $ac_executable_extensions; do
11863 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
11864 as_fn_executable_p "$ac_path_EGREP" || continue
11865 # Check for GNU ac_path_EGREP and select it if it is found.
11866 # Check for GNU $ac_path_EGREP
11867 case `"$ac_path_EGREP" --version 2>&1` in
11869 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
11872 $as_echo_n 0123456789 >"conftest.in"
11875 cat "conftest.in" "conftest.in" >"conftest.tmp"
11876 mv "conftest.tmp" "conftest.in"
11877 cp "conftest.in" "conftest.nl"
11878 $as_echo 'EGREP' >> "conftest.nl"
11879 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11880 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11881 as_fn_arith $ac_count + 1 && ac_count=$as_val
11882 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
11883 # Best one so far, save it but keep looking for a better one
11884 ac_cv_path_EGREP="$ac_path_EGREP"
11885 ac_path_EGREP_max=$ac_count
11887 # 10*(2^10) chars as input seems more than enough
11888 test $ac_count -gt 10 && break
11890 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11893 $ac_path_EGREP_found && break 3
11898 if test -z "$ac_cv_path_EGREP"; then
11899 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11902 ac_cv_path_EGREP=$EGREP
11907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
11908 $as_echo "$ac_cv_path_EGREP" >&6; }
11909 EGREP="$ac_cv_path_EGREP"
11912 # Extract the first word of "sed", so it can be a program name with args.
11913 set dummy sed; ac_word=$2
11914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11915 $as_echo_n "checking for $ac_word... " >&6; }
11916 if ${ac_cv_path_SED+:} false; then :
11917 $as_echo_n "(cached) " >&6
11921 ac_cv_path_SED="$SED" # Let the user override the test with a path.
11924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11925 for as_dir in $PATH
11928 test -z "$as_dir" && as_dir=.
11929 for ac_exec_ext in '' $ac_executable_extensions; do
11930 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11931 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
11932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11939 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
11943 SED=$ac_cv_path_SED
11944 if test -n "$SED"; then
11945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
11946 $as_echo "$SED" >&6; }
11948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11949 $as_echo "no" >&6; }
11953 # Extract the first word of "perl", so it can be a program name with args.
11954 set dummy perl; ac_word=$2
11955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11956 $as_echo_n "checking for $ac_word... " >&6; }
11957 if ${ac_cv_path_PERL+:} false; then :
11958 $as_echo_n "(cached) " >&6
11962 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
11965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11966 for as_dir in $PATH
11969 test -z "$as_dir" && as_dir=.
11970 for ac_exec_ext in '' $ac_executable_extensions; do
11971 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11972 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
11973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11980 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
11984 PERL=$ac_cv_path_PERL
11985 if test -n "$PERL"; then
11986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
11987 $as_echo "$PERL" >&6; }
11989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11990 $as_echo "no" >&6; }
11994 # Extract the first word of "ldconfig", so it can be a program name with args.
11995 set dummy ldconfig; ac_word=$2
11996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11997 $as_echo_n "checking for $ac_word... " >&6; }
11998 if ${ac_cv_path_LDCONFIG+:} false; then :
11999 $as_echo_n "(cached) " >&6
12003 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
12006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12007 for as_dir in $PATH
12010 test -z "$as_dir" && as_dir=.
12011 for ac_exec_ext in '' $ac_executable_extensions; do
12012 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12013 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
12014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12021 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
12025 LDCONFIG=$ac_cv_path_LDCONFIG
12026 if test -n "$LDCONFIG"; then
12027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
12028 $as_echo "$LDCONFIG" >&6; }
12030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12031 $as_echo "no" >&6; }
12035 if test -n "$ac_tool_prefix"; then
12036 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
12037 set dummy ${ac_tool_prefix}ar; ac_word=$2
12038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12039 $as_echo_n "checking for $ac_word... " >&6; }
12040 if ${ac_cv_prog_AR+:} false; then :
12041 $as_echo_n "(cached) " >&6
12043 if test -n "$AR"; then
12044 ac_cv_prog_AR="$AR" # Let the user override the test.
12046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12047 for as_dir in $PATH
12050 test -z "$as_dir" && as_dir=.
12051 for ac_exec_ext in '' $ac_executable_extensions; do
12052 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12053 ac_cv_prog_AR="${ac_tool_prefix}ar"
12054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12064 if test -n "$AR"; then
12065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12066 $as_echo "$AR" >&6; }
12068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12069 $as_echo "no" >&6; }
12074 if test -z "$ac_cv_prog_AR"; then
12076 # Extract the first word of "ar", so it can be a program name with args.
12077 set dummy ar; ac_word=$2
12078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12079 $as_echo_n "checking for $ac_word... " >&6; }
12080 if ${ac_cv_prog_ac_ct_AR+:} false; then :
12081 $as_echo_n "(cached) " >&6
12083 if test -n "$ac_ct_AR"; then
12084 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12087 for as_dir in $PATH
12090 test -z "$as_dir" && as_dir=.
12091 for ac_exec_ext in '' $ac_executable_extensions; do
12092 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12093 ac_cv_prog_ac_ct_AR="ar"
12094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12103 ac_ct_AR=$ac_cv_prog_ac_ct_AR
12104 if test -n "$ac_ct_AR"; then
12105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
12106 $as_echo "$ac_ct_AR" >&6; }
12108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12109 $as_echo "no" >&6; }
12112 if test "x$ac_ct_AR" = x; then
12115 case $cross_compiling:$ac_tool_warned in
12117 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12118 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12119 ac_tool_warned=yes ;;
12124 AR="$ac_cv_prog_AR"
12127 if test -n "$ac_tool_prefix"; then
12128 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12129 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12131 $as_echo_n "checking for $ac_word... " >&6; }
12132 if ${ac_cv_prog_RANLIB+:} false; then :
12133 $as_echo_n "(cached) " >&6
12135 if test -n "$RANLIB"; then
12136 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12139 for as_dir in $PATH
12142 test -z "$as_dir" && as_dir=.
12143 for ac_exec_ext in '' $ac_executable_extensions; do
12144 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12145 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12146 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12155 RANLIB=$ac_cv_prog_RANLIB
12156 if test -n "$RANLIB"; then
12157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12158 $as_echo "$RANLIB" >&6; }
12160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12161 $as_echo "no" >&6; }
12166 if test -z "$ac_cv_prog_RANLIB"; then
12167 ac_ct_RANLIB=$RANLIB
12168 # Extract the first word of "ranlib", so it can be a program name with args.
12169 set dummy ranlib; ac_word=$2
12170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12171 $as_echo_n "checking for $ac_word... " >&6; }
12172 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
12173 $as_echo_n "(cached) " >&6
12175 if test -n "$ac_ct_RANLIB"; then
12176 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12179 for as_dir in $PATH
12182 test -z "$as_dir" && as_dir=.
12183 for ac_exec_ext in '' $ac_executable_extensions; do
12184 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12185 ac_cv_prog_ac_ct_RANLIB="ranlib"
12186 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12195 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12196 if test -n "$ac_ct_RANLIB"; then
12197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12198 $as_echo "$ac_ct_RANLIB" >&6; }
12200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12201 $as_echo "no" >&6; }
12204 if test "x$ac_ct_RANLIB" = x; then
12207 case $cross_compiling:$ac_tool_warned in
12209 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12210 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12211 ac_tool_warned=yes ;;
12213 RANLIB=$ac_ct_RANLIB
12216 RANLIB="$ac_cv_prog_RANLIB"
12219 if test -n "$ac_tool_prefix"; then
12220 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12221 set dummy ${ac_tool_prefix}strip; ac_word=$2
12222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12223 $as_echo_n "checking for $ac_word... " >&6; }
12224 if ${ac_cv_prog_STRIP+:} false; then :
12225 $as_echo_n "(cached) " >&6
12227 if test -n "$STRIP"; then
12228 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12231 for as_dir in $PATH
12234 test -z "$as_dir" && as_dir=.
12235 for ac_exec_ext in '' $ac_executable_extensions; do
12236 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12237 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12238 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12247 STRIP=$ac_cv_prog_STRIP
12248 if test -n "$STRIP"; then
12249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12250 $as_echo "$STRIP" >&6; }
12252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12253 $as_echo "no" >&6; }
12258 if test -z "$ac_cv_prog_STRIP"; then
12260 # Extract the first word of "strip", so it can be a program name with args.
12261 set dummy strip; ac_word=$2
12262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12263 $as_echo_n "checking for $ac_word... " >&6; }
12264 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
12265 $as_echo_n "(cached) " >&6
12267 if test -n "$ac_ct_STRIP"; then
12268 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12271 for as_dir in $PATH
12274 test -z "$as_dir" && as_dir=.
12275 for ac_exec_ext in '' $ac_executable_extensions; do
12276 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12277 ac_cv_prog_ac_ct_STRIP="strip"
12278 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12287 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12288 if test -n "$ac_ct_STRIP"; then
12289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
12290 $as_echo "$ac_ct_STRIP" >&6; }
12292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12293 $as_echo "no" >&6; }
12296 if test "x$ac_ct_STRIP" = x; then
12299 case $cross_compiling:$ac_tool_warned in
12301 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12302 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12303 ac_tool_warned=yes ;;
12308 STRIP="$ac_cv_prog_STRIP"
12311 # Extract the first word of "makeinfo", so it can be a program name with args.
12312 set dummy makeinfo; ac_word=$2
12313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12314 $as_echo_n "checking for $ac_word... " >&6; }
12315 if ${ac_cv_prog_MAKEINFO+:} false; then :
12316 $as_echo_n "(cached) " >&6
12318 if test -n "$MAKEINFO"; then
12319 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
12321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12322 for as_dir in $PATH
12325 test -z "$as_dir" && as_dir=.
12326 for ac_exec_ext in '' $ac_executable_extensions; do
12327 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12328 ac_cv_prog_MAKEINFO="makeinfo"
12329 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12338 MAKEINFO=$ac_cv_prog_MAKEINFO
12339 if test -n "$MAKEINFO"; then
12340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
12341 $as_echo "$MAKEINFO" >&6; }
12343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12344 $as_echo "no" >&6; }
12348 if test "_$MAKEINFO" = "_"; then
12349 MAKEINFO="echo Makeinfo is missing. Info documentation will not be built."
12351 case "$MAKEINFO" in
12353 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
12354 *** Makeinfo is missing. Info documentation will not be built." >&5
12355 $as_echo "$as_me: WARNING:
12356 *** Makeinfo is missing. Info documentation will not be built." >&2;}
12364 # See if we need a separate native compiler.
12365 if test $cross_compiling = no; then
12369 for ac_prog in gcc cc
12371 # Extract the first word of "$ac_prog", so it can be a program name with args.
12372 set dummy $ac_prog; ac_word=$2
12373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12374 $as_echo_n "checking for $ac_word... " >&6; }
12375 if ${ac_cv_prog_BUILD_CC+:} false; then :
12376 $as_echo_n "(cached) " >&6
12378 if test -n "$BUILD_CC"; then
12379 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
12381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12382 for as_dir in $PATH
12385 test -z "$as_dir" && as_dir=.
12386 for ac_exec_ext in '' $ac_executable_extensions; do
12387 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12388 ac_cv_prog_BUILD_CC="$ac_prog"
12389 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12398 BUILD_CC=$ac_cv_prog_BUILD_CC
12399 if test -n "$BUILD_CC"; then
12400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
12401 $as_echo "$BUILD_CC" >&6; }
12403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12404 $as_echo "no" >&6; }
12408 test -n "$BUILD_CC" && break
12412 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
12414 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12415 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12416 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12417 cat >>confdefs.h <<_ACEOF
12418 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a dd(1) program that supports iflag=fullblock" >&5
12426 $as_echo_n "checking for a dd(1) program that supports iflag=fullblock... " >&6; }
12428 for i in dd gdd ; do
12429 if "$i" if=/dev/null of=/dev/null count=1 bs=10k 2>/dev/null iflag=fullblock oflag=append ; then
12434 if test -n "$DD" ; then
12435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DD" >&5
12436 $as_echo "$DD" >&6; }
12438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found, using dd" >&5
12439 $as_echo "not found, using dd" >&6; }
12441 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No GNU-compatible dd(1) program found, expect some self-test failures." >&5
12442 $as_echo "$as_me: WARNING: No GNU-compatible dd(1) program found, expect some self-test failures." >&2;}
12446 for ac_header in net/if.h
12448 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
12449 #if HAVE_SYS_TYPES_H
12450 #include <sys/types.h>
12452 #if HAVE_SYS_SOCKET
12453 #include <sys/socket.h>
12457 if test "x$ac_cv_header_net_if_h" = xyes; then :
12458 cat >>confdefs.h <<_ACEOF
12459 #define HAVE_NET_IF_H 1
12466 for ac_func in vprintf
12468 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
12469 if test "x$ac_cv_func_vprintf" = xyes; then :
12470 cat >>confdefs.h <<_ACEOF
12471 #define HAVE_VPRINTF 1
12474 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
12475 if test "x$ac_cv_func__doprnt" = xyes; then :
12477 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
12485 ac_fn_c_check_member "$LINENO" "struct dirent" "d_reclen" "ac_cv_member_struct_dirent_d_reclen" "#include <dirent.h>
12487 if test "x$ac_cv_member_struct_dirent_d_reclen" = xyes; then :
12489 $as_echo "#define HAVE_RECLEN_DIRENT 1" >>confdefs.h
12493 ac_fn_c_check_member "$LINENO" "struct stat" "st_atim" "ac_cv_member_struct_stat_st_atim" "$ac_includes_default"
12494 if test "x$ac_cv_member_struct_stat_st_atim" = xyes; then :
12496 cat >>confdefs.h <<_ACEOF
12497 #define HAVE_STRUCT_STAT_ST_ATIM 1
12503 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "#include <sys/types.h>
12505 if test "x$ac_cv_type_ssize_t" = xyes; then :
12507 $as_echo "#define HAVE_TYPE_SSIZE_T 1" >>confdefs.h
12511 ac_fn_c_check_decl "$LINENO" "llseek" "ac_cv_have_decl_llseek" "#include <unistd.h>
12513 if test "x$ac_cv_have_decl_llseek" = xyes; then :
12515 $as_echo "#define HAVE_LLSEEK_PROTOTYPE 1" >>confdefs.h
12519 ac_fn_c_check_decl "$LINENO" "lseek64" "ac_cv_have_decl_lseek64" "#define _LARGEFILE_SOURCE
12520 #define _LARGEFILE64_SOURCE
12521 #include <unistd.h>
12523 if test "x$ac_cv_have_decl_lseek64" = xyes; then :
12525 $as_echo "#define HAVE_LSEEK64_PROTOTYPE 1" >>confdefs.h
12529 # The cast to long int works around a bug in the HP C Compiler
12530 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12531 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12532 # This bug is HP SR number 8606223364.
12533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
12534 $as_echo_n "checking size of short... " >&6; }
12535 if ${ac_cv_sizeof_short+:} false; then :
12536 $as_echo_n "(cached) " >&6
12538 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
12541 if test "$ac_cv_type_short" = yes; then
12542 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12543 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12544 as_fn_error 77 "cannot compute sizeof (short)
12545 See \`config.log' for more details" "$LINENO" 5; }
12547 ac_cv_sizeof_short=0
12552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
12553 $as_echo "$ac_cv_sizeof_short" >&6; }
12557 cat >>confdefs.h <<_ACEOF
12558 #define SIZEOF_SHORT $ac_cv_sizeof_short
12562 # The cast to long int works around a bug in the HP C Compiler
12563 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12564 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12565 # This bug is HP SR number 8606223364.
12566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
12567 $as_echo_n "checking size of int... " >&6; }
12568 if ${ac_cv_sizeof_int+:} false; then :
12569 $as_echo_n "(cached) " >&6
12571 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
12574 if test "$ac_cv_type_int" = yes; then
12575 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12576 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12577 as_fn_error 77 "cannot compute sizeof (int)
12578 See \`config.log' for more details" "$LINENO" 5; }
12585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
12586 $as_echo "$ac_cv_sizeof_int" >&6; }
12590 cat >>confdefs.h <<_ACEOF
12591 #define SIZEOF_INT $ac_cv_sizeof_int
12595 # The cast to long int works around a bug in the HP C Compiler
12596 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12597 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12598 # This bug is HP SR number 8606223364.
12599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
12600 $as_echo_n "checking size of long... " >&6; }
12601 if ${ac_cv_sizeof_long+:} false; then :
12602 $as_echo_n "(cached) " >&6
12604 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
12607 if test "$ac_cv_type_long" = yes; then
12608 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12609 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12610 as_fn_error 77 "cannot compute sizeof (long)
12611 See \`config.log' for more details" "$LINENO" 5; }
12613 ac_cv_sizeof_long=0
12618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
12619 $as_echo "$ac_cv_sizeof_long" >&6; }
12623 cat >>confdefs.h <<_ACEOF
12624 #define SIZEOF_LONG $ac_cv_sizeof_long
12628 # The cast to long int works around a bug in the HP C Compiler
12629 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12630 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12631 # This bug is HP SR number 8606223364.
12632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
12633 $as_echo_n "checking size of long long... " >&6; }
12634 if ${ac_cv_sizeof_long_long+:} false; then :
12635 $as_echo_n "(cached) " >&6
12637 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
12640 if test "$ac_cv_type_long_long" = yes; then
12641 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12642 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12643 as_fn_error 77 "cannot compute sizeof (long long)
12644 See \`config.log' for more details" "$LINENO" 5; }
12646 ac_cv_sizeof_long_long=0
12651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
12652 $as_echo "$ac_cv_sizeof_long_long" >&6; }
12656 cat >>confdefs.h <<_ACEOF
12657 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
12661 # The cast to long int works around a bug in the HP C Compiler
12662 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12663 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12664 # This bug is HP SR number 8606223364.
12665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
12666 $as_echo_n "checking size of off_t... " >&6; }
12667 if ${ac_cv_sizeof_off_t+:} false; then :
12668 $as_echo_n "(cached) " >&6
12670 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
12673 if test "$ac_cv_type_off_t" = yes; then
12674 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12675 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12676 as_fn_error 77 "cannot compute sizeof (off_t)
12677 See \`config.log' for more details" "$LINENO" 5; }
12679 ac_cv_sizeof_off_t=0
12684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
12685 $as_echo "$ac_cv_sizeof_off_t" >&6; }
12689 cat >>confdefs.h <<_ACEOF
12690 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
12694 # The cast to long int works around a bug in the HP C Compiler
12695 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12696 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12697 # This bug is HP SR number 8606223364.
12698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
12699 $as_echo_n "checking size of time_t... " >&6; }
12700 if ${ac_cv_sizeof_time_t+:} false; then :
12701 $as_echo_n "(cached) " >&6
12703 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" "$ac_includes_default"; then :
12706 if test "$ac_cv_type_time_t" = yes; then
12707 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12708 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12709 as_fn_error 77 "cannot compute sizeof (time_t)
12710 See \`config.log' for more details" "$LINENO" 5; }
12712 ac_cv_sizeof_time_t=0
12717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
12718 $as_echo "$ac_cv_sizeof_time_t" >&6; }
12722 cat >>confdefs.h <<_ACEOF
12723 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
12727 SIZEOF_SHORT=$ac_cv_sizeof_short
12728 SIZEOF_INT=$ac_cv_sizeof_int
12729 SIZEOF_LONG=$ac_cv_sizeof_long
12730 SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
12731 SIZEOF_OFF_T=$ac_cv_sizeof_off_t
12732 SIZEOF_TIME_T=$ac_cv_sizeof_time_t
12739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
12740 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
12741 if ${ac_cv_c_bigendian+:} false; then :
12742 $as_echo_n "(cached) " >&6
12744 ac_cv_c_bigendian=unknown
12745 # See if we're dealing with a universal compiler.
12746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12747 /* end confdefs.h. */
12748 #ifndef __APPLE_CC__
12749 not a universal capable compiler
12754 if ac_fn_c_try_compile "$LINENO"; then :
12756 # Check for potential -arch flags. It is not universal unless
12757 # there are at least two -arch flags with different values.
12760 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
12761 if test -n "$ac_prev"; then
12763 i?86 | x86_64 | ppc | ppc64)
12764 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
12767 ac_cv_c_bigendian=universal
12773 elif test "x$ac_word" = "x-arch"; then
12778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12779 if test $ac_cv_c_bigendian = unknown; then
12780 # See if sys/param.h defines the BYTE_ORDER macro.
12781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12782 /* end confdefs.h. */
12783 #include <sys/types.h>
12784 #include <sys/param.h>
12789 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
12790 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
12792 bogus endian macros
12799 if ac_fn_c_try_compile "$LINENO"; then :
12800 # It does; now see whether it defined to BIG_ENDIAN or not.
12801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12802 /* end confdefs.h. */
12803 #include <sys/types.h>
12804 #include <sys/param.h>
12809 #if BYTE_ORDER != BIG_ENDIAN
12817 if ac_fn_c_try_compile "$LINENO"; then :
12818 ac_cv_c_bigendian=yes
12820 ac_cv_c_bigendian=no
12822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12826 if test $ac_cv_c_bigendian = unknown; then
12827 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
12828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12829 /* end confdefs.h. */
12830 #include <limits.h>
12835 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
12836 bogus endian macros
12843 if ac_fn_c_try_compile "$LINENO"; then :
12844 # It does; now see whether it defined to _BIG_ENDIAN or not.
12845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12846 /* end confdefs.h. */
12847 #include <limits.h>
12852 #ifndef _BIG_ENDIAN
12860 if ac_fn_c_try_compile "$LINENO"; then :
12861 ac_cv_c_bigendian=yes
12863 ac_cv_c_bigendian=no
12865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12869 if test $ac_cv_c_bigendian = unknown; then
12870 # Compile a test program.
12871 if test "$cross_compiling" = yes; then :
12872 # Try to guess by grepping values from an object file.
12873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12874 /* end confdefs.h. */
12875 short int ascii_mm[] =
12876 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12877 short int ascii_ii[] =
12878 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12879 int use_ascii (int i) {
12880 return ascii_mm[i] + ascii_ii[i];
12882 short int ebcdic_ii[] =
12883 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12884 short int ebcdic_mm[] =
12885 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12886 int use_ebcdic (int i) {
12887 return ebcdic_mm[i] + ebcdic_ii[i];
12894 return use_ascii (foo) == use_ebcdic (foo);
12899 if ac_fn_c_try_compile "$LINENO"; then :
12900 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
12901 ac_cv_c_bigendian=yes
12903 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
12904 if test "$ac_cv_c_bigendian" = unknown; then
12905 ac_cv_c_bigendian=no
12907 # finding both strings is unlikely to happen, but who knows?
12908 ac_cv_c_bigendian=unknown
12912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12915 /* end confdefs.h. */
12916 $ac_includes_default
12921 /* Are we little or big endian? From Harbison&Steele. */
12925 char c[sizeof (long int)];
12928 return u.c[sizeof (long int) - 1] == 1;
12934 if ac_fn_c_try_run "$LINENO"; then :
12935 ac_cv_c_bigendian=no
12937 ac_cv_c_bigendian=yes
12939 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12940 conftest.$ac_objext conftest.beam conftest.$ac_ext
12945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
12946 $as_echo "$ac_cv_c_bigendian" >&6; }
12947 case $ac_cv_c_bigendian in #(
12949 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
12955 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
12959 as_fn_error $? "unknown endianness
12960 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
12963 if test $cross_compiling = no; then
12964 BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
12966 CROSS_COMPILE="1" BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
12968 ASM_TYPES_HEADER=./asm_types.h
12970 echo "/* These defines are needed for the public ext2fs.h header file */" \
12972 if grep HAVE_SYS_TYPES_H confdefs.h > tmp_config.$$; then
12973 uniq tmp_config.$$ >> public_config.h
12975 echo "#undef HAVE_SYS_TYPES_H" >> public_config.h
12977 if grep WORDS_BIGENDIAN confdefs.h > tmp_config.$$; then
12978 uniq tmp_config.$$ >> public_config.h
12980 echo "#undef WORDS_BIGENDIAN" >> public_config.h
12982 rm -f tmp_config.$$
12983 PUBLIC_CONFIG_HEADER=./public_config.h
12985 for ac_header in inttypes.h
12987 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
12988 if test "x$ac_cv_header_inttypes_h" = xyes; then :
12989 cat >>confdefs.h <<_ACEOF
12990 #define HAVE_INTTYPES_H 1
12997 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
12998 if test "x$ac_cv_type_intptr_t" = xyes; then :
13000 cat >>confdefs.h <<_ACEOF
13001 #define HAVE_INTPTR_T 1
13007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat has a st_flags field" >&5
13008 $as_echo_n "checking whether struct stat has a st_flags field... " >&6; }
13009 if ${e2fsprogs_cv_struct_st_flags+:} false; then :
13010 $as_echo_n "(cached) " >&6
13012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13013 /* end confdefs.h. */
13014 #include <sys/stat.h>
13018 struct stat stat; stat.st_flags = 0;
13023 if ac_fn_c_try_compile "$LINENO"; then :
13024 e2fsprogs_cv_struct_st_flags=yes
13026 e2fsprogs_cv_struct_st_flags=no
13028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags" >&5
13032 $as_echo "$e2fsprogs_cv_struct_st_flags" >&6; }
13033 if test "$e2fsprogs_cv_struct_st_flags" = yes; then
13034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether st_flags field is useful" >&5
13035 $as_echo_n "checking whether st_flags field is useful... " >&6; }
13036 if ${e2fsprogs_cv_struct_st_flags_immut+:} false; then :
13037 $as_echo_n "(cached) " >&6
13039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13040 /* end confdefs.h. */
13041 #include <sys/stat.h>
13045 struct stat stat; stat.st_flags |= UF_IMMUTABLE;
13050 if ac_fn_c_try_compile "$LINENO"; then :
13051 e2fsprogs_cv_struct_st_flags_immut=yes
13053 e2fsprogs_cv_struct_st_flags_immut=no
13055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags_immut" >&5
13059 $as_echo "$e2fsprogs_cv_struct_st_flags_immut" >&6; }
13060 if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
13062 $as_echo "#define HAVE_STAT_FLAGS 1" >>confdefs.h
13066 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h>
13067 #include <sys/socket.h>
13069 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
13071 cat >>confdefs.h <<_ACEOF
13072 #define HAVE_SA_LEN 1
13077 if test -n "$BLKID_CMT"; then
13078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing blkid_probe_all" >&5
13079 $as_echo_n "checking for library containing blkid_probe_all... " >&6; }
13080 if ${ac_cv_search_blkid_probe_all+:} false; then :
13081 $as_echo_n "(cached) " >&6
13083 ac_func_search_save_LIBS=$LIBS
13084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13085 /* end confdefs.h. */
13087 /* Override any GCC internal prototype to avoid an error.
13088 Use char because int might match the return type of a GCC
13089 builtin and then its argument prototype would still apply. */
13093 char blkid_probe_all ();
13097 return blkid_probe_all ();
13102 for ac_lib in '' blkid; do
13103 if test -z "$ac_lib"; then
13104 ac_res="none required"
13107 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13109 if ac_fn_c_try_link "$LINENO"; then :
13110 ac_cv_search_blkid_probe_all=$ac_res
13112 rm -f core conftest.err conftest.$ac_objext \
13114 if ${ac_cv_search_blkid_probe_all+:} false; then :
13118 if ${ac_cv_search_blkid_probe_all+:} false; then :
13121 ac_cv_search_blkid_probe_all=no
13123 rm conftest.$ac_ext
13124 LIBS=$ac_func_search_save_LIBS
13126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_blkid_probe_all" >&5
13127 $as_echo "$ac_cv_search_blkid_probe_all" >&6; }
13128 ac_res=$ac_cv_search_blkid_probe_all
13129 if test "$ac_res" != no; then :
13130 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13135 if test -n "$DLOPEN_LIB" ; then
13136 ac_cv_func_dlopen=yes
13138 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
13140 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13141 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13142 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13143 cat >>confdefs.h <<_ACEOF
13144 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
13152 $as_echo_n "checking for socket in -lsocket... " >&6; }
13153 if ${ac_cv_lib_socket_socket+:} false; then :
13154 $as_echo_n "(cached) " >&6
13156 ac_check_lib_save_LIBS=$LIBS
13157 LIBS="-lsocket $LIBS"
13158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13159 /* end confdefs.h. */
13161 /* Override any GCC internal prototype to avoid an error.
13162 Use char because int might match the return type of a GCC
13163 builtin and then its argument prototype would still apply. */
13176 if ac_fn_c_try_link "$LINENO"; then :
13177 ac_cv_lib_socket_socket=yes
13179 ac_cv_lib_socket_socket=no
13181 rm -f core conftest.err conftest.$ac_objext \
13182 conftest$ac_exeext conftest.$ac_ext
13183 LIBS=$ac_check_lib_save_LIBS
13185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
13186 $as_echo "$ac_cv_lib_socket_socket" >&6; }
13187 if test "x$ac_cv_lib_socket_socket" = xyes; then :
13188 SOCKET_LIB=-lsocket
13192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for magic_file in -lmagic" >&5
13193 $as_echo_n "checking for magic_file in -lmagic... " >&6; }
13194 if ${ac_cv_lib_magic_magic_file+:} false; then :
13195 $as_echo_n "(cached) " >&6
13197 ac_check_lib_save_LIBS=$LIBS
13198 LIBS="-lmagic $LIBS"
13199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13200 /* end confdefs.h. */
13202 /* Override any GCC internal prototype to avoid an error.
13203 Use char because int might match the return type of a GCC
13204 builtin and then its argument prototype would still apply. */
13208 char magic_file ();
13212 return magic_file ();
13217 if ac_fn_c_try_link "$LINENO"; then :
13218 ac_cv_lib_magic_magic_file=yes
13220 ac_cv_lib_magic_magic_file=no
13222 rm -f core conftest.err conftest.$ac_objext \
13223 conftest$ac_exeext conftest.$ac_ext
13224 LIBS=$ac_check_lib_save_LIBS
13226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_magic_magic_file" >&5
13227 $as_echo "$ac_cv_lib_magic_magic_file" >&6; }
13228 if test "x$ac_cv_lib_magic_magic_file" = xyes; then :
13230 for ac_header in magic.h
13232 ac_fn_c_check_header_mongrel "$LINENO" "magic.h" "ac_cv_header_magic_h" "$ac_includes_default"
13233 if test "x$ac_cv_header_magic_h" = xyes; then :
13234 cat >>confdefs.h <<_ACEOF
13235 #define HAVE_MAGIC_H 1
13244 if test "$ac_cv_func_dlopen" = yes ; then
13245 MAGIC_LIB=$DLOPEN_LIB
13248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
13249 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
13250 if ${ac_cv_lib_rt_clock_gettime+:} false; then :
13251 $as_echo_n "(cached) " >&6
13253 ac_check_lib_save_LIBS=$LIBS
13255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13256 /* end confdefs.h. */
13258 /* Override any GCC internal prototype to avoid an error.
13259 Use char because int might match the return type of a GCC
13260 builtin and then its argument prototype would still apply. */
13264 char clock_gettime ();
13268 return clock_gettime ();
13273 if ac_fn_c_try_link "$LINENO"; then :
13274 ac_cv_lib_rt_clock_gettime=yes
13276 ac_cv_lib_rt_clock_gettime=no
13278 rm -f core conftest.err conftest.$ac_objext \
13279 conftest$ac_exeext conftest.$ac_ext
13280 LIBS=$ac_check_lib_save_LIBS
13282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
13283 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
13284 if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
13285 CLOCK_GETTIME_LIB=-lrt
13291 # Check whether --enable-fuse2fs was given.
13292 if test "${enable_fuse2fs+set}" = set; then :
13293 enableval=$enable_fuse2fs; if test "$enableval" = "no"
13296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling fuse2fs" >&5
13297 $as_echo "Disabling fuse2fs" >&6; }
13299 for ac_header in pthread.h fuse.h
13301 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13302 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#define _FILE_OFFSET_BITS 64
13303 #define FUSE_USE_VERSION 29
13305 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13306 cat >>confdefs.h <<_ACEOF
13307 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13311 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13312 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13313 as_fn_error $? "Cannot find fuse2fs headers.
13314 See \`config.log' for more details" "$LINENO" 5; }
13320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13321 /* end confdefs.h. */
13322 #define FUSE_USE_VERSION 29
13324 #include <linux/fs.h>
13325 #include <linux/falloc.h>
13326 #include <linux/xattr.h>
13337 if ac_fn_c_try_cpp "$LINENO"; then :
13340 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13341 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13342 as_fn_error $? "Cannot find fuse2fs Linux headers.
13343 See \`config.log' for more details" "$LINENO" 5; }
13345 rm -f conftest.err conftest.i conftest.$ac_ext
13347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -losxfuse" >&5
13348 $as_echo_n "checking for fuse_main in -losxfuse... " >&6; }
13349 if ${ac_cv_lib_osxfuse_fuse_main+:} false; then :
13350 $as_echo_n "(cached) " >&6
13352 ac_check_lib_save_LIBS=$LIBS
13353 LIBS="-losxfuse $LIBS"
13354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13355 /* end confdefs.h. */
13357 /* Override any GCC internal prototype to avoid an error.
13358 Use char because int might match the return type of a GCC
13359 builtin and then its argument prototype would still apply. */
13367 return fuse_main ();
13372 if ac_fn_c_try_link "$LINENO"; then :
13373 ac_cv_lib_osxfuse_fuse_main=yes
13375 ac_cv_lib_osxfuse_fuse_main=no
13377 rm -f core conftest.err conftest.$ac_objext \
13378 conftest$ac_exeext conftest.$ac_ext
13379 LIBS=$ac_check_lib_save_LIBS
13381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_osxfuse_fuse_main" >&5
13382 $as_echo "$ac_cv_lib_osxfuse_fuse_main" >&6; }
13383 if test "x$ac_cv_lib_osxfuse_fuse_main" = xyes; then :
13386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -lfuse" >&5
13387 $as_echo_n "checking for fuse_main in -lfuse... " >&6; }
13388 if ${ac_cv_lib_fuse_fuse_main+:} false; then :
13389 $as_echo_n "(cached) " >&6
13391 ac_check_lib_save_LIBS=$LIBS
13392 LIBS="-lfuse $LIBS"
13393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13394 /* end confdefs.h. */
13396 /* Override any GCC internal prototype to avoid an error.
13397 Use char because int might match the return type of a GCC
13398 builtin and then its argument prototype would still apply. */
13406 return fuse_main ();
13411 if ac_fn_c_try_link "$LINENO"; then :
13412 ac_cv_lib_fuse_fuse_main=yes
13414 ac_cv_lib_fuse_fuse_main=no
13416 rm -f core conftest.err conftest.$ac_objext \
13417 conftest$ac_exeext conftest.$ac_ext
13418 LIBS=$ac_check_lib_save_LIBS
13420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fuse_fuse_main" >&5
13421 $as_echo "$ac_cv_lib_fuse_fuse_main" >&6; }
13422 if test "x$ac_cv_lib_fuse_fuse_main" = xyes; then :
13425 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13426 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13427 as_fn_error $? "Cannot find fuse library.
13428 See \`config.log' for more details" "$LINENO" 5; }
13433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling fuse2fs" >&5
13434 $as_echo "Enabling fuse2fs" >&6; }
13438 for ac_header in pthread.h fuse.h
13440 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13441 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#define _FILE_OFFSET_BITS 64
13442 #define FUSE_USE_VERSION 29
13444 # include <linux/fs.h>
13445 # include <linux/falloc.h>
13446 # include <linux/xattr.h>
13449 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13450 cat >>confdefs.h <<_ACEOF
13451 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13460 if test -z "$FUSE_CMT"
13462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -losxfuse" >&5
13463 $as_echo_n "checking for fuse_main in -losxfuse... " >&6; }
13464 if ${ac_cv_lib_osxfuse_fuse_main+:} false; then :
13465 $as_echo_n "(cached) " >&6
13467 ac_check_lib_save_LIBS=$LIBS
13468 LIBS="-losxfuse $LIBS"
13469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13470 /* end confdefs.h. */
13472 /* Override any GCC internal prototype to avoid an error.
13473 Use char because int might match the return type of a GCC
13474 builtin and then its argument prototype would still apply. */
13482 return fuse_main ();
13487 if ac_fn_c_try_link "$LINENO"; then :
13488 ac_cv_lib_osxfuse_fuse_main=yes
13490 ac_cv_lib_osxfuse_fuse_main=no
13492 rm -f core conftest.err conftest.$ac_objext \
13493 conftest$ac_exeext conftest.$ac_ext
13494 LIBS=$ac_check_lib_save_LIBS
13496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_osxfuse_fuse_main" >&5
13497 $as_echo "$ac_cv_lib_osxfuse_fuse_main" >&6; }
13498 if test "x$ac_cv_lib_osxfuse_fuse_main" = xyes; then :
13501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -lfuse" >&5
13502 $as_echo_n "checking for fuse_main in -lfuse... " >&6; }
13503 if ${ac_cv_lib_fuse_fuse_main+:} false; then :
13504 $as_echo_n "(cached) " >&6
13506 ac_check_lib_save_LIBS=$LIBS
13507 LIBS="-lfuse $LIBS"
13508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13509 /* end confdefs.h. */
13511 /* Override any GCC internal prototype to avoid an error.
13512 Use char because int might match the return type of a GCC
13513 builtin and then its argument prototype would still apply. */
13521 return fuse_main ();
13526 if ac_fn_c_try_link "$LINENO"; then :
13527 ac_cv_lib_fuse_fuse_main=yes
13529 ac_cv_lib_fuse_fuse_main=no
13531 rm -f core conftest.err conftest.$ac_objext \
13532 conftest$ac_exeext conftest.$ac_ext
13533 LIBS=$ac_check_lib_save_LIBS
13535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fuse_fuse_main" >&5
13536 $as_echo "$ac_cv_lib_fuse_fuse_main" >&6; }
13537 if test "x$ac_cv_lib_fuse_fuse_main" = xyes; then :
13546 if test -z "$FUSE_CMT"
13548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling fuse2fs by default." >&5
13549 $as_echo "Enabling fuse2fs by default." >&6; }
13556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for optreset" >&5
13557 $as_echo_n "checking for optreset... " >&6; }
13558 if ${ac_cv_have_optreset+:} false; then :
13559 $as_echo_n "(cached) " >&6
13561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13562 /* end confdefs.h. */
13563 #include <unistd.h>
13566 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13567 $EGREP "optreset" >/dev/null 2>&1; then :
13568 ac_cv_have_optreset=yes
13570 ac_cv_have_optreset=no
13575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_optreset" >&5
13576 $as_echo "$ac_cv_have_optreset" >&6; }
13577 if test $ac_cv_have_optreset = yes; then
13579 $as_echo "#define HAVE_OPTRESET 1" >>confdefs.h
13584 echo GL_THREADS_API: ${gl_threads_api}
13585 if test "${gl_threads_api}" != none
13587 ac_fn_c_check_func "$LINENO" "sem_init" "ac_cv_func_sem_init"
13588 if test "x$ac_cv_func_sem_init" = xyes; then :
13591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lpthread" >&5
13592 $as_echo_n "checking for sem_init in -lpthread... " >&6; }
13593 if ${ac_cv_lib_pthread_sem_init+:} false; then :
13594 $as_echo_n "(cached) " >&6
13596 ac_check_lib_save_LIBS=$LIBS
13597 LIBS="-lpthread $LIBS"
13598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13599 /* end confdefs.h. */
13601 /* Override any GCC internal prototype to avoid an error.
13602 Use char because int might match the return type of a GCC
13603 builtin and then its argument prototype would still apply. */
13611 return sem_init ();
13616 if ac_fn_c_try_link "$LINENO"; then :
13617 ac_cv_lib_pthread_sem_init=yes
13619 ac_cv_lib_pthread_sem_init=no
13621 rm -f core conftest.err conftest.$ac_objext \
13622 conftest$ac_exeext conftest.$ac_ext
13623 LIBS=$ac_check_lib_save_LIBS
13625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_sem_init" >&5
13626 $as_echo "$ac_cv_lib_pthread_sem_init" >&6; }
13627 if test "x$ac_cv_lib_pthread_sem_init" = xyes; then :
13628 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
13630 SEM_INIT_LIB=-lpthread
13632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lrt" >&5
13633 $as_echo_n "checking for sem_init in -lrt... " >&6; }
13634 if ${ac_cv_lib_rt_sem_init+:} false; then :
13635 $as_echo_n "(cached) " >&6
13637 ac_check_lib_save_LIBS=$LIBS
13639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13640 /* end confdefs.h. */
13642 /* Override any GCC internal prototype to avoid an error.
13643 Use char because int might match the return type of a GCC
13644 builtin and then its argument prototype would still apply. */
13652 return sem_init ();
13657 if ac_fn_c_try_link "$LINENO"; then :
13658 ac_cv_lib_rt_sem_init=yes
13660 ac_cv_lib_rt_sem_init=no
13662 rm -f core conftest.err conftest.$ac_objext \
13663 conftest$ac_exeext conftest.$ac_ext
13664 LIBS=$ac_check_lib_save_LIBS
13666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sem_init" >&5
13667 $as_echo "$ac_cv_lib_rt_sem_init" >&6; }
13668 if test "x$ac_cv_lib_rt_sem_init" = xyes; then :
13669 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
13673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lposix4" >&5
13674 $as_echo_n "checking for sem_init in -lposix4... " >&6; }
13675 if ${ac_cv_lib_posix4_sem_init+:} false; then :
13676 $as_echo_n "(cached) " >&6
13678 ac_check_lib_save_LIBS=$LIBS
13679 LIBS="-lposix4 $LIBS"
13680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13681 /* end confdefs.h. */
13683 /* Override any GCC internal prototype to avoid an error.
13684 Use char because int might match the return type of a GCC
13685 builtin and then its argument prototype would still apply. */
13693 return sem_init ();
13698 if ac_fn_c_try_link "$LINENO"; then :
13699 ac_cv_lib_posix4_sem_init=yes
13701 ac_cv_lib_posix4_sem_init=no
13703 rm -f core conftest.err conftest.$ac_objext \
13704 conftest$ac_exeext conftest.$ac_ext
13705 LIBS=$ac_check_lib_save_LIBS
13707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sem_init" >&5
13708 $as_echo "$ac_cv_lib_posix4_sem_init" >&6; }
13709 if test "x$ac_cv_lib_posix4_sem_init" = xyes; then :
13710 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
13712 SEM_INIT_LIB=-lposix4
13722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unified diff option" >&5
13723 $as_echo_n "checking for unified diff option... " >&6; }
13724 if diff -u $0 $0 > /dev/null 2>&1 ; then
13729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNI_DIFF_OPTS" >&5
13730 $as_echo "$UNI_DIFF_OPTS" >&6; }
13735 $as_echo "#define HAVE_EXT2_IOCTLS 1" >>confdefs.h
13739 # Check whether --enable-lto was given.
13740 if test "${enable_lto+set}" = set; then :
13741 enableval=$enable_lto;
13746 if test "$enable_lto" = "yes" || test "$enable_lto" = "probe"; then
13747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C compiler supports LTO" >&5
13748 $as_echo_n "checking if C compiler supports LTO... " >&6; }
13749 OLD_CFLAGS="$CFLAGS"
13750 OLD_LDFLAGS="$LDFLAGS"
13751 LTO_FLAGS="-flto -ffat-lto-objects"
13752 CFLAGS="$CFLAGS $LTO_FLAGS"
13753 LDFLAGS="$LDFLAGS $LTO_FLAGS"
13754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13755 /* end confdefs.h. */
13765 if ac_fn_c_try_link "$LINENO"; then :
13766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13767 $as_echo "yes" >&6; }
13768 lto_cflags=$LTO_FLAGS
13769 lto_ldflags=$LTO_FLAGS
13770 # Extract the first word of "gcc-ar", so it can be a program name with args.
13771 set dummy gcc-ar; ac_word=$2
13772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13773 $as_echo_n "checking for $ac_word... " >&6; }
13774 if ${ac_cv_path_gcc_ar+:} false; then :
13775 $as_echo_n "(cached) " >&6
13779 ac_cv_path_gcc_ar="$gcc_ar" # Let the user override the test with a path.
13782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13783 for as_dir in $PATH
13786 test -z "$as_dir" && as_dir=.
13787 for ac_exec_ext in '' $ac_executable_extensions; do
13788 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13789 ac_cv_path_gcc_ar="$as_dir/$ac_word$ac_exec_ext"
13790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13800 gcc_ar=$ac_cv_path_gcc_ar
13801 if test -n "$gcc_ar"; then
13802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_ar" >&5
13803 $as_echo "$gcc_ar" >&6; }
13805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13806 $as_echo "no" >&6; }
13810 # Extract the first word of "gcc-ranlib", so it can be a program name with args.
13811 set dummy gcc-ranlib; ac_word=$2
13812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13813 $as_echo_n "checking for $ac_word... " >&6; }
13814 if ${ac_cv_path_gcc_ranlib+:} false; then :
13815 $as_echo_n "(cached) " >&6
13817 case $gcc_ranlib in
13819 ac_cv_path_gcc_ranlib="$gcc_ranlib" # Let the user override the test with a path.
13822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13823 for as_dir in $PATH
13826 test -z "$as_dir" && as_dir=.
13827 for ac_exec_ext in '' $ac_executable_extensions; do
13828 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13829 ac_cv_path_gcc_ranlib="$as_dir/$ac_word$ac_exec_ext"
13830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13840 gcc_ranlib=$ac_cv_path_gcc_ranlib
13841 if test -n "$gcc_ranlib"; then
13842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_ranlib" >&5
13843 $as_echo "$gcc_ranlib" >&6; }
13845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13846 $as_echo "no" >&6; }
13851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13852 $as_echo "no" >&6; }
13854 rm -f core conftest.err conftest.$ac_objext \
13855 conftest$ac_exeext conftest.$ac_ext
13856 if test -x "$gcc_ar" && test -x "$gcc_ranlib"; then
13859 RANLIB="${gcc_ranlib}"
13861 CFLAGS="${OLD_CFLAGS}"
13862 LDFLAGS="${OLD_LDFLAGS}"
13867 if test "$enable_lto" = "yes" && test "$have_lto" != "yes"; then
13868 as_fn_error $? "LTO not supported by compiler." "$LINENO" 5
13885 E2SCRUB_CMT="$LINUX_CMT"
13888 linux* | gnu* | k*bsd*-gnu)
13889 if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
13891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, root_prefix defaults to ''" >&5
13892 $as_echo "On $host_os systems, root_prefix defaults to ''" >&6; }
13897 linux* | gnu* | k*bsd*-gnu)
13898 if test "$prefix" = NONE ; then
13900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, prefix defaults to /usr" >&5
13901 $as_echo "On $host_os systems, prefix defaults to /usr" >&6; }
13902 if test "$mandir" = '${prefix}/man' ; then
13903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ...and mandir defaults to /usr/share/man" >&5
13904 $as_echo "...and mandir defaults to /usr/share/man" >&6; }
13905 mandir=/usr/share/man
13910 if test "$root_prefix" = NONE ; then
13911 if test "$prefix" = NONE ; then
13912 root_prefix="$ac_default_prefix"
13914 root_prefix="$prefix"
13916 root_bindir=$bindir
13917 root_sbindir=$sbindir
13918 root_libdir=$libdir
13919 root_sysconfdir=$sysconfdir
13921 root_bindir='${root_prefix}/bin'
13922 root_sbindir='${root_prefix}/sbin'
13923 root_libdir='${root_prefix}/lib'
13924 root_sysconfdir='${root_prefix}/etc'
13926 if test "$bindir" != '${exec_prefix}/bin'; then
13927 root_bindir=$bindir
13928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_bindir to $root_bindir" >&5
13929 $as_echo "Setting root_bindir to $root_bindir" >&6; }
13931 if test "$sbindir" != '${exec_prefix}/sbin'; then
13932 root_sbindir=$sbindir
13933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sbindir to $root_sbindir" >&5
13934 $as_echo "Setting root_sbindir to $root_sbindir" >&6; }
13936 if test "$libdir" != '${exec_prefix}/lib'; then
13937 root_libdir=$libdir
13938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_libdir to $root_libdir" >&5
13939 $as_echo "Setting root_libdir to $root_libdir" >&6; }
13941 if test "$sysconfdir" != '${prefix}/etc'; then
13942 root_sysconfdir=$sysconfdir
13943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sysconfdir to $root_sysconfdir" >&5
13944 $as_echo "Setting root_sysconfdir to $root_sysconfdir" >&6; }
13952 # Check whether --with-multiarch was given.
13953 if test "${with_multiarch+set}" = set; then :
13954 withval=$with_multiarch; if test "$withval" = "lib64"; then
13958 libdir=$libdir/$withval
13959 root_libdir=$root_libdir/$withval
13964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can link with -static" >&5
13965 $as_echo_n "checking whether we can link with -static... " >&6; }
13966 if ${ac_cv_e2fsprogs_use_static+:} false; then :
13967 $as_echo_n "(cached) " >&6
13969 SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS_STATIC -static"
13970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13971 /* end confdefs.h. */
13981 if ac_fn_c_try_link "$LINENO"; then :
13982 ac_cv_e2fsprogs_use_static=yes
13984 ac_cv_e2fsprogs_use_static=no
13986 rm -f core conftest.err conftest.$ac_objext \
13987 conftest$ac_exeext conftest.$ac_ext
13988 LDFLAGS=$SAVE_LDFLAGS
13993 ac_cv_e2fsprogs_use_static=no
13996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_e2fsprogs_use_static" >&5
13997 $as_echo "$ac_cv_e2fsprogs_use_static" >&6; }
13998 if test $ac_cv_e2fsprogs_use_static = yes; then
13999 LDFLAGS_STATIC="$LDFLAGS_STATIC -static"
14004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using Apple Darwin / GNU libintl workaround" >&5
14005 $as_echo "Using Apple Darwin / GNU libintl workaround" >&6; }
14007 $as_echo "#define _INTL_REDIRECT_MACROS 1" >>confdefs.h
14011 if test "$cross_compiling" = yes ; then
14014 DO_TEST_SUITE=check
14017 INCLUDES='-I. -I$(top_builddir)/lib -I$(top_srcdir)/lib'
14018 if test -n "$CPPFLAGS" ; then
14019 INCLUDES="$INCLUDES $CPPFLAGS"
14021 if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
14022 INCLUDES=$INCLUDES' -I$(top_builddir)/intl -I$(top_srcdir)/intl'
14024 if test -n "$WITH_DIET_LIBC" ; then
14025 INCLUDES="$INCLUDES -D_REENTRANT"
14030 if test -n "$ac_aux_dir"; then
14031 case "$ac_aux_dir" in
14032 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
14033 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
14036 if test -z "$MKINSTALLDIRS"; then
14037 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
14041 if test $cross_compiling = no; then
14042 BUILD_CFLAGS="$CFLAGS $CPPFLAGS $INCLUDES -DHAVE_CONFIG_H"
14043 BUILD_LDFLAGS="$LDFLAGS"
14047 CFLAGS_SHLIB=${CFLAGS_SHLIB:-$CFLAGS}
14048 CFLAGS_STLIB=${CFLAGS_STLIB:-$CFLAGS}
14049 LDFLAGS_SHLIB=${LDFLAGS_SHLIB:-$LDFLAGS}
14055 # Check whether --with-udev_rules_dir was given.
14056 if test "${with_udev_rules_dir+set}" = set; then :
14057 withval=$with_udev_rules_dir;
14059 with_udev_rules_dir=yes
14062 if test "x${with_udev_rules_dir}" != "xno"; then :
14064 if test "x${with_udev_rules_dir}" = "xyes"; then :
14068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for udev" >&5
14069 $as_echo_n "checking for udev... " >&6; }
14071 if test -n "$udev_CFLAGS"; then
14072 pkg_cv_udev_CFLAGS="$udev_CFLAGS"
14073 elif test -n "$PKG_CONFIG"; then
14074 if test -n "$PKG_CONFIG" && \
14075 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"udev\""; } >&5
14076 ($PKG_CONFIG --exists --print-errors "udev") 2>&5
14078 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14079 test $ac_status = 0; }; then
14080 pkg_cv_udev_CFLAGS=`$PKG_CONFIG --cflags "udev" 2>/dev/null`
14081 test "x$?" != "x0" && pkg_failed=yes
14088 if test -n "$udev_LIBS"; then
14089 pkg_cv_udev_LIBS="$udev_LIBS"
14090 elif test -n "$PKG_CONFIG"; then
14091 if test -n "$PKG_CONFIG" && \
14092 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"udev\""; } >&5
14093 ($PKG_CONFIG --exists --print-errors "udev") 2>&5
14095 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14096 test $ac_status = 0; }; then
14097 pkg_cv_udev_LIBS=`$PKG_CONFIG --libs "udev" 2>/dev/null`
14098 test "x$?" != "x0" && pkg_failed=yes
14108 if test $pkg_failed = yes; then
14109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14110 $as_echo "no" >&6; }
14112 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14113 _pkg_short_errors_supported=yes
14115 _pkg_short_errors_supported=no
14117 if test $_pkg_short_errors_supported = yes; then
14118 udev_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "udev" 2>&1`
14120 udev_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "udev" 2>&1`
14122 # Put the nasty error message in config.log where it belongs
14123 echo "$udev_PKG_ERRORS" >&5
14126 with_udev_rules_dir=""
14128 elif test $pkg_failed = untried; then
14129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14130 $as_echo "no" >&6; }
14132 with_udev_rules_dir=""
14135 udev_CFLAGS=$pkg_cv_udev_CFLAGS
14136 udev_LIBS=$pkg_cv_udev_LIBS
14137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14138 $as_echo "yes" >&6; }
14140 with_udev_rules_dir="$($PKG_CONFIG --variable=udevdir udev)/rules.d"
14145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for udev rules dir" >&5
14146 $as_echo_n "checking for udev rules dir... " >&6; }
14147 pkg_udev_rules_dir="${with_udev_rules_dir}"
14148 if test -n "${pkg_udev_rules_dir}"; then :
14150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${pkg_udev_rules_dir}" >&5
14151 $as_echo "${pkg_udev_rules_dir}" >&6; }
14156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14157 $as_echo "no" >&6; }
14164 have_udev="disabled"
14171 # Check whether --with-crond_dir was given.
14172 if test "${with_crond_dir+set}" = set; then :
14173 withval=$with_crond_dir;
14178 if test "x${with_crond_dir}" != "xno"; then :
14180 if test "x${with_crond_dir}" = "xyes"; then :
14182 if test -d "/etc/cron.d"; then :
14183 with_crond_dir="/etc/cron.d"
14187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for system crontab dir" >&5
14188 $as_echo_n "checking for system crontab dir... " >&6; }
14189 crond_dir="${with_crond_dir}"
14190 if test -n "${crond_dir}"; then :
14192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${crond_dir}" >&5
14193 $as_echo "${crond_dir}" >&6; }
14198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14199 $as_echo "no" >&6; }
14206 have_crond="disabled"
14213 # Check whether --with-systemd_unit_dir was given.
14214 if test "${with_systemd_unit_dir+set}" = set; then :
14215 withval=$with_systemd_unit_dir;
14217 with_systemd_unit_dir=yes
14220 if test "x${with_systemd_unit_dir}" != "xno"; then :
14222 if test "x${with_systemd_unit_dir}" = "xyes"; then :
14226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for systemd" >&5
14227 $as_echo_n "checking for systemd... " >&6; }
14229 if test -n "$systemd_CFLAGS"; then
14230 pkg_cv_systemd_CFLAGS="$systemd_CFLAGS"
14231 elif test -n "$PKG_CONFIG"; then
14232 if test -n "$PKG_CONFIG" && \
14233 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"systemd\""; } >&5
14234 ($PKG_CONFIG --exists --print-errors "systemd") 2>&5
14236 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14237 test $ac_status = 0; }; then
14238 pkg_cv_systemd_CFLAGS=`$PKG_CONFIG --cflags "systemd" 2>/dev/null`
14239 test "x$?" != "x0" && pkg_failed=yes
14246 if test -n "$systemd_LIBS"; then
14247 pkg_cv_systemd_LIBS="$systemd_LIBS"
14248 elif test -n "$PKG_CONFIG"; then
14249 if test -n "$PKG_CONFIG" && \
14250 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"systemd\""; } >&5
14251 ($PKG_CONFIG --exists --print-errors "systemd") 2>&5
14253 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14254 test $ac_status = 0; }; then
14255 pkg_cv_systemd_LIBS=`$PKG_CONFIG --libs "systemd" 2>/dev/null`
14256 test "x$?" != "x0" && pkg_failed=yes
14266 if test $pkg_failed = yes; then
14267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14268 $as_echo "no" >&6; }
14270 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14271 _pkg_short_errors_supported=yes
14273 _pkg_short_errors_supported=no
14275 if test $_pkg_short_errors_supported = yes; then
14276 systemd_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "systemd" 2>&1`
14278 systemd_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "systemd" 2>&1`
14280 # Put the nasty error message in config.log where it belongs
14281 echo "$systemd_PKG_ERRORS" >&5
14284 with_systemd_unit_dir=""
14286 elif test $pkg_failed = untried; then
14287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14288 $as_echo "no" >&6; }
14290 with_systemd_unit_dir=""
14293 systemd_CFLAGS=$pkg_cv_systemd_CFLAGS
14294 systemd_LIBS=$pkg_cv_systemd_LIBS
14295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14296 $as_echo "yes" >&6; }
14298 with_systemd_unit_dir="$($PKG_CONFIG --variable=systemdsystemunitdir systemd)"
14304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for systemd system unit dir" >&5
14305 $as_echo_n "checking for systemd system unit dir... " >&6; }
14306 systemd_system_unit_dir="${with_systemd_unit_dir}"
14307 if test -n "${systemd_system_unit_dir}"; then :
14309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${systemd_system_unit_dir}" >&5
14310 $as_echo "${systemd_system_unit_dir}" >&6; }
14315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14316 $as_echo "no" >&6; }
14323 have_systemd="disabled"
14329 test -d lib || mkdir lib
14330 test -d include || mkdir include
14331 test -d include/linux || mkdir include/linux
14332 test -d include/asm || mkdir include/asm
14333 if test -z "$UUID_CMT" ; then
14334 uuid_out_list="lib/uuid/Makefile lib/uuid/uuid.pc \
14335 lib/uuid/uuid_types.h"
14337 if test -z "$BLKID_CMT" ; then
14338 blkid_out_list="lib/blkid/Makefile lib/blkid/blkid.pc \
14339 lib/blkid/blkid_types.h"
14341 for i in MCONFIG Makefile e2fsprogs.spec \
14342 util/Makefile util/subst.conf util/gen-tarball util/install-symlink \
14343 lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \
14344 lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \
14345 $uuid_out_list $blkid_out_list lib/support/Makefile \
14346 lib/ss/ss.pc lib/et/com_err.pc lib/e2p/e2p.pc lib/ext2fs/ext2fs.pc \
14347 misc/Makefile ext2ed/Makefile e2fsck/Makefile \
14348 debugfs/Makefile tests/Makefile tests/progs/Makefile \
14349 resize/Makefile doc/Makefile intl/Makefile \
14350 intl/libgnuintl.h po/Makefile.in scrub/Makefile; do
14351 if test -d `dirname ${srcdir}/$i` ; then
14352 outlist="$outlist $i"
14355 ac_config_files="$ac_config_files $outlist"
14357 cat >confcache <<\_ACEOF
14358 # This file is a shell script that caches the results of configure
14359 # tests run on this system so they can be shared between configure
14360 # scripts and configure runs, see configure's option --config-cache.
14361 # It is not useful on other systems. If it contains results you don't
14362 # want to keep, you may remove or edit it.
14364 # config.status only pays attention to the cache file if you give it
14365 # the --recheck option to rerun configure.
14367 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14368 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14369 # following values.
14373 # The following way of writing the cache mishandles newlines in values,
14374 # but we know of no workaround that is simple, portable, and efficient.
14375 # So, we kill variables containing newlines.
14376 # Ultrix sh set writes to stderr and can't be redirected directly,
14377 # and sets the high bit in the cache file unless we assign to the vars.
14379 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14380 eval ac_val=\$$ac_var
14384 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14385 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14388 _ | IFS | as_nl) ;; #(
14389 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14390 *) { eval $ac_var=; unset $ac_var;} ;;
14396 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14397 *${as_nl}ac_space=\ *)
14398 # `set' does not quote correctly, so add quotes: double-quote
14399 # substitution turns \\\\ into \\, and sed turns \\ into \.
14402 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14405 # `set' quotes correctly as required by POSIX, so do not add quotes.
14406 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14415 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14417 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14419 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14420 if test -w "$cache_file"; then
14421 if test "x$cache_file" != "x/dev/null"; then
14422 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14423 $as_echo "$as_me: updating cache $cache_file" >&6;}
14424 if test ! -f "$cache_file" || test -h "$cache_file"; then
14425 cat confcache >"$cache_file"
14427 case $cache_file in #(
14429 mv -f confcache "$cache_file"$$ &&
14430 mv -f "$cache_file"$$ "$cache_file" ;; #(
14432 mv -f confcache "$cache_file" ;;
14437 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14438 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14443 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14444 # Let make expand exec_prefix.
14445 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14447 DEFS=-DHAVE_CONFIG_H
14452 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14453 # 1. Remove the extension, and $U if already installed.
14454 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14455 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14456 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14457 # will be set to the directory where LIBOBJS objects are built.
14458 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14459 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14461 LIBOBJS=$ac_libobjs
14463 LTLIBOBJS=$ac_ltlibobjs
14468 : "${CONFIG_STATUS=./config.status}"
14470 ac_clean_files_save=$ac_clean_files
14471 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14472 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14473 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14475 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14477 # Generated by $as_me.
14478 # Run this file to recreate the current configuration.
14479 # Compiler output produced by configure, useful for debugging
14480 # configure, is in config.log if it exists.
14483 ac_cs_recheck=false
14486 SHELL=\${CONFIG_SHELL-$SHELL}
14489 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14490 ## -------------------- ##
14491 ## M4sh Initialization. ##
14492 ## -------------------- ##
14494 # Be more Bourne compatible
14495 DUALCASE=1; export DUALCASE # for MKS sh
14496 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14499 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14500 # is contrary to our usage. Disable this feature.
14501 alias -g '${1+"$@"}'='"$@"'
14502 setopt NO_GLOB_SUBST
14504 case `(set -o) 2>/dev/null` in #(
14516 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14517 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14518 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14519 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14520 # Prefer a ksh shell builtin over an external printf program on Solaris,
14521 # but without wasting forks for bash or zsh.
14522 if test -z "$BASH_VERSION$ZSH_VERSION" \
14523 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14524 as_echo='print -r --'
14525 as_echo_n='print -rn --'
14526 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14527 as_echo='printf %s\n'
14528 as_echo_n='printf %s'
14530 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14531 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14532 as_echo_n='/usr/ucb/echo -n'
14534 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14535 as_echo_n_body='eval
14539 expr "X$arg" : "X\\(.*\\)$as_nl";
14540 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14542 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14544 export as_echo_n_body
14545 as_echo_n='sh -c $as_echo_n_body as_echo'
14547 export as_echo_body
14548 as_echo='sh -c $as_echo_body as_echo'
14551 # The user is always right.
14552 if test "${PATH_SEPARATOR+set}" != set; then
14554 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14555 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14562 # We need space, tab and new line, in precisely that order. Quoting is
14563 # there to prevent editors from complaining about space-tab.
14564 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14565 # splitting by setting IFS to empty value.)
14568 # Find who we are. Look in the path if we contain no directory separator.
14571 *[\\/]* ) as_myself=$0 ;;
14572 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14573 for as_dir in $PATH
14576 test -z "$as_dir" && as_dir=.
14577 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14583 # We did not find ourselves, most probably we were run as `sh COMMAND'
14584 # in which case we are not to be found in the path.
14585 if test "x$as_myself" = x; then
14588 if test ! -f "$as_myself"; then
14589 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14593 # Unset variables that we do not need and which cause bugs (e.g. in
14594 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14595 # suppresses any "Segmentation fault" message there. '((' could
14596 # trigger a bug in pdksh 5.2.14.
14597 for as_var in BASH_ENV ENV MAIL MAILPATH
14598 do eval test x\${$as_var+set} = xset \
14599 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14612 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14615 # as_fn_error STATUS ERROR [LINENO LOG_FD]
14616 # ----------------------------------------
14617 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14618 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14619 # script with STATUS, using 1 if that was 0.
14622 as_status=$1; test $as_status -eq 0 && as_status=1
14624 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14625 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14627 $as_echo "$as_me: error: $2" >&2
14628 as_fn_exit $as_status
14632 # as_fn_set_status STATUS
14633 # -----------------------
14634 # Set $? to STATUS, without forking.
14635 as_fn_set_status ()
14638 } # as_fn_set_status
14640 # as_fn_exit STATUS
14641 # -----------------
14642 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14646 as_fn_set_status $1
14652 # Portably unset VAR.
14655 { eval $1=; unset $1;}
14657 as_unset=as_fn_unset
14658 # as_fn_append VAR VALUE
14659 # ----------------------
14660 # Append the text in VALUE to the end of the definition contained in VAR. Take
14661 # advantage of any shell optimizations that allow amortized linear growth over
14662 # repeated appends, instead of the typical quadratic growth present in naive
14664 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14665 eval 'as_fn_append ()
14676 # as_fn_arith ARG...
14677 # ------------------
14678 # Perform arithmetic evaluation on the ARGs, and store the result in the
14679 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14680 # must be portable across $(()) and expr.
14681 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14682 eval 'as_fn_arith ()
14689 as_val=`expr "$@" || test $? -eq 1`
14694 if expr a : '\(a\)' >/dev/null 2>&1 &&
14695 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14701 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14702 as_basename=basename
14707 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14713 as_me=`$as_basename -- "$0" ||
14714 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14715 X"$0" : 'X\(//\)$' \| \
14716 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14718 sed '/^.*\/\([^/][^/]*\)\/*$/{
14732 # Avoid depending upon Character Ranges.
14733 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14734 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14735 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14736 as_cr_digits='0123456789'
14737 as_cr_alnum=$as_cr_Letters$as_cr_digits
14739 ECHO_C= ECHO_N= ECHO_T=
14740 case `echo -n x` in #(((((
14742 case `echo 'xy\c'` in
14743 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14745 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14752 rm -f conf$$ conf$$.exe conf$$.file
14753 if test -d conf$$.dir; then
14754 rm -f conf$$.dir/conf$$.file
14757 mkdir conf$$.dir 2>/dev/null
14759 if (echo >conf$$.file) 2>/dev/null; then
14760 if ln -s conf$$.file conf$$ 2>/dev/null; then
14762 # ... but there are two gotchas:
14763 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14764 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14765 # In both cases, we have to default to `cp -pR'.
14766 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14768 elif ln conf$$.file conf$$ 2>/dev/null; then
14776 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14777 rmdir conf$$.dir 2>/dev/null
14782 # Create "$as_dir" as a directory, including parents if necessary.
14787 -*) as_dir=./$as_dir;;
14789 test -d "$as_dir" || eval $as_mkdir_p || {
14793 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14794 *) as_qdir=$as_dir;;
14796 as_dirs="'$as_qdir' $as_dirs"
14797 as_dir=`$as_dirname -- "$as_dir" ||
14798 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14799 X"$as_dir" : 'X\(//\)[^/]' \| \
14800 X"$as_dir" : 'X\(//\)$' \| \
14801 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14802 $as_echo X"$as_dir" |
14803 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14807 /^X\(\/\/\)[^/].*/{
14820 test -d "$as_dir" && break
14822 test -z "$as_dirs" || eval "mkdir $as_dirs"
14823 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
14827 if mkdir -p . 2>/dev/null; then
14828 as_mkdir_p='mkdir -p "$as_dir"'
14830 test -d ./-p && rmdir ./-p
14835 # as_fn_executable_p FILE
14836 # -----------------------
14837 # Test if FILE is an executable regular file.
14838 as_fn_executable_p ()
14840 test -f "$1" && test -x "$1"
14841 } # as_fn_executable_p
14842 as_test_x='test -x'
14843 as_executable_p=as_fn_executable_p
14845 # Sed expression to map a string onto a valid CPP name.
14846 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14848 # Sed expression to map a string onto a valid variable name.
14849 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14853 ## ----------------------------------- ##
14854 ## Main body of $CONFIG_STATUS script. ##
14855 ## ----------------------------------- ##
14857 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14859 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14860 # Save the log message, to keep $0 and so on meaningful, and to
14861 # report actual input values of CONFIG_FILES etc. instead of their
14862 # values after options handling.
14864 This file was extended by $as_me, which was
14865 generated by GNU Autoconf 2.69. Invocation command line was
14867 CONFIG_FILES = $CONFIG_FILES
14868 CONFIG_HEADERS = $CONFIG_HEADERS
14869 CONFIG_LINKS = $CONFIG_LINKS
14870 CONFIG_COMMANDS = $CONFIG_COMMANDS
14873 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14878 case $ac_config_files in *"
14879 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14882 case $ac_config_headers in *"
14883 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14887 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14888 # Files that config.status was made for.
14889 config_files="$ac_config_files"
14890 config_headers="$ac_config_headers"
14891 config_commands="$ac_config_commands"
14895 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14897 \`$as_me' instantiates files and other configuration actions
14898 from templates according to the current configuration. Unless the files
14899 and actions are specified as TAGs, all are instantiated by default.
14901 Usage: $0 [OPTION]... [TAG]...
14903 -h, --help print this help, then exit
14904 -V, --version print version number and configuration settings, then exit
14905 --config print configuration, then exit
14906 -q, --quiet, --silent
14907 do not print progress messages
14908 -d, --debug don't remove temporary files
14909 --recheck update $as_me by reconfiguring in the same conditions
14910 --file=FILE[:TEMPLATE]
14911 instantiate the configuration file FILE
14912 --header=FILE[:TEMPLATE]
14913 instantiate the configuration header FILE
14915 Configuration files:
14918 Configuration headers:
14921 Configuration commands:
14924 Report bugs to the package provider."
14927 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14928 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14931 configured by $0, generated by GNU Autoconf 2.69,
14932 with options \\"\$ac_cs_config\\"
14934 Copyright (C) 2012 Free Software Foundation, Inc.
14935 This config.status script is free software; the Free Software Foundation
14936 gives unlimited permission to copy, distribute and modify it."
14943 test -n "\$AWK" || AWK=awk
14946 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14947 # The default lists apply if the user does not specify any file.
14953 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14954 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14958 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14970 # Handling of the options.
14971 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14973 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14974 $as_echo "$ac_cs_version"; exit ;;
14975 --config | --confi | --conf | --con | --co | --c )
14976 $as_echo "$ac_cs_config"; exit ;;
14977 --debug | --debu | --deb | --de | --d | -d )
14979 --file | --fil | --fi | --f )
14982 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14983 '') as_fn_error $? "missing file argument" ;;
14985 as_fn_append CONFIG_FILES " '$ac_optarg'"
14986 ac_need_defaults=false;;
14987 --header | --heade | --head | --hea )
14990 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14992 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14993 ac_need_defaults=false;;
14995 # Conflict between --help and --header
14996 as_fn_error $? "ambiguous option: \`$1'
14997 Try \`$0 --help' for more information.";;
14998 --help | --hel | -h )
14999 $as_echo "$ac_cs_usage"; exit ;;
15000 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15001 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15004 # This is an error.
15005 -*) as_fn_error $? "unrecognized option: \`$1'
15006 Try \`$0 --help' for more information." ;;
15008 *) as_fn_append ac_config_targets " $1"
15009 ac_need_defaults=false ;;
15015 ac_configure_extra_args=
15017 if $ac_cs_silent; then
15019 ac_configure_extra_args="$ac_configure_extra_args --silent"
15023 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15024 if \$ac_cs_recheck; then
15025 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15027 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15028 CONFIG_SHELL='$SHELL'
15029 export CONFIG_SHELL
15034 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15038 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15039 ## Running $as_me. ##
15045 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15049 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
15050 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
15051 # from automake < 1.5.
15052 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
15053 # Capture the value of LINGUAS because we need it to compute CATALOGS.
15054 LINGUAS="${LINGUAS-%UNSET%}"
15059 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15061 # Handling of arguments.
15062 for ac_config_target in $ac_config_targets
15064 case $ac_config_target in
15065 "lib/config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/config.h" ;;
15066 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
15067 "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;;
15069 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15074 # If the user did not use the arguments to specify the items to instantiate,
15075 # then the envvar interface is used. Set only those that are not.
15076 # We use the long form for the default assignment because of an extremely
15077 # bizarre bug on SunOS 4.1.3.
15078 if $ac_need_defaults; then
15079 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15080 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15081 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15084 # Have a temporary directory for convenience. Make it in the build tree
15085 # simply because there is no reason against having it here, and in addition,
15086 # creating and moving files from /tmp can sometimes cause problems.
15087 # Hook for its removal unless debugging.
15088 # Note that there is a small window in which the directory will not be cleaned:
15089 # after its creation but before its name has been assigned to `$tmp'.
15093 trap 'exit_status=$?
15094 : "${ac_tmp:=$tmp}"
15095 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15097 trap 'as_fn_exit 1' 1 2 13 15
15099 # Create a (secure) tmp directory for tmp files.
15102 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15106 tmp=./conf$$-$RANDOM
15107 (umask 077 && mkdir "$tmp")
15108 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15111 # Set up the scripts for CONFIG_FILES section.
15112 # No need to generate them if there are no CONFIG_FILES.
15113 # This happens for instance with `./config.status config.h'.
15114 if test -n "$CONFIG_FILES"; then
15116 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
15117 ac_cs_awk_getline=:
15118 ac_cs_awk_pipe_init=
15119 ac_cs_awk_read_file='
15120 while ((getline aline < (F[key])) > 0)
15123 ac_cs_awk_pipe_fini=
15125 ac_cs_awk_getline=false
15126 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
15127 ac_cs_awk_read_file='
15129 print "cat " F[key] " &&"
15130 '$ac_cs_awk_pipe_init
15131 # The final `:' finishes the AND list.
15132 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
15134 ac_cr=`echo X | tr X '\015'`
15135 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15136 # But we know of no other shell where ac_cr would be empty at this
15137 # point, so we can use a bashism as a fallback.
15138 if test "x$ac_cr" = x; then
15139 eval ac_cr=\$\'\\r\'
15141 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15142 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15145 ac_cs_awk_cr=$ac_cr
15148 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15151 # Create commands to substitute file output variables.
15153 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
15154 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
15155 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
15158 } >conf$$files.sh &&
15159 . ./conf$$files.sh ||
15160 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15161 rm -f conf$$files.sh
15164 echo "cat >conf$$subs.awk <<_ACEOF" &&
15165 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15167 } >conf$$subs.sh ||
15168 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15169 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15171 for ac_last_try in false false false false false :; do
15172 . ./conf$$subs.sh ||
15173 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15175 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15176 if test $ac_delim_n = $ac_delim_num; then
15178 elif $ac_last_try; then
15179 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15181 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15184 rm -f conf$$subs.sh
15186 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15187 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15191 s/^/S["/; s/!.*/"]=/
15201 s/\(.\{148\}\)..*/\1/
15203 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15208 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15215 s/\(.\{148\}\)..*/\1/
15217 s/["\\]/\\&/g; s/^/"/; s/$/"/
15221 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15226 ' <conf$$subs.awk | sed '
15231 ' >>$CONFIG_STATUS || ac_write_fail=1
15232 rm -f conf$$subs.awk
15233 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15235 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15236 for (key in S) S_is_set[key] = 1
15238 \$ac_cs_awk_pipe_init
15242 nfields = split(line, field, "@")
15244 len = length(field[1])
15245 for (i = 2; i < nfields; i++) {
15247 keylen = length(key)
15248 if (S_is_set[key]) {
15250 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15251 len += length(value) + length(field[++i])
15256 if (nfields == 3 && !substed) {
15258 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
15259 \$ac_cs_awk_read_file
15265 \$ac_cs_awk_pipe_fini
15268 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15269 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15270 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15273 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15274 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15277 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15278 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15279 # trailing colons and then remove the whole line if VPATH becomes empty
15280 # (actually we leave an empty line to preserve line numbers).
15281 if test "x$srcdir" = x.; then
15282 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
15300 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15301 fi # test -n "$CONFIG_FILES"
15303 # Set up the scripts for CONFIG_HEADERS section.
15304 # No need to generate them if there are no CONFIG_HEADERS.
15305 # This happens for instance with `./config.status Makefile'.
15306 if test -n "$CONFIG_HEADERS"; then
15307 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
15311 # Transform confdefs.h into an awk script `defines.awk', embedded as
15312 # here-document in config.status, that substitutes the proper values into
15313 # config.h.in to produce config.h.
15315 # Create a delimiter string that does not exist in confdefs.h, to ease
15316 # handling of long lines.
15318 for ac_last_try in false false :; do
15319 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
15320 if test -z "$ac_tt"; then
15322 elif $ac_last_try; then
15323 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
15325 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15329 # For the awk script, D is an array of macro values keyed by name,
15330 # likewise P contains macro parameters if any. Preserve backslash
15331 # newline sequences.
15333 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15335 s/.\{148\}/&'"$ac_delim"'/g
15338 s/^[ ]*#[ ]*define[ ][ ]*/ /
15345 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15347 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15351 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15352 D["\1"]=" \3\\\\\\n"\\/p
15354 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15359 s/.\{148\}/&'"$ac_delim"'/g
15364 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15367 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15369 ' <confdefs.h | sed '
15370 s/'"$ac_delim"'/"\\\
15371 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15373 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15374 for (key in D) D_is_set[key] = 1
15377 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15379 split(line, arg, " ")
15380 if (arg[1] == "#") {
15384 defundef = substr(arg[1], 2)
15387 split(mac1, mac2, "(") #)
15389 prefix = substr(line, 1, index(line, defundef) - 1)
15390 if (D_is_set[macro]) {
15391 # Preserve the white space surrounding the "#".
15392 print prefix "define", macro P[macro] D[macro]
15395 # Replace #undef with comments. This is necessary, for example,
15396 # in the case of _POSIX_SOURCE, which is predefined and required
15397 # on some systems where configure will not decide to define it.
15398 if (defundef == "undef") {
15399 print "/*", prefix defundef, macro, "*/"
15407 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15408 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
15409 fi # test -n "$CONFIG_HEADERS"
15412 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15417 :[FHLC]) ac_mode=$ac_tag; continue;;
15419 case $ac_mode$ac_tag in
15421 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
15422 :[FH]-) ac_tag=-:-;;
15423 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15440 -) ac_f="$ac_tmp/stdin";;
15441 *) # Look for the file first in the build tree, then in the source tree
15442 # (if the path is not absolute). The absolute path cannot be DOS-style,
15443 # because $ac_f cannot contain `:'.
15447 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15449 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15451 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15452 as_fn_append ac_file_inputs " '$ac_f'"
15455 # Let's still pretend it is `configure' which instantiates (i.e., don't
15456 # use $as_me), people would be surprised to read:
15457 # /* config.h. Generated by config.status. */
15458 configure_input='Generated from '`
15459 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15461 if test x"$ac_file" != x-; then
15462 configure_input="$ac_file. $configure_input"
15463 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15464 $as_echo "$as_me: creating $ac_file" >&6;}
15466 # Neutralize special characters interpreted by sed in replacement strings.
15467 case $configure_input in #(
15468 *\&* | *\|* | *\\* )
15469 ac_sed_conf_input=`$as_echo "$configure_input" |
15470 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15471 *) ac_sed_conf_input=$configure_input;;
15475 *:-:* | *:-) cat >"$ac_tmp/stdin" \
15476 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15481 ac_dir=`$as_dirname -- "$ac_file" ||
15482 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15483 X"$ac_file" : 'X\(//\)[^/]' \| \
15484 X"$ac_file" : 'X\(//\)$' \| \
15485 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15486 $as_echo X"$ac_file" |
15487 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15491 /^X\(\/\/\)[^/].*/{
15504 as_dir="$ac_dir"; as_fn_mkdir_p
15508 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15510 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15511 # A ".." for each directory in $ac_dir_suffix.
15512 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15513 case $ac_top_builddir_sub in
15514 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15515 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15518 ac_abs_top_builddir=$ac_pwd
15519 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15520 # for backward compatibility:
15521 ac_top_builddir=$ac_top_build_prefix
15524 .) # We are building in place.
15526 ac_top_srcdir=$ac_top_builddir_sub
15527 ac_abs_top_srcdir=$ac_pwd ;;
15528 [\\/]* | ?:[\\/]* ) # Absolute name.
15529 ac_srcdir=$srcdir$ac_dir_suffix;
15530 ac_top_srcdir=$srcdir
15531 ac_abs_top_srcdir=$srcdir ;;
15532 *) # Relative name.
15533 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15534 ac_top_srcdir=$ac_top_build_prefix$srcdir
15535 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15537 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15547 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15548 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15550 ac_MKDIR_P=$MKDIR_P
15552 [\\/$]* | ?:[\\/]* ) ;;
15553 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15557 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15558 # If the template does not know about datarootdir, expand it.
15559 # FIXME: This hack should be removed a few years after 2.60.
15560 ac_datarootdir_hack=; ac_datarootdir_seen=
15571 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15572 *datarootdir*) ac_datarootdir_seen=yes;;
15573 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15574 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15575 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15577 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15578 ac_datarootdir_hack='
15579 s&@datadir@&$datadir&g
15580 s&@docdir@&$docdir&g
15581 s&@infodir@&$infodir&g
15582 s&@localedir@&$localedir&g
15583 s&@mandir@&$mandir&g
15584 s&\\\${datarootdir}&$datarootdir&g' ;;
15588 # Neutralize VPATH when `$srcdir' = `.'.
15589 # Shell code in configure.ac might set extrasub.
15590 # FIXME: do we really want to maintain this feature?
15591 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15592 ac_sed_extra="$ac_vpsub
15595 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15597 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15598 s|@configure_input@|$ac_sed_conf_input|;t t
15599 s&@top_builddir@&$ac_top_builddir_sub&;t t
15600 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15601 s&@srcdir@&$ac_srcdir&;t t
15602 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15603 s&@top_srcdir@&$ac_top_srcdir&;t t
15604 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15605 s&@builddir@&$ac_builddir&;t t
15606 s&@abs_builddir@&$ac_abs_builddir&;t t
15607 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15608 s&@INSTALL@&$ac_INSTALL&;t t
15609 s&@MKDIR_P@&$ac_MKDIR_P&;t t
15610 $ac_datarootdir_hack
15612 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
15613 if $ac_cs_awk_getline; then
15614 $AWK -f "$ac_tmp/subs.awk"
15616 $AWK -f "$ac_tmp/subs.awk" | $SHELL
15618 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15620 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15621 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15622 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
15623 "$ac_tmp/out"`; test -z "$ac_out"; } &&
15624 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15625 which seems to be undefined. Please make sure it is defined" >&5
15626 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15627 which seems to be undefined. Please make sure it is defined" >&2;}
15629 rm -f "$ac_tmp/stdin"
15631 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15632 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15634 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15640 if test x"$ac_file" != x-; then
15642 $as_echo "/* $configure_input */" \
15643 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15644 } >"$ac_tmp/config.h" \
15645 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15646 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
15647 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15648 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15651 mv "$ac_tmp/config.h" "$ac_file" \
15652 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15655 $as_echo "/* $configure_input */" \
15656 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15657 || as_fn_error $? "could not create -" "$LINENO" 5
15661 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15662 $as_echo "$as_me: executing $ac_file commands" >&6;}
15667 case $ac_file$ac_mode in
15668 "po-directories":C)
15669 for ac_file in $CONFIG_FILES; do
15670 # Support "outfile[:infile[:infile...]]"
15672 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
15674 # PO directories have a Makefile.in generated from Makefile.in.in.
15675 case "$ac_file" in */Makefile.in)
15676 # Adjust a relative srcdir.
15677 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
15678 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
15679 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
15680 # In autoconf-2.13 it is called $ac_given_srcdir.
15681 # In autoconf-2.50 it is called $srcdir.
15682 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
15683 case "$ac_given_srcdir" in
15684 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
15685 /*) top_srcdir="$ac_given_srcdir" ;;
15686 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
15688 # Treat a directory as a PO directory if and only if it has a
15689 # POTFILES.in file. This allows packages to have multiple PO
15690 # directories under different names or in different locations.
15691 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
15692 rm -f "$ac_dir/POTFILES"
15693 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
15694 gt_tab=`printf '\t'`
15695 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"
15696 POMAKEFILEDEPS="POTFILES.in"
15697 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
15698 # on $ac_dir but don't depend on user-specified configuration
15700 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
15701 # The LINGUAS file contains the set of available languages.
15702 if test -n "$OBSOLETE_ALL_LINGUAS"; then
15703 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
15705 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
15706 # Hide the ALL_LINGUAS assignment from automake < 1.5.
15707 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
15708 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
15710 # The set of available languages was given in configure.in.
15711 # Hide the ALL_LINGUAS assignment from automake < 1.5.
15712 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
15715 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
15716 # Compute UPDATEPOFILES
15717 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
15718 # Compute DUMMYPOFILES
15719 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
15721 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
15722 case "$ac_given_srcdir" in
15724 *) srcdirpre='$(srcdir)/' ;;
15730 for lang in $ALL_LINGUAS; do
15731 POFILES="$POFILES $srcdirpre$lang.po"
15732 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
15733 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
15734 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
15736 # CATALOGS depends on both $ac_dir and the user's LINGUAS
15737 # environment variable.
15739 if test -n "$ALL_LINGUAS"; then
15740 for presentlang in $ALL_LINGUAS; do
15742 if test "%UNSET%" != "$LINGUAS"; then
15743 desiredlanguages="$LINGUAS"
15745 desiredlanguages="$ALL_LINGUAS"
15747 for desiredlang in $desiredlanguages; do
15748 # Use the presentlang catalog if desiredlang is
15749 # a. equal to presentlang, or
15750 # b. a variant of presentlang (because in this case,
15751 # presentlang can be used as a fallback for messages
15752 # which are not translated in the desiredlang catalog).
15753 case "$desiredlang" in
15754 "$presentlang"*) useit=yes;;
15757 if test $useit = yes; then
15758 INST_LINGUAS="$INST_LINGUAS $presentlang"
15763 if test -n "$INST_LINGUAS"; then
15764 for lang in $INST_LINGUAS; do
15765 CATALOGS="$CATALOGS $lang.gmo"
15768 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
15769 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"
15770 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
15771 if test -f "$f"; then
15773 *.orig | *.bak | *~) ;;
15774 *) cat "$f" >> "$ac_dir/Makefile" ;;
15789 ac_clean_files=$ac_clean_files_save
15791 test $ac_write_fail = 0 ||
15792 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15795 # configure is writing to config.log, and then calls config.status.
15796 # config.status does its own redirection, appending to config.log.
15797 # Unfortunately, on DOS this fails, as config.log is still kept open
15798 # by configure, so config.status won't be able to write to it; its
15799 # output is simply discarded. So we exec the FD to /dev/null,
15800 # effectively closing config.log, so it can be properly (re)opened and
15801 # appended to by config.status. When coming back to configure, we
15802 # need to make the FD available again.
15803 if test "$no_create" != yes; then
15805 ac_config_status_args=
15806 test "$silent" = yes &&
15807 ac_config_status_args="$ac_config_status_args --quiet"
15809 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15811 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15812 # would make configure fail if this is the last instruction.
15813 $ac_cs_success || as_fn_exit 1
15815 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15816 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15817 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15820 if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi