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
679 INTL_LIBTOOL_SUFFIX_PREFIX
686 BUILD_INCLUDED_LIBINTL
696 INTL_DEFAULT_VERBOSITY
715 XGETTEXT_EXTRA_OPTIONS
723 GETTEXT_MACRO_VERSION
831 program_transform_name
842 ac_subst_files='MCONFIG
848 PUBLIC_CONFIG_HEADER'
850 enable_option_checking
856 enable_maintainer_mode
857 enable_symlink_install
858 enable_relative_symlinks
859 enable_symlink_relative_symlinks
861 enable_verbose_makecmds
878 enable_e2initrd_helper
884 enable_bmap_stats_ops
891 with_included_gettext
896 ac_precious_vars='build_alias
910 # Initialize some variables set by options.
912 ac_init_version=false
913 ac_unrecognized_opts=
915 # The variables have the same names as the options, with
916 # dashes changed to underlines.
924 program_transform_name=s,x,x,
932 # Installation directory options.
933 # These are left unexpanded so users can "make install exec_prefix=/foo"
934 # and all the variables that are supposed to be based on exec_prefix
935 # by default will actually change.
936 # Use braces instead of parens because sh, perl, etc. also accept them.
937 # (The list follows the same order as the GNU Coding Standards.)
938 bindir='${exec_prefix}/bin'
939 sbindir='${exec_prefix}/sbin'
940 libexecdir='${exec_prefix}/libexec'
941 datarootdir='${prefix}/share'
942 datadir='${datarootdir}'
943 sysconfdir='${prefix}/etc'
944 sharedstatedir='${prefix}/com'
945 localstatedir='${prefix}/var'
946 runstatedir='${localstatedir}/run'
947 includedir='${prefix}/include'
948 oldincludedir='/usr/include'
949 docdir='${datarootdir}/doc/${PACKAGE}'
950 infodir='${datarootdir}/info'
955 libdir='${exec_prefix}/lib'
956 localedir='${datarootdir}/locale'
957 mandir='${datarootdir}/man'
963 # If the previous option needs an argument, assign it.
964 if test -n "$ac_prev"; then
965 eval $ac_prev=\$ac_option
971 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
976 # Accept the important Cygnus configure options, so we can diagnose typos.
978 case $ac_dashdash$ac_option in
982 -bindir | --bindir | --bindi | --bind | --bin | --bi)
984 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
987 -build | --build | --buil | --bui | --bu)
988 ac_prev=build_alias ;;
989 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
990 build_alias=$ac_optarg ;;
992 -cache-file | --cache-file | --cache-fil | --cache-fi \
993 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
994 ac_prev=cache_file ;;
995 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
996 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
997 cache_file=$ac_optarg ;;
1000 cache_file=config.cache ;;
1002 -datadir | --datadir | --datadi | --datad)
1004 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1005 datadir=$ac_optarg ;;
1007 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1008 | --dataroo | --dataro | --datar)
1009 ac_prev=datarootdir ;;
1010 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1011 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1012 datarootdir=$ac_optarg ;;
1014 -disable-* | --disable-*)
1015 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1016 # Reject names that are not valid shell variable names.
1017 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1018 as_fn_error $? "invalid feature name: $ac_useropt"
1019 ac_useropt_orig=$ac_useropt
1020 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1021 case $ac_user_opts in
1023 "enable_$ac_useropt"
1025 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1026 ac_unrecognized_sep=', ';;
1028 eval enable_$ac_useropt=no ;;
1030 -docdir | --docdir | --docdi | --doc | --do)
1032 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1033 docdir=$ac_optarg ;;
1035 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1037 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1038 dvidir=$ac_optarg ;;
1040 -enable-* | --enable-*)
1041 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1042 # Reject names that are not valid shell variable names.
1043 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1044 as_fn_error $? "invalid feature name: $ac_useropt"
1045 ac_useropt_orig=$ac_useropt
1046 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1047 case $ac_user_opts in
1049 "enable_$ac_useropt"
1051 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1052 ac_unrecognized_sep=', ';;
1054 eval enable_$ac_useropt=\$ac_optarg ;;
1056 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1057 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1058 | --exec | --exe | --ex)
1059 ac_prev=exec_prefix ;;
1060 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1061 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1062 | --exec=* | --exe=* | --ex=*)
1063 exec_prefix=$ac_optarg ;;
1065 -gas | --gas | --ga | --g)
1066 # Obsolete; use --with-gas.
1069 -help | --help | --hel | --he | -h)
1070 ac_init_help=long ;;
1071 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1072 ac_init_help=recursive ;;
1073 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1074 ac_init_help=short ;;
1076 -host | --host | --hos | --ho)
1077 ac_prev=host_alias ;;
1078 -host=* | --host=* | --hos=* | --ho=*)
1079 host_alias=$ac_optarg ;;
1081 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1083 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1085 htmldir=$ac_optarg ;;
1087 -includedir | --includedir | --includedi | --included | --include \
1088 | --includ | --inclu | --incl | --inc)
1089 ac_prev=includedir ;;
1090 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1091 | --includ=* | --inclu=* | --incl=* | --inc=*)
1092 includedir=$ac_optarg ;;
1094 -infodir | --infodir | --infodi | --infod | --info | --inf)
1096 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1097 infodir=$ac_optarg ;;
1099 -libdir | --libdir | --libdi | --libd)
1101 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1102 libdir=$ac_optarg ;;
1104 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1105 | --libexe | --libex | --libe)
1106 ac_prev=libexecdir ;;
1107 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1108 | --libexe=* | --libex=* | --libe=*)
1109 libexecdir=$ac_optarg ;;
1111 -localedir | --localedir | --localedi | --localed | --locale)
1112 ac_prev=localedir ;;
1113 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1114 localedir=$ac_optarg ;;
1116 -localstatedir | --localstatedir | --localstatedi | --localstated \
1117 | --localstate | --localstat | --localsta | --localst | --locals)
1118 ac_prev=localstatedir ;;
1119 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1120 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1121 localstatedir=$ac_optarg ;;
1123 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1125 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1126 mandir=$ac_optarg ;;
1128 -nfp | --nfp | --nf)
1129 # Obsolete; use --without-fp.
1132 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1133 | --no-cr | --no-c | -n)
1136 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1137 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1140 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1141 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1142 | --oldin | --oldi | --old | --ol | --o)
1143 ac_prev=oldincludedir ;;
1144 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1145 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1146 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1147 oldincludedir=$ac_optarg ;;
1149 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1151 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1152 prefix=$ac_optarg ;;
1154 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1155 | --program-pre | --program-pr | --program-p)
1156 ac_prev=program_prefix ;;
1157 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1158 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1159 program_prefix=$ac_optarg ;;
1161 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1162 | --program-suf | --program-su | --program-s)
1163 ac_prev=program_suffix ;;
1164 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1165 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1166 program_suffix=$ac_optarg ;;
1168 -program-transform-name | --program-transform-name \
1169 | --program-transform-nam | --program-transform-na \
1170 | --program-transform-n | --program-transform- \
1171 | --program-transform | --program-transfor \
1172 | --program-transfo | --program-transf \
1173 | --program-trans | --program-tran \
1174 | --progr-tra | --program-tr | --program-t)
1175 ac_prev=program_transform_name ;;
1176 -program-transform-name=* | --program-transform-name=* \
1177 | --program-transform-nam=* | --program-transform-na=* \
1178 | --program-transform-n=* | --program-transform-=* \
1179 | --program-transform=* | --program-transfor=* \
1180 | --program-transfo=* | --program-transf=* \
1181 | --program-trans=* | --program-tran=* \
1182 | --progr-tra=* | --program-tr=* | --program-t=*)
1183 program_transform_name=$ac_optarg ;;
1185 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1187 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1188 pdfdir=$ac_optarg ;;
1190 -psdir | --psdir | --psdi | --psd | --ps)
1192 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1195 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1196 | -silent | --silent | --silen | --sile | --sil)
1199 -runstatedir | --runstatedir | --runstatedi | --runstated \
1200 | --runstate | --runstat | --runsta | --runst | --runs \
1201 | --run | --ru | --r)
1202 ac_prev=runstatedir ;;
1203 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1204 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1205 | --run=* | --ru=* | --r=*)
1206 runstatedir=$ac_optarg ;;
1208 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1210 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1212 sbindir=$ac_optarg ;;
1214 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1215 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1216 | --sharedst | --shareds | --shared | --share | --shar \
1218 ac_prev=sharedstatedir ;;
1219 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1220 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1221 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1223 sharedstatedir=$ac_optarg ;;
1225 -site | --site | --sit)
1227 -site=* | --site=* | --sit=*)
1230 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1232 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1233 srcdir=$ac_optarg ;;
1235 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1236 | --syscon | --sysco | --sysc | --sys | --sy)
1237 ac_prev=sysconfdir ;;
1238 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1239 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1240 sysconfdir=$ac_optarg ;;
1242 -target | --target | --targe | --targ | --tar | --ta | --t)
1243 ac_prev=target_alias ;;
1244 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1245 target_alias=$ac_optarg ;;
1247 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1250 -version | --version | --versio | --versi | --vers | -V)
1251 ac_init_version=: ;;
1254 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1255 # Reject names that are not valid shell variable names.
1256 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1257 as_fn_error $? "invalid package name: $ac_useropt"
1258 ac_useropt_orig=$ac_useropt
1259 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1260 case $ac_user_opts in
1264 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1265 ac_unrecognized_sep=', ';;
1267 eval with_$ac_useropt=\$ac_optarg ;;
1269 -without-* | --without-*)
1270 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1271 # Reject names that are not valid shell variable names.
1272 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1273 as_fn_error $? "invalid package name: $ac_useropt"
1274 ac_useropt_orig=$ac_useropt
1275 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1276 case $ac_user_opts in
1280 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1281 ac_unrecognized_sep=', ';;
1283 eval with_$ac_useropt=no ;;
1286 # Obsolete; use --with-x.
1289 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1290 | --x-incl | --x-inc | --x-in | --x-i)
1291 ac_prev=x_includes ;;
1292 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1293 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1294 x_includes=$ac_optarg ;;
1296 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1297 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1298 ac_prev=x_libraries ;;
1299 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1300 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1301 x_libraries=$ac_optarg ;;
1303 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1304 Try \`$0 --help' for more information"
1308 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1309 # Reject names that are not valid shell variable names.
1310 case $ac_envvar in #(
1311 '' | [0-9]* | *[!_$as_cr_alnum]* )
1312 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1314 eval $ac_envvar=\$ac_optarg
1315 export $ac_envvar ;;
1318 # FIXME: should be removed in autoconf 3.0.
1319 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1320 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1321 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1322 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1328 if test -n "$ac_prev"; then
1329 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1330 as_fn_error $? "missing argument to $ac_option"
1333 if test -n "$ac_unrecognized_opts"; then
1334 case $enable_option_checking in
1336 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1337 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1341 # Check all directory arguments for consistency.
1342 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1343 datadir sysconfdir sharedstatedir localstatedir includedir \
1344 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1345 libdir localedir mandir runstatedir
1347 eval ac_val=\$$ac_var
1348 # Remove trailing slashes.
1351 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1352 eval $ac_var=\$ac_val;;
1354 # Be sure to have absolute directory names.
1356 [\\/$]* | ?:[\\/]* ) continue;;
1357 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1359 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1362 # There might be people who depend on the old broken behavior: `$host'
1363 # used to hold the argument of --host etc.
1364 # FIXME: To remove some day.
1367 target=$target_alias
1369 # FIXME: To remove some day.
1370 if test "x$host_alias" != x; then
1371 if test "x$build_alias" = x; then
1372 cross_compiling=maybe
1373 elif test "x$build_alias" != "x$host_alias"; then
1379 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1381 test "$silent" = yes && exec 6>/dev/null
1384 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1385 ac_ls_di=`ls -di .` &&
1386 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1387 as_fn_error $? "working directory cannot be determined"
1388 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1389 as_fn_error $? "pwd does not report name of working directory"
1392 # Find the source files, if location was not specified.
1393 if test -z "$srcdir"; then
1394 ac_srcdir_defaulted=yes
1395 # Try the directory containing this script, then the parent directory.
1396 ac_confdir=`$as_dirname -- "$as_myself" ||
1397 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1398 X"$as_myself" : 'X\(//\)[^/]' \| \
1399 X"$as_myself" : 'X\(//\)$' \| \
1400 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1401 $as_echo X"$as_myself" |
1402 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1420 if test ! -r "$srcdir/$ac_unique_file"; then
1424 ac_srcdir_defaulted=no
1426 if test ! -r "$srcdir/$ac_unique_file"; then
1427 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1428 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1430 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1432 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1434 # When building in place, set srcdir=.
1435 if test "$ac_abs_confdir" = "$ac_pwd"; then
1438 # Remove unnecessary trailing slashes from srcdir.
1439 # Double slashes in file names in object file debugging info
1440 # mess up M-x gdb in Emacs.
1442 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1444 for ac_var in $ac_precious_vars; do
1445 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1446 eval ac_env_${ac_var}_value=\$${ac_var}
1447 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1448 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1452 # Report the --help message.
1454 if test "$ac_init_help" = "long"; then
1455 # Omit some internal or obsolete options to make the list less imposing.
1456 # This message is too long to be a string in the A/UX 3.1 sh.
1458 \`configure' configures this package to adapt to many kinds of systems.
1460 Usage: $0 [OPTION]... [VAR=VALUE]...
1462 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1463 VAR=VALUE. See below for descriptions of some of the useful variables.
1465 Defaults for the options are specified in brackets.
1468 -h, --help display this help and exit
1469 --help=short display options specific to this package
1470 --help=recursive display the short help of all the included packages
1471 -V, --version display version information and exit
1472 -q, --quiet, --silent do not print \`checking ...' messages
1473 --cache-file=FILE cache test results in FILE [disabled]
1474 -C, --config-cache alias for \`--cache-file=config.cache'
1475 -n, --no-create do not create output files
1476 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1478 Installation directories:
1479 --prefix=PREFIX install architecture-independent files in PREFIX
1480 [$ac_default_prefix]
1481 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1484 By default, \`make install' will install all the files in
1485 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1486 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1487 for instance \`--prefix=\$HOME'.
1489 For better control, use the options below.
1491 Fine tuning of the installation directories:
1492 --bindir=DIR user executables [EPREFIX/bin]
1493 --sbindir=DIR system admin executables [EPREFIX/sbin]
1494 --libexecdir=DIR program executables [EPREFIX/libexec]
1495 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1496 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1497 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1498 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1499 --libdir=DIR object code libraries [EPREFIX/lib]
1500 --includedir=DIR C header files [PREFIX/include]
1501 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1502 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1503 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1504 --infodir=DIR info documentation [DATAROOTDIR/info]
1505 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1506 --mandir=DIR man documentation [DATAROOTDIR/man]
1507 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1508 --htmldir=DIR html documentation [DOCDIR]
1509 --dvidir=DIR dvi documentation [DOCDIR]
1510 --pdfdir=DIR pdf documentation [DOCDIR]
1511 --psdir=DIR ps documentation [DOCDIR]
1517 --build=BUILD configure for building on BUILD [guessed]
1518 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1522 if test -n "$ac_init_help"; then
1527 --disable-option-checking ignore unrecognized --enable/--with options
1528 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1529 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1530 --enable-maintainer-mode enable makefile rules useful for maintainers
1531 --enable-symlink-install use symlinks when installing instead of hard links
1532 --enable-relative-symlinks use relative symlinks when installing
1534 --enable-symlink-build use symlinks while building instead of hard links
1535 --enable-verbose-makecmds enable verbose make command output
1536 --enable-elf-shlibs select ELF shared libraries
1537 --enable-bsd-shlibs select BSD shared libraries
1538 --enable-profile build profiling libraries
1539 --enable-gcov build for coverage testing using gcov
1540 --enable-hardening build for coverage testing using gcov
1541 --enable-jbd-debug enable journal debugging
1542 --enable-blkid-debug enable blkid debugging
1543 --disable-testio-debug disable the use of the test I/O manager for debugging
1544 --enable-libuuid build and use private uuid library
1545 --enable-libblkid build and use private blkid library
1546 --disable-backtrace disable use backtrace
1547 --disable-debugfs disable support of debugfs program
1548 --disable-imager disable support of e2image program
1549 --disable-resizer disable support of e2resize program
1550 --disable-defrag disable support of e4defrag program
1551 --enable-fsck build fsck wrapper program
1552 --enable-e2initrd-helper build e2initrd-helper program
1553 --disable-tls disable use of thread local support
1554 --disable-uuidd disable building the uuid daemon
1555 --disable-mmp disable support mmp, Multi Mount Protection
1556 --disable-tdb disable tdb support
1557 --disable-bmap-stats disable collection of bitmap stats.
1558 --enable-bmap-stats-ops enable collection of additional bitmap stats
1559 --disable-nls do not use Native Language Support
1560 --enable-threads={posix|solaris|pth|windows}
1561 specify multithreading API
1562 --disable-threads build without multithread safety
1563 --disable-rpath do not hardcode runtime library paths
1564 --disable-fuse2fs do not build fuse2fs
1567 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1568 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1569 --with-diet-libc use diet libc
1570 --with-cc no longer supported, use CC= instead
1571 --with-ccopts no longer supported, use CFLAGS= instead
1572 --with-ldopts no longer supported, use LDFLAGS= instead
1573 --with-root-prefix=PREFIX override prefix variable for files to be placed in the root
1574 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1575 --with-libpth-prefix[=DIR] search for libpth in DIR/include and DIR/lib
1576 --without-libpth-prefix don't search for libpth in includedir and libdir
1577 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1578 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1579 --with-included-gettext use the GNU gettext library included here
1580 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1581 --without-libintl-prefix don't search for libintl in includedir and libdir
1582 --with-multiarch=ARCH specify the multiarch triplet
1584 Some influential environment variables:
1585 CC C compiler command
1586 CFLAGS C compiler flags
1587 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1588 nonstandard directory <lib dir>
1589 LIBS libraries to pass to the linker, e.g. -l<library>
1590 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1591 you have headers in a nonstandard directory <include dir>
1593 PKG_CONFIG path to pkg-config utility
1595 directories to add to pkg-config's search path
1597 path overriding pkg-config's built-in search path
1599 Use these variables to override the choices made by `configure' or to help
1600 it to find libraries and programs with nonstandard names/locations.
1602 Report bugs to the package provider.
1607 if test "$ac_init_help" = "recursive"; then
1608 # If there are subdirs, report their specific --help.
1609 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1610 test -d "$ac_dir" ||
1611 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1616 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1618 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1619 # A ".." for each directory in $ac_dir_suffix.
1620 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1621 case $ac_top_builddir_sub in
1622 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1623 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1626 ac_abs_top_builddir=$ac_pwd
1627 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1628 # for backward compatibility:
1629 ac_top_builddir=$ac_top_build_prefix
1632 .) # We are building in place.
1634 ac_top_srcdir=$ac_top_builddir_sub
1635 ac_abs_top_srcdir=$ac_pwd ;;
1636 [\\/]* | ?:[\\/]* ) # Absolute name.
1637 ac_srcdir=$srcdir$ac_dir_suffix;
1638 ac_top_srcdir=$srcdir
1639 ac_abs_top_srcdir=$srcdir ;;
1641 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1642 ac_top_srcdir=$ac_top_build_prefix$srcdir
1643 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1645 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1647 cd "$ac_dir" || { ac_status=$?; continue; }
1648 # Check for guested configure.
1649 if test -f "$ac_srcdir/configure.gnu"; then
1651 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1652 elif test -f "$ac_srcdir/configure"; then
1654 $SHELL "$ac_srcdir/configure" --help=recursive
1656 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1658 cd "$ac_pwd" || { ac_status=$?; break; }
1662 test -n "$ac_init_help" && exit $ac_status
1663 if $ac_init_version; then
1666 generated by GNU Autoconf 2.69
1668 Copyright (C) 2012 Free Software Foundation, Inc.
1669 This configure script is free software; the Free Software Foundation
1670 gives unlimited permission to copy, distribute and modify it.
1675 ## ------------------------ ##
1676 ## Autoconf initialization. ##
1677 ## ------------------------ ##
1679 # ac_fn_c_try_compile LINENO
1680 # --------------------------
1681 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1682 ac_fn_c_try_compile ()
1684 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1685 rm -f conftest.$ac_objext
1686 if { { ac_try="$ac_compile"
1688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1689 *) ac_try_echo=$ac_try;;
1691 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1692 $as_echo "$ac_try_echo"; } >&5
1693 (eval "$ac_compile") 2>conftest.err
1695 if test -s conftest.err; then
1696 grep -v '^ *+' conftest.err >conftest.er1
1697 cat conftest.er1 >&5
1698 mv -f conftest.er1 conftest.err
1700 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1701 test $ac_status = 0; } && {
1702 test -z "$ac_c_werror_flag" ||
1703 test ! -s conftest.err
1704 } && test -s conftest.$ac_objext; then :
1707 $as_echo "$as_me: failed program was:" >&5
1708 sed 's/^/| /' conftest.$ac_ext >&5
1712 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1713 as_fn_set_status $ac_retval
1715 } # ac_fn_c_try_compile
1717 # ac_fn_c_try_link LINENO
1718 # -----------------------
1719 # Try to link conftest.$ac_ext, and return whether this succeeded.
1722 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1723 rm -f conftest.$ac_objext conftest$ac_exeext
1724 if { { ac_try="$ac_link"
1726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1727 *) ac_try_echo=$ac_try;;
1729 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1730 $as_echo "$ac_try_echo"; } >&5
1731 (eval "$ac_link") 2>conftest.err
1733 if test -s conftest.err; then
1734 grep -v '^ *+' conftest.err >conftest.er1
1735 cat conftest.er1 >&5
1736 mv -f conftest.er1 conftest.err
1738 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1739 test $ac_status = 0; } && {
1740 test -z "$ac_c_werror_flag" ||
1741 test ! -s conftest.err
1742 } && test -s conftest$ac_exeext && {
1743 test "$cross_compiling" = yes ||
1744 test -x conftest$ac_exeext
1748 $as_echo "$as_me: failed program was:" >&5
1749 sed 's/^/| /' conftest.$ac_ext >&5
1753 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1754 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1755 # interfere with the next link command; also delete a directory that is
1756 # left behind by Apple's compiler. We do this before executing the actions.
1757 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1758 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1759 as_fn_set_status $ac_retval
1761 } # ac_fn_c_try_link
1763 # ac_fn_c_try_cpp LINENO
1764 # ----------------------
1765 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1768 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1769 if { { ac_try="$ac_cpp conftest.$ac_ext"
1771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1772 *) ac_try_echo=$ac_try;;
1774 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1775 $as_echo "$ac_try_echo"; } >&5
1776 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1778 if test -s conftest.err; then
1779 grep -v '^ *+' conftest.err >conftest.er1
1780 cat conftest.er1 >&5
1781 mv -f conftest.er1 conftest.err
1783 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1784 test $ac_status = 0; } > conftest.i && {
1785 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1786 test ! -s conftest.err
1790 $as_echo "$as_me: failed program was:" >&5
1791 sed 's/^/| /' conftest.$ac_ext >&5
1795 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1796 as_fn_set_status $ac_retval
1800 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1801 # -------------------------------------------------------
1802 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1803 # the include files in INCLUDES and setting the cache variable VAR
1805 ac_fn_c_check_header_mongrel ()
1807 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1808 if eval \${$3+:} false; then :
1809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1810 $as_echo_n "checking for $2... " >&6; }
1811 if eval \${$3+:} false; then :
1812 $as_echo_n "(cached) " >&6
1815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1816 $as_echo "$ac_res" >&6; }
1818 # Is the header compilable?
1819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1820 $as_echo_n "checking $2 usability... " >&6; }
1821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1822 /* end confdefs.h. */
1826 if ac_fn_c_try_compile "$LINENO"; then :
1827 ac_header_compiler=yes
1829 ac_header_compiler=no
1831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1833 $as_echo "$ac_header_compiler" >&6; }
1835 # Is the header present?
1836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1837 $as_echo_n "checking $2 presence... " >&6; }
1838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1839 /* end confdefs.h. */
1842 if ac_fn_c_try_cpp "$LINENO"; then :
1843 ac_header_preproc=yes
1845 ac_header_preproc=no
1847 rm -f conftest.err conftest.i conftest.$ac_ext
1848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1849 $as_echo "$ac_header_preproc" >&6; }
1851 # So? What about this header?
1852 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1854 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1855 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1856 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1857 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1860 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1861 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1862 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1863 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1864 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1865 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1866 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1867 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1868 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1869 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1873 $as_echo_n "checking for $2... " >&6; }
1874 if eval \${$3+:} false; then :
1875 $as_echo_n "(cached) " >&6
1877 eval "$3=\$ac_header_compiler"
1880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1881 $as_echo "$ac_res" >&6; }
1883 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1885 } # ac_fn_c_check_header_mongrel
1887 # ac_fn_c_try_run LINENO
1888 # ----------------------
1889 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1890 # that executables *can* be run.
1893 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1894 if { { ac_try="$ac_link"
1896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1897 *) ac_try_echo=$ac_try;;
1899 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1900 $as_echo "$ac_try_echo"; } >&5
1901 (eval "$ac_link") 2>&5
1903 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1904 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1905 { { case "(($ac_try" in
1906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1907 *) ac_try_echo=$ac_try;;
1909 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1910 $as_echo "$ac_try_echo"; } >&5
1911 (eval "$ac_try") 2>&5
1913 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1914 test $ac_status = 0; }; }; then :
1917 $as_echo "$as_me: program exited with status $ac_status" >&5
1918 $as_echo "$as_me: failed program was:" >&5
1919 sed 's/^/| /' conftest.$ac_ext >&5
1921 ac_retval=$ac_status
1923 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1924 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1925 as_fn_set_status $ac_retval
1929 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1930 # -------------------------------------------------------
1931 # Tests whether HEADER exists and can be compiled using the include files in
1932 # INCLUDES, setting the cache variable VAR accordingly.
1933 ac_fn_c_check_header_compile ()
1935 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1937 $as_echo_n "checking for $2... " >&6; }
1938 if eval \${$3+:} false; then :
1939 $as_echo_n "(cached) " >&6
1941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1942 /* end confdefs.h. */
1946 if ac_fn_c_try_compile "$LINENO"; then :
1951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1955 $as_echo "$ac_res" >&6; }
1956 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1958 } # ac_fn_c_check_header_compile
1960 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1961 # -------------------------------------------
1962 # Tests whether TYPE exists after having included INCLUDES, setting cache
1963 # variable VAR accordingly.
1964 ac_fn_c_check_type ()
1966 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1968 $as_echo_n "checking for $2... " >&6; }
1969 if eval \${$3+:} false; then :
1970 $as_echo_n "(cached) " >&6
1973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1974 /* end confdefs.h. */
1985 if ac_fn_c_try_compile "$LINENO"; then :
1986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1987 /* end confdefs.h. */
1998 if ac_fn_c_try_compile "$LINENO"; then :
2003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2009 $as_echo "$ac_res" >&6; }
2010 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2012 } # ac_fn_c_check_type
2014 # ac_fn_c_check_func LINENO FUNC VAR
2015 # ----------------------------------
2016 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2017 ac_fn_c_check_func ()
2019 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2021 $as_echo_n "checking for $2... " >&6; }
2022 if eval \${$3+:} false; then :
2023 $as_echo_n "(cached) " >&6
2025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2026 /* end confdefs.h. */
2027 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2028 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2029 #define $2 innocuous_$2
2031 /* System header to define __stub macros and hopefully few prototypes,
2032 which can conflict with char $2 (); below.
2033 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2034 <limits.h> exists even on freestanding compilers. */
2037 # include <limits.h>
2039 # include <assert.h>
2044 /* Override any GCC internal prototype to avoid an error.
2045 Use char because int might match the return type of a GCC
2046 builtin and then its argument prototype would still apply. */
2051 /* The GNU C library defines this for functions which it implements
2052 to always fail with ENOSYS. Some functions are actually named
2053 something starting with __ and the normal name is an alias. */
2054 #if defined __stub_$2 || defined __stub___$2
2066 if ac_fn_c_try_link "$LINENO"; then :
2071 rm -f core conftest.err conftest.$ac_objext \
2072 conftest$ac_exeext conftest.$ac_ext
2075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2076 $as_echo "$ac_res" >&6; }
2077 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2079 } # ac_fn_c_check_func
2081 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2082 # ---------------------------------------------
2083 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2085 ac_fn_c_check_decl ()
2087 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2088 as_decl_name=`echo $2|sed 's/ *(.*//'`
2089 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2091 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2092 if eval \${$3+:} false; then :
2093 $as_echo_n "(cached) " >&6
2095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2096 /* end confdefs.h. */
2101 #ifndef $as_decl_name
2103 (void) $as_decl_use;
2105 (void) $as_decl_name;
2113 if ac_fn_c_try_compile "$LINENO"; then :
2118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2122 $as_echo "$ac_res" >&6; }
2123 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2125 } # ac_fn_c_check_decl
2127 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2128 # --------------------------------------------
2129 # Tries to find the compile-time value of EXPR in a program that includes
2130 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2132 ac_fn_c_compute_int ()
2134 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2135 if test "$cross_compiling" = yes; then
2136 # Depending upon the size, compute the lo and hi bounds.
2137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2138 /* end confdefs.h. */
2143 static int test_array [1 - 2 * !(($2) >= 0)];
2145 return test_array [0];
2151 if ac_fn_c_try_compile "$LINENO"; then :
2154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2155 /* end confdefs.h. */
2160 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2162 return test_array [0];
2168 if ac_fn_c_try_compile "$LINENO"; then :
2169 ac_hi=$ac_mid; break
2171 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2172 if test $ac_lo -le $ac_mid; then
2176 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2182 /* end confdefs.h. */
2187 static int test_array [1 - 2 * !(($2) < 0)];
2189 return test_array [0];
2195 if ac_fn_c_try_compile "$LINENO"; then :
2198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2199 /* end confdefs.h. */
2204 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2206 return test_array [0];
2212 if ac_fn_c_try_compile "$LINENO"; then :
2213 ac_lo=$ac_mid; break
2215 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2216 if test $ac_mid -le $ac_hi; then
2220 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2230 # Binary search between lo and hi bounds.
2231 while test "x$ac_lo" != "x$ac_hi"; do
2232 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2234 /* end confdefs.h. */
2239 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2241 return test_array [0];
2247 if ac_fn_c_try_compile "$LINENO"; then :
2250 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2255 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2260 /* end confdefs.h. */
2262 static long int longval () { return $2; }
2263 static unsigned long int ulongval () { return $2; }
2270 FILE *f = fopen ("conftest.val", "w");
2275 long int i = longval ();
2278 fprintf (f, "%ld", i);
2282 unsigned long int i = ulongval ();
2285 fprintf (f, "%lu", i);
2287 /* Do not output a trailing newline, as this causes \r\n confusion
2288 on some platforms. */
2289 return ferror (f) || fclose (f) != 0;
2295 if ac_fn_c_try_run "$LINENO"; then :
2296 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2300 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2301 conftest.$ac_objext conftest.beam conftest.$ac_ext
2305 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2306 as_fn_set_status $ac_retval
2308 } # ac_fn_c_compute_int
2310 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2311 # ----------------------------------------------------
2312 # Tries to find if the field MEMBER exists in type AGGR, after including
2313 # INCLUDES, setting cache variable VAR accordingly.
2314 ac_fn_c_check_member ()
2316 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2318 $as_echo_n "checking for $2.$3... " >&6; }
2319 if eval \${$4+:} false; then :
2320 $as_echo_n "(cached) " >&6
2322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2323 /* end confdefs.h. */
2335 if ac_fn_c_try_compile "$LINENO"; then :
2338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2339 /* end confdefs.h. */
2345 if (sizeof ac_aggr.$3)
2351 if ac_fn_c_try_compile "$LINENO"; then :
2356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2362 $as_echo "$ac_res" >&6; }
2363 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2365 } # ac_fn_c_check_member
2366 cat >config.log <<_ACEOF
2367 This file contains any messages produced by compilers while
2368 running configure, to aid debugging if configure makes a mistake.
2370 It was created by $as_me, which was
2371 generated by GNU Autoconf 2.69. Invocation command line was
2383 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2384 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2385 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2386 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2387 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2389 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2390 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2392 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2393 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2394 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2395 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2396 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2397 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2398 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2406 test -z "$as_dir" && as_dir=.
2407 $as_echo "PATH: $as_dir"
2423 # Keep a trace of the command line.
2424 # Strip out --no-create and --no-recursion so they do not pile up.
2425 # Strip out --silent because we don't want to record it for future runs.
2426 # Also quote any args containing shell meta-characters.
2427 # Make two passes to allow for proper duplicate-argument suppression.
2431 ac_must_keep_next=false
2437 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2438 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2439 | -silent | --silent | --silen | --sile | --sil)
2442 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2445 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2447 as_fn_append ac_configure_args1 " '$ac_arg'"
2448 if test $ac_must_keep_next = true; then
2449 ac_must_keep_next=false # Got value, back to normal.
2452 *=* | --config-cache | -C | -disable-* | --disable-* \
2453 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2454 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2455 | -with-* | --with-* | -without-* | --without-* | --x)
2456 case "$ac_configure_args0 " in
2457 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2460 -* ) ac_must_keep_next=true ;;
2463 as_fn_append ac_configure_args " '$ac_arg'"
2468 { ac_configure_args0=; unset ac_configure_args0;}
2469 { ac_configure_args1=; unset ac_configure_args1;}
2471 # When interrupted or exit'd, cleanup temporary files, and complete
2472 # config.log. We remove comments because anyway the quotes in there
2473 # would cause problems or look ugly.
2474 # WARNING: Use '\'' to represent an apostrophe within the trap.
2475 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2476 trap 'exit_status=$?
2477 # Save into config.log some information that might help in debugging.
2481 $as_echo "## ---------------- ##
2482 ## Cache variables. ##
2483 ## ---------------- ##"
2485 # The following way of writing the cache mishandles newlines in values,
2487 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2488 eval ac_val=\$$ac_var
2492 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2493 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2496 _ | IFS | as_nl) ;; #(
2497 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2498 *) { eval $ac_var=; unset $ac_var;} ;;
2503 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2504 *${as_nl}ac_space=\ *)
2506 "s/'\''/'\''\\\\'\'''\''/g;
2507 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2510 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2517 $as_echo "## ----------------- ##
2518 ## Output variables. ##
2519 ## ----------------- ##"
2521 for ac_var in $ac_subst_vars
2523 eval ac_val=\$$ac_var
2525 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2527 $as_echo "$ac_var='\''$ac_val'\''"
2531 if test -n "$ac_subst_files"; then
2532 $as_echo "## ------------------- ##
2533 ## File substitutions. ##
2534 ## ------------------- ##"
2536 for ac_var in $ac_subst_files
2538 eval ac_val=\$$ac_var
2540 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2542 $as_echo "$ac_var='\''$ac_val'\''"
2547 if test -s confdefs.h; then
2548 $as_echo "## ----------- ##
2555 test "$ac_signal" != 0 &&
2556 $as_echo "$as_me: caught signal $ac_signal"
2557 $as_echo "$as_me: exit $exit_status"
2559 rm -f core *.core core.conftest.* &&
2560 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2563 for ac_signal in 1 2 13 15; do
2564 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2568 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2569 rm -f -r conftest* confdefs.h
2571 $as_echo "/* confdefs.h */" > confdefs.h
2573 # Predefined preprocessor variables.
2575 cat >>confdefs.h <<_ACEOF
2576 #define PACKAGE_NAME "$PACKAGE_NAME"
2579 cat >>confdefs.h <<_ACEOF
2580 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2583 cat >>confdefs.h <<_ACEOF
2584 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2587 cat >>confdefs.h <<_ACEOF
2588 #define PACKAGE_STRING "$PACKAGE_STRING"
2591 cat >>confdefs.h <<_ACEOF
2592 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2595 cat >>confdefs.h <<_ACEOF
2596 #define PACKAGE_URL "$PACKAGE_URL"
2600 # Let the site file select an alternate cache file if it wants to.
2601 # Prefer an explicitly selected file to automatically selected ones.
2604 if test -n "$CONFIG_SITE"; then
2605 # We do not want a PATH search for config.site.
2606 case $CONFIG_SITE in #((
2607 -*) ac_site_file1=./$CONFIG_SITE;;
2608 */*) ac_site_file1=$CONFIG_SITE;;
2609 *) ac_site_file1=./$CONFIG_SITE;;
2611 elif test "x$prefix" != xNONE; then
2612 ac_site_file1=$prefix/share/config.site
2613 ac_site_file2=$prefix/etc/config.site
2615 ac_site_file1=$ac_default_prefix/share/config.site
2616 ac_site_file2=$ac_default_prefix/etc/config.site
2618 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2620 test "x$ac_site_file" = xNONE && continue
2621 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2622 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2623 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2624 sed 's/^/| /' "$ac_site_file" >&5
2626 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2627 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2628 as_fn_error $? "failed to load site script $ac_site_file
2629 See \`config.log' for more details" "$LINENO" 5; }
2633 if test -r "$cache_file"; then
2634 # Some versions of bash will fail to source /dev/null (special files
2635 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2636 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2637 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2638 $as_echo "$as_me: loading cache $cache_file" >&6;}
2640 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2641 *) . "./$cache_file";;
2645 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2646 $as_echo "$as_me: creating cache $cache_file" >&6;}
2650 gt_needs="$gt_needs "
2651 as_fn_append ac_header_list " stdlib.h"
2652 as_fn_append ac_header_list " unistd.h"
2653 as_fn_append ac_header_list " sys/param.h"
2654 as_fn_append ac_func_list " symlink"
2655 # Check that the precious variables saved in the cache have kept the same
2657 ac_cache_corrupted=false
2658 for ac_var in $ac_precious_vars; do
2659 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2660 eval ac_new_set=\$ac_env_${ac_var}_set
2661 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2662 eval ac_new_val=\$ac_env_${ac_var}_value
2663 case $ac_old_set,$ac_new_set in
2665 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2666 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2667 ac_cache_corrupted=: ;;
2669 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2670 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2671 ac_cache_corrupted=: ;;
2674 if test "x$ac_old_val" != "x$ac_new_val"; then
2675 # differences in whitespace do not lead to failure.
2676 ac_old_val_w=`echo x $ac_old_val`
2677 ac_new_val_w=`echo x $ac_new_val`
2678 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2679 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2680 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2681 ac_cache_corrupted=:
2683 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2684 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2685 eval $ac_var=\$ac_old_val
2687 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2688 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2689 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2690 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2693 # Pass precious variables to config.status.
2694 if test "$ac_new_set" = set; then
2696 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2697 *) ac_arg=$ac_var=$ac_new_val ;;
2699 case " $ac_configure_args " in
2700 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2701 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2705 if $ac_cache_corrupted; then
2706 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2707 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2708 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2709 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2710 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2712 ## -------------------- ##
2713 ## Main body of script. ##
2714 ## -------------------- ##
2717 ac_cpp='$CPP $CPPFLAGS'
2718 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2719 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2720 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2725 for ac_dir in config "$srcdir"/config; do
2726 if test -f "$ac_dir/install-sh"; then
2728 ac_install_sh="$ac_aux_dir/install-sh -c"
2730 elif test -f "$ac_dir/install.sh"; then
2732 ac_install_sh="$ac_aux_dir/install.sh -c"
2734 elif test -f "$ac_dir/shtool"; then
2736 ac_install_sh="$ac_aux_dir/shtool install -c"
2740 if test -z "$ac_aux_dir"; then
2741 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2744 # These three variables are undocumented and unsupported,
2745 # and are intended to be withdrawn in a future Autoconf release.
2746 # They can cause serious problems if a builder's source tree is in a directory
2747 # whose full name contains unusual characters.
2748 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2749 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2750 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2753 ac_config_headers="$ac_config_headers lib/config.h"
2759 E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \
2760 | awk '{print $3}' | tr \" " " | awk '{print $1}'`
2761 DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
2763 E2FSPROGS_DAY=$(echo $DATE | awk -F- '{print $1}' | sed -e '/^[1-9]$/s/^/0/')
2764 MONTH=`echo $DATE | awk -F- '{print $2}'`
2765 YEAR=`echo $DATE | awk -F- '{print $3}'`
2767 if expr $YEAR ">" 1900 > /dev/null ; then
2768 E2FSPROGS_YEAR=$YEAR
2769 elif expr $YEAR ">" 90 >/dev/null ; then
2770 E2FSPROGS_YEAR=19$YEAR
2772 E2FSPROGS_YEAR=20$YEAR
2776 Jan) MONTH_NUM=01; E2FSPROGS_MONTH="January" ;;
2777 Feb) MONTH_NUM=02; E2FSPROGS_MONTH="February" ;;
2778 Mar) MONTH_NUM=03; E2FSPROGS_MONTH="March" ;;
2779 Apr) MONTH_NUM=04; E2FSPROGS_MONTH="April" ;;
2780 May) MONTH_NUM=05; E2FSPROGS_MONTH="May" ;;
2781 Jun) MONTH_NUM=06; E2FSPROGS_MONTH="June" ;;
2782 Jul) MONTH_NUM=07; E2FSPROGS_MONTH="July" ;;
2783 Aug) MONTH_NUM=08; E2FSPROGS_MONTH="August" ;;
2784 Sep) MONTH_NUM=09; E2FSPROGS_MONTH="September" ;;
2785 Oct) MONTH_NUM=10; E2FSPROGS_MONTH="October" ;;
2786 Nov) MONTH_NUM=11; E2FSPROGS_MONTH="November" ;;
2787 Dec) MONTH_NUM=12; E2FSPROGS_MONTH="December" ;;
2788 *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unknown month $MONTH??" >&5
2789 $as_echo "$as_me: WARNING: Unknown month $MONTH??" >&2;} ;;
2792 base_ver=`echo $E2FSPROGS_VERSION | \
2793 sed -e 's/-WIP//' -e 's/pre-//' -e 's/-PLUS//'`
2795 date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY}
2797 case $E2FSPROGS_VERSION in
2799 E2FSPROGS_PKGVER="$base_ver~WIP.$date_spec"
2802 E2FSPROGS_PKGVER="$base_ver"
2806 unset DATE MONTH YEAR base_ver pre_vers date_spec
2807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&5
2808 $as_echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&6; }
2809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&5
2810 $as_echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&6; }
2818 # Check whether --with-diet-libc was given.
2819 if test "${with_diet_libc+set}" = set; then :
2820 withval=$with_diet_libc; CC="diet cc -nostdinc"
2826 LIBS="$LIBS -lcompat"
2828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: CC=$CC" >&5
2829 $as_echo "CC=$CC" >&6; }
2831 # Make sure we can run config.sub.
2832 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2833 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2836 $as_echo_n "checking build system type... " >&6; }
2837 if ${ac_cv_build+:} false; then :
2838 $as_echo_n "(cached) " >&6
2840 ac_build_alias=$build_alias
2841 test "x$ac_build_alias" = x &&
2842 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2843 test "x$ac_build_alias" = x &&
2844 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2845 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2846 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2850 $as_echo "$ac_cv_build" >&6; }
2851 case $ac_cv_build in
2853 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2856 ac_save_IFS=$IFS; IFS='-'
2862 # Remember, the first character of IFS is used to create $*,
2863 # except with old shells:
2866 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2870 $as_echo_n "checking host system type... " >&6; }
2871 if ${ac_cv_host+:} false; then :
2872 $as_echo_n "(cached) " >&6
2874 if test "x$host_alias" = x; then
2875 ac_cv_host=$ac_cv_build
2877 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2878 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2883 $as_echo "$ac_cv_host" >&6; }
2886 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2889 ac_save_IFS=$IFS; IFS='-'
2895 # Remember, the first character of IFS is used to create $*,
2896 # except with old shells:
2899 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2904 ac_cpp='$CPP $CPPFLAGS'
2905 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2906 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2907 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2908 if test -n "$ac_tool_prefix"; then
2909 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2910 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2912 $as_echo_n "checking for $ac_word... " >&6; }
2913 if ${ac_cv_prog_CC+:} false; then :
2914 $as_echo_n "(cached) " >&6
2916 if test -n "$CC"; then
2917 ac_cv_prog_CC="$CC" # Let the user override the test.
2919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2923 test -z "$as_dir" && as_dir=.
2924 for ac_exec_ext in '' $ac_executable_extensions; do
2925 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2926 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2937 if test -n "$CC"; then
2938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2939 $as_echo "$CC" >&6; }
2941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2942 $as_echo "no" >&6; }
2947 if test -z "$ac_cv_prog_CC"; then
2949 # Extract the first word of "gcc", so it can be a program name with args.
2950 set dummy gcc; ac_word=$2
2951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2952 $as_echo_n "checking for $ac_word... " >&6; }
2953 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2954 $as_echo_n "(cached) " >&6
2956 if test -n "$ac_ct_CC"; then
2957 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2963 test -z "$as_dir" && as_dir=.
2964 for ac_exec_ext in '' $ac_executable_extensions; do
2965 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2966 ac_cv_prog_ac_ct_CC="gcc"
2967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2976 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2977 if test -n "$ac_ct_CC"; then
2978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2979 $as_echo "$ac_ct_CC" >&6; }
2981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2982 $as_echo "no" >&6; }
2985 if test "x$ac_ct_CC" = x; then
2988 case $cross_compiling:$ac_tool_warned in
2990 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2991 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2992 ac_tool_warned=yes ;;
3000 if test -z "$CC"; then
3001 if test -n "$ac_tool_prefix"; then
3002 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3003 set dummy ${ac_tool_prefix}cc; ac_word=$2
3004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3005 $as_echo_n "checking for $ac_word... " >&6; }
3006 if ${ac_cv_prog_CC+:} false; then :
3007 $as_echo_n "(cached) " >&6
3009 if test -n "$CC"; then
3010 ac_cv_prog_CC="$CC" # Let the user override the test.
3012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3016 test -z "$as_dir" && as_dir=.
3017 for ac_exec_ext in '' $ac_executable_extensions; do
3018 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3019 ac_cv_prog_CC="${ac_tool_prefix}cc"
3020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3030 if test -n "$CC"; then
3031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3032 $as_echo "$CC" >&6; }
3034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3035 $as_echo "no" >&6; }
3041 if test -z "$CC"; then
3042 # Extract the first word of "cc", so it can be a program name with args.
3043 set dummy cc; ac_word=$2
3044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3045 $as_echo_n "checking for $ac_word... " >&6; }
3046 if ${ac_cv_prog_CC+:} false; then :
3047 $as_echo_n "(cached) " >&6
3049 if test -n "$CC"; then
3050 ac_cv_prog_CC="$CC" # Let the user override the test.
3053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3057 test -z "$as_dir" && as_dir=.
3058 for ac_exec_ext in '' $ac_executable_extensions; do
3059 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3060 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3061 ac_prog_rejected=yes
3065 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3072 if test $ac_prog_rejected = yes; then
3073 # We found a bogon in the path, so make sure we never use it.
3074 set dummy $ac_cv_prog_CC
3076 if test $# != 0; then
3077 # We chose a different compiler from the bogus one.
3078 # However, it has the same basename, so the bogon will be chosen
3079 # first if we set CC to just the basename; use the full file name.
3081 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3087 if test -n "$CC"; then
3088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3089 $as_echo "$CC" >&6; }
3091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3092 $as_echo "no" >&6; }
3097 if test -z "$CC"; then
3098 if test -n "$ac_tool_prefix"; then
3099 for ac_prog in cl.exe
3101 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3102 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3104 $as_echo_n "checking for $ac_word... " >&6; }
3105 if ${ac_cv_prog_CC+:} false; then :
3106 $as_echo_n "(cached) " >&6
3108 if test -n "$CC"; then
3109 ac_cv_prog_CC="$CC" # Let the user override the test.
3111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3115 test -z "$as_dir" && as_dir=.
3116 for ac_exec_ext in '' $ac_executable_extensions; do
3117 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3118 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3119 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3129 if test -n "$CC"; then
3130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3131 $as_echo "$CC" >&6; }
3133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3134 $as_echo "no" >&6; }
3138 test -n "$CC" && break
3141 if test -z "$CC"; then
3143 for ac_prog in cl.exe
3145 # Extract the first word of "$ac_prog", so it can be a program name with args.
3146 set dummy $ac_prog; ac_word=$2
3147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3148 $as_echo_n "checking for $ac_word... " >&6; }
3149 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3150 $as_echo_n "(cached) " >&6
3152 if test -n "$ac_ct_CC"; then
3153 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3159 test -z "$as_dir" && as_dir=.
3160 for ac_exec_ext in '' $ac_executable_extensions; do
3161 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3162 ac_cv_prog_ac_ct_CC="$ac_prog"
3163 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3172 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3173 if test -n "$ac_ct_CC"; then
3174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3175 $as_echo "$ac_ct_CC" >&6; }
3177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3178 $as_echo "no" >&6; }
3182 test -n "$ac_ct_CC" && break
3185 if test "x$ac_ct_CC" = x; then
3188 case $cross_compiling:$ac_tool_warned in
3190 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3191 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3192 ac_tool_warned=yes ;;
3201 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3202 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3203 as_fn_error $? "no acceptable C compiler found in \$PATH
3204 See \`config.log' for more details" "$LINENO" 5; }
3206 # Provide some information about the compiler.
3207 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3210 for ac_option in --version -v -V -qversion; do
3211 { { ac_try="$ac_compiler $ac_option >&5"
3213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3214 *) ac_try_echo=$ac_try;;
3216 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3217 $as_echo "$ac_try_echo"; } >&5
3218 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3220 if test -s conftest.err; then
3222 ... rest of stderr output deleted ...
3223 10q' conftest.err >conftest.er1
3224 cat conftest.er1 >&5
3226 rm -f conftest.er1 conftest.err
3227 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3228 test $ac_status = 0; }
3231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3232 /* end confdefs.h. */
3242 ac_clean_files_save=$ac_clean_files
3243 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3244 # Try to create an executable without -o first, disregard a.out.
3245 # It will help us diagnose broken compilers, and finding out an intuition
3247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3248 $as_echo_n "checking whether the C compiler works... " >&6; }
3249 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3251 # The possible output files:
3252 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3255 for ac_file in $ac_files
3258 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3259 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3264 if { { ac_try="$ac_link_default"
3266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3267 *) ac_try_echo=$ac_try;;
3269 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3270 $as_echo "$ac_try_echo"; } >&5
3271 (eval "$ac_link_default") 2>&5
3273 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3274 test $ac_status = 0; }; then :
3275 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3276 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3277 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3278 # so that the user can short-circuit this test for compilers unknown to
3280 for ac_file in $ac_files ''
3282 test -f "$ac_file" || continue
3284 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3287 # We found the default executable, but exeext='' is most
3291 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3293 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3295 # We set ac_cv_exeext here because the later test for it is not
3296 # safe: cross compilers may not add the suffix if given an `-o'
3297 # argument, so we may need to know it at that point already.
3298 # Even if this section looks crufty: it has the advantage of
3305 test "$ac_cv_exeext" = no && ac_cv_exeext=
3310 if test -z "$ac_file"; then :
3311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3312 $as_echo "no" >&6; }
3313 $as_echo "$as_me: failed program was:" >&5
3314 sed 's/^/| /' conftest.$ac_ext >&5
3316 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3317 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3318 as_fn_error 77 "C compiler cannot create executables
3319 See \`config.log' for more details" "$LINENO" 5; }
3321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3322 $as_echo "yes" >&6; }
3324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3325 $as_echo_n "checking for C compiler default output file name... " >&6; }
3326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3327 $as_echo "$ac_file" >&6; }
3328 ac_exeext=$ac_cv_exeext
3330 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3331 ac_clean_files=$ac_clean_files_save
3332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3333 $as_echo_n "checking for suffix of executables... " >&6; }
3334 if { { ac_try="$ac_link"
3336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3337 *) ac_try_echo=$ac_try;;
3339 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3340 $as_echo "$ac_try_echo"; } >&5
3341 (eval "$ac_link") 2>&5
3343 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3344 test $ac_status = 0; }; then :
3345 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3346 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3347 # work properly (i.e., refer to `conftest.exe'), while it won't with
3349 for ac_file in conftest.exe conftest conftest.*; do
3350 test -f "$ac_file" || continue
3352 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3353 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3359 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3360 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3361 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3362 See \`config.log' for more details" "$LINENO" 5; }
3364 rm -f conftest conftest$ac_cv_exeext
3365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3366 $as_echo "$ac_cv_exeext" >&6; }
3368 rm -f conftest.$ac_ext
3369 EXEEXT=$ac_cv_exeext
3371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3372 /* end confdefs.h. */
3377 FILE *f = fopen ("conftest.out", "w");
3378 return ferror (f) || fclose (f) != 0;
3384 ac_clean_files="$ac_clean_files conftest.out"
3385 # Check that the compiler produces executables we can run. If not, either
3386 # the compiler is broken, or we cross compile.
3387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3388 $as_echo_n "checking whether we are cross compiling... " >&6; }
3389 if test "$cross_compiling" != yes; then
3390 { { ac_try="$ac_link"
3392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3393 *) ac_try_echo=$ac_try;;
3395 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3396 $as_echo "$ac_try_echo"; } >&5
3397 (eval "$ac_link") 2>&5
3399 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3400 test $ac_status = 0; }
3401 if { ac_try='./conftest$ac_cv_exeext'
3402 { { case "(($ac_try" in
3403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3404 *) ac_try_echo=$ac_try;;
3406 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3407 $as_echo "$ac_try_echo"; } >&5
3408 (eval "$ac_try") 2>&5
3410 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3411 test $ac_status = 0; }; }; then
3414 if test "$cross_compiling" = maybe; then
3417 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3418 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3419 as_fn_error $? "cannot run C compiled programs.
3420 If you meant to cross compile, use \`--host'.
3421 See \`config.log' for more details" "$LINENO" 5; }
3425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3426 $as_echo "$cross_compiling" >&6; }
3428 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3429 ac_clean_files=$ac_clean_files_save
3430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3431 $as_echo_n "checking for suffix of object files... " >&6; }
3432 if ${ac_cv_objext+:} false; then :
3433 $as_echo_n "(cached) " >&6
3435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3436 /* end confdefs.h. */
3446 rm -f conftest.o conftest.obj
3447 if { { ac_try="$ac_compile"
3449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3450 *) ac_try_echo=$ac_try;;
3452 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3453 $as_echo "$ac_try_echo"; } >&5
3454 (eval "$ac_compile") 2>&5
3456 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3457 test $ac_status = 0; }; then :
3458 for ac_file in conftest.o conftest.obj conftest.*; do
3459 test -f "$ac_file" || continue;
3461 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3462 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3467 $as_echo "$as_me: failed program was:" >&5
3468 sed 's/^/| /' conftest.$ac_ext >&5
3470 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3471 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3472 as_fn_error $? "cannot compute suffix of object files: cannot compile
3473 See \`config.log' for more details" "$LINENO" 5; }
3475 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3478 $as_echo "$ac_cv_objext" >&6; }
3479 OBJEXT=$ac_cv_objext
3481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3482 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3483 if ${ac_cv_c_compiler_gnu+:} false; then :
3484 $as_echo_n "(cached) " >&6
3486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3487 /* end confdefs.h. */
3500 if ac_fn_c_try_compile "$LINENO"; then :
3505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3506 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3510 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3511 if test $ac_compiler_gnu = yes; then
3516 ac_test_CFLAGS=${CFLAGS+set}
3517 ac_save_CFLAGS=$CFLAGS
3518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3519 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3520 if ${ac_cv_prog_cc_g+:} false; then :
3521 $as_echo_n "(cached) " >&6
3523 ac_save_c_werror_flag=$ac_c_werror_flag
3524 ac_c_werror_flag=yes
3527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3528 /* end confdefs.h. */
3538 if ac_fn_c_try_compile "$LINENO"; then :
3542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3543 /* end confdefs.h. */
3553 if ac_fn_c_try_compile "$LINENO"; then :
3556 ac_c_werror_flag=$ac_save_c_werror_flag
3558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3559 /* end confdefs.h. */
3569 if ac_fn_c_try_compile "$LINENO"; then :
3572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3577 ac_c_werror_flag=$ac_save_c_werror_flag
3579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3580 $as_echo "$ac_cv_prog_cc_g" >&6; }
3581 if test "$ac_test_CFLAGS" = set; then
3582 CFLAGS=$ac_save_CFLAGS
3583 elif test $ac_cv_prog_cc_g = yes; then
3584 if test "$GCC" = yes; then
3590 if test "$GCC" = yes; then
3596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3597 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3598 if ${ac_cv_prog_cc_c89+:} false; then :
3599 $as_echo_n "(cached) " >&6
3601 ac_cv_prog_cc_c89=no
3603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3604 /* end confdefs.h. */
3608 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3609 struct buf { int x; };
3610 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3611 static char *e (p, i)
3617 static char *f (char * (*g) (char **, int), char **p, ...)
3622 s = g (p, va_arg (v,int));
3627 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3628 function prototypes and stuff, but not '\xHH' hex character constants.
3629 These don't provoke an error unfortunately, instead are silently treated
3630 as 'x'. The following induces an error, until -std is added to get
3631 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3632 array size at least. It's necessary to write '\x00'==0 to get something
3633 that's true only with -std. */
3634 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3636 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3637 inside strings and character constants. */
3639 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3641 int test (int i, double x);
3642 struct s1 {int (*f) (int a);};
3643 struct s2 {int (*f) (double a);};
3644 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3650 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3655 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3656 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3658 CC="$ac_save_CC $ac_arg"
3659 if ac_fn_c_try_compile "$LINENO"; then :
3660 ac_cv_prog_cc_c89=$ac_arg
3662 rm -f core conftest.err conftest.$ac_objext
3663 test "x$ac_cv_prog_cc_c89" != "xno" && break
3665 rm -f conftest.$ac_ext
3670 case "x$ac_cv_prog_cc_c89" in
3672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3673 $as_echo "none needed" >&6; } ;;
3675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3676 $as_echo "unsupported" >&6; } ;;
3678 CC="$CC $ac_cv_prog_cc_c89"
3679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3680 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3682 if test "x$ac_cv_prog_cc_c89" != xno; then :
3687 ac_cpp='$CPP $CPPFLAGS'
3688 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3689 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3690 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
3694 $as_echo_n "checking for dlopen in -ldl... " >&6; }
3695 if ${ac_cv_lib_dl_dlopen+:} false; then :
3696 $as_echo_n "(cached) " >&6
3698 ac_check_lib_save_LIBS=$LIBS
3700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3701 /* end confdefs.h. */
3703 /* Override any GCC internal prototype to avoid an error.
3704 Use char because int might match the return type of a GCC
3705 builtin and then its argument prototype would still apply. */
3718 if ac_fn_c_try_link "$LINENO"; then :
3719 ac_cv_lib_dl_dlopen=yes
3721 ac_cv_lib_dl_dlopen=no
3723 rm -f core conftest.err conftest.$ac_objext \
3724 conftest$ac_exeext conftest.$ac_ext
3725 LIBS=$ac_check_lib_save_LIBS
3727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
3728 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
3729 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
3732 $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
3738 # Check whether --with-cc was given.
3739 if test "${with_cc+set}" = set; then :
3740 withval=$with_cc; as_fn_error $? "--with-cc no longer supported; use CC= instead" "$LINENO" 5
3744 # Check whether --with-ccopts was given.
3745 if test "${with_ccopts+set}" = set; then :
3746 withval=$with_ccopts; as_fn_error $? "--with-ccopts no longer supported; use CFLAGS= instead" "$LINENO" 5
3750 # Check whether --with-ldopts was given.
3751 if test "${with_ldopts+set}" = set; then :
3752 withval=$with_ldopts; as_fn_error $? "--with-ldopts no longer supported; use LDFLAGS= instead" "$LINENO" 5
3756 ac_cpp='$CPP $CPPFLAGS'
3757 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3758 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3759 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3760 if test -n "$ac_tool_prefix"; then
3761 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3762 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3764 $as_echo_n "checking for $ac_word... " >&6; }
3765 if ${ac_cv_prog_CC+:} false; then :
3766 $as_echo_n "(cached) " >&6
3768 if test -n "$CC"; then
3769 ac_cv_prog_CC="$CC" # Let the user override the test.
3771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3775 test -z "$as_dir" && as_dir=.
3776 for ac_exec_ext in '' $ac_executable_extensions; do
3777 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3778 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3789 if test -n "$CC"; then
3790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3791 $as_echo "$CC" >&6; }
3793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3794 $as_echo "no" >&6; }
3799 if test -z "$ac_cv_prog_CC"; then
3801 # Extract the first word of "gcc", so it can be a program name with args.
3802 set dummy gcc; ac_word=$2
3803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3804 $as_echo_n "checking for $ac_word... " >&6; }
3805 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3806 $as_echo_n "(cached) " >&6
3808 if test -n "$ac_ct_CC"; then
3809 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3815 test -z "$as_dir" && as_dir=.
3816 for ac_exec_ext in '' $ac_executable_extensions; do
3817 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3818 ac_cv_prog_ac_ct_CC="gcc"
3819 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3828 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3829 if test -n "$ac_ct_CC"; then
3830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3831 $as_echo "$ac_ct_CC" >&6; }
3833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3834 $as_echo "no" >&6; }
3837 if test "x$ac_ct_CC" = x; then
3840 case $cross_compiling:$ac_tool_warned in
3842 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3843 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3844 ac_tool_warned=yes ;;
3852 if test -z "$CC"; then
3853 if test -n "$ac_tool_prefix"; then
3854 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3855 set dummy ${ac_tool_prefix}cc; ac_word=$2
3856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3857 $as_echo_n "checking for $ac_word... " >&6; }
3858 if ${ac_cv_prog_CC+:} false; then :
3859 $as_echo_n "(cached) " >&6
3861 if test -n "$CC"; then
3862 ac_cv_prog_CC="$CC" # Let the user override the test.
3864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3868 test -z "$as_dir" && as_dir=.
3869 for ac_exec_ext in '' $ac_executable_extensions; do
3870 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3871 ac_cv_prog_CC="${ac_tool_prefix}cc"
3872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3882 if test -n "$CC"; then
3883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3884 $as_echo "$CC" >&6; }
3886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3887 $as_echo "no" >&6; }
3893 if test -z "$CC"; then
3894 # Extract the first word of "cc", so it can be a program name with args.
3895 set dummy cc; ac_word=$2
3896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3897 $as_echo_n "checking for $ac_word... " >&6; }
3898 if ${ac_cv_prog_CC+:} false; then :
3899 $as_echo_n "(cached) " >&6
3901 if test -n "$CC"; then
3902 ac_cv_prog_CC="$CC" # Let the user override the test.
3905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3909 test -z "$as_dir" && as_dir=.
3910 for ac_exec_ext in '' $ac_executable_extensions; do
3911 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3912 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3913 ac_prog_rejected=yes
3917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3924 if test $ac_prog_rejected = yes; then
3925 # We found a bogon in the path, so make sure we never use it.
3926 set dummy $ac_cv_prog_CC
3928 if test $# != 0; then
3929 # We chose a different compiler from the bogus one.
3930 # However, it has the same basename, so the bogon will be chosen
3931 # first if we set CC to just the basename; use the full file name.
3933 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3939 if test -n "$CC"; then
3940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3941 $as_echo "$CC" >&6; }
3943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3944 $as_echo "no" >&6; }
3949 if test -z "$CC"; then
3950 if test -n "$ac_tool_prefix"; then
3951 for ac_prog in cl.exe
3953 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3954 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3956 $as_echo_n "checking for $ac_word... " >&6; }
3957 if ${ac_cv_prog_CC+:} false; then :
3958 $as_echo_n "(cached) " >&6
3960 if test -n "$CC"; then
3961 ac_cv_prog_CC="$CC" # Let the user override the test.
3963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3967 test -z "$as_dir" && as_dir=.
3968 for ac_exec_ext in '' $ac_executable_extensions; do
3969 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3970 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3971 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3981 if test -n "$CC"; then
3982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3983 $as_echo "$CC" >&6; }
3985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3986 $as_echo "no" >&6; }
3990 test -n "$CC" && break
3993 if test -z "$CC"; then
3995 for ac_prog in cl.exe
3997 # Extract the first word of "$ac_prog", so it can be a program name with args.
3998 set dummy $ac_prog; ac_word=$2
3999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4000 $as_echo_n "checking for $ac_word... " >&6; }
4001 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4002 $as_echo_n "(cached) " >&6
4004 if test -n "$ac_ct_CC"; then
4005 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4011 test -z "$as_dir" && as_dir=.
4012 for ac_exec_ext in '' $ac_executable_extensions; do
4013 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4014 ac_cv_prog_ac_ct_CC="$ac_prog"
4015 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4024 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4025 if test -n "$ac_ct_CC"; then
4026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4027 $as_echo "$ac_ct_CC" >&6; }
4029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4030 $as_echo "no" >&6; }
4034 test -n "$ac_ct_CC" && break
4037 if test "x$ac_ct_CC" = x; then
4040 case $cross_compiling:$ac_tool_warned in
4042 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4043 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4044 ac_tool_warned=yes ;;
4053 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4054 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4055 as_fn_error $? "no acceptable C compiler found in \$PATH
4056 See \`config.log' for more details" "$LINENO" 5; }
4058 # Provide some information about the compiler.
4059 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4062 for ac_option in --version -v -V -qversion; do
4063 { { ac_try="$ac_compiler $ac_option >&5"
4065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4066 *) ac_try_echo=$ac_try;;
4068 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4069 $as_echo "$ac_try_echo"; } >&5
4070 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4072 if test -s conftest.err; then
4074 ... rest of stderr output deleted ...
4075 10q' conftest.err >conftest.er1
4076 cat conftest.er1 >&5
4078 rm -f conftest.er1 conftest.err
4079 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4080 test $ac_status = 0; }
4083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4084 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4085 if ${ac_cv_c_compiler_gnu+:} false; then :
4086 $as_echo_n "(cached) " >&6
4088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4089 /* end confdefs.h. */
4102 if ac_fn_c_try_compile "$LINENO"; then :
4107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4108 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4112 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4113 if test $ac_compiler_gnu = yes; then
4118 ac_test_CFLAGS=${CFLAGS+set}
4119 ac_save_CFLAGS=$CFLAGS
4120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4121 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4122 if ${ac_cv_prog_cc_g+:} false; then :
4123 $as_echo_n "(cached) " >&6
4125 ac_save_c_werror_flag=$ac_c_werror_flag
4126 ac_c_werror_flag=yes
4129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4130 /* end confdefs.h. */
4140 if ac_fn_c_try_compile "$LINENO"; then :
4144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4145 /* end confdefs.h. */
4155 if ac_fn_c_try_compile "$LINENO"; then :
4158 ac_c_werror_flag=$ac_save_c_werror_flag
4160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4161 /* end confdefs.h. */
4171 if ac_fn_c_try_compile "$LINENO"; then :
4174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4179 ac_c_werror_flag=$ac_save_c_werror_flag
4181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4182 $as_echo "$ac_cv_prog_cc_g" >&6; }
4183 if test "$ac_test_CFLAGS" = set; then
4184 CFLAGS=$ac_save_CFLAGS
4185 elif test $ac_cv_prog_cc_g = yes; then
4186 if test "$GCC" = yes; then
4192 if test "$GCC" = yes; then
4198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4199 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4200 if ${ac_cv_prog_cc_c89+:} false; then :
4201 $as_echo_n "(cached) " >&6
4203 ac_cv_prog_cc_c89=no
4205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4206 /* end confdefs.h. */
4210 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4211 struct buf { int x; };
4212 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4213 static char *e (p, i)
4219 static char *f (char * (*g) (char **, int), char **p, ...)
4224 s = g (p, va_arg (v,int));
4229 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4230 function prototypes and stuff, but not '\xHH' hex character constants.
4231 These don't provoke an error unfortunately, instead are silently treated
4232 as 'x'. The following induces an error, until -std is added to get
4233 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4234 array size at least. It's necessary to write '\x00'==0 to get something
4235 that's true only with -std. */
4236 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4238 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4239 inside strings and character constants. */
4241 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4243 int test (int i, double x);
4244 struct s1 {int (*f) (int a);};
4245 struct s2 {int (*f) (double a);};
4246 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4252 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4257 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4258 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4260 CC="$ac_save_CC $ac_arg"
4261 if ac_fn_c_try_compile "$LINENO"; then :
4262 ac_cv_prog_cc_c89=$ac_arg
4264 rm -f core conftest.err conftest.$ac_objext
4265 test "x$ac_cv_prog_cc_c89" != "xno" && break
4267 rm -f conftest.$ac_ext
4272 case "x$ac_cv_prog_cc_c89" in
4274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4275 $as_echo "none needed" >&6; } ;;
4277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4278 $as_echo "unsupported" >&6; } ;;
4280 CC="$CC $ac_cv_prog_cc_c89"
4281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4282 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4284 if test "x$ac_cv_prog_cc_c89" != xno; then :
4289 ac_cpp='$CPP $CPPFLAGS'
4290 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4291 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4292 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4294 if test "$GCC" = yes; then
4295 RDYNAMIC="-rdynamic"
4299 ac_cpp='$CPP $CPPFLAGS'
4300 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4301 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4302 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4304 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4305 # On Suns, sometimes $CPP names a directory.
4306 if test -n "$CPP" && test -d "$CPP"; then
4309 if test -z "$CPP"; then
4310 if ${ac_cv_prog_CPP+:} false; then :
4311 $as_echo_n "(cached) " >&6
4313 # Double quotes because CPP needs to be expanded
4314 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4317 for ac_c_preproc_warn_flag in '' yes
4319 # Use a header file that comes with gcc, so configuring glibc
4320 # with a fresh cross-compiler works.
4321 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4322 # <limits.h> exists even on freestanding compilers.
4323 # On the NeXT, cc -E runs the code through the compiler's parser,
4324 # not just through cpp. "Syntax error" is here to catch this case.
4325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4326 /* end confdefs.h. */
4328 # include <limits.h>
4330 # include <assert.h>
4334 if ac_fn_c_try_cpp "$LINENO"; then :
4337 # Broken: fails on valid input.
4340 rm -f conftest.err conftest.i conftest.$ac_ext
4342 # OK, works on sane cases. Now check whether nonexistent headers
4343 # can be detected and how.
4344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4345 /* end confdefs.h. */
4346 #include <ac_nonexistent.h>
4348 if ac_fn_c_try_cpp "$LINENO"; then :
4349 # Broken: success on invalid input.
4352 # Passes both tests.
4356 rm -f conftest.err conftest.i conftest.$ac_ext
4359 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4360 rm -f conftest.i conftest.err conftest.$ac_ext
4361 if $ac_preproc_ok; then :
4373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4374 $as_echo "$CPP" >&6; }
4376 for ac_c_preproc_warn_flag in '' yes
4378 # Use a header file that comes with gcc, so configuring glibc
4379 # with a fresh cross-compiler works.
4380 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4381 # <limits.h> exists even on freestanding compilers.
4382 # On the NeXT, cc -E runs the code through the compiler's parser,
4383 # not just through cpp. "Syntax error" is here to catch this case.
4384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4385 /* end confdefs.h. */
4387 # include <limits.h>
4389 # include <assert.h>
4393 if ac_fn_c_try_cpp "$LINENO"; then :
4396 # Broken: fails on valid input.
4399 rm -f conftest.err conftest.i conftest.$ac_ext
4401 # OK, works on sane cases. Now check whether nonexistent headers
4402 # can be detected and how.
4403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4404 /* end confdefs.h. */
4405 #include <ac_nonexistent.h>
4407 if ac_fn_c_try_cpp "$LINENO"; then :
4408 # Broken: success on invalid input.
4411 # Passes both tests.
4415 rm -f conftest.err conftest.i conftest.$ac_ext
4418 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4419 rm -f conftest.i conftest.err conftest.$ac_ext
4420 if $ac_preproc_ok; then :
4423 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4424 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4425 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4426 See \`config.log' for more details" "$LINENO" 5; }
4430 ac_cpp='$CPP $CPPFLAGS'
4431 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4432 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4433 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for additional special compiler flags" >&5
4436 $as_echo_n "checking for additional special compiler flags... " >&6; }
4437 if test "$GCC" = yes
4440 alpha) addcflags="-mieee" ;;
4443 if test "x$addcflags" != x
4445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $addcflags" >&5
4446 $as_echo "$addcflags" >&6; }
4447 CFLAGS="$addcflags $CFLAGS"
4449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (none)" >&5
4450 $as_echo "(none)" >&6; }
4453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4454 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4455 if ${ac_cv_path_GREP+:} false; then :
4456 $as_echo_n "(cached) " >&6
4458 if test -z "$GREP"; then
4459 ac_path_GREP_found=false
4460 # Loop through the user's path and test for each of PROGNAME-LIST
4461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4462 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4465 test -z "$as_dir" && as_dir=.
4466 for ac_prog in grep ggrep; do
4467 for ac_exec_ext in '' $ac_executable_extensions; do
4468 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4469 as_fn_executable_p "$ac_path_GREP" || continue
4470 # Check for GNU ac_path_GREP and select it if it is found.
4471 # Check for GNU $ac_path_GREP
4472 case `"$ac_path_GREP" --version 2>&1` in
4474 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4477 $as_echo_n 0123456789 >"conftest.in"
4480 cat "conftest.in" "conftest.in" >"conftest.tmp"
4481 mv "conftest.tmp" "conftest.in"
4482 cp "conftest.in" "conftest.nl"
4483 $as_echo 'GREP' >> "conftest.nl"
4484 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4485 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4486 as_fn_arith $ac_count + 1 && ac_count=$as_val
4487 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4488 # Best one so far, save it but keep looking for a better one
4489 ac_cv_path_GREP="$ac_path_GREP"
4490 ac_path_GREP_max=$ac_count
4492 # 10*(2^10) chars as input seems more than enough
4493 test $ac_count -gt 10 && break
4495 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4498 $ac_path_GREP_found && break 3
4503 if test -z "$ac_cv_path_GREP"; then
4504 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4507 ac_cv_path_GREP=$GREP
4511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4512 $as_echo "$ac_cv_path_GREP" >&6; }
4513 GREP="$ac_cv_path_GREP"
4516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4517 $as_echo_n "checking for egrep... " >&6; }
4518 if ${ac_cv_path_EGREP+:} false; then :
4519 $as_echo_n "(cached) " >&6
4521 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4522 then ac_cv_path_EGREP="$GREP -E"
4524 if test -z "$EGREP"; then
4525 ac_path_EGREP_found=false
4526 # Loop through the user's path and test for each of PROGNAME-LIST
4527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4528 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4531 test -z "$as_dir" && as_dir=.
4532 for ac_prog in egrep; do
4533 for ac_exec_ext in '' $ac_executable_extensions; do
4534 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4535 as_fn_executable_p "$ac_path_EGREP" || continue
4536 # Check for GNU ac_path_EGREP and select it if it is found.
4537 # Check for GNU $ac_path_EGREP
4538 case `"$ac_path_EGREP" --version 2>&1` in
4540 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4543 $as_echo_n 0123456789 >"conftest.in"
4546 cat "conftest.in" "conftest.in" >"conftest.tmp"
4547 mv "conftest.tmp" "conftest.in"
4548 cp "conftest.in" "conftest.nl"
4549 $as_echo 'EGREP' >> "conftest.nl"
4550 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4551 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4552 as_fn_arith $ac_count + 1 && ac_count=$as_val
4553 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4554 # Best one so far, save it but keep looking for a better one
4555 ac_cv_path_EGREP="$ac_path_EGREP"
4556 ac_path_EGREP_max=$ac_count
4558 # 10*(2^10) chars as input seems more than enough
4559 test $ac_count -gt 10 && break
4561 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4564 $ac_path_EGREP_found && break 3
4569 if test -z "$ac_cv_path_EGREP"; then
4570 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4573 ac_cv_path_EGREP=$EGREP
4578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4579 $as_echo "$ac_cv_path_EGREP" >&6; }
4580 EGREP="$ac_cv_path_EGREP"
4583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4584 $as_echo_n "checking for ANSI C header files... " >&6; }
4585 if ${ac_cv_header_stdc+:} false; then :
4586 $as_echo_n "(cached) " >&6
4588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4589 /* end confdefs.h. */
4603 if ac_fn_c_try_compile "$LINENO"; then :
4604 ac_cv_header_stdc=yes
4606 ac_cv_header_stdc=no
4608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4610 if test $ac_cv_header_stdc = yes; then
4611 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4613 /* end confdefs.h. */
4617 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4618 $EGREP "memchr" >/dev/null 2>&1; then :
4621 ac_cv_header_stdc=no
4627 if test $ac_cv_header_stdc = yes; then
4628 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4630 /* end confdefs.h. */
4634 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4635 $EGREP "free" >/dev/null 2>&1; then :
4638 ac_cv_header_stdc=no
4644 if test $ac_cv_header_stdc = yes; then
4645 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4646 if test "$cross_compiling" = yes; then :
4649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4650 /* end confdefs.h. */
4653 #if ((' ' & 0x0FF) == 0x020)
4654 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4655 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4657 # define ISLOWER(c) \
4658 (('a' <= (c) && (c) <= 'i') \
4659 || ('j' <= (c) && (c) <= 'r') \
4660 || ('s' <= (c) && (c) <= 'z'))
4661 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4664 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4669 for (i = 0; i < 256; i++)
4670 if (XOR (islower (i), ISLOWER (i))
4671 || toupper (i) != TOUPPER (i))
4676 if ac_fn_c_try_run "$LINENO"; then :
4679 ac_cv_header_stdc=no
4681 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4682 conftest.$ac_objext conftest.beam conftest.$ac_ext
4687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4688 $as_echo "$ac_cv_header_stdc" >&6; }
4689 if test $ac_cv_header_stdc = yes; then
4691 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4695 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4696 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4697 inttypes.h stdint.h unistd.h
4699 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4700 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4702 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4703 cat >>confdefs.h <<_ACEOF
4704 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4713 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4714 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4721 if test "$MINIX" = yes; then
4723 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4726 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4729 $as_echo "#define _MINIX 1" >>confdefs.h
4734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4735 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4736 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4737 $as_echo_n "(cached) " >&6
4739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4740 /* end confdefs.h. */
4742 # define __EXTENSIONS__ 1
4743 $ac_includes_default
4752 if ac_fn_c_try_compile "$LINENO"; then :
4753 ac_cv_safe_to_define___extensions__=yes
4755 ac_cv_safe_to_define___extensions__=no
4757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4760 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4761 test $ac_cv_safe_to_define___extensions__ = yes &&
4762 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4764 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4766 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4768 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4770 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4777 # Check whether --with-root-prefix was given.
4778 if test "${with_root_prefix+set}" = set; then :
4779 withval=$with_root_prefix; root_prefix=$withval
4783 # Check whether --enable-maintainer-mode was given.
4784 if test "${enable_maintainer_mode+set}" = set; then :
4785 enableval=$enable_maintainer_mode; if test "$enableval" = "no"
4788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode" >&5
4789 $as_echo "Disabling maintainer mode" >&6; }
4792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling maintainer mode" >&5
4793 $as_echo "Enabling maintainer mode" >&6; }
4798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode by default" >&5
4799 $as_echo "Disabling maintainer mode by default" >&6; }
4804 # Check whether --enable-symlink-install was given.
4805 if test "${enable_symlink_install+set}" = set; then :
4806 enableval=$enable_symlink_install; if test "$enableval" = "no"
4808 LINK_INSTALL_FLAGS=-f
4809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install" >&5
4810 $as_echo "Disabling symlinks for install" >&6; }
4812 LINK_INSTALL_FLAGS=-sf
4813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for install" >&5
4814 $as_echo "Enabling symlinks for install" >&6; }
4818 LINK_INSTALL_FLAGS=-f
4819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install by default" >&5
4820 $as_echo "Disabling symlinks for install by default" >&6; }
4825 relative_symlink_defined=
4826 # Check whether --enable-relative-symlinks was given.
4827 if test "${enable_relative_symlinks+set}" = set; then :
4828 enableval=$enable_relative_symlinks; if test "$enableval" = "no"
4831 relative_symlink_defined=yes
4832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
4833 $as_echo "Disabling relative symlinks for install" >&6; }
4835 SYMLINK_RELATIVE=--relative
4836 relative_symlink_defined=yes
4837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5
4838 $as_echo "Enabling relative symlinks for install" >&6; }
4842 # Check whether --enable-symlink-relative-symlinks was given.
4843 if test "${enable_symlink_relative_symlinks+set}" = set; then :
4844 enableval=$enable_symlink_relative_symlinks; if test "$enableval" = "no"
4846 SYMLINK_RELATIVE=yes
4847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
4848 $as_echo "Disabling relative symlinks for install" >&6; }
4850 SYMLINK_RELATIVE=--relative
4851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5
4852 $as_echo "Enabling relative symlinks for install" >&6; }
4856 if test -z "$relative_symlink_defined"
4859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install by default" >&5
4860 $as_echo "Disabling relative symlinks for install by default" >&6; }
4866 # Check whether --enable-symlink-build was given.
4867 if test "${enable_symlink_build+set}" = set; then :
4868 enableval=$enable_symlink_build; if test "$enableval" = "no"
4871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build" >&5
4872 $as_echo "Disabling symlinks for build" >&6; }
4875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for build" >&5
4876 $as_echo "Enabling symlinks for build" >&6; }
4881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build by default" >&5
4882 $as_echo "Disabling symlinks for build by default" >&6; }
4887 # Check whether --enable-verbose-makecmds was given.
4888 if test "${enable_verbose_makecmds+set}" = set; then :
4889 enableval=$enable_verbose_makecmds; if test "$enableval" = "no"
4891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
4892 $as_echo "Disabling verbose make commands" >&6; }
4897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling verbose make commands" >&5
4898 $as_echo "Enabling verbose make commands" >&6; }
4905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
4906 $as_echo "Disabling verbose make commands" >&6; }
4916 E2_PKG_CONFIG_STATIC=--static
4919 # Check whether --enable-elf-shlibs was given.
4920 if test "${enable_elf_shlibs+set}" = set; then :
4921 enableval=$enable_elf_shlibs; if test "$enableval" = "no"
4924 MAKEFILE_ELF=/dev/null
4925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries" >&5
4926 $as_echo "Disabling ELF shared libraries" >&6; }
4928 E2_PKG_CONFIG_STATIC=
4930 MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
4933 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
4939 LDFLAG_DYNAMIC='-Wl,-rpath-link,$(top_builddir)/lib'
4940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling ELF shared libraries" >&5
4941 $as_echo "Enabling ELF shared libraries" >&6; }
4945 MAKEFILE_ELF=/dev/null
4947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries by default" >&5
4948 $as_echo "Disabling ELF shared libraries by default" >&6; }
4954 # Check whether --enable-bsd-shlibs was given.
4955 if test "${enable_bsd_shlibs+set}" = set; then :
4956 enableval=$enable_bsd_shlibs; if test "$enableval" = "no"
4959 MAKEFILE_BSDLIB=/dev/null
4960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries" >&5
4961 $as_echo "Disabling BSD shared libraries" >&6; }
4963 E2_PKG_CONFIG_STATIC=
4965 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
4969 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib
4973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling BSD shared libraries" >&5
4974 $as_echo "Enabling BSD shared libraries" >&6; }
4978 MAKEFILE_BSDLIB=/dev/null
4980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries by default" >&5
4981 $as_echo "Disabling BSD shared libraries by default" >&6; }
4987 # Check whether --enable-profile was given.
4988 if test "${enable_profile+set}" = set; then :
4989 enableval=$enable_profile; if test "$enableval" = "no"
4992 MAKEFILE_PROFILE=/dev/null
4993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries" >&5
4994 $as_echo "Disabling profiling libraries" >&6; }
4997 MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
4998 PROFILED_LIB_EXT=_p.a
4999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building profiling libraries" >&5
5000 $as_echo "Building profiling libraries" >&6; }
5005 MAKEFILE_PROFILE=/dev/null
5006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries by default" >&5
5007 $as_echo "Disabling profiling libraries by default" >&6; }
5013 # Check whether --enable-gcov was given.
5014 if test "${enable_gcov+set}" = set; then :
5015 enableval=$enable_gcov; if test "$enableval" = "yes"
5017 CFLAGS="-g -fprofile-arcs -ftest-coverage"
5018 LDFLAGS="-fprofile-arcs -ftest-coverage"
5019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling gcov support" >&5
5020 $as_echo "Enabling gcov support" >&6; }
5025 CFLAGS_SHLIB="${CFLAGS_SHLIB:-$CFLAGS}"
5026 CFLAGS_STLIB="${CFLAGS_STLIB:-$CFLAGS}"
5027 LDFLAGS_SHLIB=${LDFLAGS_SHLIB:-$LDFLAGS}
5028 LDFLAGS_STATIC=${LDFLAGS_STATIC:-$LDFLAGS}
5029 # Check whether --enable-hardening was given.
5030 if test "${enable_hardening+set}" = set; then :
5031 enableval=$enable_hardening; if test "$enableval" = "yes"
5033 HARDEN_CFLAGS="-D_FORTIFY_SOURCE=2 -fstack-protector-strong"
5034 HARDEN_LDFLAGS="-Wl,-z,relro -Wl,-z,now"
5035 CFLAGS="$CFLAGS $HARDEN_CFLAGS -fPIE"
5036 CFLAGS_SHLIB="$CFLAGS_SHLIB $HARDEN_CFLAGS"
5037 CFLAGS_STLIB="$CFLAGS_STLIB $HARDEN_CFLAGS -fPIE"
5038 LDFLAGS="$LDFLAGS $HARDEN_LDFLAGS -fPIE -pie"
5039 LDFLAGS_STATIC="$LDFLAGS_STATIC $HARDEN_LDFLAGS"
5040 LDFLAGS_SHLIB="$LDFLAGS_SHLIB $HARDEN_LDFLAGS"
5041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling hardening support" >&5
5042 $as_echo "Enabling hardening support" >&6; }
5052 # Check whether --enable-jbd-debug was given.
5053 if test "${enable_jbd_debug+set}" = set; then :
5054 enableval=$enable_jbd_debug; if test "$enableval" = "no"
5056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging" >&5
5057 $as_echo "Disabling journal debugging" >&6; }
5060 $as_echo "#define CONFIG_JBD_DEBUG 1" >>confdefs.h
5062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling journal debugging" >&5
5063 $as_echo "Enabling journal debugging" >&6; }
5067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging by default" >&5
5068 $as_echo "Disabling journal debugging by default" >&6; }
5072 # Check whether --enable-blkid-debug was given.
5073 if test "${enable_blkid_debug+set}" = set; then :
5074 enableval=$enable_blkid_debug; if test "$enableval" = "no"
5076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging" >&5
5077 $as_echo "Disabling blkid debugging" >&6; }
5080 $as_echo "#define CONFIG_BLKID_DEBUG 1" >>confdefs.h
5082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling blkid debugging" >&5
5083 $as_echo "Enabling blkid debugging" >&6; }
5087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging by default" >&5
5088 $as_echo "Disabling blkid debugging by default" >&6; }
5092 # Check whether --enable-testio-debug was given.
5093 if test "${enable_testio_debug+set}" = set; then :
5094 enableval=$enable_testio_debug;
5095 if test "$enableval" = "no"
5097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling testio debugging" >&5
5098 $as_echo "Disabling testio debugging" >&6; }
5102 $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
5104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging" >&5
5105 $as_echo "Enabling testio debugging" >&6; }
5109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging by default" >&5
5110 $as_echo "Enabling testio debugging by default" >&6; }
5111 $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
5125 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5126 if test -n "$ac_tool_prefix"; then
5127 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5128 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5130 $as_echo_n "checking for $ac_word... " >&6; }
5131 if ${ac_cv_path_PKG_CONFIG+:} false; then :
5132 $as_echo_n "(cached) " >&6
5136 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5143 test -z "$as_dir" && as_dir=.
5144 for ac_exec_ext in '' $ac_executable_extensions; do
5145 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5146 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5147 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5157 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5158 if test -n "$PKG_CONFIG"; then
5159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5160 $as_echo "$PKG_CONFIG" >&6; }
5162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5163 $as_echo "no" >&6; }
5168 if test -z "$ac_cv_path_PKG_CONFIG"; then
5169 ac_pt_PKG_CONFIG=$PKG_CONFIG
5170 # Extract the first word of "pkg-config", so it can be a program name with args.
5171 set dummy pkg-config; ac_word=$2
5172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5173 $as_echo_n "checking for $ac_word... " >&6; }
5174 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
5175 $as_echo_n "(cached) " >&6
5177 case $ac_pt_PKG_CONFIG in
5179 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5186 test -z "$as_dir" && as_dir=.
5187 for ac_exec_ext in '' $ac_executable_extensions; do
5188 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5189 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5200 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5201 if test -n "$ac_pt_PKG_CONFIG"; then
5202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5203 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5206 $as_echo "no" >&6; }
5209 if test "x$ac_pt_PKG_CONFIG" = x; then
5212 case $cross_compiling:$ac_tool_warned in
5214 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5215 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5216 ac_tool_warned=yes ;;
5218 PKG_CONFIG=$ac_pt_PKG_CONFIG
5221 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5225 if test -n "$PKG_CONFIG"; then
5226 _pkg_min_version=0.9.0
5227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5228 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5229 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5231 $as_echo "yes" >&6; }
5233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5234 $as_echo "no" >&6; }
5243 DEPPROFILED_LIBUUID=
5245 # Check whether --enable-libuuid was given.
5246 if test "${enable_libuuid+set}" = set; then :
5247 enableval=$enable_libuuid; if test "$enableval" = "no"
5249 if test -z "$PKG_CONFIG"; then
5250 as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5
5253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
5254 $as_echo_n "checking for uuid_generate in -luuid... " >&6; }
5255 if ${ac_cv_lib_uuid_uuid_generate+:} false; then :
5256 $as_echo_n "(cached) " >&6
5258 ac_check_lib_save_LIBS=$LIBS
5260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5261 /* end confdefs.h. */
5263 /* Override any GCC internal prototype to avoid an error.
5264 Use char because int might match the return type of a GCC
5265 builtin and then its argument prototype would still apply. */
5269 char uuid_generate ();
5273 return uuid_generate ();
5278 if ac_fn_c_try_link "$LINENO"; then :
5279 ac_cv_lib_uuid_uuid_generate=yes
5281 ac_cv_lib_uuid_uuid_generate=no
5283 rm -f core conftest.err conftest.$ac_objext \
5284 conftest$ac_exeext conftest.$ac_ext
5285 LIBS=$ac_check_lib_save_LIBS
5287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
5288 $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
5289 if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then :
5290 LIBUUID=`$PKG_CONFIG --libs uuid`;
5291 STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid`
5293 as_fn_error $? "external uuid library not found" "$LINENO" 5
5296 PROFILED_LIBUUID=$LIBUUID
5298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private uuid library" >&5
5299 $as_echo "Disabling private uuid library" >&6; }
5301 LIBUUID='$(LIB)/libuuid'$LIB_EXT
5303 STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
5304 DEPSTATIC_LIBUUID=$STATIC_LIBUUID
5305 PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
5306 DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
5307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library" >&5
5308 $as_echo "Enabling private uuid library" >&6; }
5312 if test -n "$PKG_CONFIG"; then
5313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
5314 $as_echo_n "checking for uuid_generate in -luuid... " >&6; }
5315 if ${ac_cv_lib_uuid_uuid_generate+:} false; then :
5316 $as_echo_n "(cached) " >&6
5318 ac_check_lib_save_LIBS=$LIBS
5320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5321 /* end confdefs.h. */
5323 /* Override any GCC internal prototype to avoid an error.
5324 Use char because int might match the return type of a GCC
5325 builtin and then its argument prototype would still apply. */
5329 char uuid_generate ();
5333 return uuid_generate ();
5338 if ac_fn_c_try_link "$LINENO"; then :
5339 ac_cv_lib_uuid_uuid_generate=yes
5341 ac_cv_lib_uuid_uuid_generate=no
5343 rm -f core conftest.err conftest.$ac_objext \
5344 conftest$ac_exeext conftest.$ac_ext
5345 LIBS=$ac_check_lib_save_LIBS
5347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
5348 $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
5349 if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then :
5350 LIBUUID=`$PKG_CONFIG --libs uuid`;
5351 STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid`
5355 if test -n "$LIBUUID"; then
5356 PROFILED_LIBUUID=$LIBUUID
5358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using system uuid by default" >&5
5359 $as_echo "Using system uuid by default" >&6; }
5361 LIBUUID='$(LIB)/libuuid'$LIB_EXT
5363 STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
5364 DEPSTATIC_LIBUUID=$STATIC_LIBUUID
5365 PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
5366 DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
5367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library by default" >&5
5368 $as_echo "Enabling private uuid library by default" >&6; }
5387 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5388 if test -n "$ac_tool_prefix"; then
5389 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5390 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5392 $as_echo_n "checking for $ac_word... " >&6; }
5393 if ${ac_cv_path_PKG_CONFIG+:} false; then :
5394 $as_echo_n "(cached) " >&6
5398 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5405 test -z "$as_dir" && as_dir=.
5406 for ac_exec_ext in '' $ac_executable_extensions; do
5407 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5408 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5419 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5420 if test -n "$PKG_CONFIG"; then
5421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5422 $as_echo "$PKG_CONFIG" >&6; }
5424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5425 $as_echo "no" >&6; }
5430 if test -z "$ac_cv_path_PKG_CONFIG"; then
5431 ac_pt_PKG_CONFIG=$PKG_CONFIG
5432 # Extract the first word of "pkg-config", so it can be a program name with args.
5433 set dummy pkg-config; ac_word=$2
5434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5435 $as_echo_n "checking for $ac_word... " >&6; }
5436 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
5437 $as_echo_n "(cached) " >&6
5439 case $ac_pt_PKG_CONFIG in
5441 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5448 test -z "$as_dir" && as_dir=.
5449 for ac_exec_ext in '' $ac_executable_extensions; do
5450 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5451 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5452 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5462 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5463 if test -n "$ac_pt_PKG_CONFIG"; then
5464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5465 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5468 $as_echo "no" >&6; }
5471 if test "x$ac_pt_PKG_CONFIG" = x; then
5474 case $cross_compiling:$ac_tool_warned in
5476 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5477 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5478 ac_tool_warned=yes ;;
5480 PKG_CONFIG=$ac_pt_PKG_CONFIG
5483 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5487 if test -n "$PKG_CONFIG"; then
5488 _pkg_min_version=0.9.0
5489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5490 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5491 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5493 $as_echo "yes" >&6; }
5495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5496 $as_echo "no" >&6; }
5505 DEPPROFILED_LIBBLKID=
5508 # Check whether --enable-libblkid was given.
5509 if test "${enable_libblkid+set}" = set; then :
5510 enableval=$enable_libblkid; if test "$enableval" = "no"
5512 if test -z "$PKG_CONFIG"; then
5513 as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5
5516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
5517 $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
5518 if ${ac_cv_lib_blkid_blkid_get_cache+:} false; then :
5519 $as_echo_n "(cached) " >&6
5521 ac_check_lib_save_LIBS=$LIBS
5522 LIBS="-lblkid -luuid $LIBS"
5523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5524 /* end confdefs.h. */
5526 /* Override any GCC internal prototype to avoid an error.
5527 Use char because int might match the return type of a GCC
5528 builtin and then its argument prototype would still apply. */
5532 char blkid_get_cache ();
5536 return blkid_get_cache ();
5541 if ac_fn_c_try_link "$LINENO"; then :
5542 ac_cv_lib_blkid_blkid_get_cache=yes
5544 ac_cv_lib_blkid_blkid_get_cache=no
5546 rm -f core conftest.err conftest.$ac_objext \
5547 conftest$ac_exeext conftest.$ac_ext
5548 LIBS=$ac_check_lib_save_LIBS
5550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
5551 $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
5552 if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes; then :
5553 LIBBLKID=`$PKG_CONFIG --libs blkid`;
5554 STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid`
5556 as_fn_error $? "external blkid library not found" "$LINENO" 5
5560 PROFILED_LIBBLKID=$LIBBLKID
5561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private blkid library" >&5
5562 $as_echo "Disabling private blkid library" >&6; }
5564 LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5565 DEPLIBBLKID=$LIBBLKID
5566 STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5567 DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5568 PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5569 DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
5570 $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
5572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library" >&5
5573 $as_echo "Enabling private blkid library" >&6; }
5577 if test -n "$PKG_CONFIG"; then
5578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
5579 $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
5580 if ${ac_cv_lib_blkid_blkid_get_cache+:} false; then :
5581 $as_echo_n "(cached) " >&6
5583 ac_check_lib_save_LIBS=$LIBS
5584 LIBS="-lblkid $LIBS"
5585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5586 /* end confdefs.h. */
5588 /* Override any GCC internal prototype to avoid an error.
5589 Use char because int might match the return type of a GCC
5590 builtin and then its argument prototype would still apply. */
5594 char blkid_get_cache ();
5598 return blkid_get_cache ();
5603 if ac_fn_c_try_link "$LINENO"; then :
5604 ac_cv_lib_blkid_blkid_get_cache=yes
5606 ac_cv_lib_blkid_blkid_get_cache=no
5608 rm -f core conftest.err conftest.$ac_objext \
5609 conftest$ac_exeext conftest.$ac_ext
5610 LIBS=$ac_check_lib_save_LIBS
5612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
5613 $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
5614 if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes; then :
5615 LIBBLKID=`$PKG_CONFIG --libs blkid`;
5616 STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid`
5620 if test -n "$LIBBLKID"; then
5622 PROFILED_LIBBLKID=$LIBBLKID
5623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using system blkid library by default" >&5
5624 $as_echo "Using system blkid library by default" >&6; }
5626 LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5627 DEPLIBBLKID=$LIBBLKID
5628 STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5629 DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5630 PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5631 DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
5632 $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
5634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library by default" >&5
5635 $as_echo "Enabling private blkid library by default" >&6; }
5648 # Check whether --enable-backtrace was given.
5649 if test "${enable_backtrace+set}" = set; then :
5650 enableval=$enable_backtrace; if test "$enableval" = "no"
5652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling use of backtrace" >&5
5653 $as_echo "Disabling use of backtrace" >&6; }
5654 $as_echo "#define DISABLE_BACKTRACE 1" >>confdefs.h
5657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace" >&5
5658 $as_echo "Enabling use of backtrace" >&6; }
5662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace by default" >&5
5663 $as_echo "Enabling use of backtrace by default" >&6; }
5667 # Check whether --enable-debugfs was given.
5668 if test "${enable_debugfs+set}" = set; then :
5669 enableval=$enable_debugfs; if test "$enableval" = "no"
5671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling debugfs support" >&5
5672 $as_echo "Disabling debugfs support" >&6; }
5676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support" >&5
5677 $as_echo "Enabling debugfs support" >&6; }
5681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support by default" >&5
5682 $as_echo "Enabling debugfs support by default" >&6; }
5688 # Check whether --enable-imager was given.
5689 if test "${enable_imager+set}" = set; then :
5690 enableval=$enable_imager; if test "$enableval" = "no"
5692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2image support" >&5
5693 $as_echo "Disabling e2image support" >&6; }
5697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support" >&5
5698 $as_echo "Enabling e2image support" >&6; }
5702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support by default" >&5
5703 $as_echo "Enabling e2image support by default" >&6; }
5709 # Check whether --enable-resizer was given.
5710 if test "${enable_resizer+set}" = set; then :
5711 enableval=$enable_resizer; if test "$enableval" = "no"
5713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2resize support" >&5
5714 $as_echo "Disabling e2resize support" >&6; }
5718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support" >&5
5719 $as_echo "Enabling e2resize support" >&6; }
5723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support by default" >&5
5724 $as_echo "Enabling e2resize support by default" >&6; }
5730 # Check whether --enable-defrag was given.
5731 if test "${enable_defrag+set}" = set; then :
5732 enableval=$enable_defrag; if test "$enableval" = "no"
5734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support" >&5
5735 $as_echo "Disabling e4defrag support" >&6; }
5739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support" >&5
5740 $as_echo "Enabling e4defrag support" >&6; }
5744 if test -z "$WITH_DIET_LIBC"
5746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support by default" >&5
5747 $as_echo "Enabling e4defrag support by default" >&6; }
5750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support by default" >&5
5751 $as_echo "Disabling e4defrag support by default" >&6; }
5758 # Check whether --enable-fsck was given.
5759 if test "${enable_fsck+set}" = set; then :
5760 enableval=$enable_fsck; if test "$enableval" = "no"
5762 FSCK_PROG='' FSCK_MAN=''
5763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper" >&5
5764 $as_echo "Not building fsck wrapper" >&6; }
5766 FSCK_PROG=fsck FSCK_MAN=fsck.8
5767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper" >&5
5768 $as_echo "Building fsck wrapper" >&6; }
5774 FSCK_PROG='' FSCK_MAN=''
5775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper by default" >&5
5776 $as_echo "Not building fsck wrapper by default" >&6; }
5779 FSCK_PROG=fsck FSCK_MAN=fsck.8
5780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper by default" >&5
5781 $as_echo "Building fsck wrapper by default" >&6; }
5788 # Check whether --enable-e2initrd-helper was given.
5789 if test "${enable_e2initrd_helper+set}" = set; then :
5790 enableval=$enable_e2initrd_helper; if test "$enableval" = "no"
5792 E2INITRD_PROG='' E2INITRD_MAN=''
5793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building e2initrd helper" >&5
5794 $as_echo "Not building e2initrd helper" >&6; }
5796 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
5797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper" >&5
5798 $as_echo "Building e2initrd helper" >&6; }
5802 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
5803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper by default" >&5
5804 $as_echo "Building e2initrd helper by default" >&6; }
5810 # Check whether --enable-tls was given.
5811 if test "${enable_tls+set}" = set; then :
5812 enableval=$enable_tls; if test "$enableval" = "no"
5815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling thread local support" >&5
5816 $as_echo "Disabling thread local support" >&6; }
5819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling thread local support" >&5
5820 $as_echo "Enabling thread local support" >&6; }
5824 if test -n "$WITH_DIET_LIBC"
5827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Diet libc does not support thread local support" >&5
5828 $as_echo "Diet libc does not support thread local support" >&6; }
5831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Try using thread local support by default" >&5
5832 $as_echo "Try using thread local support by default" >&6; }
5837 if test "$try_tls" = "yes"
5840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread local storage (TLS) class" >&5
5841 $as_echo_n "checking for thread local storage (TLS) class... " >&6; }
5842 if ${ac_cv_tls+:} false; then :
5843 $as_echo_n "(cached) " >&6
5846 ax_tls_keywords="__thread __declspec(thread) none"
5847 for ax_tls_keyword in $ax_tls_keywords; do
5848 case $ax_tls_keyword in
5849 none) ac_cv_tls=none ; break ;;
5851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5852 /* end confdefs.h. */
5856 static $ax_tls_keyword int bar;
5867 if ac_fn_c_try_compile "$LINENO"; then :
5868 ac_cv_tls=$ax_tls_keyword ; break
5873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5880 if test "$ac_cv_tls" != "none"; then
5882 cat >>confdefs.h <<_ACEOF
5883 #define TLS $ac_cv_tls
5887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tls" >&5
5888 $as_echo "$ac_cv_tls" >&6; }
5892 # Check whether --enable-uuidd was given.
5893 if test "${enable_uuidd+set}" = set; then :
5894 enableval=$enable_uuidd; if test "$enableval" = "no"
5896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building uuidd" >&5
5897 $as_echo "Not building uuidd" >&6; }
5900 $as_echo "#define USE_UUIDD 1" >>confdefs.h
5903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd" >&5
5904 $as_echo "Building uuidd" >&6; }
5908 $as_echo "#define USE_UUIDD 1" >>confdefs.h
5910 if test -z "$UUID_CMT"
5913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd by default" >&5
5914 $as_echo "Building uuidd by default" >&6; }
5917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling uuidd by default" >&5
5918 $as_echo "Disabling uuidd by default" >&6; }
5925 # Check whether --enable-mmp was given.
5926 if test "${enable_mmp+set}" = set; then :
5927 enableval=$enable_mmp; if test "$enableval" = "no"
5929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling mmp support" >&5
5930 $as_echo "Disabling mmp support" >&6; }
5932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support" >&5
5933 $as_echo "Enabling mmp support" >&6; }
5934 $as_echo "#define CONFIG_MMP 1" >>confdefs.h
5939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support by default" >&5
5940 $as_echo "Enabling mmp support by default" >&6; }
5941 $as_echo "#define CONFIG_MMP 1" >>confdefs.h
5947 # Check whether --enable-tdb was given.
5948 if test "${enable_tdb+set}" = set; then :
5949 enableval=$enable_tdb; if test "$enableval" = "no"
5951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling tdb support" >&5
5952 $as_echo "Disabling tdb support" >&6; }
5954 TDB_MAN_COMMENT='.\"'
5956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling tdb support" >&5
5957 $as_echo "Enabling tdb support" >&6; }
5958 $as_echo "#define CONFIG_TDB 1" >>confdefs.h
5965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support by default" >&5
5966 $as_echo "Enabling mmp support by default" >&6; }
5967 $as_echo "#define CONFIG_TDB 1" >>confdefs.h
5977 # Check whether --enable-bmap-stats was given.
5978 if test "${enable_bmap_stats+set}" = set; then :
5979 enableval=$enable_bmap_stats; if test "$enableval" = "no"
5981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling bitmap statistics support" >&5
5982 $as_echo "Disabling bitmap statistics support" >&6; }
5984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling bitmap statistics support" >&5
5985 $as_echo "Enabling bitmap statistics support" >&6; }
5986 $as_echo "#define ENABLE_BMAP_STATS 1" >>confdefs.h
5991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling bitmap statistics support by default" >&5
5992 $as_echo "Enabling bitmap statistics support by default" >&6; }
5993 $as_echo "#define ENABLE_BMAP_STATS 1" >>confdefs.h
5999 # Check whether --enable-bmap-stats-ops was given.
6000 if test "${enable_bmap_stats_ops+set}" = set; then :
6001 enableval=$enable_bmap_stats_ops; if test "$enableval" = "no"
6003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling additional bitmap statistics" >&5
6004 $as_echo "Disabling additional bitmap statistics" >&6; }
6006 if test "x${enable_bmap_stats}" = "xno"; then :
6007 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6008 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6009 as_fn_error $? "Error --enable-bmap-stats-ops requires bmap-stats
6010 See \`config.log' for more details" "$LINENO" 5; }
6013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling additional bitmap statistics" >&5
6014 $as_echo "Enabling additional bitmap statistics" >&6; }
6015 $as_echo "#define ENABLE_BMAP_STATS_OPS 1" >>confdefs.h
6020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling additional bitmap statistics by default" >&5
6021 $as_echo "Disabling additional bitmap statistics by default" >&6; }
6025 MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
6027 GETTEXT_PACKAGE=e2fsprogs
6029 VERSION="$E2FSPROGS_VERSION"
6032 cat >>confdefs.h <<_ACEOF
6033 #define PACKAGE "$PACKAGE"
6037 cat >>confdefs.h <<_ACEOF
6038 #define VERSION "$VERSION"
6045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6046 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6048 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6049 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
6050 $as_echo_n "(cached) " >&6
6052 cat >conftest.make <<\_ACEOF
6055 @echo '@@@%%%=$(MAKE)=@@@%%%'
6057 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
6058 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6060 eval ac_cv_prog_make_${ac_make}_set=yes;;
6062 eval ac_cv_prog_make_${ac_make}_set=no;;
6066 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6068 $as_echo "yes" >&6; }
6071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6072 $as_echo "no" >&6; }
6073 SET_MAKE="MAKE=${MAKE-make}"
6076 # Find a good install program. We prefer a C program (faster),
6077 # so one script is as good as another. But avoid the broken or
6078 # incompatible versions:
6079 # SysV /etc/install, /usr/sbin/install
6080 # SunOS /usr/etc/install
6081 # IRIX /sbin/install
6083 # AmigaOS /C/install, which installs bootblocks on floppy discs
6084 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6085 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6086 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6087 # OS/2's system install, which has a completely different semantic
6088 # ./install, which can be erroneously created by make from ./install.sh.
6089 # Reject install programs that cannot install multiple files.
6090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
6091 $as_echo_n "checking for a BSD-compatible install... " >&6; }
6092 if test -z "$INSTALL"; then
6093 if ${ac_cv_path_install+:} false; then :
6094 $as_echo_n "(cached) " >&6
6096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6100 test -z "$as_dir" && as_dir=.
6101 # Account for people who put trailing slashes in PATH elements.
6102 case $as_dir/ in #((
6103 ./ | .// | /[cC]/* | \
6104 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6105 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
6108 # OSF1 and SCO ODT 3.0 have their own names for install.
6109 # Don't use installbsd from OSF since it installs stuff as root
6111 for ac_prog in ginstall scoinst install; do
6112 for ac_exec_ext in '' $ac_executable_extensions; do
6113 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
6114 if test $ac_prog = install &&
6115 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6116 # AIX install. It has an incompatible calling convention.
6118 elif test $ac_prog = install &&
6119 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6120 # program-specific install script used by HP pwplus--don't use.
6123 rm -rf conftest.one conftest.two conftest.dir
6124 echo one > conftest.one
6125 echo two > conftest.two
6127 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
6128 test -s conftest.one && test -s conftest.two &&
6129 test -s conftest.dir/conftest.one &&
6130 test -s conftest.dir/conftest.two
6132 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6145 rm -rf conftest.one conftest.two conftest.dir
6148 if test "${ac_cv_path_install+set}" = set; then
6149 INSTALL=$ac_cv_path_install
6151 # As a last resort, use the slow shell script. Don't cache a
6152 # value for INSTALL within a source directory, because that will
6153 # break other packages using the cache if that directory is
6154 # removed, or if the value is a relative name.
6155 INSTALL=$ac_install_sh
6158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
6159 $as_echo "$INSTALL" >&6; }
6161 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6162 # It thinks the first close brace ends the variable substitution.
6163 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6165 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6167 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
6170 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
6171 if test -z "$MKDIR_P"; then
6172 if ${ac_cv_path_mkdir+:} false; then :
6173 $as_echo_n "(cached) " >&6
6175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6176 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
6179 test -z "$as_dir" && as_dir=.
6180 for ac_prog in mkdir gmkdir; do
6181 for ac_exec_ext in '' $ac_executable_extensions; do
6182 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
6183 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
6184 'mkdir (GNU coreutils) '* | \
6185 'mkdir (coreutils) '* | \
6186 'mkdir (fileutils) '4.1*)
6187 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
6197 test -d ./--version && rmdir ./--version
6198 if test "${ac_cv_path_mkdir+set}" = set; then
6199 MKDIR_P="$ac_cv_path_mkdir -p"
6201 # As a last resort, use the slow shell script. Don't cache a
6202 # value for MKDIR_P within a source directory, because that will
6203 # break other packages using the cache if that directory is
6204 # removed, or if the value is a relative name.
6205 MKDIR_P="$ac_install_sh -d"
6208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
6209 $as_echo "$MKDIR_P" >&6; }
6211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6212 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6213 if ${ac_cv_path_SED+:} false; then :
6214 $as_echo_n "(cached) " >&6
6216 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6217 for ac_i in 1 2 3 4 5 6 7; do
6218 ac_script="$ac_script$as_nl$ac_script"
6220 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6221 { ac_script=; unset ac_script;}
6222 if test -z "$SED"; then
6223 ac_path_SED_found=false
6224 # Loop through the user's path and test for each of PROGNAME-LIST
6225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6229 test -z "$as_dir" && as_dir=.
6230 for ac_prog in sed gsed; do
6231 for ac_exec_ext in '' $ac_executable_extensions; do
6232 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6233 as_fn_executable_p "$ac_path_SED" || continue
6234 # Check for GNU ac_path_SED and select it if it is found.
6235 # Check for GNU $ac_path_SED
6236 case `"$ac_path_SED" --version 2>&1` in
6238 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6241 $as_echo_n 0123456789 >"conftest.in"
6244 cat "conftest.in" "conftest.in" >"conftest.tmp"
6245 mv "conftest.tmp" "conftest.in"
6246 cp "conftest.in" "conftest.nl"
6247 $as_echo '' >> "conftest.nl"
6248 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6249 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6250 as_fn_arith $ac_count + 1 && ac_count=$as_val
6251 if test $ac_count -gt ${ac_path_SED_max-0}; then
6252 # Best one so far, save it but keep looking for a better one
6253 ac_cv_path_SED="$ac_path_SED"
6254 ac_path_SED_max=$ac_count
6256 # 10*(2^10) chars as input seems more than enough
6257 test $ac_count -gt 10 && break
6259 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6262 $ac_path_SED_found && break 3
6267 if test -z "$ac_cv_path_SED"; then
6268 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6276 $as_echo "$ac_cv_path_SED" >&6; }
6277 SED="$ac_cv_path_SED"
6281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
6282 $as_echo_n "checking whether NLS is requested... " >&6; }
6283 # Check whether --enable-nls was given.
6284 if test "${enable_nls+set}" = set; then :
6285 enableval=$enable_nls; USE_NLS=$enableval
6290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
6291 $as_echo "$USE_NLS" >&6; }
6296 GETTEXT_MACRO_VERSION=0.18
6301 # Prepare PATH_SEPARATOR.
6302 # The user is always right.
6303 if test "${PATH_SEPARATOR+set}" != set; then
6304 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
6305 # contains only /bin. Note that ksh looks also at the FPATH variable,
6306 # so we have to set that as well for the test.
6308 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6309 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6310 || PATH_SEPARATOR=';'
6314 # Find out how to test for executable files. Don't use a zero-byte file,
6315 # as systems may use methods other than mode bits to determine executability.
6316 cat >conf$$.file <<_ASEOF
6320 chmod +x conf$$.file
6321 if test -x conf$$.file >/dev/null 2>&1; then
6322 ac_executable_p="test -x"
6324 ac_executable_p="test -f"
6328 # Extract the first word of "msgfmt", so it can be a program name with args.
6329 set dummy msgfmt; ac_word=$2
6330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6331 $as_echo_n "checking for $ac_word... " >&6; }
6332 if ${ac_cv_path_MSGFMT+:} false; then :
6333 $as_echo_n "(cached) " >&6
6337 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
6340 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6341 for ac_dir in $PATH; do
6343 test -z "$ac_dir" && ac_dir=.
6344 for ac_exec_ext in '' $ac_executable_extensions; do
6345 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6346 echo "$as_me: trying $ac_dir/$ac_word..." >&5
6347 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
6348 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6349 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
6356 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
6360 MSGFMT="$ac_cv_path_MSGFMT"
6361 if test "$MSGFMT" != ":"; then
6362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
6363 $as_echo "$MSGFMT" >&6; }
6365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6366 $as_echo "no" >&6; }
6369 # Extract the first word of "gmsgfmt", so it can be a program name with args.
6370 set dummy gmsgfmt; ac_word=$2
6371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6372 $as_echo_n "checking for $ac_word... " >&6; }
6373 if ${ac_cv_path_GMSGFMT+:} false; then :
6374 $as_echo_n "(cached) " >&6
6378 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
6381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6385 test -z "$as_dir" && as_dir=.
6386 for ac_exec_ext in '' $ac_executable_extensions; do
6387 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6388 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
6389 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6396 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
6400 GMSGFMT=$ac_cv_path_GMSGFMT
6401 if test -n "$GMSGFMT"; then
6402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
6403 $as_echo "$GMSGFMT" >&6; }
6405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6406 $as_echo "no" >&6; }
6411 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6412 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
6413 *) MSGFMT_015=$MSGFMT ;;
6416 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6417 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
6418 *) GMSGFMT_015=$GMSGFMT ;;
6423 # Prepare PATH_SEPARATOR.
6424 # The user is always right.
6425 if test "${PATH_SEPARATOR+set}" != set; then
6426 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
6427 # contains only /bin. Note that ksh looks also at the FPATH variable,
6428 # so we have to set that as well for the test.
6430 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6431 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6432 || PATH_SEPARATOR=';'
6436 # Find out how to test for executable files. Don't use a zero-byte file,
6437 # as systems may use methods other than mode bits to determine executability.
6438 cat >conf$$.file <<_ASEOF
6442 chmod +x conf$$.file
6443 if test -x conf$$.file >/dev/null 2>&1; then
6444 ac_executable_p="test -x"
6446 ac_executable_p="test -f"
6450 # Extract the first word of "xgettext", so it can be a program name with args.
6451 set dummy xgettext; ac_word=$2
6452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6453 $as_echo_n "checking for $ac_word... " >&6; }
6454 if ${ac_cv_path_XGETTEXT+:} false; then :
6455 $as_echo_n "(cached) " >&6
6459 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
6462 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6463 for ac_dir in $PATH; do
6465 test -z "$ac_dir" && ac_dir=.
6466 for ac_exec_ext in '' $ac_executable_extensions; do
6467 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6468 echo "$as_me: trying $ac_dir/$ac_word..." >&5
6469 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
6470 (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
6471 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
6478 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
6482 XGETTEXT="$ac_cv_path_XGETTEXT"
6483 if test "$XGETTEXT" != ":"; then
6484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
6485 $as_echo "$XGETTEXT" >&6; }
6487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6488 $as_echo "no" >&6; }
6493 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6494 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
6495 *) XGETTEXT_015=$XGETTEXT ;;
6500 # Prepare PATH_SEPARATOR.
6501 # The user is always right.
6502 if test "${PATH_SEPARATOR+set}" != set; then
6503 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
6504 # contains only /bin. Note that ksh looks also at the FPATH variable,
6505 # so we have to set that as well for the test.
6507 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6508 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6509 || PATH_SEPARATOR=';'
6513 # Find out how to test for executable files. Don't use a zero-byte file,
6514 # as systems may use methods other than mode bits to determine executability.
6515 cat >conf$$.file <<_ASEOF
6519 chmod +x conf$$.file
6520 if test -x conf$$.file >/dev/null 2>&1; then
6521 ac_executable_p="test -x"
6523 ac_executable_p="test -f"
6527 # Extract the first word of "msgmerge", so it can be a program name with args.
6528 set dummy msgmerge; ac_word=$2
6529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6530 $as_echo_n "checking for $ac_word... " >&6; }
6531 if ${ac_cv_path_MSGMERGE+:} false; then :
6532 $as_echo_n "(cached) " >&6
6536 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
6539 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6540 for ac_dir in $PATH; do
6542 test -z "$ac_dir" && ac_dir=.
6543 for ac_exec_ext in '' $ac_executable_extensions; do
6544 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6545 echo "$as_me: trying $ac_dir/$ac_word..." >&5
6546 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
6547 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
6554 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
6558 MSGMERGE="$ac_cv_path_MSGMERGE"
6559 if test "$MSGMERGE" != ":"; then
6560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
6561 $as_echo "$MSGMERGE" >&6; }
6563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6564 $as_echo "no" >&6; }
6568 test -n "$localedir" || localedir='${datadir}/locale'
6571 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
6574 ac_config_commands="$ac_config_commands po-directories"
6578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2 or newer" >&5
6579 $as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; }
6580 if ${ac_cv_gnu_library_2+:} false; then :
6581 $as_echo_n "(cached) " >&6
6583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6584 /* end confdefs.h. */
6586 #include <features.h>
6587 #ifdef __GNU_LIBRARY__
6588 #if (__GLIBC__ >= 2) && !defined __UCLIBC__
6594 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6595 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
6596 ac_cv_gnu_library_2=yes
6598 ac_cv_gnu_library_2=no
6605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2" >&5
6606 $as_echo "$ac_cv_gnu_library_2" >&6; }
6608 GLIBC2="$ac_cv_gnu_library_2"
6611 if test -n "$ac_tool_prefix"; then
6612 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6613 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6615 $as_echo_n "checking for $ac_word... " >&6; }
6616 if ${ac_cv_prog_RANLIB+:} false; then :
6617 $as_echo_n "(cached) " >&6
6619 if test -n "$RANLIB"; then
6620 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6626 test -z "$as_dir" && as_dir=.
6627 for ac_exec_ext in '' $ac_executable_extensions; do
6628 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6629 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6630 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6639 RANLIB=$ac_cv_prog_RANLIB
6640 if test -n "$RANLIB"; then
6641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6642 $as_echo "$RANLIB" >&6; }
6644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6645 $as_echo "no" >&6; }
6650 if test -z "$ac_cv_prog_RANLIB"; then
6651 ac_ct_RANLIB=$RANLIB
6652 # Extract the first word of "ranlib", so it can be a program name with args.
6653 set dummy ranlib; ac_word=$2
6654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6655 $as_echo_n "checking for $ac_word... " >&6; }
6656 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6657 $as_echo_n "(cached) " >&6
6659 if test -n "$ac_ct_RANLIB"; then
6660 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6666 test -z "$as_dir" && as_dir=.
6667 for ac_exec_ext in '' $ac_executable_extensions; do
6668 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6669 ac_cv_prog_ac_ct_RANLIB="ranlib"
6670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6679 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6680 if test -n "$ac_ct_RANLIB"; then
6681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6682 $as_echo "$ac_ct_RANLIB" >&6; }
6684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6685 $as_echo "no" >&6; }
6688 if test "x$ac_ct_RANLIB" = x; then
6691 case $cross_compiling:$ac_tool_warned in
6693 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6694 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6695 ac_tool_warned=yes ;;
6697 RANLIB=$ac_ct_RANLIB
6700 RANLIB="$ac_cv_prog_RANLIB"
6707 if test -n "$GCC"; then
6708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the -Werror option is usable" >&5
6709 $as_echo_n "checking whether the -Werror option is usable... " >&6; }
6710 if ${gl_cv_cc_vis_werror+:} false; then :
6711 $as_echo_n "(cached) " >&6
6714 gl_save_CFLAGS="$CFLAGS"
6715 CFLAGS="$CFLAGS -Werror"
6716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6717 /* end confdefs.h. */
6727 if ac_fn_c_try_compile "$LINENO"; then :
6728 gl_cv_cc_vis_werror=yes
6730 gl_cv_cc_vis_werror=no
6732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6733 CFLAGS="$gl_save_CFLAGS"
6736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_vis_werror" >&5
6737 $as_echo "$gl_cv_cc_vis_werror" >&6; }
6738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5
6739 $as_echo_n "checking for simple visibility declarations... " >&6; }
6740 if ${gl_cv_cc_visibility+:} false; then :
6741 $as_echo_n "(cached) " >&6
6744 gl_save_CFLAGS="$CFLAGS"
6745 CFLAGS="$CFLAGS -fvisibility=hidden"
6746 if test $gl_cv_cc_vis_werror = yes; then
6747 CFLAGS="$CFLAGS -Werror"
6749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6750 /* end confdefs.h. */
6751 extern __attribute__((__visibility__("hidden"))) int hiddenvar;
6752 extern __attribute__((__visibility__("default"))) int exportedvar;
6753 extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
6754 extern __attribute__((__visibility__("default"))) int exportedfunc (void);
6755 void dummyfunc (void) {}
6765 if ac_fn_c_try_compile "$LINENO"; then :
6766 gl_cv_cc_visibility=yes
6768 gl_cv_cc_visibility=no
6770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6771 CFLAGS="$gl_save_CFLAGS"
6774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5
6775 $as_echo "$gl_cv_cc_visibility" >&6; }
6776 if test $gl_cv_cc_visibility = yes; then
6777 CFLAG_VISIBILITY="-fvisibility=hidden"
6784 cat >>confdefs.h <<_ACEOF
6785 #define HAVE_VISIBILITY $HAVE_VISIBILITY
6789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
6790 $as_echo_n "checking for inline... " >&6; }
6791 if ${ac_cv_c_inline+:} false; then :
6792 $as_echo_n "(cached) " >&6
6795 for ac_kw in inline __inline__ __inline; do
6796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6797 /* end confdefs.h. */
6800 static $ac_kw foo_t static_foo () {return 0; }
6801 $ac_kw foo_t foo () {return 0; }
6805 if ac_fn_c_try_compile "$LINENO"; then :
6806 ac_cv_c_inline=$ac_kw
6808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6809 test "$ac_cv_c_inline" != no && break
6813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
6814 $as_echo "$ac_cv_c_inline" >&6; }
6816 case $ac_cv_c_inline in
6819 case $ac_cv_c_inline in
6821 *) ac_val=$ac_cv_c_inline;;
6823 cat >>confdefs.h <<_ACEOF
6825 #define inline $ac_val
6831 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6832 if test "x$ac_cv_type_size_t" = xyes; then :
6836 cat >>confdefs.h <<_ACEOF
6837 #define size_t unsigned int
6843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
6844 $as_echo_n "checking for stdint.h... " >&6; }
6845 if ${gl_cv_header_stdint_h+:} false; then :
6846 $as_echo_n "(cached) " >&6
6848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6849 /* end confdefs.h. */
6850 #include <sys/types.h>
6855 uintmax_t i = (uintmax_t) -1; return !i;
6860 if ac_fn_c_try_compile "$LINENO"; then :
6861 gl_cv_header_stdint_h=yes
6863 gl_cv_header_stdint_h=no
6865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
6868 $as_echo "$gl_cv_header_stdint_h" >&6; }
6869 if test $gl_cv_header_stdint_h = yes; then
6871 cat >>confdefs.h <<_ACEOF
6872 #define HAVE_STDINT_H_WITH_UINTMAX 1
6877 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6878 # for constant arguments. Useless!
6879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
6880 $as_echo_n "checking for working alloca.h... " >&6; }
6881 if ${ac_cv_working_alloca_h+:} false; then :
6882 $as_echo_n "(cached) " >&6
6884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6885 /* end confdefs.h. */
6890 char *p = (char *) alloca (2 * sizeof (int));
6896 if ac_fn_c_try_link "$LINENO"; then :
6897 ac_cv_working_alloca_h=yes
6899 ac_cv_working_alloca_h=no
6901 rm -f core conftest.err conftest.$ac_objext \
6902 conftest$ac_exeext conftest.$ac_ext
6904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
6905 $as_echo "$ac_cv_working_alloca_h" >&6; }
6906 if test $ac_cv_working_alloca_h = yes; then
6908 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
6912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
6913 $as_echo_n "checking for alloca... " >&6; }
6914 if ${ac_cv_func_alloca_works+:} false; then :
6915 $as_echo_n "(cached) " >&6
6917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6918 /* end confdefs.h. */
6920 # define alloca __builtin_alloca
6923 # include <malloc.h>
6924 # define alloca _alloca
6926 # ifdef HAVE_ALLOCA_H
6927 # include <alloca.h>
6932 # ifndef alloca /* predefined by HP cc +Olibcalls */
6933 void *alloca (size_t);
6943 char *p = (char *) alloca (1);
6949 if ac_fn_c_try_link "$LINENO"; then :
6950 ac_cv_func_alloca_works=yes
6952 ac_cv_func_alloca_works=no
6954 rm -f core conftest.err conftest.$ac_objext \
6955 conftest$ac_exeext conftest.$ac_ext
6957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
6958 $as_echo "$ac_cv_func_alloca_works" >&6; }
6960 if test $ac_cv_func_alloca_works = yes; then
6962 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
6965 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6966 # that cause trouble. Some versions do not even contain alloca or
6967 # contain a buggy version. If you still want to use their alloca,
6968 # use ar to extract alloca.o from them instead of compiling alloca.c.
6970 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
6972 $as_echo "#define C_ALLOCA 1" >>confdefs.h
6975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
6976 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
6977 if ${ac_cv_os_cray+:} false; then :
6978 $as_echo_n "(cached) " >&6
6980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6981 /* end confdefs.h. */
6982 #if defined CRAY && ! defined CRAY2
6989 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6990 $EGREP "webecray" >/dev/null 2>&1; then :
6998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
6999 $as_echo "$ac_cv_os_cray" >&6; }
7000 if test $ac_cv_os_cray = yes; then
7001 for ac_func in _getb67 GETB67 getb67; do
7002 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7003 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7004 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7006 cat >>confdefs.h <<_ACEOF
7007 #define CRAY_STACKSEG_END $ac_func
7016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
7017 $as_echo_n "checking stack direction for C alloca... " >&6; }
7018 if ${ac_cv_c_stack_direction+:} false; then :
7019 $as_echo_n "(cached) " >&6
7021 if test "$cross_compiling" = yes; then :
7022 ac_cv_c_stack_direction=0
7024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7025 /* end confdefs.h. */
7026 $ac_includes_default
7028 find_stack_direction (int *addr, int depth)
7033 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
7034 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
7039 main (int argc, char **argv)
7041 return find_stack_direction (0, argc + !argv + 20) < 0;
7044 if ac_fn_c_try_run "$LINENO"; then :
7045 ac_cv_c_stack_direction=1
7047 ac_cv_c_stack_direction=-1
7049 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7050 conftest.$ac_objext conftest.beam conftest.$ac_ext
7054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
7055 $as_echo "$ac_cv_c_stack_direction" >&6; }
7056 cat >>confdefs.h <<_ACEOF
7057 #define STACK_DIRECTION $ac_cv_c_stack_direction
7066 for ac_header in $ac_header_list
7068 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7069 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7071 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7072 cat >>confdefs.h <<_ACEOF
7073 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7087 for ac_func in getpagesize
7089 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
7090 if test "x$ac_cv_func_getpagesize" = xyes; then :
7091 cat >>confdefs.h <<_ACEOF
7092 #define HAVE_GETPAGESIZE 1
7098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
7099 $as_echo_n "checking for working mmap... " >&6; }
7100 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
7101 $as_echo_n "(cached) " >&6
7103 if test "$cross_compiling" = yes; then :
7104 ac_cv_func_mmap_fixed_mapped=no
7106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7107 /* end confdefs.h. */
7108 $ac_includes_default
7109 /* malloc might have been renamed as rpl_malloc. */
7112 /* Thanks to Mike Haertel and Jim Avera for this test.
7113 Here is a matrix of mmap possibilities:
7114 mmap private not fixed
7115 mmap private fixed at somewhere currently unmapped
7116 mmap private fixed at somewhere already mapped
7117 mmap shared not fixed
7118 mmap shared fixed at somewhere currently unmapped
7119 mmap shared fixed at somewhere already mapped
7120 For private mappings, we should verify that changes cannot be read()
7121 back from the file, nor mmap's back from the file at a different
7122 address. (There have been systems where private was not correctly
7123 implemented like the infamous i386 svr4.0, and systems where the
7124 VM page cache was not coherent with the file system buffer cache
7125 like early versions of FreeBSD and possibly contemporary NetBSD.)
7126 For shared mappings, we should conversely verify that changes get
7127 propagated back to all the places they're supposed to be.
7129 Grep wants private fixed already mapped.
7130 The main things grep needs to know about mmap are:
7131 * does it exist and is it safe to write into the mmap'd area
7132 * how to use it (BSD variants) */
7135 #include <sys/mman.h>
7137 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7141 /* This mess was copied from the GNU getpagesize.h. */
7142 #ifndef HAVE_GETPAGESIZE
7143 # ifdef _SC_PAGESIZE
7144 # define getpagesize() sysconf(_SC_PAGESIZE)
7145 # else /* no _SC_PAGESIZE */
7146 # ifdef HAVE_SYS_PARAM_H
7147 # include <sys/param.h>
7148 # ifdef EXEC_PAGESIZE
7149 # define getpagesize() EXEC_PAGESIZE
7150 # else /* no EXEC_PAGESIZE */
7152 # define getpagesize() NBPG * CLSIZE
7155 # endif /* no CLSIZE */
7156 # else /* no NBPG */
7158 # define getpagesize() NBPC
7159 # else /* no NBPC */
7161 # define getpagesize() PAGESIZE
7162 # endif /* PAGESIZE */
7163 # endif /* no NBPC */
7164 # endif /* no NBPG */
7165 # endif /* no EXEC_PAGESIZE */
7166 # else /* no HAVE_SYS_PARAM_H */
7167 # define getpagesize() 8192 /* punt totally */
7168 # endif /* no HAVE_SYS_PARAM_H */
7169 # endif /* no _SC_PAGESIZE */
7171 #endif /* no HAVE_GETPAGESIZE */
7176 char *data, *data2, *data3;
7181 pagesize = getpagesize ();
7183 /* First, make a file with some known garbage in it. */
7184 data = (char *) malloc (pagesize);
7187 for (i = 0; i < pagesize; ++i)
7188 *(data + i) = rand ();
7190 fd = creat ("conftest.mmap", 0600);
7193 if (write (fd, data, pagesize) != pagesize)
7197 /* Next, check that the tail of a page is zero-filled. File must have
7198 non-zero length, otherwise we risk SIGBUS for entire page. */
7199 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7203 if (write (fd2, cdata2, 1) != 1)
7205 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7206 if (data2 == MAP_FAILED)
7208 for (i = 0; i < pagesize; ++i)
7212 if (munmap (data2, pagesize))
7215 /* Next, try to mmap the file at a fixed address which already has
7216 something else allocated at it. If we can, also make sure that
7217 we see the same garbage. */
7218 fd = open ("conftest.mmap", O_RDWR);
7221 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7222 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7224 for (i = 0; i < pagesize; ++i)
7225 if (*(data + i) != *(data2 + i))
7228 /* Finally, make sure that changes to the mapped area do not
7229 percolate back to the file as seen by read(). (This is a bug on
7230 some variants of i386 svr4.0.) */
7231 for (i = 0; i < pagesize; ++i)
7232 *(data2 + i) = *(data2 + i) + 1;
7233 data3 = (char *) malloc (pagesize);
7236 if (read (fd, data3, pagesize) != pagesize)
7238 for (i = 0; i < pagesize; ++i)
7239 if (*(data + i) != *(data3 + i))
7245 if ac_fn_c_try_run "$LINENO"; then :
7246 ac_cv_func_mmap_fixed_mapped=yes
7248 ac_cv_func_mmap_fixed_mapped=no
7250 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7251 conftest.$ac_objext conftest.beam conftest.$ac_ext
7255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
7256 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
7257 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7259 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
7262 rm -f conftest.mmap conftest.txt
7266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
7267 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
7268 if ${gt_cv_int_divbyzero_sigfpe+:} false; then :
7269 $as_echo_n "(cached) " >&6
7272 gt_cv_int_divbyzero_sigfpe=
7274 macos* | darwin[6-9]* | darwin[1-9][0-9]*)
7275 # On Mac OS X 10.2 or newer, just assume the same as when cross-
7276 # compiling. If we were to perform the real test, 1 Crash Report
7277 # dialog window would pop up.
7279 i[34567]86 | x86_64)
7280 gt_cv_int_divbyzero_sigfpe="guessing yes" ;;
7284 if test -z "$gt_cv_int_divbyzero_sigfpe"; then
7285 if test "$cross_compiling" = yes; then :
7287 # Guess based on the CPU.
7289 alpha* | i[34567]86 | x86_64 | m68k | s390*)
7290 gt_cv_int_divbyzero_sigfpe="guessing yes";;
7292 gt_cv_int_divbyzero_sigfpe="guessing no";;
7296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7297 /* end confdefs.h. */
7303 sigfpe_handler (int sig)
7305 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
7306 exit (sig != SIGFPE);
7316 signal (SIGFPE, sigfpe_handler);
7317 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
7318 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
7319 signal (SIGTRAP, sigfpe_handler);
7321 /* Linux/SPARC yields signal SIGILL. */
7322 #if defined (__sparc__) && defined (__linux__)
7323 signal (SIGILL, sigfpe_handler);
7332 if ac_fn_c_try_run "$LINENO"; then :
7333 gt_cv_int_divbyzero_sigfpe=yes
7335 gt_cv_int_divbyzero_sigfpe=no
7337 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7338 conftest.$ac_objext conftest.beam conftest.$ac_ext
7344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
7345 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
7346 case "$gt_cv_int_divbyzero_sigfpe" in
7351 cat >>confdefs.h <<_ACEOF
7352 #define INTDIV0_RAISES_SIGFPE $value
7357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
7358 $as_echo_n "checking for inttypes.h... " >&6; }
7359 if ${gl_cv_header_inttypes_h+:} false; then :
7360 $as_echo_n "(cached) " >&6
7362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7363 /* end confdefs.h. */
7365 #include <sys/types.h>
7366 #include <inttypes.h>
7371 uintmax_t i = (uintmax_t) -1; return !i;
7376 if ac_fn_c_try_compile "$LINENO"; then :
7377 gl_cv_header_inttypes_h=yes
7379 gl_cv_header_inttypes_h=no
7381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
7384 $as_echo "$gl_cv_header_inttypes_h" >&6; }
7385 if test $gl_cv_header_inttypes_h = yes; then
7387 cat >>confdefs.h <<_ACEOF
7388 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
7394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
7395 $as_echo_n "checking for unsigned long long int... " >&6; }
7396 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
7397 $as_echo_n "(cached) " >&6
7399 ac_cv_type_unsigned_long_long_int=yes
7400 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
7401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7402 /* end confdefs.h. */
7404 /* For now, do not test the preprocessor; as of 2007 there are too many
7405 implementations with broken preprocessors. Perhaps this can
7406 be revisited in 2012. In the meantime, code should not expect
7407 #if to work with literals wider than 32 bits. */
7408 /* Test literals. */
7409 long long int ll = 9223372036854775807ll;
7410 long long int nll = -9223372036854775807LL;
7411 unsigned long long int ull = 18446744073709551615ULL;
7412 /* Test constant expressions. */
7413 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
7415 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
7421 /* Test availability of runtime routines for shift and division. */
7422 long long int llmax = 9223372036854775807ll;
7423 unsigned long long int ullmax = 18446744073709551615ull;
7424 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
7425 | (llmax / ll) | (llmax % ll)
7426 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
7427 | (ullmax / ull) | (ullmax % ull));
7433 if ac_fn_c_try_link "$LINENO"; then :
7436 ac_cv_type_unsigned_long_long_int=no
7438 rm -f core conftest.err conftest.$ac_objext \
7439 conftest$ac_exeext conftest.$ac_ext
7442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
7443 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
7444 if test $ac_cv_type_unsigned_long_long_int = yes; then
7446 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
7453 if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
7455 test $ac_cv_type_unsigned_long_long_int = yes \
7456 && ac_type='unsigned long long' \
7457 || ac_type='unsigned long'
7459 cat >>confdefs.h <<_ACEOF
7460 #define uintmax_t $ac_type
7465 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
7470 for ac_header in inttypes.h
7472 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
7473 if test "x$ac_cv_header_inttypes_h" = xyes; then :
7474 cat >>confdefs.h <<_ACEOF
7475 #define HAVE_INTTYPES_H 1
7482 if test $ac_cv_header_inttypes_h = yes; then
7483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
7484 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
7485 if ${gt_cv_inttypes_pri_broken+:} false; then :
7486 $as_echo_n "(cached) " >&6
7489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7490 /* end confdefs.h. */
7492 #include <inttypes.h>
7505 if ac_fn_c_try_compile "$LINENO"; then :
7506 gt_cv_inttypes_pri_broken=no
7508 gt_cv_inttypes_pri_broken=yes
7510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
7514 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
7516 if test "$gt_cv_inttypes_pri_broken" = yes; then
7518 cat >>confdefs.h <<_ACEOF
7519 #define PRI_MACROS_BROKEN 1
7533 # Check whether --enable-threads was given.
7534 if test "${enable_threads+set}" = set; then :
7535 enableval=$enable_threads; gl_use_threads=$enableval
7537 if test -n "$gl_use_threads_default"; then
7538 gl_use_threads="$gl_use_threads_default"
7541 osf*) gl_use_threads=no ;;
7544 1.[0-5].*) gl_use_threads=no ;;
7545 *) gl_use_threads=yes ;;
7548 *) gl_use_threads=yes ;;
7554 if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
7555 # For using <pthread.h>:
7558 # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
7559 # groks <pthread.h>. cc also understands the flag -pthread, but
7560 # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
7561 # 2. putting a flag into CPPFLAGS that has an effect on the linker
7562 # causes the AC_LINK_IFELSE test below to succeed unexpectedly,
7563 # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
7564 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
7567 # Some systems optimize for single-threaded programs by default, and
7568 # need special flags to disable these optimizations. For example, the
7569 # definition of 'errno' in <errno.h>.
7571 aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;;
7572 solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;;
7580 if test "X$prefix" = "XNONE"; then
7581 acl_final_prefix="$ac_default_prefix"
7583 acl_final_prefix="$prefix"
7585 if test "X$exec_prefix" = "XNONE"; then
7586 acl_final_exec_prefix='${prefix}'
7588 acl_final_exec_prefix="$exec_prefix"
7590 acl_save_prefix="$prefix"
7591 prefix="$acl_final_prefix"
7592 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7593 prefix="$acl_save_prefix"
7597 # Check whether --with-gnu-ld was given.
7598 if test "${with_gnu_ld+set}" = set; then :
7599 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7604 # Prepare PATH_SEPARATOR.
7605 # The user is always right.
7606 if test "${PATH_SEPARATOR+set}" != set; then
7607 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
7608 # contains only /bin. Note that ksh looks also at the FPATH variable,
7609 # so we have to set that as well for the test.
7611 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7612 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7613 || PATH_SEPARATOR=';'
7618 if test "$GCC" = yes; then
7619 # Check if gcc -print-prog-name=ld gives a path.
7620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7621 $as_echo_n "checking for ld used by $CC... " >&6; }
7624 # gcc leaves a trailing carriage return which upsets mingw
7625 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7627 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7630 # Accept absolute paths.
7632 re_direlt='/[^/][^/]*/\.\./'
7633 # Canonicalize the pathname of ld
7634 ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'`
7635 while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do
7636 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
7638 test -z "$LD" && LD="$ac_prog"
7641 # If it fails, then pretend we aren't using GCC.
7645 # If it is relative, then search for the first ld in PATH.
7649 elif test "$with_gnu_ld" = yes; then
7650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7651 $as_echo_n "checking for GNU ld... " >&6; }
7653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7654 $as_echo_n "checking for non-GNU ld... " >&6; }
7656 if ${acl_cv_path_LD+:} false; then :
7657 $as_echo_n "(cached) " >&6
7659 if test -z "$LD"; then
7660 acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7661 for ac_dir in $PATH; do
7663 test -z "$ac_dir" && ac_dir=.
7664 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7665 acl_cv_path_LD="$ac_dir/$ac_prog"
7666 # Check to see if the program is GNU ld. I'd rather use --version,
7667 # but apparently some variants of GNU ld only accept -v.
7668 # Break only if it was the GNU/non-GNU ld that we prefer.
7669 case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
7670 *GNU* | *'with BFD'*)
7671 test "$with_gnu_ld" != no && break
7674 test "$with_gnu_ld" != yes && break
7681 acl_cv_path_LD="$LD" # Let the user override the test with a path.
7685 LD="$acl_cv_path_LD"
7686 if test -n "$LD"; then
7687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7688 $as_echo "$LD" >&6; }
7690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7691 $as_echo "no" >&6; }
7693 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7695 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7696 if ${acl_cv_prog_gnu_ld+:} false; then :
7697 $as_echo_n "(cached) " >&6
7699 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7700 case `$LD -v 2>&1 </dev/null` in
7701 *GNU* | *'with BFD'*)
7702 acl_cv_prog_gnu_ld=yes
7705 acl_cv_prog_gnu_ld=no
7709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
7710 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
7711 with_gnu_ld=$acl_cv_prog_gnu_ld
7716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
7717 $as_echo_n "checking for shared library run path origin... " >&6; }
7718 if ${acl_cv_rpath+:} false; then :
7719 $as_echo_n "(cached) " >&6
7722 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
7723 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
7730 $as_echo "$acl_cv_rpath" >&6; }
7732 acl_libext="$acl_cv_libext"
7733 acl_shlibext="$acl_cv_shlibext"
7734 acl_libname_spec="$acl_cv_libname_spec"
7735 acl_library_names_spec="$acl_cv_library_names_spec"
7736 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
7737 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
7738 acl_hardcode_direct="$acl_cv_hardcode_direct"
7739 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
7740 # Check whether --enable-rpath was given.
7741 if test "${enable_rpath+set}" = set; then :
7742 enableval=$enable_rpath; :
7754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
7755 $as_echo_n "checking for 64-bit host... " >&6; }
7756 if ${gl_cv_solaris_64bit+:} false; then :
7757 $as_echo_n "(cached) " >&6
7759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7760 /* end confdefs.h. */
7767 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7768 $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
7769 gl_cv_solaris_64bit=yes
7771 gl_cv_solaris_64bit=no
7777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
7778 $as_echo "$gl_cv_solaris_64bit" >&6; }
7779 if test $gl_cv_solaris_64bit = yes; then
7780 acl_libdirstem=lib/64
7782 sparc*) acl_libdirstem2=lib/sparcv9 ;;
7783 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
7788 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
7789 if test -n "$searchpath"; then
7790 acl_save_IFS="${IFS= }"; IFS=":"
7791 for searchdir in $searchpath; do
7792 if test -d "$searchdir"; then
7793 case "$searchdir" in
7794 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
7796 # Better ignore directories of this form. They are misleading.
7798 *) searchdir=`cd "$searchdir" && pwd`
7799 case "$searchdir" in
7800 */lib64 ) acl_libdirstem=lib64 ;;
7809 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
7818 if test "$gl_use_threads" != no; then
7819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5
7820 $as_echo_n "checking whether imported symbols can be declared weak... " >&6; }
7821 if ${gl_cv_have_weak+:} false; then :
7822 $as_echo_n "(cached) " >&6
7825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7826 /* end confdefs.h. */
7827 extern void xyzzy ();
7837 if ac_fn_c_try_link "$LINENO"; then :
7838 gl_cv_have_weak=maybe
7840 rm -f core conftest.err conftest.$ac_objext \
7841 conftest$ac_exeext conftest.$ac_ext
7842 if test $gl_cv_have_weak = maybe; then
7843 if test "$cross_compiling" = yes; then :
7844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7845 /* end confdefs.h. */
7847 Extensible Linking Format
7851 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7852 $EGREP "Extensible Linking Format" >/dev/null 2>&1; then :
7853 gl_cv_have_weak="guessing yes"
7855 gl_cv_have_weak="guessing no"
7861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7862 /* end confdefs.h. */
7868 return (fputs == NULL);
7871 if ac_fn_c_try_run "$LINENO"; then :
7876 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7877 conftest.$ac_objext conftest.beam conftest.$ac_ext
7883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5
7884 $as_echo "$gl_cv_have_weak" >&6; }
7885 if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
7886 # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
7887 # it groks <pthread.h>. It's added above, in gl_THREADLIB_EARLY_BODY.
7888 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
7889 if test "x$ac_cv_header_pthread_h" = xyes; then :
7890 gl_have_pthread_h=yes
7892 gl_have_pthread_h=no
7896 if test "$gl_have_pthread_h" = yes; then
7897 # Other possible tests:
7898 # -lpthreads (FSU threads, PCthreads)
7901 # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
7902 # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
7903 # the second one only in libpthread, and lock.c needs it.
7904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7905 /* end confdefs.h. */
7906 #include <pthread.h>
7910 pthread_mutex_lock((pthread_mutex_t*)0);
7911 pthread_mutexattr_init((pthread_mutexattr_t*)0);
7916 if ac_fn_c_try_link "$LINENO"; then :
7919 rm -f core conftest.err conftest.$ac_objext \
7920 conftest$ac_exeext conftest.$ac_ext
7921 # Test for libpthread by looking for pthread_kill. (Not pthread_self,
7922 # since it is defined as a macro on OSF/1.)
7923 if test -n "$gl_have_pthread"; then
7924 # The program links fine without libpthread. But it may actually
7925 # need to link with libpthread in order to create multiple threads.
7926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
7927 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
7928 if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
7929 $as_echo_n "(cached) " >&6
7931 ac_check_lib_save_LIBS=$LIBS
7932 LIBS="-lpthread $LIBS"
7933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7934 /* end confdefs.h. */
7936 /* Override any GCC internal prototype to avoid an error.
7937 Use char because int might match the return type of a GCC
7938 builtin and then its argument prototype would still apply. */
7942 char pthread_kill ();
7946 return pthread_kill ();
7951 if ac_fn_c_try_link "$LINENO"; then :
7952 ac_cv_lib_pthread_pthread_kill=yes
7954 ac_cv_lib_pthread_pthread_kill=no
7956 rm -f core conftest.err conftest.$ac_objext \
7957 conftest$ac_exeext conftest.$ac_ext
7958 LIBS=$ac_check_lib_save_LIBS
7960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
7961 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
7962 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
7963 LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
7964 # On Solaris and HP-UX, most pthread functions exist also in libc.
7965 # Therefore pthread_in_use() needs to actually try to create a
7966 # thread: pthread_create from libc will fail, whereas
7967 # pthread_create will actually create a thread.
7971 $as_echo "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h
7978 # Some library is needed. Try libpthread and libc_r.
7979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
7980 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
7981 if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
7982 $as_echo_n "(cached) " >&6
7984 ac_check_lib_save_LIBS=$LIBS
7985 LIBS="-lpthread $LIBS"
7986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7987 /* end confdefs.h. */
7989 /* Override any GCC internal prototype to avoid an error.
7990 Use char because int might match the return type of a GCC
7991 builtin and then its argument prototype would still apply. */
7995 char pthread_kill ();
7999 return pthread_kill ();
8004 if ac_fn_c_try_link "$LINENO"; then :
8005 ac_cv_lib_pthread_pthread_kill=yes
8007 ac_cv_lib_pthread_pthread_kill=no
8009 rm -f core conftest.err conftest.$ac_objext \
8010 conftest$ac_exeext conftest.$ac_ext
8011 LIBS=$ac_check_lib_save_LIBS
8013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
8014 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
8015 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
8017 LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread
8018 LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
8021 if test -z "$gl_have_pthread"; then
8023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5
8024 $as_echo_n "checking for pthread_kill in -lc_r... " >&6; }
8025 if ${ac_cv_lib_c_r_pthread_kill+:} false; then :
8026 $as_echo_n "(cached) " >&6
8028 ac_check_lib_save_LIBS=$LIBS
8030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8031 /* end confdefs.h. */
8033 /* Override any GCC internal prototype to avoid an error.
8034 Use char because int might match the return type of a GCC
8035 builtin and then its argument prototype would still apply. */
8039 char pthread_kill ();
8043 return pthread_kill ();
8048 if ac_fn_c_try_link "$LINENO"; then :
8049 ac_cv_lib_c_r_pthread_kill=yes
8051 ac_cv_lib_c_r_pthread_kill=no
8053 rm -f core conftest.err conftest.$ac_objext \
8054 conftest$ac_exeext conftest.$ac_ext
8055 LIBS=$ac_check_lib_save_LIBS
8057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5
8058 $as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; }
8059 if test "x$ac_cv_lib_c_r_pthread_kill" = xyes; then :
8061 LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r
8062 LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r
8067 if test -n "$gl_have_pthread"; then
8068 gl_threads_api=posix
8070 $as_echo "#define USE_POSIX_THREADS 1" >>confdefs.h
8072 if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
8073 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
8075 $as_echo "#define USE_POSIX_THREADS_WEAK 1" >>confdefs.h
8084 if test -z "$gl_have_pthread"; then
8085 if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then
8086 gl_have_solaristhread=
8087 gl_save_LIBS="$LIBS"
8088 LIBS="$LIBS -lthread"
8089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8090 /* end confdefs.h. */
8103 if ac_fn_c_try_link "$LINENO"; then :
8104 gl_have_solaristhread=yes
8106 rm -f core conftest.err conftest.$ac_objext \
8107 conftest$ac_exeext conftest.$ac_ext
8108 LIBS="$gl_save_LIBS"
8109 if test -n "$gl_have_solaristhread"; then
8110 gl_threads_api=solaris
8112 LTLIBTHREAD=-lthread
8113 LIBMULTITHREAD="$LIBTHREAD"
8114 LTLIBMULTITHREAD="$LTLIBTHREAD"
8116 $as_echo "#define USE_SOLARIS_THREADS 1" >>confdefs.h
8118 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
8120 $as_echo "#define USE_SOLARIS_THREADS_WEAK 1" >>confdefs.h
8128 if test "$gl_use_threads" = pth; then
8129 gl_save_CPPFLAGS="$CPPFLAGS"
8135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libpth" >&5
8136 $as_echo_n "checking how to link with libpth... " >&6; }
8137 if ${ac_cv_libpth_libs+:} false; then :
8138 $as_echo_n "(cached) " >&6
8150 acl_save_prefix="$prefix"
8151 prefix="$acl_final_prefix"
8152 acl_save_exec_prefix="$exec_prefix"
8153 exec_prefix="$acl_final_exec_prefix"
8155 eval additional_includedir=\"$includedir\"
8156 eval additional_libdir=\"$libdir\"
8158 exec_prefix="$acl_save_exec_prefix"
8159 prefix="$acl_save_prefix"
8162 # Check whether --with-libpth-prefix was given.
8163 if test "${with_libpth_prefix+set}" = set; then :
8164 withval=$with_libpth_prefix;
8165 if test "X$withval" = "Xno"; then
8168 if test "X$withval" = "X"; then
8170 acl_save_prefix="$prefix"
8171 prefix="$acl_final_prefix"
8172 acl_save_exec_prefix="$exec_prefix"
8173 exec_prefix="$acl_final_exec_prefix"
8175 eval additional_includedir=\"$includedir\"
8176 eval additional_libdir=\"$libdir\"
8178 exec_prefix="$acl_save_exec_prefix"
8179 prefix="$acl_save_prefix"
8182 additional_includedir="$withval/include"
8183 additional_libdir="$withval/$acl_libdirstem"
8184 if test "$acl_libdirstem2" != "$acl_libdirstem" \
8185 && ! test -d "$withval/$acl_libdirstem"; then
8186 additional_libdir="$withval/$acl_libdirstem2"
8200 names_already_handled=
8201 names_next_round='pth '
8202 while test -n "$names_next_round"; do
8203 names_this_round="$names_next_round"
8205 for name in $names_this_round; do
8207 for n in $names_already_handled; do
8208 if test "$n" = "$name"; then
8213 if test -z "$already_handled"; then
8214 names_already_handled="$names_already_handled $name"
8215 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
8216 eval value=\"\$HAVE_LIB$uppername\"
8217 if test -n "$value"; then
8218 if test "$value" = yes; then
8219 eval value=\"\$LIB$uppername\"
8220 test -z "$value" || LIBPTH="${LIBPTH}${LIBPTH:+ }$value"
8221 eval value=\"\$LTLIB$uppername\"
8222 test -z "$value" || LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$value"
8231 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
8232 if test -n "$acl_shlibext"; then
8233 shrext=".$acl_shlibext" # typically: shrext=.so
8237 if test $use_additional = yes; then
8238 dir="$additional_libdir"
8239 if test -n "$acl_shlibext"; then
8240 if test -f "$dir/$libname$shrext"; then
8242 found_so="$dir/$libname$shrext"
8244 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8245 ver=`(cd "$dir" && \
8246 for f in "$libname$shrext".*; do echo "$f"; done \
8247 | sed -e "s,^$libname$shrext\\\\.,," \
8248 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8249 | sed 1q ) 2>/dev/null`
8250 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8252 found_so="$dir/$libname$shrext.$ver"
8255 eval library_names=\"$acl_library_names_spec\"
8256 for f in $library_names; do
8257 if test -f "$dir/$f"; then
8266 if test "X$found_dir" = "X"; then
8267 if test -f "$dir/$libname.$acl_libext"; then
8269 found_a="$dir/$libname.$acl_libext"
8272 if test "X$found_dir" != "X"; then
8273 if test -f "$dir/$libname.la"; then
8274 found_la="$dir/$libname.la"
8278 if test "X$found_dir" = "X"; then
8279 for x in $LDFLAGS $LTLIBPTH; do
8281 acl_save_prefix="$prefix"
8282 prefix="$acl_final_prefix"
8283 acl_save_exec_prefix="$exec_prefix"
8284 exec_prefix="$acl_final_exec_prefix"
8286 exec_prefix="$acl_save_exec_prefix"
8287 prefix="$acl_save_prefix"
8291 dir=`echo "X$x" | sed -e 's/^X-L//'`
8292 if test -n "$acl_shlibext"; then
8293 if test -f "$dir/$libname$shrext"; then
8295 found_so="$dir/$libname$shrext"
8297 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8298 ver=`(cd "$dir" && \
8299 for f in "$libname$shrext".*; do echo "$f"; done \
8300 | sed -e "s,^$libname$shrext\\\\.,," \
8301 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8302 | sed 1q ) 2>/dev/null`
8303 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8305 found_so="$dir/$libname$shrext.$ver"
8308 eval library_names=\"$acl_library_names_spec\"
8309 for f in $library_names; do
8310 if test -f "$dir/$f"; then
8319 if test "X$found_dir" = "X"; then
8320 if test -f "$dir/$libname.$acl_libext"; then
8322 found_a="$dir/$libname.$acl_libext"
8325 if test "X$found_dir" != "X"; then
8326 if test -f "$dir/$libname.la"; then
8327 found_la="$dir/$libname.la"
8332 if test "X$found_dir" != "X"; then
8337 if test "X$found_dir" != "X"; then
8338 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name"
8339 if test "X$found_so" != "X"; then
8340 if test "$enable_rpath" = no \
8341 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
8342 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
8343 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
8346 for x in $ltrpathdirs; do
8347 if test "X$x" = "X$found_dir"; then
8352 if test -z "$haveit"; then
8353 ltrpathdirs="$ltrpathdirs $found_dir"
8355 if test "$acl_hardcode_direct" = yes; then
8356 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
8358 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
8359 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
8361 for x in $rpathdirs; do
8362 if test "X$x" = "X$found_dir"; then
8367 if test -z "$haveit"; then
8368 rpathdirs="$rpathdirs $found_dir"
8372 for x in $LDFLAGS $LIBPTH; do
8374 acl_save_prefix="$prefix"
8375 prefix="$acl_final_prefix"
8376 acl_save_exec_prefix="$exec_prefix"
8377 exec_prefix="$acl_final_exec_prefix"
8379 exec_prefix="$acl_save_exec_prefix"
8380 prefix="$acl_save_prefix"
8382 if test "X$x" = "X-L$found_dir"; then
8387 if test -z "$haveit"; then
8388 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir"
8390 if test "$acl_hardcode_minus_L" != no; then
8391 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
8393 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
8399 if test "X$found_a" != "X"; then
8400 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_a"
8402 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name"
8405 additional_includedir=
8406 case "$found_dir" in
8407 */$acl_libdirstem | */$acl_libdirstem/)
8408 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
8409 if test "$name" = 'pth'; then
8410 LIBPTH_PREFIX="$basedir"
8412 additional_includedir="$basedir/include"
8414 */$acl_libdirstem2 | */$acl_libdirstem2/)
8415 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
8416 if test "$name" = 'pth'; then
8417 LIBPTH_PREFIX="$basedir"
8419 additional_includedir="$basedir/include"
8422 if test "X$additional_includedir" != "X"; then
8423 if test "X$additional_includedir" != "X/usr/include"; then
8425 if test "X$additional_includedir" = "X/usr/local/include"; then
8426 if test -n "$GCC"; then
8428 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
8432 if test -z "$haveit"; then
8433 for x in $CPPFLAGS $INCPTH; do
8435 acl_save_prefix="$prefix"
8436 prefix="$acl_final_prefix"
8437 acl_save_exec_prefix="$exec_prefix"
8438 exec_prefix="$acl_final_exec_prefix"
8440 exec_prefix="$acl_save_exec_prefix"
8441 prefix="$acl_save_prefix"
8443 if test "X$x" = "X-I$additional_includedir"; then
8448 if test -z "$haveit"; then
8449 if test -d "$additional_includedir"; then
8450 INCPTH="${INCPTH}${INCPTH:+ }-I$additional_includedir"
8456 if test -n "$found_la"; then
8457 save_libdir="$libdir"
8459 */* | *\\*) . "$found_la" ;;
8460 *) . "./$found_la" ;;
8462 libdir="$save_libdir"
8463 for dep in $dependency_libs; do
8466 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8467 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
8468 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
8470 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
8471 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
8472 if test -n "$GCC"; then
8474 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
8478 if test -z "$haveit"; then
8480 for x in $LDFLAGS $LIBPTH; do
8482 acl_save_prefix="$prefix"
8483 prefix="$acl_final_prefix"
8484 acl_save_exec_prefix="$exec_prefix"
8485 exec_prefix="$acl_final_exec_prefix"
8487 exec_prefix="$acl_save_exec_prefix"
8488 prefix="$acl_save_prefix"
8490 if test "X$x" = "X-L$additional_libdir"; then
8495 if test -z "$haveit"; then
8496 if test -d "$additional_libdir"; then
8497 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$additional_libdir"
8501 for x in $LDFLAGS $LTLIBPTH; do
8503 acl_save_prefix="$prefix"
8504 prefix="$acl_final_prefix"
8505 acl_save_exec_prefix="$exec_prefix"
8506 exec_prefix="$acl_final_exec_prefix"
8508 exec_prefix="$acl_save_exec_prefix"
8509 prefix="$acl_save_prefix"
8511 if test "X$x" = "X-L$additional_libdir"; then
8516 if test -z "$haveit"; then
8517 if test -d "$additional_libdir"; then
8518 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir"
8525 dir=`echo "X$dep" | sed -e 's/^X-R//'`
8526 if test "$enable_rpath" != no; then
8528 for x in $rpathdirs; do
8529 if test "X$x" = "X$dir"; then
8534 if test -z "$haveit"; then
8535 rpathdirs="$rpathdirs $dir"
8538 for x in $ltrpathdirs; do
8539 if test "X$x" = "X$dir"; then
8544 if test -z "$haveit"; then
8545 ltrpathdirs="$ltrpathdirs $dir"
8550 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8553 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8556 LIBPTH="${LIBPTH}${LIBPTH:+ }$dep"
8557 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$dep"
8563 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
8564 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-l$name"
8570 if test "X$rpathdirs" != "X"; then
8571 if test -n "$acl_hardcode_libdir_separator"; then
8573 for found_dir in $rpathdirs; do
8574 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
8576 acl_save_libdir="$libdir"
8578 eval flag=\"$acl_hardcode_libdir_flag_spec\"
8579 libdir="$acl_save_libdir"
8580 LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
8582 for found_dir in $rpathdirs; do
8583 acl_save_libdir="$libdir"
8585 eval flag=\"$acl_hardcode_libdir_flag_spec\"
8586 libdir="$acl_save_libdir"
8587 LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
8591 if test "X$ltrpathdirs" != "X"; then
8592 for found_dir in $ltrpathdirs; do
8593 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir"
8602 ac_cv_libpth_libs="$LIBPTH"
8603 ac_cv_libpth_ltlibs="$LTLIBPTH"
8604 ac_cv_libpth_cppflags="$INCPTH"
8605 ac_cv_libpth_prefix="$LIBPTH_PREFIX"
8608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libpth_libs" >&5
8609 $as_echo "$ac_cv_libpth_libs" >&6; }
8610 LIBPTH="$ac_cv_libpth_libs"
8611 LTLIBPTH="$ac_cv_libpth_ltlibs"
8612 INCPTH="$ac_cv_libpth_cppflags"
8613 LIBPTH_PREFIX="$ac_cv_libpth_prefix"
8615 for element in $INCPTH; do
8617 for x in $CPPFLAGS; do
8619 acl_save_prefix="$prefix"
8620 prefix="$acl_final_prefix"
8621 acl_save_exec_prefix="$exec_prefix"
8622 exec_prefix="$acl_final_exec_prefix"
8624 exec_prefix="$acl_save_exec_prefix"
8625 prefix="$acl_save_prefix"
8627 if test "X$x" = "X$element"; then
8632 if test -z "$haveit"; then
8633 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8645 gl_save_LIBS="$LIBS"
8646 LIBS="$LIBS $LIBPTH"
8647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8648 /* end confdefs.h. */
8658 if ac_fn_c_try_link "$LINENO"; then :
8661 rm -f core conftest.err conftest.$ac_objext \
8662 conftest$ac_exeext conftest.$ac_ext
8663 LIBS="$gl_save_LIBS"
8664 if test -n "$gl_have_pth"; then
8667 LTLIBTHREAD="$LTLIBPTH"
8668 LIBMULTITHREAD="$LIBTHREAD"
8669 LTLIBMULTITHREAD="$LTLIBTHREAD"
8671 $as_echo "#define USE_PTH_THREADS 1" >>confdefs.h
8673 if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
8674 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
8676 $as_echo "#define USE_PTH_THREADS_WEAK 1" >>confdefs.h
8683 CPPFLAGS="$gl_save_CPPFLAGS"
8686 if test -z "$gl_have_pthread"; then
8687 case "$gl_use_threads" in
8688 yes | windows | win32) # The 'win32' is for backward compatibility.
8689 if { case "$host_os" in
8694 gl_threads_api=windows
8696 $as_echo "#define USE_WINDOWS_THREADS 1" >>confdefs.h
8703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multithread API to use" >&5
8704 $as_echo_n "checking for multithread API to use... " >&6; }
8705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_threads_api" >&5
8706 $as_echo "$gl_threads_api" >&6; }
8718 if test "$gl_threads_api" = posix; then
8719 # OSF/1 4.0 and Mac OS X 10.1 lack the pthread_rwlock_t type and the
8720 # pthread_rwlock_* functions.
8721 ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h>
8723 if test "x$ac_cv_type_pthread_rwlock_t" = xyes; then :
8725 $as_echo "#define HAVE_PTHREAD_RWLOCK 1" >>confdefs.h
8729 # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
8730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8731 /* end confdefs.h. */
8733 #include <pthread.h>
8738 #if __FreeBSD__ == 4
8739 error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
8740 #elif (defined __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ \
8741 && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 1070)
8742 error "No, in Mac OS X < 10.7 recursive mutexes actually don't work."
8744 int x = (int)PTHREAD_MUTEX_RECURSIVE;
8752 if ac_fn_c_try_compile "$LINENO"; then :
8754 $as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h
8757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8774 acl_save_prefix="$prefix"
8775 prefix="$acl_final_prefix"
8776 acl_save_exec_prefix="$exec_prefix"
8777 exec_prefix="$acl_final_exec_prefix"
8779 eval additional_includedir=\"$includedir\"
8780 eval additional_libdir=\"$libdir\"
8782 exec_prefix="$acl_save_exec_prefix"
8783 prefix="$acl_save_prefix"
8786 # Check whether --with-libiconv-prefix was given.
8787 if test "${with_libiconv_prefix+set}" = set; then :
8788 withval=$with_libiconv_prefix;
8789 if test "X$withval" = "Xno"; then
8792 if test "X$withval" = "X"; then
8794 acl_save_prefix="$prefix"
8795 prefix="$acl_final_prefix"
8796 acl_save_exec_prefix="$exec_prefix"
8797 exec_prefix="$acl_final_exec_prefix"
8799 eval additional_includedir=\"$includedir\"
8800 eval additional_libdir=\"$libdir\"
8802 exec_prefix="$acl_save_exec_prefix"
8803 prefix="$acl_save_prefix"
8806 additional_includedir="$withval/include"
8807 additional_libdir="$withval/$acl_libdirstem"
8808 if test "$acl_libdirstem2" != "$acl_libdirstem" \
8809 && ! test -d "$withval/$acl_libdirstem"; then
8810 additional_libdir="$withval/$acl_libdirstem2"
8824 names_already_handled=
8825 names_next_round='iconv '
8826 while test -n "$names_next_round"; do
8827 names_this_round="$names_next_round"
8829 for name in $names_this_round; do
8831 for n in $names_already_handled; do
8832 if test "$n" = "$name"; then
8837 if test -z "$already_handled"; then
8838 names_already_handled="$names_already_handled $name"
8839 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
8840 eval value=\"\$HAVE_LIB$uppername\"
8841 if test -n "$value"; then
8842 if test "$value" = yes; then
8843 eval value=\"\$LIB$uppername\"
8844 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
8845 eval value=\"\$LTLIB$uppername\"
8846 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
8855 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
8856 if test -n "$acl_shlibext"; then
8857 shrext=".$acl_shlibext" # typically: shrext=.so
8861 if test $use_additional = yes; then
8862 dir="$additional_libdir"
8863 if test -n "$acl_shlibext"; then
8864 if test -f "$dir/$libname$shrext"; then
8866 found_so="$dir/$libname$shrext"
8868 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8869 ver=`(cd "$dir" && \
8870 for f in "$libname$shrext".*; do echo "$f"; done \
8871 | sed -e "s,^$libname$shrext\\\\.,," \
8872 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8873 | sed 1q ) 2>/dev/null`
8874 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8876 found_so="$dir/$libname$shrext.$ver"
8879 eval library_names=\"$acl_library_names_spec\"
8880 for f in $library_names; do
8881 if test -f "$dir/$f"; then
8890 if test "X$found_dir" = "X"; then
8891 if test -f "$dir/$libname.$acl_libext"; then
8893 found_a="$dir/$libname.$acl_libext"
8896 if test "X$found_dir" != "X"; then
8897 if test -f "$dir/$libname.la"; then
8898 found_la="$dir/$libname.la"
8902 if test "X$found_dir" = "X"; then
8903 for x in $LDFLAGS $LTLIBICONV; do
8905 acl_save_prefix="$prefix"
8906 prefix="$acl_final_prefix"
8907 acl_save_exec_prefix="$exec_prefix"
8908 exec_prefix="$acl_final_exec_prefix"
8910 exec_prefix="$acl_save_exec_prefix"
8911 prefix="$acl_save_prefix"
8915 dir=`echo "X$x" | sed -e 's/^X-L//'`
8916 if test -n "$acl_shlibext"; then
8917 if test -f "$dir/$libname$shrext"; then
8919 found_so="$dir/$libname$shrext"
8921 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8922 ver=`(cd "$dir" && \
8923 for f in "$libname$shrext".*; do echo "$f"; done \
8924 | sed -e "s,^$libname$shrext\\\\.,," \
8925 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8926 | sed 1q ) 2>/dev/null`
8927 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8929 found_so="$dir/$libname$shrext.$ver"
8932 eval library_names=\"$acl_library_names_spec\"
8933 for f in $library_names; do
8934 if test -f "$dir/$f"; then
8943 if test "X$found_dir" = "X"; then
8944 if test -f "$dir/$libname.$acl_libext"; then
8946 found_a="$dir/$libname.$acl_libext"
8949 if test "X$found_dir" != "X"; then
8950 if test -f "$dir/$libname.la"; then
8951 found_la="$dir/$libname.la"
8956 if test "X$found_dir" != "X"; then
8961 if test "X$found_dir" != "X"; then
8962 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
8963 if test "X$found_so" != "X"; then
8964 if test "$enable_rpath" = no \
8965 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
8966 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
8967 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8970 for x in $ltrpathdirs; do
8971 if test "X$x" = "X$found_dir"; then
8976 if test -z "$haveit"; then
8977 ltrpathdirs="$ltrpathdirs $found_dir"
8979 if test "$acl_hardcode_direct" = yes; then
8980 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8982 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
8983 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8985 for x in $rpathdirs; do
8986 if test "X$x" = "X$found_dir"; then
8991 if test -z "$haveit"; then
8992 rpathdirs="$rpathdirs $found_dir"
8996 for x in $LDFLAGS $LIBICONV; do
8998 acl_save_prefix="$prefix"
8999 prefix="$acl_final_prefix"
9000 acl_save_exec_prefix="$exec_prefix"
9001 exec_prefix="$acl_final_exec_prefix"
9003 exec_prefix="$acl_save_exec_prefix"
9004 prefix="$acl_save_prefix"
9006 if test "X$x" = "X-L$found_dir"; then
9011 if test -z "$haveit"; then
9012 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9014 if test "$acl_hardcode_minus_L" != no; then
9015 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9017 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9023 if test "X$found_a" != "X"; then
9024 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
9026 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9029 additional_includedir=
9030 case "$found_dir" in
9031 */$acl_libdirstem | */$acl_libdirstem/)
9032 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
9033 if test "$name" = 'iconv'; then
9034 LIBICONV_PREFIX="$basedir"
9036 additional_includedir="$basedir/include"
9038 */$acl_libdirstem2 | */$acl_libdirstem2/)
9039 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
9040 if test "$name" = 'iconv'; then
9041 LIBICONV_PREFIX="$basedir"
9043 additional_includedir="$basedir/include"
9046 if test "X$additional_includedir" != "X"; then
9047 if test "X$additional_includedir" != "X/usr/include"; then
9049 if test "X$additional_includedir" = "X/usr/local/include"; then
9050 if test -n "$GCC"; then
9052 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
9056 if test -z "$haveit"; then
9057 for x in $CPPFLAGS $INCICONV; do
9059 acl_save_prefix="$prefix"
9060 prefix="$acl_final_prefix"
9061 acl_save_exec_prefix="$exec_prefix"
9062 exec_prefix="$acl_final_exec_prefix"
9064 exec_prefix="$acl_save_exec_prefix"
9065 prefix="$acl_save_prefix"
9067 if test "X$x" = "X-I$additional_includedir"; then
9072 if test -z "$haveit"; then
9073 if test -d "$additional_includedir"; then
9074 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9080 if test -n "$found_la"; then
9081 save_libdir="$libdir"
9083 */* | *\\*) . "$found_la" ;;
9084 *) . "./$found_la" ;;
9086 libdir="$save_libdir"
9087 for dep in $dependency_libs; do
9090 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9091 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
9092 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
9094 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
9095 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
9096 if test -n "$GCC"; then
9098 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
9102 if test -z "$haveit"; then
9104 for x in $LDFLAGS $LIBICONV; do
9106 acl_save_prefix="$prefix"
9107 prefix="$acl_final_prefix"
9108 acl_save_exec_prefix="$exec_prefix"
9109 exec_prefix="$acl_final_exec_prefix"
9111 exec_prefix="$acl_save_exec_prefix"
9112 prefix="$acl_save_prefix"
9114 if test "X$x" = "X-L$additional_libdir"; then
9119 if test -z "$haveit"; then
9120 if test -d "$additional_libdir"; then
9121 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9125 for x in $LDFLAGS $LTLIBICONV; do
9127 acl_save_prefix="$prefix"
9128 prefix="$acl_final_prefix"
9129 acl_save_exec_prefix="$exec_prefix"
9130 exec_prefix="$acl_final_exec_prefix"
9132 exec_prefix="$acl_save_exec_prefix"
9133 prefix="$acl_save_prefix"
9135 if test "X$x" = "X-L$additional_libdir"; then
9140 if test -z "$haveit"; then
9141 if test -d "$additional_libdir"; then
9142 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
9149 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9150 if test "$enable_rpath" != no; then
9152 for x in $rpathdirs; do
9153 if test "X$x" = "X$dir"; then
9158 if test -z "$haveit"; then
9159 rpathdirs="$rpathdirs $dir"
9162 for x in $ltrpathdirs; do
9163 if test "X$x" = "X$dir"; then
9168 if test -z "$haveit"; then
9169 ltrpathdirs="$ltrpathdirs $dir"
9174 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9177 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9180 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
9181 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
9187 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9188 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
9194 if test "X$rpathdirs" != "X"; then
9195 if test -n "$acl_hardcode_libdir_separator"; then
9197 for found_dir in $rpathdirs; do
9198 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
9200 acl_save_libdir="$libdir"
9202 eval flag=\"$acl_hardcode_libdir_flag_spec\"
9203 libdir="$acl_save_libdir"
9204 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9206 for found_dir in $rpathdirs; do
9207 acl_save_libdir="$libdir"
9209 eval flag=\"$acl_hardcode_libdir_flag_spec\"
9210 libdir="$acl_save_libdir"
9211 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9215 if test "X$ltrpathdirs" != "X"; then
9216 for found_dir in $ltrpathdirs; do
9217 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
9232 am_save_CPPFLAGS="$CPPFLAGS"
9234 for element in $INCICONV; do
9236 for x in $CPPFLAGS; do
9238 acl_save_prefix="$prefix"
9239 prefix="$acl_final_prefix"
9240 acl_save_exec_prefix="$exec_prefix"
9241 exec_prefix="$acl_final_exec_prefix"
9243 exec_prefix="$acl_save_exec_prefix"
9244 prefix="$acl_save_prefix"
9246 if test "X$x" = "X$element"; then
9251 if test -z "$haveit"; then
9252 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
9258 $as_echo_n "checking for iconv... " >&6; }
9259 if ${am_cv_func_iconv+:} false; then :
9260 $as_echo_n "(cached) " >&6
9263 am_cv_func_iconv="no, consider installing GNU libiconv"
9265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9266 /* end confdefs.h. */
9274 iconv_t cd = iconv_open("","");
9275 iconv(cd,NULL,NULL,NULL,NULL);
9281 if ac_fn_c_try_link "$LINENO"; then :
9282 am_cv_func_iconv=yes
9284 rm -f core conftest.err conftest.$ac_objext \
9285 conftest$ac_exeext conftest.$ac_ext
9286 if test "$am_cv_func_iconv" != yes; then
9287 am_save_LIBS="$LIBS"
9288 LIBS="$LIBS $LIBICONV"
9289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9290 /* end confdefs.h. */
9298 iconv_t cd = iconv_open("","");
9299 iconv(cd,NULL,NULL,NULL,NULL);
9305 if ac_fn_c_try_link "$LINENO"; then :
9307 am_cv_func_iconv=yes
9309 rm -f core conftest.err conftest.$ac_objext \
9310 conftest$ac_exeext conftest.$ac_ext
9311 LIBS="$am_save_LIBS"
9315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
9316 $as_echo "$am_cv_func_iconv" >&6; }
9317 if test "$am_cv_func_iconv" = yes; then
9318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
9319 $as_echo_n "checking for working iconv... " >&6; }
9320 if ${am_cv_func_iconv_works+:} false; then :
9321 $as_echo_n "(cached) " >&6
9324 am_save_LIBS="$LIBS"
9325 if test $am_cv_lib_iconv = yes; then
9326 LIBS="$LIBS $LIBICONV"
9328 if test "$cross_compiling" = yes; then :
9331 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
9332 *) am_cv_func_iconv_works="guessing yes" ;;
9336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9337 /* end confdefs.h. */
9344 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
9347 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
9348 if (cd_utf8_to_88591 != (iconv_t)(-1))
9350 static const char input[] = "\342\202\254"; /* EURO SIGN */
9352 const char *inptr = input;
9353 size_t inbytesleft = strlen (input);
9355 size_t outbytesleft = sizeof (buf);
9356 size_t res = iconv (cd_utf8_to_88591,
9357 (char **) &inptr, &inbytesleft,
9358 &outptr, &outbytesleft);
9361 iconv_close (cd_utf8_to_88591);
9364 /* Test against Solaris 10 bug: Failures are not distinguishable from
9365 successful returns. */
9367 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
9368 if (cd_ascii_to_88591 != (iconv_t)(-1))
9370 static const char input[] = "\263";
9372 const char *inptr = input;
9373 size_t inbytesleft = strlen (input);
9375 size_t outbytesleft = sizeof (buf);
9376 size_t res = iconv (cd_ascii_to_88591,
9377 (char **) &inptr, &inbytesleft,
9378 &outptr, &outbytesleft);
9381 iconv_close (cd_ascii_to_88591);
9384 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
9386 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
9387 if (cd_88591_to_utf8 != (iconv_t)(-1))
9389 static const char input[] = "\304";
9390 static char buf[2] = { (char)0xDE, (char)0xAD };
9391 const char *inptr = input;
9392 size_t inbytesleft = 1;
9394 size_t outbytesleft = 1;
9395 size_t res = iconv (cd_88591_to_utf8,
9396 (char **) &inptr, &inbytesleft,
9397 &outptr, &outbytesleft);
9398 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
9400 iconv_close (cd_88591_to_utf8);
9403 #if 0 /* This bug could be worked around by the caller. */
9404 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
9406 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
9407 if (cd_88591_to_utf8 != (iconv_t)(-1))
9409 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
9411 const char *inptr = input;
9412 size_t inbytesleft = strlen (input);
9414 size_t outbytesleft = sizeof (buf);
9415 size_t res = iconv (cd_88591_to_utf8,
9416 (char **) &inptr, &inbytesleft,
9417 &outptr, &outbytesleft);
9420 iconv_close (cd_88591_to_utf8);
9424 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
9426 if (/* Try standardized names. */
9427 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
9428 /* Try IRIX, OSF/1 names. */
9429 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
9430 /* Try AIX names. */
9431 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
9432 /* Try HP-UX names. */
9433 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
9438 if ac_fn_c_try_run "$LINENO"; then :
9439 am_cv_func_iconv_works=yes
9441 am_cv_func_iconv_works=no
9443 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9444 conftest.$ac_objext conftest.beam conftest.$ac_ext
9447 LIBS="$am_save_LIBS"
9450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
9451 $as_echo "$am_cv_func_iconv_works" >&6; }
9452 case "$am_cv_func_iconv_works" in
9453 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
9454 *) am_func_iconv=yes ;;
9457 am_func_iconv=no am_cv_lib_iconv=no
9459 if test "$am_func_iconv" = yes; then
9461 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
9464 if test "$am_cv_lib_iconv" = yes; then
9465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
9466 $as_echo_n "checking how to link with libiconv... " >&6; }
9467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
9468 $as_echo "$LIBICONV" >&6; }
9470 CPPFLAGS="$am_save_CPPFLAGS"
9477 if test "$am_cv_func_iconv" = yes; then
9478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
9479 $as_echo_n "checking for iconv declaration... " >&6; }
9480 if ${am_cv_proto_iconv+:} false; then :
9481 $as_echo_n "(cached) " >&6
9484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9485 /* end confdefs.h. */
9493 #if defined(__STDC__) || defined(_MSC_VER) || defined(__cplusplus)
9494 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9507 if ac_fn_c_try_compile "$LINENO"; then :
9508 am_cv_proto_iconv_arg1=""
9510 am_cv_proto_iconv_arg1="const"
9512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9513 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);"
9516 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
9517 { $as_echo "$as_me:${as_lineno-$LINENO}: result:
9518 $am_cv_proto_iconv" >&5
9520 $am_cv_proto_iconv" >&6; }
9522 cat >>confdefs.h <<_ACEOF
9523 #define ICONV_CONST $am_cv_proto_iconv_arg1
9532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9533 /* end confdefs.h. */
9534 int foo (int a) { a = __builtin_expect (a, 10); return a == 10 ? 0 : 1; }
9543 if ac_fn_c_try_link "$LINENO"; then :
9545 $as_echo "#define HAVE_BUILTIN_EXPECT 1" >>confdefs.h
9548 rm -f core conftest.err conftest.$ac_objext \
9549 conftest$ac_exeext conftest.$ac_ext
9551 for ac_header in argz.h inttypes.h limits.h unistd.h sys/param.h
9553 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9554 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9555 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9556 cat >>confdefs.h <<_ACEOF
9557 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9564 for ac_func in getcwd getegid geteuid getgid getuid mempcpy munmap \
9565 stpcpy strcasecmp strdup strtoul tsearch uselocale argz_count \
9566 argz_stringify argz_next __fsetlocking
9568 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9569 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9570 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9571 cat >>confdefs.h <<_ACEOF
9572 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9579 ac_fn_c_check_decl "$LINENO" "feof_unlocked" "ac_cv_have_decl_feof_unlocked" "#include <stdio.h>
9581 if test "x$ac_cv_have_decl_feof_unlocked" = xyes; then :
9587 cat >>confdefs.h <<_ACEOF
9588 #define HAVE_DECL_FEOF_UNLOCKED $ac_have_decl
9590 ac_fn_c_check_decl "$LINENO" "fgets_unlocked" "ac_cv_have_decl_fgets_unlocked" "#include <stdio.h>
9592 if test "x$ac_cv_have_decl_fgets_unlocked" = xyes; then :
9598 cat >>confdefs.h <<_ACEOF
9599 #define HAVE_DECL_FGETS_UNLOCKED $ac_have_decl
9605 for ac_prog in bison
9607 # Extract the first word of "$ac_prog", so it can be a program name with args.
9608 set dummy $ac_prog; ac_word=$2
9609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9610 $as_echo_n "checking for $ac_word... " >&6; }
9611 if ${ac_cv_prog_INTLBISON+:} false; then :
9612 $as_echo_n "(cached) " >&6
9614 if test -n "$INTLBISON"; then
9615 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
9617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9621 test -z "$as_dir" && as_dir=.
9622 for ac_exec_ext in '' $ac_executable_extensions; do
9623 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9624 ac_cv_prog_INTLBISON="$ac_prog"
9625 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9634 INTLBISON=$ac_cv_prog_INTLBISON
9635 if test -n "$INTLBISON"; then
9636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
9637 $as_echo "$INTLBISON" >&6; }
9639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9640 $as_echo "no" >&6; }
9644 test -n "$INTLBISON" && break
9647 if test -z "$INTLBISON"; then
9650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
9651 $as_echo_n "checking version of bison... " >&6; }
9652 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
9653 case $ac_prog_version in
9654 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
9655 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
9656 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
9657 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
9659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
9660 $as_echo "$ac_prog_version" >&6; }
9662 if test $ac_verc_fail = yes; then
9668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
9669 $as_echo_n "checking for long long int... " >&6; }
9670 if ${ac_cv_type_long_long_int+:} false; then :
9671 $as_echo_n "(cached) " >&6
9673 ac_cv_type_long_long_int=yes
9674 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
9675 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
9676 if test $ac_cv_type_long_long_int = yes; then
9677 if test "$cross_compiling" = yes; then :
9680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9681 /* end confdefs.h. */
9685 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
9686 # define LLONG_MAX (HALF - 1 + HALF)
9691 long long int n = 1;
9695 long long int m = n << i;
9698 if (LLONG_MAX / 2 < m)
9706 if ac_fn_c_try_run "$LINENO"; then :
9709 ac_cv_type_long_long_int=no
9711 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9712 conftest.$ac_objext conftest.beam conftest.$ac_ext
9718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
9719 $as_echo "$ac_cv_type_long_long_int" >&6; }
9720 if test $ac_cv_type_long_long_int = yes; then
9722 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
9727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
9728 $as_echo_n "checking for wchar_t... " >&6; }
9729 if ${gt_cv_c_wchar_t+:} false; then :
9730 $as_echo_n "(cached) " >&6
9732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9733 /* end confdefs.h. */
9735 wchar_t foo = (wchar_t)'\0';
9744 if ac_fn_c_try_compile "$LINENO"; then :
9749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
9752 $as_echo "$gt_cv_c_wchar_t" >&6; }
9753 if test $gt_cv_c_wchar_t = yes; then
9755 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
9760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
9761 $as_echo_n "checking for wint_t... " >&6; }
9762 if ${gt_cv_c_wint_t+:} false; then :
9763 $as_echo_n "(cached) " >&6
9765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9766 /* end confdefs.h. */
9768 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
9770 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
9771 before <wchar.h>. */
9776 wint_t foo = (wchar_t)'\0';
9785 if ac_fn_c_try_compile "$LINENO"; then :
9790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
9793 $as_echo "$gt_cv_c_wint_t" >&6; }
9794 if test $gt_cv_c_wint_t = yes; then
9796 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
9803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
9804 $as_echo_n "checking for intmax_t... " >&6; }
9805 if ${gt_cv_c_intmax_t+:} false; then :
9806 $as_echo_n "(cached) " >&6
9808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9809 /* end confdefs.h. */
9813 #if HAVE_STDINT_H_WITH_UINTMAX
9816 #if HAVE_INTTYPES_H_WITH_UINTMAX
9817 #include <inttypes.h>
9829 if ac_fn_c_try_compile "$LINENO"; then :
9830 gt_cv_c_intmax_t=yes
9834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
9837 $as_echo "$gt_cv_c_intmax_t" >&6; }
9838 if test $gt_cv_c_intmax_t = yes; then
9840 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
9846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
9847 $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
9848 if ${gt_cv_func_printf_posix+:} false; then :
9849 $as_echo_n "(cached) " >&6
9852 if test "$cross_compiling" = yes; then :
9854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9855 /* end confdefs.h. */
9857 #if defined __NetBSD__ || defined __BEOS__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
9862 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9863 $EGREP "notposix" >/dev/null 2>&1; then :
9864 gt_cv_func_printf_posix="guessing no"
9866 gt_cv_func_printf_posix="guessing yes"
9872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9873 /* end confdefs.h. */
9877 /* The string "%2$d %1$d", with dollar characters protected from the shell's
9878 dollar expansion (possibly an autoconf bug). */
9879 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
9880 static char buf[100];
9883 sprintf (buf, format, 33, 55);
9884 return (strcmp (buf, "55 33") != 0);
9887 if ac_fn_c_try_run "$LINENO"; then :
9888 gt_cv_func_printf_posix=yes
9890 gt_cv_func_printf_posix=no
9892 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9893 conftest.$ac_objext conftest.beam conftest.$ac_ext
9898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
9899 $as_echo "$gt_cv_func_printf_posix" >&6; }
9900 case $gt_cv_func_printf_posix in
9903 $as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
9909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library >= 2.1 or uClibc" >&5
9910 $as_echo_n "checking whether we are using the GNU C Library >= 2.1 or uClibc... " >&6; }
9911 if ${ac_cv_gnu_library_2_1+:} false; then :
9912 $as_echo_n "(cached) " >&6
9914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9915 /* end confdefs.h. */
9917 #include <features.h>
9918 #ifdef __GNU_LIBRARY__
9919 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
9928 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9929 $EGREP "Lucky" >/dev/null 2>&1; then :
9930 ac_cv_gnu_library_2_1=yes
9932 ac_cv_gnu_library_2_1=no
9939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
9940 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
9942 GLIBC21="$ac_cv_gnu_library_2_1"
9946 for ac_header in stdint.h
9948 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
9949 if test "x$ac_cv_header_stdint_h" = xyes; then :
9950 cat >>confdefs.h <<_ACEOF
9951 #define HAVE_STDINT_H 1
9958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
9959 $as_echo_n "checking for SIZE_MAX... " >&6; }
9960 if ${gl_cv_size_max+:} false; then :
9961 $as_echo_n "(cached) " >&6
9965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9966 /* end confdefs.h. */
9977 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9978 $EGREP "Found it" >/dev/null 2>&1; then :
9983 if test -z "$gl_cv_size_max"; then
9984 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1" "#include <stddef.h>
9985 #include <limits.h>"; then :
9988 size_t_bits_minus_1=
9991 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then :
9997 if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
9998 if test $fits_in_uint = 1; then
9999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10000 /* end confdefs.h. */
10001 #include <stddef.h>
10003 extern unsigned long foo;
10013 if ac_fn_c_try_compile "$LINENO"; then :
10016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10018 if test $fits_in_uint = 1; then
10019 gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
10021 gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
10024 gl_cv_size_max='((size_t)~(size_t)0)'
10029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5
10030 $as_echo "$gl_cv_size_max" >&6; }
10031 if test "$gl_cv_size_max" != yes; then
10033 cat >>confdefs.h <<_ACEOF
10034 #define SIZE_MAX $gl_cv_size_max
10042 for ac_header in stdint.h
10044 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
10045 if test "x$ac_cv_header_stdint_h" = xyes; then :
10046 cat >>confdefs.h <<_ACEOF
10047 #define HAVE_STDINT_H 1
10058 for ac_func in $ac_func_list
10060 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10061 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10062 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10063 cat >>confdefs.h <<_ACEOF
10064 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
10078 $as_echo_n "checking for working fcntl.h... " >&6; }
10079 if ${gl_cv_header_working_fcntl_h+:} false; then :
10080 $as_echo_n "(cached) " >&6
10082 if test "$cross_compiling" = yes; then :
10083 gl_cv_header_working_fcntl_h=cross-compiling
10085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10086 /* end confdefs.h. */
10087 #include <sys/types.h>
10088 #include <sys/stat.h>
10090 # include <unistd.h>
10091 #else /* on Windows with MSVC */
10093 # include <stdlib.h>
10094 # defined sleep(n) _sleep ((n) * 1000)
10098 #define O_NOATIME 0
10101 #define O_NOFOLLOW 0
10103 static int const constants[] =
10105 O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
10106 O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
10113 int result = !constants;
10116 static char const sym[] = "conftest.sym";
10117 if (symlink ("/dev/null", sym) != 0)
10121 int fd = open (sym, O_WRONLY | O_NOFOLLOW | O_CREAT, 0);
10128 if (unlink (sym) != 0 || symlink (".", sym) != 0)
10132 int fd = open (sym, O_RDONLY | O_NOFOLLOW);
10143 static char const file[] = "confdefs.h";
10144 int fd = open (file, O_RDONLY | O_NOATIME);
10150 if (fstat (fd, &st0) != 0)
10156 if (read (fd, &c, 1) != 1)
10160 if (close (fd) != 0)
10165 if (stat (file, &st1) != 0)
10168 if (st0.st_atime != st1.st_atime)
10180 if ac_fn_c_try_run "$LINENO"; then :
10181 gl_cv_header_working_fcntl_h=yes
10184 4) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
10185 64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
10186 68) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
10187 *) gl_cv_header_working_fcntl_h='no';;
10190 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10191 conftest.$ac_objext conftest.beam conftest.$ac_ext
10195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
10196 $as_echo "$gl_cv_header_working_fcntl_h" >&6; }
10198 case $gl_cv_header_working_fcntl_h in #(
10199 *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
10203 cat >>confdefs.h <<_ACEOF
10204 #define HAVE_WORKING_O_NOATIME $ac_val
10208 case $gl_cv_header_working_fcntl_h in #(
10209 *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
10213 cat >>confdefs.h <<_ACEOF
10214 #define HAVE_WORKING_O_NOFOLLOW $ac_val
10219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
10220 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
10221 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
10222 $as_echo_n "(cached) " >&6
10224 gt_save_LIBS="$LIBS"
10225 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10227 /* end confdefs.h. */
10228 #include <CoreFoundation/CFPreferences.h>
10232 CFPreferencesCopyAppValue(NULL, NULL)
10237 if ac_fn_c_try_link "$LINENO"; then :
10238 gt_cv_func_CFPreferencesCopyAppValue=yes
10240 gt_cv_func_CFPreferencesCopyAppValue=no
10242 rm -f core conftest.err conftest.$ac_objext \
10243 conftest$ac_exeext conftest.$ac_ext
10244 LIBS="$gt_save_LIBS"
10246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
10247 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
10248 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
10250 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
10253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
10254 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
10255 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
10256 $as_echo_n "(cached) " >&6
10258 gt_save_LIBS="$LIBS"
10259 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10261 /* end confdefs.h. */
10262 #include <CoreFoundation/CFLocale.h>
10266 CFLocaleCopyCurrent();
10271 if ac_fn_c_try_link "$LINENO"; then :
10272 gt_cv_func_CFLocaleCopyCurrent=yes
10274 gt_cv_func_CFLocaleCopyCurrent=no
10276 rm -f core conftest.err conftest.$ac_objext \
10277 conftest$ac_exeext conftest.$ac_ext
10278 LIBS="$gt_save_LIBS"
10280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
10281 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
10282 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10284 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
10288 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10289 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
10301 case "$enable_silent_rules" in
10302 yes) INTL_DEFAULT_VERBOSITY=0;;
10303 no) INTL_DEFAULT_VERBOSITY=1;;
10304 *) INTL_DEFAULT_VERBOSITY=1;;
10308 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
10309 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
10313 $as_echo "#define ptrdiff_t long" >>confdefs.h
10318 for ac_header in features.h stddef.h stdlib.h string.h
10320 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10321 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10322 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10323 cat >>confdefs.h <<_ACEOF
10324 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10331 for ac_func in asprintf fwprintf newlocale putenv setenv setlocale \
10332 snprintf strnlen wcslen wcsnlen mbrtowc wcrtomb
10334 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10335 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10336 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10337 cat >>confdefs.h <<_ACEOF
10338 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10345 ac_fn_c_check_decl "$LINENO" "_snprintf" "ac_cv_have_decl__snprintf" "#include <stdio.h>
10347 if test "x$ac_cv_have_decl__snprintf" = xyes; then :
10353 cat >>confdefs.h <<_ACEOF
10354 #define HAVE_DECL__SNPRINTF $ac_have_decl
10356 ac_fn_c_check_decl "$LINENO" "_snwprintf" "ac_cv_have_decl__snwprintf" "#include <stdio.h>
10358 if test "x$ac_cv_have_decl__snwprintf" = xyes; then :
10364 cat >>confdefs.h <<_ACEOF
10365 #define HAVE_DECL__SNWPRINTF $ac_have_decl
10369 ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "#include <stdio.h>
10371 if test "x$ac_cv_have_decl_getc_unlocked" = xyes; then :
10377 cat >>confdefs.h <<_ACEOF
10378 #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
10382 case $gt_cv_func_printf_posix in
10383 *yes) HAVE_POSIX_PRINTF=1 ;;
10384 *) HAVE_POSIX_PRINTF=0 ;;
10387 if test "$ac_cv_func_asprintf" = yes; then
10393 if test "$ac_cv_func_snprintf" = yes; then
10399 if test "$ac_cv_func_newlocale" = yes; then
10405 if test "$ac_cv_func_wprintf" = yes; then
10413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10414 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10415 if ${am_cv_langinfo_codeset+:} false; then :
10416 $as_echo_n "(cached) " >&6
10418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10419 /* end confdefs.h. */
10420 #include <langinfo.h>
10424 char* cs = nl_langinfo(CODESET); return !cs;
10429 if ac_fn_c_try_link "$LINENO"; then :
10430 am_cv_langinfo_codeset=yes
10432 am_cv_langinfo_codeset=no
10434 rm -f core conftest.err conftest.$ac_objext \
10435 conftest$ac_exeext conftest.$ac_ext
10438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10439 $as_echo "$am_cv_langinfo_codeset" >&6; }
10440 if test $am_cv_langinfo_codeset = yes; then
10442 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10448 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10449 if ${gt_cv_val_LC_MESSAGES+:} false; then :
10450 $as_echo_n "(cached) " >&6
10452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10453 /* end confdefs.h. */
10454 #include <locale.h>
10463 if ac_fn_c_try_link "$LINENO"; then :
10464 gt_cv_val_LC_MESSAGES=yes
10466 gt_cv_val_LC_MESSAGES=no
10468 rm -f core conftest.err conftest.$ac_objext \
10469 conftest$ac_exeext conftest.$ac_ext
10471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5
10472 $as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
10473 if test $gt_cv_val_LC_MESSAGES = yes; then
10475 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10480 if test "$enable_shared" = yes; then
10482 mingw* | cygwin*) is_woe32dll=yes ;;
10483 *) is_woe32dll=no ;;
10488 WOE32DLL=$is_woe32dll
10492 mingw* | cygwin*) is_woe32=yes ;;
10497 if test $WOE32 = yes; then
10498 if test -n "$ac_tool_prefix"; then
10499 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
10500 set dummy ${ac_tool_prefix}windres; ac_word=$2
10501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10502 $as_echo_n "checking for $ac_word... " >&6; }
10503 if ${ac_cv_prog_WINDRES+:} false; then :
10504 $as_echo_n "(cached) " >&6
10506 if test -n "$WINDRES"; then
10507 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
10509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10510 for as_dir in $PATH
10513 test -z "$as_dir" && as_dir=.
10514 for ac_exec_ext in '' $ac_executable_extensions; do
10515 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10516 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
10517 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10526 WINDRES=$ac_cv_prog_WINDRES
10527 if test -n "$WINDRES"; then
10528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
10529 $as_echo "$WINDRES" >&6; }
10531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10532 $as_echo "no" >&6; }
10537 if test -z "$ac_cv_prog_WINDRES"; then
10538 ac_ct_WINDRES=$WINDRES
10539 # Extract the first word of "windres", so it can be a program name with args.
10540 set dummy windres; ac_word=$2
10541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10542 $as_echo_n "checking for $ac_word... " >&6; }
10543 if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
10544 $as_echo_n "(cached) " >&6
10546 if test -n "$ac_ct_WINDRES"; then
10547 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
10549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10550 for as_dir in $PATH
10553 test -z "$as_dir" && as_dir=.
10554 for ac_exec_ext in '' $ac_executable_extensions; do
10555 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10556 ac_cv_prog_ac_ct_WINDRES="windres"
10557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10566 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
10567 if test -n "$ac_ct_WINDRES"; then
10568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
10569 $as_echo "$ac_ct_WINDRES" >&6; }
10571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10572 $as_echo "no" >&6; }
10575 if test "x$ac_ct_WINDRES" = x; then
10578 case $cross_compiling:$ac_tool_warned in
10580 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10581 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10582 ac_tool_warned=yes ;;
10584 WINDRES=$ac_ct_WINDRES
10587 WINDRES="$ac_cv_prog_WINDRES"
10593 hpux*) LTLIBC="" ;;
10623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
10624 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
10625 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
10626 $as_echo_n "(cached) " >&6
10628 gt_save_LIBS="$LIBS"
10629 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10631 /* end confdefs.h. */
10632 #include <CoreFoundation/CFPreferences.h>
10636 CFPreferencesCopyAppValue(NULL, NULL)
10641 if ac_fn_c_try_link "$LINENO"; then :
10642 gt_cv_func_CFPreferencesCopyAppValue=yes
10644 gt_cv_func_CFPreferencesCopyAppValue=no
10646 rm -f core conftest.err conftest.$ac_objext \
10647 conftest$ac_exeext conftest.$ac_ext
10648 LIBS="$gt_save_LIBS"
10650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
10651 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
10652 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
10654 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
10657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
10658 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
10659 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
10660 $as_echo_n "(cached) " >&6
10662 gt_save_LIBS="$LIBS"
10663 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10665 /* end confdefs.h. */
10666 #include <CoreFoundation/CFLocale.h>
10670 CFLocaleCopyCurrent();
10675 if ac_fn_c_try_link "$LINENO"; then :
10676 gt_cv_func_CFLocaleCopyCurrent=yes
10678 gt_cv_func_CFLocaleCopyCurrent=no
10680 rm -f core conftest.err conftest.$ac_objext \
10681 conftest$ac_exeext conftest.$ac_ext
10682 LIBS="$gt_save_LIBS"
10684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
10685 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
10686 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10688 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
10692 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10693 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
10701 BUILD_INCLUDED_LIBINTL=no
10702 USE_INCLUDED_LIBINTL=no
10708 case " $gt_needs " in
10709 *" need-formatstring-macros "*) gt_api_version=3 ;;
10710 *" need-ngettext "*) gt_api_version=2 ;;
10711 *) gt_api_version=1 ;;
10713 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
10714 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
10716 if test "$USE_NLS" = "yes"; then
10717 gt_use_preinstalled_gnugettext=no
10719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
10720 $as_echo_n "checking whether included gettext is requested... " >&6; }
10722 # Check whether --with-included-gettext was given.
10723 if test "${with_included_gettext+set}" = set; then :
10724 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
10726 nls_cv_force_use_gnu_gettext=no
10729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
10730 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
10732 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
10733 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
10736 if test $gt_api_version -ge 3; then
10737 gt_revision_test_code='
10738 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
10739 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
10741 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
10744 gt_revision_test_code=
10746 if test $gt_api_version -ge 2; then
10747 gt_expression_test_code=' + * ngettext ("", "", 0)'
10749 gt_expression_test_code=
10752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
10753 $as_echo_n "checking for GNU gettext in libc... " >&6; }
10754 if eval \${$gt_func_gnugettext_libc+:} false; then :
10755 $as_echo_n "(cached) " >&6
10757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10758 /* end confdefs.h. */
10760 #include <libintl.h>
10761 $gt_revision_test_code
10762 extern int _nl_msg_cat_cntr;
10763 extern int *_nl_domain_bindings;
10769 bindtextdomain ("", "");
10770 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
10776 if ac_fn_c_try_link "$LINENO"; then :
10777 eval "$gt_func_gnugettext_libc=yes"
10779 eval "$gt_func_gnugettext_libc=no"
10781 rm -f core conftest.err conftest.$ac_objext \
10782 conftest$ac_exeext conftest.$ac_ext
10784 eval ac_res=\$$gt_func_gnugettext_libc
10785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10786 $as_echo "$ac_res" >&6; }
10788 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
10799 acl_save_prefix="$prefix"
10800 prefix="$acl_final_prefix"
10801 acl_save_exec_prefix="$exec_prefix"
10802 exec_prefix="$acl_final_exec_prefix"
10804 eval additional_includedir=\"$includedir\"
10805 eval additional_libdir=\"$libdir\"
10807 exec_prefix="$acl_save_exec_prefix"
10808 prefix="$acl_save_prefix"
10811 # Check whether --with-libintl-prefix was given.
10812 if test "${with_libintl_prefix+set}" = set; then :
10813 withval=$with_libintl_prefix;
10814 if test "X$withval" = "Xno"; then
10817 if test "X$withval" = "X"; then
10819 acl_save_prefix="$prefix"
10820 prefix="$acl_final_prefix"
10821 acl_save_exec_prefix="$exec_prefix"
10822 exec_prefix="$acl_final_exec_prefix"
10824 eval additional_includedir=\"$includedir\"
10825 eval additional_libdir=\"$libdir\"
10827 exec_prefix="$acl_save_exec_prefix"
10828 prefix="$acl_save_prefix"
10831 additional_includedir="$withval/include"
10832 additional_libdir="$withval/$acl_libdirstem"
10833 if test "$acl_libdirstem2" != "$acl_libdirstem" \
10834 && ! test -d "$withval/$acl_libdirstem"; then
10835 additional_libdir="$withval/$acl_libdirstem2"
10849 names_already_handled=
10850 names_next_round='intl '
10851 while test -n "$names_next_round"; do
10852 names_this_round="$names_next_round"
10854 for name in $names_this_round; do
10856 for n in $names_already_handled; do
10857 if test "$n" = "$name"; then
10858 already_handled=yes
10862 if test -z "$already_handled"; then
10863 names_already_handled="$names_already_handled $name"
10864 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
10865 eval value=\"\$HAVE_LIB$uppername\"
10866 if test -n "$value"; then
10867 if test "$value" = yes; then
10868 eval value=\"\$LIB$uppername\"
10869 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
10870 eval value=\"\$LTLIB$uppername\"
10871 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
10880 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
10881 if test -n "$acl_shlibext"; then
10882 shrext=".$acl_shlibext" # typically: shrext=.so
10886 if test $use_additional = yes; then
10887 dir="$additional_libdir"
10888 if test -n "$acl_shlibext"; then
10889 if test -f "$dir/$libname$shrext"; then
10891 found_so="$dir/$libname$shrext"
10893 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
10894 ver=`(cd "$dir" && \
10895 for f in "$libname$shrext".*; do echo "$f"; done \
10896 | sed -e "s,^$libname$shrext\\\\.,," \
10897 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
10898 | sed 1q ) 2>/dev/null`
10899 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
10901 found_so="$dir/$libname$shrext.$ver"
10904 eval library_names=\"$acl_library_names_spec\"
10905 for f in $library_names; do
10906 if test -f "$dir/$f"; then
10915 if test "X$found_dir" = "X"; then
10916 if test -f "$dir/$libname.$acl_libext"; then
10918 found_a="$dir/$libname.$acl_libext"
10921 if test "X$found_dir" != "X"; then
10922 if test -f "$dir/$libname.la"; then
10923 found_la="$dir/$libname.la"
10927 if test "X$found_dir" = "X"; then
10928 for x in $LDFLAGS $LTLIBINTL; do
10930 acl_save_prefix="$prefix"
10931 prefix="$acl_final_prefix"
10932 acl_save_exec_prefix="$exec_prefix"
10933 exec_prefix="$acl_final_exec_prefix"
10935 exec_prefix="$acl_save_exec_prefix"
10936 prefix="$acl_save_prefix"
10940 dir=`echo "X$x" | sed -e 's/^X-L//'`
10941 if test -n "$acl_shlibext"; then
10942 if test -f "$dir/$libname$shrext"; then
10944 found_so="$dir/$libname$shrext"
10946 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
10947 ver=`(cd "$dir" && \
10948 for f in "$libname$shrext".*; do echo "$f"; done \
10949 | sed -e "s,^$libname$shrext\\\\.,," \
10950 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
10951 | sed 1q ) 2>/dev/null`
10952 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
10954 found_so="$dir/$libname$shrext.$ver"
10957 eval library_names=\"$acl_library_names_spec\"
10958 for f in $library_names; do
10959 if test -f "$dir/$f"; then
10968 if test "X$found_dir" = "X"; then
10969 if test -f "$dir/$libname.$acl_libext"; then
10971 found_a="$dir/$libname.$acl_libext"
10974 if test "X$found_dir" != "X"; then
10975 if test -f "$dir/$libname.la"; then
10976 found_la="$dir/$libname.la"
10981 if test "X$found_dir" != "X"; then
10986 if test "X$found_dir" != "X"; then
10987 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
10988 if test "X$found_so" != "X"; then
10989 if test "$enable_rpath" = no \
10990 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
10991 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
10992 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10995 for x in $ltrpathdirs; do
10996 if test "X$x" = "X$found_dir"; then
11001 if test -z "$haveit"; then
11002 ltrpathdirs="$ltrpathdirs $found_dir"
11004 if test "$acl_hardcode_direct" = yes; then
11005 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11007 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
11008 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11010 for x in $rpathdirs; do
11011 if test "X$x" = "X$found_dir"; then
11016 if test -z "$haveit"; then
11017 rpathdirs="$rpathdirs $found_dir"
11021 for x in $LDFLAGS $LIBINTL; do
11023 acl_save_prefix="$prefix"
11024 prefix="$acl_final_prefix"
11025 acl_save_exec_prefix="$exec_prefix"
11026 exec_prefix="$acl_final_exec_prefix"
11028 exec_prefix="$acl_save_exec_prefix"
11029 prefix="$acl_save_prefix"
11031 if test "X$x" = "X-L$found_dir"; then
11036 if test -z "$haveit"; then
11037 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
11039 if test "$acl_hardcode_minus_L" != no; then
11040 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11042 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
11048 if test "X$found_a" != "X"; then
11049 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
11051 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
11054 additional_includedir=
11055 case "$found_dir" in
11056 */$acl_libdirstem | */$acl_libdirstem/)
11057 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
11058 if test "$name" = 'intl'; then
11059 LIBINTL_PREFIX="$basedir"
11061 additional_includedir="$basedir/include"
11063 */$acl_libdirstem2 | */$acl_libdirstem2/)
11064 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
11065 if test "$name" = 'intl'; then
11066 LIBINTL_PREFIX="$basedir"
11068 additional_includedir="$basedir/include"
11071 if test "X$additional_includedir" != "X"; then
11072 if test "X$additional_includedir" != "X/usr/include"; then
11074 if test "X$additional_includedir" = "X/usr/local/include"; then
11075 if test -n "$GCC"; then
11077 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
11081 if test -z "$haveit"; then
11082 for x in $CPPFLAGS $INCINTL; do
11084 acl_save_prefix="$prefix"
11085 prefix="$acl_final_prefix"
11086 acl_save_exec_prefix="$exec_prefix"
11087 exec_prefix="$acl_final_exec_prefix"
11089 exec_prefix="$acl_save_exec_prefix"
11090 prefix="$acl_save_prefix"
11092 if test "X$x" = "X-I$additional_includedir"; then
11097 if test -z "$haveit"; then
11098 if test -d "$additional_includedir"; then
11099 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
11105 if test -n "$found_la"; then
11106 save_libdir="$libdir"
11107 case "$found_la" in
11108 */* | *\\*) . "$found_la" ;;
11109 *) . "./$found_la" ;;
11111 libdir="$save_libdir"
11112 for dep in $dependency_libs; do
11115 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
11116 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
11117 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
11119 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
11120 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
11121 if test -n "$GCC"; then
11123 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
11127 if test -z "$haveit"; then
11129 for x in $LDFLAGS $LIBINTL; do
11131 acl_save_prefix="$prefix"
11132 prefix="$acl_final_prefix"
11133 acl_save_exec_prefix="$exec_prefix"
11134 exec_prefix="$acl_final_exec_prefix"
11136 exec_prefix="$acl_save_exec_prefix"
11137 prefix="$acl_save_prefix"
11139 if test "X$x" = "X-L$additional_libdir"; then
11144 if test -z "$haveit"; then
11145 if test -d "$additional_libdir"; then
11146 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
11150 for x in $LDFLAGS $LTLIBINTL; do
11152 acl_save_prefix="$prefix"
11153 prefix="$acl_final_prefix"
11154 acl_save_exec_prefix="$exec_prefix"
11155 exec_prefix="$acl_final_exec_prefix"
11157 exec_prefix="$acl_save_exec_prefix"
11158 prefix="$acl_save_prefix"
11160 if test "X$x" = "X-L$additional_libdir"; then
11165 if test -z "$haveit"; then
11166 if test -d "$additional_libdir"; then
11167 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
11174 dir=`echo "X$dep" | sed -e 's/^X-R//'`
11175 if test "$enable_rpath" != no; then
11177 for x in $rpathdirs; do
11178 if test "X$x" = "X$dir"; then
11183 if test -z "$haveit"; then
11184 rpathdirs="$rpathdirs $dir"
11187 for x in $ltrpathdirs; do
11188 if test "X$x" = "X$dir"; then
11193 if test -z "$haveit"; then
11194 ltrpathdirs="$ltrpathdirs $dir"
11199 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11202 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11205 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
11206 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
11212 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
11213 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
11219 if test "X$rpathdirs" != "X"; then
11220 if test -n "$acl_hardcode_libdir_separator"; then
11222 for found_dir in $rpathdirs; do
11223 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
11225 acl_save_libdir="$libdir"
11227 eval flag=\"$acl_hardcode_libdir_flag_spec\"
11228 libdir="$acl_save_libdir"
11229 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
11231 for found_dir in $rpathdirs; do
11232 acl_save_libdir="$libdir"
11233 libdir="$found_dir"
11234 eval flag=\"$acl_hardcode_libdir_flag_spec\"
11235 libdir="$acl_save_libdir"
11236 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
11240 if test "X$ltrpathdirs" != "X"; then
11241 for found_dir in $ltrpathdirs; do
11242 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
11251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
11252 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
11253 if eval \${$gt_func_gnugettext_libintl+:} false; then :
11254 $as_echo_n "(cached) " >&6
11256 gt_save_CPPFLAGS="$CPPFLAGS"
11257 CPPFLAGS="$CPPFLAGS $INCINTL"
11258 gt_save_LIBS="$LIBS"
11259 LIBS="$LIBS $LIBINTL"
11260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11261 /* end confdefs.h. */
11263 #include <libintl.h>
11264 $gt_revision_test_code
11265 extern int _nl_msg_cat_cntr;
11270 const char *_nl_expand_alias (const char *);
11276 bindtextdomain ("", "");
11277 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
11283 if ac_fn_c_try_link "$LINENO"; then :
11284 eval "$gt_func_gnugettext_libintl=yes"
11286 eval "$gt_func_gnugettext_libintl=no"
11288 rm -f core conftest.err conftest.$ac_objext \
11289 conftest$ac_exeext conftest.$ac_ext
11290 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
11291 LIBS="$LIBS $LIBICONV"
11292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11293 /* end confdefs.h. */
11295 #include <libintl.h>
11296 $gt_revision_test_code
11297 extern int _nl_msg_cat_cntr;
11302 const char *_nl_expand_alias (const char *);
11308 bindtextdomain ("", "");
11309 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
11315 if ac_fn_c_try_link "$LINENO"; then :
11316 LIBINTL="$LIBINTL $LIBICONV"
11317 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
11318 eval "$gt_func_gnugettext_libintl=yes"
11321 rm -f core conftest.err conftest.$ac_objext \
11322 conftest$ac_exeext conftest.$ac_ext
11324 CPPFLAGS="$gt_save_CPPFLAGS"
11325 LIBS="$gt_save_LIBS"
11327 eval ac_res=\$$gt_func_gnugettext_libintl
11328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11329 $as_echo "$ac_res" >&6; }
11332 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
11333 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
11334 && test "$PACKAGE" != gettext-runtime \
11335 && test "$PACKAGE" != gettext-tools; }; then
11336 gt_use_preinstalled_gnugettext=yes
11344 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
11345 nls_cv_use_gnu_gettext=yes
11349 if test "$nls_cv_use_gnu_gettext" = "yes"; then
11350 BUILD_INCLUDED_LIBINTL=yes
11351 USE_INCLUDED_LIBINTL=yes
11352 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV $LIBTHREAD"
11353 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV $LTLIBTHREAD"
11354 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
11358 if test "$gt_use_preinstalled_gnugettext" = "yes" \
11359 || test "$nls_cv_use_gnu_gettext" = "yes"; then
11364 if test -n "$INTL_MACOSX_LIBS"; then
11365 if test "$gt_use_preinstalled_gnugettext" = "yes" \
11366 || test "$nls_cv_use_gnu_gettext" = "yes"; then
11367 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
11368 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
11372 if test "$gt_use_preinstalled_gnugettext" = "yes" \
11373 || test "$nls_cv_use_gnu_gettext" = "yes"; then
11375 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
11383 $as_echo_n "checking whether to use NLS... " >&6; }
11384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
11385 $as_echo "$USE_NLS" >&6; }
11386 if test "$USE_NLS" = "yes"; then
11387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
11388 $as_echo_n "checking where the gettext function comes from... " >&6; }
11389 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
11390 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
11391 gt_source="external libintl"
11396 gt_source="included intl directory"
11398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
11399 $as_echo "$gt_source" >&6; }
11402 if test "$USE_NLS" = "yes"; then
11404 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
11405 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
11406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
11407 $as_echo_n "checking how to link with libintl... " >&6; }
11408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
11409 $as_echo "$LIBINTL" >&6; }
11411 for element in $INCINTL; do
11413 for x in $CPPFLAGS; do
11415 acl_save_prefix="$prefix"
11416 prefix="$acl_final_prefix"
11417 acl_save_exec_prefix="$exec_prefix"
11418 exec_prefix="$acl_final_exec_prefix"
11420 exec_prefix="$acl_save_exec_prefix"
11421 prefix="$acl_save_prefix"
11423 if test "X$x" = "X$element"; then
11428 if test -z "$haveit"; then
11429 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11436 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
11439 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
11447 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
11448 BUILD_INCLUDED_LIBINTL=yes
11455 nls_cv_header_intl=
11456 nls_cv_header_libgt=
11468 if test "$USE_INCLUDED_LIBINTL" = yes; then
11469 INTLOBJS="\$(GETTOBJS)"
11473 INTL_LIBTOOL_SUFFIX_PREFIX=
11477 INTLLIBS="$LIBINTL"
11485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
11486 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
11488 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
11489 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
11490 $as_echo_n "(cached) " >&6
11492 cat >conftest.make <<\_ACEOF
11495 @echo '@@@%%%=$(MAKE)=@@@%%%'
11497 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
11498 case `${MAKE-make} -f conftest.make 2>/dev/null` in
11499 *@@@%%%=?*=@@@%%%*)
11500 eval ac_cv_prog_make_${ac_make}_set=yes;;
11502 eval ac_cv_prog_make_${ac_make}_set=no;;
11504 rm -f conftest.make
11506 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
11507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11508 $as_echo "yes" >&6; }
11511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11512 $as_echo "no" >&6; }
11513 SET_MAKE="MAKE=${MAKE-make}"
11516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5
11517 $as_echo_n "checking for GNU make... " >&6; }
11518 if ${_cv_gnu_make_command+:} false; then :
11519 $as_echo_n "(cached) " >&6
11521 _cv_gnu_make_command='' ;
11522 for a in "$MAKE" make gmake gnumake ; do
11523 if test -z "$a" ; then continue ; fi ;
11524 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
11525 _cv_gnu_make_command=$a ;
11531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_cv_gnu_make_command" >&5
11532 $as_echo "$_cv_gnu_make_command" >&6; } ;
11533 if test "x$_cv_gnu_make_command" != "x" ; then
11539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"Not found\"" >&5
11540 $as_echo "\"Not found\"" >&6; };
11545 # Extract the first word of "ln", so it can be a program name with args.
11546 set dummy ln; ac_word=$2
11547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11548 $as_echo_n "checking for $ac_word... " >&6; }
11549 if ${ac_cv_path_LN+:} false; then :
11550 $as_echo_n "(cached) " >&6
11554 ac_cv_path_LN="$LN" # Let the user override the test with a path.
11557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11558 for as_dir in $PATH
11561 test -z "$as_dir" && as_dir=.
11562 for ac_exec_ext in '' $ac_executable_extensions; do
11563 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11564 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
11565 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11572 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
11577 if test -n "$LN"; then
11578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
11579 $as_echo "$LN" >&6; }
11581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11582 $as_echo "no" >&6; }
11586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
11587 $as_echo_n "checking whether ln -s works... " >&6; }
11589 if test "$LN_S" = "ln -s"; then
11590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11591 $as_echo "yes" >&6; }
11593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
11594 $as_echo "no, using $LN_S" >&6; }
11597 # Extract the first word of "mv", so it can be a program name with args.
11598 set dummy mv; ac_word=$2
11599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11600 $as_echo_n "checking for $ac_word... " >&6; }
11601 if ${ac_cv_path_MV+:} false; then :
11602 $as_echo_n "(cached) " >&6
11606 ac_cv_path_MV="$MV" # Let the user override the test with a path.
11609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11610 for as_dir in $PATH
11613 test -z "$as_dir" && as_dir=.
11614 for ac_exec_ext in '' $ac_executable_extensions; do
11615 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11616 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
11617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11624 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
11629 if test -n "$MV"; then
11630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
11631 $as_echo "$MV" >&6; }
11633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11634 $as_echo "no" >&6; }
11638 # Extract the first word of "cp", so it can be a program name with args.
11639 set dummy cp; ac_word=$2
11640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11641 $as_echo_n "checking for $ac_word... " >&6; }
11642 if ${ac_cv_path_CP+:} false; then :
11643 $as_echo_n "(cached) " >&6
11647 ac_cv_path_CP="$CP" # Let the user override the test with a path.
11650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11651 for as_dir in $PATH
11654 test -z "$as_dir" && as_dir=.
11655 for ac_exec_ext in '' $ac_executable_extensions; do
11656 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11657 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
11658 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11665 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
11670 if test -n "$CP"; then
11671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
11672 $as_echo "$CP" >&6; }
11674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11675 $as_echo "no" >&6; }
11679 # Extract the first word of "rm", so it can be a program name with args.
11680 set dummy rm; ac_word=$2
11681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11682 $as_echo_n "checking for $ac_word... " >&6; }
11683 if ${ac_cv_path_RM+:} false; then :
11684 $as_echo_n "(cached) " >&6
11688 ac_cv_path_RM="$RM" # Let the user override the test with a path.
11691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11692 for as_dir in $PATH
11695 test -z "$as_dir" && as_dir=.
11696 for ac_exec_ext in '' $ac_executable_extensions; do
11697 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11698 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
11699 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11706 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
11711 if test -n "$RM"; then
11712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
11713 $as_echo "$RM" >&6; }
11715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11716 $as_echo "no" >&6; }
11720 # Extract the first word of "chmod", so it can be a program name with args.
11721 set dummy chmod; ac_word=$2
11722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11723 $as_echo_n "checking for $ac_word... " >&6; }
11724 if ${ac_cv_path_CHMOD+:} false; then :
11725 $as_echo_n "(cached) " >&6
11729 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
11732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11733 for as_dir in $PATH
11736 test -z "$as_dir" && as_dir=.
11737 for ac_exec_ext in '' $ac_executable_extensions; do
11738 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11739 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
11740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11747 test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
11751 CHMOD=$ac_cv_path_CHMOD
11752 if test -n "$CHMOD"; then
11753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
11754 $as_echo "$CHMOD" >&6; }
11756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11757 $as_echo "no" >&6; }
11761 for ac_prog in gawk mawk nawk awk
11763 # Extract the first word of "$ac_prog", so it can be a program name with args.
11764 set dummy $ac_prog; ac_word=$2
11765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11766 $as_echo_n "checking for $ac_word... " >&6; }
11767 if ${ac_cv_prog_AWK+:} false; then :
11768 $as_echo_n "(cached) " >&6
11770 if test -n "$AWK"; then
11771 ac_cv_prog_AWK="$AWK" # Let the user override the test.
11773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11774 for as_dir in $PATH
11777 test -z "$as_dir" && as_dir=.
11778 for ac_exec_ext in '' $ac_executable_extensions; do
11779 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11780 ac_cv_prog_AWK="$ac_prog"
11781 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11790 AWK=$ac_cv_prog_AWK
11791 if test -n "$AWK"; then
11792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
11793 $as_echo "$AWK" >&6; }
11795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11796 $as_echo "no" >&6; }
11800 test -n "$AWK" && break
11803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
11804 $as_echo_n "checking for egrep... " >&6; }
11805 if ${ac_cv_path_EGREP+:} false; then :
11806 $as_echo_n "(cached) " >&6
11808 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
11809 then ac_cv_path_EGREP="$GREP -E"
11811 if test -z "$EGREP"; then
11812 ac_path_EGREP_found=false
11813 # Loop through the user's path and test for each of PROGNAME-LIST
11814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11815 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11818 test -z "$as_dir" && as_dir=.
11819 for ac_prog in egrep; do
11820 for ac_exec_ext in '' $ac_executable_extensions; do
11821 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
11822 as_fn_executable_p "$ac_path_EGREP" || continue
11823 # Check for GNU ac_path_EGREP and select it if it is found.
11824 # Check for GNU $ac_path_EGREP
11825 case `"$ac_path_EGREP" --version 2>&1` in
11827 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
11830 $as_echo_n 0123456789 >"conftest.in"
11833 cat "conftest.in" "conftest.in" >"conftest.tmp"
11834 mv "conftest.tmp" "conftest.in"
11835 cp "conftest.in" "conftest.nl"
11836 $as_echo 'EGREP' >> "conftest.nl"
11837 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11838 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11839 as_fn_arith $ac_count + 1 && ac_count=$as_val
11840 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
11841 # Best one so far, save it but keep looking for a better one
11842 ac_cv_path_EGREP="$ac_path_EGREP"
11843 ac_path_EGREP_max=$ac_count
11845 # 10*(2^10) chars as input seems more than enough
11846 test $ac_count -gt 10 && break
11848 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11851 $ac_path_EGREP_found && break 3
11856 if test -z "$ac_cv_path_EGREP"; then
11857 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11860 ac_cv_path_EGREP=$EGREP
11865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
11866 $as_echo "$ac_cv_path_EGREP" >&6; }
11867 EGREP="$ac_cv_path_EGREP"
11870 # Extract the first word of "sed", so it can be a program name with args.
11871 set dummy sed; ac_word=$2
11872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11873 $as_echo_n "checking for $ac_word... " >&6; }
11874 if ${ac_cv_path_SED+:} false; then :
11875 $as_echo_n "(cached) " >&6
11879 ac_cv_path_SED="$SED" # Let the user override the test with a path.
11882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11883 for as_dir in $PATH
11886 test -z "$as_dir" && as_dir=.
11887 for ac_exec_ext in '' $ac_executable_extensions; do
11888 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11889 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
11890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11897 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
11901 SED=$ac_cv_path_SED
11902 if test -n "$SED"; then
11903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
11904 $as_echo "$SED" >&6; }
11906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11907 $as_echo "no" >&6; }
11911 # Extract the first word of "perl", so it can be a program name with args.
11912 set dummy perl; ac_word=$2
11913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11914 $as_echo_n "checking for $ac_word... " >&6; }
11915 if ${ac_cv_path_PERL+:} false; then :
11916 $as_echo_n "(cached) " >&6
11920 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
11923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11924 for as_dir in $PATH
11927 test -z "$as_dir" && as_dir=.
11928 for ac_exec_ext in '' $ac_executable_extensions; do
11929 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11930 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
11931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11938 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
11942 PERL=$ac_cv_path_PERL
11943 if test -n "$PERL"; then
11944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
11945 $as_echo "$PERL" >&6; }
11947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11948 $as_echo "no" >&6; }
11952 # Extract the first word of "ldconfig", so it can be a program name with args.
11953 set dummy ldconfig; ac_word=$2
11954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11955 $as_echo_n "checking for $ac_word... " >&6; }
11956 if ${ac_cv_path_LDCONFIG+:} false; then :
11957 $as_echo_n "(cached) " >&6
11961 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
11964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11965 for as_dir in $PATH
11968 test -z "$as_dir" && as_dir=.
11969 for ac_exec_ext in '' $ac_executable_extensions; do
11970 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11971 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
11972 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11979 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
11983 LDCONFIG=$ac_cv_path_LDCONFIG
11984 if test -n "$LDCONFIG"; then
11985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
11986 $as_echo "$LDCONFIG" >&6; }
11988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11989 $as_echo "no" >&6; }
11993 if test -n "$ac_tool_prefix"; then
11994 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
11995 set dummy ${ac_tool_prefix}ar; 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_prog_AR+:} false; then :
11999 $as_echo_n "(cached) " >&6
12001 if test -n "$AR"; then
12002 ac_cv_prog_AR="$AR" # Let the user override the test.
12004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12005 for as_dir in $PATH
12008 test -z "$as_dir" && as_dir=.
12009 for ac_exec_ext in '' $ac_executable_extensions; do
12010 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12011 ac_cv_prog_AR="${ac_tool_prefix}ar"
12012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12022 if test -n "$AR"; then
12023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12024 $as_echo "$AR" >&6; }
12026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12027 $as_echo "no" >&6; }
12032 if test -z "$ac_cv_prog_AR"; then
12034 # Extract the first word of "ar", so it can be a program name with args.
12035 set dummy ar; ac_word=$2
12036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12037 $as_echo_n "checking for $ac_word... " >&6; }
12038 if ${ac_cv_prog_ac_ct_AR+:} false; then :
12039 $as_echo_n "(cached) " >&6
12041 if test -n "$ac_ct_AR"; then
12042 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12045 for as_dir in $PATH
12048 test -z "$as_dir" && as_dir=.
12049 for ac_exec_ext in '' $ac_executable_extensions; do
12050 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12051 ac_cv_prog_ac_ct_AR="ar"
12052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12061 ac_ct_AR=$ac_cv_prog_ac_ct_AR
12062 if test -n "$ac_ct_AR"; then
12063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
12064 $as_echo "$ac_ct_AR" >&6; }
12066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12067 $as_echo "no" >&6; }
12070 if test "x$ac_ct_AR" = x; then
12073 case $cross_compiling:$ac_tool_warned in
12075 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12076 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12077 ac_tool_warned=yes ;;
12082 AR="$ac_cv_prog_AR"
12085 if test -n "$ac_tool_prefix"; then
12086 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12087 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12089 $as_echo_n "checking for $ac_word... " >&6; }
12090 if ${ac_cv_prog_RANLIB+:} false; then :
12091 $as_echo_n "(cached) " >&6
12093 if test -n "$RANLIB"; then
12094 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12097 for as_dir in $PATH
12100 test -z "$as_dir" && as_dir=.
12101 for ac_exec_ext in '' $ac_executable_extensions; do
12102 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12103 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12113 RANLIB=$ac_cv_prog_RANLIB
12114 if test -n "$RANLIB"; then
12115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12116 $as_echo "$RANLIB" >&6; }
12118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12119 $as_echo "no" >&6; }
12124 if test -z "$ac_cv_prog_RANLIB"; then
12125 ac_ct_RANLIB=$RANLIB
12126 # Extract the first word of "ranlib", so it can be a program name with args.
12127 set dummy ranlib; ac_word=$2
12128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12129 $as_echo_n "checking for $ac_word... " >&6; }
12130 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
12131 $as_echo_n "(cached) " >&6
12133 if test -n "$ac_ct_RANLIB"; then
12134 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12137 for as_dir in $PATH
12140 test -z "$as_dir" && as_dir=.
12141 for ac_exec_ext in '' $ac_executable_extensions; do
12142 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12143 ac_cv_prog_ac_ct_RANLIB="ranlib"
12144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12153 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12154 if test -n "$ac_ct_RANLIB"; then
12155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12156 $as_echo "$ac_ct_RANLIB" >&6; }
12158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12159 $as_echo "no" >&6; }
12162 if test "x$ac_ct_RANLIB" = x; then
12165 case $cross_compiling:$ac_tool_warned in
12167 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12168 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12169 ac_tool_warned=yes ;;
12171 RANLIB=$ac_ct_RANLIB
12174 RANLIB="$ac_cv_prog_RANLIB"
12177 if test -n "$ac_tool_prefix"; then
12178 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12179 set dummy ${ac_tool_prefix}strip; ac_word=$2
12180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12181 $as_echo_n "checking for $ac_word... " >&6; }
12182 if ${ac_cv_prog_STRIP+:} false; then :
12183 $as_echo_n "(cached) " >&6
12185 if test -n "$STRIP"; then
12186 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12189 for as_dir in $PATH
12192 test -z "$as_dir" && as_dir=.
12193 for ac_exec_ext in '' $ac_executable_extensions; do
12194 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12195 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12205 STRIP=$ac_cv_prog_STRIP
12206 if test -n "$STRIP"; then
12207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12208 $as_echo "$STRIP" >&6; }
12210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12211 $as_echo "no" >&6; }
12216 if test -z "$ac_cv_prog_STRIP"; then
12218 # Extract the first word of "strip", so it can be a program name with args.
12219 set dummy strip; ac_word=$2
12220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12221 $as_echo_n "checking for $ac_word... " >&6; }
12222 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
12223 $as_echo_n "(cached) " >&6
12225 if test -n "$ac_ct_STRIP"; then
12226 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12229 for as_dir in $PATH
12232 test -z "$as_dir" && as_dir=.
12233 for ac_exec_ext in '' $ac_executable_extensions; do
12234 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12235 ac_cv_prog_ac_ct_STRIP="strip"
12236 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12245 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12246 if test -n "$ac_ct_STRIP"; then
12247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
12248 $as_echo "$ac_ct_STRIP" >&6; }
12250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12251 $as_echo "no" >&6; }
12254 if test "x$ac_ct_STRIP" = x; then
12257 case $cross_compiling:$ac_tool_warned in
12259 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12260 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12261 ac_tool_warned=yes ;;
12266 STRIP="$ac_cv_prog_STRIP"
12269 # Extract the first word of "makeinfo", so it can be a program name with args.
12270 set dummy makeinfo; ac_word=$2
12271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12272 $as_echo_n "checking for $ac_word... " >&6; }
12273 if ${ac_cv_prog_MAKEINFO+:} false; then :
12274 $as_echo_n "(cached) " >&6
12276 if test -n "$MAKEINFO"; then
12277 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
12279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12280 for as_dir in $PATH
12283 test -z "$as_dir" && as_dir=.
12284 for ac_exec_ext in '' $ac_executable_extensions; do
12285 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12286 ac_cv_prog_MAKEINFO="makeinfo"
12287 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12296 MAKEINFO=$ac_cv_prog_MAKEINFO
12297 if test -n "$MAKEINFO"; then
12298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
12299 $as_echo "$MAKEINFO" >&6; }
12301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12302 $as_echo "no" >&6; }
12306 if test "_$MAKEINFO" = "_"; then
12307 MAKEINFO="@echo Makeinfo is missing. Info documentation will not be built.;true"
12309 case "$MAKEINFO" in
12311 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
12312 *** Makeinfo is missing. Info documentation will not be built." >&5
12313 $as_echo "$as_me: WARNING:
12314 *** Makeinfo is missing. Info documentation will not be built." >&2;}
12322 # See if we need a separate native compiler.
12323 if test $cross_compiling = no; then
12327 for ac_prog in gcc cc
12329 # Extract the first word of "$ac_prog", so it can be a program name with args.
12330 set dummy $ac_prog; ac_word=$2
12331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12332 $as_echo_n "checking for $ac_word... " >&6; }
12333 if ${ac_cv_prog_BUILD_CC+:} false; then :
12334 $as_echo_n "(cached) " >&6
12336 if test -n "$BUILD_CC"; then
12337 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
12339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12340 for as_dir in $PATH
12343 test -z "$as_dir" && as_dir=.
12344 for ac_exec_ext in '' $ac_executable_extensions; do
12345 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12346 ac_cv_prog_BUILD_CC="$ac_prog"
12347 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12356 BUILD_CC=$ac_cv_prog_BUILD_CC
12357 if test -n "$BUILD_CC"; then
12358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
12359 $as_echo "$BUILD_CC" >&6; }
12361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12362 $as_echo "no" >&6; }
12366 test -n "$BUILD_CC" && break
12370 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/major.h linux/loop.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
12372 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12373 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12374 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12375 cat >>confdefs.h <<_ACEOF
12376 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12383 for ac_header in net/if.h
12385 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
12386 #if HAVE_SYS_TYPES_H
12387 #include <sys/types.h>
12389 #if HAVE_SYS_SOCKET
12390 #include <sys/socket.h>
12394 if test "x$ac_cv_header_net_if_h" = xyes; then :
12395 cat >>confdefs.h <<_ACEOF
12396 #define HAVE_NET_IF_H 1
12403 for ac_func in vprintf
12405 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
12406 if test "x$ac_cv_func_vprintf" = xyes; then :
12407 cat >>confdefs.h <<_ACEOF
12408 #define HAVE_VPRINTF 1
12411 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
12412 if test "x$ac_cv_func__doprnt" = xyes; then :
12414 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
12422 ac_fn_c_check_member "$LINENO" "struct dirent" "d_reclen" "ac_cv_member_struct_dirent_d_reclen" "#include <dirent.h>
12424 if test "x$ac_cv_member_struct_dirent_d_reclen" = xyes; then :
12426 $as_echo "#define HAVE_RECLEN_DIRENT 1" >>confdefs.h
12430 ac_fn_c_check_member "$LINENO" "struct stat" "st_atim" "ac_cv_member_struct_stat_st_atim" "$ac_includes_default"
12431 if test "x$ac_cv_member_struct_stat_st_atim" = xyes; then :
12433 cat >>confdefs.h <<_ACEOF
12434 #define HAVE_STRUCT_STAT_ST_ATIM 1
12440 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "#include <sys/types.h>
12442 if test "x$ac_cv_type_ssize_t" = xyes; then :
12444 $as_echo "#define HAVE_TYPE_SSIZE_T 1" >>confdefs.h
12448 ac_fn_c_check_decl "$LINENO" "llseek" "ac_cv_have_decl_llseek" "#include <unistd.h>
12450 if test "x$ac_cv_have_decl_llseek" = xyes; then :
12452 $as_echo "#define HAVE_LLSEEK_PROTOTYPE 1" >>confdefs.h
12456 ac_fn_c_check_decl "$LINENO" "lseek64" "ac_cv_have_decl_lseek64" "#define _LARGEFILE_SOURCE
12457 #define _LARGEFILE64_SOURCE
12458 #include <unistd.h>
12460 if test "x$ac_cv_have_decl_lseek64" = xyes; then :
12462 $as_echo "#define HAVE_LSEEK64_PROTOTYPE 1" >>confdefs.h
12466 # The cast to long int works around a bug in the HP C Compiler
12467 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12468 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12469 # This bug is HP SR number 8606223364.
12470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
12471 $as_echo_n "checking size of short... " >&6; }
12472 if ${ac_cv_sizeof_short+:} false; then :
12473 $as_echo_n "(cached) " >&6
12475 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
12478 if test "$ac_cv_type_short" = yes; then
12479 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12480 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12481 as_fn_error 77 "cannot compute sizeof (short)
12482 See \`config.log' for more details" "$LINENO" 5; }
12484 ac_cv_sizeof_short=0
12489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
12490 $as_echo "$ac_cv_sizeof_short" >&6; }
12494 cat >>confdefs.h <<_ACEOF
12495 #define SIZEOF_SHORT $ac_cv_sizeof_short
12499 # The cast to long int works around a bug in the HP C Compiler
12500 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12501 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12502 # This bug is HP SR number 8606223364.
12503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
12504 $as_echo_n "checking size of int... " >&6; }
12505 if ${ac_cv_sizeof_int+:} false; then :
12506 $as_echo_n "(cached) " >&6
12508 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
12511 if test "$ac_cv_type_int" = yes; then
12512 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12513 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12514 as_fn_error 77 "cannot compute sizeof (int)
12515 See \`config.log' for more details" "$LINENO" 5; }
12522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
12523 $as_echo "$ac_cv_sizeof_int" >&6; }
12527 cat >>confdefs.h <<_ACEOF
12528 #define SIZEOF_INT $ac_cv_sizeof_int
12532 # The cast to long int works around a bug in the HP C Compiler
12533 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12534 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12535 # This bug is HP SR number 8606223364.
12536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
12537 $as_echo_n "checking size of long... " >&6; }
12538 if ${ac_cv_sizeof_long+:} false; then :
12539 $as_echo_n "(cached) " >&6
12541 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
12544 if test "$ac_cv_type_long" = yes; then
12545 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12546 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12547 as_fn_error 77 "cannot compute sizeof (long)
12548 See \`config.log' for more details" "$LINENO" 5; }
12550 ac_cv_sizeof_long=0
12555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
12556 $as_echo "$ac_cv_sizeof_long" >&6; }
12560 cat >>confdefs.h <<_ACEOF
12561 #define SIZEOF_LONG $ac_cv_sizeof_long
12565 # The cast to long int works around a bug in the HP C Compiler
12566 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12567 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12568 # This bug is HP SR number 8606223364.
12569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
12570 $as_echo_n "checking size of long long... " >&6; }
12571 if ${ac_cv_sizeof_long_long+:} false; then :
12572 $as_echo_n "(cached) " >&6
12574 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
12577 if test "$ac_cv_type_long_long" = yes; then
12578 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12579 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12580 as_fn_error 77 "cannot compute sizeof (long long)
12581 See \`config.log' for more details" "$LINENO" 5; }
12583 ac_cv_sizeof_long_long=0
12588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
12589 $as_echo "$ac_cv_sizeof_long_long" >&6; }
12593 cat >>confdefs.h <<_ACEOF
12594 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
12598 # The cast to long int works around a bug in the HP C Compiler
12599 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12600 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12601 # This bug is HP SR number 8606223364.
12602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
12603 $as_echo_n "checking size of off_t... " >&6; }
12604 if ${ac_cv_sizeof_off_t+:} false; then :
12605 $as_echo_n "(cached) " >&6
12607 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
12610 if test "$ac_cv_type_off_t" = yes; then
12611 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12612 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12613 as_fn_error 77 "cannot compute sizeof (off_t)
12614 See \`config.log' for more details" "$LINENO" 5; }
12616 ac_cv_sizeof_off_t=0
12621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
12622 $as_echo "$ac_cv_sizeof_off_t" >&6; }
12626 cat >>confdefs.h <<_ACEOF
12627 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
12631 # The cast to long int works around a bug in the HP C Compiler
12632 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12633 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12634 # This bug is HP SR number 8606223364.
12635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
12636 $as_echo_n "checking size of time_t... " >&6; }
12637 if ${ac_cv_sizeof_time_t+:} false; then :
12638 $as_echo_n "(cached) " >&6
12640 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" "$ac_includes_default"; then :
12643 if test "$ac_cv_type_time_t" = yes; then
12644 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12645 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12646 as_fn_error 77 "cannot compute sizeof (time_t)
12647 See \`config.log' for more details" "$LINENO" 5; }
12649 ac_cv_sizeof_time_t=0
12654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
12655 $as_echo "$ac_cv_sizeof_time_t" >&6; }
12659 cat >>confdefs.h <<_ACEOF
12660 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
12664 SIZEOF_SHORT=$ac_cv_sizeof_short
12665 SIZEOF_INT=$ac_cv_sizeof_int
12666 SIZEOF_LONG=$ac_cv_sizeof_long
12667 SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
12668 SIZEOF_OFF_T=$ac_cv_sizeof_off_t
12669 SIZEOF_TIME_T=$ac_cv_sizeof_time_t
12676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
12677 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
12678 if ${ac_cv_c_bigendian+:} false; then :
12679 $as_echo_n "(cached) " >&6
12681 ac_cv_c_bigendian=unknown
12682 # See if we're dealing with a universal compiler.
12683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12684 /* end confdefs.h. */
12685 #ifndef __APPLE_CC__
12686 not a universal capable compiler
12691 if ac_fn_c_try_compile "$LINENO"; then :
12693 # Check for potential -arch flags. It is not universal unless
12694 # there are at least two -arch flags with different values.
12697 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
12698 if test -n "$ac_prev"; then
12700 i?86 | x86_64 | ppc | ppc64)
12701 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
12704 ac_cv_c_bigendian=universal
12710 elif test "x$ac_word" = "x-arch"; then
12715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12716 if test $ac_cv_c_bigendian = unknown; then
12717 # See if sys/param.h defines the BYTE_ORDER macro.
12718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12719 /* end confdefs.h. */
12720 #include <sys/types.h>
12721 #include <sys/param.h>
12726 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
12727 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
12729 bogus endian macros
12736 if ac_fn_c_try_compile "$LINENO"; then :
12737 # It does; now see whether it defined to BIG_ENDIAN or not.
12738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12739 /* end confdefs.h. */
12740 #include <sys/types.h>
12741 #include <sys/param.h>
12746 #if BYTE_ORDER != BIG_ENDIAN
12754 if ac_fn_c_try_compile "$LINENO"; then :
12755 ac_cv_c_bigendian=yes
12757 ac_cv_c_bigendian=no
12759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12763 if test $ac_cv_c_bigendian = unknown; then
12764 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
12765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12766 /* end confdefs.h. */
12767 #include <limits.h>
12772 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
12773 bogus endian macros
12780 if ac_fn_c_try_compile "$LINENO"; then :
12781 # It does; now see whether it defined to _BIG_ENDIAN or not.
12782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12783 /* end confdefs.h. */
12784 #include <limits.h>
12789 #ifndef _BIG_ENDIAN
12797 if ac_fn_c_try_compile "$LINENO"; then :
12798 ac_cv_c_bigendian=yes
12800 ac_cv_c_bigendian=no
12802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12806 if test $ac_cv_c_bigendian = unknown; then
12807 # Compile a test program.
12808 if test "$cross_compiling" = yes; then :
12809 # Try to guess by grepping values from an object file.
12810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12811 /* end confdefs.h. */
12812 short int ascii_mm[] =
12813 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12814 short int ascii_ii[] =
12815 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12816 int use_ascii (int i) {
12817 return ascii_mm[i] + ascii_ii[i];
12819 short int ebcdic_ii[] =
12820 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12821 short int ebcdic_mm[] =
12822 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12823 int use_ebcdic (int i) {
12824 return ebcdic_mm[i] + ebcdic_ii[i];
12831 return use_ascii (foo) == use_ebcdic (foo);
12836 if ac_fn_c_try_compile "$LINENO"; then :
12837 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
12838 ac_cv_c_bigendian=yes
12840 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
12841 if test "$ac_cv_c_bigendian" = unknown; then
12842 ac_cv_c_bigendian=no
12844 # finding both strings is unlikely to happen, but who knows?
12845 ac_cv_c_bigendian=unknown
12849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12852 /* end confdefs.h. */
12853 $ac_includes_default
12858 /* Are we little or big endian? From Harbison&Steele. */
12862 char c[sizeof (long int)];
12865 return u.c[sizeof (long int) - 1] == 1;
12871 if ac_fn_c_try_run "$LINENO"; then :
12872 ac_cv_c_bigendian=no
12874 ac_cv_c_bigendian=yes
12876 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12877 conftest.$ac_objext conftest.beam conftest.$ac_ext
12882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
12883 $as_echo "$ac_cv_c_bigendian" >&6; }
12884 case $ac_cv_c_bigendian in #(
12886 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
12892 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
12896 as_fn_error $? "unknown endianness
12897 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
12900 if test $cross_compiling = no; then
12901 BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
12903 CROSS_COMPILE="1" BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
12905 ASM_TYPES_HEADER=./asm_types.h
12907 echo "/* These defines are needed for the public ext2fs.h header file */" \
12909 if grep HAVE_SYS_TYPES_H confdefs.h > tmp_config.$$; then
12910 uniq tmp_config.$$ >> public_config.h
12912 echo "#undef HAVE_SYS_TYPES_H" >> public_config.h
12914 if grep WORDS_BIGENDIAN confdefs.h > tmp_config.$$; then
12915 uniq tmp_config.$$ >> public_config.h
12917 echo "#undef WORDS_BIGENDIAN" >> public_config.h
12919 rm -f tmp_config.$$
12920 PUBLIC_CONFIG_HEADER=./public_config.h
12922 for ac_header in inttypes.h
12924 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
12925 if test "x$ac_cv_header_inttypes_h" = xyes; then :
12926 cat >>confdefs.h <<_ACEOF
12927 #define HAVE_INTTYPES_H 1
12934 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
12935 if test "x$ac_cv_type_intptr_t" = xyes; then :
12937 cat >>confdefs.h <<_ACEOF
12938 #define HAVE_INTPTR_T 1
12944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat has a st_flags field" >&5
12945 $as_echo_n "checking whether struct stat has a st_flags field... " >&6; }
12946 if ${e2fsprogs_cv_struct_st_flags+:} false; then :
12947 $as_echo_n "(cached) " >&6
12949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12950 /* end confdefs.h. */
12951 #include <sys/stat.h>
12955 struct stat stat; stat.st_flags = 0;
12960 if ac_fn_c_try_compile "$LINENO"; then :
12961 e2fsprogs_cv_struct_st_flags=yes
12963 e2fsprogs_cv_struct_st_flags=no
12965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags" >&5
12969 $as_echo "$e2fsprogs_cv_struct_st_flags" >&6; }
12970 if test "$e2fsprogs_cv_struct_st_flags" = yes; then
12971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether st_flags field is useful" >&5
12972 $as_echo_n "checking whether st_flags field is useful... " >&6; }
12973 if ${e2fsprogs_cv_struct_st_flags_immut+:} false; then :
12974 $as_echo_n "(cached) " >&6
12976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12977 /* end confdefs.h. */
12978 #include <sys/stat.h>
12982 struct stat stat; stat.st_flags |= UF_IMMUTABLE;
12987 if ac_fn_c_try_compile "$LINENO"; then :
12988 e2fsprogs_cv_struct_st_flags_immut=yes
12990 e2fsprogs_cv_struct_st_flags_immut=no
12992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags_immut" >&5
12996 $as_echo "$e2fsprogs_cv_struct_st_flags_immut" >&6; }
12997 if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
12999 $as_echo "#define HAVE_STAT_FLAGS 1" >>confdefs.h
13003 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h>
13004 #include <sys/socket.h>
13006 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
13008 cat >>confdefs.h <<_ACEOF
13009 #define HAVE_SA_LEN 1
13014 if test -n "$BLKID_CMT"; then
13015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing blkid_probe_all" >&5
13016 $as_echo_n "checking for library containing blkid_probe_all... " >&6; }
13017 if ${ac_cv_search_blkid_probe_all+:} false; then :
13018 $as_echo_n "(cached) " >&6
13020 ac_func_search_save_LIBS=$LIBS
13021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13022 /* end confdefs.h. */
13024 /* Override any GCC internal prototype to avoid an error.
13025 Use char because int might match the return type of a GCC
13026 builtin and then its argument prototype would still apply. */
13030 char blkid_probe_all ();
13034 return blkid_probe_all ();
13039 for ac_lib in '' blkid; do
13040 if test -z "$ac_lib"; then
13041 ac_res="none required"
13044 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13046 if ac_fn_c_try_link "$LINENO"; then :
13047 ac_cv_search_blkid_probe_all=$ac_res
13049 rm -f core conftest.err conftest.$ac_objext \
13051 if ${ac_cv_search_blkid_probe_all+:} false; then :
13055 if ${ac_cv_search_blkid_probe_all+:} false; then :
13058 ac_cv_search_blkid_probe_all=no
13060 rm conftest.$ac_ext
13061 LIBS=$ac_func_search_save_LIBS
13063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_blkid_probe_all" >&5
13064 $as_echo "$ac_cv_search_blkid_probe_all" >&6; }
13065 ac_res=$ac_cv_search_blkid_probe_all
13066 if test "$ac_res" != no; then :
13067 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13072 for ac_func in __secure_getenv add_key backtrace blkid_probe_get_topology blkid_probe_enable_partitions chflags fadvise64 fallocate fallocate64 fchown fdatasync fstat64 ftruncate64 futimes getcwd getdtablesize 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
13074 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13075 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13076 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13077 cat >>confdefs.h <<_ACEOF
13078 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
13086 $as_echo_n "checking for socket in -lsocket... " >&6; }
13087 if ${ac_cv_lib_socket_socket+:} false; then :
13088 $as_echo_n "(cached) " >&6
13090 ac_check_lib_save_LIBS=$LIBS
13091 LIBS="-lsocket $LIBS"
13092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13093 /* end confdefs.h. */
13095 /* Override any GCC internal prototype to avoid an error.
13096 Use char because int might match the return type of a GCC
13097 builtin and then its argument prototype would still apply. */
13110 if ac_fn_c_try_link "$LINENO"; then :
13111 ac_cv_lib_socket_socket=yes
13113 ac_cv_lib_socket_socket=no
13115 rm -f core conftest.err conftest.$ac_objext \
13116 conftest$ac_exeext conftest.$ac_ext
13117 LIBS=$ac_check_lib_save_LIBS
13119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
13120 $as_echo "$ac_cv_lib_socket_socket" >&6; }
13121 if test "x$ac_cv_lib_socket_socket" = xyes; then :
13122 SOCKET_LIB=-lsocket
13126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for magic_file in -lmagic" >&5
13127 $as_echo_n "checking for magic_file in -lmagic... " >&6; }
13128 if ${ac_cv_lib_magic_magic_file+:} false; then :
13129 $as_echo_n "(cached) " >&6
13131 ac_check_lib_save_LIBS=$LIBS
13132 LIBS="-lmagic $LIBS"
13133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13134 /* end confdefs.h. */
13136 /* Override any GCC internal prototype to avoid an error.
13137 Use char because int might match the return type of a GCC
13138 builtin and then its argument prototype would still apply. */
13142 char magic_file ();
13146 return magic_file ();
13151 if ac_fn_c_try_link "$LINENO"; then :
13152 ac_cv_lib_magic_magic_file=yes
13154 ac_cv_lib_magic_magic_file=no
13156 rm -f core conftest.err conftest.$ac_objext \
13157 conftest$ac_exeext conftest.$ac_ext
13158 LIBS=$ac_check_lib_save_LIBS
13160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_magic_magic_file" >&5
13161 $as_echo "$ac_cv_lib_magic_magic_file" >&6; }
13162 if test "x$ac_cv_lib_magic_magic_file" = xyes; then :
13164 for ac_header in magic.h
13166 ac_fn_c_check_header_mongrel "$LINENO" "magic.h" "ac_cv_header_magic_h" "$ac_includes_default"
13167 if test "x$ac_cv_header_magic_h" = xyes; then :
13168 cat >>confdefs.h <<_ACEOF
13169 #define HAVE_MAGIC_H 1
13178 if test "$ac_cv_lib_dl_dlopen" = yes ; then
13179 MAGIC_LIB=$DLOPEN_LIB
13184 # Check whether --enable-fuse2fs was given.
13185 if test "${enable_fuse2fs+set}" = set; then :
13186 enableval=$enable_fuse2fs; if test "$enableval" = "no"
13189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling fuse2fs" >&5
13190 $as_echo "Disabling fuse2fs" >&6; }
13192 for ac_header in pthread.h fuse.h
13194 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13195 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#define _FILE_OFFSET_BITS 64
13196 #define FUSE_USE_VERSION 29
13198 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13199 cat >>confdefs.h <<_ACEOF
13200 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13204 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13205 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13206 as_fn_error $? "Cannot find fuse2fs headers.
13207 See \`config.log' for more details" "$LINENO" 5; }
13213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13214 /* end confdefs.h. */
13215 #define FUSE_USE_VERSION 29
13217 #include <linux/fs.h>
13218 #include <linux/falloc.h>
13219 #include <linux/xattr.h>
13230 if ac_fn_c_try_cpp "$LINENO"; then :
13233 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13234 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13235 as_fn_error $? "Cannot find fuse2fs Linux headers.
13236 See \`config.log' for more details" "$LINENO" 5; }
13238 rm -f conftest.err conftest.i conftest.$ac_ext
13240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -losxfuse" >&5
13241 $as_echo_n "checking for fuse_main in -losxfuse... " >&6; }
13242 if ${ac_cv_lib_osxfuse_fuse_main+:} false; then :
13243 $as_echo_n "(cached) " >&6
13245 ac_check_lib_save_LIBS=$LIBS
13246 LIBS="-losxfuse $LIBS"
13247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13248 /* end confdefs.h. */
13250 /* Override any GCC internal prototype to avoid an error.
13251 Use char because int might match the return type of a GCC
13252 builtin and then its argument prototype would still apply. */
13260 return fuse_main ();
13265 if ac_fn_c_try_link "$LINENO"; then :
13266 ac_cv_lib_osxfuse_fuse_main=yes
13268 ac_cv_lib_osxfuse_fuse_main=no
13270 rm -f core conftest.err conftest.$ac_objext \
13271 conftest$ac_exeext conftest.$ac_ext
13272 LIBS=$ac_check_lib_save_LIBS
13274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_osxfuse_fuse_main" >&5
13275 $as_echo "$ac_cv_lib_osxfuse_fuse_main" >&6; }
13276 if test "x$ac_cv_lib_osxfuse_fuse_main" = xyes; then :
13279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -lfuse" >&5
13280 $as_echo_n "checking for fuse_main in -lfuse... " >&6; }
13281 if ${ac_cv_lib_fuse_fuse_main+:} false; then :
13282 $as_echo_n "(cached) " >&6
13284 ac_check_lib_save_LIBS=$LIBS
13285 LIBS="-lfuse $LIBS"
13286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13287 /* end confdefs.h. */
13289 /* Override any GCC internal prototype to avoid an error.
13290 Use char because int might match the return type of a GCC
13291 builtin and then its argument prototype would still apply. */
13299 return fuse_main ();
13304 if ac_fn_c_try_link "$LINENO"; then :
13305 ac_cv_lib_fuse_fuse_main=yes
13307 ac_cv_lib_fuse_fuse_main=no
13309 rm -f core conftest.err conftest.$ac_objext \
13310 conftest$ac_exeext conftest.$ac_ext
13311 LIBS=$ac_check_lib_save_LIBS
13313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fuse_fuse_main" >&5
13314 $as_echo "$ac_cv_lib_fuse_fuse_main" >&6; }
13315 if test "x$ac_cv_lib_fuse_fuse_main" = xyes; then :
13318 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13319 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13320 as_fn_error $? "Cannot find fuse library.
13321 See \`config.log' for more details" "$LINENO" 5; }
13326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling fuse2fs" >&5
13327 $as_echo "Enabling fuse2fs" >&6; }
13331 for ac_header in pthread.h fuse.h
13333 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13334 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#define _FILE_OFFSET_BITS 64
13335 #define FUSE_USE_VERSION 29
13337 # include <linux/fs.h>
13338 # include <linux/falloc.h>
13339 # include <linux/xattr.h>
13342 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13343 cat >>confdefs.h <<_ACEOF
13344 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13353 if test -z "$FUSE_CMT"
13355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -losxfuse" >&5
13356 $as_echo_n "checking for fuse_main in -losxfuse... " >&6; }
13357 if ${ac_cv_lib_osxfuse_fuse_main+:} false; then :
13358 $as_echo_n "(cached) " >&6
13360 ac_check_lib_save_LIBS=$LIBS
13361 LIBS="-losxfuse $LIBS"
13362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13363 /* end confdefs.h. */
13365 /* Override any GCC internal prototype to avoid an error.
13366 Use char because int might match the return type of a GCC
13367 builtin and then its argument prototype would still apply. */
13375 return fuse_main ();
13380 if ac_fn_c_try_link "$LINENO"; then :
13381 ac_cv_lib_osxfuse_fuse_main=yes
13383 ac_cv_lib_osxfuse_fuse_main=no
13385 rm -f core conftest.err conftest.$ac_objext \
13386 conftest$ac_exeext conftest.$ac_ext
13387 LIBS=$ac_check_lib_save_LIBS
13389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_osxfuse_fuse_main" >&5
13390 $as_echo "$ac_cv_lib_osxfuse_fuse_main" >&6; }
13391 if test "x$ac_cv_lib_osxfuse_fuse_main" = xyes; then :
13394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -lfuse" >&5
13395 $as_echo_n "checking for fuse_main in -lfuse... " >&6; }
13396 if ${ac_cv_lib_fuse_fuse_main+:} false; then :
13397 $as_echo_n "(cached) " >&6
13399 ac_check_lib_save_LIBS=$LIBS
13400 LIBS="-lfuse $LIBS"
13401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13402 /* end confdefs.h. */
13404 /* Override any GCC internal prototype to avoid an error.
13405 Use char because int might match the return type of a GCC
13406 builtin and then its argument prototype would still apply. */
13414 return fuse_main ();
13419 if ac_fn_c_try_link "$LINENO"; then :
13420 ac_cv_lib_fuse_fuse_main=yes
13422 ac_cv_lib_fuse_fuse_main=no
13424 rm -f core conftest.err conftest.$ac_objext \
13425 conftest$ac_exeext conftest.$ac_ext
13426 LIBS=$ac_check_lib_save_LIBS
13428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fuse_fuse_main" >&5
13429 $as_echo "$ac_cv_lib_fuse_fuse_main" >&6; }
13430 if test "x$ac_cv_lib_fuse_fuse_main" = xyes; then :
13439 if test -z "$FUSE_CMT"
13441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling fuse2fs by default." >&5
13442 $as_echo "Enabling fuse2fs by default." >&6; }
13449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for optreset" >&5
13450 $as_echo_n "checking for optreset... " >&6; }
13451 if ${ac_cv_have_optreset+:} false; then :
13452 $as_echo_n "(cached) " >&6
13454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13455 /* end confdefs.h. */
13456 #include <unistd.h>
13459 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13460 $EGREP "optreset" >/dev/null 2>&1; then :
13461 ac_cv_have_optreset=yes
13463 ac_cv_have_optreset=no
13468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_optreset" >&5
13469 $as_echo "$ac_cv_have_optreset" >&6; }
13470 if test $ac_cv_have_optreset = yes; then
13472 $as_echo "#define HAVE_OPTRESET 1" >>confdefs.h
13477 ac_fn_c_check_func "$LINENO" "sem_init" "ac_cv_func_sem_init"
13478 if test "x$ac_cv_func_sem_init" = xyes; then :
13481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lpthread" >&5
13482 $as_echo_n "checking for sem_init in -lpthread... " >&6; }
13483 if ${ac_cv_lib_pthread_sem_init+:} false; then :
13484 $as_echo_n "(cached) " >&6
13486 ac_check_lib_save_LIBS=$LIBS
13487 LIBS="-lpthread $LIBS"
13488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13489 /* end confdefs.h. */
13491 /* Override any GCC internal prototype to avoid an error.
13492 Use char because int might match the return type of a GCC
13493 builtin and then its argument prototype would still apply. */
13501 return sem_init ();
13506 if ac_fn_c_try_link "$LINENO"; then :
13507 ac_cv_lib_pthread_sem_init=yes
13509 ac_cv_lib_pthread_sem_init=no
13511 rm -f core conftest.err conftest.$ac_objext \
13512 conftest$ac_exeext conftest.$ac_ext
13513 LIBS=$ac_check_lib_save_LIBS
13515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_sem_init" >&5
13516 $as_echo "$ac_cv_lib_pthread_sem_init" >&6; }
13517 if test "x$ac_cv_lib_pthread_sem_init" = xyes; then :
13518 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
13520 SEM_INIT_LIB=-lpthread
13522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lrt" >&5
13523 $as_echo_n "checking for sem_init in -lrt... " >&6; }
13524 if ${ac_cv_lib_rt_sem_init+:} false; then :
13525 $as_echo_n "(cached) " >&6
13527 ac_check_lib_save_LIBS=$LIBS
13529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13530 /* end confdefs.h. */
13532 /* Override any GCC internal prototype to avoid an error.
13533 Use char because int might match the return type of a GCC
13534 builtin and then its argument prototype would still apply. */
13542 return sem_init ();
13547 if ac_fn_c_try_link "$LINENO"; then :
13548 ac_cv_lib_rt_sem_init=yes
13550 ac_cv_lib_rt_sem_init=no
13552 rm -f core conftest.err conftest.$ac_objext \
13553 conftest$ac_exeext conftest.$ac_ext
13554 LIBS=$ac_check_lib_save_LIBS
13556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sem_init" >&5
13557 $as_echo "$ac_cv_lib_rt_sem_init" >&6; }
13558 if test "x$ac_cv_lib_rt_sem_init" = xyes; then :
13559 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
13563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lposix4" >&5
13564 $as_echo_n "checking for sem_init in -lposix4... " >&6; }
13565 if ${ac_cv_lib_posix4_sem_init+:} false; then :
13566 $as_echo_n "(cached) " >&6
13568 ac_check_lib_save_LIBS=$LIBS
13569 LIBS="-lposix4 $LIBS"
13570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13571 /* end confdefs.h. */
13573 /* Override any GCC internal prototype to avoid an error.
13574 Use char because int might match the return type of a GCC
13575 builtin and then its argument prototype would still apply. */
13583 return sem_init ();
13588 if ac_fn_c_try_link "$LINENO"; then :
13589 ac_cv_lib_posix4_sem_init=yes
13591 ac_cv_lib_posix4_sem_init=no
13593 rm -f core conftest.err conftest.$ac_objext \
13594 conftest$ac_exeext conftest.$ac_ext
13595 LIBS=$ac_check_lib_save_LIBS
13597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sem_init" >&5
13598 $as_echo "$ac_cv_lib_posix4_sem_init" >&6; }
13599 if test "x$ac_cv_lib_posix4_sem_init" = xyes; then :
13600 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
13602 SEM_INIT_LIB=-lposix4
13611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unified diff option" >&5
13612 $as_echo_n "checking for unified diff option... " >&6; }
13613 if diff -u $0 $0 > /dev/null 2>&1 ; then
13618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNI_DIFF_OPTS" >&5
13619 $as_echo "$UNI_DIFF_OPTS" >&6; }
13624 $as_echo "#define HAVE_EXT2_IOCTLS 1" >>confdefs.h
13644 linux* | gnu* | k*bsd*-gnu)
13645 if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
13647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, root_prefix defaults to ''" >&5
13648 $as_echo "On $host_os systems, root_prefix defaults to ''" >&6; }
13653 linux* | gnu* | k*bsd*-gnu)
13654 if test "$prefix" = NONE ; then
13656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, prefix defaults to /usr" >&5
13657 $as_echo "On $host_os systems, prefix defaults to /usr" >&6; }
13658 if test "$mandir" = '${prefix}/man' ; then
13659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ...and mandir defaults to /usr/share/man" >&5
13660 $as_echo "...and mandir defaults to /usr/share/man" >&6; }
13661 mandir=/usr/share/man
13666 if test "$root_prefix" = NONE ; then
13667 if test "$prefix" = NONE ; then
13668 root_prefix="$ac_default_prefix"
13670 root_prefix="$prefix"
13672 root_bindir=$bindir
13673 root_sbindir=$sbindir
13674 root_libdir=$libdir
13675 root_sysconfdir=$sysconfdir
13677 root_bindir='${root_prefix}/bin'
13678 root_sbindir='${root_prefix}/sbin'
13679 root_libdir='${root_prefix}/lib'
13680 root_sysconfdir='${root_prefix}/etc'
13682 if test "$bindir" != '${exec_prefix}/bin'; then
13683 root_bindir=$bindir
13684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_bindir to $root_bindir" >&5
13685 $as_echo "Setting root_bindir to $root_bindir" >&6; }
13687 if test "$sbindir" != '${exec_prefix}/sbin'; then
13688 root_sbindir=$sbindir
13689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sbindir to $root_sbindir" >&5
13690 $as_echo "Setting root_sbindir to $root_sbindir" >&6; }
13692 if test "$libdir" != '${exec_prefix}/lib'; then
13693 root_libdir=$libdir
13694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_libdir to $root_libdir" >&5
13695 $as_echo "Setting root_libdir to $root_libdir" >&6; }
13697 if test "$sysconfdir" != '${prefix}/etc'; then
13698 root_sysconfdir=$sysconfdir
13699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sysconfdir to $root_sysconfdir" >&5
13700 $as_echo "Setting root_sysconfdir to $root_sysconfdir" >&6; }
13708 # Check whether --with-multiarch was given.
13709 if test "${with_multiarch+set}" = set; then :
13710 withval=$with_multiarch; if test "$withval" = "lib64"; then
13714 libdir=$libdir/$withval
13715 root_libdir=$root_libdir/$withval
13719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can link with -static" >&5
13720 $as_echo_n "checking whether we can link with -static... " >&6; }
13721 if ${ac_cv_e2fsprogs_use_static+:} false; then :
13722 $as_echo_n "(cached) " >&6
13724 SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS_STATIC -static"
13725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13726 /* end confdefs.h. */
13736 if ac_fn_c_try_link "$LINENO"; then :
13737 ac_cv_e2fsprogs_use_static=yes
13739 ac_cv_e2fsprogs_use_static=no
13741 rm -f core conftest.err conftest.$ac_objext \
13742 conftest$ac_exeext conftest.$ac_ext
13743 LDFLAGS=$SAVE_LDFLAGS
13748 ac_cv_e2fsprogs_use_static=no
13751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_e2fsprogs_use_static" >&5
13752 $as_echo "$ac_cv_e2fsprogs_use_static" >&6; }
13753 if test $ac_cv_e2fsprogs_use_static = yes; then
13754 LDFLAGS_STATIC="$LDFLAGS_STATIC -static"
13759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using Apple Darwin / GNU libintl workaround" >&5
13760 $as_echo "Using Apple Darwin / GNU libintl workaround" >&6; }
13762 $as_echo "#define _INTL_REDIRECT_MACROS 1" >>confdefs.h
13766 SS_DIR=`cd ${srcdir}/lib/ss; pwd`
13767 ET_DIR=`cd ${srcdir}/lib/et; pwd`
13770 if test "$cross_compiling" = yes ; then
13773 DO_TEST_SUITE=check
13776 INCLUDES='-I. -I$(top_builddir)/lib -I$(top_srcdir)/lib'
13777 if test -n "$CPPFLAGS" ; then
13778 INCLUDES="$INCLUDES $CPPFLAGS"
13780 if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
13781 INCLUDES=$INCLUDES' -I$(top_builddir)/intl -I$(top_srcdir)/intl'
13783 if test -n "$WITH_DIET_LIBC" ; then
13784 INCLUDES="$INCLUDES -D_REENTRANT"
13789 if test -n "$ac_aux_dir"; then
13790 case "$ac_aux_dir" in
13791 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
13792 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
13795 if test -z "$MKINSTALLDIRS"; then
13796 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
13800 if test $cross_compiling = no; then
13801 BUILD_CFLAGS="$CFLAGS $CPPFLAGS $INCLUDES -DHAVE_CONFIG_H"
13802 BUILD_LDFLAGS="$LDFLAGS"
13806 CFLAGS_SHLIB=${CFLAGS_SHLIB:-$CFLAGS}
13807 CFLAGS_STLIB=${CFLAGS_STLIB:-$CFLAGS}
13808 LDFLAGS_SHLIB=${LDFLAGS_SHLIB:-$LDFLAGS}
13812 test -d lib || mkdir lib
13813 test -d include || mkdir include
13814 test -d include/linux || mkdir include/linux
13815 test -d include/asm || mkdir include/asm
13816 if test -z "$UUID_CMT" ; then
13817 uuid_out_list="lib/uuid/Makefile lib/uuid/uuid.pc \
13818 lib/uuid/uuid_types.h"
13820 if test -z "$BLKID_CMT" ; then
13821 blkid_out_list="lib/blkid/Makefile lib/blkid/blkid.pc \
13822 lib/blkid/blkid_types.h"
13824 for i in MCONFIG Makefile e2fsprogs.spec \
13825 util/Makefile util/subst.conf util/gen-tarball util/install-symlink \
13826 lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \
13827 lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \
13828 $uuid_out_list $blkid_out_list lib/support/Makefile \
13829 lib/ss/ss.pc lib/et/com_err.pc lib/e2p/e2p.pc lib/ext2fs/ext2fs.pc \
13830 misc/Makefile ext2ed/Makefile e2fsck/Makefile \
13831 debugfs/Makefile tests/Makefile tests/progs/Makefile \
13832 resize/Makefile doc/Makefile intl/Makefile \
13833 intl/libgnuintl.h po/Makefile.in ; do
13834 if test -d `dirname ${srcdir}/$i` ; then
13835 outlist="$outlist $i"
13838 ac_config_files="$ac_config_files $outlist"
13840 cat >confcache <<\_ACEOF
13841 # This file is a shell script that caches the results of configure
13842 # tests run on this system so they can be shared between configure
13843 # scripts and configure runs, see configure's option --config-cache.
13844 # It is not useful on other systems. If it contains results you don't
13845 # want to keep, you may remove or edit it.
13847 # config.status only pays attention to the cache file if you give it
13848 # the --recheck option to rerun configure.
13850 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13851 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13852 # following values.
13856 # The following way of writing the cache mishandles newlines in values,
13857 # but we know of no workaround that is simple, portable, and efficient.
13858 # So, we kill variables containing newlines.
13859 # Ultrix sh set writes to stderr and can't be redirected directly,
13860 # and sets the high bit in the cache file unless we assign to the vars.
13862 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13863 eval ac_val=\$$ac_var
13867 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13868 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13871 _ | IFS | as_nl) ;; #(
13872 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13873 *) { eval $ac_var=; unset $ac_var;} ;;
13879 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13880 *${as_nl}ac_space=\ *)
13881 # `set' does not quote correctly, so add quotes: double-quote
13882 # substitution turns \\\\ into \\, and sed turns \\ into \.
13885 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13888 # `set' quotes correctly as required by POSIX, so do not add quotes.
13889 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13898 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13900 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13902 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13903 if test -w "$cache_file"; then
13904 if test "x$cache_file" != "x/dev/null"; then
13905 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13906 $as_echo "$as_me: updating cache $cache_file" >&6;}
13907 if test ! -f "$cache_file" || test -h "$cache_file"; then
13908 cat confcache >"$cache_file"
13910 case $cache_file in #(
13912 mv -f confcache "$cache_file"$$ &&
13913 mv -f "$cache_file"$$ "$cache_file" ;; #(
13915 mv -f confcache "$cache_file" ;;
13920 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13921 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13926 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13927 # Let make expand exec_prefix.
13928 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13930 DEFS=-DHAVE_CONFIG_H
13935 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13936 # 1. Remove the extension, and $U if already installed.
13937 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13938 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13939 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13940 # will be set to the directory where LIBOBJS objects are built.
13941 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13942 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13944 LIBOBJS=$ac_libobjs
13946 LTLIBOBJS=$ac_ltlibobjs
13951 : "${CONFIG_STATUS=./config.status}"
13953 ac_clean_files_save=$ac_clean_files
13954 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13955 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13956 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13958 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13960 # Generated by $as_me.
13961 # Run this file to recreate the current configuration.
13962 # Compiler output produced by configure, useful for debugging
13963 # configure, is in config.log if it exists.
13966 ac_cs_recheck=false
13969 SHELL=\${CONFIG_SHELL-$SHELL}
13972 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13973 ## -------------------- ##
13974 ## M4sh Initialization. ##
13975 ## -------------------- ##
13977 # Be more Bourne compatible
13978 DUALCASE=1; export DUALCASE # for MKS sh
13979 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13982 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13983 # is contrary to our usage. Disable this feature.
13984 alias -g '${1+"$@"}'='"$@"'
13985 setopt NO_GLOB_SUBST
13987 case `(set -o) 2>/dev/null` in #(
13999 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14000 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14001 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14002 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14003 # Prefer a ksh shell builtin over an external printf program on Solaris,
14004 # but without wasting forks for bash or zsh.
14005 if test -z "$BASH_VERSION$ZSH_VERSION" \
14006 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14007 as_echo='print -r --'
14008 as_echo_n='print -rn --'
14009 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14010 as_echo='printf %s\n'
14011 as_echo_n='printf %s'
14013 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14014 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14015 as_echo_n='/usr/ucb/echo -n'
14017 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14018 as_echo_n_body='eval
14022 expr "X$arg" : "X\\(.*\\)$as_nl";
14023 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14025 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14027 export as_echo_n_body
14028 as_echo_n='sh -c $as_echo_n_body as_echo'
14030 export as_echo_body
14031 as_echo='sh -c $as_echo_body as_echo'
14034 # The user is always right.
14035 if test "${PATH_SEPARATOR+set}" != set; then
14037 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14038 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14045 # We need space, tab and new line, in precisely that order. Quoting is
14046 # there to prevent editors from complaining about space-tab.
14047 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14048 # splitting by setting IFS to empty value.)
14051 # Find who we are. Look in the path if we contain no directory separator.
14054 *[\\/]* ) as_myself=$0 ;;
14055 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14056 for as_dir in $PATH
14059 test -z "$as_dir" && as_dir=.
14060 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14066 # We did not find ourselves, most probably we were run as `sh COMMAND'
14067 # in which case we are not to be found in the path.
14068 if test "x$as_myself" = x; then
14071 if test ! -f "$as_myself"; then
14072 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14076 # Unset variables that we do not need and which cause bugs (e.g. in
14077 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14078 # suppresses any "Segmentation fault" message there. '((' could
14079 # trigger a bug in pdksh 5.2.14.
14080 for as_var in BASH_ENV ENV MAIL MAILPATH
14081 do eval test x\${$as_var+set} = xset \
14082 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14095 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14098 # as_fn_error STATUS ERROR [LINENO LOG_FD]
14099 # ----------------------------------------
14100 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14101 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14102 # script with STATUS, using 1 if that was 0.
14105 as_status=$1; test $as_status -eq 0 && as_status=1
14107 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14108 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14110 $as_echo "$as_me: error: $2" >&2
14111 as_fn_exit $as_status
14115 # as_fn_set_status STATUS
14116 # -----------------------
14117 # Set $? to STATUS, without forking.
14118 as_fn_set_status ()
14121 } # as_fn_set_status
14123 # as_fn_exit STATUS
14124 # -----------------
14125 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14129 as_fn_set_status $1
14135 # Portably unset VAR.
14138 { eval $1=; unset $1;}
14140 as_unset=as_fn_unset
14141 # as_fn_append VAR VALUE
14142 # ----------------------
14143 # Append the text in VALUE to the end of the definition contained in VAR. Take
14144 # advantage of any shell optimizations that allow amortized linear growth over
14145 # repeated appends, instead of the typical quadratic growth present in naive
14147 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14148 eval 'as_fn_append ()
14159 # as_fn_arith ARG...
14160 # ------------------
14161 # Perform arithmetic evaluation on the ARGs, and store the result in the
14162 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14163 # must be portable across $(()) and expr.
14164 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14165 eval 'as_fn_arith ()
14172 as_val=`expr "$@" || test $? -eq 1`
14177 if expr a : '\(a\)' >/dev/null 2>&1 &&
14178 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14184 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14185 as_basename=basename
14190 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14196 as_me=`$as_basename -- "$0" ||
14197 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14198 X"$0" : 'X\(//\)$' \| \
14199 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14201 sed '/^.*\/\([^/][^/]*\)\/*$/{
14215 # Avoid depending upon Character Ranges.
14216 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14217 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14218 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14219 as_cr_digits='0123456789'
14220 as_cr_alnum=$as_cr_Letters$as_cr_digits
14222 ECHO_C= ECHO_N= ECHO_T=
14223 case `echo -n x` in #(((((
14225 case `echo 'xy\c'` in
14226 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14228 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14235 rm -f conf$$ conf$$.exe conf$$.file
14236 if test -d conf$$.dir; then
14237 rm -f conf$$.dir/conf$$.file
14240 mkdir conf$$.dir 2>/dev/null
14242 if (echo >conf$$.file) 2>/dev/null; then
14243 if ln -s conf$$.file conf$$ 2>/dev/null; then
14245 # ... but there are two gotchas:
14246 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14247 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14248 # In both cases, we have to default to `cp -pR'.
14249 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14251 elif ln conf$$.file conf$$ 2>/dev/null; then
14259 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14260 rmdir conf$$.dir 2>/dev/null
14265 # Create "$as_dir" as a directory, including parents if necessary.
14270 -*) as_dir=./$as_dir;;
14272 test -d "$as_dir" || eval $as_mkdir_p || {
14276 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14277 *) as_qdir=$as_dir;;
14279 as_dirs="'$as_qdir' $as_dirs"
14280 as_dir=`$as_dirname -- "$as_dir" ||
14281 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14282 X"$as_dir" : 'X\(//\)[^/]' \| \
14283 X"$as_dir" : 'X\(//\)$' \| \
14284 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14285 $as_echo X"$as_dir" |
14286 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14290 /^X\(\/\/\)[^/].*/{
14303 test -d "$as_dir" && break
14305 test -z "$as_dirs" || eval "mkdir $as_dirs"
14306 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
14310 if mkdir -p . 2>/dev/null; then
14311 as_mkdir_p='mkdir -p "$as_dir"'
14313 test -d ./-p && rmdir ./-p
14318 # as_fn_executable_p FILE
14319 # -----------------------
14320 # Test if FILE is an executable regular file.
14321 as_fn_executable_p ()
14323 test -f "$1" && test -x "$1"
14324 } # as_fn_executable_p
14325 as_test_x='test -x'
14326 as_executable_p=as_fn_executable_p
14328 # Sed expression to map a string onto a valid CPP name.
14329 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14331 # Sed expression to map a string onto a valid variable name.
14332 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14336 ## ----------------------------------- ##
14337 ## Main body of $CONFIG_STATUS script. ##
14338 ## ----------------------------------- ##
14340 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14342 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14343 # Save the log message, to keep $0 and so on meaningful, and to
14344 # report actual input values of CONFIG_FILES etc. instead of their
14345 # values after options handling.
14347 This file was extended by $as_me, which was
14348 generated by GNU Autoconf 2.69. Invocation command line was
14350 CONFIG_FILES = $CONFIG_FILES
14351 CONFIG_HEADERS = $CONFIG_HEADERS
14352 CONFIG_LINKS = $CONFIG_LINKS
14353 CONFIG_COMMANDS = $CONFIG_COMMANDS
14356 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14361 case $ac_config_files in *"
14362 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14365 case $ac_config_headers in *"
14366 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14370 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14371 # Files that config.status was made for.
14372 config_files="$ac_config_files"
14373 config_headers="$ac_config_headers"
14374 config_commands="$ac_config_commands"
14378 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14380 \`$as_me' instantiates files and other configuration actions
14381 from templates according to the current configuration. Unless the files
14382 and actions are specified as TAGs, all are instantiated by default.
14384 Usage: $0 [OPTION]... [TAG]...
14386 -h, --help print this help, then exit
14387 -V, --version print version number and configuration settings, then exit
14388 --config print configuration, then exit
14389 -q, --quiet, --silent
14390 do not print progress messages
14391 -d, --debug don't remove temporary files
14392 --recheck update $as_me by reconfiguring in the same conditions
14393 --file=FILE[:TEMPLATE]
14394 instantiate the configuration file FILE
14395 --header=FILE[:TEMPLATE]
14396 instantiate the configuration header FILE
14398 Configuration files:
14401 Configuration headers:
14404 Configuration commands:
14407 Report bugs to the package provider."
14410 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14411 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14414 configured by $0, generated by GNU Autoconf 2.69,
14415 with options \\"\$ac_cs_config\\"
14417 Copyright (C) 2012 Free Software Foundation, Inc.
14418 This config.status script is free software; the Free Software Foundation
14419 gives unlimited permission to copy, distribute and modify it."
14426 test -n "\$AWK" || AWK=awk
14429 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14430 # The default lists apply if the user does not specify any file.
14436 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14437 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14441 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14453 # Handling of the options.
14454 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14456 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14457 $as_echo "$ac_cs_version"; exit ;;
14458 --config | --confi | --conf | --con | --co | --c )
14459 $as_echo "$ac_cs_config"; exit ;;
14460 --debug | --debu | --deb | --de | --d | -d )
14462 --file | --fil | --fi | --f )
14465 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14466 '') as_fn_error $? "missing file argument" ;;
14468 as_fn_append CONFIG_FILES " '$ac_optarg'"
14469 ac_need_defaults=false;;
14470 --header | --heade | --head | --hea )
14473 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14475 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14476 ac_need_defaults=false;;
14478 # Conflict between --help and --header
14479 as_fn_error $? "ambiguous option: \`$1'
14480 Try \`$0 --help' for more information.";;
14481 --help | --hel | -h )
14482 $as_echo "$ac_cs_usage"; exit ;;
14483 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14484 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14487 # This is an error.
14488 -*) as_fn_error $? "unrecognized option: \`$1'
14489 Try \`$0 --help' for more information." ;;
14491 *) as_fn_append ac_config_targets " $1"
14492 ac_need_defaults=false ;;
14498 ac_configure_extra_args=
14500 if $ac_cs_silent; then
14502 ac_configure_extra_args="$ac_configure_extra_args --silent"
14506 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14507 if \$ac_cs_recheck; then
14508 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14510 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14511 CONFIG_SHELL='$SHELL'
14512 export CONFIG_SHELL
14517 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14521 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14522 ## Running $as_me. ##
14528 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14532 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
14533 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
14534 # from automake < 1.5.
14535 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
14536 # Capture the value of LINGUAS because we need it to compute CATALOGS.
14537 LINGUAS="${LINGUAS-%UNSET%}"
14542 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14544 # Handling of arguments.
14545 for ac_config_target in $ac_config_targets
14547 case $ac_config_target in
14548 "lib/config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/config.h" ;;
14549 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
14550 "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;;
14552 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14557 # If the user did not use the arguments to specify the items to instantiate,
14558 # then the envvar interface is used. Set only those that are not.
14559 # We use the long form for the default assignment because of an extremely
14560 # bizarre bug on SunOS 4.1.3.
14561 if $ac_need_defaults; then
14562 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14563 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14564 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14567 # Have a temporary directory for convenience. Make it in the build tree
14568 # simply because there is no reason against having it here, and in addition,
14569 # creating and moving files from /tmp can sometimes cause problems.
14570 # Hook for its removal unless debugging.
14571 # Note that there is a small window in which the directory will not be cleaned:
14572 # after its creation but before its name has been assigned to `$tmp'.
14576 trap 'exit_status=$?
14577 : "${ac_tmp:=$tmp}"
14578 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
14580 trap 'as_fn_exit 1' 1 2 13 15
14582 # Create a (secure) tmp directory for tmp files.
14585 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14589 tmp=./conf$$-$RANDOM
14590 (umask 077 && mkdir "$tmp")
14591 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14594 # Set up the scripts for CONFIG_FILES section.
14595 # No need to generate them if there are no CONFIG_FILES.
14596 # This happens for instance with `./config.status config.h'.
14597 if test -n "$CONFIG_FILES"; then
14599 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
14600 ac_cs_awk_getline=:
14601 ac_cs_awk_pipe_init=
14602 ac_cs_awk_read_file='
14603 while ((getline aline < (F[key])) > 0)
14606 ac_cs_awk_pipe_fini=
14608 ac_cs_awk_getline=false
14609 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
14610 ac_cs_awk_read_file='
14612 print "cat " F[key] " &&"
14613 '$ac_cs_awk_pipe_init
14614 # The final `:' finishes the AND list.
14615 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
14617 ac_cr=`echo X | tr X '\015'`
14618 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14619 # But we know of no other shell where ac_cr would be empty at this
14620 # point, so we can use a bashism as a fallback.
14621 if test "x$ac_cr" = x; then
14622 eval ac_cr=\$\'\\r\'
14624 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14625 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14628 ac_cs_awk_cr=$ac_cr
14631 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
14634 # Create commands to substitute file output variables.
14636 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
14637 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
14638 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
14641 } >conf$$files.sh &&
14642 . ./conf$$files.sh ||
14643 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14644 rm -f conf$$files.sh
14647 echo "cat >conf$$subs.awk <<_ACEOF" &&
14648 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14650 } >conf$$subs.sh ||
14651 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14652 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14654 for ac_last_try in false false false false false :; do
14655 . ./conf$$subs.sh ||
14656 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14658 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14659 if test $ac_delim_n = $ac_delim_num; then
14661 elif $ac_last_try; then
14662 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14664 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14667 rm -f conf$$subs.sh
14669 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14670 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14674 s/^/S["/; s/!.*/"]=/
14684 s/\(.\{148\}\)..*/\1/
14686 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14691 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14698 s/\(.\{148\}\)..*/\1/
14700 s/["\\]/\\&/g; s/^/"/; s/$/"/
14704 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14709 ' <conf$$subs.awk | sed '
14714 ' >>$CONFIG_STATUS || ac_write_fail=1
14715 rm -f conf$$subs.awk
14716 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14718 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14719 for (key in S) S_is_set[key] = 1
14721 \$ac_cs_awk_pipe_init
14725 nfields = split(line, field, "@")
14727 len = length(field[1])
14728 for (i = 2; i < nfields; i++) {
14730 keylen = length(key)
14731 if (S_is_set[key]) {
14733 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14734 len += length(value) + length(field[++i])
14739 if (nfields == 3 && !substed) {
14741 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
14742 \$ac_cs_awk_read_file
14748 \$ac_cs_awk_pipe_fini
14751 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14752 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14753 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14756 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14757 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14760 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14761 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14762 # trailing colons and then remove the whole line if VPATH becomes empty
14763 # (actually we leave an empty line to preserve line numbers).
14764 if test "x$srcdir" = x.; then
14765 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
14783 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14784 fi # test -n "$CONFIG_FILES"
14786 # Set up the scripts for CONFIG_HEADERS section.
14787 # No need to generate them if there are no CONFIG_HEADERS.
14788 # This happens for instance with `./config.status Makefile'.
14789 if test -n "$CONFIG_HEADERS"; then
14790 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
14794 # Transform confdefs.h into an awk script `defines.awk', embedded as
14795 # here-document in config.status, that substitutes the proper values into
14796 # config.h.in to produce config.h.
14798 # Create a delimiter string that does not exist in confdefs.h, to ease
14799 # handling of long lines.
14801 for ac_last_try in false false :; do
14802 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14803 if test -z "$ac_tt"; then
14805 elif $ac_last_try; then
14806 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14808 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14812 # For the awk script, D is an array of macro values keyed by name,
14813 # likewise P contains macro parameters if any. Preserve backslash
14814 # newline sequences.
14816 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14818 s/.\{148\}/&'"$ac_delim"'/g
14821 s/^[ ]*#[ ]*define[ ][ ]*/ /
14828 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14830 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14834 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14835 D["\1"]=" \3\\\\\\n"\\/p
14837 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14842 s/.\{148\}/&'"$ac_delim"'/g
14847 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14850 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14852 ' <confdefs.h | sed '
14853 s/'"$ac_delim"'/"\\\
14854 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14856 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14857 for (key in D) D_is_set[key] = 1
14860 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14862 split(line, arg, " ")
14863 if (arg[1] == "#") {
14867 defundef = substr(arg[1], 2)
14870 split(mac1, mac2, "(") #)
14872 prefix = substr(line, 1, index(line, defundef) - 1)
14873 if (D_is_set[macro]) {
14874 # Preserve the white space surrounding the "#".
14875 print prefix "define", macro P[macro] D[macro]
14878 # Replace #undef with comments. This is necessary, for example,
14879 # in the case of _POSIX_SOURCE, which is predefined and required
14880 # on some systems where configure will not decide to define it.
14881 if (defundef == "undef") {
14882 print "/*", prefix defundef, macro, "*/"
14890 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14891 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14892 fi # test -n "$CONFIG_HEADERS"
14895 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14900 :[FHLC]) ac_mode=$ac_tag; continue;;
14902 case $ac_mode$ac_tag in
14904 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14905 :[FH]-) ac_tag=-:-;;
14906 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14923 -) ac_f="$ac_tmp/stdin";;
14924 *) # Look for the file first in the build tree, then in the source tree
14925 # (if the path is not absolute). The absolute path cannot be DOS-style,
14926 # because $ac_f cannot contain `:'.
14930 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14932 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14934 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14935 as_fn_append ac_file_inputs " '$ac_f'"
14938 # Let's still pretend it is `configure' which instantiates (i.e., don't
14939 # use $as_me), people would be surprised to read:
14940 # /* config.h. Generated by config.status. */
14941 configure_input='Generated from '`
14942 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14944 if test x"$ac_file" != x-; then
14945 configure_input="$ac_file. $configure_input"
14946 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14947 $as_echo "$as_me: creating $ac_file" >&6;}
14949 # Neutralize special characters interpreted by sed in replacement strings.
14950 case $configure_input in #(
14951 *\&* | *\|* | *\\* )
14952 ac_sed_conf_input=`$as_echo "$configure_input" |
14953 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14954 *) ac_sed_conf_input=$configure_input;;
14958 *:-:* | *:-) cat >"$ac_tmp/stdin" \
14959 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14964 ac_dir=`$as_dirname -- "$ac_file" ||
14965 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14966 X"$ac_file" : 'X\(//\)[^/]' \| \
14967 X"$ac_file" : 'X\(//\)$' \| \
14968 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14969 $as_echo X"$ac_file" |
14970 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14974 /^X\(\/\/\)[^/].*/{
14987 as_dir="$ac_dir"; as_fn_mkdir_p
14991 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14993 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14994 # A ".." for each directory in $ac_dir_suffix.
14995 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14996 case $ac_top_builddir_sub in
14997 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14998 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15001 ac_abs_top_builddir=$ac_pwd
15002 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15003 # for backward compatibility:
15004 ac_top_builddir=$ac_top_build_prefix
15007 .) # We are building in place.
15009 ac_top_srcdir=$ac_top_builddir_sub
15010 ac_abs_top_srcdir=$ac_pwd ;;
15011 [\\/]* | ?:[\\/]* ) # Absolute name.
15012 ac_srcdir=$srcdir$ac_dir_suffix;
15013 ac_top_srcdir=$srcdir
15014 ac_abs_top_srcdir=$srcdir ;;
15015 *) # Relative name.
15016 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15017 ac_top_srcdir=$ac_top_build_prefix$srcdir
15018 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15020 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15030 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15031 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15033 ac_MKDIR_P=$MKDIR_P
15035 [\\/$]* | ?:[\\/]* ) ;;
15036 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15040 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15041 # If the template does not know about datarootdir, expand it.
15042 # FIXME: This hack should be removed a few years after 2.60.
15043 ac_datarootdir_hack=; ac_datarootdir_seen=
15054 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15055 *datarootdir*) ac_datarootdir_seen=yes;;
15056 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15057 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15058 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15060 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15061 ac_datarootdir_hack='
15062 s&@datadir@&$datadir&g
15063 s&@docdir@&$docdir&g
15064 s&@infodir@&$infodir&g
15065 s&@localedir@&$localedir&g
15066 s&@mandir@&$mandir&g
15067 s&\\\${datarootdir}&$datarootdir&g' ;;
15071 # Neutralize VPATH when `$srcdir' = `.'.
15072 # Shell code in configure.ac might set extrasub.
15073 # FIXME: do we really want to maintain this feature?
15074 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15075 ac_sed_extra="$ac_vpsub
15078 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15080 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15081 s|@configure_input@|$ac_sed_conf_input|;t t
15082 s&@top_builddir@&$ac_top_builddir_sub&;t t
15083 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15084 s&@srcdir@&$ac_srcdir&;t t
15085 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15086 s&@top_srcdir@&$ac_top_srcdir&;t t
15087 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15088 s&@builddir@&$ac_builddir&;t t
15089 s&@abs_builddir@&$ac_abs_builddir&;t t
15090 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15091 s&@INSTALL@&$ac_INSTALL&;t t
15092 s&@MKDIR_P@&$ac_MKDIR_P&;t t
15093 $ac_datarootdir_hack
15095 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
15096 if $ac_cs_awk_getline; then
15097 $AWK -f "$ac_tmp/subs.awk"
15099 $AWK -f "$ac_tmp/subs.awk" | $SHELL
15101 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15103 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15104 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15105 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
15106 "$ac_tmp/out"`; test -z "$ac_out"; } &&
15107 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15108 which seems to be undefined. Please make sure it is defined" >&5
15109 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15110 which seems to be undefined. Please make sure it is defined" >&2;}
15112 rm -f "$ac_tmp/stdin"
15114 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15115 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15117 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15123 if test x"$ac_file" != x-; then
15125 $as_echo "/* $configure_input */" \
15126 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15127 } >"$ac_tmp/config.h" \
15128 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15129 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
15130 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15131 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15134 mv "$ac_tmp/config.h" "$ac_file" \
15135 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15138 $as_echo "/* $configure_input */" \
15139 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15140 || as_fn_error $? "could not create -" "$LINENO" 5
15144 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15145 $as_echo "$as_me: executing $ac_file commands" >&6;}
15150 case $ac_file$ac_mode in
15151 "po-directories":C)
15152 for ac_file in $CONFIG_FILES; do
15153 # Support "outfile[:infile[:infile...]]"
15155 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
15157 # PO directories have a Makefile.in generated from Makefile.in.in.
15158 case "$ac_file" in */Makefile.in)
15159 # Adjust a relative srcdir.
15160 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
15161 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
15162 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
15163 # In autoconf-2.13 it is called $ac_given_srcdir.
15164 # In autoconf-2.50 it is called $srcdir.
15165 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
15166 case "$ac_given_srcdir" in
15167 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
15168 /*) top_srcdir="$ac_given_srcdir" ;;
15169 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
15171 # Treat a directory as a PO directory if and only if it has a
15172 # POTFILES.in file. This allows packages to have multiple PO
15173 # directories under different names or in different locations.
15174 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
15175 rm -f "$ac_dir/POTFILES"
15176 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
15177 gt_tab=`printf '\t'`
15178 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"
15179 POMAKEFILEDEPS="POTFILES.in"
15180 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
15181 # on $ac_dir but don't depend on user-specified configuration
15183 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
15184 # The LINGUAS file contains the set of available languages.
15185 if test -n "$OBSOLETE_ALL_LINGUAS"; then
15186 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
15188 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
15189 # Hide the ALL_LINGUAS assignment from automake < 1.5.
15190 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
15191 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
15193 # The set of available languages was given in configure.in.
15194 # Hide the ALL_LINGUAS assignment from automake < 1.5.
15195 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
15198 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
15199 # Compute UPDATEPOFILES
15200 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
15201 # Compute DUMMYPOFILES
15202 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
15204 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
15205 case "$ac_given_srcdir" in
15207 *) srcdirpre='$(srcdir)/' ;;
15213 for lang in $ALL_LINGUAS; do
15214 POFILES="$POFILES $srcdirpre$lang.po"
15215 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
15216 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
15217 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
15219 # CATALOGS depends on both $ac_dir and the user's LINGUAS
15220 # environment variable.
15222 if test -n "$ALL_LINGUAS"; then
15223 for presentlang in $ALL_LINGUAS; do
15225 if test "%UNSET%" != "$LINGUAS"; then
15226 desiredlanguages="$LINGUAS"
15228 desiredlanguages="$ALL_LINGUAS"
15230 for desiredlang in $desiredlanguages; do
15231 # Use the presentlang catalog if desiredlang is
15232 # a. equal to presentlang, or
15233 # b. a variant of presentlang (because in this case,
15234 # presentlang can be used as a fallback for messages
15235 # which are not translated in the desiredlang catalog).
15236 case "$desiredlang" in
15237 "$presentlang"*) useit=yes;;
15240 if test $useit = yes; then
15241 INST_LINGUAS="$INST_LINGUAS $presentlang"
15246 if test -n "$INST_LINGUAS"; then
15247 for lang in $INST_LINGUAS; do
15248 CATALOGS="$CATALOGS $lang.gmo"
15251 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
15252 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"
15253 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
15254 if test -f "$f"; then
15256 *.orig | *.bak | *~) ;;
15257 *) cat "$f" >> "$ac_dir/Makefile" ;;
15272 ac_clean_files=$ac_clean_files_save
15274 test $ac_write_fail = 0 ||
15275 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15278 # configure is writing to config.log, and then calls config.status.
15279 # config.status does its own redirection, appending to config.log.
15280 # Unfortunately, on DOS this fails, as config.log is still kept open
15281 # by configure, so config.status won't be able to write to it; its
15282 # output is simply discarded. So we exec the FD to /dev/null,
15283 # effectively closing config.log, so it can be properly (re)opened and
15284 # appended to by config.status. When coming back to configure, we
15285 # need to make the FD available again.
15286 if test "$no_create" != yes; then
15288 ac_config_status_args=
15289 test "$silent" = yes &&
15290 ac_config_status_args="$ac_config_status_args --quiet"
15292 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15294 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15295 # would make configure fail if this is the last instruction.
15296 $ac_cs_success || as_fn_exit 1
15298 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15299 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15300 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15303 if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi