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
671 INTL_LIBTOOL_SUFFIX_PREFIX
678 BUILD_INCLUDED_LIBINTL
688 INTL_DEFAULT_VERBOSITY
707 XGETTEXT_EXTRA_OPTIONS
715 GETTEXT_MACRO_VERSION
829 program_transform_name
840 ac_subst_files='MCONFIG
846 PUBLIC_CONFIG_HEADER'
848 enable_option_checking
854 enable_maintainer_mode
855 enable_symlink_install
856 enable_relative_symlinks
857 enable_symlink_relative_symlinks
859 enable_verbose_makecmds
878 enable_e2initrd_helper
887 with_included_gettext
891 ac_precious_vars='build_alias
905 # Initialize some variables set by options.
907 ac_init_version=false
908 ac_unrecognized_opts=
910 # The variables have the same names as the options, with
911 # dashes changed to underlines.
919 program_transform_name=s,x,x,
927 # Installation directory options.
928 # These are left unexpanded so users can "make install exec_prefix=/foo"
929 # and all the variables that are supposed to be based on exec_prefix
930 # by default will actually change.
931 # Use braces instead of parens because sh, perl, etc. also accept them.
932 # (The list follows the same order as the GNU Coding Standards.)
933 bindir='${exec_prefix}/bin'
934 sbindir='${exec_prefix}/sbin'
935 libexecdir='${exec_prefix}/libexec'
936 datarootdir='${prefix}/share'
937 datadir='${datarootdir}'
938 sysconfdir='${prefix}/etc'
939 sharedstatedir='${prefix}/com'
940 localstatedir='${prefix}/var'
941 includedir='${prefix}/include'
942 oldincludedir='/usr/include'
943 docdir='${datarootdir}/doc/${PACKAGE}'
944 infodir='${datarootdir}/info'
949 libdir='${exec_prefix}/lib'
950 localedir='${datarootdir}/locale'
951 mandir='${datarootdir}/man'
957 # If the previous option needs an argument, assign it.
958 if test -n "$ac_prev"; then
959 eval $ac_prev=\$ac_option
965 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
970 # Accept the important Cygnus configure options, so we can diagnose typos.
972 case $ac_dashdash$ac_option in
976 -bindir | --bindir | --bindi | --bind | --bin | --bi)
978 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
981 -build | --build | --buil | --bui | --bu)
982 ac_prev=build_alias ;;
983 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
984 build_alias=$ac_optarg ;;
986 -cache-file | --cache-file | --cache-fil | --cache-fi \
987 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
988 ac_prev=cache_file ;;
989 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
990 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
991 cache_file=$ac_optarg ;;
994 cache_file=config.cache ;;
996 -datadir | --datadir | --datadi | --datad)
998 -datadir=* | --datadir=* | --datadi=* | --datad=*)
999 datadir=$ac_optarg ;;
1001 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1002 | --dataroo | --dataro | --datar)
1003 ac_prev=datarootdir ;;
1004 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1005 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1006 datarootdir=$ac_optarg ;;
1008 -disable-* | --disable-*)
1009 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1010 # Reject names that are not valid shell variable names.
1011 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1012 as_fn_error $? "invalid feature name: $ac_useropt"
1013 ac_useropt_orig=$ac_useropt
1014 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1015 case $ac_user_opts in
1017 "enable_$ac_useropt"
1019 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1020 ac_unrecognized_sep=', ';;
1022 eval enable_$ac_useropt=no ;;
1024 -docdir | --docdir | --docdi | --doc | --do)
1026 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1027 docdir=$ac_optarg ;;
1029 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1031 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1032 dvidir=$ac_optarg ;;
1034 -enable-* | --enable-*)
1035 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1036 # Reject names that are not valid shell variable names.
1037 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1038 as_fn_error $? "invalid feature name: $ac_useropt"
1039 ac_useropt_orig=$ac_useropt
1040 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1041 case $ac_user_opts in
1043 "enable_$ac_useropt"
1045 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1046 ac_unrecognized_sep=', ';;
1048 eval enable_$ac_useropt=\$ac_optarg ;;
1050 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1051 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1052 | --exec | --exe | --ex)
1053 ac_prev=exec_prefix ;;
1054 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1055 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1056 | --exec=* | --exe=* | --ex=*)
1057 exec_prefix=$ac_optarg ;;
1059 -gas | --gas | --ga | --g)
1060 # Obsolete; use --with-gas.
1063 -help | --help | --hel | --he | -h)
1064 ac_init_help=long ;;
1065 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1066 ac_init_help=recursive ;;
1067 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1068 ac_init_help=short ;;
1070 -host | --host | --hos | --ho)
1071 ac_prev=host_alias ;;
1072 -host=* | --host=* | --hos=* | --ho=*)
1073 host_alias=$ac_optarg ;;
1075 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1077 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1079 htmldir=$ac_optarg ;;
1081 -includedir | --includedir | --includedi | --included | --include \
1082 | --includ | --inclu | --incl | --inc)
1083 ac_prev=includedir ;;
1084 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1085 | --includ=* | --inclu=* | --incl=* | --inc=*)
1086 includedir=$ac_optarg ;;
1088 -infodir | --infodir | --infodi | --infod | --info | --inf)
1090 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1091 infodir=$ac_optarg ;;
1093 -libdir | --libdir | --libdi | --libd)
1095 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1096 libdir=$ac_optarg ;;
1098 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1099 | --libexe | --libex | --libe)
1100 ac_prev=libexecdir ;;
1101 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1102 | --libexe=* | --libex=* | --libe=*)
1103 libexecdir=$ac_optarg ;;
1105 -localedir | --localedir | --localedi | --localed | --locale)
1106 ac_prev=localedir ;;
1107 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1108 localedir=$ac_optarg ;;
1110 -localstatedir | --localstatedir | --localstatedi | --localstated \
1111 | --localstate | --localstat | --localsta | --localst | --locals)
1112 ac_prev=localstatedir ;;
1113 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1114 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1115 localstatedir=$ac_optarg ;;
1117 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1119 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1120 mandir=$ac_optarg ;;
1122 -nfp | --nfp | --nf)
1123 # Obsolete; use --without-fp.
1126 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1127 | --no-cr | --no-c | -n)
1130 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1131 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1134 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1135 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1136 | --oldin | --oldi | --old | --ol | --o)
1137 ac_prev=oldincludedir ;;
1138 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1139 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1140 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1141 oldincludedir=$ac_optarg ;;
1143 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1145 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1146 prefix=$ac_optarg ;;
1148 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1149 | --program-pre | --program-pr | --program-p)
1150 ac_prev=program_prefix ;;
1151 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1152 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1153 program_prefix=$ac_optarg ;;
1155 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1156 | --program-suf | --program-su | --program-s)
1157 ac_prev=program_suffix ;;
1158 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1159 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1160 program_suffix=$ac_optarg ;;
1162 -program-transform-name | --program-transform-name \
1163 | --program-transform-nam | --program-transform-na \
1164 | --program-transform-n | --program-transform- \
1165 | --program-transform | --program-transfor \
1166 | --program-transfo | --program-transf \
1167 | --program-trans | --program-tran \
1168 | --progr-tra | --program-tr | --program-t)
1169 ac_prev=program_transform_name ;;
1170 -program-transform-name=* | --program-transform-name=* \
1171 | --program-transform-nam=* | --program-transform-na=* \
1172 | --program-transform-n=* | --program-transform-=* \
1173 | --program-transform=* | --program-transfor=* \
1174 | --program-transfo=* | --program-transf=* \
1175 | --program-trans=* | --program-tran=* \
1176 | --progr-tra=* | --program-tr=* | --program-t=*)
1177 program_transform_name=$ac_optarg ;;
1179 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1181 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1182 pdfdir=$ac_optarg ;;
1184 -psdir | --psdir | --psdi | --psd | --ps)
1186 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1189 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1190 | -silent | --silent | --silen | --sile | --sil)
1193 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1195 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1197 sbindir=$ac_optarg ;;
1199 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1200 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1201 | --sharedst | --shareds | --shared | --share | --shar \
1203 ac_prev=sharedstatedir ;;
1204 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1205 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1206 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1208 sharedstatedir=$ac_optarg ;;
1210 -site | --site | --sit)
1212 -site=* | --site=* | --sit=*)
1215 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1217 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1218 srcdir=$ac_optarg ;;
1220 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1221 | --syscon | --sysco | --sysc | --sys | --sy)
1222 ac_prev=sysconfdir ;;
1223 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1224 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1225 sysconfdir=$ac_optarg ;;
1227 -target | --target | --targe | --targ | --tar | --ta | --t)
1228 ac_prev=target_alias ;;
1229 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1230 target_alias=$ac_optarg ;;
1232 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1235 -version | --version | --versio | --versi | --vers | -V)
1236 ac_init_version=: ;;
1239 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1240 # Reject names that are not valid shell variable names.
1241 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1242 as_fn_error $? "invalid package name: $ac_useropt"
1243 ac_useropt_orig=$ac_useropt
1244 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1245 case $ac_user_opts in
1249 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1250 ac_unrecognized_sep=', ';;
1252 eval with_$ac_useropt=\$ac_optarg ;;
1254 -without-* | --without-*)
1255 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1256 # Reject names that are not valid shell variable names.
1257 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1258 as_fn_error $? "invalid package name: $ac_useropt"
1259 ac_useropt_orig=$ac_useropt
1260 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1261 case $ac_user_opts in
1265 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1266 ac_unrecognized_sep=', ';;
1268 eval with_$ac_useropt=no ;;
1271 # Obsolete; use --with-x.
1274 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1275 | --x-incl | --x-inc | --x-in | --x-i)
1276 ac_prev=x_includes ;;
1277 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1278 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1279 x_includes=$ac_optarg ;;
1281 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1282 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1283 ac_prev=x_libraries ;;
1284 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1285 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1286 x_libraries=$ac_optarg ;;
1288 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1289 Try \`$0 --help' for more information"
1293 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1294 # Reject names that are not valid shell variable names.
1295 case $ac_envvar in #(
1296 '' | [0-9]* | *[!_$as_cr_alnum]* )
1297 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1299 eval $ac_envvar=\$ac_optarg
1300 export $ac_envvar ;;
1303 # FIXME: should be removed in autoconf 3.0.
1304 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1305 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1306 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1307 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1313 if test -n "$ac_prev"; then
1314 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1315 as_fn_error $? "missing argument to $ac_option"
1318 if test -n "$ac_unrecognized_opts"; then
1319 case $enable_option_checking in
1321 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1322 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1326 # Check all directory arguments for consistency.
1327 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1328 datadir sysconfdir sharedstatedir localstatedir includedir \
1329 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1330 libdir localedir mandir
1332 eval ac_val=\$$ac_var
1333 # Remove trailing slashes.
1336 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1337 eval $ac_var=\$ac_val;;
1339 # Be sure to have absolute directory names.
1341 [\\/$]* | ?:[\\/]* ) continue;;
1342 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1344 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1347 # There might be people who depend on the old broken behavior: `$host'
1348 # used to hold the argument of --host etc.
1349 # FIXME: To remove some day.
1352 target=$target_alias
1354 # FIXME: To remove some day.
1355 if test "x$host_alias" != x; then
1356 if test "x$build_alias" = x; then
1357 cross_compiling=maybe
1358 elif test "x$build_alias" != "x$host_alias"; then
1364 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1366 test "$silent" = yes && exec 6>/dev/null
1369 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1370 ac_ls_di=`ls -di .` &&
1371 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1372 as_fn_error $? "working directory cannot be determined"
1373 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1374 as_fn_error $? "pwd does not report name of working directory"
1377 # Find the source files, if location was not specified.
1378 if test -z "$srcdir"; then
1379 ac_srcdir_defaulted=yes
1380 # Try the directory containing this script, then the parent directory.
1381 ac_confdir=`$as_dirname -- "$as_myself" ||
1382 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1383 X"$as_myself" : 'X\(//\)[^/]' \| \
1384 X"$as_myself" : 'X\(//\)$' \| \
1385 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1386 $as_echo X"$as_myself" |
1387 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1405 if test ! -r "$srcdir/$ac_unique_file"; then
1409 ac_srcdir_defaulted=no
1411 if test ! -r "$srcdir/$ac_unique_file"; then
1412 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1413 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1415 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1417 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1419 # When building in place, set srcdir=.
1420 if test "$ac_abs_confdir" = "$ac_pwd"; then
1423 # Remove unnecessary trailing slashes from srcdir.
1424 # Double slashes in file names in object file debugging info
1425 # mess up M-x gdb in Emacs.
1427 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1429 for ac_var in $ac_precious_vars; do
1430 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1431 eval ac_env_${ac_var}_value=\$${ac_var}
1432 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1433 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1437 # Report the --help message.
1439 if test "$ac_init_help" = "long"; then
1440 # Omit some internal or obsolete options to make the list less imposing.
1441 # This message is too long to be a string in the A/UX 3.1 sh.
1443 \`configure' configures this package to adapt to many kinds of systems.
1445 Usage: $0 [OPTION]... [VAR=VALUE]...
1447 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1448 VAR=VALUE. See below for descriptions of some of the useful variables.
1450 Defaults for the options are specified in brackets.
1453 -h, --help display this help and exit
1454 --help=short display options specific to this package
1455 --help=recursive display the short help of all the included packages
1456 -V, --version display version information and exit
1457 -q, --quiet, --silent do not print \`checking ...' messages
1458 --cache-file=FILE cache test results in FILE [disabled]
1459 -C, --config-cache alias for \`--cache-file=config.cache'
1460 -n, --no-create do not create output files
1461 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1463 Installation directories:
1464 --prefix=PREFIX install architecture-independent files in PREFIX
1465 [$ac_default_prefix]
1466 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1469 By default, \`make install' will install all the files in
1470 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1471 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1472 for instance \`--prefix=\$HOME'.
1474 For better control, use the options below.
1476 Fine tuning of the installation directories:
1477 --bindir=DIR user executables [EPREFIX/bin]
1478 --sbindir=DIR system admin executables [EPREFIX/sbin]
1479 --libexecdir=DIR program executables [EPREFIX/libexec]
1480 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1481 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1482 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1483 --libdir=DIR object code libraries [EPREFIX/lib]
1484 --includedir=DIR C header files [PREFIX/include]
1485 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1486 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1487 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1488 --infodir=DIR info documentation [DATAROOTDIR/info]
1489 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1490 --mandir=DIR man documentation [DATAROOTDIR/man]
1491 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1492 --htmldir=DIR html documentation [DOCDIR]
1493 --dvidir=DIR dvi documentation [DOCDIR]
1494 --pdfdir=DIR pdf documentation [DOCDIR]
1495 --psdir=DIR ps documentation [DOCDIR]
1501 --build=BUILD configure for building on BUILD [guessed]
1502 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1506 if test -n "$ac_init_help"; then
1511 --disable-option-checking ignore unrecognized --enable/--with options
1512 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1513 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1514 --enable-maintainer-mode enable makefile rules useful for maintainers
1515 --enable-symlink-install use symlinks when installing instead of hard links
1516 --enable-relative-symlinks use relative symlinks when installing
1518 --enable-symlink-build use symlinks while building instead of hard links
1519 --enable-verbose-makecmds enable verbose make command output
1520 --enable-compression enable EXPERIMENTAL compression support
1521 --enable-htree enable EXPERIMENTAL htree directory support
1522 --enable-elf-shlibs select ELF shared libraries
1523 --enable-bsd-shlibs select BSD shared libraries
1524 --enable-profile build profiling libraries
1525 --enable-gcov build for coverage testing using gcov
1526 --enable-jbd-debug enable journal debugging
1527 --enable-blkid-debug enable blkid debugging
1528 --disable-testio-debug disable the use of the test I/O manager for debugging
1529 --disable-libuuid do not build private uuid library
1530 --disable-libblkid do not build private blkid library
1531 --enable-quota enable quota support
1532 --disable-backtrace disable use backtrace
1533 --disable-debugfs disable support of debugfs program
1534 --disable-imager disable support of e2image program
1535 --disable-resizer disable support of e2resize program
1536 --disable-defrag disable support of e4defrag program
1537 --enable-fsck build fsck wrapper program
1538 --enable-e2initrd-helper build e2initrd-helper program
1539 --disable-tls disable use of thread local support
1540 --disable-uuidd disable building the uuid daemon
1541 --disable-nls do not use Native Language Support
1542 --enable-threads={posix|solaris|pth|windows}
1543 specify multithreading API
1544 --disable-threads build without multithread safety
1545 --disable-rpath do not hardcode runtime library paths
1548 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1549 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1550 --with-diet-libc use diet libc
1551 --with-cc no longer supported, use CC= instead
1552 --with-ccopts no longer supported, use CFLAGS= instead
1553 --with-ldopts no longer supported, use LDFLAGS= instead
1554 --with-root-prefix=PREFIX override prefix variable for files to be placed in the root
1555 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1556 --with-libpth-prefix[=DIR] search for libpth in DIR/include and DIR/lib
1557 --without-libpth-prefix don't search for libpth in includedir and libdir
1558 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1559 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1560 --with-included-gettext use the GNU gettext library included here
1561 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1562 --without-libintl-prefix don't search for libintl in includedir and libdir
1563 --with-multiarch=ARCH specify the multiarch triplet
1565 Some influential environment variables:
1566 CC C compiler command
1567 CFLAGS C compiler flags
1568 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1569 nonstandard directory <lib dir>
1570 LIBS libraries to pass to the linker, e.g. -l<library>
1571 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1572 you have headers in a nonstandard directory <include dir>
1574 PKG_CONFIG path to pkg-config utility
1576 directories to add to pkg-config's search path
1578 path overriding pkg-config's built-in search path
1580 Use these variables to override the choices made by `configure' or to help
1581 it to find libraries and programs with nonstandard names/locations.
1583 Report bugs to the package provider.
1588 if test "$ac_init_help" = "recursive"; then
1589 # If there are subdirs, report their specific --help.
1590 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1591 test -d "$ac_dir" ||
1592 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1597 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1599 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1600 # A ".." for each directory in $ac_dir_suffix.
1601 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1602 case $ac_top_builddir_sub in
1603 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1604 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1607 ac_abs_top_builddir=$ac_pwd
1608 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1609 # for backward compatibility:
1610 ac_top_builddir=$ac_top_build_prefix
1613 .) # We are building in place.
1615 ac_top_srcdir=$ac_top_builddir_sub
1616 ac_abs_top_srcdir=$ac_pwd ;;
1617 [\\/]* | ?:[\\/]* ) # Absolute name.
1618 ac_srcdir=$srcdir$ac_dir_suffix;
1619 ac_top_srcdir=$srcdir
1620 ac_abs_top_srcdir=$srcdir ;;
1622 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1623 ac_top_srcdir=$ac_top_build_prefix$srcdir
1624 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1626 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1628 cd "$ac_dir" || { ac_status=$?; continue; }
1629 # Check for guested configure.
1630 if test -f "$ac_srcdir/configure.gnu"; then
1632 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1633 elif test -f "$ac_srcdir/configure"; then
1635 $SHELL "$ac_srcdir/configure" --help=recursive
1637 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1639 cd "$ac_pwd" || { ac_status=$?; break; }
1643 test -n "$ac_init_help" && exit $ac_status
1644 if $ac_init_version; then
1647 generated by GNU Autoconf 2.69
1649 Copyright (C) 2012 Free Software Foundation, Inc.
1650 This configure script is free software; the Free Software Foundation
1651 gives unlimited permission to copy, distribute and modify it.
1656 ## ------------------------ ##
1657 ## Autoconf initialization. ##
1658 ## ------------------------ ##
1660 # ac_fn_c_try_compile LINENO
1661 # --------------------------
1662 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1663 ac_fn_c_try_compile ()
1665 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1666 rm -f conftest.$ac_objext
1667 if { { ac_try="$ac_compile"
1669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1670 *) ac_try_echo=$ac_try;;
1672 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1673 $as_echo "$ac_try_echo"; } >&5
1674 (eval "$ac_compile") 2>conftest.err
1676 if test -s conftest.err; then
1677 grep -v '^ *+' conftest.err >conftest.er1
1678 cat conftest.er1 >&5
1679 mv -f conftest.er1 conftest.err
1681 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1682 test $ac_status = 0; } && {
1683 test -z "$ac_c_werror_flag" ||
1684 test ! -s conftest.err
1685 } && test -s conftest.$ac_objext; then :
1688 $as_echo "$as_me: failed program was:" >&5
1689 sed 's/^/| /' conftest.$ac_ext >&5
1693 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1694 as_fn_set_status $ac_retval
1696 } # ac_fn_c_try_compile
1698 # ac_fn_c_try_link LINENO
1699 # -----------------------
1700 # Try to link conftest.$ac_ext, and return whether this succeeded.
1703 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1704 rm -f conftest.$ac_objext conftest$ac_exeext
1705 if { { ac_try="$ac_link"
1707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1708 *) ac_try_echo=$ac_try;;
1710 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1711 $as_echo "$ac_try_echo"; } >&5
1712 (eval "$ac_link") 2>conftest.err
1714 if test -s conftest.err; then
1715 grep -v '^ *+' conftest.err >conftest.er1
1716 cat conftest.er1 >&5
1717 mv -f conftest.er1 conftest.err
1719 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1720 test $ac_status = 0; } && {
1721 test -z "$ac_c_werror_flag" ||
1722 test ! -s conftest.err
1723 } && test -s conftest$ac_exeext && {
1724 test "$cross_compiling" = yes ||
1725 test -x conftest$ac_exeext
1729 $as_echo "$as_me: failed program was:" >&5
1730 sed 's/^/| /' conftest.$ac_ext >&5
1734 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1735 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1736 # interfere with the next link command; also delete a directory that is
1737 # left behind by Apple's compiler. We do this before executing the actions.
1738 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1739 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1740 as_fn_set_status $ac_retval
1742 } # ac_fn_c_try_link
1744 # ac_fn_c_try_cpp LINENO
1745 # ----------------------
1746 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1749 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1750 if { { ac_try="$ac_cpp conftest.$ac_ext"
1752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1753 *) ac_try_echo=$ac_try;;
1755 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1756 $as_echo "$ac_try_echo"; } >&5
1757 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1759 if test -s conftest.err; then
1760 grep -v '^ *+' conftest.err >conftest.er1
1761 cat conftest.er1 >&5
1762 mv -f conftest.er1 conftest.err
1764 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1765 test $ac_status = 0; } > conftest.i && {
1766 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1767 test ! -s conftest.err
1771 $as_echo "$as_me: failed program was:" >&5
1772 sed 's/^/| /' conftest.$ac_ext >&5
1776 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1777 as_fn_set_status $ac_retval
1781 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1782 # -------------------------------------------------------
1783 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1784 # the include files in INCLUDES and setting the cache variable VAR
1786 ac_fn_c_check_header_mongrel ()
1788 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1789 if eval \${$3+:} false; then :
1790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1791 $as_echo_n "checking for $2... " >&6; }
1792 if eval \${$3+:} false; then :
1793 $as_echo_n "(cached) " >&6
1796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1797 $as_echo "$ac_res" >&6; }
1799 # Is the header compilable?
1800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1801 $as_echo_n "checking $2 usability... " >&6; }
1802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1803 /* end confdefs.h. */
1807 if ac_fn_c_try_compile "$LINENO"; then :
1808 ac_header_compiler=yes
1810 ac_header_compiler=no
1812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1814 $as_echo "$ac_header_compiler" >&6; }
1816 # Is the header present?
1817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1818 $as_echo_n "checking $2 presence... " >&6; }
1819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1820 /* end confdefs.h. */
1823 if ac_fn_c_try_cpp "$LINENO"; then :
1824 ac_header_preproc=yes
1826 ac_header_preproc=no
1828 rm -f conftest.err conftest.i conftest.$ac_ext
1829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1830 $as_echo "$ac_header_preproc" >&6; }
1832 # So? What about this header?
1833 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1835 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1836 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1837 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1838 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1841 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1842 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1843 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1844 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1845 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1846 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1847 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1848 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1849 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1850 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1854 $as_echo_n "checking for $2... " >&6; }
1855 if eval \${$3+:} false; then :
1856 $as_echo_n "(cached) " >&6
1858 eval "$3=\$ac_header_compiler"
1861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1862 $as_echo "$ac_res" >&6; }
1864 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1866 } # ac_fn_c_check_header_mongrel
1868 # ac_fn_c_try_run LINENO
1869 # ----------------------
1870 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1871 # that executables *can* be run.
1874 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1875 if { { ac_try="$ac_link"
1877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1878 *) ac_try_echo=$ac_try;;
1880 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1881 $as_echo "$ac_try_echo"; } >&5
1882 (eval "$ac_link") 2>&5
1884 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1885 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1886 { { case "(($ac_try" in
1887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1888 *) ac_try_echo=$ac_try;;
1890 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1891 $as_echo "$ac_try_echo"; } >&5
1892 (eval "$ac_try") 2>&5
1894 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1895 test $ac_status = 0; }; }; then :
1898 $as_echo "$as_me: program exited with status $ac_status" >&5
1899 $as_echo "$as_me: failed program was:" >&5
1900 sed 's/^/| /' conftest.$ac_ext >&5
1902 ac_retval=$ac_status
1904 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1905 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1906 as_fn_set_status $ac_retval
1910 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1911 # -------------------------------------------------------
1912 # Tests whether HEADER exists and can be compiled using the include files in
1913 # INCLUDES, setting the cache variable VAR accordingly.
1914 ac_fn_c_check_header_compile ()
1916 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1918 $as_echo_n "checking for $2... " >&6; }
1919 if eval \${$3+:} false; then :
1920 $as_echo_n "(cached) " >&6
1922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1923 /* end confdefs.h. */
1927 if ac_fn_c_try_compile "$LINENO"; then :
1932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1936 $as_echo "$ac_res" >&6; }
1937 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1939 } # ac_fn_c_check_header_compile
1941 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1942 # -------------------------------------------
1943 # Tests whether TYPE exists after having included INCLUDES, setting cache
1944 # variable VAR accordingly.
1945 ac_fn_c_check_type ()
1947 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1949 $as_echo_n "checking for $2... " >&6; }
1950 if eval \${$3+:} false; then :
1951 $as_echo_n "(cached) " >&6
1954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1955 /* end confdefs.h. */
1966 if ac_fn_c_try_compile "$LINENO"; then :
1967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1968 /* end confdefs.h. */
1979 if ac_fn_c_try_compile "$LINENO"; then :
1984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1990 $as_echo "$ac_res" >&6; }
1991 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1993 } # ac_fn_c_check_type
1995 # ac_fn_c_check_func LINENO FUNC VAR
1996 # ----------------------------------
1997 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1998 ac_fn_c_check_func ()
2000 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2002 $as_echo_n "checking for $2... " >&6; }
2003 if eval \${$3+:} false; then :
2004 $as_echo_n "(cached) " >&6
2006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2007 /* end confdefs.h. */
2008 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2009 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2010 #define $2 innocuous_$2
2012 /* System header to define __stub macros and hopefully few prototypes,
2013 which can conflict with char $2 (); below.
2014 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2015 <limits.h> exists even on freestanding compilers. */
2018 # include <limits.h>
2020 # include <assert.h>
2025 /* Override any GCC internal prototype to avoid an error.
2026 Use char because int might match the return type of a GCC
2027 builtin and then its argument prototype would still apply. */
2032 /* The GNU C library defines this for functions which it implements
2033 to always fail with ENOSYS. Some functions are actually named
2034 something starting with __ and the normal name is an alias. */
2035 #if defined __stub_$2 || defined __stub___$2
2047 if ac_fn_c_try_link "$LINENO"; then :
2052 rm -f core conftest.err conftest.$ac_objext \
2053 conftest$ac_exeext conftest.$ac_ext
2056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2057 $as_echo "$ac_res" >&6; }
2058 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2060 } # ac_fn_c_check_func
2062 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2063 # ---------------------------------------------
2064 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2066 ac_fn_c_check_decl ()
2068 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2069 as_decl_name=`echo $2|sed 's/ *(.*//'`
2070 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2072 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2073 if eval \${$3+:} false; then :
2074 $as_echo_n "(cached) " >&6
2076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2077 /* end confdefs.h. */
2082 #ifndef $as_decl_name
2084 (void) $as_decl_use;
2086 (void) $as_decl_name;
2094 if ac_fn_c_try_compile "$LINENO"; then :
2099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2103 $as_echo "$ac_res" >&6; }
2104 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2106 } # ac_fn_c_check_decl
2108 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2109 # --------------------------------------------
2110 # Tries to find the compile-time value of EXPR in a program that includes
2111 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2113 ac_fn_c_compute_int ()
2115 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2116 if test "$cross_compiling" = yes; then
2117 # Depending upon the size, compute the lo and hi bounds.
2118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2119 /* end confdefs.h. */
2124 static int test_array [1 - 2 * !(($2) >= 0)];
2126 return test_array [0];
2132 if ac_fn_c_try_compile "$LINENO"; then :
2135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2136 /* end confdefs.h. */
2141 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2143 return test_array [0];
2149 if ac_fn_c_try_compile "$LINENO"; then :
2150 ac_hi=$ac_mid; break
2152 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2153 if test $ac_lo -le $ac_mid; then
2157 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2163 /* end confdefs.h. */
2168 static int test_array [1 - 2 * !(($2) < 0)];
2170 return test_array [0];
2176 if ac_fn_c_try_compile "$LINENO"; then :
2179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2180 /* end confdefs.h. */
2185 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2187 return test_array [0];
2193 if ac_fn_c_try_compile "$LINENO"; then :
2194 ac_lo=$ac_mid; break
2196 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2197 if test $ac_mid -le $ac_hi; then
2201 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2211 # Binary search between lo and hi bounds.
2212 while test "x$ac_lo" != "x$ac_hi"; do
2213 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2215 /* end confdefs.h. */
2220 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2222 return test_array [0];
2228 if ac_fn_c_try_compile "$LINENO"; then :
2231 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2236 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2241 /* end confdefs.h. */
2243 static long int longval () { return $2; }
2244 static unsigned long int ulongval () { return $2; }
2251 FILE *f = fopen ("conftest.val", "w");
2256 long int i = longval ();
2259 fprintf (f, "%ld", i);
2263 unsigned long int i = ulongval ();
2266 fprintf (f, "%lu", i);
2268 /* Do not output a trailing newline, as this causes \r\n confusion
2269 on some platforms. */
2270 return ferror (f) || fclose (f) != 0;
2276 if ac_fn_c_try_run "$LINENO"; then :
2277 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2281 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2282 conftest.$ac_objext conftest.beam conftest.$ac_ext
2286 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2287 as_fn_set_status $ac_retval
2289 } # ac_fn_c_compute_int
2291 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2292 # ----------------------------------------------------
2293 # Tries to find if the field MEMBER exists in type AGGR, after including
2294 # INCLUDES, setting cache variable VAR accordingly.
2295 ac_fn_c_check_member ()
2297 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2299 $as_echo_n "checking for $2.$3... " >&6; }
2300 if eval \${$4+:} false; then :
2301 $as_echo_n "(cached) " >&6
2303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2304 /* end confdefs.h. */
2316 if ac_fn_c_try_compile "$LINENO"; then :
2319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2320 /* end confdefs.h. */
2326 if (sizeof ac_aggr.$3)
2332 if ac_fn_c_try_compile "$LINENO"; then :
2337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2343 $as_echo "$ac_res" >&6; }
2344 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2346 } # ac_fn_c_check_member
2347 cat >config.log <<_ACEOF
2348 This file contains any messages produced by compilers while
2349 running configure, to aid debugging if configure makes a mistake.
2351 It was created by $as_me, which was
2352 generated by GNU Autoconf 2.69. Invocation command line was
2364 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2365 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2366 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2367 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2368 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2370 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2371 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2373 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2374 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2375 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2376 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2377 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2378 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2379 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2387 test -z "$as_dir" && as_dir=.
2388 $as_echo "PATH: $as_dir"
2404 # Keep a trace of the command line.
2405 # Strip out --no-create and --no-recursion so they do not pile up.
2406 # Strip out --silent because we don't want to record it for future runs.
2407 # Also quote any args containing shell meta-characters.
2408 # Make two passes to allow for proper duplicate-argument suppression.
2412 ac_must_keep_next=false
2418 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2419 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2420 | -silent | --silent | --silen | --sile | --sil)
2423 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2426 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2428 as_fn_append ac_configure_args1 " '$ac_arg'"
2429 if test $ac_must_keep_next = true; then
2430 ac_must_keep_next=false # Got value, back to normal.
2433 *=* | --config-cache | -C | -disable-* | --disable-* \
2434 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2435 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2436 | -with-* | --with-* | -without-* | --without-* | --x)
2437 case "$ac_configure_args0 " in
2438 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2441 -* ) ac_must_keep_next=true ;;
2444 as_fn_append ac_configure_args " '$ac_arg'"
2449 { ac_configure_args0=; unset ac_configure_args0;}
2450 { ac_configure_args1=; unset ac_configure_args1;}
2452 # When interrupted or exit'd, cleanup temporary files, and complete
2453 # config.log. We remove comments because anyway the quotes in there
2454 # would cause problems or look ugly.
2455 # WARNING: Use '\'' to represent an apostrophe within the trap.
2456 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2457 trap 'exit_status=$?
2458 # Save into config.log some information that might help in debugging.
2462 $as_echo "## ---------------- ##
2463 ## Cache variables. ##
2464 ## ---------------- ##"
2466 # The following way of writing the cache mishandles newlines in values,
2468 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2469 eval ac_val=\$$ac_var
2473 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2474 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2477 _ | IFS | as_nl) ;; #(
2478 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2479 *) { eval $ac_var=; unset $ac_var;} ;;
2484 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2485 *${as_nl}ac_space=\ *)
2487 "s/'\''/'\''\\\\'\'''\''/g;
2488 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2491 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2498 $as_echo "## ----------------- ##
2499 ## Output variables. ##
2500 ## ----------------- ##"
2502 for ac_var in $ac_subst_vars
2504 eval ac_val=\$$ac_var
2506 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2508 $as_echo "$ac_var='\''$ac_val'\''"
2512 if test -n "$ac_subst_files"; then
2513 $as_echo "## ------------------- ##
2514 ## File substitutions. ##
2515 ## ------------------- ##"
2517 for ac_var in $ac_subst_files
2519 eval ac_val=\$$ac_var
2521 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2523 $as_echo "$ac_var='\''$ac_val'\''"
2528 if test -s confdefs.h; then
2529 $as_echo "## ----------- ##
2536 test "$ac_signal" != 0 &&
2537 $as_echo "$as_me: caught signal $ac_signal"
2538 $as_echo "$as_me: exit $exit_status"
2540 rm -f core *.core core.conftest.* &&
2541 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2544 for ac_signal in 1 2 13 15; do
2545 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2549 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2550 rm -f -r conftest* confdefs.h
2552 $as_echo "/* confdefs.h */" > confdefs.h
2554 # Predefined preprocessor variables.
2556 cat >>confdefs.h <<_ACEOF
2557 #define PACKAGE_NAME "$PACKAGE_NAME"
2560 cat >>confdefs.h <<_ACEOF
2561 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2564 cat >>confdefs.h <<_ACEOF
2565 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2568 cat >>confdefs.h <<_ACEOF
2569 #define PACKAGE_STRING "$PACKAGE_STRING"
2572 cat >>confdefs.h <<_ACEOF
2573 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2576 cat >>confdefs.h <<_ACEOF
2577 #define PACKAGE_URL "$PACKAGE_URL"
2581 # Let the site file select an alternate cache file if it wants to.
2582 # Prefer an explicitly selected file to automatically selected ones.
2585 if test -n "$CONFIG_SITE"; then
2586 # We do not want a PATH search for config.site.
2587 case $CONFIG_SITE in #((
2588 -*) ac_site_file1=./$CONFIG_SITE;;
2589 */*) ac_site_file1=$CONFIG_SITE;;
2590 *) ac_site_file1=./$CONFIG_SITE;;
2592 elif test "x$prefix" != xNONE; then
2593 ac_site_file1=$prefix/share/config.site
2594 ac_site_file2=$prefix/etc/config.site
2596 ac_site_file1=$ac_default_prefix/share/config.site
2597 ac_site_file2=$ac_default_prefix/etc/config.site
2599 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2601 test "x$ac_site_file" = xNONE && continue
2602 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2603 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2604 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2605 sed 's/^/| /' "$ac_site_file" >&5
2607 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2608 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2609 as_fn_error $? "failed to load site script $ac_site_file
2610 See \`config.log' for more details" "$LINENO" 5; }
2614 if test -r "$cache_file"; then
2615 # Some versions of bash will fail to source /dev/null (special files
2616 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2617 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2618 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2619 $as_echo "$as_me: loading cache $cache_file" >&6;}
2621 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2622 *) . "./$cache_file";;
2626 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2627 $as_echo "$as_me: creating cache $cache_file" >&6;}
2631 gt_needs="$gt_needs "
2632 as_fn_append ac_header_list " stdlib.h"
2633 as_fn_append ac_header_list " unistd.h"
2634 as_fn_append ac_header_list " sys/param.h"
2635 as_fn_append ac_func_list " symlink"
2636 # Check that the precious variables saved in the cache have kept the same
2638 ac_cache_corrupted=false
2639 for ac_var in $ac_precious_vars; do
2640 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2641 eval ac_new_set=\$ac_env_${ac_var}_set
2642 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2643 eval ac_new_val=\$ac_env_${ac_var}_value
2644 case $ac_old_set,$ac_new_set in
2646 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2647 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2648 ac_cache_corrupted=: ;;
2650 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2651 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2652 ac_cache_corrupted=: ;;
2655 if test "x$ac_old_val" != "x$ac_new_val"; then
2656 # differences in whitespace do not lead to failure.
2657 ac_old_val_w=`echo x $ac_old_val`
2658 ac_new_val_w=`echo x $ac_new_val`
2659 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2660 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2661 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2662 ac_cache_corrupted=:
2664 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2665 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2666 eval $ac_var=\$ac_old_val
2668 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2669 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2670 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2671 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2674 # Pass precious variables to config.status.
2675 if test "$ac_new_set" = set; then
2677 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2678 *) ac_arg=$ac_var=$ac_new_val ;;
2680 case " $ac_configure_args " in
2681 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2682 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2686 if $ac_cache_corrupted; then
2687 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2688 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2689 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2690 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2691 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2693 ## -------------------- ##
2694 ## Main body of script. ##
2695 ## -------------------- ##
2698 ac_cpp='$CPP $CPPFLAGS'
2699 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2700 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2701 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2706 for ac_dir in config "$srcdir"/config; do
2707 if test -f "$ac_dir/install-sh"; then
2709 ac_install_sh="$ac_aux_dir/install-sh -c"
2711 elif test -f "$ac_dir/install.sh"; then
2713 ac_install_sh="$ac_aux_dir/install.sh -c"
2715 elif test -f "$ac_dir/shtool"; then
2717 ac_install_sh="$ac_aux_dir/shtool install -c"
2721 if test -z "$ac_aux_dir"; then
2722 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2725 # These three variables are undocumented and unsupported,
2726 # and are intended to be withdrawn in a future Autoconf release.
2727 # They can cause serious problems if a builder's source tree is in a directory
2728 # whose full name contains unusual characters.
2729 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2730 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2731 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2734 ac_config_headers="$ac_config_headers lib/config.h"
2740 E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \
2741 | awk '{print $3}' | tr \" " " | awk '{print $1}'`
2742 DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
2744 E2FSPROGS_DAY=`echo $DATE | awk -F- '{print $1}'`
2745 MONTH=`echo $DATE | awk -F- '{print $2}'`
2746 YEAR=`echo $DATE | awk -F- '{print $3}'`
2748 if expr $YEAR ">" 1900 > /dev/null ; then
2749 E2FSPROGS_YEAR=$YEAR
2750 elif expr $YEAR ">" 90 >/dev/null ; then
2751 E2FSPROGS_YEAR=19$YEAR
2753 E2FSPROGS_YEAR=20$YEAR
2757 Jan) MONTH_NUM=01; E2FSPROGS_MONTH="January" ;;
2758 Feb) MONTH_NUM=02; E2FSPROGS_MONTH="February" ;;
2759 Mar) MONTH_NUM=03; E2FSPROGS_MONTH="March" ;;
2760 Apr) MONTH_NUM=04; E2FSPROGS_MONTH="April" ;;
2761 May) MONTH_NUM=05; E2FSPROGS_MONTH="May" ;;
2762 Jun) MONTH_NUM=06; E2FSPROGS_MONTH="June" ;;
2763 Jul) MONTH_NUM=07; E2FSPROGS_MONTH="July" ;;
2764 Aug) MONTH_NUM=08; E2FSPROGS_MONTH="August" ;;
2765 Sep) MONTH_NUM=09; E2FSPROGS_MONTH="September" ;;
2766 Oct) MONTH_NUM=10; E2FSPROGS_MONTH="October" ;;
2767 Nov) MONTH_NUM=11; E2FSPROGS_MONTH="November" ;;
2768 Dec) MONTH_NUM=12; E2FSPROGS_MONTH="December" ;;
2769 *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unknown month $MONTH??" >&5
2770 $as_echo "$as_me: WARNING: Unknown month $MONTH??" >&2;} ;;
2773 base_ver=`echo $E2FSPROGS_VERSION | \
2774 sed -e 's/-WIP//' -e 's/pre-//' -e 's/-PLUS//'`
2776 date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY}
2778 case $E2FSPROGS_VERSION in
2780 E2FSPROGS_PKGVER="$base_ver~WIP-$E2FSPROGS_YEAR-$MONTH_NUM-$E2FSPROGS_DAY"
2783 E2FSPROGS_PKGVER="$base_ver"
2787 unset DATE MONTH YEAR base_ver pre_vers date_spec
2788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&5
2789 $as_echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&6; }
2790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&5
2791 $as_echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&6; }
2799 # Check whether --with-diet-libc was given.
2800 if test "${with_diet_libc+set}" = set; then :
2801 withval=$with_diet_libc; CC="diet cc -nostdinc"
2807 LIBS="$LIBS -lcompat"
2809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: CC=$CC" >&5
2810 $as_echo "CC=$CC" >&6; }
2812 # Make sure we can run config.sub.
2813 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2814 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2817 $as_echo_n "checking build system type... " >&6; }
2818 if ${ac_cv_build+:} false; then :
2819 $as_echo_n "(cached) " >&6
2821 ac_build_alias=$build_alias
2822 test "x$ac_build_alias" = x &&
2823 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2824 test "x$ac_build_alias" = x &&
2825 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2826 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2827 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2831 $as_echo "$ac_cv_build" >&6; }
2832 case $ac_cv_build in
2834 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2837 ac_save_IFS=$IFS; IFS='-'
2843 # Remember, the first character of IFS is used to create $*,
2844 # except with old shells:
2847 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2851 $as_echo_n "checking host system type... " >&6; }
2852 if ${ac_cv_host+:} false; then :
2853 $as_echo_n "(cached) " >&6
2855 if test "x$host_alias" = x; then
2856 ac_cv_host=$ac_cv_build
2858 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2859 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2864 $as_echo "$ac_cv_host" >&6; }
2867 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2870 ac_save_IFS=$IFS; IFS='-'
2876 # Remember, the first character of IFS is used to create $*,
2877 # except with old shells:
2880 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2885 ac_cpp='$CPP $CPPFLAGS'
2886 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2887 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2888 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2889 if test -n "$ac_tool_prefix"; then
2890 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2891 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2893 $as_echo_n "checking for $ac_word... " >&6; }
2894 if ${ac_cv_prog_CC+:} false; then :
2895 $as_echo_n "(cached) " >&6
2897 if test -n "$CC"; then
2898 ac_cv_prog_CC="$CC" # Let the user override the test.
2900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2904 test -z "$as_dir" && as_dir=.
2905 for ac_exec_ext in '' $ac_executable_extensions; do
2906 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2907 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2908 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2918 if test -n "$CC"; then
2919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2920 $as_echo "$CC" >&6; }
2922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2923 $as_echo "no" >&6; }
2928 if test -z "$ac_cv_prog_CC"; then
2930 # Extract the first word of "gcc", so it can be a program name with args.
2931 set dummy gcc; ac_word=$2
2932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2933 $as_echo_n "checking for $ac_word... " >&6; }
2934 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2935 $as_echo_n "(cached) " >&6
2937 if test -n "$ac_ct_CC"; then
2938 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2944 test -z "$as_dir" && as_dir=.
2945 for ac_exec_ext in '' $ac_executable_extensions; do
2946 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2947 ac_cv_prog_ac_ct_CC="gcc"
2948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2957 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2958 if test -n "$ac_ct_CC"; then
2959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2960 $as_echo "$ac_ct_CC" >&6; }
2962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2963 $as_echo "no" >&6; }
2966 if test "x$ac_ct_CC" = x; then
2969 case $cross_compiling:$ac_tool_warned in
2971 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2972 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2973 ac_tool_warned=yes ;;
2981 if test -z "$CC"; then
2982 if test -n "$ac_tool_prefix"; then
2983 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2984 set dummy ${ac_tool_prefix}cc; ac_word=$2
2985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2986 $as_echo_n "checking for $ac_word... " >&6; }
2987 if ${ac_cv_prog_CC+:} false; then :
2988 $as_echo_n "(cached) " >&6
2990 if test -n "$CC"; then
2991 ac_cv_prog_CC="$CC" # Let the user override the test.
2993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2997 test -z "$as_dir" && as_dir=.
2998 for ac_exec_ext in '' $ac_executable_extensions; do
2999 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3000 ac_cv_prog_CC="${ac_tool_prefix}cc"
3001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3011 if test -n "$CC"; then
3012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3013 $as_echo "$CC" >&6; }
3015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3016 $as_echo "no" >&6; }
3022 if test -z "$CC"; then
3023 # Extract the first word of "cc", so it can be a program name with args.
3024 set dummy cc; ac_word=$2
3025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3026 $as_echo_n "checking for $ac_word... " >&6; }
3027 if ${ac_cv_prog_CC+:} false; then :
3028 $as_echo_n "(cached) " >&6
3030 if test -n "$CC"; then
3031 ac_cv_prog_CC="$CC" # Let the user override the test.
3034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3038 test -z "$as_dir" && as_dir=.
3039 for ac_exec_ext in '' $ac_executable_extensions; do
3040 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3041 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3042 ac_prog_rejected=yes
3046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3053 if test $ac_prog_rejected = yes; then
3054 # We found a bogon in the path, so make sure we never use it.
3055 set dummy $ac_cv_prog_CC
3057 if test $# != 0; then
3058 # We chose a different compiler from the bogus one.
3059 # However, it has the same basename, so the bogon will be chosen
3060 # first if we set CC to just the basename; use the full file name.
3062 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3068 if test -n "$CC"; then
3069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3070 $as_echo "$CC" >&6; }
3072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3073 $as_echo "no" >&6; }
3078 if test -z "$CC"; then
3079 if test -n "$ac_tool_prefix"; then
3080 for ac_prog in cl.exe
3082 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3083 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3085 $as_echo_n "checking for $ac_word... " >&6; }
3086 if ${ac_cv_prog_CC+:} false; then :
3087 $as_echo_n "(cached) " >&6
3089 if test -n "$CC"; then
3090 ac_cv_prog_CC="$CC" # Let the user override the test.
3092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3096 test -z "$as_dir" && as_dir=.
3097 for ac_exec_ext in '' $ac_executable_extensions; do
3098 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3099 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3100 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3110 if test -n "$CC"; then
3111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3112 $as_echo "$CC" >&6; }
3114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3115 $as_echo "no" >&6; }
3119 test -n "$CC" && break
3122 if test -z "$CC"; then
3124 for ac_prog in cl.exe
3126 # Extract the first word of "$ac_prog", so it can be a program name with args.
3127 set dummy $ac_prog; ac_word=$2
3128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3129 $as_echo_n "checking for $ac_word... " >&6; }
3130 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3131 $as_echo_n "(cached) " >&6
3133 if test -n "$ac_ct_CC"; then
3134 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3140 test -z "$as_dir" && as_dir=.
3141 for ac_exec_ext in '' $ac_executable_extensions; do
3142 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3143 ac_cv_prog_ac_ct_CC="$ac_prog"
3144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3153 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3154 if test -n "$ac_ct_CC"; then
3155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3156 $as_echo "$ac_ct_CC" >&6; }
3158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3159 $as_echo "no" >&6; }
3163 test -n "$ac_ct_CC" && break
3166 if test "x$ac_ct_CC" = x; then
3169 case $cross_compiling:$ac_tool_warned in
3171 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3172 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3173 ac_tool_warned=yes ;;
3182 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3183 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3184 as_fn_error $? "no acceptable C compiler found in \$PATH
3185 See \`config.log' for more details" "$LINENO" 5; }
3187 # Provide some information about the compiler.
3188 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3191 for ac_option in --version -v -V -qversion; do
3192 { { ac_try="$ac_compiler $ac_option >&5"
3194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3195 *) ac_try_echo=$ac_try;;
3197 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3198 $as_echo "$ac_try_echo"; } >&5
3199 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3201 if test -s conftest.err; then
3203 ... rest of stderr output deleted ...
3204 10q' conftest.err >conftest.er1
3205 cat conftest.er1 >&5
3207 rm -f conftest.er1 conftest.err
3208 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3209 test $ac_status = 0; }
3212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3213 /* end confdefs.h. */
3223 ac_clean_files_save=$ac_clean_files
3224 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3225 # Try to create an executable without -o first, disregard a.out.
3226 # It will help us diagnose broken compilers, and finding out an intuition
3228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3229 $as_echo_n "checking whether the C compiler works... " >&6; }
3230 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3232 # The possible output files:
3233 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3236 for ac_file in $ac_files
3239 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3240 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3245 if { { ac_try="$ac_link_default"
3247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3248 *) ac_try_echo=$ac_try;;
3250 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3251 $as_echo "$ac_try_echo"; } >&5
3252 (eval "$ac_link_default") 2>&5
3254 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3255 test $ac_status = 0; }; then :
3256 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3257 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3258 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3259 # so that the user can short-circuit this test for compilers unknown to
3261 for ac_file in $ac_files ''
3263 test -f "$ac_file" || continue
3265 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3268 # We found the default executable, but exeext='' is most
3272 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3274 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3276 # We set ac_cv_exeext here because the later test for it is not
3277 # safe: cross compilers may not add the suffix if given an `-o'
3278 # argument, so we may need to know it at that point already.
3279 # Even if this section looks crufty: it has the advantage of
3286 test "$ac_cv_exeext" = no && ac_cv_exeext=
3291 if test -z "$ac_file"; then :
3292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3293 $as_echo "no" >&6; }
3294 $as_echo "$as_me: failed program was:" >&5
3295 sed 's/^/| /' conftest.$ac_ext >&5
3297 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3298 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3299 as_fn_error 77 "C compiler cannot create executables
3300 See \`config.log' for more details" "$LINENO" 5; }
3302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3303 $as_echo "yes" >&6; }
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3306 $as_echo_n "checking for C compiler default output file name... " >&6; }
3307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3308 $as_echo "$ac_file" >&6; }
3309 ac_exeext=$ac_cv_exeext
3311 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3312 ac_clean_files=$ac_clean_files_save
3313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3314 $as_echo_n "checking for suffix of executables... " >&6; }
3315 if { { ac_try="$ac_link"
3317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3318 *) ac_try_echo=$ac_try;;
3320 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3321 $as_echo "$ac_try_echo"; } >&5
3322 (eval "$ac_link") 2>&5
3324 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3325 test $ac_status = 0; }; then :
3326 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3327 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3328 # work properly (i.e., refer to `conftest.exe'), while it won't with
3330 for ac_file in conftest.exe conftest conftest.*; do
3331 test -f "$ac_file" || continue
3333 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3334 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3340 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3341 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3342 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3343 See \`config.log' for more details" "$LINENO" 5; }
3345 rm -f conftest conftest$ac_cv_exeext
3346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3347 $as_echo "$ac_cv_exeext" >&6; }
3349 rm -f conftest.$ac_ext
3350 EXEEXT=$ac_cv_exeext
3352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3353 /* end confdefs.h. */
3358 FILE *f = fopen ("conftest.out", "w");
3359 return ferror (f) || fclose (f) != 0;
3365 ac_clean_files="$ac_clean_files conftest.out"
3366 # Check that the compiler produces executables we can run. If not, either
3367 # the compiler is broken, or we cross compile.
3368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3369 $as_echo_n "checking whether we are cross compiling... " >&6; }
3370 if test "$cross_compiling" != yes; then
3371 { { ac_try="$ac_link"
3373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3374 *) ac_try_echo=$ac_try;;
3376 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3377 $as_echo "$ac_try_echo"; } >&5
3378 (eval "$ac_link") 2>&5
3380 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3381 test $ac_status = 0; }
3382 if { ac_try='./conftest$ac_cv_exeext'
3383 { { case "(($ac_try" in
3384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3385 *) ac_try_echo=$ac_try;;
3387 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3388 $as_echo "$ac_try_echo"; } >&5
3389 (eval "$ac_try") 2>&5
3391 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3392 test $ac_status = 0; }; }; then
3395 if test "$cross_compiling" = maybe; then
3398 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3399 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3400 as_fn_error $? "cannot run C compiled programs.
3401 If you meant to cross compile, use \`--host'.
3402 See \`config.log' for more details" "$LINENO" 5; }
3406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3407 $as_echo "$cross_compiling" >&6; }
3409 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3410 ac_clean_files=$ac_clean_files_save
3411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3412 $as_echo_n "checking for suffix of object files... " >&6; }
3413 if ${ac_cv_objext+:} false; then :
3414 $as_echo_n "(cached) " >&6
3416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3417 /* end confdefs.h. */
3427 rm -f conftest.o conftest.obj
3428 if { { ac_try="$ac_compile"
3430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3431 *) ac_try_echo=$ac_try;;
3433 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3434 $as_echo "$ac_try_echo"; } >&5
3435 (eval "$ac_compile") 2>&5
3437 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3438 test $ac_status = 0; }; then :
3439 for ac_file in conftest.o conftest.obj conftest.*; do
3440 test -f "$ac_file" || continue;
3442 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3443 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3448 $as_echo "$as_me: failed program was:" >&5
3449 sed 's/^/| /' conftest.$ac_ext >&5
3451 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3452 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3453 as_fn_error $? "cannot compute suffix of object files: cannot compile
3454 See \`config.log' for more details" "$LINENO" 5; }
3456 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3459 $as_echo "$ac_cv_objext" >&6; }
3460 OBJEXT=$ac_cv_objext
3462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3463 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3464 if ${ac_cv_c_compiler_gnu+:} false; then :
3465 $as_echo_n "(cached) " >&6
3467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3468 /* end confdefs.h. */
3481 if ac_fn_c_try_compile "$LINENO"; then :
3486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3487 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3491 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3492 if test $ac_compiler_gnu = yes; then
3497 ac_test_CFLAGS=${CFLAGS+set}
3498 ac_save_CFLAGS=$CFLAGS
3499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3500 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3501 if ${ac_cv_prog_cc_g+:} false; then :
3502 $as_echo_n "(cached) " >&6
3504 ac_save_c_werror_flag=$ac_c_werror_flag
3505 ac_c_werror_flag=yes
3508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3509 /* end confdefs.h. */
3519 if ac_fn_c_try_compile "$LINENO"; then :
3523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3524 /* end confdefs.h. */
3534 if ac_fn_c_try_compile "$LINENO"; then :
3537 ac_c_werror_flag=$ac_save_c_werror_flag
3539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3540 /* end confdefs.h. */
3550 if ac_fn_c_try_compile "$LINENO"; then :
3553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3558 ac_c_werror_flag=$ac_save_c_werror_flag
3560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3561 $as_echo "$ac_cv_prog_cc_g" >&6; }
3562 if test "$ac_test_CFLAGS" = set; then
3563 CFLAGS=$ac_save_CFLAGS
3564 elif test $ac_cv_prog_cc_g = yes; then
3565 if test "$GCC" = yes; then
3571 if test "$GCC" = yes; then
3577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3578 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3579 if ${ac_cv_prog_cc_c89+:} false; then :
3580 $as_echo_n "(cached) " >&6
3582 ac_cv_prog_cc_c89=no
3584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3585 /* end confdefs.h. */
3589 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3590 struct buf { int x; };
3591 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3592 static char *e (p, i)
3598 static char *f (char * (*g) (char **, int), char **p, ...)
3603 s = g (p, va_arg (v,int));
3608 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3609 function prototypes and stuff, but not '\xHH' hex character constants.
3610 These don't provoke an error unfortunately, instead are silently treated
3611 as 'x'. The following induces an error, until -std is added to get
3612 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3613 array size at least. It's necessary to write '\x00'==0 to get something
3614 that's true only with -std. */
3615 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3617 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3618 inside strings and character constants. */
3620 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3622 int test (int i, double x);
3623 struct s1 {int (*f) (int a);};
3624 struct s2 {int (*f) (double a);};
3625 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3631 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3636 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3637 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3639 CC="$ac_save_CC $ac_arg"
3640 if ac_fn_c_try_compile "$LINENO"; then :
3641 ac_cv_prog_cc_c89=$ac_arg
3643 rm -f core conftest.err conftest.$ac_objext
3644 test "x$ac_cv_prog_cc_c89" != "xno" && break
3646 rm -f conftest.$ac_ext
3651 case "x$ac_cv_prog_cc_c89" in
3653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3654 $as_echo "none needed" >&6; } ;;
3656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3657 $as_echo "unsupported" >&6; } ;;
3659 CC="$CC $ac_cv_prog_cc_c89"
3660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3661 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3663 if test "x$ac_cv_prog_cc_c89" != xno; then :
3668 ac_cpp='$CPP $CPPFLAGS'
3669 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3670 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3671 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
3675 $as_echo_n "checking for dlopen in -ldl... " >&6; }
3676 if ${ac_cv_lib_dl_dlopen+:} false; then :
3677 $as_echo_n "(cached) " >&6
3679 ac_check_lib_save_LIBS=$LIBS
3681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3682 /* end confdefs.h. */
3684 /* Override any GCC internal prototype to avoid an error.
3685 Use char because int might match the return type of a GCC
3686 builtin and then its argument prototype would still apply. */
3699 if ac_fn_c_try_link "$LINENO"; then :
3700 ac_cv_lib_dl_dlopen=yes
3702 ac_cv_lib_dl_dlopen=no
3704 rm -f core conftest.err conftest.$ac_objext \
3705 conftest$ac_exeext conftest.$ac_ext
3706 LIBS=$ac_check_lib_save_LIBS
3708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
3709 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
3710 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
3713 $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
3719 # Check whether --with-cc was given.
3720 if test "${with_cc+set}" = set; then :
3721 withval=$with_cc; as_fn_error $? "--with-cc no longer supported; use CC= instead" "$LINENO" 5
3725 # Check whether --with-ccopts was given.
3726 if test "${with_ccopts+set}" = set; then :
3727 withval=$with_ccopts; as_fn_error $? "--with-ccopts no longer supported; use CFLAGS= instead" "$LINENO" 5
3731 # Check whether --with-ldopts was given.
3732 if test "${with_ldopts+set}" = set; then :
3733 withval=$with_ldopts; as_fn_error $? "--with-ldopts no longer supported; use LDFLAGS= instead" "$LINENO" 5
3737 ac_cpp='$CPP $CPPFLAGS'
3738 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3739 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3740 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3741 if test -n "$ac_tool_prefix"; then
3742 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3743 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3745 $as_echo_n "checking for $ac_word... " >&6; }
3746 if ${ac_cv_prog_CC+:} false; then :
3747 $as_echo_n "(cached) " >&6
3749 if test -n "$CC"; then
3750 ac_cv_prog_CC="$CC" # Let the user override the test.
3752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3756 test -z "$as_dir" && as_dir=.
3757 for ac_exec_ext in '' $ac_executable_extensions; do
3758 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3759 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3760 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3770 if test -n "$CC"; then
3771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3772 $as_echo "$CC" >&6; }
3774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3775 $as_echo "no" >&6; }
3780 if test -z "$ac_cv_prog_CC"; then
3782 # Extract the first word of "gcc", so it can be a program name with args.
3783 set dummy gcc; ac_word=$2
3784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3785 $as_echo_n "checking for $ac_word... " >&6; }
3786 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3787 $as_echo_n "(cached) " >&6
3789 if test -n "$ac_ct_CC"; then
3790 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3796 test -z "$as_dir" && as_dir=.
3797 for ac_exec_ext in '' $ac_executable_extensions; do
3798 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3799 ac_cv_prog_ac_ct_CC="gcc"
3800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3809 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3810 if test -n "$ac_ct_CC"; then
3811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3812 $as_echo "$ac_ct_CC" >&6; }
3814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3815 $as_echo "no" >&6; }
3818 if test "x$ac_ct_CC" = x; then
3821 case $cross_compiling:$ac_tool_warned in
3823 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3824 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3825 ac_tool_warned=yes ;;
3833 if test -z "$CC"; then
3834 if test -n "$ac_tool_prefix"; then
3835 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3836 set dummy ${ac_tool_prefix}cc; ac_word=$2
3837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3838 $as_echo_n "checking for $ac_word... " >&6; }
3839 if ${ac_cv_prog_CC+:} false; then :
3840 $as_echo_n "(cached) " >&6
3842 if test -n "$CC"; then
3843 ac_cv_prog_CC="$CC" # Let the user override the test.
3845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3849 test -z "$as_dir" && as_dir=.
3850 for ac_exec_ext in '' $ac_executable_extensions; do
3851 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3852 ac_cv_prog_CC="${ac_tool_prefix}cc"
3853 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3863 if test -n "$CC"; then
3864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3865 $as_echo "$CC" >&6; }
3867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3868 $as_echo "no" >&6; }
3874 if test -z "$CC"; then
3875 # Extract the first word of "cc", so it can be a program name with args.
3876 set dummy cc; ac_word=$2
3877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3878 $as_echo_n "checking for $ac_word... " >&6; }
3879 if ${ac_cv_prog_CC+:} false; then :
3880 $as_echo_n "(cached) " >&6
3882 if test -n "$CC"; then
3883 ac_cv_prog_CC="$CC" # Let the user override the test.
3886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3890 test -z "$as_dir" && as_dir=.
3891 for ac_exec_ext in '' $ac_executable_extensions; do
3892 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3893 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3894 ac_prog_rejected=yes
3898 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3905 if test $ac_prog_rejected = yes; then
3906 # We found a bogon in the path, so make sure we never use it.
3907 set dummy $ac_cv_prog_CC
3909 if test $# != 0; then
3910 # We chose a different compiler from the bogus one.
3911 # However, it has the same basename, so the bogon will be chosen
3912 # first if we set CC to just the basename; use the full file name.
3914 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3920 if test -n "$CC"; then
3921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3922 $as_echo "$CC" >&6; }
3924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3925 $as_echo "no" >&6; }
3930 if test -z "$CC"; then
3931 if test -n "$ac_tool_prefix"; then
3932 for ac_prog in cl.exe
3934 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3935 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3937 $as_echo_n "checking for $ac_word... " >&6; }
3938 if ${ac_cv_prog_CC+:} false; then :
3939 $as_echo_n "(cached) " >&6
3941 if test -n "$CC"; then
3942 ac_cv_prog_CC="$CC" # Let the user override the test.
3944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3948 test -z "$as_dir" && as_dir=.
3949 for ac_exec_ext in '' $ac_executable_extensions; do
3950 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3951 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3952 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3962 if test -n "$CC"; then
3963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3964 $as_echo "$CC" >&6; }
3966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3967 $as_echo "no" >&6; }
3971 test -n "$CC" && break
3974 if test -z "$CC"; then
3976 for ac_prog in cl.exe
3978 # Extract the first word of "$ac_prog", so it can be a program name with args.
3979 set dummy $ac_prog; ac_word=$2
3980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3981 $as_echo_n "checking for $ac_word... " >&6; }
3982 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3983 $as_echo_n "(cached) " >&6
3985 if test -n "$ac_ct_CC"; then
3986 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3992 test -z "$as_dir" && as_dir=.
3993 for ac_exec_ext in '' $ac_executable_extensions; do
3994 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3995 ac_cv_prog_ac_ct_CC="$ac_prog"
3996 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4005 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4006 if test -n "$ac_ct_CC"; then
4007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4008 $as_echo "$ac_ct_CC" >&6; }
4010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4011 $as_echo "no" >&6; }
4015 test -n "$ac_ct_CC" && break
4018 if test "x$ac_ct_CC" = x; then
4021 case $cross_compiling:$ac_tool_warned in
4023 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4024 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4025 ac_tool_warned=yes ;;
4034 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4035 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4036 as_fn_error $? "no acceptable C compiler found in \$PATH
4037 See \`config.log' for more details" "$LINENO" 5; }
4039 # Provide some information about the compiler.
4040 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4043 for ac_option in --version -v -V -qversion; do
4044 { { ac_try="$ac_compiler $ac_option >&5"
4046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4047 *) ac_try_echo=$ac_try;;
4049 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4050 $as_echo "$ac_try_echo"; } >&5
4051 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4053 if test -s conftest.err; then
4055 ... rest of stderr output deleted ...
4056 10q' conftest.err >conftest.er1
4057 cat conftest.er1 >&5
4059 rm -f conftest.er1 conftest.err
4060 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4061 test $ac_status = 0; }
4064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4065 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4066 if ${ac_cv_c_compiler_gnu+:} false; then :
4067 $as_echo_n "(cached) " >&6
4069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4070 /* end confdefs.h. */
4083 if ac_fn_c_try_compile "$LINENO"; then :
4088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4089 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4093 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4094 if test $ac_compiler_gnu = yes; then
4099 ac_test_CFLAGS=${CFLAGS+set}
4100 ac_save_CFLAGS=$CFLAGS
4101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4102 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4103 if ${ac_cv_prog_cc_g+:} false; then :
4104 $as_echo_n "(cached) " >&6
4106 ac_save_c_werror_flag=$ac_c_werror_flag
4107 ac_c_werror_flag=yes
4110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4111 /* end confdefs.h. */
4121 if ac_fn_c_try_compile "$LINENO"; then :
4125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4126 /* end confdefs.h. */
4136 if ac_fn_c_try_compile "$LINENO"; then :
4139 ac_c_werror_flag=$ac_save_c_werror_flag
4141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4142 /* end confdefs.h. */
4152 if ac_fn_c_try_compile "$LINENO"; then :
4155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4160 ac_c_werror_flag=$ac_save_c_werror_flag
4162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4163 $as_echo "$ac_cv_prog_cc_g" >&6; }
4164 if test "$ac_test_CFLAGS" = set; then
4165 CFLAGS=$ac_save_CFLAGS
4166 elif test $ac_cv_prog_cc_g = yes; then
4167 if test "$GCC" = yes; then
4173 if test "$GCC" = yes; then
4179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4180 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4181 if ${ac_cv_prog_cc_c89+:} false; then :
4182 $as_echo_n "(cached) " >&6
4184 ac_cv_prog_cc_c89=no
4186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4187 /* end confdefs.h. */
4191 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4192 struct buf { int x; };
4193 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4194 static char *e (p, i)
4200 static char *f (char * (*g) (char **, int), char **p, ...)
4205 s = g (p, va_arg (v,int));
4210 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4211 function prototypes and stuff, but not '\xHH' hex character constants.
4212 These don't provoke an error unfortunately, instead are silently treated
4213 as 'x'. The following induces an error, until -std is added to get
4214 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4215 array size at least. It's necessary to write '\x00'==0 to get something
4216 that's true only with -std. */
4217 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4219 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4220 inside strings and character constants. */
4222 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4224 int test (int i, double x);
4225 struct s1 {int (*f) (int a);};
4226 struct s2 {int (*f) (double a);};
4227 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4233 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4238 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4239 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4241 CC="$ac_save_CC $ac_arg"
4242 if ac_fn_c_try_compile "$LINENO"; then :
4243 ac_cv_prog_cc_c89=$ac_arg
4245 rm -f core conftest.err conftest.$ac_objext
4246 test "x$ac_cv_prog_cc_c89" != "xno" && break
4248 rm -f conftest.$ac_ext
4253 case "x$ac_cv_prog_cc_c89" in
4255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4256 $as_echo "none needed" >&6; } ;;
4258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4259 $as_echo "unsupported" >&6; } ;;
4261 CC="$CC $ac_cv_prog_cc_c89"
4262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4263 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4265 if test "x$ac_cv_prog_cc_c89" != xno; then :
4270 ac_cpp='$CPP $CPPFLAGS'
4271 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4272 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4273 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4275 if test "$GCC" = yes; then
4276 RDYNAMIC="-rdynamic"
4280 ac_cpp='$CPP $CPPFLAGS'
4281 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4282 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4283 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4285 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4286 # On Suns, sometimes $CPP names a directory.
4287 if test -n "$CPP" && test -d "$CPP"; then
4290 if test -z "$CPP"; then
4291 if ${ac_cv_prog_CPP+:} false; then :
4292 $as_echo_n "(cached) " >&6
4294 # Double quotes because CPP needs to be expanded
4295 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4298 for ac_c_preproc_warn_flag in '' yes
4300 # Use a header file that comes with gcc, so configuring glibc
4301 # with a fresh cross-compiler works.
4302 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4303 # <limits.h> exists even on freestanding compilers.
4304 # On the NeXT, cc -E runs the code through the compiler's parser,
4305 # not just through cpp. "Syntax error" is here to catch this case.
4306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4307 /* end confdefs.h. */
4309 # include <limits.h>
4311 # include <assert.h>
4315 if ac_fn_c_try_cpp "$LINENO"; then :
4318 # Broken: fails on valid input.
4321 rm -f conftest.err conftest.i conftest.$ac_ext
4323 # OK, works on sane cases. Now check whether nonexistent headers
4324 # can be detected and how.
4325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4326 /* end confdefs.h. */
4327 #include <ac_nonexistent.h>
4329 if ac_fn_c_try_cpp "$LINENO"; then :
4330 # Broken: success on invalid input.
4333 # Passes both tests.
4337 rm -f conftest.err conftest.i conftest.$ac_ext
4340 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4341 rm -f conftest.i conftest.err conftest.$ac_ext
4342 if $ac_preproc_ok; then :
4354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4355 $as_echo "$CPP" >&6; }
4357 for ac_c_preproc_warn_flag in '' yes
4359 # Use a header file that comes with gcc, so configuring glibc
4360 # with a fresh cross-compiler works.
4361 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4362 # <limits.h> exists even on freestanding compilers.
4363 # On the NeXT, cc -E runs the code through the compiler's parser,
4364 # not just through cpp. "Syntax error" is here to catch this case.
4365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4366 /* end confdefs.h. */
4368 # include <limits.h>
4370 # include <assert.h>
4374 if ac_fn_c_try_cpp "$LINENO"; then :
4377 # Broken: fails on valid input.
4380 rm -f conftest.err conftest.i conftest.$ac_ext
4382 # OK, works on sane cases. Now check whether nonexistent headers
4383 # can be detected and how.
4384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4385 /* end confdefs.h. */
4386 #include <ac_nonexistent.h>
4388 if ac_fn_c_try_cpp "$LINENO"; then :
4389 # Broken: success on invalid input.
4392 # Passes both tests.
4396 rm -f conftest.err conftest.i conftest.$ac_ext
4399 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4400 rm -f conftest.i conftest.err conftest.$ac_ext
4401 if $ac_preproc_ok; then :
4404 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4405 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4406 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4407 See \`config.log' for more details" "$LINENO" 5; }
4411 ac_cpp='$CPP $CPPFLAGS'
4412 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4413 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4414 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for additional special compiler flags" >&5
4417 $as_echo_n "checking for additional special compiler flags... " >&6; }
4418 if test "$GCC" = yes
4421 alpha) addcflags="-mieee" ;;
4424 if test "x$addcflags" != x
4426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $addcflags" >&5
4427 $as_echo "$addcflags" >&6; }
4428 CFLAGS="$addcflags $CFLAGS"
4430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (none)" >&5
4431 $as_echo "(none)" >&6; }
4434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4435 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4436 if ${ac_cv_path_GREP+:} false; then :
4437 $as_echo_n "(cached) " >&6
4439 if test -z "$GREP"; then
4440 ac_path_GREP_found=false
4441 # Loop through the user's path and test for each of PROGNAME-LIST
4442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4443 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4446 test -z "$as_dir" && as_dir=.
4447 for ac_prog in grep ggrep; do
4448 for ac_exec_ext in '' $ac_executable_extensions; do
4449 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4450 as_fn_executable_p "$ac_path_GREP" || continue
4451 # Check for GNU ac_path_GREP and select it if it is found.
4452 # Check for GNU $ac_path_GREP
4453 case `"$ac_path_GREP" --version 2>&1` in
4455 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4458 $as_echo_n 0123456789 >"conftest.in"
4461 cat "conftest.in" "conftest.in" >"conftest.tmp"
4462 mv "conftest.tmp" "conftest.in"
4463 cp "conftest.in" "conftest.nl"
4464 $as_echo 'GREP' >> "conftest.nl"
4465 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4466 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4467 as_fn_arith $ac_count + 1 && ac_count=$as_val
4468 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4469 # Best one so far, save it but keep looking for a better one
4470 ac_cv_path_GREP="$ac_path_GREP"
4471 ac_path_GREP_max=$ac_count
4473 # 10*(2^10) chars as input seems more than enough
4474 test $ac_count -gt 10 && break
4476 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4479 $ac_path_GREP_found && break 3
4484 if test -z "$ac_cv_path_GREP"; then
4485 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4488 ac_cv_path_GREP=$GREP
4492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4493 $as_echo "$ac_cv_path_GREP" >&6; }
4494 GREP="$ac_cv_path_GREP"
4497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4498 $as_echo_n "checking for egrep... " >&6; }
4499 if ${ac_cv_path_EGREP+:} false; then :
4500 $as_echo_n "(cached) " >&6
4502 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4503 then ac_cv_path_EGREP="$GREP -E"
4505 if test -z "$EGREP"; then
4506 ac_path_EGREP_found=false
4507 # Loop through the user's path and test for each of PROGNAME-LIST
4508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4509 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4512 test -z "$as_dir" && as_dir=.
4513 for ac_prog in egrep; do
4514 for ac_exec_ext in '' $ac_executable_extensions; do
4515 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4516 as_fn_executable_p "$ac_path_EGREP" || continue
4517 # Check for GNU ac_path_EGREP and select it if it is found.
4518 # Check for GNU $ac_path_EGREP
4519 case `"$ac_path_EGREP" --version 2>&1` in
4521 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4524 $as_echo_n 0123456789 >"conftest.in"
4527 cat "conftest.in" "conftest.in" >"conftest.tmp"
4528 mv "conftest.tmp" "conftest.in"
4529 cp "conftest.in" "conftest.nl"
4530 $as_echo 'EGREP' >> "conftest.nl"
4531 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4532 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4533 as_fn_arith $ac_count + 1 && ac_count=$as_val
4534 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4535 # Best one so far, save it but keep looking for a better one
4536 ac_cv_path_EGREP="$ac_path_EGREP"
4537 ac_path_EGREP_max=$ac_count
4539 # 10*(2^10) chars as input seems more than enough
4540 test $ac_count -gt 10 && break
4542 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4545 $ac_path_EGREP_found && break 3
4550 if test -z "$ac_cv_path_EGREP"; then
4551 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4554 ac_cv_path_EGREP=$EGREP
4559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4560 $as_echo "$ac_cv_path_EGREP" >&6; }
4561 EGREP="$ac_cv_path_EGREP"
4564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4565 $as_echo_n "checking for ANSI C header files... " >&6; }
4566 if ${ac_cv_header_stdc+:} false; then :
4567 $as_echo_n "(cached) " >&6
4569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4570 /* end confdefs.h. */
4584 if ac_fn_c_try_compile "$LINENO"; then :
4585 ac_cv_header_stdc=yes
4587 ac_cv_header_stdc=no
4589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4591 if test $ac_cv_header_stdc = yes; then
4592 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4594 /* end confdefs.h. */
4598 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4599 $EGREP "memchr" >/dev/null 2>&1; then :
4602 ac_cv_header_stdc=no
4608 if test $ac_cv_header_stdc = yes; then
4609 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4611 /* end confdefs.h. */
4615 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4616 $EGREP "free" >/dev/null 2>&1; then :
4619 ac_cv_header_stdc=no
4625 if test $ac_cv_header_stdc = yes; then
4626 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4627 if test "$cross_compiling" = yes; then :
4630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4631 /* end confdefs.h. */
4634 #if ((' ' & 0x0FF) == 0x020)
4635 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4636 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4638 # define ISLOWER(c) \
4639 (('a' <= (c) && (c) <= 'i') \
4640 || ('j' <= (c) && (c) <= 'r') \
4641 || ('s' <= (c) && (c) <= 'z'))
4642 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4645 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4650 for (i = 0; i < 256; i++)
4651 if (XOR (islower (i), ISLOWER (i))
4652 || toupper (i) != TOUPPER (i))
4657 if ac_fn_c_try_run "$LINENO"; then :
4660 ac_cv_header_stdc=no
4662 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4663 conftest.$ac_objext conftest.beam conftest.$ac_ext
4668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4669 $as_echo "$ac_cv_header_stdc" >&6; }
4670 if test $ac_cv_header_stdc = yes; then
4672 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4676 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4677 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4678 inttypes.h stdint.h unistd.h
4680 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4681 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4683 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4684 cat >>confdefs.h <<_ACEOF
4685 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4694 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4695 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4702 if test "$MINIX" = yes; then
4704 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4707 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4710 $as_echo "#define _MINIX 1" >>confdefs.h
4715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4716 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4717 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4718 $as_echo_n "(cached) " >&6
4720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4721 /* end confdefs.h. */
4723 # define __EXTENSIONS__ 1
4724 $ac_includes_default
4733 if ac_fn_c_try_compile "$LINENO"; then :
4734 ac_cv_safe_to_define___extensions__=yes
4736 ac_cv_safe_to_define___extensions__=no
4738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4741 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4742 test $ac_cv_safe_to_define___extensions__ = yes &&
4743 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4745 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4747 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4749 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4751 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4758 # Check whether --with-root-prefix was given.
4759 if test "${with_root_prefix+set}" = set; then :
4760 withval=$with_root_prefix; root_prefix=$withval
4764 # Check whether --enable-maintainer-mode was given.
4765 if test "${enable_maintainer_mode+set}" = set; then :
4766 enableval=$enable_maintainer_mode; if test "$enableval" = "no"
4769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode" >&5
4770 $as_echo "Disabling maintainer mode" >&6; }
4773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling maintainer mode" >&5
4774 $as_echo "Enabling maintainer mode" >&6; }
4779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode by default" >&5
4780 $as_echo "Disabling maintainer mode by default" >&6; }
4785 # Check whether --enable-symlink-install was given.
4786 if test "${enable_symlink_install+set}" = set; then :
4787 enableval=$enable_symlink_install; if test "$enableval" = "no"
4789 LINK_INSTALL_FLAGS=-f
4790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install" >&5
4791 $as_echo "Disabling symlinks for install" >&6; }
4793 LINK_INSTALL_FLAGS=-sf
4794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for install" >&5
4795 $as_echo "Enabling symlinks for install" >&6; }
4799 LINK_INSTALL_FLAGS=-f
4800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install by default" >&5
4801 $as_echo "Disabling symlinks for install by default" >&6; }
4806 relative_symlink_defined=
4807 # Check whether --enable-relative-symlinks was given.
4808 if test "${enable_relative_symlinks+set}" = set; then :
4809 enableval=$enable_relative_symlinks; if test "$enableval" = "no"
4812 relative_symlink_defined=yes
4813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
4814 $as_echo "Disabling relative symlinks for install" >&6; }
4816 SYMLINK_RELATIVE=--relative
4817 relative_symlink_defined=yes
4818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5
4819 $as_echo "Enabling relative symlinks for install" >&6; }
4823 # Check whether --enable-symlink-relative-symlinks was given.
4824 if test "${enable_symlink_relative_symlinks+set}" = set; then :
4825 enableval=$enable_symlink_relative_symlinks; if test "$enableval" = "no"
4827 SYMLINK_RELATIVE=yes
4828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
4829 $as_echo "Disabling relative symlinks for install" >&6; }
4831 SYMLINK_RELATIVE=--relative
4832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5
4833 $as_echo "Enabling relative symlinks for install" >&6; }
4837 if test -z "$relative_symlink_defined"
4840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install by default" >&5
4841 $as_echo "Disabling relative symlinks for install by default" >&6; }
4847 # Check whether --enable-symlink-build was given.
4848 if test "${enable_symlink_build+set}" = set; then :
4849 enableval=$enable_symlink_build; if test "$enableval" = "no"
4852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build" >&5
4853 $as_echo "Disabling symlinks for build" >&6; }
4856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for build" >&5
4857 $as_echo "Enabling symlinks for build" >&6; }
4862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build by default" >&5
4863 $as_echo "Disabling symlinks for build by default" >&6; }
4868 # Check whether --enable-verbose-makecmds was given.
4869 if test "${enable_verbose_makecmds+set}" = set; then :
4870 enableval=$enable_verbose_makecmds; if test "$enableval" = "no"
4872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
4873 $as_echo "Disabling verbose make commands" >&6; }
4878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling verbose make commands" >&5
4879 $as_echo "Enabling verbose make commands" >&6; }
4886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
4887 $as_echo "Disabling verbose make commands" >&6; }
4897 # Check whether --enable-compression was given.
4898 if test "${enable_compression+set}" = set; then :
4899 enableval=$enable_compression; if test "$enableval" = "no"
4901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling compression support" >&5
4902 $as_echo "Disabling compression support" >&6; }
4905 $as_echo "#define ENABLE_COMPRESSION 1" >>confdefs.h
4907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling compression support" >&5
4908 $as_echo "Enabling compression support" >&6; }
4909 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Compression support is experimental" >&5
4910 $as_echo "$as_me: WARNING: Compression support is experimental" >&2;}
4914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling compression support by default" >&5
4915 $as_echo "Disabling compression support by default" >&6; }
4920 # Check whether --enable-htree was given.
4921 if test "${enable_htree+set}" = set; then :
4922 enableval=$enable_htree; if test "$enableval" = "no"
4925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling htree directory support" >&5
4926 $as_echo "Disabling htree directory support" >&6; }
4929 $as_echo "#define ENABLE_HTREE 1" >>confdefs.h
4931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling htree directory support" >&5
4932 $as_echo "Enabling htree directory support" >&6; }
4937 $as_echo "#define ENABLE_HTREE 1" >>confdefs.h
4939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling htree directory support by default" >&5
4940 $as_echo "Enabling htree directory support by default" >&6; }
4945 E2_PKG_CONFIG_STATIC=--static
4948 # Check whether --enable-elf-shlibs was given.
4949 if test "${enable_elf_shlibs+set}" = set; then :
4950 enableval=$enable_elf_shlibs; if test "$enableval" = "no"
4953 MAKEFILE_ELF=/dev/null
4954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries" >&5
4955 $as_echo "Disabling ELF shared libraries" >&6; }
4957 E2_PKG_CONFIG_STATIC=
4959 MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
4962 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
4968 LDFLAG_DYNAMIC='-Wl,-rpath-link,$(top_builddir)/lib'
4969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling ELF shared libraries" >&5
4970 $as_echo "Enabling ELF shared libraries" >&6; }
4974 MAKEFILE_ELF=/dev/null
4976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries by default" >&5
4977 $as_echo "Disabling ELF shared libraries by default" >&6; }
4983 # Check whether --enable-bsd-shlibs was given.
4984 if test "${enable_bsd_shlibs+set}" = set; then :
4985 enableval=$enable_bsd_shlibs; if test "$enableval" = "no"
4988 MAKEFILE_BSDLIB=/dev/null
4989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries" >&5
4990 $as_echo "Disabling BSD shared libraries" >&6; }
4992 E2_PKG_CONFIG_STATIC=
4994 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
4998 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib
5002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling BSD shared libraries" >&5
5003 $as_echo "Enabling BSD shared libraries" >&6; }
5007 MAKEFILE_BSDLIB=/dev/null
5009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries by default" >&5
5010 $as_echo "Disabling BSD shared libraries by default" >&6; }
5016 # Check whether --enable-profile was given.
5017 if test "${enable_profile+set}" = set; then :
5018 enableval=$enable_profile; if test "$enableval" = "no"
5021 MAKEFILE_PROFILE=/dev/null
5022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries" >&5
5023 $as_echo "Disabling profiling libraries" >&6; }
5026 MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
5027 PROFILED_LIB_EXT=_p.a
5028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building profiling libraries" >&5
5029 $as_echo "Building profiling libraries" >&6; }
5034 MAKEFILE_PROFILE=/dev/null
5035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries by default" >&5
5036 $as_echo "Disabling profiling libraries by default" >&6; }
5042 # Check whether --enable-gcov was given.
5043 if test "${enable_gcov+set}" = set; then :
5044 enableval=$enable_gcov; if test "$enableval" = "yes"
5046 CFLAGS="-g -fprofile-arcs -ftest-coverage"
5047 LDFLAGS="-fprofile-arcs -ftest-coverage"
5048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling gcov support" >&5
5049 $as_echo "Enabling gcov support" >&6; }
5060 # Check whether --enable-jbd-debug was given.
5061 if test "${enable_jbd_debug+set}" = set; then :
5062 enableval=$enable_jbd_debug; if test "$enableval" = "no"
5064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging" >&5
5065 $as_echo "Disabling journal debugging" >&6; }
5068 $as_echo "#define CONFIG_JBD_DEBUG 1" >>confdefs.h
5070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling journal debugging" >&5
5071 $as_echo "Enabling journal debugging" >&6; }
5075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging by default" >&5
5076 $as_echo "Disabling journal debugging by default" >&6; }
5080 # Check whether --enable-blkid-debug was given.
5081 if test "${enable_blkid_debug+set}" = set; then :
5082 enableval=$enable_blkid_debug; if test "$enableval" = "no"
5084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging" >&5
5085 $as_echo "Disabling blkid debugging" >&6; }
5088 $as_echo "#define CONFIG_BLKID_DEBUG 1" >>confdefs.h
5090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling blkid debugging" >&5
5091 $as_echo "Enabling blkid debugging" >&6; }
5095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging by default" >&5
5096 $as_echo "Disabling blkid debugging by default" >&6; }
5100 # Check whether --enable-testio-debug was given.
5101 if test "${enable_testio_debug+set}" = set; then :
5102 enableval=$enable_testio_debug;
5103 if test "$enableval" = "no"
5105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling testio debugging" >&5
5106 $as_echo "Disabling testio debugging" >&6; }
5110 $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
5112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging" >&5
5113 $as_echo "Enabling testio debugging" >&6; }
5117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging by default" >&5
5118 $as_echo "Enabling testio debugging by default" >&6; }
5119 $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
5133 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5134 if test -n "$ac_tool_prefix"; then
5135 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5136 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5138 $as_echo_n "checking for $ac_word... " >&6; }
5139 if ${ac_cv_path_PKG_CONFIG+:} false; then :
5140 $as_echo_n "(cached) " >&6
5144 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5151 test -z "$as_dir" && as_dir=.
5152 for ac_exec_ext in '' $ac_executable_extensions; do
5153 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5154 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5165 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5166 if test -n "$PKG_CONFIG"; then
5167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5168 $as_echo "$PKG_CONFIG" >&6; }
5170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5171 $as_echo "no" >&6; }
5176 if test -z "$ac_cv_path_PKG_CONFIG"; then
5177 ac_pt_PKG_CONFIG=$PKG_CONFIG
5178 # Extract the first word of "pkg-config", so it can be a program name with args.
5179 set dummy pkg-config; ac_word=$2
5180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5181 $as_echo_n "checking for $ac_word... " >&6; }
5182 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
5183 $as_echo_n "(cached) " >&6
5185 case $ac_pt_PKG_CONFIG in
5187 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5194 test -z "$as_dir" && as_dir=.
5195 for ac_exec_ext in '' $ac_executable_extensions; do
5196 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5197 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5208 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5209 if test -n "$ac_pt_PKG_CONFIG"; then
5210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5211 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5214 $as_echo "no" >&6; }
5217 if test "x$ac_pt_PKG_CONFIG" = x; then
5220 case $cross_compiling:$ac_tool_warned in
5222 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5223 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5224 ac_tool_warned=yes ;;
5226 PKG_CONFIG=$ac_pt_PKG_CONFIG
5229 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5233 if test -n "$PKG_CONFIG"; then
5234 _pkg_min_version=0.9.0
5235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5236 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5237 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5239 $as_echo "yes" >&6; }
5241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5242 $as_echo "no" >&6; }
5251 DEPPROFILED_LIBUUID=
5253 # Check whether --enable-libuuid was given.
5254 if test "${enable_libuuid+set}" = set; then :
5255 enableval=$enable_libuuid; if test "$enableval" = "no"
5257 if test -z "$PKG_CONFIG"; then
5258 as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5
5261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
5262 $as_echo_n "checking for uuid_generate in -luuid... " >&6; }
5263 if ${ac_cv_lib_uuid_uuid_generate+:} false; then :
5264 $as_echo_n "(cached) " >&6
5266 ac_check_lib_save_LIBS=$LIBS
5268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5269 /* end confdefs.h. */
5271 /* Override any GCC internal prototype to avoid an error.
5272 Use char because int might match the return type of a GCC
5273 builtin and then its argument prototype would still apply. */
5277 char uuid_generate ();
5281 return uuid_generate ();
5286 if ac_fn_c_try_link "$LINENO"; then :
5287 ac_cv_lib_uuid_uuid_generate=yes
5289 ac_cv_lib_uuid_uuid_generate=no
5291 rm -f core conftest.err conftest.$ac_objext \
5292 conftest$ac_exeext conftest.$ac_ext
5293 LIBS=$ac_check_lib_save_LIBS
5295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
5296 $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
5297 if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then :
5298 LIBUUID=`$PKG_CONFIG --libs uuid`;
5299 STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid`
5301 as_fn_error $? "external uuid library not found" "$LINENO" 5
5305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private uuid library" >&5
5306 $as_echo "Disabling private uuid library" >&6; }
5308 LIBUUID='$(LIB)/libuuid'$LIB_EXT
5310 STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
5311 DEPSTATIC_LIBUUID=$STATIC_LIBUUID
5312 PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
5313 DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
5314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library" >&5
5315 $as_echo "Enabling private uuid library" >&6; }
5319 LIBUUID='$(LIB)/libuuid'$LIB_EXT
5321 STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
5322 DEPSTATIC_LIBUUID=$STATIC_LIBUUID
5323 PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
5324 DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
5325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library by default" >&5
5326 $as_echo "Enabling private uuid library by default" >&6; }
5344 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5345 if test -n "$ac_tool_prefix"; then
5346 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5347 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5349 $as_echo_n "checking for $ac_word... " >&6; }
5350 if ${ac_cv_path_PKG_CONFIG+:} false; then :
5351 $as_echo_n "(cached) " >&6
5355 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5362 test -z "$as_dir" && as_dir=.
5363 for ac_exec_ext in '' $ac_executable_extensions; do
5364 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5365 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5366 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5376 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5377 if test -n "$PKG_CONFIG"; then
5378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5379 $as_echo "$PKG_CONFIG" >&6; }
5381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5382 $as_echo "no" >&6; }
5387 if test -z "$ac_cv_path_PKG_CONFIG"; then
5388 ac_pt_PKG_CONFIG=$PKG_CONFIG
5389 # Extract the first word of "pkg-config", so it can be a program name with args.
5390 set dummy 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_ac_pt_PKG_CONFIG+:} false; then :
5394 $as_echo_n "(cached) " >&6
5396 case $ac_pt_PKG_CONFIG in
5398 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_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_ac_pt_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 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5420 if test -n "$ac_pt_PKG_CONFIG"; then
5421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5422 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5425 $as_echo "no" >&6; }
5428 if test "x$ac_pt_PKG_CONFIG" = x; then
5431 case $cross_compiling:$ac_tool_warned in
5433 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5434 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5435 ac_tool_warned=yes ;;
5437 PKG_CONFIG=$ac_pt_PKG_CONFIG
5440 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5444 if test -n "$PKG_CONFIG"; then
5445 _pkg_min_version=0.9.0
5446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5447 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5448 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5450 $as_echo "yes" >&6; }
5452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5453 $as_echo "no" >&6; }
5462 DEPPROFILED_LIBBLKID=
5465 # Check whether --enable-libblkid was given.
5466 if test "${enable_libblkid+set}" = set; then :
5467 enableval=$enable_libblkid; if test "$enableval" = "no"
5469 if test -z "$PKG_CONFIG"; then
5470 as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5
5473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
5474 $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
5475 if ${ac_cv_lib_blkid_blkid_get_cache+:} false; then :
5476 $as_echo_n "(cached) " >&6
5478 ac_check_lib_save_LIBS=$LIBS
5479 LIBS="-lblkid -luuid $LIBS"
5480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5481 /* end confdefs.h. */
5483 /* Override any GCC internal prototype to avoid an error.
5484 Use char because int might match the return type of a GCC
5485 builtin and then its argument prototype would still apply. */
5489 char blkid_get_cache ();
5493 return blkid_get_cache ();
5498 if ac_fn_c_try_link "$LINENO"; then :
5499 ac_cv_lib_blkid_blkid_get_cache=yes
5501 ac_cv_lib_blkid_blkid_get_cache=no
5503 rm -f core conftest.err conftest.$ac_objext \
5504 conftest$ac_exeext conftest.$ac_ext
5505 LIBS=$ac_check_lib_save_LIBS
5507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
5508 $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
5509 if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes; then :
5510 LIBBLKID=`$PKG_CONFIG --libs blkid`;
5511 STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid`
5513 as_fn_error $? "external blkid library not found" "$LINENO" 5
5517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private blkid library" >&5
5518 $as_echo "Disabling private blkid library" >&6; }
5520 LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5521 DEPLIBBLKID=$LIBBLKID
5522 STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5523 DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5524 PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5525 DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
5526 $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
5528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library" >&5
5529 $as_echo "Enabling private blkid library" >&6; }
5533 LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5534 DEPLIBBLKID=$LIBBLKID
5535 STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5536 DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5537 PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5538 DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
5539 $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
5541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library by default" >&5
5542 $as_echo "Enabling private blkid library by default" >&6; }
5553 QUOTA_MAN_COMMENT='.\"'
5563 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5564 if test -n "$ac_tool_prefix"; then
5565 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5566 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5568 $as_echo_n "checking for $ac_word... " >&6; }
5569 if ${ac_cv_path_PKG_CONFIG+:} false; then :
5570 $as_echo_n "(cached) " >&6
5574 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5581 test -z "$as_dir" && as_dir=.
5582 for ac_exec_ext in '' $ac_executable_extensions; do
5583 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5584 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5595 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5596 if test -n "$PKG_CONFIG"; then
5597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5598 $as_echo "$PKG_CONFIG" >&6; }
5600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5601 $as_echo "no" >&6; }
5606 if test -z "$ac_cv_path_PKG_CONFIG"; then
5607 ac_pt_PKG_CONFIG=$PKG_CONFIG
5608 # Extract the first word of "pkg-config", so it can be a program name with args.
5609 set dummy pkg-config; ac_word=$2
5610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5611 $as_echo_n "checking for $ac_word... " >&6; }
5612 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
5613 $as_echo_n "(cached) " >&6
5615 case $ac_pt_PKG_CONFIG in
5617 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5624 test -z "$as_dir" && as_dir=.
5625 for ac_exec_ext in '' $ac_executable_extensions; do
5626 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5627 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5628 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5638 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5639 if test -n "$ac_pt_PKG_CONFIG"; then
5640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5641 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5644 $as_echo "no" >&6; }
5647 if test "x$ac_pt_PKG_CONFIG" = x; then
5650 case $cross_compiling:$ac_tool_warned in
5652 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5653 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5654 ac_tool_warned=yes ;;
5656 PKG_CONFIG=$ac_pt_PKG_CONFIG
5659 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5663 if test -n "$PKG_CONFIG"; then
5664 _pkg_min_version=0.9.0
5665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5666 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5667 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5669 $as_echo "yes" >&6; }
5671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5672 $as_echo "no" >&6; }
5677 # Check whether --enable-quota was given.
5678 if test "${enable_quota+set}" = set; then :
5679 enableval=$enable_quota; if test "$enableval" = "no"
5682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling quota support" >&5
5683 $as_echo "Disabling quota support" >&6; }
5686 $as_echo "#define CONFIG_QUOTA 1" >>confdefs.h
5688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling quota support" >&5
5689 $as_echo "Enabling quota support" >&6; }
5690 QUOTA_MAN_COMMENT=""
5696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling quota support by default" >&5
5697 $as_echo "Disabling quota support by default" >&6; }
5701 LIBQUOTA='$(LIB)/libquota'$LIB_EXT
5702 DEPLIBQUOTA=$LIBQUOTA
5703 STATIC_LIBQUOTA='$(LIB)/libquota'$STATIC_LIB_EXT
5704 DEPSTATIC_LIBQUOTA=$STATIC_LIBQUOTA
5705 PROFILED_LIBQUOTA='$(LIB)/libquota'$PROFILED_LIB_EXT
5706 DEPPROFILED_LIBQUOTA=$PROFILED_LIBQUOTA
5715 # Check whether --enable-backtrace was given.
5716 if test "${enable_backtrace+set}" = set; then :
5717 enableval=$enable_backtrace; if test "$enableval" = "no"
5719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling use of backtrace" >&5
5720 $as_echo "Disabling use of backtrace" >&6; }
5721 $as_echo "#define DISABLE_BACKTRACE 1" >>confdefs.h
5724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace" >&5
5725 $as_echo "Enabling use of backtrace" >&6; }
5729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace by default" >&5
5730 $as_echo "Enabling use of backtrace by default" >&6; }
5734 # Check whether --enable-debugfs was given.
5735 if test "${enable_debugfs+set}" = set; then :
5736 enableval=$enable_debugfs; if test "$enableval" = "no"
5738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling debugfs support" >&5
5739 $as_echo "Disabling debugfs support" >&6; }
5743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support" >&5
5744 $as_echo "Enabling debugfs support" >&6; }
5748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support by default" >&5
5749 $as_echo "Enabling debugfs support by default" >&6; }
5755 # Check whether --enable-imager was given.
5756 if test "${enable_imager+set}" = set; then :
5757 enableval=$enable_imager; if test "$enableval" = "no"
5759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2image support" >&5
5760 $as_echo "Disabling e2image support" >&6; }
5764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support" >&5
5765 $as_echo "Enabling e2image support" >&6; }
5769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support by default" >&5
5770 $as_echo "Enabling e2image support by default" >&6; }
5776 # Check whether --enable-resizer was given.
5777 if test "${enable_resizer+set}" = set; then :
5778 enableval=$enable_resizer; if test "$enableval" = "no"
5780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2resize support" >&5
5781 $as_echo "Disabling e2resize support" >&6; }
5785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support" >&5
5786 $as_echo "Enabling e2resize support" >&6; }
5790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support by default" >&5
5791 $as_echo "Enabling e2resize support by default" >&6; }
5797 # Check whether --enable-defrag was given.
5798 if test "${enable_defrag+set}" = set; then :
5799 enableval=$enable_defrag; if test "$enableval" = "no"
5801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support" >&5
5802 $as_echo "Disabling e4defrag support" >&6; }
5806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support" >&5
5807 $as_echo "Enabling e4defrag support" >&6; }
5811 if test -z "$WITH_DIET_LIBC"
5813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support by default" >&5
5814 $as_echo "Enabling e4defrag support by default" >&6; }
5817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support by default" >&5
5818 $as_echo "Disabling e4defrag support by default" >&6; }
5825 # Check whether --enable-fsck was given.
5826 if test "${enable_fsck+set}" = set; then :
5827 enableval=$enable_fsck; if test "$enableval" = "no"
5829 FSCK_PROG='' FSCK_MAN=''
5830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper" >&5
5831 $as_echo "Not building fsck wrapper" >&6; }
5833 FSCK_PROG=fsck FSCK_MAN=fsck.8
5834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper" >&5
5835 $as_echo "Building fsck wrapper" >&6; }
5841 FSCK_PROG='' FSCK_MAN=''
5842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper by default" >&5
5843 $as_echo "Not building fsck wrapper by default" >&6; }
5846 FSCK_PROG=fsck FSCK_MAN=fsck.8
5847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper by default" >&5
5848 $as_echo "Building fsck wrapper by default" >&6; }
5855 # Check whether --enable-e2initrd-helper was given.
5856 if test "${enable_e2initrd_helper+set}" = set; then :
5857 enableval=$enable_e2initrd_helper; if test "$enableval" = "no"
5859 E2INITRD_PROG='' E2INITRD_MAN=''
5860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building e2initrd helper" >&5
5861 $as_echo "Not building e2initrd helper" >&6; }
5863 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
5864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper" >&5
5865 $as_echo "Building e2initrd helper" >&6; }
5869 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
5870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper by default" >&5
5871 $as_echo "Building e2initrd helper by default" >&6; }
5877 # Check whether --enable-tls was given.
5878 if test "${enable_tls+set}" = set; then :
5879 enableval=$enable_tls; if test "$enableval" = "no"
5882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling thread local support" >&5
5883 $as_echo "Disabling thread local support" >&6; }
5886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling thread local support" >&5
5887 $as_echo "Enabling thread local support" >&6; }
5891 if test -n "$WITH_DIET_LIBC"
5894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Diet libc does not support thread local support" >&5
5895 $as_echo "Diet libc does not support thread local support" >&6; }
5898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Try using thread local support by default" >&5
5899 $as_echo "Try using thread local support by default" >&6; }
5904 if test "$try_tls" = "yes"
5907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread local storage (TLS) class" >&5
5908 $as_echo_n "checking for thread local storage (TLS) class... " >&6; }
5909 if ${ac_cv_tls+:} false; then :
5910 $as_echo_n "(cached) " >&6
5913 ax_tls_keywords="__thread __declspec(thread) none"
5914 for ax_tls_keyword in $ax_tls_keywords; do
5915 case $ax_tls_keyword in
5916 none) ac_cv_tls=none ; break ;;
5918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5919 /* end confdefs.h. */
5923 static $ax_tls_keyword int bar;
5934 if ac_fn_c_try_compile "$LINENO"; then :
5935 ac_cv_tls=$ax_tls_keyword ; break
5940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5947 if test "$ac_cv_tls" != "none"; then
5949 cat >>confdefs.h <<_ACEOF
5950 #define TLS $ac_cv_tls
5954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tls" >&5
5955 $as_echo "$ac_cv_tls" >&6; }
5959 # Check whether --enable-uuidd was given.
5960 if test "${enable_uuidd+set}" = set; then :
5961 enableval=$enable_uuidd; if test "$enableval" = "no"
5963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building uuidd" >&5
5964 $as_echo "Not building uuidd" >&6; }
5967 $as_echo "#define USE_UUIDD 1" >>confdefs.h
5970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd" >&5
5971 $as_echo "Building uuidd" >&6; }
5975 $as_echo "#define USE_UUIDD 1" >>confdefs.h
5978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd by default" >&5
5979 $as_echo "Building uuidd by default" >&6; }
5984 MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
5986 GETTEXT_PACKAGE=e2fsprogs
5988 VERSION="$E2FSPROGS_VERSION"
5991 cat >>confdefs.h <<_ACEOF
5992 #define PACKAGE "$PACKAGE"
5996 cat >>confdefs.h <<_ACEOF
5997 #define VERSION "$VERSION"
6004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6005 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6007 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6008 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
6009 $as_echo_n "(cached) " >&6
6011 cat >conftest.make <<\_ACEOF
6014 @echo '@@@%%%=$(MAKE)=@@@%%%'
6016 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
6017 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6019 eval ac_cv_prog_make_${ac_make}_set=yes;;
6021 eval ac_cv_prog_make_${ac_make}_set=no;;
6025 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6027 $as_echo "yes" >&6; }
6030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6031 $as_echo "no" >&6; }
6032 SET_MAKE="MAKE=${MAKE-make}"
6035 # Find a good install program. We prefer a C program (faster),
6036 # so one script is as good as another. But avoid the broken or
6037 # incompatible versions:
6038 # SysV /etc/install, /usr/sbin/install
6039 # SunOS /usr/etc/install
6040 # IRIX /sbin/install
6042 # AmigaOS /C/install, which installs bootblocks on floppy discs
6043 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6044 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6045 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6046 # OS/2's system install, which has a completely different semantic
6047 # ./install, which can be erroneously created by make from ./install.sh.
6048 # Reject install programs that cannot install multiple files.
6049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
6050 $as_echo_n "checking for a BSD-compatible install... " >&6; }
6051 if test -z "$INSTALL"; then
6052 if ${ac_cv_path_install+:} false; then :
6053 $as_echo_n "(cached) " >&6
6055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6059 test -z "$as_dir" && as_dir=.
6060 # Account for people who put trailing slashes in PATH elements.
6061 case $as_dir/ in #((
6062 ./ | .// | /[cC]/* | \
6063 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6064 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
6067 # OSF1 and SCO ODT 3.0 have their own names for install.
6068 # Don't use installbsd from OSF since it installs stuff as root
6070 for ac_prog in ginstall scoinst install; do
6071 for ac_exec_ext in '' $ac_executable_extensions; do
6072 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
6073 if test $ac_prog = install &&
6074 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6075 # AIX install. It has an incompatible calling convention.
6077 elif test $ac_prog = install &&
6078 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6079 # program-specific install script used by HP pwplus--don't use.
6082 rm -rf conftest.one conftest.two conftest.dir
6083 echo one > conftest.one
6084 echo two > conftest.two
6086 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
6087 test -s conftest.one && test -s conftest.two &&
6088 test -s conftest.dir/conftest.one &&
6089 test -s conftest.dir/conftest.two
6091 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6104 rm -rf conftest.one conftest.two conftest.dir
6107 if test "${ac_cv_path_install+set}" = set; then
6108 INSTALL=$ac_cv_path_install
6110 # As a last resort, use the slow shell script. Don't cache a
6111 # value for INSTALL within a source directory, because that will
6112 # break other packages using the cache if that directory is
6113 # removed, or if the value is a relative name.
6114 INSTALL=$ac_install_sh
6117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
6118 $as_echo "$INSTALL" >&6; }
6120 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6121 # It thinks the first close brace ends the variable substitution.
6122 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6124 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6126 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
6129 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
6130 if test -z "$MKDIR_P"; then
6131 if ${ac_cv_path_mkdir+:} false; then :
6132 $as_echo_n "(cached) " >&6
6134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6135 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
6138 test -z "$as_dir" && as_dir=.
6139 for ac_prog in mkdir gmkdir; do
6140 for ac_exec_ext in '' $ac_executable_extensions; do
6141 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
6142 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
6143 'mkdir (GNU coreutils) '* | \
6144 'mkdir (coreutils) '* | \
6145 'mkdir (fileutils) '4.1*)
6146 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
6156 test -d ./--version && rmdir ./--version
6157 if test "${ac_cv_path_mkdir+set}" = set; then
6158 MKDIR_P="$ac_cv_path_mkdir -p"
6160 # As a last resort, use the slow shell script. Don't cache a
6161 # value for MKDIR_P within a source directory, because that will
6162 # break other packages using the cache if that directory is
6163 # removed, or if the value is a relative name.
6164 MKDIR_P="$ac_install_sh -d"
6167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
6168 $as_echo "$MKDIR_P" >&6; }
6170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6171 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6172 if ${ac_cv_path_SED+:} false; then :
6173 $as_echo_n "(cached) " >&6
6175 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6176 for ac_i in 1 2 3 4 5 6 7; do
6177 ac_script="$ac_script$as_nl$ac_script"
6179 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6180 { ac_script=; unset ac_script;}
6181 if test -z "$SED"; then
6182 ac_path_SED_found=false
6183 # Loop through the user's path and test for each of PROGNAME-LIST
6184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6188 test -z "$as_dir" && as_dir=.
6189 for ac_prog in sed gsed; do
6190 for ac_exec_ext in '' $ac_executable_extensions; do
6191 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6192 as_fn_executable_p "$ac_path_SED" || continue
6193 # Check for GNU ac_path_SED and select it if it is found.
6194 # Check for GNU $ac_path_SED
6195 case `"$ac_path_SED" --version 2>&1` in
6197 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6200 $as_echo_n 0123456789 >"conftest.in"
6203 cat "conftest.in" "conftest.in" >"conftest.tmp"
6204 mv "conftest.tmp" "conftest.in"
6205 cp "conftest.in" "conftest.nl"
6206 $as_echo '' >> "conftest.nl"
6207 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6208 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6209 as_fn_arith $ac_count + 1 && ac_count=$as_val
6210 if test $ac_count -gt ${ac_path_SED_max-0}; then
6211 # Best one so far, save it but keep looking for a better one
6212 ac_cv_path_SED="$ac_path_SED"
6213 ac_path_SED_max=$ac_count
6215 # 10*(2^10) chars as input seems more than enough
6216 test $ac_count -gt 10 && break
6218 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6221 $ac_path_SED_found && break 3
6226 if test -z "$ac_cv_path_SED"; then
6227 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6235 $as_echo "$ac_cv_path_SED" >&6; }
6236 SED="$ac_cv_path_SED"
6240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
6241 $as_echo_n "checking whether NLS is requested... " >&6; }
6242 # Check whether --enable-nls was given.
6243 if test "${enable_nls+set}" = set; then :
6244 enableval=$enable_nls; USE_NLS=$enableval
6249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
6250 $as_echo "$USE_NLS" >&6; }
6255 GETTEXT_MACRO_VERSION=0.18
6260 # Prepare PATH_SEPARATOR.
6261 # The user is always right.
6262 if test "${PATH_SEPARATOR+set}" != set; then
6263 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
6264 # contains only /bin. Note that ksh looks also at the FPATH variable,
6265 # so we have to set that as well for the test.
6267 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6268 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6269 || PATH_SEPARATOR=';'
6273 # Find out how to test for executable files. Don't use a zero-byte file,
6274 # as systems may use methods other than mode bits to determine executability.
6275 cat >conf$$.file <<_ASEOF
6279 chmod +x conf$$.file
6280 if test -x conf$$.file >/dev/null 2>&1; then
6281 ac_executable_p="test -x"
6283 ac_executable_p="test -f"
6287 # Extract the first word of "msgfmt", so it can be a program name with args.
6288 set dummy msgfmt; ac_word=$2
6289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6290 $as_echo_n "checking for $ac_word... " >&6; }
6291 if ${ac_cv_path_MSGFMT+:} false; then :
6292 $as_echo_n "(cached) " >&6
6296 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
6299 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6300 for ac_dir in $PATH; do
6302 test -z "$ac_dir" && ac_dir=.
6303 for ac_exec_ext in '' $ac_executable_extensions; do
6304 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6305 echo "$as_me: trying $ac_dir/$ac_word..." >&5
6306 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
6307 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6308 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
6315 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
6319 MSGFMT="$ac_cv_path_MSGFMT"
6320 if test "$MSGFMT" != ":"; then
6321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
6322 $as_echo "$MSGFMT" >&6; }
6324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6325 $as_echo "no" >&6; }
6328 # Extract the first word of "gmsgfmt", so it can be a program name with args.
6329 set dummy gmsgfmt; 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_GMSGFMT+:} false; then :
6333 $as_echo_n "(cached) " >&6
6337 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
6340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6344 test -z "$as_dir" && as_dir=.
6345 for ac_exec_ext in '' $ac_executable_extensions; do
6346 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6347 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
6348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6355 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
6359 GMSGFMT=$ac_cv_path_GMSGFMT
6360 if test -n "$GMSGFMT"; then
6361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
6362 $as_echo "$GMSGFMT" >&6; }
6364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6365 $as_echo "no" >&6; }
6370 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6371 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
6372 *) MSGFMT_015=$MSGFMT ;;
6375 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6376 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
6377 *) GMSGFMT_015=$GMSGFMT ;;
6382 # Prepare PATH_SEPARATOR.
6383 # The user is always right.
6384 if test "${PATH_SEPARATOR+set}" != set; then
6385 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
6386 # contains only /bin. Note that ksh looks also at the FPATH variable,
6387 # so we have to set that as well for the test.
6389 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6390 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6391 || PATH_SEPARATOR=';'
6395 # Find out how to test for executable files. Don't use a zero-byte file,
6396 # as systems may use methods other than mode bits to determine executability.
6397 cat >conf$$.file <<_ASEOF
6401 chmod +x conf$$.file
6402 if test -x conf$$.file >/dev/null 2>&1; then
6403 ac_executable_p="test -x"
6405 ac_executable_p="test -f"
6409 # Extract the first word of "xgettext", so it can be a program name with args.
6410 set dummy xgettext; ac_word=$2
6411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6412 $as_echo_n "checking for $ac_word... " >&6; }
6413 if ${ac_cv_path_XGETTEXT+:} false; then :
6414 $as_echo_n "(cached) " >&6
6418 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
6421 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6422 for ac_dir in $PATH; do
6424 test -z "$ac_dir" && ac_dir=.
6425 for ac_exec_ext in '' $ac_executable_extensions; do
6426 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6427 echo "$as_me: trying $ac_dir/$ac_word..." >&5
6428 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
6429 (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
6430 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
6437 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
6441 XGETTEXT="$ac_cv_path_XGETTEXT"
6442 if test "$XGETTEXT" != ":"; then
6443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
6444 $as_echo "$XGETTEXT" >&6; }
6446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6447 $as_echo "no" >&6; }
6452 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6453 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
6454 *) XGETTEXT_015=$XGETTEXT ;;
6459 # Prepare PATH_SEPARATOR.
6460 # The user is always right.
6461 if test "${PATH_SEPARATOR+set}" != set; then
6462 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
6463 # contains only /bin. Note that ksh looks also at the FPATH variable,
6464 # so we have to set that as well for the test.
6466 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6467 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6468 || PATH_SEPARATOR=';'
6472 # Find out how to test for executable files. Don't use a zero-byte file,
6473 # as systems may use methods other than mode bits to determine executability.
6474 cat >conf$$.file <<_ASEOF
6478 chmod +x conf$$.file
6479 if test -x conf$$.file >/dev/null 2>&1; then
6480 ac_executable_p="test -x"
6482 ac_executable_p="test -f"
6486 # Extract the first word of "msgmerge", so it can be a program name with args.
6487 set dummy msgmerge; ac_word=$2
6488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6489 $as_echo_n "checking for $ac_word... " >&6; }
6490 if ${ac_cv_path_MSGMERGE+:} false; then :
6491 $as_echo_n "(cached) " >&6
6495 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
6498 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6499 for ac_dir in $PATH; do
6501 test -z "$ac_dir" && ac_dir=.
6502 for ac_exec_ext in '' $ac_executable_extensions; do
6503 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6504 echo "$as_me: trying $ac_dir/$ac_word..." >&5
6505 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
6506 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
6513 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
6517 MSGMERGE="$ac_cv_path_MSGMERGE"
6518 if test "$MSGMERGE" != ":"; then
6519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
6520 $as_echo "$MSGMERGE" >&6; }
6522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6523 $as_echo "no" >&6; }
6527 test -n "$localedir" || localedir='${datadir}/locale'
6530 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
6533 ac_config_commands="$ac_config_commands po-directories"
6537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2 or newer" >&5
6538 $as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; }
6539 if ${ac_cv_gnu_library_2+:} false; then :
6540 $as_echo_n "(cached) " >&6
6542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6543 /* end confdefs.h. */
6545 #include <features.h>
6546 #ifdef __GNU_LIBRARY__
6547 #if (__GLIBC__ >= 2) && !defined __UCLIBC__
6553 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6554 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
6555 ac_cv_gnu_library_2=yes
6557 ac_cv_gnu_library_2=no
6564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2" >&5
6565 $as_echo "$ac_cv_gnu_library_2" >&6; }
6567 GLIBC2="$ac_cv_gnu_library_2"
6570 if test -n "$ac_tool_prefix"; then
6571 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6572 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6574 $as_echo_n "checking for $ac_word... " >&6; }
6575 if ${ac_cv_prog_RANLIB+:} false; then :
6576 $as_echo_n "(cached) " >&6
6578 if test -n "$RANLIB"; then
6579 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6585 test -z "$as_dir" && as_dir=.
6586 for ac_exec_ext in '' $ac_executable_extensions; do
6587 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6588 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6589 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6598 RANLIB=$ac_cv_prog_RANLIB
6599 if test -n "$RANLIB"; then
6600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6601 $as_echo "$RANLIB" >&6; }
6603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6604 $as_echo "no" >&6; }
6609 if test -z "$ac_cv_prog_RANLIB"; then
6610 ac_ct_RANLIB=$RANLIB
6611 # Extract the first word of "ranlib", so it can be a program name with args.
6612 set dummy ranlib; ac_word=$2
6613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6614 $as_echo_n "checking for $ac_word... " >&6; }
6615 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6616 $as_echo_n "(cached) " >&6
6618 if test -n "$ac_ct_RANLIB"; then
6619 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6625 test -z "$as_dir" && as_dir=.
6626 for ac_exec_ext in '' $ac_executable_extensions; do
6627 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6628 ac_cv_prog_ac_ct_RANLIB="ranlib"
6629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6638 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6639 if test -n "$ac_ct_RANLIB"; then
6640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6641 $as_echo "$ac_ct_RANLIB" >&6; }
6643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6644 $as_echo "no" >&6; }
6647 if test "x$ac_ct_RANLIB" = x; then
6650 case $cross_compiling:$ac_tool_warned in
6652 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6653 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6654 ac_tool_warned=yes ;;
6656 RANLIB=$ac_ct_RANLIB
6659 RANLIB="$ac_cv_prog_RANLIB"
6666 if test -n "$GCC"; then
6667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the -Werror option is usable" >&5
6668 $as_echo_n "checking whether the -Werror option is usable... " >&6; }
6669 if ${gl_cv_cc_vis_werror+:} false; then :
6670 $as_echo_n "(cached) " >&6
6673 gl_save_CFLAGS="$CFLAGS"
6674 CFLAGS="$CFLAGS -Werror"
6675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6676 /* end confdefs.h. */
6686 if ac_fn_c_try_compile "$LINENO"; then :
6687 gl_cv_cc_vis_werror=yes
6689 gl_cv_cc_vis_werror=no
6691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6692 CFLAGS="$gl_save_CFLAGS"
6695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_vis_werror" >&5
6696 $as_echo "$gl_cv_cc_vis_werror" >&6; }
6697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5
6698 $as_echo_n "checking for simple visibility declarations... " >&6; }
6699 if ${gl_cv_cc_visibility+:} false; then :
6700 $as_echo_n "(cached) " >&6
6703 gl_save_CFLAGS="$CFLAGS"
6704 CFLAGS="$CFLAGS -fvisibility=hidden"
6705 if test $gl_cv_cc_vis_werror = yes; then
6706 CFLAGS="$CFLAGS -Werror"
6708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6709 /* end confdefs.h. */
6710 extern __attribute__((__visibility__("hidden"))) int hiddenvar;
6711 extern __attribute__((__visibility__("default"))) int exportedvar;
6712 extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
6713 extern __attribute__((__visibility__("default"))) int exportedfunc (void);
6714 void dummyfunc (void) {}
6724 if ac_fn_c_try_compile "$LINENO"; then :
6725 gl_cv_cc_visibility=yes
6727 gl_cv_cc_visibility=no
6729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6730 CFLAGS="$gl_save_CFLAGS"
6733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5
6734 $as_echo "$gl_cv_cc_visibility" >&6; }
6735 if test $gl_cv_cc_visibility = yes; then
6736 CFLAG_VISIBILITY="-fvisibility=hidden"
6743 cat >>confdefs.h <<_ACEOF
6744 #define HAVE_VISIBILITY $HAVE_VISIBILITY
6748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
6749 $as_echo_n "checking for inline... " >&6; }
6750 if ${ac_cv_c_inline+:} false; then :
6751 $as_echo_n "(cached) " >&6
6754 for ac_kw in inline __inline__ __inline; do
6755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6756 /* end confdefs.h. */
6759 static $ac_kw foo_t static_foo () {return 0; }
6760 $ac_kw foo_t foo () {return 0; }
6764 if ac_fn_c_try_compile "$LINENO"; then :
6765 ac_cv_c_inline=$ac_kw
6767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6768 test "$ac_cv_c_inline" != no && break
6772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
6773 $as_echo "$ac_cv_c_inline" >&6; }
6775 case $ac_cv_c_inline in
6778 case $ac_cv_c_inline in
6780 *) ac_val=$ac_cv_c_inline;;
6782 cat >>confdefs.h <<_ACEOF
6784 #define inline $ac_val
6790 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6791 if test "x$ac_cv_type_size_t" = xyes; then :
6795 cat >>confdefs.h <<_ACEOF
6796 #define size_t unsigned int
6802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
6803 $as_echo_n "checking for stdint.h... " >&6; }
6804 if ${gl_cv_header_stdint_h+:} false; then :
6805 $as_echo_n "(cached) " >&6
6807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6808 /* end confdefs.h. */
6809 #include <sys/types.h>
6814 uintmax_t i = (uintmax_t) -1; return !i;
6819 if ac_fn_c_try_compile "$LINENO"; then :
6820 gl_cv_header_stdint_h=yes
6822 gl_cv_header_stdint_h=no
6824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
6827 $as_echo "$gl_cv_header_stdint_h" >&6; }
6828 if test $gl_cv_header_stdint_h = yes; then
6830 cat >>confdefs.h <<_ACEOF
6831 #define HAVE_STDINT_H_WITH_UINTMAX 1
6836 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6837 # for constant arguments. Useless!
6838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
6839 $as_echo_n "checking for working alloca.h... " >&6; }
6840 if ${ac_cv_working_alloca_h+:} false; then :
6841 $as_echo_n "(cached) " >&6
6843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6844 /* end confdefs.h. */
6849 char *p = (char *) alloca (2 * sizeof (int));
6855 if ac_fn_c_try_link "$LINENO"; then :
6856 ac_cv_working_alloca_h=yes
6858 ac_cv_working_alloca_h=no
6860 rm -f core conftest.err conftest.$ac_objext \
6861 conftest$ac_exeext conftest.$ac_ext
6863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
6864 $as_echo "$ac_cv_working_alloca_h" >&6; }
6865 if test $ac_cv_working_alloca_h = yes; then
6867 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
6871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
6872 $as_echo_n "checking for alloca... " >&6; }
6873 if ${ac_cv_func_alloca_works+:} false; then :
6874 $as_echo_n "(cached) " >&6
6876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6877 /* end confdefs.h. */
6879 # define alloca __builtin_alloca
6882 # include <malloc.h>
6883 # define alloca _alloca
6885 # ifdef HAVE_ALLOCA_H
6886 # include <alloca.h>
6891 # ifndef alloca /* predefined by HP cc +Olibcalls */
6892 void *alloca (size_t);
6902 char *p = (char *) alloca (1);
6908 if ac_fn_c_try_link "$LINENO"; then :
6909 ac_cv_func_alloca_works=yes
6911 ac_cv_func_alloca_works=no
6913 rm -f core conftest.err conftest.$ac_objext \
6914 conftest$ac_exeext conftest.$ac_ext
6916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
6917 $as_echo "$ac_cv_func_alloca_works" >&6; }
6919 if test $ac_cv_func_alloca_works = yes; then
6921 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
6924 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6925 # that cause trouble. Some versions do not even contain alloca or
6926 # contain a buggy version. If you still want to use their alloca,
6927 # use ar to extract alloca.o from them instead of compiling alloca.c.
6929 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
6931 $as_echo "#define C_ALLOCA 1" >>confdefs.h
6934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
6935 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
6936 if ${ac_cv_os_cray+:} false; then :
6937 $as_echo_n "(cached) " >&6
6939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6940 /* end confdefs.h. */
6941 #if defined CRAY && ! defined CRAY2
6948 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6949 $EGREP "webecray" >/dev/null 2>&1; then :
6957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
6958 $as_echo "$ac_cv_os_cray" >&6; }
6959 if test $ac_cv_os_cray = yes; then
6960 for ac_func in _getb67 GETB67 getb67; do
6961 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6962 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6963 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6965 cat >>confdefs.h <<_ACEOF
6966 #define CRAY_STACKSEG_END $ac_func
6975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
6976 $as_echo_n "checking stack direction for C alloca... " >&6; }
6977 if ${ac_cv_c_stack_direction+:} false; then :
6978 $as_echo_n "(cached) " >&6
6980 if test "$cross_compiling" = yes; then :
6981 ac_cv_c_stack_direction=0
6983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6984 /* end confdefs.h. */
6985 $ac_includes_default
6987 find_stack_direction (int *addr, int depth)
6992 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
6993 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
6998 main (int argc, char **argv)
7000 return find_stack_direction (0, argc + !argv + 20) < 0;
7003 if ac_fn_c_try_run "$LINENO"; then :
7004 ac_cv_c_stack_direction=1
7006 ac_cv_c_stack_direction=-1
7008 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7009 conftest.$ac_objext conftest.beam conftest.$ac_ext
7013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
7014 $as_echo "$ac_cv_c_stack_direction" >&6; }
7015 cat >>confdefs.h <<_ACEOF
7016 #define STACK_DIRECTION $ac_cv_c_stack_direction
7025 for ac_header in $ac_header_list
7027 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7028 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7030 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7031 cat >>confdefs.h <<_ACEOF
7032 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7046 for ac_func in getpagesize
7048 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
7049 if test "x$ac_cv_func_getpagesize" = xyes; then :
7050 cat >>confdefs.h <<_ACEOF
7051 #define HAVE_GETPAGESIZE 1
7057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
7058 $as_echo_n "checking for working mmap... " >&6; }
7059 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
7060 $as_echo_n "(cached) " >&6
7062 if test "$cross_compiling" = yes; then :
7063 ac_cv_func_mmap_fixed_mapped=no
7065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7066 /* end confdefs.h. */
7067 $ac_includes_default
7068 /* malloc might have been renamed as rpl_malloc. */
7071 /* Thanks to Mike Haertel and Jim Avera for this test.
7072 Here is a matrix of mmap possibilities:
7073 mmap private not fixed
7074 mmap private fixed at somewhere currently unmapped
7075 mmap private fixed at somewhere already mapped
7076 mmap shared not fixed
7077 mmap shared fixed at somewhere currently unmapped
7078 mmap shared fixed at somewhere already mapped
7079 For private mappings, we should verify that changes cannot be read()
7080 back from the file, nor mmap's back from the file at a different
7081 address. (There have been systems where private was not correctly
7082 implemented like the infamous i386 svr4.0, and systems where the
7083 VM page cache was not coherent with the file system buffer cache
7084 like early versions of FreeBSD and possibly contemporary NetBSD.)
7085 For shared mappings, we should conversely verify that changes get
7086 propagated back to all the places they're supposed to be.
7088 Grep wants private fixed already mapped.
7089 The main things grep needs to know about mmap are:
7090 * does it exist and is it safe to write into the mmap'd area
7091 * how to use it (BSD variants) */
7094 #include <sys/mman.h>
7096 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7100 /* This mess was copied from the GNU getpagesize.h. */
7101 #ifndef HAVE_GETPAGESIZE
7102 # ifdef _SC_PAGESIZE
7103 # define getpagesize() sysconf(_SC_PAGESIZE)
7104 # else /* no _SC_PAGESIZE */
7105 # ifdef HAVE_SYS_PARAM_H
7106 # include <sys/param.h>
7107 # ifdef EXEC_PAGESIZE
7108 # define getpagesize() EXEC_PAGESIZE
7109 # else /* no EXEC_PAGESIZE */
7111 # define getpagesize() NBPG * CLSIZE
7114 # endif /* no CLSIZE */
7115 # else /* no NBPG */
7117 # define getpagesize() NBPC
7118 # else /* no NBPC */
7120 # define getpagesize() PAGESIZE
7121 # endif /* PAGESIZE */
7122 # endif /* no NBPC */
7123 # endif /* no NBPG */
7124 # endif /* no EXEC_PAGESIZE */
7125 # else /* no HAVE_SYS_PARAM_H */
7126 # define getpagesize() 8192 /* punt totally */
7127 # endif /* no HAVE_SYS_PARAM_H */
7128 # endif /* no _SC_PAGESIZE */
7130 #endif /* no HAVE_GETPAGESIZE */
7135 char *data, *data2, *data3;
7140 pagesize = getpagesize ();
7142 /* First, make a file with some known garbage in it. */
7143 data = (char *) malloc (pagesize);
7146 for (i = 0; i < pagesize; ++i)
7147 *(data + i) = rand ();
7149 fd = creat ("conftest.mmap", 0600);
7152 if (write (fd, data, pagesize) != pagesize)
7156 /* Next, check that the tail of a page is zero-filled. File must have
7157 non-zero length, otherwise we risk SIGBUS for entire page. */
7158 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7162 if (write (fd2, cdata2, 1) != 1)
7164 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7165 if (data2 == MAP_FAILED)
7167 for (i = 0; i < pagesize; ++i)
7171 if (munmap (data2, pagesize))
7174 /* Next, try to mmap the file at a fixed address which already has
7175 something else allocated at it. If we can, also make sure that
7176 we see the same garbage. */
7177 fd = open ("conftest.mmap", O_RDWR);
7180 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7181 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7183 for (i = 0; i < pagesize; ++i)
7184 if (*(data + i) != *(data2 + i))
7187 /* Finally, make sure that changes to the mapped area do not
7188 percolate back to the file as seen by read(). (This is a bug on
7189 some variants of i386 svr4.0.) */
7190 for (i = 0; i < pagesize; ++i)
7191 *(data2 + i) = *(data2 + i) + 1;
7192 data3 = (char *) malloc (pagesize);
7195 if (read (fd, data3, pagesize) != pagesize)
7197 for (i = 0; i < pagesize; ++i)
7198 if (*(data + i) != *(data3 + i))
7204 if ac_fn_c_try_run "$LINENO"; then :
7205 ac_cv_func_mmap_fixed_mapped=yes
7207 ac_cv_func_mmap_fixed_mapped=no
7209 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7210 conftest.$ac_objext conftest.beam conftest.$ac_ext
7214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
7215 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
7216 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7218 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
7221 rm -f conftest.mmap conftest.txt
7225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
7226 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
7227 if ${gt_cv_int_divbyzero_sigfpe+:} false; then :
7228 $as_echo_n "(cached) " >&6
7231 gt_cv_int_divbyzero_sigfpe=
7233 macos* | darwin[6-9]* | darwin[1-9][0-9]*)
7234 # On Mac OS X 10.2 or newer, just assume the same as when cross-
7235 # compiling. If we were to perform the real test, 1 Crash Report
7236 # dialog window would pop up.
7238 i[34567]86 | x86_64)
7239 gt_cv_int_divbyzero_sigfpe="guessing yes" ;;
7243 if test -z "$gt_cv_int_divbyzero_sigfpe"; then
7244 if test "$cross_compiling" = yes; then :
7246 # Guess based on the CPU.
7248 alpha* | i[34567]86 | x86_64 | m68k | s390*)
7249 gt_cv_int_divbyzero_sigfpe="guessing yes";;
7251 gt_cv_int_divbyzero_sigfpe="guessing no";;
7255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7256 /* end confdefs.h. */
7262 sigfpe_handler (int sig)
7264 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
7265 exit (sig != SIGFPE);
7275 signal (SIGFPE, sigfpe_handler);
7276 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
7277 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
7278 signal (SIGTRAP, sigfpe_handler);
7280 /* Linux/SPARC yields signal SIGILL. */
7281 #if defined (__sparc__) && defined (__linux__)
7282 signal (SIGILL, sigfpe_handler);
7291 if ac_fn_c_try_run "$LINENO"; then :
7292 gt_cv_int_divbyzero_sigfpe=yes
7294 gt_cv_int_divbyzero_sigfpe=no
7296 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7297 conftest.$ac_objext conftest.beam conftest.$ac_ext
7303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
7304 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
7305 case "$gt_cv_int_divbyzero_sigfpe" in
7310 cat >>confdefs.h <<_ACEOF
7311 #define INTDIV0_RAISES_SIGFPE $value
7316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
7317 $as_echo_n "checking for inttypes.h... " >&6; }
7318 if ${gl_cv_header_inttypes_h+:} false; then :
7319 $as_echo_n "(cached) " >&6
7321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7322 /* end confdefs.h. */
7324 #include <sys/types.h>
7325 #include <inttypes.h>
7330 uintmax_t i = (uintmax_t) -1; return !i;
7335 if ac_fn_c_try_compile "$LINENO"; then :
7336 gl_cv_header_inttypes_h=yes
7338 gl_cv_header_inttypes_h=no
7340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
7343 $as_echo "$gl_cv_header_inttypes_h" >&6; }
7344 if test $gl_cv_header_inttypes_h = yes; then
7346 cat >>confdefs.h <<_ACEOF
7347 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
7353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
7354 $as_echo_n "checking for unsigned long long int... " >&6; }
7355 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
7356 $as_echo_n "(cached) " >&6
7358 ac_cv_type_unsigned_long_long_int=yes
7359 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
7360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7361 /* end confdefs.h. */
7363 /* For now, do not test the preprocessor; as of 2007 there are too many
7364 implementations with broken preprocessors. Perhaps this can
7365 be revisited in 2012. In the meantime, code should not expect
7366 #if to work with literals wider than 32 bits. */
7367 /* Test literals. */
7368 long long int ll = 9223372036854775807ll;
7369 long long int nll = -9223372036854775807LL;
7370 unsigned long long int ull = 18446744073709551615ULL;
7371 /* Test constant expressions. */
7372 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
7374 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
7380 /* Test availability of runtime routines for shift and division. */
7381 long long int llmax = 9223372036854775807ll;
7382 unsigned long long int ullmax = 18446744073709551615ull;
7383 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
7384 | (llmax / ll) | (llmax % ll)
7385 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
7386 | (ullmax / ull) | (ullmax % ull));
7392 if ac_fn_c_try_link "$LINENO"; then :
7395 ac_cv_type_unsigned_long_long_int=no
7397 rm -f core conftest.err conftest.$ac_objext \
7398 conftest$ac_exeext conftest.$ac_ext
7401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
7402 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
7403 if test $ac_cv_type_unsigned_long_long_int = yes; then
7405 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
7412 if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
7414 test $ac_cv_type_unsigned_long_long_int = yes \
7415 && ac_type='unsigned long long' \
7416 || ac_type='unsigned long'
7418 cat >>confdefs.h <<_ACEOF
7419 #define uintmax_t $ac_type
7424 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
7429 for ac_header in inttypes.h
7431 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
7432 if test "x$ac_cv_header_inttypes_h" = xyes; then :
7433 cat >>confdefs.h <<_ACEOF
7434 #define HAVE_INTTYPES_H 1
7441 if test $ac_cv_header_inttypes_h = yes; then
7442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
7443 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
7444 if ${gt_cv_inttypes_pri_broken+:} false; then :
7445 $as_echo_n "(cached) " >&6
7448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7449 /* end confdefs.h. */
7451 #include <inttypes.h>
7464 if ac_fn_c_try_compile "$LINENO"; then :
7465 gt_cv_inttypes_pri_broken=no
7467 gt_cv_inttypes_pri_broken=yes
7469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
7473 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
7475 if test "$gt_cv_inttypes_pri_broken" = yes; then
7477 cat >>confdefs.h <<_ACEOF
7478 #define PRI_MACROS_BROKEN 1
7492 # Check whether --enable-threads was given.
7493 if test "${enable_threads+set}" = set; then :
7494 enableval=$enable_threads; gl_use_threads=$enableval
7496 if test -n "$gl_use_threads_default"; then
7497 gl_use_threads="$gl_use_threads_default"
7500 osf*) gl_use_threads=no ;;
7503 1.[0-5].*) gl_use_threads=no ;;
7504 *) gl_use_threads=yes ;;
7507 *) gl_use_threads=yes ;;
7513 if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
7514 # For using <pthread.h>:
7517 # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
7518 # groks <pthread.h>. cc also understands the flag -pthread, but
7519 # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
7520 # 2. putting a flag into CPPFLAGS that has an effect on the linker
7521 # causes the AC_LINK_IFELSE test below to succeed unexpectedly,
7522 # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
7523 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
7526 # Some systems optimize for single-threaded programs by default, and
7527 # need special flags to disable these optimizations. For example, the
7528 # definition of 'errno' in <errno.h>.
7530 aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;;
7531 solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;;
7539 if test "X$prefix" = "XNONE"; then
7540 acl_final_prefix="$ac_default_prefix"
7542 acl_final_prefix="$prefix"
7544 if test "X$exec_prefix" = "XNONE"; then
7545 acl_final_exec_prefix='${prefix}'
7547 acl_final_exec_prefix="$exec_prefix"
7549 acl_save_prefix="$prefix"
7550 prefix="$acl_final_prefix"
7551 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7552 prefix="$acl_save_prefix"
7556 # Check whether --with-gnu-ld was given.
7557 if test "${with_gnu_ld+set}" = set; then :
7558 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7563 # Prepare PATH_SEPARATOR.
7564 # The user is always right.
7565 if test "${PATH_SEPARATOR+set}" != set; then
7566 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
7567 # contains only /bin. Note that ksh looks also at the FPATH variable,
7568 # so we have to set that as well for the test.
7570 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7571 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7572 || PATH_SEPARATOR=';'
7577 if test "$GCC" = yes; then
7578 # Check if gcc -print-prog-name=ld gives a path.
7579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7580 $as_echo_n "checking for ld used by $CC... " >&6; }
7583 # gcc leaves a trailing carriage return which upsets mingw
7584 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7586 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7589 # Accept absolute paths.
7591 re_direlt='/[^/][^/]*/\.\./'
7592 # Canonicalize the pathname of ld
7593 ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'`
7594 while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do
7595 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
7597 test -z "$LD" && LD="$ac_prog"
7600 # If it fails, then pretend we aren't using GCC.
7604 # If it is relative, then search for the first ld in PATH.
7608 elif test "$with_gnu_ld" = yes; then
7609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7610 $as_echo_n "checking for GNU ld... " >&6; }
7612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7613 $as_echo_n "checking for non-GNU ld... " >&6; }
7615 if ${acl_cv_path_LD+:} false; then :
7616 $as_echo_n "(cached) " >&6
7618 if test -z "$LD"; then
7619 acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7620 for ac_dir in $PATH; do
7622 test -z "$ac_dir" && ac_dir=.
7623 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7624 acl_cv_path_LD="$ac_dir/$ac_prog"
7625 # Check to see if the program is GNU ld. I'd rather use --version,
7626 # but apparently some variants of GNU ld only accept -v.
7627 # Break only if it was the GNU/non-GNU ld that we prefer.
7628 case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
7629 *GNU* | *'with BFD'*)
7630 test "$with_gnu_ld" != no && break
7633 test "$with_gnu_ld" != yes && break
7640 acl_cv_path_LD="$LD" # Let the user override the test with a path.
7644 LD="$acl_cv_path_LD"
7645 if test -n "$LD"; then
7646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7647 $as_echo "$LD" >&6; }
7649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7650 $as_echo "no" >&6; }
7652 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7654 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7655 if ${acl_cv_prog_gnu_ld+:} false; then :
7656 $as_echo_n "(cached) " >&6
7658 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7659 case `$LD -v 2>&1 </dev/null` in
7660 *GNU* | *'with BFD'*)
7661 acl_cv_prog_gnu_ld=yes
7664 acl_cv_prog_gnu_ld=no
7668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
7669 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
7670 with_gnu_ld=$acl_cv_prog_gnu_ld
7675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
7676 $as_echo_n "checking for shared library run path origin... " >&6; }
7677 if ${acl_cv_rpath+:} false; then :
7678 $as_echo_n "(cached) " >&6
7681 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
7682 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
7689 $as_echo "$acl_cv_rpath" >&6; }
7691 acl_libext="$acl_cv_libext"
7692 acl_shlibext="$acl_cv_shlibext"
7693 acl_libname_spec="$acl_cv_libname_spec"
7694 acl_library_names_spec="$acl_cv_library_names_spec"
7695 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
7696 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
7697 acl_hardcode_direct="$acl_cv_hardcode_direct"
7698 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
7699 # Check whether --enable-rpath was given.
7700 if test "${enable_rpath+set}" = set; then :
7701 enableval=$enable_rpath; :
7713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
7714 $as_echo_n "checking for 64-bit host... " >&6; }
7715 if ${gl_cv_solaris_64bit+:} false; then :
7716 $as_echo_n "(cached) " >&6
7718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7719 /* end confdefs.h. */
7726 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7727 $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
7728 gl_cv_solaris_64bit=yes
7730 gl_cv_solaris_64bit=no
7736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
7737 $as_echo "$gl_cv_solaris_64bit" >&6; }
7738 if test $gl_cv_solaris_64bit = yes; then
7739 acl_libdirstem=lib/64
7741 sparc*) acl_libdirstem2=lib/sparcv9 ;;
7742 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
7747 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
7748 if test -n "$searchpath"; then
7749 acl_save_IFS="${IFS= }"; IFS=":"
7750 for searchdir in $searchpath; do
7751 if test -d "$searchdir"; then
7752 case "$searchdir" in
7753 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
7755 # Better ignore directories of this form. They are misleading.
7757 *) searchdir=`cd "$searchdir" && pwd`
7758 case "$searchdir" in
7759 */lib64 ) acl_libdirstem=lib64 ;;
7768 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
7777 if test "$gl_use_threads" != no; then
7778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5
7779 $as_echo_n "checking whether imported symbols can be declared weak... " >&6; }
7780 if ${gl_cv_have_weak+:} false; then :
7781 $as_echo_n "(cached) " >&6
7784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7785 /* end confdefs.h. */
7786 extern void xyzzy ();
7796 if ac_fn_c_try_link "$LINENO"; then :
7797 gl_cv_have_weak=maybe
7799 rm -f core conftest.err conftest.$ac_objext \
7800 conftest$ac_exeext conftest.$ac_ext
7801 if test $gl_cv_have_weak = maybe; then
7802 if test "$cross_compiling" = yes; then :
7803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7804 /* end confdefs.h. */
7806 Extensible Linking Format
7810 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7811 $EGREP "Extensible Linking Format" >/dev/null 2>&1; then :
7812 gl_cv_have_weak="guessing yes"
7814 gl_cv_have_weak="guessing no"
7820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7821 /* end confdefs.h. */
7827 return (fputs == NULL);
7830 if ac_fn_c_try_run "$LINENO"; then :
7835 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7836 conftest.$ac_objext conftest.beam conftest.$ac_ext
7842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5
7843 $as_echo "$gl_cv_have_weak" >&6; }
7844 if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
7845 # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
7846 # it groks <pthread.h>. It's added above, in gl_THREADLIB_EARLY_BODY.
7847 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
7848 if test "x$ac_cv_header_pthread_h" = xyes; then :
7849 gl_have_pthread_h=yes
7851 gl_have_pthread_h=no
7855 if test "$gl_have_pthread_h" = yes; then
7856 # Other possible tests:
7857 # -lpthreads (FSU threads, PCthreads)
7860 # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
7861 # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
7862 # the second one only in libpthread, and lock.c needs it.
7863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7864 /* end confdefs.h. */
7865 #include <pthread.h>
7869 pthread_mutex_lock((pthread_mutex_t*)0);
7870 pthread_mutexattr_init((pthread_mutexattr_t*)0);
7875 if ac_fn_c_try_link "$LINENO"; then :
7878 rm -f core conftest.err conftest.$ac_objext \
7879 conftest$ac_exeext conftest.$ac_ext
7880 # Test for libpthread by looking for pthread_kill. (Not pthread_self,
7881 # since it is defined as a macro on OSF/1.)
7882 if test -n "$gl_have_pthread"; then
7883 # The program links fine without libpthread. But it may actually
7884 # need to link with libpthread in order to create multiple threads.
7885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
7886 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
7887 if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
7888 $as_echo_n "(cached) " >&6
7890 ac_check_lib_save_LIBS=$LIBS
7891 LIBS="-lpthread $LIBS"
7892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7893 /* end confdefs.h. */
7895 /* Override any GCC internal prototype to avoid an error.
7896 Use char because int might match the return type of a GCC
7897 builtin and then its argument prototype would still apply. */
7901 char pthread_kill ();
7905 return pthread_kill ();
7910 if ac_fn_c_try_link "$LINENO"; then :
7911 ac_cv_lib_pthread_pthread_kill=yes
7913 ac_cv_lib_pthread_pthread_kill=no
7915 rm -f core conftest.err conftest.$ac_objext \
7916 conftest$ac_exeext conftest.$ac_ext
7917 LIBS=$ac_check_lib_save_LIBS
7919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
7920 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
7921 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
7922 LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
7923 # On Solaris and HP-UX, most pthread functions exist also in libc.
7924 # Therefore pthread_in_use() needs to actually try to create a
7925 # thread: pthread_create from libc will fail, whereas
7926 # pthread_create will actually create a thread.
7930 $as_echo "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h
7937 # Some library is needed. Try libpthread and libc_r.
7938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
7939 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
7940 if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
7941 $as_echo_n "(cached) " >&6
7943 ac_check_lib_save_LIBS=$LIBS
7944 LIBS="-lpthread $LIBS"
7945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7946 /* end confdefs.h. */
7948 /* Override any GCC internal prototype to avoid an error.
7949 Use char because int might match the return type of a GCC
7950 builtin and then its argument prototype would still apply. */
7954 char pthread_kill ();
7958 return pthread_kill ();
7963 if ac_fn_c_try_link "$LINENO"; then :
7964 ac_cv_lib_pthread_pthread_kill=yes
7966 ac_cv_lib_pthread_pthread_kill=no
7968 rm -f core conftest.err conftest.$ac_objext \
7969 conftest$ac_exeext conftest.$ac_ext
7970 LIBS=$ac_check_lib_save_LIBS
7972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
7973 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
7974 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
7976 LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread
7977 LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
7980 if test -z "$gl_have_pthread"; then
7982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5
7983 $as_echo_n "checking for pthread_kill in -lc_r... " >&6; }
7984 if ${ac_cv_lib_c_r_pthread_kill+:} false; then :
7985 $as_echo_n "(cached) " >&6
7987 ac_check_lib_save_LIBS=$LIBS
7989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7990 /* end confdefs.h. */
7992 /* Override any GCC internal prototype to avoid an error.
7993 Use char because int might match the return type of a GCC
7994 builtin and then its argument prototype would still apply. */
7998 char pthread_kill ();
8002 return pthread_kill ();
8007 if ac_fn_c_try_link "$LINENO"; then :
8008 ac_cv_lib_c_r_pthread_kill=yes
8010 ac_cv_lib_c_r_pthread_kill=no
8012 rm -f core conftest.err conftest.$ac_objext \
8013 conftest$ac_exeext conftest.$ac_ext
8014 LIBS=$ac_check_lib_save_LIBS
8016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5
8017 $as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; }
8018 if test "x$ac_cv_lib_c_r_pthread_kill" = xyes; then :
8020 LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r
8021 LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r
8026 if test -n "$gl_have_pthread"; then
8027 gl_threads_api=posix
8029 $as_echo "#define USE_POSIX_THREADS 1" >>confdefs.h
8031 if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
8032 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
8034 $as_echo "#define USE_POSIX_THREADS_WEAK 1" >>confdefs.h
8043 if test -z "$gl_have_pthread"; then
8044 if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then
8045 gl_have_solaristhread=
8046 gl_save_LIBS="$LIBS"
8047 LIBS="$LIBS -lthread"
8048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8049 /* end confdefs.h. */
8062 if ac_fn_c_try_link "$LINENO"; then :
8063 gl_have_solaristhread=yes
8065 rm -f core conftest.err conftest.$ac_objext \
8066 conftest$ac_exeext conftest.$ac_ext
8067 LIBS="$gl_save_LIBS"
8068 if test -n "$gl_have_solaristhread"; then
8069 gl_threads_api=solaris
8071 LTLIBTHREAD=-lthread
8072 LIBMULTITHREAD="$LIBTHREAD"
8073 LTLIBMULTITHREAD="$LTLIBTHREAD"
8075 $as_echo "#define USE_SOLARIS_THREADS 1" >>confdefs.h
8077 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
8079 $as_echo "#define USE_SOLARIS_THREADS_WEAK 1" >>confdefs.h
8087 if test "$gl_use_threads" = pth; then
8088 gl_save_CPPFLAGS="$CPPFLAGS"
8094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libpth" >&5
8095 $as_echo_n "checking how to link with libpth... " >&6; }
8096 if ${ac_cv_libpth_libs+:} false; then :
8097 $as_echo_n "(cached) " >&6
8109 acl_save_prefix="$prefix"
8110 prefix="$acl_final_prefix"
8111 acl_save_exec_prefix="$exec_prefix"
8112 exec_prefix="$acl_final_exec_prefix"
8114 eval additional_includedir=\"$includedir\"
8115 eval additional_libdir=\"$libdir\"
8117 exec_prefix="$acl_save_exec_prefix"
8118 prefix="$acl_save_prefix"
8121 # Check whether --with-libpth-prefix was given.
8122 if test "${with_libpth_prefix+set}" = set; then :
8123 withval=$with_libpth_prefix;
8124 if test "X$withval" = "Xno"; then
8127 if test "X$withval" = "X"; then
8129 acl_save_prefix="$prefix"
8130 prefix="$acl_final_prefix"
8131 acl_save_exec_prefix="$exec_prefix"
8132 exec_prefix="$acl_final_exec_prefix"
8134 eval additional_includedir=\"$includedir\"
8135 eval additional_libdir=\"$libdir\"
8137 exec_prefix="$acl_save_exec_prefix"
8138 prefix="$acl_save_prefix"
8141 additional_includedir="$withval/include"
8142 additional_libdir="$withval/$acl_libdirstem"
8143 if test "$acl_libdirstem2" != "$acl_libdirstem" \
8144 && ! test -d "$withval/$acl_libdirstem"; then
8145 additional_libdir="$withval/$acl_libdirstem2"
8159 names_already_handled=
8160 names_next_round='pth '
8161 while test -n "$names_next_round"; do
8162 names_this_round="$names_next_round"
8164 for name in $names_this_round; do
8166 for n in $names_already_handled; do
8167 if test "$n" = "$name"; then
8172 if test -z "$already_handled"; then
8173 names_already_handled="$names_already_handled $name"
8174 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
8175 eval value=\"\$HAVE_LIB$uppername\"
8176 if test -n "$value"; then
8177 if test "$value" = yes; then
8178 eval value=\"\$LIB$uppername\"
8179 test -z "$value" || LIBPTH="${LIBPTH}${LIBPTH:+ }$value"
8180 eval value=\"\$LTLIB$uppername\"
8181 test -z "$value" || LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$value"
8190 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
8191 if test -n "$acl_shlibext"; then
8192 shrext=".$acl_shlibext" # typically: shrext=.so
8196 if test $use_additional = yes; then
8197 dir="$additional_libdir"
8198 if test -n "$acl_shlibext"; then
8199 if test -f "$dir/$libname$shrext"; then
8201 found_so="$dir/$libname$shrext"
8203 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8204 ver=`(cd "$dir" && \
8205 for f in "$libname$shrext".*; do echo "$f"; done \
8206 | sed -e "s,^$libname$shrext\\\\.,," \
8207 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8208 | sed 1q ) 2>/dev/null`
8209 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8211 found_so="$dir/$libname$shrext.$ver"
8214 eval library_names=\"$acl_library_names_spec\"
8215 for f in $library_names; do
8216 if test -f "$dir/$f"; then
8225 if test "X$found_dir" = "X"; then
8226 if test -f "$dir/$libname.$acl_libext"; then
8228 found_a="$dir/$libname.$acl_libext"
8231 if test "X$found_dir" != "X"; then
8232 if test -f "$dir/$libname.la"; then
8233 found_la="$dir/$libname.la"
8237 if test "X$found_dir" = "X"; then
8238 for x in $LDFLAGS $LTLIBPTH; do
8240 acl_save_prefix="$prefix"
8241 prefix="$acl_final_prefix"
8242 acl_save_exec_prefix="$exec_prefix"
8243 exec_prefix="$acl_final_exec_prefix"
8245 exec_prefix="$acl_save_exec_prefix"
8246 prefix="$acl_save_prefix"
8250 dir=`echo "X$x" | sed -e 's/^X-L//'`
8251 if test -n "$acl_shlibext"; then
8252 if test -f "$dir/$libname$shrext"; then
8254 found_so="$dir/$libname$shrext"
8256 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8257 ver=`(cd "$dir" && \
8258 for f in "$libname$shrext".*; do echo "$f"; done \
8259 | sed -e "s,^$libname$shrext\\\\.,," \
8260 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8261 | sed 1q ) 2>/dev/null`
8262 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8264 found_so="$dir/$libname$shrext.$ver"
8267 eval library_names=\"$acl_library_names_spec\"
8268 for f in $library_names; do
8269 if test -f "$dir/$f"; then
8278 if test "X$found_dir" = "X"; then
8279 if test -f "$dir/$libname.$acl_libext"; then
8281 found_a="$dir/$libname.$acl_libext"
8284 if test "X$found_dir" != "X"; then
8285 if test -f "$dir/$libname.la"; then
8286 found_la="$dir/$libname.la"
8291 if test "X$found_dir" != "X"; then
8296 if test "X$found_dir" != "X"; then
8297 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name"
8298 if test "X$found_so" != "X"; then
8299 if test "$enable_rpath" = no \
8300 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
8301 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
8302 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
8305 for x in $ltrpathdirs; do
8306 if test "X$x" = "X$found_dir"; then
8311 if test -z "$haveit"; then
8312 ltrpathdirs="$ltrpathdirs $found_dir"
8314 if test "$acl_hardcode_direct" = yes; then
8315 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
8317 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
8318 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
8320 for x in $rpathdirs; do
8321 if test "X$x" = "X$found_dir"; then
8326 if test -z "$haveit"; then
8327 rpathdirs="$rpathdirs $found_dir"
8331 for x in $LDFLAGS $LIBPTH; do
8333 acl_save_prefix="$prefix"
8334 prefix="$acl_final_prefix"
8335 acl_save_exec_prefix="$exec_prefix"
8336 exec_prefix="$acl_final_exec_prefix"
8338 exec_prefix="$acl_save_exec_prefix"
8339 prefix="$acl_save_prefix"
8341 if test "X$x" = "X-L$found_dir"; then
8346 if test -z "$haveit"; then
8347 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir"
8349 if test "$acl_hardcode_minus_L" != no; then
8350 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
8352 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
8358 if test "X$found_a" != "X"; then
8359 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_a"
8361 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name"
8364 additional_includedir=
8365 case "$found_dir" in
8366 */$acl_libdirstem | */$acl_libdirstem/)
8367 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
8368 if test "$name" = 'pth'; then
8369 LIBPTH_PREFIX="$basedir"
8371 additional_includedir="$basedir/include"
8373 */$acl_libdirstem2 | */$acl_libdirstem2/)
8374 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
8375 if test "$name" = 'pth'; then
8376 LIBPTH_PREFIX="$basedir"
8378 additional_includedir="$basedir/include"
8381 if test "X$additional_includedir" != "X"; then
8382 if test "X$additional_includedir" != "X/usr/include"; then
8384 if test "X$additional_includedir" = "X/usr/local/include"; then
8385 if test -n "$GCC"; then
8387 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
8391 if test -z "$haveit"; then
8392 for x in $CPPFLAGS $INCPTH; do
8394 acl_save_prefix="$prefix"
8395 prefix="$acl_final_prefix"
8396 acl_save_exec_prefix="$exec_prefix"
8397 exec_prefix="$acl_final_exec_prefix"
8399 exec_prefix="$acl_save_exec_prefix"
8400 prefix="$acl_save_prefix"
8402 if test "X$x" = "X-I$additional_includedir"; then
8407 if test -z "$haveit"; then
8408 if test -d "$additional_includedir"; then
8409 INCPTH="${INCPTH}${INCPTH:+ }-I$additional_includedir"
8415 if test -n "$found_la"; then
8416 save_libdir="$libdir"
8418 */* | *\\*) . "$found_la" ;;
8419 *) . "./$found_la" ;;
8421 libdir="$save_libdir"
8422 for dep in $dependency_libs; do
8425 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8426 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
8427 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
8429 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
8430 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
8431 if test -n "$GCC"; then
8433 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
8437 if test -z "$haveit"; then
8439 for x in $LDFLAGS $LIBPTH; do
8441 acl_save_prefix="$prefix"
8442 prefix="$acl_final_prefix"
8443 acl_save_exec_prefix="$exec_prefix"
8444 exec_prefix="$acl_final_exec_prefix"
8446 exec_prefix="$acl_save_exec_prefix"
8447 prefix="$acl_save_prefix"
8449 if test "X$x" = "X-L$additional_libdir"; then
8454 if test -z "$haveit"; then
8455 if test -d "$additional_libdir"; then
8456 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$additional_libdir"
8460 for x in $LDFLAGS $LTLIBPTH; do
8462 acl_save_prefix="$prefix"
8463 prefix="$acl_final_prefix"
8464 acl_save_exec_prefix="$exec_prefix"
8465 exec_prefix="$acl_final_exec_prefix"
8467 exec_prefix="$acl_save_exec_prefix"
8468 prefix="$acl_save_prefix"
8470 if test "X$x" = "X-L$additional_libdir"; then
8475 if test -z "$haveit"; then
8476 if test -d "$additional_libdir"; then
8477 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir"
8484 dir=`echo "X$dep" | sed -e 's/^X-R//'`
8485 if test "$enable_rpath" != no; then
8487 for x in $rpathdirs; do
8488 if test "X$x" = "X$dir"; then
8493 if test -z "$haveit"; then
8494 rpathdirs="$rpathdirs $dir"
8497 for x in $ltrpathdirs; do
8498 if test "X$x" = "X$dir"; then
8503 if test -z "$haveit"; then
8504 ltrpathdirs="$ltrpathdirs $dir"
8509 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8512 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8515 LIBPTH="${LIBPTH}${LIBPTH:+ }$dep"
8516 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$dep"
8522 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
8523 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-l$name"
8529 if test "X$rpathdirs" != "X"; then
8530 if test -n "$acl_hardcode_libdir_separator"; then
8532 for found_dir in $rpathdirs; do
8533 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
8535 acl_save_libdir="$libdir"
8537 eval flag=\"$acl_hardcode_libdir_flag_spec\"
8538 libdir="$acl_save_libdir"
8539 LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
8541 for found_dir in $rpathdirs; do
8542 acl_save_libdir="$libdir"
8544 eval flag=\"$acl_hardcode_libdir_flag_spec\"
8545 libdir="$acl_save_libdir"
8546 LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
8550 if test "X$ltrpathdirs" != "X"; then
8551 for found_dir in $ltrpathdirs; do
8552 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir"
8561 ac_cv_libpth_libs="$LIBPTH"
8562 ac_cv_libpth_ltlibs="$LTLIBPTH"
8563 ac_cv_libpth_cppflags="$INCPTH"
8564 ac_cv_libpth_prefix="$LIBPTH_PREFIX"
8567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libpth_libs" >&5
8568 $as_echo "$ac_cv_libpth_libs" >&6; }
8569 LIBPTH="$ac_cv_libpth_libs"
8570 LTLIBPTH="$ac_cv_libpth_ltlibs"
8571 INCPTH="$ac_cv_libpth_cppflags"
8572 LIBPTH_PREFIX="$ac_cv_libpth_prefix"
8574 for element in $INCPTH; do
8576 for x in $CPPFLAGS; do
8578 acl_save_prefix="$prefix"
8579 prefix="$acl_final_prefix"
8580 acl_save_exec_prefix="$exec_prefix"
8581 exec_prefix="$acl_final_exec_prefix"
8583 exec_prefix="$acl_save_exec_prefix"
8584 prefix="$acl_save_prefix"
8586 if test "X$x" = "X$element"; then
8591 if test -z "$haveit"; then
8592 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8604 gl_save_LIBS="$LIBS"
8605 LIBS="$LIBS $LIBPTH"
8606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8607 /* end confdefs.h. */
8617 if ac_fn_c_try_link "$LINENO"; then :
8620 rm -f core conftest.err conftest.$ac_objext \
8621 conftest$ac_exeext conftest.$ac_ext
8622 LIBS="$gl_save_LIBS"
8623 if test -n "$gl_have_pth"; then
8626 LTLIBTHREAD="$LTLIBPTH"
8627 LIBMULTITHREAD="$LIBTHREAD"
8628 LTLIBMULTITHREAD="$LTLIBTHREAD"
8630 $as_echo "#define USE_PTH_THREADS 1" >>confdefs.h
8632 if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
8633 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
8635 $as_echo "#define USE_PTH_THREADS_WEAK 1" >>confdefs.h
8642 CPPFLAGS="$gl_save_CPPFLAGS"
8645 if test -z "$gl_have_pthread"; then
8646 case "$gl_use_threads" in
8647 yes | windows | win32) # The 'win32' is for backward compatibility.
8648 if { case "$host_os" in
8653 gl_threads_api=windows
8655 $as_echo "#define USE_WINDOWS_THREADS 1" >>confdefs.h
8662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multithread API to use" >&5
8663 $as_echo_n "checking for multithread API to use... " >&6; }
8664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_threads_api" >&5
8665 $as_echo "$gl_threads_api" >&6; }
8677 if test "$gl_threads_api" = posix; then
8678 # OSF/1 4.0 and Mac OS X 10.1 lack the pthread_rwlock_t type and the
8679 # pthread_rwlock_* functions.
8680 ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h>
8682 if test "x$ac_cv_type_pthread_rwlock_t" = xyes; then :
8684 $as_echo "#define HAVE_PTHREAD_RWLOCK 1" >>confdefs.h
8688 # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
8689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8690 /* end confdefs.h. */
8692 #include <pthread.h>
8697 #if __FreeBSD__ == 4
8698 error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
8699 #elif (defined __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ \
8700 && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 1070)
8701 error "No, in Mac OS X < 10.7 recursive mutexes actually don't work."
8703 int x = (int)PTHREAD_MUTEX_RECURSIVE;
8711 if ac_fn_c_try_compile "$LINENO"; then :
8713 $as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h
8716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8733 acl_save_prefix="$prefix"
8734 prefix="$acl_final_prefix"
8735 acl_save_exec_prefix="$exec_prefix"
8736 exec_prefix="$acl_final_exec_prefix"
8738 eval additional_includedir=\"$includedir\"
8739 eval additional_libdir=\"$libdir\"
8741 exec_prefix="$acl_save_exec_prefix"
8742 prefix="$acl_save_prefix"
8745 # Check whether --with-libiconv-prefix was given.
8746 if test "${with_libiconv_prefix+set}" = set; then :
8747 withval=$with_libiconv_prefix;
8748 if test "X$withval" = "Xno"; then
8751 if test "X$withval" = "X"; then
8753 acl_save_prefix="$prefix"
8754 prefix="$acl_final_prefix"
8755 acl_save_exec_prefix="$exec_prefix"
8756 exec_prefix="$acl_final_exec_prefix"
8758 eval additional_includedir=\"$includedir\"
8759 eval additional_libdir=\"$libdir\"
8761 exec_prefix="$acl_save_exec_prefix"
8762 prefix="$acl_save_prefix"
8765 additional_includedir="$withval/include"
8766 additional_libdir="$withval/$acl_libdirstem"
8767 if test "$acl_libdirstem2" != "$acl_libdirstem" \
8768 && ! test -d "$withval/$acl_libdirstem"; then
8769 additional_libdir="$withval/$acl_libdirstem2"
8783 names_already_handled=
8784 names_next_round='iconv '
8785 while test -n "$names_next_round"; do
8786 names_this_round="$names_next_round"
8788 for name in $names_this_round; do
8790 for n in $names_already_handled; do
8791 if test "$n" = "$name"; then
8796 if test -z "$already_handled"; then
8797 names_already_handled="$names_already_handled $name"
8798 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
8799 eval value=\"\$HAVE_LIB$uppername\"
8800 if test -n "$value"; then
8801 if test "$value" = yes; then
8802 eval value=\"\$LIB$uppername\"
8803 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
8804 eval value=\"\$LTLIB$uppername\"
8805 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
8814 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
8815 if test -n "$acl_shlibext"; then
8816 shrext=".$acl_shlibext" # typically: shrext=.so
8820 if test $use_additional = yes; then
8821 dir="$additional_libdir"
8822 if test -n "$acl_shlibext"; then
8823 if test -f "$dir/$libname$shrext"; then
8825 found_so="$dir/$libname$shrext"
8827 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8828 ver=`(cd "$dir" && \
8829 for f in "$libname$shrext".*; do echo "$f"; done \
8830 | sed -e "s,^$libname$shrext\\\\.,," \
8831 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8832 | sed 1q ) 2>/dev/null`
8833 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8835 found_so="$dir/$libname$shrext.$ver"
8838 eval library_names=\"$acl_library_names_spec\"
8839 for f in $library_names; do
8840 if test -f "$dir/$f"; then
8849 if test "X$found_dir" = "X"; then
8850 if test -f "$dir/$libname.$acl_libext"; then
8852 found_a="$dir/$libname.$acl_libext"
8855 if test "X$found_dir" != "X"; then
8856 if test -f "$dir/$libname.la"; then
8857 found_la="$dir/$libname.la"
8861 if test "X$found_dir" = "X"; then
8862 for x in $LDFLAGS $LTLIBICONV; do
8864 acl_save_prefix="$prefix"
8865 prefix="$acl_final_prefix"
8866 acl_save_exec_prefix="$exec_prefix"
8867 exec_prefix="$acl_final_exec_prefix"
8869 exec_prefix="$acl_save_exec_prefix"
8870 prefix="$acl_save_prefix"
8874 dir=`echo "X$x" | sed -e 's/^X-L//'`
8875 if test -n "$acl_shlibext"; then
8876 if test -f "$dir/$libname$shrext"; then
8878 found_so="$dir/$libname$shrext"
8880 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8881 ver=`(cd "$dir" && \
8882 for f in "$libname$shrext".*; do echo "$f"; done \
8883 | sed -e "s,^$libname$shrext\\\\.,," \
8884 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8885 | sed 1q ) 2>/dev/null`
8886 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8888 found_so="$dir/$libname$shrext.$ver"
8891 eval library_names=\"$acl_library_names_spec\"
8892 for f in $library_names; do
8893 if test -f "$dir/$f"; then
8902 if test "X$found_dir" = "X"; then
8903 if test -f "$dir/$libname.$acl_libext"; then
8905 found_a="$dir/$libname.$acl_libext"
8908 if test "X$found_dir" != "X"; then
8909 if test -f "$dir/$libname.la"; then
8910 found_la="$dir/$libname.la"
8915 if test "X$found_dir" != "X"; then
8920 if test "X$found_dir" != "X"; then
8921 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
8922 if test "X$found_so" != "X"; then
8923 if test "$enable_rpath" = no \
8924 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
8925 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
8926 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8929 for x in $ltrpathdirs; do
8930 if test "X$x" = "X$found_dir"; then
8935 if test -z "$haveit"; then
8936 ltrpathdirs="$ltrpathdirs $found_dir"
8938 if test "$acl_hardcode_direct" = yes; then
8939 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8941 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
8942 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8944 for x in $rpathdirs; do
8945 if test "X$x" = "X$found_dir"; then
8950 if test -z "$haveit"; then
8951 rpathdirs="$rpathdirs $found_dir"
8955 for x in $LDFLAGS $LIBICONV; do
8957 acl_save_prefix="$prefix"
8958 prefix="$acl_final_prefix"
8959 acl_save_exec_prefix="$exec_prefix"
8960 exec_prefix="$acl_final_exec_prefix"
8962 exec_prefix="$acl_save_exec_prefix"
8963 prefix="$acl_save_prefix"
8965 if test "X$x" = "X-L$found_dir"; then
8970 if test -z "$haveit"; then
8971 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
8973 if test "$acl_hardcode_minus_L" != no; then
8974 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8976 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8982 if test "X$found_a" != "X"; then
8983 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
8985 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
8988 additional_includedir=
8989 case "$found_dir" in
8990 */$acl_libdirstem | */$acl_libdirstem/)
8991 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
8992 if test "$name" = 'iconv'; then
8993 LIBICONV_PREFIX="$basedir"
8995 additional_includedir="$basedir/include"
8997 */$acl_libdirstem2 | */$acl_libdirstem2/)
8998 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
8999 if test "$name" = 'iconv'; then
9000 LIBICONV_PREFIX="$basedir"
9002 additional_includedir="$basedir/include"
9005 if test "X$additional_includedir" != "X"; then
9006 if test "X$additional_includedir" != "X/usr/include"; then
9008 if test "X$additional_includedir" = "X/usr/local/include"; then
9009 if test -n "$GCC"; then
9011 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
9015 if test -z "$haveit"; then
9016 for x in $CPPFLAGS $INCICONV; do
9018 acl_save_prefix="$prefix"
9019 prefix="$acl_final_prefix"
9020 acl_save_exec_prefix="$exec_prefix"
9021 exec_prefix="$acl_final_exec_prefix"
9023 exec_prefix="$acl_save_exec_prefix"
9024 prefix="$acl_save_prefix"
9026 if test "X$x" = "X-I$additional_includedir"; then
9031 if test -z "$haveit"; then
9032 if test -d "$additional_includedir"; then
9033 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9039 if test -n "$found_la"; then
9040 save_libdir="$libdir"
9042 */* | *\\*) . "$found_la" ;;
9043 *) . "./$found_la" ;;
9045 libdir="$save_libdir"
9046 for dep in $dependency_libs; do
9049 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9050 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
9051 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
9053 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
9054 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
9055 if test -n "$GCC"; then
9057 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
9061 if test -z "$haveit"; then
9063 for x in $LDFLAGS $LIBICONV; do
9065 acl_save_prefix="$prefix"
9066 prefix="$acl_final_prefix"
9067 acl_save_exec_prefix="$exec_prefix"
9068 exec_prefix="$acl_final_exec_prefix"
9070 exec_prefix="$acl_save_exec_prefix"
9071 prefix="$acl_save_prefix"
9073 if test "X$x" = "X-L$additional_libdir"; then
9078 if test -z "$haveit"; then
9079 if test -d "$additional_libdir"; then
9080 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9084 for x in $LDFLAGS $LTLIBICONV; do
9086 acl_save_prefix="$prefix"
9087 prefix="$acl_final_prefix"
9088 acl_save_exec_prefix="$exec_prefix"
9089 exec_prefix="$acl_final_exec_prefix"
9091 exec_prefix="$acl_save_exec_prefix"
9092 prefix="$acl_save_prefix"
9094 if test "X$x" = "X-L$additional_libdir"; then
9099 if test -z "$haveit"; then
9100 if test -d "$additional_libdir"; then
9101 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
9108 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9109 if test "$enable_rpath" != no; then
9111 for x in $rpathdirs; do
9112 if test "X$x" = "X$dir"; then
9117 if test -z "$haveit"; then
9118 rpathdirs="$rpathdirs $dir"
9121 for x in $ltrpathdirs; do
9122 if test "X$x" = "X$dir"; then
9127 if test -z "$haveit"; then
9128 ltrpathdirs="$ltrpathdirs $dir"
9133 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9136 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9139 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
9140 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
9146 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9147 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
9153 if test "X$rpathdirs" != "X"; then
9154 if test -n "$acl_hardcode_libdir_separator"; then
9156 for found_dir in $rpathdirs; do
9157 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
9159 acl_save_libdir="$libdir"
9161 eval flag=\"$acl_hardcode_libdir_flag_spec\"
9162 libdir="$acl_save_libdir"
9163 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9165 for found_dir in $rpathdirs; do
9166 acl_save_libdir="$libdir"
9168 eval flag=\"$acl_hardcode_libdir_flag_spec\"
9169 libdir="$acl_save_libdir"
9170 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9174 if test "X$ltrpathdirs" != "X"; then
9175 for found_dir in $ltrpathdirs; do
9176 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
9191 am_save_CPPFLAGS="$CPPFLAGS"
9193 for element in $INCICONV; do
9195 for x in $CPPFLAGS; do
9197 acl_save_prefix="$prefix"
9198 prefix="$acl_final_prefix"
9199 acl_save_exec_prefix="$exec_prefix"
9200 exec_prefix="$acl_final_exec_prefix"
9202 exec_prefix="$acl_save_exec_prefix"
9203 prefix="$acl_save_prefix"
9205 if test "X$x" = "X$element"; then
9210 if test -z "$haveit"; then
9211 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
9217 $as_echo_n "checking for iconv... " >&6; }
9218 if ${am_cv_func_iconv+:} false; then :
9219 $as_echo_n "(cached) " >&6
9222 am_cv_func_iconv="no, consider installing GNU libiconv"
9224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9225 /* end confdefs.h. */
9233 iconv_t cd = iconv_open("","");
9234 iconv(cd,NULL,NULL,NULL,NULL);
9240 if ac_fn_c_try_link "$LINENO"; then :
9241 am_cv_func_iconv=yes
9243 rm -f core conftest.err conftest.$ac_objext \
9244 conftest$ac_exeext conftest.$ac_ext
9245 if test "$am_cv_func_iconv" != yes; then
9246 am_save_LIBS="$LIBS"
9247 LIBS="$LIBS $LIBICONV"
9248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9249 /* end confdefs.h. */
9257 iconv_t cd = iconv_open("","");
9258 iconv(cd,NULL,NULL,NULL,NULL);
9264 if ac_fn_c_try_link "$LINENO"; then :
9266 am_cv_func_iconv=yes
9268 rm -f core conftest.err conftest.$ac_objext \
9269 conftest$ac_exeext conftest.$ac_ext
9270 LIBS="$am_save_LIBS"
9274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
9275 $as_echo "$am_cv_func_iconv" >&6; }
9276 if test "$am_cv_func_iconv" = yes; then
9277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
9278 $as_echo_n "checking for working iconv... " >&6; }
9279 if ${am_cv_func_iconv_works+:} false; then :
9280 $as_echo_n "(cached) " >&6
9283 am_save_LIBS="$LIBS"
9284 if test $am_cv_lib_iconv = yes; then
9285 LIBS="$LIBS $LIBICONV"
9287 if test "$cross_compiling" = yes; then :
9290 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
9291 *) am_cv_func_iconv_works="guessing yes" ;;
9295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9296 /* end confdefs.h. */
9303 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
9306 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
9307 if (cd_utf8_to_88591 != (iconv_t)(-1))
9309 static const char input[] = "\342\202\254"; /* EURO SIGN */
9311 const char *inptr = input;
9312 size_t inbytesleft = strlen (input);
9314 size_t outbytesleft = sizeof (buf);
9315 size_t res = iconv (cd_utf8_to_88591,
9316 (char **) &inptr, &inbytesleft,
9317 &outptr, &outbytesleft);
9320 iconv_close (cd_utf8_to_88591);
9323 /* Test against Solaris 10 bug: Failures are not distinguishable from
9324 successful returns. */
9326 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
9327 if (cd_ascii_to_88591 != (iconv_t)(-1))
9329 static const char input[] = "\263";
9331 const char *inptr = input;
9332 size_t inbytesleft = strlen (input);
9334 size_t outbytesleft = sizeof (buf);
9335 size_t res = iconv (cd_ascii_to_88591,
9336 (char **) &inptr, &inbytesleft,
9337 &outptr, &outbytesleft);
9340 iconv_close (cd_ascii_to_88591);
9343 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
9345 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
9346 if (cd_88591_to_utf8 != (iconv_t)(-1))
9348 static const char input[] = "\304";
9349 static char buf[2] = { (char)0xDE, (char)0xAD };
9350 const char *inptr = input;
9351 size_t inbytesleft = 1;
9353 size_t outbytesleft = 1;
9354 size_t res = iconv (cd_88591_to_utf8,
9355 (char **) &inptr, &inbytesleft,
9356 &outptr, &outbytesleft);
9357 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
9359 iconv_close (cd_88591_to_utf8);
9362 #if 0 /* This bug could be worked around by the caller. */
9363 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
9365 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
9366 if (cd_88591_to_utf8 != (iconv_t)(-1))
9368 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
9370 const char *inptr = input;
9371 size_t inbytesleft = strlen (input);
9373 size_t outbytesleft = sizeof (buf);
9374 size_t res = iconv (cd_88591_to_utf8,
9375 (char **) &inptr, &inbytesleft,
9376 &outptr, &outbytesleft);
9379 iconv_close (cd_88591_to_utf8);
9383 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
9385 if (/* Try standardized names. */
9386 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
9387 /* Try IRIX, OSF/1 names. */
9388 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
9389 /* Try AIX names. */
9390 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
9391 /* Try HP-UX names. */
9392 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
9397 if ac_fn_c_try_run "$LINENO"; then :
9398 am_cv_func_iconv_works=yes
9400 am_cv_func_iconv_works=no
9402 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9403 conftest.$ac_objext conftest.beam conftest.$ac_ext
9406 LIBS="$am_save_LIBS"
9409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
9410 $as_echo "$am_cv_func_iconv_works" >&6; }
9411 case "$am_cv_func_iconv_works" in
9412 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
9413 *) am_func_iconv=yes ;;
9416 am_func_iconv=no am_cv_lib_iconv=no
9418 if test "$am_func_iconv" = yes; then
9420 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
9423 if test "$am_cv_lib_iconv" = yes; then
9424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
9425 $as_echo_n "checking how to link with libiconv... " >&6; }
9426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
9427 $as_echo "$LIBICONV" >&6; }
9429 CPPFLAGS="$am_save_CPPFLAGS"
9436 if test "$am_cv_func_iconv" = yes; then
9437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
9438 $as_echo_n "checking for iconv declaration... " >&6; }
9439 if ${am_cv_proto_iconv+:} false; then :
9440 $as_echo_n "(cached) " >&6
9443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9444 /* end confdefs.h. */
9452 #if defined(__STDC__) || defined(_MSC_VER) || defined(__cplusplus)
9453 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9466 if ac_fn_c_try_compile "$LINENO"; then :
9467 am_cv_proto_iconv_arg1=""
9469 am_cv_proto_iconv_arg1="const"
9471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9472 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);"
9475 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
9476 { $as_echo "$as_me:${as_lineno-$LINENO}: result:
9477 $am_cv_proto_iconv" >&5
9479 $am_cv_proto_iconv" >&6; }
9481 cat >>confdefs.h <<_ACEOF
9482 #define ICONV_CONST $am_cv_proto_iconv_arg1
9491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9492 /* end confdefs.h. */
9493 int foo (int a) { a = __builtin_expect (a, 10); return a == 10 ? 0 : 1; }
9502 if ac_fn_c_try_link "$LINENO"; then :
9504 $as_echo "#define HAVE_BUILTIN_EXPECT 1" >>confdefs.h
9507 rm -f core conftest.err conftest.$ac_objext \
9508 conftest$ac_exeext conftest.$ac_ext
9510 for ac_header in argz.h inttypes.h limits.h unistd.h sys/param.h
9512 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9513 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9514 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9515 cat >>confdefs.h <<_ACEOF
9516 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9523 for ac_func in getcwd getegid geteuid getgid getuid mempcpy munmap \
9524 stpcpy strcasecmp strdup strtoul tsearch uselocale argz_count \
9525 argz_stringify argz_next __fsetlocking
9527 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9528 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9529 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9530 cat >>confdefs.h <<_ACEOF
9531 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9538 ac_fn_c_check_decl "$LINENO" "feof_unlocked" "ac_cv_have_decl_feof_unlocked" "#include <stdio.h>
9540 if test "x$ac_cv_have_decl_feof_unlocked" = xyes; then :
9546 cat >>confdefs.h <<_ACEOF
9547 #define HAVE_DECL_FEOF_UNLOCKED $ac_have_decl
9549 ac_fn_c_check_decl "$LINENO" "fgets_unlocked" "ac_cv_have_decl_fgets_unlocked" "#include <stdio.h>
9551 if test "x$ac_cv_have_decl_fgets_unlocked" = xyes; then :
9557 cat >>confdefs.h <<_ACEOF
9558 #define HAVE_DECL_FGETS_UNLOCKED $ac_have_decl
9564 for ac_prog in bison
9566 # Extract the first word of "$ac_prog", so it can be a program name with args.
9567 set dummy $ac_prog; ac_word=$2
9568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9569 $as_echo_n "checking for $ac_word... " >&6; }
9570 if ${ac_cv_prog_INTLBISON+:} false; then :
9571 $as_echo_n "(cached) " >&6
9573 if test -n "$INTLBISON"; then
9574 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
9576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9580 test -z "$as_dir" && as_dir=.
9581 for ac_exec_ext in '' $ac_executable_extensions; do
9582 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9583 ac_cv_prog_INTLBISON="$ac_prog"
9584 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9593 INTLBISON=$ac_cv_prog_INTLBISON
9594 if test -n "$INTLBISON"; then
9595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
9596 $as_echo "$INTLBISON" >&6; }
9598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9599 $as_echo "no" >&6; }
9603 test -n "$INTLBISON" && break
9606 if test -z "$INTLBISON"; then
9609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
9610 $as_echo_n "checking version of bison... " >&6; }
9611 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
9612 case $ac_prog_version in
9613 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
9614 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
9615 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
9616 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
9618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
9619 $as_echo "$ac_prog_version" >&6; }
9621 if test $ac_verc_fail = yes; then
9627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
9628 $as_echo_n "checking for long long int... " >&6; }
9629 if ${ac_cv_type_long_long_int+:} false; then :
9630 $as_echo_n "(cached) " >&6
9632 ac_cv_type_long_long_int=yes
9633 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
9634 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
9635 if test $ac_cv_type_long_long_int = yes; then
9636 if test "$cross_compiling" = yes; then :
9639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9640 /* end confdefs.h. */
9644 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
9645 # define LLONG_MAX (HALF - 1 + HALF)
9650 long long int n = 1;
9654 long long int m = n << i;
9657 if (LLONG_MAX / 2 < m)
9665 if ac_fn_c_try_run "$LINENO"; then :
9668 ac_cv_type_long_long_int=no
9670 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9671 conftest.$ac_objext conftest.beam conftest.$ac_ext
9677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
9678 $as_echo "$ac_cv_type_long_long_int" >&6; }
9679 if test $ac_cv_type_long_long_int = yes; then
9681 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
9686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
9687 $as_echo_n "checking for wchar_t... " >&6; }
9688 if ${gt_cv_c_wchar_t+:} false; then :
9689 $as_echo_n "(cached) " >&6
9691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9692 /* end confdefs.h. */
9694 wchar_t foo = (wchar_t)'\0';
9703 if ac_fn_c_try_compile "$LINENO"; then :
9708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
9711 $as_echo "$gt_cv_c_wchar_t" >&6; }
9712 if test $gt_cv_c_wchar_t = yes; then
9714 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
9719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
9720 $as_echo_n "checking for wint_t... " >&6; }
9721 if ${gt_cv_c_wint_t+:} false; then :
9722 $as_echo_n "(cached) " >&6
9724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9725 /* end confdefs.h. */
9727 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
9729 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
9730 before <wchar.h>. */
9735 wint_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_wint_t" >&5
9752 $as_echo "$gt_cv_c_wint_t" >&6; }
9753 if test $gt_cv_c_wint_t = yes; then
9755 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
9762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
9763 $as_echo_n "checking for intmax_t... " >&6; }
9764 if ${gt_cv_c_intmax_t+:} false; then :
9765 $as_echo_n "(cached) " >&6
9767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9768 /* end confdefs.h. */
9772 #if HAVE_STDINT_H_WITH_UINTMAX
9775 #if HAVE_INTTYPES_H_WITH_UINTMAX
9776 #include <inttypes.h>
9788 if ac_fn_c_try_compile "$LINENO"; then :
9789 gt_cv_c_intmax_t=yes
9793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
9796 $as_echo "$gt_cv_c_intmax_t" >&6; }
9797 if test $gt_cv_c_intmax_t = yes; then
9799 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
9805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
9806 $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
9807 if ${gt_cv_func_printf_posix+:} false; then :
9808 $as_echo_n "(cached) " >&6
9811 if test "$cross_compiling" = yes; then :
9813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9814 /* end confdefs.h. */
9816 #if defined __NetBSD__ || defined __BEOS__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
9821 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9822 $EGREP "notposix" >/dev/null 2>&1; then :
9823 gt_cv_func_printf_posix="guessing no"
9825 gt_cv_func_printf_posix="guessing yes"
9831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9832 /* end confdefs.h. */
9836 /* The string "%2$d %1$d", with dollar characters protected from the shell's
9837 dollar expansion (possibly an autoconf bug). */
9838 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
9839 static char buf[100];
9842 sprintf (buf, format, 33, 55);
9843 return (strcmp (buf, "55 33") != 0);
9846 if ac_fn_c_try_run "$LINENO"; then :
9847 gt_cv_func_printf_posix=yes
9849 gt_cv_func_printf_posix=no
9851 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9852 conftest.$ac_objext conftest.beam conftest.$ac_ext
9857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
9858 $as_echo "$gt_cv_func_printf_posix" >&6; }
9859 case $gt_cv_func_printf_posix in
9862 $as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
9868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library >= 2.1 or uClibc" >&5
9869 $as_echo_n "checking whether we are using the GNU C Library >= 2.1 or uClibc... " >&6; }
9870 if ${ac_cv_gnu_library_2_1+:} false; then :
9871 $as_echo_n "(cached) " >&6
9873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9874 /* end confdefs.h. */
9876 #include <features.h>
9877 #ifdef __GNU_LIBRARY__
9878 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
9887 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9888 $EGREP "Lucky" >/dev/null 2>&1; then :
9889 ac_cv_gnu_library_2_1=yes
9891 ac_cv_gnu_library_2_1=no
9898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
9899 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
9901 GLIBC21="$ac_cv_gnu_library_2_1"
9905 for ac_header in stdint.h
9907 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
9908 if test "x$ac_cv_header_stdint_h" = xyes; then :
9909 cat >>confdefs.h <<_ACEOF
9910 #define HAVE_STDINT_H 1
9917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
9918 $as_echo_n "checking for SIZE_MAX... " >&6; }
9919 if ${gl_cv_size_max+:} false; then :
9920 $as_echo_n "(cached) " >&6
9924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9925 /* end confdefs.h. */
9936 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9937 $EGREP "Found it" >/dev/null 2>&1; then :
9942 if test -z "$gl_cv_size_max"; then
9943 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1" "#include <stddef.h>
9944 #include <limits.h>"; then :
9947 size_t_bits_minus_1=
9950 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then :
9956 if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
9957 if test $fits_in_uint = 1; then
9958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9959 /* end confdefs.h. */
9962 extern unsigned long foo;
9972 if ac_fn_c_try_compile "$LINENO"; then :
9975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9977 if test $fits_in_uint = 1; then
9978 gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
9980 gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
9983 gl_cv_size_max='((size_t)~(size_t)0)'
9988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5
9989 $as_echo "$gl_cv_size_max" >&6; }
9990 if test "$gl_cv_size_max" != yes; then
9992 cat >>confdefs.h <<_ACEOF
9993 #define SIZE_MAX $gl_cv_size_max
10001 for ac_header in stdint.h
10003 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
10004 if test "x$ac_cv_header_stdint_h" = xyes; then :
10005 cat >>confdefs.h <<_ACEOF
10006 #define HAVE_STDINT_H 1
10017 for ac_func in $ac_func_list
10019 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10020 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10021 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10022 cat >>confdefs.h <<_ACEOF
10023 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
10037 $as_echo_n "checking for working fcntl.h... " >&6; }
10038 if ${gl_cv_header_working_fcntl_h+:} false; then :
10039 $as_echo_n "(cached) " >&6
10041 if test "$cross_compiling" = yes; then :
10042 gl_cv_header_working_fcntl_h=cross-compiling
10044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10045 /* end confdefs.h. */
10046 #include <sys/types.h>
10047 #include <sys/stat.h>
10049 # include <unistd.h>
10050 #else /* on Windows with MSVC */
10052 # include <stdlib.h>
10053 # defined sleep(n) _sleep ((n) * 1000)
10057 #define O_NOATIME 0
10060 #define O_NOFOLLOW 0
10062 static int const constants[] =
10064 O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
10065 O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
10072 int result = !constants;
10075 static char const sym[] = "conftest.sym";
10076 if (symlink ("/dev/null", sym) != 0)
10080 int fd = open (sym, O_WRONLY | O_NOFOLLOW | O_CREAT, 0);
10087 if (unlink (sym) != 0 || symlink (".", sym) != 0)
10091 int fd = open (sym, O_RDONLY | O_NOFOLLOW);
10102 static char const file[] = "confdefs.h";
10103 int fd = open (file, O_RDONLY | O_NOATIME);
10109 if (fstat (fd, &st0) != 0)
10115 if (read (fd, &c, 1) != 1)
10119 if (close (fd) != 0)
10124 if (stat (file, &st1) != 0)
10127 if (st0.st_atime != st1.st_atime)
10139 if ac_fn_c_try_run "$LINENO"; then :
10140 gl_cv_header_working_fcntl_h=yes
10143 4) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
10144 64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
10145 68) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
10146 *) gl_cv_header_working_fcntl_h='no';;
10149 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10150 conftest.$ac_objext conftest.beam conftest.$ac_ext
10154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
10155 $as_echo "$gl_cv_header_working_fcntl_h" >&6; }
10157 case $gl_cv_header_working_fcntl_h in #(
10158 *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
10162 cat >>confdefs.h <<_ACEOF
10163 #define HAVE_WORKING_O_NOATIME $ac_val
10167 case $gl_cv_header_working_fcntl_h in #(
10168 *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
10172 cat >>confdefs.h <<_ACEOF
10173 #define HAVE_WORKING_O_NOFOLLOW $ac_val
10178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
10179 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
10180 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
10181 $as_echo_n "(cached) " >&6
10183 gt_save_LIBS="$LIBS"
10184 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10186 /* end confdefs.h. */
10187 #include <CoreFoundation/CFPreferences.h>
10191 CFPreferencesCopyAppValue(NULL, NULL)
10196 if ac_fn_c_try_link "$LINENO"; then :
10197 gt_cv_func_CFPreferencesCopyAppValue=yes
10199 gt_cv_func_CFPreferencesCopyAppValue=no
10201 rm -f core conftest.err conftest.$ac_objext \
10202 conftest$ac_exeext conftest.$ac_ext
10203 LIBS="$gt_save_LIBS"
10205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
10206 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
10207 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
10209 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
10212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
10213 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
10214 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
10215 $as_echo_n "(cached) " >&6
10217 gt_save_LIBS="$LIBS"
10218 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10220 /* end confdefs.h. */
10221 #include <CoreFoundation/CFLocale.h>
10225 CFLocaleCopyCurrent();
10230 if ac_fn_c_try_link "$LINENO"; then :
10231 gt_cv_func_CFLocaleCopyCurrent=yes
10233 gt_cv_func_CFLocaleCopyCurrent=no
10235 rm -f core conftest.err conftest.$ac_objext \
10236 conftest$ac_exeext conftest.$ac_ext
10237 LIBS="$gt_save_LIBS"
10239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
10240 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
10241 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10243 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
10247 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10248 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
10260 case "$enable_silent_rules" in
10261 yes) INTL_DEFAULT_VERBOSITY=0;;
10262 no) INTL_DEFAULT_VERBOSITY=1;;
10263 *) INTL_DEFAULT_VERBOSITY=1;;
10267 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
10268 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
10272 $as_echo "#define ptrdiff_t long" >>confdefs.h
10277 for ac_header in features.h stddef.h stdlib.h string.h
10279 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10280 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10281 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10282 cat >>confdefs.h <<_ACEOF
10283 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10290 for ac_func in asprintf fwprintf newlocale putenv setenv setlocale \
10291 snprintf strnlen wcslen wcsnlen mbrtowc wcrtomb
10293 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10294 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10295 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10296 cat >>confdefs.h <<_ACEOF
10297 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10304 ac_fn_c_check_decl "$LINENO" "_snprintf" "ac_cv_have_decl__snprintf" "#include <stdio.h>
10306 if test "x$ac_cv_have_decl__snprintf" = xyes; then :
10312 cat >>confdefs.h <<_ACEOF
10313 #define HAVE_DECL__SNPRINTF $ac_have_decl
10315 ac_fn_c_check_decl "$LINENO" "_snwprintf" "ac_cv_have_decl__snwprintf" "#include <stdio.h>
10317 if test "x$ac_cv_have_decl__snwprintf" = xyes; then :
10323 cat >>confdefs.h <<_ACEOF
10324 #define HAVE_DECL__SNWPRINTF $ac_have_decl
10328 ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "#include <stdio.h>
10330 if test "x$ac_cv_have_decl_getc_unlocked" = xyes; then :
10336 cat >>confdefs.h <<_ACEOF
10337 #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
10341 case $gt_cv_func_printf_posix in
10342 *yes) HAVE_POSIX_PRINTF=1 ;;
10343 *) HAVE_POSIX_PRINTF=0 ;;
10346 if test "$ac_cv_func_asprintf" = yes; then
10352 if test "$ac_cv_func_snprintf" = yes; then
10358 if test "$ac_cv_func_newlocale" = yes; then
10364 if test "$ac_cv_func_wprintf" = yes; then
10372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10373 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10374 if ${am_cv_langinfo_codeset+:} false; then :
10375 $as_echo_n "(cached) " >&6
10377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10378 /* end confdefs.h. */
10379 #include <langinfo.h>
10383 char* cs = nl_langinfo(CODESET); return !cs;
10388 if ac_fn_c_try_link "$LINENO"; then :
10389 am_cv_langinfo_codeset=yes
10391 am_cv_langinfo_codeset=no
10393 rm -f core conftest.err conftest.$ac_objext \
10394 conftest$ac_exeext conftest.$ac_ext
10397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10398 $as_echo "$am_cv_langinfo_codeset" >&6; }
10399 if test $am_cv_langinfo_codeset = yes; then
10401 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10407 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10408 if ${gt_cv_val_LC_MESSAGES+:} false; then :
10409 $as_echo_n "(cached) " >&6
10411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10412 /* end confdefs.h. */
10413 #include <locale.h>
10422 if ac_fn_c_try_link "$LINENO"; then :
10423 gt_cv_val_LC_MESSAGES=yes
10425 gt_cv_val_LC_MESSAGES=no
10427 rm -f core conftest.err conftest.$ac_objext \
10428 conftest$ac_exeext conftest.$ac_ext
10430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5
10431 $as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
10432 if test $gt_cv_val_LC_MESSAGES = yes; then
10434 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10439 if test "$enable_shared" = yes; then
10441 mingw* | cygwin*) is_woe32dll=yes ;;
10442 *) is_woe32dll=no ;;
10447 WOE32DLL=$is_woe32dll
10451 mingw* | cygwin*) is_woe32=yes ;;
10456 if test $WOE32 = yes; then
10457 if test -n "$ac_tool_prefix"; then
10458 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
10459 set dummy ${ac_tool_prefix}windres; ac_word=$2
10460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10461 $as_echo_n "checking for $ac_word... " >&6; }
10462 if ${ac_cv_prog_WINDRES+:} false; then :
10463 $as_echo_n "(cached) " >&6
10465 if test -n "$WINDRES"; then
10466 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
10468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10469 for as_dir in $PATH
10472 test -z "$as_dir" && as_dir=.
10473 for ac_exec_ext in '' $ac_executable_extensions; do
10474 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10475 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
10476 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10485 WINDRES=$ac_cv_prog_WINDRES
10486 if test -n "$WINDRES"; then
10487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
10488 $as_echo "$WINDRES" >&6; }
10490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10491 $as_echo "no" >&6; }
10496 if test -z "$ac_cv_prog_WINDRES"; then
10497 ac_ct_WINDRES=$WINDRES
10498 # Extract the first word of "windres", so it can be a program name with args.
10499 set dummy windres; ac_word=$2
10500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10501 $as_echo_n "checking for $ac_word... " >&6; }
10502 if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
10503 $as_echo_n "(cached) " >&6
10505 if test -n "$ac_ct_WINDRES"; then
10506 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
10508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10509 for as_dir in $PATH
10512 test -z "$as_dir" && as_dir=.
10513 for ac_exec_ext in '' $ac_executable_extensions; do
10514 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10515 ac_cv_prog_ac_ct_WINDRES="windres"
10516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10525 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
10526 if test -n "$ac_ct_WINDRES"; then
10527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
10528 $as_echo "$ac_ct_WINDRES" >&6; }
10530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10531 $as_echo "no" >&6; }
10534 if test "x$ac_ct_WINDRES" = x; then
10537 case $cross_compiling:$ac_tool_warned in
10539 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10540 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10541 ac_tool_warned=yes ;;
10543 WINDRES=$ac_ct_WINDRES
10546 WINDRES="$ac_cv_prog_WINDRES"
10552 hpux*) LTLIBC="" ;;
10582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
10583 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
10584 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
10585 $as_echo_n "(cached) " >&6
10587 gt_save_LIBS="$LIBS"
10588 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10590 /* end confdefs.h. */
10591 #include <CoreFoundation/CFPreferences.h>
10595 CFPreferencesCopyAppValue(NULL, NULL)
10600 if ac_fn_c_try_link "$LINENO"; then :
10601 gt_cv_func_CFPreferencesCopyAppValue=yes
10603 gt_cv_func_CFPreferencesCopyAppValue=no
10605 rm -f core conftest.err conftest.$ac_objext \
10606 conftest$ac_exeext conftest.$ac_ext
10607 LIBS="$gt_save_LIBS"
10609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
10610 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
10611 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
10613 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
10616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
10617 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
10618 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
10619 $as_echo_n "(cached) " >&6
10621 gt_save_LIBS="$LIBS"
10622 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10624 /* end confdefs.h. */
10625 #include <CoreFoundation/CFLocale.h>
10629 CFLocaleCopyCurrent();
10634 if ac_fn_c_try_link "$LINENO"; then :
10635 gt_cv_func_CFLocaleCopyCurrent=yes
10637 gt_cv_func_CFLocaleCopyCurrent=no
10639 rm -f core conftest.err conftest.$ac_objext \
10640 conftest$ac_exeext conftest.$ac_ext
10641 LIBS="$gt_save_LIBS"
10643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
10644 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
10645 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10647 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
10651 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10652 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
10660 BUILD_INCLUDED_LIBINTL=no
10661 USE_INCLUDED_LIBINTL=no
10667 case " $gt_needs " in
10668 *" need-formatstring-macros "*) gt_api_version=3 ;;
10669 *" need-ngettext "*) gt_api_version=2 ;;
10670 *) gt_api_version=1 ;;
10672 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
10673 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
10675 if test "$USE_NLS" = "yes"; then
10676 gt_use_preinstalled_gnugettext=no
10678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
10679 $as_echo_n "checking whether included gettext is requested... " >&6; }
10681 # Check whether --with-included-gettext was given.
10682 if test "${with_included_gettext+set}" = set; then :
10683 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
10685 nls_cv_force_use_gnu_gettext=no
10688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
10689 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
10691 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
10692 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
10695 if test $gt_api_version -ge 3; then
10696 gt_revision_test_code='
10697 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
10698 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
10700 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
10703 gt_revision_test_code=
10705 if test $gt_api_version -ge 2; then
10706 gt_expression_test_code=' + * ngettext ("", "", 0)'
10708 gt_expression_test_code=
10711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
10712 $as_echo_n "checking for GNU gettext in libc... " >&6; }
10713 if eval \${$gt_func_gnugettext_libc+:} false; then :
10714 $as_echo_n "(cached) " >&6
10716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10717 /* end confdefs.h. */
10719 #include <libintl.h>
10720 $gt_revision_test_code
10721 extern int _nl_msg_cat_cntr;
10722 extern int *_nl_domain_bindings;
10728 bindtextdomain ("", "");
10729 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
10735 if ac_fn_c_try_link "$LINENO"; then :
10736 eval "$gt_func_gnugettext_libc=yes"
10738 eval "$gt_func_gnugettext_libc=no"
10740 rm -f core conftest.err conftest.$ac_objext \
10741 conftest$ac_exeext conftest.$ac_ext
10743 eval ac_res=\$$gt_func_gnugettext_libc
10744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10745 $as_echo "$ac_res" >&6; }
10747 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
10758 acl_save_prefix="$prefix"
10759 prefix="$acl_final_prefix"
10760 acl_save_exec_prefix="$exec_prefix"
10761 exec_prefix="$acl_final_exec_prefix"
10763 eval additional_includedir=\"$includedir\"
10764 eval additional_libdir=\"$libdir\"
10766 exec_prefix="$acl_save_exec_prefix"
10767 prefix="$acl_save_prefix"
10770 # Check whether --with-libintl-prefix was given.
10771 if test "${with_libintl_prefix+set}" = set; then :
10772 withval=$with_libintl_prefix;
10773 if test "X$withval" = "Xno"; then
10776 if test "X$withval" = "X"; then
10778 acl_save_prefix="$prefix"
10779 prefix="$acl_final_prefix"
10780 acl_save_exec_prefix="$exec_prefix"
10781 exec_prefix="$acl_final_exec_prefix"
10783 eval additional_includedir=\"$includedir\"
10784 eval additional_libdir=\"$libdir\"
10786 exec_prefix="$acl_save_exec_prefix"
10787 prefix="$acl_save_prefix"
10790 additional_includedir="$withval/include"
10791 additional_libdir="$withval/$acl_libdirstem"
10792 if test "$acl_libdirstem2" != "$acl_libdirstem" \
10793 && ! test -d "$withval/$acl_libdirstem"; then
10794 additional_libdir="$withval/$acl_libdirstem2"
10808 names_already_handled=
10809 names_next_round='intl '
10810 while test -n "$names_next_round"; do
10811 names_this_round="$names_next_round"
10813 for name in $names_this_round; do
10815 for n in $names_already_handled; do
10816 if test "$n" = "$name"; then
10817 already_handled=yes
10821 if test -z "$already_handled"; then
10822 names_already_handled="$names_already_handled $name"
10823 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
10824 eval value=\"\$HAVE_LIB$uppername\"
10825 if test -n "$value"; then
10826 if test "$value" = yes; then
10827 eval value=\"\$LIB$uppername\"
10828 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
10829 eval value=\"\$LTLIB$uppername\"
10830 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
10839 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
10840 if test -n "$acl_shlibext"; then
10841 shrext=".$acl_shlibext" # typically: shrext=.so
10845 if test $use_additional = yes; then
10846 dir="$additional_libdir"
10847 if test -n "$acl_shlibext"; then
10848 if test -f "$dir/$libname$shrext"; then
10850 found_so="$dir/$libname$shrext"
10852 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
10853 ver=`(cd "$dir" && \
10854 for f in "$libname$shrext".*; do echo "$f"; done \
10855 | sed -e "s,^$libname$shrext\\\\.,," \
10856 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
10857 | sed 1q ) 2>/dev/null`
10858 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
10860 found_so="$dir/$libname$shrext.$ver"
10863 eval library_names=\"$acl_library_names_spec\"
10864 for f in $library_names; do
10865 if test -f "$dir/$f"; then
10874 if test "X$found_dir" = "X"; then
10875 if test -f "$dir/$libname.$acl_libext"; then
10877 found_a="$dir/$libname.$acl_libext"
10880 if test "X$found_dir" != "X"; then
10881 if test -f "$dir/$libname.la"; then
10882 found_la="$dir/$libname.la"
10886 if test "X$found_dir" = "X"; then
10887 for x in $LDFLAGS $LTLIBINTL; do
10889 acl_save_prefix="$prefix"
10890 prefix="$acl_final_prefix"
10891 acl_save_exec_prefix="$exec_prefix"
10892 exec_prefix="$acl_final_exec_prefix"
10894 exec_prefix="$acl_save_exec_prefix"
10895 prefix="$acl_save_prefix"
10899 dir=`echo "X$x" | sed -e 's/^X-L//'`
10900 if test -n "$acl_shlibext"; then
10901 if test -f "$dir/$libname$shrext"; then
10903 found_so="$dir/$libname$shrext"
10905 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
10906 ver=`(cd "$dir" && \
10907 for f in "$libname$shrext".*; do echo "$f"; done \
10908 | sed -e "s,^$libname$shrext\\\\.,," \
10909 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
10910 | sed 1q ) 2>/dev/null`
10911 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
10913 found_so="$dir/$libname$shrext.$ver"
10916 eval library_names=\"$acl_library_names_spec\"
10917 for f in $library_names; do
10918 if test -f "$dir/$f"; then
10927 if test "X$found_dir" = "X"; then
10928 if test -f "$dir/$libname.$acl_libext"; then
10930 found_a="$dir/$libname.$acl_libext"
10933 if test "X$found_dir" != "X"; then
10934 if test -f "$dir/$libname.la"; then
10935 found_la="$dir/$libname.la"
10940 if test "X$found_dir" != "X"; then
10945 if test "X$found_dir" != "X"; then
10946 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
10947 if test "X$found_so" != "X"; then
10948 if test "$enable_rpath" = no \
10949 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
10950 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
10951 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10954 for x in $ltrpathdirs; do
10955 if test "X$x" = "X$found_dir"; then
10960 if test -z "$haveit"; then
10961 ltrpathdirs="$ltrpathdirs $found_dir"
10963 if test "$acl_hardcode_direct" = yes; then
10964 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10966 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
10967 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10969 for x in $rpathdirs; do
10970 if test "X$x" = "X$found_dir"; then
10975 if test -z "$haveit"; then
10976 rpathdirs="$rpathdirs $found_dir"
10980 for x in $LDFLAGS $LIBINTL; do
10982 acl_save_prefix="$prefix"
10983 prefix="$acl_final_prefix"
10984 acl_save_exec_prefix="$exec_prefix"
10985 exec_prefix="$acl_final_exec_prefix"
10987 exec_prefix="$acl_save_exec_prefix"
10988 prefix="$acl_save_prefix"
10990 if test "X$x" = "X-L$found_dir"; then
10995 if test -z "$haveit"; then
10996 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
10998 if test "$acl_hardcode_minus_L" != no; then
10999 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11001 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
11007 if test "X$found_a" != "X"; then
11008 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
11010 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
11013 additional_includedir=
11014 case "$found_dir" in
11015 */$acl_libdirstem | */$acl_libdirstem/)
11016 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
11017 if test "$name" = 'intl'; then
11018 LIBINTL_PREFIX="$basedir"
11020 additional_includedir="$basedir/include"
11022 */$acl_libdirstem2 | */$acl_libdirstem2/)
11023 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
11024 if test "$name" = 'intl'; then
11025 LIBINTL_PREFIX="$basedir"
11027 additional_includedir="$basedir/include"
11030 if test "X$additional_includedir" != "X"; then
11031 if test "X$additional_includedir" != "X/usr/include"; then
11033 if test "X$additional_includedir" = "X/usr/local/include"; then
11034 if test -n "$GCC"; then
11036 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
11040 if test -z "$haveit"; then
11041 for x in $CPPFLAGS $INCINTL; do
11043 acl_save_prefix="$prefix"
11044 prefix="$acl_final_prefix"
11045 acl_save_exec_prefix="$exec_prefix"
11046 exec_prefix="$acl_final_exec_prefix"
11048 exec_prefix="$acl_save_exec_prefix"
11049 prefix="$acl_save_prefix"
11051 if test "X$x" = "X-I$additional_includedir"; then
11056 if test -z "$haveit"; then
11057 if test -d "$additional_includedir"; then
11058 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
11064 if test -n "$found_la"; then
11065 save_libdir="$libdir"
11066 case "$found_la" in
11067 */* | *\\*) . "$found_la" ;;
11068 *) . "./$found_la" ;;
11070 libdir="$save_libdir"
11071 for dep in $dependency_libs; do
11074 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
11075 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
11076 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
11078 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
11079 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
11080 if test -n "$GCC"; then
11082 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
11086 if test -z "$haveit"; then
11088 for x in $LDFLAGS $LIBINTL; do
11090 acl_save_prefix="$prefix"
11091 prefix="$acl_final_prefix"
11092 acl_save_exec_prefix="$exec_prefix"
11093 exec_prefix="$acl_final_exec_prefix"
11095 exec_prefix="$acl_save_exec_prefix"
11096 prefix="$acl_save_prefix"
11098 if test "X$x" = "X-L$additional_libdir"; then
11103 if test -z "$haveit"; then
11104 if test -d "$additional_libdir"; then
11105 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
11109 for x in $LDFLAGS $LTLIBINTL; do
11111 acl_save_prefix="$prefix"
11112 prefix="$acl_final_prefix"
11113 acl_save_exec_prefix="$exec_prefix"
11114 exec_prefix="$acl_final_exec_prefix"
11116 exec_prefix="$acl_save_exec_prefix"
11117 prefix="$acl_save_prefix"
11119 if test "X$x" = "X-L$additional_libdir"; then
11124 if test -z "$haveit"; then
11125 if test -d "$additional_libdir"; then
11126 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
11133 dir=`echo "X$dep" | sed -e 's/^X-R//'`
11134 if test "$enable_rpath" != no; then
11136 for x in $rpathdirs; do
11137 if test "X$x" = "X$dir"; then
11142 if test -z "$haveit"; then
11143 rpathdirs="$rpathdirs $dir"
11146 for x in $ltrpathdirs; do
11147 if test "X$x" = "X$dir"; then
11152 if test -z "$haveit"; then
11153 ltrpathdirs="$ltrpathdirs $dir"
11158 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11161 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11164 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
11165 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
11171 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
11172 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
11178 if test "X$rpathdirs" != "X"; then
11179 if test -n "$acl_hardcode_libdir_separator"; then
11181 for found_dir in $rpathdirs; do
11182 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
11184 acl_save_libdir="$libdir"
11186 eval flag=\"$acl_hardcode_libdir_flag_spec\"
11187 libdir="$acl_save_libdir"
11188 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
11190 for found_dir in $rpathdirs; do
11191 acl_save_libdir="$libdir"
11192 libdir="$found_dir"
11193 eval flag=\"$acl_hardcode_libdir_flag_spec\"
11194 libdir="$acl_save_libdir"
11195 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
11199 if test "X$ltrpathdirs" != "X"; then
11200 for found_dir in $ltrpathdirs; do
11201 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
11210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
11211 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
11212 if eval \${$gt_func_gnugettext_libintl+:} false; then :
11213 $as_echo_n "(cached) " >&6
11215 gt_save_CPPFLAGS="$CPPFLAGS"
11216 CPPFLAGS="$CPPFLAGS $INCINTL"
11217 gt_save_LIBS="$LIBS"
11218 LIBS="$LIBS $LIBINTL"
11219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11220 /* end confdefs.h. */
11222 #include <libintl.h>
11223 $gt_revision_test_code
11224 extern int _nl_msg_cat_cntr;
11229 const char *_nl_expand_alias (const char *);
11235 bindtextdomain ("", "");
11236 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
11242 if ac_fn_c_try_link "$LINENO"; then :
11243 eval "$gt_func_gnugettext_libintl=yes"
11245 eval "$gt_func_gnugettext_libintl=no"
11247 rm -f core conftest.err conftest.$ac_objext \
11248 conftest$ac_exeext conftest.$ac_ext
11249 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
11250 LIBS="$LIBS $LIBICONV"
11251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11252 /* end confdefs.h. */
11254 #include <libintl.h>
11255 $gt_revision_test_code
11256 extern int _nl_msg_cat_cntr;
11261 const char *_nl_expand_alias (const char *);
11267 bindtextdomain ("", "");
11268 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
11274 if ac_fn_c_try_link "$LINENO"; then :
11275 LIBINTL="$LIBINTL $LIBICONV"
11276 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
11277 eval "$gt_func_gnugettext_libintl=yes"
11280 rm -f core conftest.err conftest.$ac_objext \
11281 conftest$ac_exeext conftest.$ac_ext
11283 CPPFLAGS="$gt_save_CPPFLAGS"
11284 LIBS="$gt_save_LIBS"
11286 eval ac_res=\$$gt_func_gnugettext_libintl
11287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11288 $as_echo "$ac_res" >&6; }
11291 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
11292 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
11293 && test "$PACKAGE" != gettext-runtime \
11294 && test "$PACKAGE" != gettext-tools; }; then
11295 gt_use_preinstalled_gnugettext=yes
11303 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
11304 nls_cv_use_gnu_gettext=yes
11308 if test "$nls_cv_use_gnu_gettext" = "yes"; then
11309 BUILD_INCLUDED_LIBINTL=yes
11310 USE_INCLUDED_LIBINTL=yes
11311 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV $LIBTHREAD"
11312 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV $LTLIBTHREAD"
11313 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
11317 if test "$gt_use_preinstalled_gnugettext" = "yes" \
11318 || test "$nls_cv_use_gnu_gettext" = "yes"; then
11323 if test -n "$INTL_MACOSX_LIBS"; then
11324 if test "$gt_use_preinstalled_gnugettext" = "yes" \
11325 || test "$nls_cv_use_gnu_gettext" = "yes"; then
11326 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
11327 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
11331 if test "$gt_use_preinstalled_gnugettext" = "yes" \
11332 || test "$nls_cv_use_gnu_gettext" = "yes"; then
11334 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
11342 $as_echo_n "checking whether to use NLS... " >&6; }
11343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
11344 $as_echo "$USE_NLS" >&6; }
11345 if test "$USE_NLS" = "yes"; then
11346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
11347 $as_echo_n "checking where the gettext function comes from... " >&6; }
11348 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
11349 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
11350 gt_source="external libintl"
11355 gt_source="included intl directory"
11357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
11358 $as_echo "$gt_source" >&6; }
11361 if test "$USE_NLS" = "yes"; then
11363 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
11364 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
11365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
11366 $as_echo_n "checking how to link with libintl... " >&6; }
11367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
11368 $as_echo "$LIBINTL" >&6; }
11370 for element in $INCINTL; do
11372 for x in $CPPFLAGS; do
11374 acl_save_prefix="$prefix"
11375 prefix="$acl_final_prefix"
11376 acl_save_exec_prefix="$exec_prefix"
11377 exec_prefix="$acl_final_exec_prefix"
11379 exec_prefix="$acl_save_exec_prefix"
11380 prefix="$acl_save_prefix"
11382 if test "X$x" = "X$element"; then
11387 if test -z "$haveit"; then
11388 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11395 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
11398 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
11406 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
11407 BUILD_INCLUDED_LIBINTL=yes
11414 nls_cv_header_intl=
11415 nls_cv_header_libgt=
11427 if test "$USE_INCLUDED_LIBINTL" = yes; then
11428 INTLOBJS="\$(GETTOBJS)"
11432 INTL_LIBTOOL_SUFFIX_PREFIX=
11436 INTLLIBS="$LIBINTL"
11444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
11445 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
11447 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
11448 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
11449 $as_echo_n "(cached) " >&6
11451 cat >conftest.make <<\_ACEOF
11454 @echo '@@@%%%=$(MAKE)=@@@%%%'
11456 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
11457 case `${MAKE-make} -f conftest.make 2>/dev/null` in
11458 *@@@%%%=?*=@@@%%%*)
11459 eval ac_cv_prog_make_${ac_make}_set=yes;;
11461 eval ac_cv_prog_make_${ac_make}_set=no;;
11463 rm -f conftest.make
11465 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
11466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11467 $as_echo "yes" >&6; }
11470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11471 $as_echo "no" >&6; }
11472 SET_MAKE="MAKE=${MAKE-make}"
11475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5
11476 $as_echo_n "checking for GNU make... " >&6; }
11477 if ${_cv_gnu_make_command+:} false; then :
11478 $as_echo_n "(cached) " >&6
11480 _cv_gnu_make_command='' ;
11481 for a in "$MAKE" make gmake gnumake ; do
11482 if test -z "$a" ; then continue ; fi ;
11483 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
11484 _cv_gnu_make_command=$a ;
11490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_cv_gnu_make_command" >&5
11491 $as_echo "$_cv_gnu_make_command" >&6; } ;
11492 if test "x$_cv_gnu_make_command" != "x" ; then
11498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"Not found\"" >&5
11499 $as_echo "\"Not found\"" >&6; };
11504 # Extract the first word of "ln", so it can be a program name with args.
11505 set dummy ln; ac_word=$2
11506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11507 $as_echo_n "checking for $ac_word... " >&6; }
11508 if ${ac_cv_path_LN+:} false; then :
11509 $as_echo_n "(cached) " >&6
11513 ac_cv_path_LN="$LN" # Let the user override the test with a path.
11516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11517 for as_dir in $PATH
11520 test -z "$as_dir" && as_dir=.
11521 for ac_exec_ext in '' $ac_executable_extensions; do
11522 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11523 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
11524 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11531 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
11536 if test -n "$LN"; then
11537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
11538 $as_echo "$LN" >&6; }
11540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11541 $as_echo "no" >&6; }
11545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
11546 $as_echo_n "checking whether ln -s works... " >&6; }
11548 if test "$LN_S" = "ln -s"; then
11549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11550 $as_echo "yes" >&6; }
11552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
11553 $as_echo "no, using $LN_S" >&6; }
11556 # Extract the first word of "mv", so it can be a program name with args.
11557 set dummy mv; ac_word=$2
11558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11559 $as_echo_n "checking for $ac_word... " >&6; }
11560 if ${ac_cv_path_MV+:} false; then :
11561 $as_echo_n "(cached) " >&6
11565 ac_cv_path_MV="$MV" # Let the user override the test with a path.
11568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11569 for as_dir in $PATH
11572 test -z "$as_dir" && as_dir=.
11573 for ac_exec_ext in '' $ac_executable_extensions; do
11574 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11575 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
11576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11583 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
11588 if test -n "$MV"; then
11589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
11590 $as_echo "$MV" >&6; }
11592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11593 $as_echo "no" >&6; }
11597 # Extract the first word of "cp", so it can be a program name with args.
11598 set dummy cp; 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_CP+:} false; then :
11602 $as_echo_n "(cached) " >&6
11606 ac_cv_path_CP="$CP" # 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_CP="$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_CP" && ac_cv_path_CP="cp"
11629 if test -n "$CP"; then
11630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
11631 $as_echo "$CP" >&6; }
11633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11634 $as_echo "no" >&6; }
11638 # Extract the first word of "rm", so it can be a program name with args.
11639 set dummy rm; 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_RM+:} false; then :
11643 $as_echo_n "(cached) " >&6
11647 ac_cv_path_RM="$RM" # 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_RM="$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_RM" && ac_cv_path_RM="rm"
11670 if test -n "$RM"; then
11671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
11672 $as_echo "$RM" >&6; }
11674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11675 $as_echo "no" >&6; }
11679 # Extract the first word of "chmod", so it can be a program name with args.
11680 set dummy chmod; 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_CHMOD+:} false; then :
11684 $as_echo_n "(cached) " >&6
11688 ac_cv_path_CHMOD="$CHMOD" # 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_CHMOD="$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_CHMOD" && ac_cv_path_CHMOD=":"
11710 CHMOD=$ac_cv_path_CHMOD
11711 if test -n "$CHMOD"; then
11712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
11713 $as_echo "$CHMOD" >&6; }
11715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11716 $as_echo "no" >&6; }
11720 for ac_prog in gawk mawk nawk awk
11722 # Extract the first word of "$ac_prog", so it can be a program name with args.
11723 set dummy $ac_prog; ac_word=$2
11724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11725 $as_echo_n "checking for $ac_word... " >&6; }
11726 if ${ac_cv_prog_AWK+:} false; then :
11727 $as_echo_n "(cached) " >&6
11729 if test -n "$AWK"; then
11730 ac_cv_prog_AWK="$AWK" # Let the user override the test.
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_prog_AWK="$ac_prog"
11740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11749 AWK=$ac_cv_prog_AWK
11750 if test -n "$AWK"; then
11751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
11752 $as_echo "$AWK" >&6; }
11754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11755 $as_echo "no" >&6; }
11759 test -n "$AWK" && break
11762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
11763 $as_echo_n "checking for egrep... " >&6; }
11764 if ${ac_cv_path_EGREP+:} false; then :
11765 $as_echo_n "(cached) " >&6
11767 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
11768 then ac_cv_path_EGREP="$GREP -E"
11770 if test -z "$EGREP"; then
11771 ac_path_EGREP_found=false
11772 # Loop through the user's path and test for each of PROGNAME-LIST
11773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11774 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11777 test -z "$as_dir" && as_dir=.
11778 for ac_prog in egrep; do
11779 for ac_exec_ext in '' $ac_executable_extensions; do
11780 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
11781 as_fn_executable_p "$ac_path_EGREP" || continue
11782 # Check for GNU ac_path_EGREP and select it if it is found.
11783 # Check for GNU $ac_path_EGREP
11784 case `"$ac_path_EGREP" --version 2>&1` in
11786 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
11789 $as_echo_n 0123456789 >"conftest.in"
11792 cat "conftest.in" "conftest.in" >"conftest.tmp"
11793 mv "conftest.tmp" "conftest.in"
11794 cp "conftest.in" "conftest.nl"
11795 $as_echo 'EGREP' >> "conftest.nl"
11796 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11797 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11798 as_fn_arith $ac_count + 1 && ac_count=$as_val
11799 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
11800 # Best one so far, save it but keep looking for a better one
11801 ac_cv_path_EGREP="$ac_path_EGREP"
11802 ac_path_EGREP_max=$ac_count
11804 # 10*(2^10) chars as input seems more than enough
11805 test $ac_count -gt 10 && break
11807 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11810 $ac_path_EGREP_found && break 3
11815 if test -z "$ac_cv_path_EGREP"; then
11816 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11819 ac_cv_path_EGREP=$EGREP
11824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
11825 $as_echo "$ac_cv_path_EGREP" >&6; }
11826 EGREP="$ac_cv_path_EGREP"
11829 # Extract the first word of "sed", so it can be a program name with args.
11830 set dummy sed; ac_word=$2
11831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11832 $as_echo_n "checking for $ac_word... " >&6; }
11833 if ${ac_cv_path_SED+:} false; then :
11834 $as_echo_n "(cached) " >&6
11838 ac_cv_path_SED="$SED" # Let the user override the test with a path.
11841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11842 for as_dir in $PATH
11845 test -z "$as_dir" && as_dir=.
11846 for ac_exec_ext in '' $ac_executable_extensions; do
11847 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11848 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
11849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11856 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
11860 SED=$ac_cv_path_SED
11861 if test -n "$SED"; then
11862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
11863 $as_echo "$SED" >&6; }
11865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11866 $as_echo "no" >&6; }
11870 # Extract the first word of "perl", so it can be a program name with args.
11871 set dummy perl; 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_PERL+:} false; then :
11875 $as_echo_n "(cached) " >&6
11879 ac_cv_path_PERL="$PERL" # 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_PERL="$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_PERL" && ac_cv_path_PERL="perl"
11901 PERL=$ac_cv_path_PERL
11902 if test -n "$PERL"; then
11903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
11904 $as_echo "$PERL" >&6; }
11906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11907 $as_echo "no" >&6; }
11911 # Extract the first word of "ldconfig", so it can be a program name with args.
11912 set dummy ldconfig; 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_LDCONFIG+:} false; then :
11916 $as_echo_n "(cached) " >&6
11920 ac_cv_path_LDCONFIG="$LDCONFIG" # 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_LDCONFIG="$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_LDCONFIG" && ac_cv_path_LDCONFIG=":"
11942 LDCONFIG=$ac_cv_path_LDCONFIG
11943 if test -n "$LDCONFIG"; then
11944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
11945 $as_echo "$LDCONFIG" >&6; }
11947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11948 $as_echo "no" >&6; }
11952 if test -n "$ac_tool_prefix"; then
11953 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
11954 set dummy ${ac_tool_prefix}ar; ac_word=$2
11955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11956 $as_echo_n "checking for $ac_word... " >&6; }
11957 if ${ac_cv_prog_AR+:} false; then :
11958 $as_echo_n "(cached) " >&6
11960 if test -n "$AR"; then
11961 ac_cv_prog_AR="$AR" # Let the user override the test.
11963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11964 for as_dir in $PATH
11967 test -z "$as_dir" && as_dir=.
11968 for ac_exec_ext in '' $ac_executable_extensions; do
11969 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11970 ac_cv_prog_AR="${ac_tool_prefix}ar"
11971 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11981 if test -n "$AR"; then
11982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
11983 $as_echo "$AR" >&6; }
11985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11986 $as_echo "no" >&6; }
11991 if test -z "$ac_cv_prog_AR"; then
11993 # Extract the first word of "ar", so it can be a program name with args.
11994 set dummy ar; ac_word=$2
11995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11996 $as_echo_n "checking for $ac_word... " >&6; }
11997 if ${ac_cv_prog_ac_ct_AR+:} false; then :
11998 $as_echo_n "(cached) " >&6
12000 if test -n "$ac_ct_AR"; then
12001 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12004 for as_dir in $PATH
12007 test -z "$as_dir" && as_dir=.
12008 for ac_exec_ext in '' $ac_executable_extensions; do
12009 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12010 ac_cv_prog_ac_ct_AR="ar"
12011 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12020 ac_ct_AR=$ac_cv_prog_ac_ct_AR
12021 if test -n "$ac_ct_AR"; then
12022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
12023 $as_echo "$ac_ct_AR" >&6; }
12025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12026 $as_echo "no" >&6; }
12029 if test "x$ac_ct_AR" = x; then
12032 case $cross_compiling:$ac_tool_warned in
12034 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12035 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12036 ac_tool_warned=yes ;;
12041 AR="$ac_cv_prog_AR"
12044 if test -n "$ac_tool_prefix"; then
12045 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12046 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12048 $as_echo_n "checking for $ac_word... " >&6; }
12049 if ${ac_cv_prog_RANLIB+:} false; then :
12050 $as_echo_n "(cached) " >&6
12052 if test -n "$RANLIB"; then
12053 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12056 for as_dir in $PATH
12059 test -z "$as_dir" && as_dir=.
12060 for ac_exec_ext in '' $ac_executable_extensions; do
12061 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12062 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12063 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12072 RANLIB=$ac_cv_prog_RANLIB
12073 if test -n "$RANLIB"; then
12074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12075 $as_echo "$RANLIB" >&6; }
12077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12078 $as_echo "no" >&6; }
12083 if test -z "$ac_cv_prog_RANLIB"; then
12084 ac_ct_RANLIB=$RANLIB
12085 # Extract the first word of "ranlib", so it can be a program name with args.
12086 set dummy ranlib; ac_word=$2
12087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12088 $as_echo_n "checking for $ac_word... " >&6; }
12089 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
12090 $as_echo_n "(cached) " >&6
12092 if test -n "$ac_ct_RANLIB"; then
12093 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12096 for as_dir in $PATH
12099 test -z "$as_dir" && as_dir=.
12100 for ac_exec_ext in '' $ac_executable_extensions; do
12101 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12102 ac_cv_prog_ac_ct_RANLIB="ranlib"
12103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12112 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12113 if test -n "$ac_ct_RANLIB"; then
12114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12115 $as_echo "$ac_ct_RANLIB" >&6; }
12117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12118 $as_echo "no" >&6; }
12121 if test "x$ac_ct_RANLIB" = x; then
12124 case $cross_compiling:$ac_tool_warned in
12126 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12127 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12128 ac_tool_warned=yes ;;
12130 RANLIB=$ac_ct_RANLIB
12133 RANLIB="$ac_cv_prog_RANLIB"
12136 if test -n "$ac_tool_prefix"; then
12137 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12138 set dummy ${ac_tool_prefix}strip; ac_word=$2
12139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12140 $as_echo_n "checking for $ac_word... " >&6; }
12141 if ${ac_cv_prog_STRIP+:} false; then :
12142 $as_echo_n "(cached) " >&6
12144 if test -n "$STRIP"; then
12145 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12148 for as_dir in $PATH
12151 test -z "$as_dir" && as_dir=.
12152 for ac_exec_ext in '' $ac_executable_extensions; do
12153 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12154 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12164 STRIP=$ac_cv_prog_STRIP
12165 if test -n "$STRIP"; then
12166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12167 $as_echo "$STRIP" >&6; }
12169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12170 $as_echo "no" >&6; }
12175 if test -z "$ac_cv_prog_STRIP"; then
12177 # Extract the first word of "strip", so it can be a program name with args.
12178 set dummy strip; ac_word=$2
12179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12180 $as_echo_n "checking for $ac_word... " >&6; }
12181 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
12182 $as_echo_n "(cached) " >&6
12184 if test -n "$ac_ct_STRIP"; then
12185 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12188 for as_dir in $PATH
12191 test -z "$as_dir" && as_dir=.
12192 for ac_exec_ext in '' $ac_executable_extensions; do
12193 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12194 ac_cv_prog_ac_ct_STRIP="strip"
12195 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12204 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12205 if test -n "$ac_ct_STRIP"; then
12206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
12207 $as_echo "$ac_ct_STRIP" >&6; }
12209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12210 $as_echo "no" >&6; }
12213 if test "x$ac_ct_STRIP" = x; then
12216 case $cross_compiling:$ac_tool_warned in
12218 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12219 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12220 ac_tool_warned=yes ;;
12225 STRIP="$ac_cv_prog_STRIP"
12228 # Extract the first word of "makeinfo", so it can be a program name with args.
12229 set dummy makeinfo; ac_word=$2
12230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12231 $as_echo_n "checking for $ac_word... " >&6; }
12232 if ${ac_cv_prog_MAKEINFO+:} false; then :
12233 $as_echo_n "(cached) " >&6
12235 if test -n "$MAKEINFO"; then
12236 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
12238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12239 for as_dir in $PATH
12242 test -z "$as_dir" && as_dir=.
12243 for ac_exec_ext in '' $ac_executable_extensions; do
12244 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12245 ac_cv_prog_MAKEINFO="makeinfo"
12246 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12255 MAKEINFO=$ac_cv_prog_MAKEINFO
12256 if test -n "$MAKEINFO"; then
12257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
12258 $as_echo "$MAKEINFO" >&6; }
12260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12261 $as_echo "no" >&6; }
12265 if test "_$MAKEINFO" = "_"; then
12266 MAKEINFO="@echo Makeinfo is missing. Info documentation will not be built.;true"
12268 case "$MAKEINFO" in
12270 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
12271 *** Makeinfo is missing. Info documentation will not be built." >&5
12272 $as_echo "$as_me: WARNING:
12273 *** Makeinfo is missing. Info documentation will not be built." >&2;}
12281 # See if we need a separate native compiler.
12282 if test $cross_compiling = no; then
12286 for ac_prog in gcc cc
12288 # Extract the first word of "$ac_prog", so it can be a program name with args.
12289 set dummy $ac_prog; ac_word=$2
12290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12291 $as_echo_n "checking for $ac_word... " >&6; }
12292 if ${ac_cv_prog_BUILD_CC+:} false; then :
12293 $as_echo_n "(cached) " >&6
12295 if test -n "$BUILD_CC"; then
12296 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
12298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12299 for as_dir in $PATH
12302 test -z "$as_dir" && as_dir=.
12303 for ac_exec_ext in '' $ac_executable_extensions; do
12304 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12305 ac_cv_prog_BUILD_CC="$ac_prog"
12306 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12315 BUILD_CC=$ac_cv_prog_BUILD_CC
12316 if test -n "$BUILD_CC"; then
12317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
12318 $as_echo "$BUILD_CC" >&6; }
12320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12321 $as_echo "no" >&6; }
12325 test -n "$BUILD_CC" && break
12329 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 linux/falloc.h linux/fd.h linux/major.h linux/loop.h net/if_dl.h netinet/in.h sys/disklabel.h sys/disk.h sys/file.h sys/ioctl.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/sysmacros.h sys/time.h sys/types.h sys/un.h sys/wait.h
12331 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12332 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12333 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12334 cat >>confdefs.h <<_ACEOF
12335 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12342 for ac_header in net/if.h
12344 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
12345 #if HAVE_SYS_TYPES_H
12346 #include <sys/types.h>
12348 #if HAVE_SYS_SOCKET
12349 #include <sys/socket.h>
12353 if test "x$ac_cv_header_net_if_h" = xyes; then :
12354 cat >>confdefs.h <<_ACEOF
12355 #define HAVE_NET_IF_H 1
12362 for ac_func in vprintf
12364 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
12365 if test "x$ac_cv_func_vprintf" = xyes; then :
12366 cat >>confdefs.h <<_ACEOF
12367 #define HAVE_VPRINTF 1
12370 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
12371 if test "x$ac_cv_func__doprnt" = xyes; then :
12373 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
12381 ac_fn_c_check_member "$LINENO" "struct dirent" "d_reclen" "ac_cv_member_struct_dirent_d_reclen" "#include <dirent.h>
12383 if test "x$ac_cv_member_struct_dirent_d_reclen" = xyes; then :
12385 $as_echo "#define HAVE_RECLEN_DIRENT 1" >>confdefs.h
12389 ac_fn_c_check_member "$LINENO" "struct stat" "st_atim" "ac_cv_member_struct_stat_st_atim" "$ac_includes_default"
12390 if test "x$ac_cv_member_struct_stat_st_atim" = xyes; then :
12392 cat >>confdefs.h <<_ACEOF
12393 #define HAVE_STRUCT_STAT_ST_ATIM 1
12399 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "#include <sys/types.h>
12401 if test "x$ac_cv_type_ssize_t" = xyes; then :
12403 $as_echo "#define HAVE_TYPE_SSIZE_T 1" >>confdefs.h
12407 ac_fn_c_check_decl "$LINENO" "llseek" "ac_cv_have_decl_llseek" "#include <unistd.h>
12409 if test "x$ac_cv_have_decl_llseek" = xyes; then :
12411 $as_echo "#define HAVE_LLSEEK_PROTOTYPE 1" >>confdefs.h
12415 ac_fn_c_check_decl "$LINENO" "lseek64" "ac_cv_have_decl_lseek64" "#define _LARGEFILE_SOURCE
12416 #define _LARGEFILE64_SOURCE
12417 #include <unistd.h>
12419 if test "x$ac_cv_have_decl_lseek64" = xyes; then :
12421 $as_echo "#define HAVE_LSEEK64_PROTOTYPE 1" >>confdefs.h
12425 # The cast to long int works around a bug in the HP C Compiler
12426 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12427 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12428 # This bug is HP SR number 8606223364.
12429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
12430 $as_echo_n "checking size of short... " >&6; }
12431 if ${ac_cv_sizeof_short+:} false; then :
12432 $as_echo_n "(cached) " >&6
12434 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
12437 if test "$ac_cv_type_short" = yes; then
12438 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12439 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12440 as_fn_error 77 "cannot compute sizeof (short)
12441 See \`config.log' for more details" "$LINENO" 5; }
12443 ac_cv_sizeof_short=0
12448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
12449 $as_echo "$ac_cv_sizeof_short" >&6; }
12453 cat >>confdefs.h <<_ACEOF
12454 #define SIZEOF_SHORT $ac_cv_sizeof_short
12458 # The cast to long int works around a bug in the HP C Compiler
12459 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12460 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12461 # This bug is HP SR number 8606223364.
12462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
12463 $as_echo_n "checking size of int... " >&6; }
12464 if ${ac_cv_sizeof_int+:} false; then :
12465 $as_echo_n "(cached) " >&6
12467 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
12470 if test "$ac_cv_type_int" = yes; then
12471 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12472 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12473 as_fn_error 77 "cannot compute sizeof (int)
12474 See \`config.log' for more details" "$LINENO" 5; }
12481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
12482 $as_echo "$ac_cv_sizeof_int" >&6; }
12486 cat >>confdefs.h <<_ACEOF
12487 #define SIZEOF_INT $ac_cv_sizeof_int
12491 # The cast to long int works around a bug in the HP C Compiler
12492 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12493 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12494 # This bug is HP SR number 8606223364.
12495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
12496 $as_echo_n "checking size of long... " >&6; }
12497 if ${ac_cv_sizeof_long+:} false; then :
12498 $as_echo_n "(cached) " >&6
12500 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
12503 if test "$ac_cv_type_long" = yes; then
12504 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12505 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12506 as_fn_error 77 "cannot compute sizeof (long)
12507 See \`config.log' for more details" "$LINENO" 5; }
12509 ac_cv_sizeof_long=0
12514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
12515 $as_echo "$ac_cv_sizeof_long" >&6; }
12519 cat >>confdefs.h <<_ACEOF
12520 #define SIZEOF_LONG $ac_cv_sizeof_long
12524 # The cast to long int works around a bug in the HP C Compiler
12525 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12526 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12527 # This bug is HP SR number 8606223364.
12528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
12529 $as_echo_n "checking size of long long... " >&6; }
12530 if ${ac_cv_sizeof_long_long+:} false; then :
12531 $as_echo_n "(cached) " >&6
12533 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
12536 if test "$ac_cv_type_long_long" = yes; then
12537 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12538 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12539 as_fn_error 77 "cannot compute sizeof (long long)
12540 See \`config.log' for more details" "$LINENO" 5; }
12542 ac_cv_sizeof_long_long=0
12547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
12548 $as_echo "$ac_cv_sizeof_long_long" >&6; }
12552 cat >>confdefs.h <<_ACEOF
12553 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
12557 # The cast to long int works around a bug in the HP C Compiler
12558 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12559 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12560 # This bug is HP SR number 8606223364.
12561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
12562 $as_echo_n "checking size of off_t... " >&6; }
12563 if ${ac_cv_sizeof_off_t+:} false; then :
12564 $as_echo_n "(cached) " >&6
12566 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
12569 if test "$ac_cv_type_off_t" = yes; then
12570 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12571 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12572 as_fn_error 77 "cannot compute sizeof (off_t)
12573 See \`config.log' for more details" "$LINENO" 5; }
12575 ac_cv_sizeof_off_t=0
12580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
12581 $as_echo "$ac_cv_sizeof_off_t" >&6; }
12585 cat >>confdefs.h <<_ACEOF
12586 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
12590 SIZEOF_SHORT=$ac_cv_sizeof_short
12591 SIZEOF_INT=$ac_cv_sizeof_int
12592 SIZEOF_LONG=$ac_cv_sizeof_long
12593 SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
12594 SIZEOF_OFF_T=$ac_cv_sizeof_off_t
12600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
12601 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
12602 if ${ac_cv_c_bigendian+:} false; then :
12603 $as_echo_n "(cached) " >&6
12605 ac_cv_c_bigendian=unknown
12606 # See if we're dealing with a universal compiler.
12607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12608 /* end confdefs.h. */
12609 #ifndef __APPLE_CC__
12610 not a universal capable compiler
12615 if ac_fn_c_try_compile "$LINENO"; then :
12617 # Check for potential -arch flags. It is not universal unless
12618 # there are at least two -arch flags with different values.
12621 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
12622 if test -n "$ac_prev"; then
12624 i?86 | x86_64 | ppc | ppc64)
12625 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
12628 ac_cv_c_bigendian=universal
12634 elif test "x$ac_word" = "x-arch"; then
12639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12640 if test $ac_cv_c_bigendian = unknown; then
12641 # See if sys/param.h defines the BYTE_ORDER macro.
12642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12643 /* end confdefs.h. */
12644 #include <sys/types.h>
12645 #include <sys/param.h>
12650 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
12651 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
12653 bogus endian macros
12660 if ac_fn_c_try_compile "$LINENO"; then :
12661 # It does; now see whether it defined to BIG_ENDIAN or not.
12662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12663 /* end confdefs.h. */
12664 #include <sys/types.h>
12665 #include <sys/param.h>
12670 #if BYTE_ORDER != BIG_ENDIAN
12678 if ac_fn_c_try_compile "$LINENO"; then :
12679 ac_cv_c_bigendian=yes
12681 ac_cv_c_bigendian=no
12683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12687 if test $ac_cv_c_bigendian = unknown; then
12688 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
12689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12690 /* end confdefs.h. */
12691 #include <limits.h>
12696 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
12697 bogus endian macros
12704 if ac_fn_c_try_compile "$LINENO"; then :
12705 # It does; now see whether it defined to _BIG_ENDIAN or not.
12706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12707 /* end confdefs.h. */
12708 #include <limits.h>
12713 #ifndef _BIG_ENDIAN
12721 if ac_fn_c_try_compile "$LINENO"; then :
12722 ac_cv_c_bigendian=yes
12724 ac_cv_c_bigendian=no
12726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12730 if test $ac_cv_c_bigendian = unknown; then
12731 # Compile a test program.
12732 if test "$cross_compiling" = yes; then :
12733 # Try to guess by grepping values from an object file.
12734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12735 /* end confdefs.h. */
12736 short int ascii_mm[] =
12737 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12738 short int ascii_ii[] =
12739 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12740 int use_ascii (int i) {
12741 return ascii_mm[i] + ascii_ii[i];
12743 short int ebcdic_ii[] =
12744 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12745 short int ebcdic_mm[] =
12746 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12747 int use_ebcdic (int i) {
12748 return ebcdic_mm[i] + ebcdic_ii[i];
12755 return use_ascii (foo) == use_ebcdic (foo);
12760 if ac_fn_c_try_compile "$LINENO"; then :
12761 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
12762 ac_cv_c_bigendian=yes
12764 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
12765 if test "$ac_cv_c_bigendian" = unknown; then
12766 ac_cv_c_bigendian=no
12768 # finding both strings is unlikely to happen, but who knows?
12769 ac_cv_c_bigendian=unknown
12773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12776 /* end confdefs.h. */
12777 $ac_includes_default
12782 /* Are we little or big endian? From Harbison&Steele. */
12786 char c[sizeof (long int)];
12789 return u.c[sizeof (long int) - 1] == 1;
12795 if ac_fn_c_try_run "$LINENO"; then :
12796 ac_cv_c_bigendian=no
12798 ac_cv_c_bigendian=yes
12800 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12801 conftest.$ac_objext conftest.beam conftest.$ac_ext
12806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
12807 $as_echo "$ac_cv_c_bigendian" >&6; }
12808 case $ac_cv_c_bigendian in #(
12810 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
12816 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
12820 as_fn_error $? "unknown endianness
12821 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
12824 if test $cross_compiling = no; then
12825 BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
12827 CROSS_COMPILE="1" BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
12829 ASM_TYPES_HEADER=./asm_types.h
12831 echo "/* These defines are needed for the public ext2fs.h header file */" \
12833 if grep HAVE_SYS_TYPES_H confdefs.h > tmp_config.$$; then
12834 uniq tmp_config.$$ >> public_config.h
12836 echo "#undef HAVE_SYS_TYPES_H" >> public_config.h
12838 if grep WORDS_BIGENDIAN confdefs.h > tmp_config.$$; then
12839 uniq tmp_config.$$ >> public_config.h
12841 echo "#undef WORDS_BIGENDIAN" >> public_config.h
12843 rm -f tmp_config.$$
12844 PUBLIC_CONFIG_HEADER=./public_config.h
12846 for ac_header in inttypes.h
12848 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
12849 if test "x$ac_cv_header_inttypes_h" = xyes; then :
12850 cat >>confdefs.h <<_ACEOF
12851 #define HAVE_INTTYPES_H 1
12858 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
12859 if test "x$ac_cv_type_intptr_t" = xyes; then :
12861 cat >>confdefs.h <<_ACEOF
12862 #define HAVE_INTPTR_T 1
12868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat has a st_flags field" >&5
12869 $as_echo_n "checking whether struct stat has a st_flags field... " >&6; }
12870 if ${e2fsprogs_cv_struct_st_flags+:} false; then :
12871 $as_echo_n "(cached) " >&6
12873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12874 /* end confdefs.h. */
12875 #include <sys/stat.h>
12879 struct stat stat; stat.st_flags = 0;
12884 if ac_fn_c_try_compile "$LINENO"; then :
12885 e2fsprogs_cv_struct_st_flags=yes
12887 e2fsprogs_cv_struct_st_flags=no
12889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags" >&5
12893 $as_echo "$e2fsprogs_cv_struct_st_flags" >&6; }
12894 if test "$e2fsprogs_cv_struct_st_flags" = yes; then
12895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether st_flags field is useful" >&5
12896 $as_echo_n "checking whether st_flags field is useful... " >&6; }
12897 if ${e2fsprogs_cv_struct_st_flags_immut+:} false; then :
12898 $as_echo_n "(cached) " >&6
12900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12901 /* end confdefs.h. */
12902 #include <sys/stat.h>
12906 struct stat stat; stat.st_flags |= UF_IMMUTABLE;
12911 if ac_fn_c_try_compile "$LINENO"; then :
12912 e2fsprogs_cv_struct_st_flags_immut=yes
12914 e2fsprogs_cv_struct_st_flags_immut=no
12916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags_immut" >&5
12920 $as_echo "$e2fsprogs_cv_struct_st_flags_immut" >&6; }
12921 if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
12923 $as_echo "#define HAVE_STAT_FLAGS 1" >>confdefs.h
12927 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h>
12928 #include <sys/socket.h>
12930 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
12932 cat >>confdefs.h <<_ACEOF
12933 #define HAVE_SA_LEN 1
12938 if test -n "$BLKID_CMT"; then
12939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing blkid_probe_all" >&5
12940 $as_echo_n "checking for library containing blkid_probe_all... " >&6; }
12941 if ${ac_cv_search_blkid_probe_all+:} false; then :
12942 $as_echo_n "(cached) " >&6
12944 ac_func_search_save_LIBS=$LIBS
12945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12946 /* end confdefs.h. */
12948 /* Override any GCC internal prototype to avoid an error.
12949 Use char because int might match the return type of a GCC
12950 builtin and then its argument prototype would still apply. */
12954 char blkid_probe_all ();
12958 return blkid_probe_all ();
12963 for ac_lib in '' blkid; do
12964 if test -z "$ac_lib"; then
12965 ac_res="none required"
12968 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12970 if ac_fn_c_try_link "$LINENO"; then :
12971 ac_cv_search_blkid_probe_all=$ac_res
12973 rm -f core conftest.err conftest.$ac_objext \
12975 if ${ac_cv_search_blkid_probe_all+:} false; then :
12979 if ${ac_cv_search_blkid_probe_all+:} false; then :
12982 ac_cv_search_blkid_probe_all=no
12984 rm conftest.$ac_ext
12985 LIBS=$ac_func_search_save_LIBS
12987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_blkid_probe_all" >&5
12988 $as_echo "$ac_cv_search_blkid_probe_all" >&6; }
12989 ac_res=$ac_cv_search_blkid_probe_all
12990 if test "$ac_res" != no; then :
12991 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12996 for ac_func in __secure_getenv 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 llseek lseek64 mallinfo mbstowcs memalign mempcpy mmap msync nanosleep open64 pathconf posix_fadvise posix_fadvise64 posix_memalign prctl secure_getenv setmntent setresgid setresuid srandom stpcpy strcasecmp strdup strnlen strptime strtoull sync_file_range sysconf usleep utime valloc
12998 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12999 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13000 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13001 cat >>confdefs.h <<_ACEOF
13002 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
13010 $as_echo_n "checking for socket in -lsocket... " >&6; }
13011 if ${ac_cv_lib_socket_socket+:} false; then :
13012 $as_echo_n "(cached) " >&6
13014 ac_check_lib_save_LIBS=$LIBS
13015 LIBS="-lsocket $LIBS"
13016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13017 /* end confdefs.h. */
13019 /* Override any GCC internal prototype to avoid an error.
13020 Use char because int might match the return type of a GCC
13021 builtin and then its argument prototype would still apply. */
13034 if ac_fn_c_try_link "$LINENO"; then :
13035 ac_cv_lib_socket_socket=yes
13037 ac_cv_lib_socket_socket=no
13039 rm -f core conftest.err conftest.$ac_objext \
13040 conftest$ac_exeext conftest.$ac_ext
13041 LIBS=$ac_check_lib_save_LIBS
13043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
13044 $as_echo "$ac_cv_lib_socket_socket" >&6; }
13045 if test "x$ac_cv_lib_socket_socket" = xyes; then :
13046 SOCKET_LIB=-lsocket
13050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for optreset" >&5
13051 $as_echo_n "checking for optreset... " >&6; }
13052 if ${ac_cv_have_optreset+:} false; then :
13053 $as_echo_n "(cached) " >&6
13055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13056 /* end confdefs.h. */
13057 #include <unistd.h>
13060 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13061 $EGREP "optreset" >/dev/null 2>&1; then :
13062 ac_cv_have_optreset=yes
13064 ac_cv_have_optreset=no
13069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_optreset" >&5
13070 $as_echo "$ac_cv_have_optreset" >&6; }
13071 if test $ac_cv_have_optreset = yes; then
13073 $as_echo "#define HAVE_OPTRESET 1" >>confdefs.h
13078 ac_fn_c_check_func "$LINENO" "sem_init" "ac_cv_func_sem_init"
13079 if test "x$ac_cv_func_sem_init" = xyes; then :
13082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lpthread" >&5
13083 $as_echo_n "checking for sem_init in -lpthread... " >&6; }
13084 if ${ac_cv_lib_pthread_sem_init+:} false; then :
13085 $as_echo_n "(cached) " >&6
13087 ac_check_lib_save_LIBS=$LIBS
13088 LIBS="-lpthread $LIBS"
13089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13090 /* end confdefs.h. */
13092 /* Override any GCC internal prototype to avoid an error.
13093 Use char because int might match the return type of a GCC
13094 builtin and then its argument prototype would still apply. */
13102 return sem_init ();
13107 if ac_fn_c_try_link "$LINENO"; then :
13108 ac_cv_lib_pthread_sem_init=yes
13110 ac_cv_lib_pthread_sem_init=no
13112 rm -f core conftest.err conftest.$ac_objext \
13113 conftest$ac_exeext conftest.$ac_ext
13114 LIBS=$ac_check_lib_save_LIBS
13116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_sem_init" >&5
13117 $as_echo "$ac_cv_lib_pthread_sem_init" >&6; }
13118 if test "x$ac_cv_lib_pthread_sem_init" = xyes; then :
13119 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
13121 SEM_INIT_LIB=-lpthread
13123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lrt" >&5
13124 $as_echo_n "checking for sem_init in -lrt... " >&6; }
13125 if ${ac_cv_lib_rt_sem_init+:} false; then :
13126 $as_echo_n "(cached) " >&6
13128 ac_check_lib_save_LIBS=$LIBS
13130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13131 /* end confdefs.h. */
13133 /* Override any GCC internal prototype to avoid an error.
13134 Use char because int might match the return type of a GCC
13135 builtin and then its argument prototype would still apply. */
13143 return sem_init ();
13148 if ac_fn_c_try_link "$LINENO"; then :
13149 ac_cv_lib_rt_sem_init=yes
13151 ac_cv_lib_rt_sem_init=no
13153 rm -f core conftest.err conftest.$ac_objext \
13154 conftest$ac_exeext conftest.$ac_ext
13155 LIBS=$ac_check_lib_save_LIBS
13157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sem_init" >&5
13158 $as_echo "$ac_cv_lib_rt_sem_init" >&6; }
13159 if test "x$ac_cv_lib_rt_sem_init" = xyes; then :
13160 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
13164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lposix4" >&5
13165 $as_echo_n "checking for sem_init in -lposix4... " >&6; }
13166 if ${ac_cv_lib_posix4_sem_init+:} false; then :
13167 $as_echo_n "(cached) " >&6
13169 ac_check_lib_save_LIBS=$LIBS
13170 LIBS="-lposix4 $LIBS"
13171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13172 /* end confdefs.h. */
13174 /* Override any GCC internal prototype to avoid an error.
13175 Use char because int might match the return type of a GCC
13176 builtin and then its argument prototype would still apply. */
13184 return sem_init ();
13189 if ac_fn_c_try_link "$LINENO"; then :
13190 ac_cv_lib_posix4_sem_init=yes
13192 ac_cv_lib_posix4_sem_init=no
13194 rm -f core conftest.err conftest.$ac_objext \
13195 conftest$ac_exeext conftest.$ac_ext
13196 LIBS=$ac_check_lib_save_LIBS
13198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sem_init" >&5
13199 $as_echo "$ac_cv_lib_posix4_sem_init" >&6; }
13200 if test "x$ac_cv_lib_posix4_sem_init" = xyes; then :
13201 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
13203 SEM_INIT_LIB=-lposix4
13212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unified diff option" >&5
13213 $as_echo_n "checking for unified diff option... " >&6; }
13214 if diff -u $0 $0 > /dev/null 2>&1 ; then
13219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNI_DIFF_OPTS" >&5
13220 $as_echo "$UNI_DIFF_OPTS" >&6; }
13225 $as_echo "#define HAVE_EXT2_IOCTLS 1" >>confdefs.h
13245 linux* | gnu* | k*bsd*-gnu)
13246 if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
13248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, root_prefix defaults to ''" >&5
13249 $as_echo "On $host_os systems, root_prefix defaults to ''" >&6; }
13254 linux* | gnu* | k*bsd*-gnu)
13255 if test "$prefix" = NONE ; then
13257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, prefix defaults to /usr" >&5
13258 $as_echo "On $host_os systems, prefix defaults to /usr" >&6; }
13259 if test "$mandir" = '${prefix}/man' ; then
13260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ...and mandir defaults to /usr/share/man" >&5
13261 $as_echo "...and mandir defaults to /usr/share/man" >&6; }
13262 mandir=/usr/share/man
13267 if test "$root_prefix" = NONE ; then
13268 if test "$prefix" = NONE ; then
13269 root_prefix="$ac_default_prefix"
13271 root_prefix="$prefix"
13273 root_bindir=$bindir
13274 root_sbindir=$sbindir
13275 root_libdir=$libdir
13276 root_sysconfdir=$sysconfdir
13278 root_bindir='${root_prefix}/bin'
13279 root_sbindir='${root_prefix}/sbin'
13280 root_libdir='${root_prefix}/lib'
13281 root_sysconfdir='${root_prefix}/etc'
13283 if test "$bindir" != '${exec_prefix}/bin'; then
13284 root_bindir=$bindir
13285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_bindir to $root_bindir" >&5
13286 $as_echo "Setting root_bindir to $root_bindir" >&6; }
13288 if test "$sbindir" != '${exec_prefix}/sbin'; then
13289 root_sbindir=$sbindir
13290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sbindir to $root_sbindir" >&5
13291 $as_echo "Setting root_sbindir to $root_sbindir" >&6; }
13293 if test "$libdir" != '${exec_prefix}/lib'; then
13294 root_libdir=$libdir
13295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_libdir to $root_libdir" >&5
13296 $as_echo "Setting root_libdir to $root_libdir" >&6; }
13298 if test "$sysconfdir" != '${prefix}/etc'; then
13299 root_sysconfdir=$sysconfdir
13300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sysconfdir to $root_sysconfdir" >&5
13301 $as_echo "Setting root_sysconfdir to $root_sysconfdir" >&6; }
13309 # Check whether --with-multiarch was given.
13310 if test "${with_multiarch+set}" = set; then :
13311 withval=$with_multiarch; if test "$withval" = "lib64"; then
13315 libdir=$libdir/$withval
13316 root_libdir=$root_libdir/$withval
13320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can link with -static" >&5
13321 $as_echo_n "checking whether we can link with -static... " >&6; }
13322 if ${ac_cv_e2fsprogs_use_static+:} false; then :
13323 $as_echo_n "(cached) " >&6
13325 SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static"
13326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13327 /* end confdefs.h. */
13337 if ac_fn_c_try_link "$LINENO"; then :
13338 ac_cv_e2fsprogs_use_static=yes
13340 ac_cv_e2fsprogs_use_static=no
13342 rm -f core conftest.err conftest.$ac_objext \
13343 conftest$ac_exeext conftest.$ac_ext
13344 LDFLAGS=$SAVE_LDFLAGS
13349 ac_cv_e2fsprogs_use_static=no
13352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_e2fsprogs_use_static" >&5
13353 $as_echo "$ac_cv_e2fsprogs_use_static" >&6; }
13355 if test $ac_cv_e2fsprogs_use_static = yes; then
13356 LDFLAG_STATIC=-static
13361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using Apple Darwin / GNU libintl workaround" >&5
13362 $as_echo "Using Apple Darwin / GNU libintl workaround" >&6; }
13364 $as_echo "#define _INTL_REDIRECT_MACROS 1" >>confdefs.h
13368 SS_DIR=`cd ${srcdir}/lib/ss; pwd`
13369 ET_DIR=`cd ${srcdir}/lib/et; pwd`
13372 if test "$cross_compiling" = yes ; then
13375 DO_TEST_SUITE=check
13378 INCLUDES='-I. -I$(top_builddir)/lib -I$(top_srcdir)/lib'
13379 if test -n "$CPPFLAGS" ; then
13380 INCLUDES="$INCLUDES $CPPFLAGS"
13382 if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
13383 INCLUDES=$INCLUDES' -I$(top_builddir)/intl -I$(top_srcdir)/intl'
13385 if test -n "$WITH_DIET_LIBC" ; then
13386 INCLUDES="$INCLUDES -D_REENTRANT"
13389 if test $cross_compiling = no; then
13390 BUILD_CFLAGS="$CFLAGS $CPPFLAGS $INCLUDES -DHAVE_CONFIG_H"
13391 BUILD_LDFLAGS="$LDFLAGS"
13398 test -d lib || mkdir lib
13399 test -d include || mkdir include
13400 test -d include/linux || mkdir include/linux
13401 test -d include/asm || mkdir include/asm
13402 for i in MCONFIG Makefile e2fsprogs.spec \
13403 util/Makefile util/subst.conf util/gen-tarball util/install-symlink \
13404 lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \
13405 lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \
13406 lib/uuid/Makefile lib/uuid/uuid_types.h \
13407 lib/blkid/Makefile lib/blkid/blkid_types.h lib/quota/Makefile \
13408 lib/ss/ss.pc lib/uuid/uuid.pc lib/et/com_err.pc \
13409 lib/e2p/e2p.pc lib/blkid/blkid.pc lib/ext2fs/ext2fs.pc \
13410 misc/Makefile ext2ed/Makefile e2fsck/Makefile \
13411 debugfs/Makefile tests/Makefile tests/progs/Makefile \
13412 resize/Makefile doc/Makefile intl/Makefile \
13413 intl/libgnuintl.h po/Makefile.in ; do
13414 if test -d `dirname ${srcdir}/$i` ; then
13415 outlist="$outlist $i"
13418 ac_config_files="$ac_config_files $outlist"
13420 cat >confcache <<\_ACEOF
13421 # This file is a shell script that caches the results of configure
13422 # tests run on this system so they can be shared between configure
13423 # scripts and configure runs, see configure's option --config-cache.
13424 # It is not useful on other systems. If it contains results you don't
13425 # want to keep, you may remove or edit it.
13427 # config.status only pays attention to the cache file if you give it
13428 # the --recheck option to rerun configure.
13430 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13431 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13432 # following values.
13436 # The following way of writing the cache mishandles newlines in values,
13437 # but we know of no workaround that is simple, portable, and efficient.
13438 # So, we kill variables containing newlines.
13439 # Ultrix sh set writes to stderr and can't be redirected directly,
13440 # and sets the high bit in the cache file unless we assign to the vars.
13442 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13443 eval ac_val=\$$ac_var
13447 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13448 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13451 _ | IFS | as_nl) ;; #(
13452 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13453 *) { eval $ac_var=; unset $ac_var;} ;;
13459 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13460 *${as_nl}ac_space=\ *)
13461 # `set' does not quote correctly, so add quotes: double-quote
13462 # substitution turns \\\\ into \\, and sed turns \\ into \.
13465 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13468 # `set' quotes correctly as required by POSIX, so do not add quotes.
13469 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13478 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13480 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13482 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13483 if test -w "$cache_file"; then
13484 if test "x$cache_file" != "x/dev/null"; then
13485 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13486 $as_echo "$as_me: updating cache $cache_file" >&6;}
13487 if test ! -f "$cache_file" || test -h "$cache_file"; then
13488 cat confcache >"$cache_file"
13490 case $cache_file in #(
13492 mv -f confcache "$cache_file"$$ &&
13493 mv -f "$cache_file"$$ "$cache_file" ;; #(
13495 mv -f confcache "$cache_file" ;;
13500 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13501 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13506 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13507 # Let make expand exec_prefix.
13508 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13510 DEFS=-DHAVE_CONFIG_H
13515 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13516 # 1. Remove the extension, and $U if already installed.
13517 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13518 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13519 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13520 # will be set to the directory where LIBOBJS objects are built.
13521 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13522 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13524 LIBOBJS=$ac_libobjs
13526 LTLIBOBJS=$ac_ltlibobjs
13531 : "${CONFIG_STATUS=./config.status}"
13533 ac_clean_files_save=$ac_clean_files
13534 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13535 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13536 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13538 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13540 # Generated by $as_me.
13541 # Run this file to recreate the current configuration.
13542 # Compiler output produced by configure, useful for debugging
13543 # configure, is in config.log if it exists.
13546 ac_cs_recheck=false
13549 SHELL=\${CONFIG_SHELL-$SHELL}
13552 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13553 ## -------------------- ##
13554 ## M4sh Initialization. ##
13555 ## -------------------- ##
13557 # Be more Bourne compatible
13558 DUALCASE=1; export DUALCASE # for MKS sh
13559 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13562 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13563 # is contrary to our usage. Disable this feature.
13564 alias -g '${1+"$@"}'='"$@"'
13565 setopt NO_GLOB_SUBST
13567 case `(set -o) 2>/dev/null` in #(
13579 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13580 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13581 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13582 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13583 # Prefer a ksh shell builtin over an external printf program on Solaris,
13584 # but without wasting forks for bash or zsh.
13585 if test -z "$BASH_VERSION$ZSH_VERSION" \
13586 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13587 as_echo='print -r --'
13588 as_echo_n='print -rn --'
13589 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13590 as_echo='printf %s\n'
13591 as_echo_n='printf %s'
13593 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13594 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13595 as_echo_n='/usr/ucb/echo -n'
13597 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13598 as_echo_n_body='eval
13602 expr "X$arg" : "X\\(.*\\)$as_nl";
13603 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13605 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13607 export as_echo_n_body
13608 as_echo_n='sh -c $as_echo_n_body as_echo'
13610 export as_echo_body
13611 as_echo='sh -c $as_echo_body as_echo'
13614 # The user is always right.
13615 if test "${PATH_SEPARATOR+set}" != set; then
13617 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13618 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13625 # We need space, tab and new line, in precisely that order. Quoting is
13626 # there to prevent editors from complaining about space-tab.
13627 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13628 # splitting by setting IFS to empty value.)
13631 # Find who we are. Look in the path if we contain no directory separator.
13634 *[\\/]* ) as_myself=$0 ;;
13635 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13636 for as_dir in $PATH
13639 test -z "$as_dir" && as_dir=.
13640 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13646 # We did not find ourselves, most probably we were run as `sh COMMAND'
13647 # in which case we are not to be found in the path.
13648 if test "x$as_myself" = x; then
13651 if test ! -f "$as_myself"; then
13652 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13656 # Unset variables that we do not need and which cause bugs (e.g. in
13657 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13658 # suppresses any "Segmentation fault" message there. '((' could
13659 # trigger a bug in pdksh 5.2.14.
13660 for as_var in BASH_ENV ENV MAIL MAILPATH
13661 do eval test x\${$as_var+set} = xset \
13662 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13675 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13678 # as_fn_error STATUS ERROR [LINENO LOG_FD]
13679 # ----------------------------------------
13680 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13681 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13682 # script with STATUS, using 1 if that was 0.
13685 as_status=$1; test $as_status -eq 0 && as_status=1
13687 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13688 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13690 $as_echo "$as_me: error: $2" >&2
13691 as_fn_exit $as_status
13695 # as_fn_set_status STATUS
13696 # -----------------------
13697 # Set $? to STATUS, without forking.
13698 as_fn_set_status ()
13701 } # as_fn_set_status
13703 # as_fn_exit STATUS
13704 # -----------------
13705 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13709 as_fn_set_status $1
13715 # Portably unset VAR.
13718 { eval $1=; unset $1;}
13720 as_unset=as_fn_unset
13721 # as_fn_append VAR VALUE
13722 # ----------------------
13723 # Append the text in VALUE to the end of the definition contained in VAR. Take
13724 # advantage of any shell optimizations that allow amortized linear growth over
13725 # repeated appends, instead of the typical quadratic growth present in naive
13727 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13728 eval 'as_fn_append ()
13739 # as_fn_arith ARG...
13740 # ------------------
13741 # Perform arithmetic evaluation on the ARGs, and store the result in the
13742 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13743 # must be portable across $(()) and expr.
13744 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13745 eval 'as_fn_arith ()
13752 as_val=`expr "$@" || test $? -eq 1`
13757 if expr a : '\(a\)' >/dev/null 2>&1 &&
13758 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13764 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13765 as_basename=basename
13770 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13776 as_me=`$as_basename -- "$0" ||
13777 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13778 X"$0" : 'X\(//\)$' \| \
13779 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13781 sed '/^.*\/\([^/][^/]*\)\/*$/{
13795 # Avoid depending upon Character Ranges.
13796 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13797 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13798 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13799 as_cr_digits='0123456789'
13800 as_cr_alnum=$as_cr_Letters$as_cr_digits
13802 ECHO_C= ECHO_N= ECHO_T=
13803 case `echo -n x` in #(((((
13805 case `echo 'xy\c'` in
13806 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13808 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13815 rm -f conf$$ conf$$.exe conf$$.file
13816 if test -d conf$$.dir; then
13817 rm -f conf$$.dir/conf$$.file
13820 mkdir conf$$.dir 2>/dev/null
13822 if (echo >conf$$.file) 2>/dev/null; then
13823 if ln -s conf$$.file conf$$ 2>/dev/null; then
13825 # ... but there are two gotchas:
13826 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13827 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13828 # In both cases, we have to default to `cp -pR'.
13829 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13831 elif ln conf$$.file conf$$ 2>/dev/null; then
13839 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13840 rmdir conf$$.dir 2>/dev/null
13845 # Create "$as_dir" as a directory, including parents if necessary.
13850 -*) as_dir=./$as_dir;;
13852 test -d "$as_dir" || eval $as_mkdir_p || {
13856 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13857 *) as_qdir=$as_dir;;
13859 as_dirs="'$as_qdir' $as_dirs"
13860 as_dir=`$as_dirname -- "$as_dir" ||
13861 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13862 X"$as_dir" : 'X\(//\)[^/]' \| \
13863 X"$as_dir" : 'X\(//\)$' \| \
13864 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13865 $as_echo X"$as_dir" |
13866 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13870 /^X\(\/\/\)[^/].*/{
13883 test -d "$as_dir" && break
13885 test -z "$as_dirs" || eval "mkdir $as_dirs"
13886 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13890 if mkdir -p . 2>/dev/null; then
13891 as_mkdir_p='mkdir -p "$as_dir"'
13893 test -d ./-p && rmdir ./-p
13898 # as_fn_executable_p FILE
13899 # -----------------------
13900 # Test if FILE is an executable regular file.
13901 as_fn_executable_p ()
13903 test -f "$1" && test -x "$1"
13904 } # as_fn_executable_p
13905 as_test_x='test -x'
13906 as_executable_p=as_fn_executable_p
13908 # Sed expression to map a string onto a valid CPP name.
13909 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13911 # Sed expression to map a string onto a valid variable name.
13912 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13916 ## ----------------------------------- ##
13917 ## Main body of $CONFIG_STATUS script. ##
13918 ## ----------------------------------- ##
13920 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13922 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13923 # Save the log message, to keep $0 and so on meaningful, and to
13924 # report actual input values of CONFIG_FILES etc. instead of their
13925 # values after options handling.
13927 This file was extended by $as_me, which was
13928 generated by GNU Autoconf 2.69. Invocation command line was
13930 CONFIG_FILES = $CONFIG_FILES
13931 CONFIG_HEADERS = $CONFIG_HEADERS
13932 CONFIG_LINKS = $CONFIG_LINKS
13933 CONFIG_COMMANDS = $CONFIG_COMMANDS
13936 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13941 case $ac_config_files in *"
13942 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13945 case $ac_config_headers in *"
13946 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13950 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13951 # Files that config.status was made for.
13952 config_files="$ac_config_files"
13953 config_headers="$ac_config_headers"
13954 config_commands="$ac_config_commands"
13958 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13960 \`$as_me' instantiates files and other configuration actions
13961 from templates according to the current configuration. Unless the files
13962 and actions are specified as TAGs, all are instantiated by default.
13964 Usage: $0 [OPTION]... [TAG]...
13966 -h, --help print this help, then exit
13967 -V, --version print version number and configuration settings, then exit
13968 --config print configuration, then exit
13969 -q, --quiet, --silent
13970 do not print progress messages
13971 -d, --debug don't remove temporary files
13972 --recheck update $as_me by reconfiguring in the same conditions
13973 --file=FILE[:TEMPLATE]
13974 instantiate the configuration file FILE
13975 --header=FILE[:TEMPLATE]
13976 instantiate the configuration header FILE
13978 Configuration files:
13981 Configuration headers:
13984 Configuration commands:
13987 Report bugs to the package provider."
13990 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13991 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13994 configured by $0, generated by GNU Autoconf 2.69,
13995 with options \\"\$ac_cs_config\\"
13997 Copyright (C) 2012 Free Software Foundation, Inc.
13998 This config.status script is free software; the Free Software Foundation
13999 gives unlimited permission to copy, distribute and modify it."
14006 test -n "\$AWK" || AWK=awk
14009 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14010 # The default lists apply if the user does not specify any file.
14016 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14017 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14021 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14033 # Handling of the options.
14034 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14036 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14037 $as_echo "$ac_cs_version"; exit ;;
14038 --config | --confi | --conf | --con | --co | --c )
14039 $as_echo "$ac_cs_config"; exit ;;
14040 --debug | --debu | --deb | --de | --d | -d )
14042 --file | --fil | --fi | --f )
14045 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14046 '') as_fn_error $? "missing file argument" ;;
14048 as_fn_append CONFIG_FILES " '$ac_optarg'"
14049 ac_need_defaults=false;;
14050 --header | --heade | --head | --hea )
14053 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14055 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14056 ac_need_defaults=false;;
14058 # Conflict between --help and --header
14059 as_fn_error $? "ambiguous option: \`$1'
14060 Try \`$0 --help' for more information.";;
14061 --help | --hel | -h )
14062 $as_echo "$ac_cs_usage"; exit ;;
14063 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14064 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14067 # This is an error.
14068 -*) as_fn_error $? "unrecognized option: \`$1'
14069 Try \`$0 --help' for more information." ;;
14071 *) as_fn_append ac_config_targets " $1"
14072 ac_need_defaults=false ;;
14078 ac_configure_extra_args=
14080 if $ac_cs_silent; then
14082 ac_configure_extra_args="$ac_configure_extra_args --silent"
14086 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14087 if \$ac_cs_recheck; then
14088 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14090 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14091 CONFIG_SHELL='$SHELL'
14092 export CONFIG_SHELL
14097 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14101 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14102 ## Running $as_me. ##
14108 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14112 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
14113 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
14114 # from automake < 1.5.
14115 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
14116 # Capture the value of LINGUAS because we need it to compute CATALOGS.
14117 LINGUAS="${LINGUAS-%UNSET%}"
14122 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14124 # Handling of arguments.
14125 for ac_config_target in $ac_config_targets
14127 case $ac_config_target in
14128 "lib/config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/config.h" ;;
14129 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
14130 "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;;
14132 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14137 # If the user did not use the arguments to specify the items to instantiate,
14138 # then the envvar interface is used. Set only those that are not.
14139 # We use the long form for the default assignment because of an extremely
14140 # bizarre bug on SunOS 4.1.3.
14141 if $ac_need_defaults; then
14142 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14143 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14144 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14147 # Have a temporary directory for convenience. Make it in the build tree
14148 # simply because there is no reason against having it here, and in addition,
14149 # creating and moving files from /tmp can sometimes cause problems.
14150 # Hook for its removal unless debugging.
14151 # Note that there is a small window in which the directory will not be cleaned:
14152 # after its creation but before its name has been assigned to `$tmp'.
14156 trap 'exit_status=$?
14157 : "${ac_tmp:=$tmp}"
14158 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
14160 trap 'as_fn_exit 1' 1 2 13 15
14162 # Create a (secure) tmp directory for tmp files.
14165 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14169 tmp=./conf$$-$RANDOM
14170 (umask 077 && mkdir "$tmp")
14171 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14174 # Set up the scripts for CONFIG_FILES section.
14175 # No need to generate them if there are no CONFIG_FILES.
14176 # This happens for instance with `./config.status config.h'.
14177 if test -n "$CONFIG_FILES"; then
14179 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
14180 ac_cs_awk_getline=:
14181 ac_cs_awk_pipe_init=
14182 ac_cs_awk_read_file='
14183 while ((getline aline < (F[key])) > 0)
14186 ac_cs_awk_pipe_fini=
14188 ac_cs_awk_getline=false
14189 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
14190 ac_cs_awk_read_file='
14192 print "cat " F[key] " &&"
14193 '$ac_cs_awk_pipe_init
14194 # The final `:' finishes the AND list.
14195 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
14197 ac_cr=`echo X | tr X '\015'`
14198 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14199 # But we know of no other shell where ac_cr would be empty at this
14200 # point, so we can use a bashism as a fallback.
14201 if test "x$ac_cr" = x; then
14202 eval ac_cr=\$\'\\r\'
14204 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14205 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14208 ac_cs_awk_cr=$ac_cr
14211 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
14214 # Create commands to substitute file output variables.
14216 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
14217 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
14218 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
14221 } >conf$$files.sh &&
14222 . ./conf$$files.sh ||
14223 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14224 rm -f conf$$files.sh
14227 echo "cat >conf$$subs.awk <<_ACEOF" &&
14228 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14230 } >conf$$subs.sh ||
14231 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14232 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14234 for ac_last_try in false false false false false :; do
14235 . ./conf$$subs.sh ||
14236 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14238 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14239 if test $ac_delim_n = $ac_delim_num; then
14241 elif $ac_last_try; then
14242 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14244 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14247 rm -f conf$$subs.sh
14249 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14250 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14254 s/^/S["/; s/!.*/"]=/
14264 s/\(.\{148\}\)..*/\1/
14266 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14271 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14278 s/\(.\{148\}\)..*/\1/
14280 s/["\\]/\\&/g; s/^/"/; s/$/"/
14284 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14289 ' <conf$$subs.awk | sed '
14294 ' >>$CONFIG_STATUS || ac_write_fail=1
14295 rm -f conf$$subs.awk
14296 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14298 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14299 for (key in S) S_is_set[key] = 1
14301 \$ac_cs_awk_pipe_init
14305 nfields = split(line, field, "@")
14307 len = length(field[1])
14308 for (i = 2; i < nfields; i++) {
14310 keylen = length(key)
14311 if (S_is_set[key]) {
14313 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14314 len += length(value) + length(field[++i])
14319 if (nfields == 3 && !substed) {
14321 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
14322 \$ac_cs_awk_read_file
14328 \$ac_cs_awk_pipe_fini
14331 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14332 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14333 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14336 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14337 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14340 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14341 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14342 # trailing colons and then remove the whole line if VPATH becomes empty
14343 # (actually we leave an empty line to preserve line numbers).
14344 if test "x$srcdir" = x.; then
14345 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
14363 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14364 fi # test -n "$CONFIG_FILES"
14366 # Set up the scripts for CONFIG_HEADERS section.
14367 # No need to generate them if there are no CONFIG_HEADERS.
14368 # This happens for instance with `./config.status Makefile'.
14369 if test -n "$CONFIG_HEADERS"; then
14370 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
14374 # Transform confdefs.h into an awk script `defines.awk', embedded as
14375 # here-document in config.status, that substitutes the proper values into
14376 # config.h.in to produce config.h.
14378 # Create a delimiter string that does not exist in confdefs.h, to ease
14379 # handling of long lines.
14381 for ac_last_try in false false :; do
14382 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14383 if test -z "$ac_tt"; then
14385 elif $ac_last_try; then
14386 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14388 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14392 # For the awk script, D is an array of macro values keyed by name,
14393 # likewise P contains macro parameters if any. Preserve backslash
14394 # newline sequences.
14396 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14398 s/.\{148\}/&'"$ac_delim"'/g
14401 s/^[ ]*#[ ]*define[ ][ ]*/ /
14408 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14410 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14414 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14415 D["\1"]=" \3\\\\\\n"\\/p
14417 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14422 s/.\{148\}/&'"$ac_delim"'/g
14427 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14430 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14432 ' <confdefs.h | sed '
14433 s/'"$ac_delim"'/"\\\
14434 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14436 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14437 for (key in D) D_is_set[key] = 1
14440 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14442 split(line, arg, " ")
14443 if (arg[1] == "#") {
14447 defundef = substr(arg[1], 2)
14450 split(mac1, mac2, "(") #)
14452 prefix = substr(line, 1, index(line, defundef) - 1)
14453 if (D_is_set[macro]) {
14454 # Preserve the white space surrounding the "#".
14455 print prefix "define", macro P[macro] D[macro]
14458 # Replace #undef with comments. This is necessary, for example,
14459 # in the case of _POSIX_SOURCE, which is predefined and required
14460 # on some systems where configure will not decide to define it.
14461 if (defundef == "undef") {
14462 print "/*", prefix defundef, macro, "*/"
14470 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14471 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14472 fi # test -n "$CONFIG_HEADERS"
14475 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14480 :[FHLC]) ac_mode=$ac_tag; continue;;
14482 case $ac_mode$ac_tag in
14484 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14485 :[FH]-) ac_tag=-:-;;
14486 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14503 -) ac_f="$ac_tmp/stdin";;
14504 *) # Look for the file first in the build tree, then in the source tree
14505 # (if the path is not absolute). The absolute path cannot be DOS-style,
14506 # because $ac_f cannot contain `:'.
14510 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14512 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14514 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14515 as_fn_append ac_file_inputs " '$ac_f'"
14518 # Let's still pretend it is `configure' which instantiates (i.e., don't
14519 # use $as_me), people would be surprised to read:
14520 # /* config.h. Generated by config.status. */
14521 configure_input='Generated from '`
14522 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14524 if test x"$ac_file" != x-; then
14525 configure_input="$ac_file. $configure_input"
14526 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14527 $as_echo "$as_me: creating $ac_file" >&6;}
14529 # Neutralize special characters interpreted by sed in replacement strings.
14530 case $configure_input in #(
14531 *\&* | *\|* | *\\* )
14532 ac_sed_conf_input=`$as_echo "$configure_input" |
14533 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14534 *) ac_sed_conf_input=$configure_input;;
14538 *:-:* | *:-) cat >"$ac_tmp/stdin" \
14539 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14544 ac_dir=`$as_dirname -- "$ac_file" ||
14545 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14546 X"$ac_file" : 'X\(//\)[^/]' \| \
14547 X"$ac_file" : 'X\(//\)$' \| \
14548 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14549 $as_echo X"$ac_file" |
14550 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14554 /^X\(\/\/\)[^/].*/{
14567 as_dir="$ac_dir"; as_fn_mkdir_p
14571 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14573 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14574 # A ".." for each directory in $ac_dir_suffix.
14575 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14576 case $ac_top_builddir_sub in
14577 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14578 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14581 ac_abs_top_builddir=$ac_pwd
14582 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14583 # for backward compatibility:
14584 ac_top_builddir=$ac_top_build_prefix
14587 .) # We are building in place.
14589 ac_top_srcdir=$ac_top_builddir_sub
14590 ac_abs_top_srcdir=$ac_pwd ;;
14591 [\\/]* | ?:[\\/]* ) # Absolute name.
14592 ac_srcdir=$srcdir$ac_dir_suffix;
14593 ac_top_srcdir=$srcdir
14594 ac_abs_top_srcdir=$srcdir ;;
14595 *) # Relative name.
14596 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14597 ac_top_srcdir=$ac_top_build_prefix$srcdir
14598 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14600 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14610 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14611 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14613 ac_MKDIR_P=$MKDIR_P
14615 [\\/$]* | ?:[\\/]* ) ;;
14616 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14620 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14621 # If the template does not know about datarootdir, expand it.
14622 # FIXME: This hack should be removed a few years after 2.60.
14623 ac_datarootdir_hack=; ac_datarootdir_seen=
14634 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14635 *datarootdir*) ac_datarootdir_seen=yes;;
14636 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14637 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14638 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14640 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14641 ac_datarootdir_hack='
14642 s&@datadir@&$datadir&g
14643 s&@docdir@&$docdir&g
14644 s&@infodir@&$infodir&g
14645 s&@localedir@&$localedir&g
14646 s&@mandir@&$mandir&g
14647 s&\\\${datarootdir}&$datarootdir&g' ;;
14651 # Neutralize VPATH when `$srcdir' = `.'.
14652 # Shell code in configure.ac might set extrasub.
14653 # FIXME: do we really want to maintain this feature?
14654 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14655 ac_sed_extra="$ac_vpsub
14658 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14660 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14661 s|@configure_input@|$ac_sed_conf_input|;t t
14662 s&@top_builddir@&$ac_top_builddir_sub&;t t
14663 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14664 s&@srcdir@&$ac_srcdir&;t t
14665 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14666 s&@top_srcdir@&$ac_top_srcdir&;t t
14667 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14668 s&@builddir@&$ac_builddir&;t t
14669 s&@abs_builddir@&$ac_abs_builddir&;t t
14670 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14671 s&@INSTALL@&$ac_INSTALL&;t t
14672 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14673 $ac_datarootdir_hack
14675 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
14676 if $ac_cs_awk_getline; then
14677 $AWK -f "$ac_tmp/subs.awk"
14679 $AWK -f "$ac_tmp/subs.awk" | $SHELL
14681 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14683 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14684 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14685 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
14686 "$ac_tmp/out"`; test -z "$ac_out"; } &&
14687 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14688 which seems to be undefined. Please make sure it is defined" >&5
14689 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14690 which seems to be undefined. Please make sure it is defined" >&2;}
14692 rm -f "$ac_tmp/stdin"
14694 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14695 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14697 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14703 if test x"$ac_file" != x-; then
14705 $as_echo "/* $configure_input */" \
14706 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14707 } >"$ac_tmp/config.h" \
14708 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14709 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14710 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14711 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14714 mv "$ac_tmp/config.h" "$ac_file" \
14715 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14718 $as_echo "/* $configure_input */" \
14719 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14720 || as_fn_error $? "could not create -" "$LINENO" 5
14724 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14725 $as_echo "$as_me: executing $ac_file commands" >&6;}
14730 case $ac_file$ac_mode in
14731 "po-directories":C)
14732 for ac_file in $CONFIG_FILES; do
14733 # Support "outfile[:infile[:infile...]]"
14735 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
14737 # PO directories have a Makefile.in generated from Makefile.in.in.
14738 case "$ac_file" in */Makefile.in)
14739 # Adjust a relative srcdir.
14740 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
14741 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
14742 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
14743 # In autoconf-2.13 it is called $ac_given_srcdir.
14744 # In autoconf-2.50 it is called $srcdir.
14745 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
14746 case "$ac_given_srcdir" in
14747 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
14748 /*) top_srcdir="$ac_given_srcdir" ;;
14749 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
14751 # Treat a directory as a PO directory if and only if it has a
14752 # POTFILES.in file. This allows packages to have multiple PO
14753 # directories under different names or in different locations.
14754 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
14755 rm -f "$ac_dir/POTFILES"
14756 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
14757 gt_tab=`printf '\t'`
14758 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"
14759 POMAKEFILEDEPS="POTFILES.in"
14760 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
14761 # on $ac_dir but don't depend on user-specified configuration
14763 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
14764 # The LINGUAS file contains the set of available languages.
14765 if test -n "$OBSOLETE_ALL_LINGUAS"; then
14766 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
14768 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
14769 # Hide the ALL_LINGUAS assignment from automake < 1.5.
14770 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
14771 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
14773 # The set of available languages was given in configure.in.
14774 # Hide the ALL_LINGUAS assignment from automake < 1.5.
14775 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
14778 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
14779 # Compute UPDATEPOFILES
14780 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
14781 # Compute DUMMYPOFILES
14782 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
14784 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
14785 case "$ac_given_srcdir" in
14787 *) srcdirpre='$(srcdir)/' ;;
14793 for lang in $ALL_LINGUAS; do
14794 POFILES="$POFILES $srcdirpre$lang.po"
14795 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
14796 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
14797 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
14799 # CATALOGS depends on both $ac_dir and the user's LINGUAS
14800 # environment variable.
14802 if test -n "$ALL_LINGUAS"; then
14803 for presentlang in $ALL_LINGUAS; do
14805 if test "%UNSET%" != "$LINGUAS"; then
14806 desiredlanguages="$LINGUAS"
14808 desiredlanguages="$ALL_LINGUAS"
14810 for desiredlang in $desiredlanguages; do
14811 # Use the presentlang catalog if desiredlang is
14812 # a. equal to presentlang, or
14813 # b. a variant of presentlang (because in this case,
14814 # presentlang can be used as a fallback for messages
14815 # which are not translated in the desiredlang catalog).
14816 case "$desiredlang" in
14817 "$presentlang"*) useit=yes;;
14820 if test $useit = yes; then
14821 INST_LINGUAS="$INST_LINGUAS $presentlang"
14826 if test -n "$INST_LINGUAS"; then
14827 for lang in $INST_LINGUAS; do
14828 CATALOGS="$CATALOGS $lang.gmo"
14831 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
14832 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"
14833 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
14834 if test -f "$f"; then
14836 *.orig | *.bak | *~) ;;
14837 *) cat "$f" >> "$ac_dir/Makefile" ;;
14852 ac_clean_files=$ac_clean_files_save
14854 test $ac_write_fail = 0 ||
14855 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
14858 # configure is writing to config.log, and then calls config.status.
14859 # config.status does its own redirection, appending to config.log.
14860 # Unfortunately, on DOS this fails, as config.log is still kept open
14861 # by configure, so config.status won't be able to write to it; its
14862 # output is simply discarded. So we exec the FD to /dev/null,
14863 # effectively closing config.log, so it can be properly (re)opened and
14864 # appended to by config.status. When coming back to configure, we
14865 # need to make the FD available again.
14866 if test "$no_create" != yes; then
14868 ac_config_status_args=
14869 test "$silent" = yes &&
14870 ac_config_status_args="$ac_config_status_args --quiet"
14872 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14874 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14875 # would make configure fail if this is the last instruction.
14876 $ac_cs_success || as_fn_exit 1
14878 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14879 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14880 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14883 if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi