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
672 INTL_LIBTOOL_SUFFIX_PREFIX
679 BUILD_INCLUDED_LIBINTL
689 INTL_DEFAULT_VERBOSITY
708 XGETTEXT_EXTRA_OPTIONS
716 GETTEXT_MACRO_VERSION
830 program_transform_name
841 ac_subst_files='MCONFIG
847 PUBLIC_CONFIG_HEADER'
849 enable_option_checking
855 enable_maintainer_mode
856 enable_symlink_install
857 enable_relative_symlinks
858 enable_symlink_relative_symlinks
860 enable_verbose_makecmds
879 enable_e2initrd_helper
888 with_included_gettext
892 ac_precious_vars='build_alias
906 # Initialize some variables set by options.
908 ac_init_version=false
909 ac_unrecognized_opts=
911 # The variables have the same names as the options, with
912 # dashes changed to underlines.
920 program_transform_name=s,x,x,
928 # Installation directory options.
929 # These are left unexpanded so users can "make install exec_prefix=/foo"
930 # and all the variables that are supposed to be based on exec_prefix
931 # by default will actually change.
932 # Use braces instead of parens because sh, perl, etc. also accept them.
933 # (The list follows the same order as the GNU Coding Standards.)
934 bindir='${exec_prefix}/bin'
935 sbindir='${exec_prefix}/sbin'
936 libexecdir='${exec_prefix}/libexec'
937 datarootdir='${prefix}/share'
938 datadir='${datarootdir}'
939 sysconfdir='${prefix}/etc'
940 sharedstatedir='${prefix}/com'
941 localstatedir='${prefix}/var'
942 includedir='${prefix}/include'
943 oldincludedir='/usr/include'
944 docdir='${datarootdir}/doc/${PACKAGE}'
945 infodir='${datarootdir}/info'
950 libdir='${exec_prefix}/lib'
951 localedir='${datarootdir}/locale'
952 mandir='${datarootdir}/man'
958 # If the previous option needs an argument, assign it.
959 if test -n "$ac_prev"; then
960 eval $ac_prev=\$ac_option
966 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
971 # Accept the important Cygnus configure options, so we can diagnose typos.
973 case $ac_dashdash$ac_option in
977 -bindir | --bindir | --bindi | --bind | --bin | --bi)
979 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
982 -build | --build | --buil | --bui | --bu)
983 ac_prev=build_alias ;;
984 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
985 build_alias=$ac_optarg ;;
987 -cache-file | --cache-file | --cache-fil | --cache-fi \
988 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
989 ac_prev=cache_file ;;
990 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
991 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
992 cache_file=$ac_optarg ;;
995 cache_file=config.cache ;;
997 -datadir | --datadir | --datadi | --datad)
999 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1000 datadir=$ac_optarg ;;
1002 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1003 | --dataroo | --dataro | --datar)
1004 ac_prev=datarootdir ;;
1005 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1006 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1007 datarootdir=$ac_optarg ;;
1009 -disable-* | --disable-*)
1010 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1011 # Reject names that are not valid shell variable names.
1012 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1013 as_fn_error $? "invalid feature name: $ac_useropt"
1014 ac_useropt_orig=$ac_useropt
1015 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1016 case $ac_user_opts in
1018 "enable_$ac_useropt"
1020 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1021 ac_unrecognized_sep=', ';;
1023 eval enable_$ac_useropt=no ;;
1025 -docdir | --docdir | --docdi | --doc | --do)
1027 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1028 docdir=$ac_optarg ;;
1030 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1032 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1033 dvidir=$ac_optarg ;;
1035 -enable-* | --enable-*)
1036 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1037 # Reject names that are not valid shell variable names.
1038 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1039 as_fn_error $? "invalid feature name: $ac_useropt"
1040 ac_useropt_orig=$ac_useropt
1041 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1042 case $ac_user_opts in
1044 "enable_$ac_useropt"
1046 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1047 ac_unrecognized_sep=', ';;
1049 eval enable_$ac_useropt=\$ac_optarg ;;
1051 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1052 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1053 | --exec | --exe | --ex)
1054 ac_prev=exec_prefix ;;
1055 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1056 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1057 | --exec=* | --exe=* | --ex=*)
1058 exec_prefix=$ac_optarg ;;
1060 -gas | --gas | --ga | --g)
1061 # Obsolete; use --with-gas.
1064 -help | --help | --hel | --he | -h)
1065 ac_init_help=long ;;
1066 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1067 ac_init_help=recursive ;;
1068 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1069 ac_init_help=short ;;
1071 -host | --host | --hos | --ho)
1072 ac_prev=host_alias ;;
1073 -host=* | --host=* | --hos=* | --ho=*)
1074 host_alias=$ac_optarg ;;
1076 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1078 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1080 htmldir=$ac_optarg ;;
1082 -includedir | --includedir | --includedi | --included | --include \
1083 | --includ | --inclu | --incl | --inc)
1084 ac_prev=includedir ;;
1085 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1086 | --includ=* | --inclu=* | --incl=* | --inc=*)
1087 includedir=$ac_optarg ;;
1089 -infodir | --infodir | --infodi | --infod | --info | --inf)
1091 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1092 infodir=$ac_optarg ;;
1094 -libdir | --libdir | --libdi | --libd)
1096 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1097 libdir=$ac_optarg ;;
1099 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1100 | --libexe | --libex | --libe)
1101 ac_prev=libexecdir ;;
1102 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1103 | --libexe=* | --libex=* | --libe=*)
1104 libexecdir=$ac_optarg ;;
1106 -localedir | --localedir | --localedi | --localed | --locale)
1107 ac_prev=localedir ;;
1108 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1109 localedir=$ac_optarg ;;
1111 -localstatedir | --localstatedir | --localstatedi | --localstated \
1112 | --localstate | --localstat | --localsta | --localst | --locals)
1113 ac_prev=localstatedir ;;
1114 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1115 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1116 localstatedir=$ac_optarg ;;
1118 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1120 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1121 mandir=$ac_optarg ;;
1123 -nfp | --nfp | --nf)
1124 # Obsolete; use --without-fp.
1127 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1128 | --no-cr | --no-c | -n)
1131 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1132 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1135 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1136 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1137 | --oldin | --oldi | --old | --ol | --o)
1138 ac_prev=oldincludedir ;;
1139 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1140 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1141 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1142 oldincludedir=$ac_optarg ;;
1144 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1146 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1147 prefix=$ac_optarg ;;
1149 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1150 | --program-pre | --program-pr | --program-p)
1151 ac_prev=program_prefix ;;
1152 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1153 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1154 program_prefix=$ac_optarg ;;
1156 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1157 | --program-suf | --program-su | --program-s)
1158 ac_prev=program_suffix ;;
1159 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1160 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1161 program_suffix=$ac_optarg ;;
1163 -program-transform-name | --program-transform-name \
1164 | --program-transform-nam | --program-transform-na \
1165 | --program-transform-n | --program-transform- \
1166 | --program-transform | --program-transfor \
1167 | --program-transfo | --program-transf \
1168 | --program-trans | --program-tran \
1169 | --progr-tra | --program-tr | --program-t)
1170 ac_prev=program_transform_name ;;
1171 -program-transform-name=* | --program-transform-name=* \
1172 | --program-transform-nam=* | --program-transform-na=* \
1173 | --program-transform-n=* | --program-transform-=* \
1174 | --program-transform=* | --program-transfor=* \
1175 | --program-transfo=* | --program-transf=* \
1176 | --program-trans=* | --program-tran=* \
1177 | --progr-tra=* | --program-tr=* | --program-t=*)
1178 program_transform_name=$ac_optarg ;;
1180 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1182 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1183 pdfdir=$ac_optarg ;;
1185 -psdir | --psdir | --psdi | --psd | --ps)
1187 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1190 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1191 | -silent | --silent | --silen | --sile | --sil)
1194 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1196 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1198 sbindir=$ac_optarg ;;
1200 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1201 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1202 | --sharedst | --shareds | --shared | --share | --shar \
1204 ac_prev=sharedstatedir ;;
1205 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1206 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1207 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1209 sharedstatedir=$ac_optarg ;;
1211 -site | --site | --sit)
1213 -site=* | --site=* | --sit=*)
1216 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1218 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1219 srcdir=$ac_optarg ;;
1221 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1222 | --syscon | --sysco | --sysc | --sys | --sy)
1223 ac_prev=sysconfdir ;;
1224 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1225 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1226 sysconfdir=$ac_optarg ;;
1228 -target | --target | --targe | --targ | --tar | --ta | --t)
1229 ac_prev=target_alias ;;
1230 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1231 target_alias=$ac_optarg ;;
1233 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1236 -version | --version | --versio | --versi | --vers | -V)
1237 ac_init_version=: ;;
1240 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1241 # Reject names that are not valid shell variable names.
1242 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1243 as_fn_error $? "invalid package name: $ac_useropt"
1244 ac_useropt_orig=$ac_useropt
1245 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1246 case $ac_user_opts in
1250 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1251 ac_unrecognized_sep=', ';;
1253 eval with_$ac_useropt=\$ac_optarg ;;
1255 -without-* | --without-*)
1256 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1257 # Reject names that are not valid shell variable names.
1258 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1259 as_fn_error $? "invalid package name: $ac_useropt"
1260 ac_useropt_orig=$ac_useropt
1261 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1262 case $ac_user_opts in
1266 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1267 ac_unrecognized_sep=', ';;
1269 eval with_$ac_useropt=no ;;
1272 # Obsolete; use --with-x.
1275 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1276 | --x-incl | --x-inc | --x-in | --x-i)
1277 ac_prev=x_includes ;;
1278 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1279 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1280 x_includes=$ac_optarg ;;
1282 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1283 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1284 ac_prev=x_libraries ;;
1285 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1286 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1287 x_libraries=$ac_optarg ;;
1289 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1290 Try \`$0 --help' for more information"
1294 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1295 # Reject names that are not valid shell variable names.
1296 case $ac_envvar in #(
1297 '' | [0-9]* | *[!_$as_cr_alnum]* )
1298 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1300 eval $ac_envvar=\$ac_optarg
1301 export $ac_envvar ;;
1304 # FIXME: should be removed in autoconf 3.0.
1305 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1306 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1307 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1308 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1314 if test -n "$ac_prev"; then
1315 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1316 as_fn_error $? "missing argument to $ac_option"
1319 if test -n "$ac_unrecognized_opts"; then
1320 case $enable_option_checking in
1322 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1323 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1327 # Check all directory arguments for consistency.
1328 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1329 datadir sysconfdir sharedstatedir localstatedir includedir \
1330 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1331 libdir localedir mandir
1333 eval ac_val=\$$ac_var
1334 # Remove trailing slashes.
1337 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1338 eval $ac_var=\$ac_val;;
1340 # Be sure to have absolute directory names.
1342 [\\/$]* | ?:[\\/]* ) continue;;
1343 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1345 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1348 # There might be people who depend on the old broken behavior: `$host'
1349 # used to hold the argument of --host etc.
1350 # FIXME: To remove some day.
1353 target=$target_alias
1355 # FIXME: To remove some day.
1356 if test "x$host_alias" != x; then
1357 if test "x$build_alias" = x; then
1358 cross_compiling=maybe
1359 elif test "x$build_alias" != "x$host_alias"; then
1365 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1367 test "$silent" = yes && exec 6>/dev/null
1370 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1371 ac_ls_di=`ls -di .` &&
1372 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1373 as_fn_error $? "working directory cannot be determined"
1374 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1375 as_fn_error $? "pwd does not report name of working directory"
1378 # Find the source files, if location was not specified.
1379 if test -z "$srcdir"; then
1380 ac_srcdir_defaulted=yes
1381 # Try the directory containing this script, then the parent directory.
1382 ac_confdir=`$as_dirname -- "$as_myself" ||
1383 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1384 X"$as_myself" : 'X\(//\)[^/]' \| \
1385 X"$as_myself" : 'X\(//\)$' \| \
1386 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1387 $as_echo X"$as_myself" |
1388 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1406 if test ! -r "$srcdir/$ac_unique_file"; then
1410 ac_srcdir_defaulted=no
1412 if test ! -r "$srcdir/$ac_unique_file"; then
1413 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1414 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1416 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1418 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1420 # When building in place, set srcdir=.
1421 if test "$ac_abs_confdir" = "$ac_pwd"; then
1424 # Remove unnecessary trailing slashes from srcdir.
1425 # Double slashes in file names in object file debugging info
1426 # mess up M-x gdb in Emacs.
1428 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1430 for ac_var in $ac_precious_vars; do
1431 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1432 eval ac_env_${ac_var}_value=\$${ac_var}
1433 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1434 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1438 # Report the --help message.
1440 if test "$ac_init_help" = "long"; then
1441 # Omit some internal or obsolete options to make the list less imposing.
1442 # This message is too long to be a string in the A/UX 3.1 sh.
1444 \`configure' configures this package to adapt to many kinds of systems.
1446 Usage: $0 [OPTION]... [VAR=VALUE]...
1448 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1449 VAR=VALUE. See below for descriptions of some of the useful variables.
1451 Defaults for the options are specified in brackets.
1454 -h, --help display this help and exit
1455 --help=short display options specific to this package
1456 --help=recursive display the short help of all the included packages
1457 -V, --version display version information and exit
1458 -q, --quiet, --silent do not print \`checking ...' messages
1459 --cache-file=FILE cache test results in FILE [disabled]
1460 -C, --config-cache alias for \`--cache-file=config.cache'
1461 -n, --no-create do not create output files
1462 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1464 Installation directories:
1465 --prefix=PREFIX install architecture-independent files in PREFIX
1466 [$ac_default_prefix]
1467 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1470 By default, \`make install' will install all the files in
1471 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1472 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1473 for instance \`--prefix=\$HOME'.
1475 For better control, use the options below.
1477 Fine tuning of the installation directories:
1478 --bindir=DIR user executables [EPREFIX/bin]
1479 --sbindir=DIR system admin executables [EPREFIX/sbin]
1480 --libexecdir=DIR program executables [EPREFIX/libexec]
1481 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1482 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1483 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1484 --libdir=DIR object code libraries [EPREFIX/lib]
1485 --includedir=DIR C header files [PREFIX/include]
1486 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1487 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1488 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1489 --infodir=DIR info documentation [DATAROOTDIR/info]
1490 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1491 --mandir=DIR man documentation [DATAROOTDIR/man]
1492 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1493 --htmldir=DIR html documentation [DOCDIR]
1494 --dvidir=DIR dvi documentation [DOCDIR]
1495 --pdfdir=DIR pdf documentation [DOCDIR]
1496 --psdir=DIR ps documentation [DOCDIR]
1502 --build=BUILD configure for building on BUILD [guessed]
1503 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1507 if test -n "$ac_init_help"; then
1512 --disable-option-checking ignore unrecognized --enable/--with options
1513 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1514 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1515 --enable-maintainer-mode enable makefile rules useful for maintainers
1516 --enable-symlink-install use symlinks when installing instead of hard links
1517 --enable-relative-symlinks use relative symlinks when installing
1519 --enable-symlink-build use symlinks while building instead of hard links
1520 --enable-verbose-makecmds enable verbose make command output
1521 --enable-compression enable EXPERIMENTAL compression support
1522 --enable-htree enable EXPERIMENTAL htree directory support
1523 --enable-elf-shlibs select ELF shared libraries
1524 --enable-bsd-shlibs select BSD shared libraries
1525 --enable-profile build profiling libraries
1526 --enable-gcov build for coverage testing using gcov
1527 --enable-jbd-debug enable journal debugging
1528 --enable-blkid-debug enable blkid debugging
1529 --disable-testio-debug disable the use of the test I/O manager for debugging
1530 --disable-libuuid do not build private uuid library
1531 --disable-libblkid do not build private blkid library
1532 --enable-quota enable quota support
1533 --disable-backtrace disable use backtrace
1534 --disable-debugfs disable support of debugfs program
1535 --disable-imager disable support of e2image program
1536 --disable-resizer disable support of e2resize program
1537 --disable-defrag disable support of e4defrag program
1538 --enable-fsck build fsck wrapper program
1539 --enable-e2initrd-helper build e2initrd-helper program
1540 --disable-tls disable use of thread local support
1541 --disable-uuidd disable building the uuid daemon
1542 --disable-nls do not use Native Language Support
1543 --enable-threads={posix|solaris|pth|windows}
1544 specify multithreading API
1545 --disable-threads build without multithread safety
1546 --disable-rpath do not hardcode runtime library paths
1549 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1550 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1551 --with-diet-libc use diet libc
1552 --with-cc no longer supported, use CC= instead
1553 --with-ccopts no longer supported, use CFLAGS= instead
1554 --with-ldopts no longer supported, use LDFLAGS= instead
1555 --with-root-prefix=PREFIX override prefix variable for files to be placed in the root
1556 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1557 --with-libpth-prefix[=DIR] search for libpth in DIR/include and DIR/lib
1558 --without-libpth-prefix don't search for libpth in includedir and libdir
1559 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1560 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1561 --with-included-gettext use the GNU gettext library included here
1562 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1563 --without-libintl-prefix don't search for libintl in includedir and libdir
1564 --with-multiarch=ARCH specify the multiarch triplet
1566 Some influential environment variables:
1567 CC C compiler command
1568 CFLAGS C compiler flags
1569 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1570 nonstandard directory <lib dir>
1571 LIBS libraries to pass to the linker, e.g. -l<library>
1572 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1573 you have headers in a nonstandard directory <include dir>
1575 PKG_CONFIG path to pkg-config utility
1577 directories to add to pkg-config's search path
1579 path overriding pkg-config's built-in search path
1581 Use these variables to override the choices made by `configure' or to help
1582 it to find libraries and programs with nonstandard names/locations.
1584 Report bugs to the package provider.
1589 if test "$ac_init_help" = "recursive"; then
1590 # If there are subdirs, report their specific --help.
1591 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1592 test -d "$ac_dir" ||
1593 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1598 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1600 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1601 # A ".." for each directory in $ac_dir_suffix.
1602 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1603 case $ac_top_builddir_sub in
1604 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1605 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1608 ac_abs_top_builddir=$ac_pwd
1609 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1610 # for backward compatibility:
1611 ac_top_builddir=$ac_top_build_prefix
1614 .) # We are building in place.
1616 ac_top_srcdir=$ac_top_builddir_sub
1617 ac_abs_top_srcdir=$ac_pwd ;;
1618 [\\/]* | ?:[\\/]* ) # Absolute name.
1619 ac_srcdir=$srcdir$ac_dir_suffix;
1620 ac_top_srcdir=$srcdir
1621 ac_abs_top_srcdir=$srcdir ;;
1623 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1624 ac_top_srcdir=$ac_top_build_prefix$srcdir
1625 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1627 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1629 cd "$ac_dir" || { ac_status=$?; continue; }
1630 # Check for guested configure.
1631 if test -f "$ac_srcdir/configure.gnu"; then
1633 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1634 elif test -f "$ac_srcdir/configure"; then
1636 $SHELL "$ac_srcdir/configure" --help=recursive
1638 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1640 cd "$ac_pwd" || { ac_status=$?; break; }
1644 test -n "$ac_init_help" && exit $ac_status
1645 if $ac_init_version; then
1648 generated by GNU Autoconf 2.69
1650 Copyright (C) 2012 Free Software Foundation, Inc.
1651 This configure script is free software; the Free Software Foundation
1652 gives unlimited permission to copy, distribute and modify it.
1657 ## ------------------------ ##
1658 ## Autoconf initialization. ##
1659 ## ------------------------ ##
1661 # ac_fn_c_try_compile LINENO
1662 # --------------------------
1663 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1664 ac_fn_c_try_compile ()
1666 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1667 rm -f conftest.$ac_objext
1668 if { { ac_try="$ac_compile"
1670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1671 *) ac_try_echo=$ac_try;;
1673 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1674 $as_echo "$ac_try_echo"; } >&5
1675 (eval "$ac_compile") 2>conftest.err
1677 if test -s conftest.err; then
1678 grep -v '^ *+' conftest.err >conftest.er1
1679 cat conftest.er1 >&5
1680 mv -f conftest.er1 conftest.err
1682 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1683 test $ac_status = 0; } && {
1684 test -z "$ac_c_werror_flag" ||
1685 test ! -s conftest.err
1686 } && test -s conftest.$ac_objext; then :
1689 $as_echo "$as_me: failed program was:" >&5
1690 sed 's/^/| /' conftest.$ac_ext >&5
1694 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1695 as_fn_set_status $ac_retval
1697 } # ac_fn_c_try_compile
1699 # ac_fn_c_try_link LINENO
1700 # -----------------------
1701 # Try to link conftest.$ac_ext, and return whether this succeeded.
1704 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1705 rm -f conftest.$ac_objext conftest$ac_exeext
1706 if { { ac_try="$ac_link"
1708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1709 *) ac_try_echo=$ac_try;;
1711 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1712 $as_echo "$ac_try_echo"; } >&5
1713 (eval "$ac_link") 2>conftest.err
1715 if test -s conftest.err; then
1716 grep -v '^ *+' conftest.err >conftest.er1
1717 cat conftest.er1 >&5
1718 mv -f conftest.er1 conftest.err
1720 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1721 test $ac_status = 0; } && {
1722 test -z "$ac_c_werror_flag" ||
1723 test ! -s conftest.err
1724 } && test -s conftest$ac_exeext && {
1725 test "$cross_compiling" = yes ||
1726 test -x conftest$ac_exeext
1730 $as_echo "$as_me: failed program was:" >&5
1731 sed 's/^/| /' conftest.$ac_ext >&5
1735 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1736 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1737 # interfere with the next link command; also delete a directory that is
1738 # left behind by Apple's compiler. We do this before executing the actions.
1739 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1740 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1741 as_fn_set_status $ac_retval
1743 } # ac_fn_c_try_link
1745 # ac_fn_c_try_cpp LINENO
1746 # ----------------------
1747 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1750 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1751 if { { ac_try="$ac_cpp conftest.$ac_ext"
1753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1754 *) ac_try_echo=$ac_try;;
1756 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1757 $as_echo "$ac_try_echo"; } >&5
1758 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1760 if test -s conftest.err; then
1761 grep -v '^ *+' conftest.err >conftest.er1
1762 cat conftest.er1 >&5
1763 mv -f conftest.er1 conftest.err
1765 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1766 test $ac_status = 0; } > conftest.i && {
1767 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1768 test ! -s conftest.err
1772 $as_echo "$as_me: failed program was:" >&5
1773 sed 's/^/| /' conftest.$ac_ext >&5
1777 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1778 as_fn_set_status $ac_retval
1782 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1783 # -------------------------------------------------------
1784 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1785 # the include files in INCLUDES and setting the cache variable VAR
1787 ac_fn_c_check_header_mongrel ()
1789 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1790 if eval \${$3+:} false; then :
1791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1792 $as_echo_n "checking for $2... " >&6; }
1793 if eval \${$3+:} false; then :
1794 $as_echo_n "(cached) " >&6
1797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1798 $as_echo "$ac_res" >&6; }
1800 # Is the header compilable?
1801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1802 $as_echo_n "checking $2 usability... " >&6; }
1803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1804 /* end confdefs.h. */
1808 if ac_fn_c_try_compile "$LINENO"; then :
1809 ac_header_compiler=yes
1811 ac_header_compiler=no
1813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1815 $as_echo "$ac_header_compiler" >&6; }
1817 # Is the header present?
1818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1819 $as_echo_n "checking $2 presence... " >&6; }
1820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1821 /* end confdefs.h. */
1824 if ac_fn_c_try_cpp "$LINENO"; then :
1825 ac_header_preproc=yes
1827 ac_header_preproc=no
1829 rm -f conftest.err conftest.i conftest.$ac_ext
1830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1831 $as_echo "$ac_header_preproc" >&6; }
1833 # So? What about this header?
1834 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1836 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1837 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1838 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1839 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1842 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1843 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1844 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1845 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1846 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1847 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1848 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1849 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1850 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1851 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1855 $as_echo_n "checking for $2... " >&6; }
1856 if eval \${$3+:} false; then :
1857 $as_echo_n "(cached) " >&6
1859 eval "$3=\$ac_header_compiler"
1862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1863 $as_echo "$ac_res" >&6; }
1865 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1867 } # ac_fn_c_check_header_mongrel
1869 # ac_fn_c_try_run LINENO
1870 # ----------------------
1871 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1872 # that executables *can* be run.
1875 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1876 if { { ac_try="$ac_link"
1878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1879 *) ac_try_echo=$ac_try;;
1881 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1882 $as_echo "$ac_try_echo"; } >&5
1883 (eval "$ac_link") 2>&5
1885 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1886 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1887 { { case "(($ac_try" in
1888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1889 *) ac_try_echo=$ac_try;;
1891 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1892 $as_echo "$ac_try_echo"; } >&5
1893 (eval "$ac_try") 2>&5
1895 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1896 test $ac_status = 0; }; }; then :
1899 $as_echo "$as_me: program exited with status $ac_status" >&5
1900 $as_echo "$as_me: failed program was:" >&5
1901 sed 's/^/| /' conftest.$ac_ext >&5
1903 ac_retval=$ac_status
1905 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1906 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1907 as_fn_set_status $ac_retval
1911 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1912 # -------------------------------------------------------
1913 # Tests whether HEADER exists and can be compiled using the include files in
1914 # INCLUDES, setting the cache variable VAR accordingly.
1915 ac_fn_c_check_header_compile ()
1917 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1919 $as_echo_n "checking for $2... " >&6; }
1920 if eval \${$3+:} false; then :
1921 $as_echo_n "(cached) " >&6
1923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1924 /* end confdefs.h. */
1928 if ac_fn_c_try_compile "$LINENO"; then :
1933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1937 $as_echo "$ac_res" >&6; }
1938 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1940 } # ac_fn_c_check_header_compile
1942 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1943 # -------------------------------------------
1944 # Tests whether TYPE exists after having included INCLUDES, setting cache
1945 # variable VAR accordingly.
1946 ac_fn_c_check_type ()
1948 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1950 $as_echo_n "checking for $2... " >&6; }
1951 if eval \${$3+:} false; then :
1952 $as_echo_n "(cached) " >&6
1955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1956 /* end confdefs.h. */
1967 if ac_fn_c_try_compile "$LINENO"; then :
1968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1969 /* end confdefs.h. */
1980 if ac_fn_c_try_compile "$LINENO"; then :
1985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1991 $as_echo "$ac_res" >&6; }
1992 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1994 } # ac_fn_c_check_type
1996 # ac_fn_c_check_func LINENO FUNC VAR
1997 # ----------------------------------
1998 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1999 ac_fn_c_check_func ()
2001 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2003 $as_echo_n "checking for $2... " >&6; }
2004 if eval \${$3+:} false; then :
2005 $as_echo_n "(cached) " >&6
2007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2008 /* end confdefs.h. */
2009 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2010 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2011 #define $2 innocuous_$2
2013 /* System header to define __stub macros and hopefully few prototypes,
2014 which can conflict with char $2 (); below.
2015 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2016 <limits.h> exists even on freestanding compilers. */
2019 # include <limits.h>
2021 # include <assert.h>
2026 /* Override any GCC internal prototype to avoid an error.
2027 Use char because int might match the return type of a GCC
2028 builtin and then its argument prototype would still apply. */
2033 /* The GNU C library defines this for functions which it implements
2034 to always fail with ENOSYS. Some functions are actually named
2035 something starting with __ and the normal name is an alias. */
2036 #if defined __stub_$2 || defined __stub___$2
2048 if ac_fn_c_try_link "$LINENO"; then :
2053 rm -f core conftest.err conftest.$ac_objext \
2054 conftest$ac_exeext conftest.$ac_ext
2057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2058 $as_echo "$ac_res" >&6; }
2059 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2061 } # ac_fn_c_check_func
2063 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2064 # ---------------------------------------------
2065 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2067 ac_fn_c_check_decl ()
2069 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2070 as_decl_name=`echo $2|sed 's/ *(.*//'`
2071 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2073 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2074 if eval \${$3+:} false; then :
2075 $as_echo_n "(cached) " >&6
2077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2078 /* end confdefs.h. */
2083 #ifndef $as_decl_name
2085 (void) $as_decl_use;
2087 (void) $as_decl_name;
2095 if ac_fn_c_try_compile "$LINENO"; then :
2100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2104 $as_echo "$ac_res" >&6; }
2105 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2107 } # ac_fn_c_check_decl
2109 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2110 # --------------------------------------------
2111 # Tries to find the compile-time value of EXPR in a program that includes
2112 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2114 ac_fn_c_compute_int ()
2116 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2117 if test "$cross_compiling" = yes; then
2118 # Depending upon the size, compute the lo and hi bounds.
2119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2120 /* end confdefs.h. */
2125 static int test_array [1 - 2 * !(($2) >= 0)];
2127 return test_array [0];
2133 if ac_fn_c_try_compile "$LINENO"; then :
2136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2137 /* end confdefs.h. */
2142 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2144 return test_array [0];
2150 if ac_fn_c_try_compile "$LINENO"; then :
2151 ac_hi=$ac_mid; break
2153 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2154 if test $ac_lo -le $ac_mid; then
2158 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2164 /* end confdefs.h. */
2169 static int test_array [1 - 2 * !(($2) < 0)];
2171 return test_array [0];
2177 if ac_fn_c_try_compile "$LINENO"; then :
2180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2181 /* end confdefs.h. */
2186 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2188 return test_array [0];
2194 if ac_fn_c_try_compile "$LINENO"; then :
2195 ac_lo=$ac_mid; break
2197 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2198 if test $ac_mid -le $ac_hi; then
2202 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2212 # Binary search between lo and hi bounds.
2213 while test "x$ac_lo" != "x$ac_hi"; do
2214 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2216 /* end confdefs.h. */
2221 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2223 return test_array [0];
2229 if ac_fn_c_try_compile "$LINENO"; then :
2232 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2237 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2242 /* end confdefs.h. */
2244 static long int longval () { return $2; }
2245 static unsigned long int ulongval () { return $2; }
2252 FILE *f = fopen ("conftest.val", "w");
2257 long int i = longval ();
2260 fprintf (f, "%ld", i);
2264 unsigned long int i = ulongval ();
2267 fprintf (f, "%lu", i);
2269 /* Do not output a trailing newline, as this causes \r\n confusion
2270 on some platforms. */
2271 return ferror (f) || fclose (f) != 0;
2277 if ac_fn_c_try_run "$LINENO"; then :
2278 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2282 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2283 conftest.$ac_objext conftest.beam conftest.$ac_ext
2287 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2288 as_fn_set_status $ac_retval
2290 } # ac_fn_c_compute_int
2292 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2293 # ----------------------------------------------------
2294 # Tries to find if the field MEMBER exists in type AGGR, after including
2295 # INCLUDES, setting cache variable VAR accordingly.
2296 ac_fn_c_check_member ()
2298 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2300 $as_echo_n "checking for $2.$3... " >&6; }
2301 if eval \${$4+:} false; then :
2302 $as_echo_n "(cached) " >&6
2304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2305 /* end confdefs.h. */
2317 if ac_fn_c_try_compile "$LINENO"; then :
2320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2321 /* end confdefs.h. */
2327 if (sizeof ac_aggr.$3)
2333 if ac_fn_c_try_compile "$LINENO"; then :
2338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2344 $as_echo "$ac_res" >&6; }
2345 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2347 } # ac_fn_c_check_member
2348 cat >config.log <<_ACEOF
2349 This file contains any messages produced by compilers while
2350 running configure, to aid debugging if configure makes a mistake.
2352 It was created by $as_me, which was
2353 generated by GNU Autoconf 2.69. Invocation command line was
2365 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2366 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2367 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2368 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2369 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2371 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2372 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2374 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2375 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2376 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2377 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2378 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2379 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2380 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2388 test -z "$as_dir" && as_dir=.
2389 $as_echo "PATH: $as_dir"
2405 # Keep a trace of the command line.
2406 # Strip out --no-create and --no-recursion so they do not pile up.
2407 # Strip out --silent because we don't want to record it for future runs.
2408 # Also quote any args containing shell meta-characters.
2409 # Make two passes to allow for proper duplicate-argument suppression.
2413 ac_must_keep_next=false
2419 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2420 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2421 | -silent | --silent | --silen | --sile | --sil)
2424 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2427 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2429 as_fn_append ac_configure_args1 " '$ac_arg'"
2430 if test $ac_must_keep_next = true; then
2431 ac_must_keep_next=false # Got value, back to normal.
2434 *=* | --config-cache | -C | -disable-* | --disable-* \
2435 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2436 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2437 | -with-* | --with-* | -without-* | --without-* | --x)
2438 case "$ac_configure_args0 " in
2439 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2442 -* ) ac_must_keep_next=true ;;
2445 as_fn_append ac_configure_args " '$ac_arg'"
2450 { ac_configure_args0=; unset ac_configure_args0;}
2451 { ac_configure_args1=; unset ac_configure_args1;}
2453 # When interrupted or exit'd, cleanup temporary files, and complete
2454 # config.log. We remove comments because anyway the quotes in there
2455 # would cause problems or look ugly.
2456 # WARNING: Use '\'' to represent an apostrophe within the trap.
2457 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2458 trap 'exit_status=$?
2459 # Save into config.log some information that might help in debugging.
2463 $as_echo "## ---------------- ##
2464 ## Cache variables. ##
2465 ## ---------------- ##"
2467 # The following way of writing the cache mishandles newlines in values,
2469 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2470 eval ac_val=\$$ac_var
2474 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2475 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2478 _ | IFS | as_nl) ;; #(
2479 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2480 *) { eval $ac_var=; unset $ac_var;} ;;
2485 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2486 *${as_nl}ac_space=\ *)
2488 "s/'\''/'\''\\\\'\'''\''/g;
2489 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2492 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2499 $as_echo "## ----------------- ##
2500 ## Output variables. ##
2501 ## ----------------- ##"
2503 for ac_var in $ac_subst_vars
2505 eval ac_val=\$$ac_var
2507 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2509 $as_echo "$ac_var='\''$ac_val'\''"
2513 if test -n "$ac_subst_files"; then
2514 $as_echo "## ------------------- ##
2515 ## File substitutions. ##
2516 ## ------------------- ##"
2518 for ac_var in $ac_subst_files
2520 eval ac_val=\$$ac_var
2522 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2524 $as_echo "$ac_var='\''$ac_val'\''"
2529 if test -s confdefs.h; then
2530 $as_echo "## ----------- ##
2537 test "$ac_signal" != 0 &&
2538 $as_echo "$as_me: caught signal $ac_signal"
2539 $as_echo "$as_me: exit $exit_status"
2541 rm -f core *.core core.conftest.* &&
2542 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2545 for ac_signal in 1 2 13 15; do
2546 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2550 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2551 rm -f -r conftest* confdefs.h
2553 $as_echo "/* confdefs.h */" > confdefs.h
2555 # Predefined preprocessor variables.
2557 cat >>confdefs.h <<_ACEOF
2558 #define PACKAGE_NAME "$PACKAGE_NAME"
2561 cat >>confdefs.h <<_ACEOF
2562 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2565 cat >>confdefs.h <<_ACEOF
2566 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2569 cat >>confdefs.h <<_ACEOF
2570 #define PACKAGE_STRING "$PACKAGE_STRING"
2573 cat >>confdefs.h <<_ACEOF
2574 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2577 cat >>confdefs.h <<_ACEOF
2578 #define PACKAGE_URL "$PACKAGE_URL"
2582 # Let the site file select an alternate cache file if it wants to.
2583 # Prefer an explicitly selected file to automatically selected ones.
2586 if test -n "$CONFIG_SITE"; then
2587 # We do not want a PATH search for config.site.
2588 case $CONFIG_SITE in #((
2589 -*) ac_site_file1=./$CONFIG_SITE;;
2590 */*) ac_site_file1=$CONFIG_SITE;;
2591 *) ac_site_file1=./$CONFIG_SITE;;
2593 elif test "x$prefix" != xNONE; then
2594 ac_site_file1=$prefix/share/config.site
2595 ac_site_file2=$prefix/etc/config.site
2597 ac_site_file1=$ac_default_prefix/share/config.site
2598 ac_site_file2=$ac_default_prefix/etc/config.site
2600 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2602 test "x$ac_site_file" = xNONE && continue
2603 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2604 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2605 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2606 sed 's/^/| /' "$ac_site_file" >&5
2608 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2609 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2610 as_fn_error $? "failed to load site script $ac_site_file
2611 See \`config.log' for more details" "$LINENO" 5; }
2615 if test -r "$cache_file"; then
2616 # Some versions of bash will fail to source /dev/null (special files
2617 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2618 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2619 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2620 $as_echo "$as_me: loading cache $cache_file" >&6;}
2622 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2623 *) . "./$cache_file";;
2627 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2628 $as_echo "$as_me: creating cache $cache_file" >&6;}
2632 gt_needs="$gt_needs "
2633 as_fn_append ac_header_list " stdlib.h"
2634 as_fn_append ac_header_list " unistd.h"
2635 as_fn_append ac_header_list " sys/param.h"
2636 as_fn_append ac_func_list " symlink"
2637 # Check that the precious variables saved in the cache have kept the same
2639 ac_cache_corrupted=false
2640 for ac_var in $ac_precious_vars; do
2641 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2642 eval ac_new_set=\$ac_env_${ac_var}_set
2643 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2644 eval ac_new_val=\$ac_env_${ac_var}_value
2645 case $ac_old_set,$ac_new_set in
2647 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2648 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2649 ac_cache_corrupted=: ;;
2651 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2652 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2653 ac_cache_corrupted=: ;;
2656 if test "x$ac_old_val" != "x$ac_new_val"; then
2657 # differences in whitespace do not lead to failure.
2658 ac_old_val_w=`echo x $ac_old_val`
2659 ac_new_val_w=`echo x $ac_new_val`
2660 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2661 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2662 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2663 ac_cache_corrupted=:
2665 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2666 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2667 eval $ac_var=\$ac_old_val
2669 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2670 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2671 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2672 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2675 # Pass precious variables to config.status.
2676 if test "$ac_new_set" = set; then
2678 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2679 *) ac_arg=$ac_var=$ac_new_val ;;
2681 case " $ac_configure_args " in
2682 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2683 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2687 if $ac_cache_corrupted; then
2688 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2689 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2690 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2691 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2692 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2694 ## -------------------- ##
2695 ## Main body of script. ##
2696 ## -------------------- ##
2699 ac_cpp='$CPP $CPPFLAGS'
2700 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2701 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2702 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2707 for ac_dir in config "$srcdir"/config; do
2708 if test -f "$ac_dir/install-sh"; then
2710 ac_install_sh="$ac_aux_dir/install-sh -c"
2712 elif test -f "$ac_dir/install.sh"; then
2714 ac_install_sh="$ac_aux_dir/install.sh -c"
2716 elif test -f "$ac_dir/shtool"; then
2718 ac_install_sh="$ac_aux_dir/shtool install -c"
2722 if test -z "$ac_aux_dir"; then
2723 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2726 # These three variables are undocumented and unsupported,
2727 # and are intended to be withdrawn in a future Autoconf release.
2728 # They can cause serious problems if a builder's source tree is in a directory
2729 # whose full name contains unusual characters.
2730 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2731 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2732 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2735 ac_config_headers="$ac_config_headers lib/config.h"
2741 E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \
2742 | awk '{print $3}' | tr \" " " | awk '{print $1}'`
2743 DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
2745 E2FSPROGS_DAY=`echo $DATE | awk -F- '{print $1}'`
2746 MONTH=`echo $DATE | awk -F- '{print $2}'`
2747 YEAR=`echo $DATE | awk -F- '{print $3}'`
2749 if expr $YEAR ">" 1900 > /dev/null ; then
2750 E2FSPROGS_YEAR=$YEAR
2751 elif expr $YEAR ">" 90 >/dev/null ; then
2752 E2FSPROGS_YEAR=19$YEAR
2754 E2FSPROGS_YEAR=20$YEAR
2758 Jan) MONTH_NUM=01; E2FSPROGS_MONTH="January" ;;
2759 Feb) MONTH_NUM=02; E2FSPROGS_MONTH="February" ;;
2760 Mar) MONTH_NUM=03; E2FSPROGS_MONTH="March" ;;
2761 Apr) MONTH_NUM=04; E2FSPROGS_MONTH="April" ;;
2762 May) MONTH_NUM=05; E2FSPROGS_MONTH="May" ;;
2763 Jun) MONTH_NUM=06; E2FSPROGS_MONTH="June" ;;
2764 Jul) MONTH_NUM=07; E2FSPROGS_MONTH="July" ;;
2765 Aug) MONTH_NUM=08; E2FSPROGS_MONTH="August" ;;
2766 Sep) MONTH_NUM=09; E2FSPROGS_MONTH="September" ;;
2767 Oct) MONTH_NUM=10; E2FSPROGS_MONTH="October" ;;
2768 Nov) MONTH_NUM=11; E2FSPROGS_MONTH="November" ;;
2769 Dec) MONTH_NUM=12; E2FSPROGS_MONTH="December" ;;
2770 *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unknown month $MONTH??" >&5
2771 $as_echo "$as_me: WARNING: Unknown month $MONTH??" >&2;} ;;
2774 base_ver=`echo $E2FSPROGS_VERSION | \
2775 sed -e 's/-WIP//' -e 's/pre-//' -e 's/-PLUS//'`
2777 date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY}
2779 case $E2FSPROGS_VERSION in
2781 E2FSPROGS_PKGVER="$base_ver~WIP-$E2FSPROGS_YEAR-$MONTH_NUM-$E2FSPROGS_DAY"
2784 E2FSPROGS_PKGVER="$base_ver"
2788 unset DATE MONTH YEAR base_ver pre_vers date_spec
2789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&5
2790 $as_echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&6; }
2791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&5
2792 $as_echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&6; }
2800 # Check whether --with-diet-libc was given.
2801 if test "${with_diet_libc+set}" = set; then :
2802 withval=$with_diet_libc; CC="diet cc -nostdinc"
2808 LIBS="$LIBS -lcompat"
2810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: CC=$CC" >&5
2811 $as_echo "CC=$CC" >&6; }
2813 # Make sure we can run config.sub.
2814 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2815 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2818 $as_echo_n "checking build system type... " >&6; }
2819 if ${ac_cv_build+:} false; then :
2820 $as_echo_n "(cached) " >&6
2822 ac_build_alias=$build_alias
2823 test "x$ac_build_alias" = x &&
2824 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2825 test "x$ac_build_alias" = x &&
2826 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2827 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2828 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2832 $as_echo "$ac_cv_build" >&6; }
2833 case $ac_cv_build in
2835 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2838 ac_save_IFS=$IFS; IFS='-'
2844 # Remember, the first character of IFS is used to create $*,
2845 # except with old shells:
2848 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2852 $as_echo_n "checking host system type... " >&6; }
2853 if ${ac_cv_host+:} false; then :
2854 $as_echo_n "(cached) " >&6
2856 if test "x$host_alias" = x; then
2857 ac_cv_host=$ac_cv_build
2859 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2860 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2865 $as_echo "$ac_cv_host" >&6; }
2868 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2871 ac_save_IFS=$IFS; IFS='-'
2877 # Remember, the first character of IFS is used to create $*,
2878 # except with old shells:
2881 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2886 ac_cpp='$CPP $CPPFLAGS'
2887 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2888 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2889 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2890 if test -n "$ac_tool_prefix"; then
2891 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2892 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2894 $as_echo_n "checking for $ac_word... " >&6; }
2895 if ${ac_cv_prog_CC+:} false; then :
2896 $as_echo_n "(cached) " >&6
2898 if test -n "$CC"; then
2899 ac_cv_prog_CC="$CC" # Let the user override the test.
2901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2905 test -z "$as_dir" && as_dir=.
2906 for ac_exec_ext in '' $ac_executable_extensions; do
2907 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2908 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2919 if test -n "$CC"; then
2920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2921 $as_echo "$CC" >&6; }
2923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2924 $as_echo "no" >&6; }
2929 if test -z "$ac_cv_prog_CC"; then
2931 # Extract the first word of "gcc", so it can be a program name with args.
2932 set dummy gcc; ac_word=$2
2933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2934 $as_echo_n "checking for $ac_word... " >&6; }
2935 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2936 $as_echo_n "(cached) " >&6
2938 if test -n "$ac_ct_CC"; then
2939 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2945 test -z "$as_dir" && as_dir=.
2946 for ac_exec_ext in '' $ac_executable_extensions; do
2947 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2948 ac_cv_prog_ac_ct_CC="gcc"
2949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2958 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2959 if test -n "$ac_ct_CC"; then
2960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2961 $as_echo "$ac_ct_CC" >&6; }
2963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2964 $as_echo "no" >&6; }
2967 if test "x$ac_ct_CC" = x; then
2970 case $cross_compiling:$ac_tool_warned in
2972 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2973 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2974 ac_tool_warned=yes ;;
2982 if test -z "$CC"; then
2983 if test -n "$ac_tool_prefix"; then
2984 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2985 set dummy ${ac_tool_prefix}cc; ac_word=$2
2986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2987 $as_echo_n "checking for $ac_word... " >&6; }
2988 if ${ac_cv_prog_CC+:} false; then :
2989 $as_echo_n "(cached) " >&6
2991 if test -n "$CC"; then
2992 ac_cv_prog_CC="$CC" # Let the user override the test.
2994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2998 test -z "$as_dir" && as_dir=.
2999 for ac_exec_ext in '' $ac_executable_extensions; do
3000 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3001 ac_cv_prog_CC="${ac_tool_prefix}cc"
3002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3012 if test -n "$CC"; then
3013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3014 $as_echo "$CC" >&6; }
3016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3017 $as_echo "no" >&6; }
3023 if test -z "$CC"; then
3024 # Extract the first word of "cc", so it can be a program name with args.
3025 set dummy cc; ac_word=$2
3026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3027 $as_echo_n "checking for $ac_word... " >&6; }
3028 if ${ac_cv_prog_CC+:} false; then :
3029 $as_echo_n "(cached) " >&6
3031 if test -n "$CC"; then
3032 ac_cv_prog_CC="$CC" # Let the user override the test.
3035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3039 test -z "$as_dir" && as_dir=.
3040 for ac_exec_ext in '' $ac_executable_extensions; do
3041 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3042 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3043 ac_prog_rejected=yes
3047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3054 if test $ac_prog_rejected = yes; then
3055 # We found a bogon in the path, so make sure we never use it.
3056 set dummy $ac_cv_prog_CC
3058 if test $# != 0; then
3059 # We chose a different compiler from the bogus one.
3060 # However, it has the same basename, so the bogon will be chosen
3061 # first if we set CC to just the basename; use the full file name.
3063 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3069 if test -n "$CC"; then
3070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3071 $as_echo "$CC" >&6; }
3073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3074 $as_echo "no" >&6; }
3079 if test -z "$CC"; then
3080 if test -n "$ac_tool_prefix"; then
3081 for ac_prog in cl.exe
3083 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3084 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3086 $as_echo_n "checking for $ac_word... " >&6; }
3087 if ${ac_cv_prog_CC+:} false; then :
3088 $as_echo_n "(cached) " >&6
3090 if test -n "$CC"; then
3091 ac_cv_prog_CC="$CC" # Let the user override the test.
3093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3097 test -z "$as_dir" && as_dir=.
3098 for ac_exec_ext in '' $ac_executable_extensions; do
3099 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3100 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3101 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3111 if test -n "$CC"; then
3112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3113 $as_echo "$CC" >&6; }
3115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3116 $as_echo "no" >&6; }
3120 test -n "$CC" && break
3123 if test -z "$CC"; then
3125 for ac_prog in cl.exe
3127 # Extract the first word of "$ac_prog", so it can be a program name with args.
3128 set dummy $ac_prog; ac_word=$2
3129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3130 $as_echo_n "checking for $ac_word... " >&6; }
3131 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3132 $as_echo_n "(cached) " >&6
3134 if test -n "$ac_ct_CC"; then
3135 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3141 test -z "$as_dir" && as_dir=.
3142 for ac_exec_ext in '' $ac_executable_extensions; do
3143 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3144 ac_cv_prog_ac_ct_CC="$ac_prog"
3145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3154 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3155 if test -n "$ac_ct_CC"; then
3156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3157 $as_echo "$ac_ct_CC" >&6; }
3159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3160 $as_echo "no" >&6; }
3164 test -n "$ac_ct_CC" && break
3167 if test "x$ac_ct_CC" = x; then
3170 case $cross_compiling:$ac_tool_warned in
3172 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3173 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3174 ac_tool_warned=yes ;;
3183 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3184 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3185 as_fn_error $? "no acceptable C compiler found in \$PATH
3186 See \`config.log' for more details" "$LINENO" 5; }
3188 # Provide some information about the compiler.
3189 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3192 for ac_option in --version -v -V -qversion; do
3193 { { ac_try="$ac_compiler $ac_option >&5"
3195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3196 *) ac_try_echo=$ac_try;;
3198 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3199 $as_echo "$ac_try_echo"; } >&5
3200 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3202 if test -s conftest.err; then
3204 ... rest of stderr output deleted ...
3205 10q' conftest.err >conftest.er1
3206 cat conftest.er1 >&5
3208 rm -f conftest.er1 conftest.err
3209 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3210 test $ac_status = 0; }
3213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3214 /* end confdefs.h. */
3224 ac_clean_files_save=$ac_clean_files
3225 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3226 # Try to create an executable without -o first, disregard a.out.
3227 # It will help us diagnose broken compilers, and finding out an intuition
3229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3230 $as_echo_n "checking whether the C compiler works... " >&6; }
3231 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3233 # The possible output files:
3234 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3237 for ac_file in $ac_files
3240 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3241 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3246 if { { ac_try="$ac_link_default"
3248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3249 *) ac_try_echo=$ac_try;;
3251 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3252 $as_echo "$ac_try_echo"; } >&5
3253 (eval "$ac_link_default") 2>&5
3255 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3256 test $ac_status = 0; }; then :
3257 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3258 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3259 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3260 # so that the user can short-circuit this test for compilers unknown to
3262 for ac_file in $ac_files ''
3264 test -f "$ac_file" || continue
3266 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3269 # We found the default executable, but exeext='' is most
3273 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3275 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3277 # We set ac_cv_exeext here because the later test for it is not
3278 # safe: cross compilers may not add the suffix if given an `-o'
3279 # argument, so we may need to know it at that point already.
3280 # Even if this section looks crufty: it has the advantage of
3287 test "$ac_cv_exeext" = no && ac_cv_exeext=
3292 if test -z "$ac_file"; then :
3293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3294 $as_echo "no" >&6; }
3295 $as_echo "$as_me: failed program was:" >&5
3296 sed 's/^/| /' conftest.$ac_ext >&5
3298 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3299 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3300 as_fn_error 77 "C compiler cannot create executables
3301 See \`config.log' for more details" "$LINENO" 5; }
3303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3304 $as_echo "yes" >&6; }
3306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3307 $as_echo_n "checking for C compiler default output file name... " >&6; }
3308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3309 $as_echo "$ac_file" >&6; }
3310 ac_exeext=$ac_cv_exeext
3312 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3313 ac_clean_files=$ac_clean_files_save
3314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3315 $as_echo_n "checking for suffix of executables... " >&6; }
3316 if { { ac_try="$ac_link"
3318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3319 *) ac_try_echo=$ac_try;;
3321 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3322 $as_echo "$ac_try_echo"; } >&5
3323 (eval "$ac_link") 2>&5
3325 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3326 test $ac_status = 0; }; then :
3327 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3328 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3329 # work properly (i.e., refer to `conftest.exe'), while it won't with
3331 for ac_file in conftest.exe conftest conftest.*; do
3332 test -f "$ac_file" || continue
3334 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3335 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3341 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3342 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3343 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3344 See \`config.log' for more details" "$LINENO" 5; }
3346 rm -f conftest conftest$ac_cv_exeext
3347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3348 $as_echo "$ac_cv_exeext" >&6; }
3350 rm -f conftest.$ac_ext
3351 EXEEXT=$ac_cv_exeext
3353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3354 /* end confdefs.h. */
3359 FILE *f = fopen ("conftest.out", "w");
3360 return ferror (f) || fclose (f) != 0;
3366 ac_clean_files="$ac_clean_files conftest.out"
3367 # Check that the compiler produces executables we can run. If not, either
3368 # the compiler is broken, or we cross compile.
3369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3370 $as_echo_n "checking whether we are cross compiling... " >&6; }
3371 if test "$cross_compiling" != yes; then
3372 { { ac_try="$ac_link"
3374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3375 *) ac_try_echo=$ac_try;;
3377 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3378 $as_echo "$ac_try_echo"; } >&5
3379 (eval "$ac_link") 2>&5
3381 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3382 test $ac_status = 0; }
3383 if { ac_try='./conftest$ac_cv_exeext'
3384 { { case "(($ac_try" in
3385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3386 *) ac_try_echo=$ac_try;;
3388 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3389 $as_echo "$ac_try_echo"; } >&5
3390 (eval "$ac_try") 2>&5
3392 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3393 test $ac_status = 0; }; }; then
3396 if test "$cross_compiling" = maybe; then
3399 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3400 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3401 as_fn_error $? "cannot run C compiled programs.
3402 If you meant to cross compile, use \`--host'.
3403 See \`config.log' for more details" "$LINENO" 5; }
3407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3408 $as_echo "$cross_compiling" >&6; }
3410 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3411 ac_clean_files=$ac_clean_files_save
3412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3413 $as_echo_n "checking for suffix of object files... " >&6; }
3414 if ${ac_cv_objext+:} false; then :
3415 $as_echo_n "(cached) " >&6
3417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3418 /* end confdefs.h. */
3428 rm -f conftest.o conftest.obj
3429 if { { ac_try="$ac_compile"
3431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3432 *) ac_try_echo=$ac_try;;
3434 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3435 $as_echo "$ac_try_echo"; } >&5
3436 (eval "$ac_compile") 2>&5
3438 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3439 test $ac_status = 0; }; then :
3440 for ac_file in conftest.o conftest.obj conftest.*; do
3441 test -f "$ac_file" || continue;
3443 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3444 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3449 $as_echo "$as_me: failed program was:" >&5
3450 sed 's/^/| /' conftest.$ac_ext >&5
3452 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3453 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3454 as_fn_error $? "cannot compute suffix of object files: cannot compile
3455 See \`config.log' for more details" "$LINENO" 5; }
3457 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3460 $as_echo "$ac_cv_objext" >&6; }
3461 OBJEXT=$ac_cv_objext
3463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3464 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3465 if ${ac_cv_c_compiler_gnu+:} false; then :
3466 $as_echo_n "(cached) " >&6
3468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3469 /* end confdefs.h. */
3482 if ac_fn_c_try_compile "$LINENO"; then :
3487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3488 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3492 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3493 if test $ac_compiler_gnu = yes; then
3498 ac_test_CFLAGS=${CFLAGS+set}
3499 ac_save_CFLAGS=$CFLAGS
3500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3501 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3502 if ${ac_cv_prog_cc_g+:} false; then :
3503 $as_echo_n "(cached) " >&6
3505 ac_save_c_werror_flag=$ac_c_werror_flag
3506 ac_c_werror_flag=yes
3509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3510 /* end confdefs.h. */
3520 if ac_fn_c_try_compile "$LINENO"; then :
3524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3525 /* end confdefs.h. */
3535 if ac_fn_c_try_compile "$LINENO"; then :
3538 ac_c_werror_flag=$ac_save_c_werror_flag
3540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3541 /* end confdefs.h. */
3551 if ac_fn_c_try_compile "$LINENO"; then :
3554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3559 ac_c_werror_flag=$ac_save_c_werror_flag
3561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3562 $as_echo "$ac_cv_prog_cc_g" >&6; }
3563 if test "$ac_test_CFLAGS" = set; then
3564 CFLAGS=$ac_save_CFLAGS
3565 elif test $ac_cv_prog_cc_g = yes; then
3566 if test "$GCC" = yes; then
3572 if test "$GCC" = yes; then
3578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3579 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3580 if ${ac_cv_prog_cc_c89+:} false; then :
3581 $as_echo_n "(cached) " >&6
3583 ac_cv_prog_cc_c89=no
3585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3586 /* end confdefs.h. */
3590 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3591 struct buf { int x; };
3592 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3593 static char *e (p, i)
3599 static char *f (char * (*g) (char **, int), char **p, ...)
3604 s = g (p, va_arg (v,int));
3609 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3610 function prototypes and stuff, but not '\xHH' hex character constants.
3611 These don't provoke an error unfortunately, instead are silently treated
3612 as 'x'. The following induces an error, until -std is added to get
3613 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3614 array size at least. It's necessary to write '\x00'==0 to get something
3615 that's true only with -std. */
3616 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3618 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3619 inside strings and character constants. */
3621 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3623 int test (int i, double x);
3624 struct s1 {int (*f) (int a);};
3625 struct s2 {int (*f) (double a);};
3626 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3632 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3637 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3638 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3640 CC="$ac_save_CC $ac_arg"
3641 if ac_fn_c_try_compile "$LINENO"; then :
3642 ac_cv_prog_cc_c89=$ac_arg
3644 rm -f core conftest.err conftest.$ac_objext
3645 test "x$ac_cv_prog_cc_c89" != "xno" && break
3647 rm -f conftest.$ac_ext
3652 case "x$ac_cv_prog_cc_c89" in
3654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3655 $as_echo "none needed" >&6; } ;;
3657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3658 $as_echo "unsupported" >&6; } ;;
3660 CC="$CC $ac_cv_prog_cc_c89"
3661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3662 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3664 if test "x$ac_cv_prog_cc_c89" != xno; then :
3669 ac_cpp='$CPP $CPPFLAGS'
3670 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3671 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3672 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
3676 $as_echo_n "checking for dlopen in -ldl... " >&6; }
3677 if ${ac_cv_lib_dl_dlopen+:} false; then :
3678 $as_echo_n "(cached) " >&6
3680 ac_check_lib_save_LIBS=$LIBS
3682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3683 /* end confdefs.h. */
3685 /* Override any GCC internal prototype to avoid an error.
3686 Use char because int might match the return type of a GCC
3687 builtin and then its argument prototype would still apply. */
3700 if ac_fn_c_try_link "$LINENO"; then :
3701 ac_cv_lib_dl_dlopen=yes
3703 ac_cv_lib_dl_dlopen=no
3705 rm -f core conftest.err conftest.$ac_objext \
3706 conftest$ac_exeext conftest.$ac_ext
3707 LIBS=$ac_check_lib_save_LIBS
3709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
3710 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
3711 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
3714 $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
3720 # Check whether --with-cc was given.
3721 if test "${with_cc+set}" = set; then :
3722 withval=$with_cc; as_fn_error $? "--with-cc no longer supported; use CC= instead" "$LINENO" 5
3726 # Check whether --with-ccopts was given.
3727 if test "${with_ccopts+set}" = set; then :
3728 withval=$with_ccopts; as_fn_error $? "--with-ccopts no longer supported; use CFLAGS= instead" "$LINENO" 5
3732 # Check whether --with-ldopts was given.
3733 if test "${with_ldopts+set}" = set; then :
3734 withval=$with_ldopts; as_fn_error $? "--with-ldopts no longer supported; use LDFLAGS= instead" "$LINENO" 5
3738 ac_cpp='$CPP $CPPFLAGS'
3739 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3740 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3741 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3742 if test -n "$ac_tool_prefix"; then
3743 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3744 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3746 $as_echo_n "checking for $ac_word... " >&6; }
3747 if ${ac_cv_prog_CC+:} false; then :
3748 $as_echo_n "(cached) " >&6
3750 if test -n "$CC"; then
3751 ac_cv_prog_CC="$CC" # Let the user override the test.
3753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3757 test -z "$as_dir" && as_dir=.
3758 for ac_exec_ext in '' $ac_executable_extensions; do
3759 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3760 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3771 if test -n "$CC"; then
3772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3773 $as_echo "$CC" >&6; }
3775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3776 $as_echo "no" >&6; }
3781 if test -z "$ac_cv_prog_CC"; then
3783 # Extract the first word of "gcc", so it can be a program name with args.
3784 set dummy gcc; ac_word=$2
3785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3786 $as_echo_n "checking for $ac_word... " >&6; }
3787 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3788 $as_echo_n "(cached) " >&6
3790 if test -n "$ac_ct_CC"; then
3791 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3797 test -z "$as_dir" && as_dir=.
3798 for ac_exec_ext in '' $ac_executable_extensions; do
3799 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3800 ac_cv_prog_ac_ct_CC="gcc"
3801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3810 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3811 if test -n "$ac_ct_CC"; then
3812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3813 $as_echo "$ac_ct_CC" >&6; }
3815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3816 $as_echo "no" >&6; }
3819 if test "x$ac_ct_CC" = x; then
3822 case $cross_compiling:$ac_tool_warned in
3824 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3825 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3826 ac_tool_warned=yes ;;
3834 if test -z "$CC"; then
3835 if test -n "$ac_tool_prefix"; then
3836 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3837 set dummy ${ac_tool_prefix}cc; ac_word=$2
3838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3839 $as_echo_n "checking for $ac_word... " >&6; }
3840 if ${ac_cv_prog_CC+:} false; then :
3841 $as_echo_n "(cached) " >&6
3843 if test -n "$CC"; then
3844 ac_cv_prog_CC="$CC" # Let the user override the test.
3846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3850 test -z "$as_dir" && as_dir=.
3851 for ac_exec_ext in '' $ac_executable_extensions; do
3852 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3853 ac_cv_prog_CC="${ac_tool_prefix}cc"
3854 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3864 if test -n "$CC"; then
3865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3866 $as_echo "$CC" >&6; }
3868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3869 $as_echo "no" >&6; }
3875 if test -z "$CC"; then
3876 # Extract the first word of "cc", so it can be a program name with args.
3877 set dummy cc; ac_word=$2
3878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3879 $as_echo_n "checking for $ac_word... " >&6; }
3880 if ${ac_cv_prog_CC+:} false; then :
3881 $as_echo_n "(cached) " >&6
3883 if test -n "$CC"; then
3884 ac_cv_prog_CC="$CC" # Let the user override the test.
3887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3891 test -z "$as_dir" && as_dir=.
3892 for ac_exec_ext in '' $ac_executable_extensions; do
3893 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3894 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3895 ac_prog_rejected=yes
3899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3906 if test $ac_prog_rejected = yes; then
3907 # We found a bogon in the path, so make sure we never use it.
3908 set dummy $ac_cv_prog_CC
3910 if test $# != 0; then
3911 # We chose a different compiler from the bogus one.
3912 # However, it has the same basename, so the bogon will be chosen
3913 # first if we set CC to just the basename; use the full file name.
3915 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3921 if test -n "$CC"; then
3922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3923 $as_echo "$CC" >&6; }
3925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3926 $as_echo "no" >&6; }
3931 if test -z "$CC"; then
3932 if test -n "$ac_tool_prefix"; then
3933 for ac_prog in cl.exe
3935 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3936 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3938 $as_echo_n "checking for $ac_word... " >&6; }
3939 if ${ac_cv_prog_CC+:} false; then :
3940 $as_echo_n "(cached) " >&6
3942 if test -n "$CC"; then
3943 ac_cv_prog_CC="$CC" # Let the user override the test.
3945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3949 test -z "$as_dir" && as_dir=.
3950 for ac_exec_ext in '' $ac_executable_extensions; do
3951 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3952 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3963 if test -n "$CC"; then
3964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3965 $as_echo "$CC" >&6; }
3967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3968 $as_echo "no" >&6; }
3972 test -n "$CC" && break
3975 if test -z "$CC"; then
3977 for ac_prog in cl.exe
3979 # Extract the first word of "$ac_prog", so it can be a program name with args.
3980 set dummy $ac_prog; ac_word=$2
3981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3982 $as_echo_n "checking for $ac_word... " >&6; }
3983 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3984 $as_echo_n "(cached) " >&6
3986 if test -n "$ac_ct_CC"; then
3987 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3993 test -z "$as_dir" && as_dir=.
3994 for ac_exec_ext in '' $ac_executable_extensions; do
3995 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3996 ac_cv_prog_ac_ct_CC="$ac_prog"
3997 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4006 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4007 if test -n "$ac_ct_CC"; then
4008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4009 $as_echo "$ac_ct_CC" >&6; }
4011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4012 $as_echo "no" >&6; }
4016 test -n "$ac_ct_CC" && break
4019 if test "x$ac_ct_CC" = x; then
4022 case $cross_compiling:$ac_tool_warned in
4024 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4025 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4026 ac_tool_warned=yes ;;
4035 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4036 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4037 as_fn_error $? "no acceptable C compiler found in \$PATH
4038 See \`config.log' for more details" "$LINENO" 5; }
4040 # Provide some information about the compiler.
4041 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4044 for ac_option in --version -v -V -qversion; do
4045 { { ac_try="$ac_compiler $ac_option >&5"
4047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4048 *) ac_try_echo=$ac_try;;
4050 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4051 $as_echo "$ac_try_echo"; } >&5
4052 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4054 if test -s conftest.err; then
4056 ... rest of stderr output deleted ...
4057 10q' conftest.err >conftest.er1
4058 cat conftest.er1 >&5
4060 rm -f conftest.er1 conftest.err
4061 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4062 test $ac_status = 0; }
4065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4066 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4067 if ${ac_cv_c_compiler_gnu+:} false; then :
4068 $as_echo_n "(cached) " >&6
4070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4071 /* end confdefs.h. */
4084 if ac_fn_c_try_compile "$LINENO"; then :
4089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4090 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4094 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4095 if test $ac_compiler_gnu = yes; then
4100 ac_test_CFLAGS=${CFLAGS+set}
4101 ac_save_CFLAGS=$CFLAGS
4102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4103 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4104 if ${ac_cv_prog_cc_g+:} false; then :
4105 $as_echo_n "(cached) " >&6
4107 ac_save_c_werror_flag=$ac_c_werror_flag
4108 ac_c_werror_flag=yes
4111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4112 /* end confdefs.h. */
4122 if ac_fn_c_try_compile "$LINENO"; then :
4126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4127 /* end confdefs.h. */
4137 if ac_fn_c_try_compile "$LINENO"; then :
4140 ac_c_werror_flag=$ac_save_c_werror_flag
4142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4143 /* end confdefs.h. */
4153 if ac_fn_c_try_compile "$LINENO"; then :
4156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4161 ac_c_werror_flag=$ac_save_c_werror_flag
4163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4164 $as_echo "$ac_cv_prog_cc_g" >&6; }
4165 if test "$ac_test_CFLAGS" = set; then
4166 CFLAGS=$ac_save_CFLAGS
4167 elif test $ac_cv_prog_cc_g = yes; then
4168 if test "$GCC" = yes; then
4174 if test "$GCC" = yes; then
4180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4181 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4182 if ${ac_cv_prog_cc_c89+:} false; then :
4183 $as_echo_n "(cached) " >&6
4185 ac_cv_prog_cc_c89=no
4187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4188 /* end confdefs.h. */
4192 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4193 struct buf { int x; };
4194 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4195 static char *e (p, i)
4201 static char *f (char * (*g) (char **, int), char **p, ...)
4206 s = g (p, va_arg (v,int));
4211 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4212 function prototypes and stuff, but not '\xHH' hex character constants.
4213 These don't provoke an error unfortunately, instead are silently treated
4214 as 'x'. The following induces an error, until -std is added to get
4215 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4216 array size at least. It's necessary to write '\x00'==0 to get something
4217 that's true only with -std. */
4218 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4220 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4221 inside strings and character constants. */
4223 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4225 int test (int i, double x);
4226 struct s1 {int (*f) (int a);};
4227 struct s2 {int (*f) (double a);};
4228 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4234 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4239 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4240 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4242 CC="$ac_save_CC $ac_arg"
4243 if ac_fn_c_try_compile "$LINENO"; then :
4244 ac_cv_prog_cc_c89=$ac_arg
4246 rm -f core conftest.err conftest.$ac_objext
4247 test "x$ac_cv_prog_cc_c89" != "xno" && break
4249 rm -f conftest.$ac_ext
4254 case "x$ac_cv_prog_cc_c89" in
4256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4257 $as_echo "none needed" >&6; } ;;
4259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4260 $as_echo "unsupported" >&6; } ;;
4262 CC="$CC $ac_cv_prog_cc_c89"
4263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4264 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4266 if test "x$ac_cv_prog_cc_c89" != xno; then :
4271 ac_cpp='$CPP $CPPFLAGS'
4272 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4273 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4274 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4276 if test "$GCC" = yes; then
4277 RDYNAMIC="-rdynamic"
4281 ac_cpp='$CPP $CPPFLAGS'
4282 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4283 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4284 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4286 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4287 # On Suns, sometimes $CPP names a directory.
4288 if test -n "$CPP" && test -d "$CPP"; then
4291 if test -z "$CPP"; then
4292 if ${ac_cv_prog_CPP+:} false; then :
4293 $as_echo_n "(cached) " >&6
4295 # Double quotes because CPP needs to be expanded
4296 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4299 for ac_c_preproc_warn_flag in '' yes
4301 # Use a header file that comes with gcc, so configuring glibc
4302 # with a fresh cross-compiler works.
4303 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4304 # <limits.h> exists even on freestanding compilers.
4305 # On the NeXT, cc -E runs the code through the compiler's parser,
4306 # not just through cpp. "Syntax error" is here to catch this case.
4307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4308 /* end confdefs.h. */
4310 # include <limits.h>
4312 # include <assert.h>
4316 if ac_fn_c_try_cpp "$LINENO"; then :
4319 # Broken: fails on valid input.
4322 rm -f conftest.err conftest.i conftest.$ac_ext
4324 # OK, works on sane cases. Now check whether nonexistent headers
4325 # can be detected and how.
4326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4327 /* end confdefs.h. */
4328 #include <ac_nonexistent.h>
4330 if ac_fn_c_try_cpp "$LINENO"; then :
4331 # Broken: success on invalid input.
4334 # Passes both tests.
4338 rm -f conftest.err conftest.i conftest.$ac_ext
4341 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4342 rm -f conftest.i conftest.err conftest.$ac_ext
4343 if $ac_preproc_ok; then :
4355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4356 $as_echo "$CPP" >&6; }
4358 for ac_c_preproc_warn_flag in '' yes
4360 # Use a header file that comes with gcc, so configuring glibc
4361 # with a fresh cross-compiler works.
4362 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4363 # <limits.h> exists even on freestanding compilers.
4364 # On the NeXT, cc -E runs the code through the compiler's parser,
4365 # not just through cpp. "Syntax error" is here to catch this case.
4366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4367 /* end confdefs.h. */
4369 # include <limits.h>
4371 # include <assert.h>
4375 if ac_fn_c_try_cpp "$LINENO"; then :
4378 # Broken: fails on valid input.
4381 rm -f conftest.err conftest.i conftest.$ac_ext
4383 # OK, works on sane cases. Now check whether nonexistent headers
4384 # can be detected and how.
4385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4386 /* end confdefs.h. */
4387 #include <ac_nonexistent.h>
4389 if ac_fn_c_try_cpp "$LINENO"; then :
4390 # Broken: success on invalid input.
4393 # Passes both tests.
4397 rm -f conftest.err conftest.i conftest.$ac_ext
4400 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4401 rm -f conftest.i conftest.err conftest.$ac_ext
4402 if $ac_preproc_ok; then :
4405 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4406 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4407 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4408 See \`config.log' for more details" "$LINENO" 5; }
4412 ac_cpp='$CPP $CPPFLAGS'
4413 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4414 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4415 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for additional special compiler flags" >&5
4418 $as_echo_n "checking for additional special compiler flags... " >&6; }
4419 if test "$GCC" = yes
4422 alpha) addcflags="-mieee" ;;
4425 if test "x$addcflags" != x
4427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $addcflags" >&5
4428 $as_echo "$addcflags" >&6; }
4429 CFLAGS="$addcflags $CFLAGS"
4431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (none)" >&5
4432 $as_echo "(none)" >&6; }
4435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4436 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4437 if ${ac_cv_path_GREP+:} false; then :
4438 $as_echo_n "(cached) " >&6
4440 if test -z "$GREP"; then
4441 ac_path_GREP_found=false
4442 # Loop through the user's path and test for each of PROGNAME-LIST
4443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4444 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4447 test -z "$as_dir" && as_dir=.
4448 for ac_prog in grep ggrep; do
4449 for ac_exec_ext in '' $ac_executable_extensions; do
4450 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4451 as_fn_executable_p "$ac_path_GREP" || continue
4452 # Check for GNU ac_path_GREP and select it if it is found.
4453 # Check for GNU $ac_path_GREP
4454 case `"$ac_path_GREP" --version 2>&1` in
4456 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4459 $as_echo_n 0123456789 >"conftest.in"
4462 cat "conftest.in" "conftest.in" >"conftest.tmp"
4463 mv "conftest.tmp" "conftest.in"
4464 cp "conftest.in" "conftest.nl"
4465 $as_echo 'GREP' >> "conftest.nl"
4466 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4467 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4468 as_fn_arith $ac_count + 1 && ac_count=$as_val
4469 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4470 # Best one so far, save it but keep looking for a better one
4471 ac_cv_path_GREP="$ac_path_GREP"
4472 ac_path_GREP_max=$ac_count
4474 # 10*(2^10) chars as input seems more than enough
4475 test $ac_count -gt 10 && break
4477 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4480 $ac_path_GREP_found && break 3
4485 if test -z "$ac_cv_path_GREP"; then
4486 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4489 ac_cv_path_GREP=$GREP
4493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4494 $as_echo "$ac_cv_path_GREP" >&6; }
4495 GREP="$ac_cv_path_GREP"
4498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4499 $as_echo_n "checking for egrep... " >&6; }
4500 if ${ac_cv_path_EGREP+:} false; then :
4501 $as_echo_n "(cached) " >&6
4503 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4504 then ac_cv_path_EGREP="$GREP -E"
4506 if test -z "$EGREP"; then
4507 ac_path_EGREP_found=false
4508 # Loop through the user's path and test for each of PROGNAME-LIST
4509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4510 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4513 test -z "$as_dir" && as_dir=.
4514 for ac_prog in egrep; do
4515 for ac_exec_ext in '' $ac_executable_extensions; do
4516 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4517 as_fn_executable_p "$ac_path_EGREP" || continue
4518 # Check for GNU ac_path_EGREP and select it if it is found.
4519 # Check for GNU $ac_path_EGREP
4520 case `"$ac_path_EGREP" --version 2>&1` in
4522 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4525 $as_echo_n 0123456789 >"conftest.in"
4528 cat "conftest.in" "conftest.in" >"conftest.tmp"
4529 mv "conftest.tmp" "conftest.in"
4530 cp "conftest.in" "conftest.nl"
4531 $as_echo 'EGREP' >> "conftest.nl"
4532 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4533 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4534 as_fn_arith $ac_count + 1 && ac_count=$as_val
4535 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4536 # Best one so far, save it but keep looking for a better one
4537 ac_cv_path_EGREP="$ac_path_EGREP"
4538 ac_path_EGREP_max=$ac_count
4540 # 10*(2^10) chars as input seems more than enough
4541 test $ac_count -gt 10 && break
4543 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4546 $ac_path_EGREP_found && break 3
4551 if test -z "$ac_cv_path_EGREP"; then
4552 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4555 ac_cv_path_EGREP=$EGREP
4560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4561 $as_echo "$ac_cv_path_EGREP" >&6; }
4562 EGREP="$ac_cv_path_EGREP"
4565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4566 $as_echo_n "checking for ANSI C header files... " >&6; }
4567 if ${ac_cv_header_stdc+:} false; then :
4568 $as_echo_n "(cached) " >&6
4570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4571 /* end confdefs.h. */
4585 if ac_fn_c_try_compile "$LINENO"; then :
4586 ac_cv_header_stdc=yes
4588 ac_cv_header_stdc=no
4590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4592 if test $ac_cv_header_stdc = yes; then
4593 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4595 /* end confdefs.h. */
4599 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4600 $EGREP "memchr" >/dev/null 2>&1; then :
4603 ac_cv_header_stdc=no
4609 if test $ac_cv_header_stdc = yes; then
4610 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4612 /* end confdefs.h. */
4616 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4617 $EGREP "free" >/dev/null 2>&1; then :
4620 ac_cv_header_stdc=no
4626 if test $ac_cv_header_stdc = yes; then
4627 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4628 if test "$cross_compiling" = yes; then :
4631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4632 /* end confdefs.h. */
4635 #if ((' ' & 0x0FF) == 0x020)
4636 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4637 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4639 # define ISLOWER(c) \
4640 (('a' <= (c) && (c) <= 'i') \
4641 || ('j' <= (c) && (c) <= 'r') \
4642 || ('s' <= (c) && (c) <= 'z'))
4643 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4646 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4651 for (i = 0; i < 256; i++)
4652 if (XOR (islower (i), ISLOWER (i))
4653 || toupper (i) != TOUPPER (i))
4658 if ac_fn_c_try_run "$LINENO"; then :
4661 ac_cv_header_stdc=no
4663 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4664 conftest.$ac_objext conftest.beam conftest.$ac_ext
4669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4670 $as_echo "$ac_cv_header_stdc" >&6; }
4671 if test $ac_cv_header_stdc = yes; then
4673 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4677 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4678 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4679 inttypes.h stdint.h unistd.h
4681 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4682 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4684 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4685 cat >>confdefs.h <<_ACEOF
4686 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4695 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4696 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4703 if test "$MINIX" = yes; then
4705 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4708 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4711 $as_echo "#define _MINIX 1" >>confdefs.h
4716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4717 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4718 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4719 $as_echo_n "(cached) " >&6
4721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4722 /* end confdefs.h. */
4724 # define __EXTENSIONS__ 1
4725 $ac_includes_default
4734 if ac_fn_c_try_compile "$LINENO"; then :
4735 ac_cv_safe_to_define___extensions__=yes
4737 ac_cv_safe_to_define___extensions__=no
4739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4742 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4743 test $ac_cv_safe_to_define___extensions__ = yes &&
4744 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4746 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4748 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4750 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4752 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4759 # Check whether --with-root-prefix was given.
4760 if test "${with_root_prefix+set}" = set; then :
4761 withval=$with_root_prefix; root_prefix=$withval
4765 # Check whether --enable-maintainer-mode was given.
4766 if test "${enable_maintainer_mode+set}" = set; then :
4767 enableval=$enable_maintainer_mode; if test "$enableval" = "no"
4770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode" >&5
4771 $as_echo "Disabling maintainer mode" >&6; }
4774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling maintainer mode" >&5
4775 $as_echo "Enabling maintainer mode" >&6; }
4780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode by default" >&5
4781 $as_echo "Disabling maintainer mode by default" >&6; }
4786 # Check whether --enable-symlink-install was given.
4787 if test "${enable_symlink_install+set}" = set; then :
4788 enableval=$enable_symlink_install; if test "$enableval" = "no"
4790 LINK_INSTALL_FLAGS=-f
4791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install" >&5
4792 $as_echo "Disabling symlinks for install" >&6; }
4794 LINK_INSTALL_FLAGS=-sf
4795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for install" >&5
4796 $as_echo "Enabling symlinks for install" >&6; }
4800 LINK_INSTALL_FLAGS=-f
4801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install by default" >&5
4802 $as_echo "Disabling symlinks for install by default" >&6; }
4807 relative_symlink_defined=
4808 # Check whether --enable-relative-symlinks was given.
4809 if test "${enable_relative_symlinks+set}" = set; then :
4810 enableval=$enable_relative_symlinks; if test "$enableval" = "no"
4813 relative_symlink_defined=yes
4814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
4815 $as_echo "Disabling relative symlinks for install" >&6; }
4817 SYMLINK_RELATIVE=--relative
4818 relative_symlink_defined=yes
4819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5
4820 $as_echo "Enabling relative symlinks for install" >&6; }
4824 # Check whether --enable-symlink-relative-symlinks was given.
4825 if test "${enable_symlink_relative_symlinks+set}" = set; then :
4826 enableval=$enable_symlink_relative_symlinks; if test "$enableval" = "no"
4828 SYMLINK_RELATIVE=yes
4829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
4830 $as_echo "Disabling relative symlinks for install" >&6; }
4832 SYMLINK_RELATIVE=--relative
4833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5
4834 $as_echo "Enabling relative symlinks for install" >&6; }
4838 if test -z "$relative_symlink_defined"
4841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install by default" >&5
4842 $as_echo "Disabling relative symlinks for install by default" >&6; }
4848 # Check whether --enable-symlink-build was given.
4849 if test "${enable_symlink_build+set}" = set; then :
4850 enableval=$enable_symlink_build; if test "$enableval" = "no"
4853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build" >&5
4854 $as_echo "Disabling symlinks for build" >&6; }
4857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for build" >&5
4858 $as_echo "Enabling symlinks for build" >&6; }
4863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build by default" >&5
4864 $as_echo "Disabling symlinks for build by default" >&6; }
4869 # Check whether --enable-verbose-makecmds was given.
4870 if test "${enable_verbose_makecmds+set}" = set; then :
4871 enableval=$enable_verbose_makecmds; if test "$enableval" = "no"
4873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
4874 $as_echo "Disabling verbose make commands" >&6; }
4879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling verbose make commands" >&5
4880 $as_echo "Enabling verbose make commands" >&6; }
4887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
4888 $as_echo "Disabling verbose make commands" >&6; }
4898 # Check whether --enable-compression was given.
4899 if test "${enable_compression+set}" = set; then :
4900 enableval=$enable_compression; if test "$enableval" = "no"
4902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling compression support" >&5
4903 $as_echo "Disabling compression support" >&6; }
4906 $as_echo "#define ENABLE_COMPRESSION 1" >>confdefs.h
4908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling compression support" >&5
4909 $as_echo "Enabling compression support" >&6; }
4910 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Compression support is experimental" >&5
4911 $as_echo "$as_me: WARNING: Compression support is experimental" >&2;}
4915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling compression support by default" >&5
4916 $as_echo "Disabling compression support by default" >&6; }
4921 # Check whether --enable-htree was given.
4922 if test "${enable_htree+set}" = set; then :
4923 enableval=$enable_htree; if test "$enableval" = "no"
4926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling htree directory support" >&5
4927 $as_echo "Disabling htree directory support" >&6; }
4930 $as_echo "#define ENABLE_HTREE 1" >>confdefs.h
4932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling htree directory support" >&5
4933 $as_echo "Enabling htree directory support" >&6; }
4938 $as_echo "#define ENABLE_HTREE 1" >>confdefs.h
4940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling htree directory support by default" >&5
4941 $as_echo "Enabling htree directory support by default" >&6; }
4946 E2_PKG_CONFIG_STATIC=--static
4949 # Check whether --enable-elf-shlibs was given.
4950 if test "${enable_elf_shlibs+set}" = set; then :
4951 enableval=$enable_elf_shlibs; if test "$enableval" = "no"
4954 MAKEFILE_ELF=/dev/null
4955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries" >&5
4956 $as_echo "Disabling ELF shared libraries" >&6; }
4958 E2_PKG_CONFIG_STATIC=
4960 MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
4963 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
4969 LDFLAG_DYNAMIC='-Wl,-rpath-link,$(top_builddir)/lib'
4970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling ELF shared libraries" >&5
4971 $as_echo "Enabling ELF shared libraries" >&6; }
4975 MAKEFILE_ELF=/dev/null
4977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries by default" >&5
4978 $as_echo "Disabling ELF shared libraries by default" >&6; }
4984 # Check whether --enable-bsd-shlibs was given.
4985 if test "${enable_bsd_shlibs+set}" = set; then :
4986 enableval=$enable_bsd_shlibs; if test "$enableval" = "no"
4989 MAKEFILE_BSDLIB=/dev/null
4990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries" >&5
4991 $as_echo "Disabling BSD shared libraries" >&6; }
4993 E2_PKG_CONFIG_STATIC=
4995 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
4999 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib
5003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling BSD shared libraries" >&5
5004 $as_echo "Enabling BSD shared libraries" >&6; }
5008 MAKEFILE_BSDLIB=/dev/null
5010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries by default" >&5
5011 $as_echo "Disabling BSD shared libraries by default" >&6; }
5017 # Check whether --enable-profile was given.
5018 if test "${enable_profile+set}" = set; then :
5019 enableval=$enable_profile; if test "$enableval" = "no"
5022 MAKEFILE_PROFILE=/dev/null
5023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries" >&5
5024 $as_echo "Disabling profiling libraries" >&6; }
5027 MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
5028 PROFILED_LIB_EXT=_p.a
5029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building profiling libraries" >&5
5030 $as_echo "Building profiling libraries" >&6; }
5035 MAKEFILE_PROFILE=/dev/null
5036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries by default" >&5
5037 $as_echo "Disabling profiling libraries by default" >&6; }
5043 # Check whether --enable-gcov was given.
5044 if test "${enable_gcov+set}" = set; then :
5045 enableval=$enable_gcov; if test "$enableval" = "yes"
5047 CFLAGS="-g -fprofile-arcs -ftest-coverage"
5048 LDFLAGS="-fprofile-arcs -ftest-coverage"
5049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling gcov support" >&5
5050 $as_echo "Enabling gcov support" >&6; }
5061 # Check whether --enable-jbd-debug was given.
5062 if test "${enable_jbd_debug+set}" = set; then :
5063 enableval=$enable_jbd_debug; if test "$enableval" = "no"
5065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging" >&5
5066 $as_echo "Disabling journal debugging" >&6; }
5069 $as_echo "#define CONFIG_JBD_DEBUG 1" >>confdefs.h
5071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling journal debugging" >&5
5072 $as_echo "Enabling journal debugging" >&6; }
5076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging by default" >&5
5077 $as_echo "Disabling journal debugging by default" >&6; }
5081 # Check whether --enable-blkid-debug was given.
5082 if test "${enable_blkid_debug+set}" = set; then :
5083 enableval=$enable_blkid_debug; if test "$enableval" = "no"
5085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging" >&5
5086 $as_echo "Disabling blkid debugging" >&6; }
5089 $as_echo "#define CONFIG_BLKID_DEBUG 1" >>confdefs.h
5091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling blkid debugging" >&5
5092 $as_echo "Enabling blkid debugging" >&6; }
5096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging by default" >&5
5097 $as_echo "Disabling blkid debugging by default" >&6; }
5101 # Check whether --enable-testio-debug was given.
5102 if test "${enable_testio_debug+set}" = set; then :
5103 enableval=$enable_testio_debug;
5104 if test "$enableval" = "no"
5106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling testio debugging" >&5
5107 $as_echo "Disabling testio debugging" >&6; }
5111 $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
5113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging" >&5
5114 $as_echo "Enabling testio debugging" >&6; }
5118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging by default" >&5
5119 $as_echo "Enabling testio debugging by default" >&6; }
5120 $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
5134 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5135 if test -n "$ac_tool_prefix"; then
5136 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5137 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5139 $as_echo_n "checking for $ac_word... " >&6; }
5140 if ${ac_cv_path_PKG_CONFIG+:} false; then :
5141 $as_echo_n "(cached) " >&6
5145 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5152 test -z "$as_dir" && as_dir=.
5153 for ac_exec_ext in '' $ac_executable_extensions; do
5154 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5155 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5166 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5167 if test -n "$PKG_CONFIG"; then
5168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5169 $as_echo "$PKG_CONFIG" >&6; }
5171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5172 $as_echo "no" >&6; }
5177 if test -z "$ac_cv_path_PKG_CONFIG"; then
5178 ac_pt_PKG_CONFIG=$PKG_CONFIG
5179 # Extract the first word of "pkg-config", so it can be a program name with args.
5180 set dummy pkg-config; ac_word=$2
5181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5182 $as_echo_n "checking for $ac_word... " >&6; }
5183 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
5184 $as_echo_n "(cached) " >&6
5186 case $ac_pt_PKG_CONFIG in
5188 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5195 test -z "$as_dir" && as_dir=.
5196 for ac_exec_ext in '' $ac_executable_extensions; do
5197 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5198 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5199 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5209 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5210 if test -n "$ac_pt_PKG_CONFIG"; then
5211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5212 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5215 $as_echo "no" >&6; }
5218 if test "x$ac_pt_PKG_CONFIG" = x; then
5221 case $cross_compiling:$ac_tool_warned in
5223 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5224 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5225 ac_tool_warned=yes ;;
5227 PKG_CONFIG=$ac_pt_PKG_CONFIG
5230 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5234 if test -n "$PKG_CONFIG"; then
5235 _pkg_min_version=0.9.0
5236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5237 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5238 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5240 $as_echo "yes" >&6; }
5242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5243 $as_echo "no" >&6; }
5252 DEPPROFILED_LIBUUID=
5254 # Check whether --enable-libuuid was given.
5255 if test "${enable_libuuid+set}" = set; then :
5256 enableval=$enable_libuuid; if test "$enableval" = "no"
5258 if test -z "$PKG_CONFIG"; then
5259 as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5
5262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
5263 $as_echo_n "checking for uuid_generate in -luuid... " >&6; }
5264 if ${ac_cv_lib_uuid_uuid_generate+:} false; then :
5265 $as_echo_n "(cached) " >&6
5267 ac_check_lib_save_LIBS=$LIBS
5269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5270 /* end confdefs.h. */
5272 /* Override any GCC internal prototype to avoid an error.
5273 Use char because int might match the return type of a GCC
5274 builtin and then its argument prototype would still apply. */
5278 char uuid_generate ();
5282 return uuid_generate ();
5287 if ac_fn_c_try_link "$LINENO"; then :
5288 ac_cv_lib_uuid_uuid_generate=yes
5290 ac_cv_lib_uuid_uuid_generate=no
5292 rm -f core conftest.err conftest.$ac_objext \
5293 conftest$ac_exeext conftest.$ac_ext
5294 LIBS=$ac_check_lib_save_LIBS
5296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
5297 $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
5298 if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then :
5299 LIBUUID=`$PKG_CONFIG --libs uuid`;
5300 STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid`
5302 as_fn_error $? "external uuid library not found" "$LINENO" 5
5305 PROFILED_LIBUUID=$LIBUUID
5307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private uuid library" >&5
5308 $as_echo "Disabling private uuid library" >&6; }
5310 LIBUUID='$(LIB)/libuuid'$LIB_EXT
5312 STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
5313 DEPSTATIC_LIBUUID=$STATIC_LIBUUID
5314 PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
5315 DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
5316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library" >&5
5317 $as_echo "Enabling private uuid library" >&6; }
5321 LIBUUID='$(LIB)/libuuid'$LIB_EXT
5323 STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
5324 DEPSTATIC_LIBUUID=$STATIC_LIBUUID
5325 PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
5326 DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
5327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library by default" >&5
5328 $as_echo "Enabling private uuid library by default" >&6; }
5346 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5347 if test -n "$ac_tool_prefix"; then
5348 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5349 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5351 $as_echo_n "checking for $ac_word... " >&6; }
5352 if ${ac_cv_path_PKG_CONFIG+:} false; then :
5353 $as_echo_n "(cached) " >&6
5357 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5364 test -z "$as_dir" && as_dir=.
5365 for ac_exec_ext in '' $ac_executable_extensions; do
5366 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5367 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5368 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5378 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5379 if test -n "$PKG_CONFIG"; then
5380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5381 $as_echo "$PKG_CONFIG" >&6; }
5383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5384 $as_echo "no" >&6; }
5389 if test -z "$ac_cv_path_PKG_CONFIG"; then
5390 ac_pt_PKG_CONFIG=$PKG_CONFIG
5391 # Extract the first word of "pkg-config", so it can be a program name with args.
5392 set dummy pkg-config; ac_word=$2
5393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5394 $as_echo_n "checking for $ac_word... " >&6; }
5395 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
5396 $as_echo_n "(cached) " >&6
5398 case $ac_pt_PKG_CONFIG in
5400 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5407 test -z "$as_dir" && as_dir=.
5408 for ac_exec_ext in '' $ac_executable_extensions; do
5409 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5410 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5421 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5422 if test -n "$ac_pt_PKG_CONFIG"; then
5423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5424 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5427 $as_echo "no" >&6; }
5430 if test "x$ac_pt_PKG_CONFIG" = x; then
5433 case $cross_compiling:$ac_tool_warned in
5435 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5436 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5437 ac_tool_warned=yes ;;
5439 PKG_CONFIG=$ac_pt_PKG_CONFIG
5442 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5446 if test -n "$PKG_CONFIG"; then
5447 _pkg_min_version=0.9.0
5448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5449 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5450 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5452 $as_echo "yes" >&6; }
5454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5455 $as_echo "no" >&6; }
5464 DEPPROFILED_LIBBLKID=
5467 # Check whether --enable-libblkid was given.
5468 if test "${enable_libblkid+set}" = set; then :
5469 enableval=$enable_libblkid; if test "$enableval" = "no"
5471 if test -z "$PKG_CONFIG"; then
5472 as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5
5475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
5476 $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
5477 if ${ac_cv_lib_blkid_blkid_get_cache+:} false; then :
5478 $as_echo_n "(cached) " >&6
5480 ac_check_lib_save_LIBS=$LIBS
5481 LIBS="-lblkid -luuid $LIBS"
5482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5483 /* end confdefs.h. */
5485 /* Override any GCC internal prototype to avoid an error.
5486 Use char because int might match the return type of a GCC
5487 builtin and then its argument prototype would still apply. */
5491 char blkid_get_cache ();
5495 return blkid_get_cache ();
5500 if ac_fn_c_try_link "$LINENO"; then :
5501 ac_cv_lib_blkid_blkid_get_cache=yes
5503 ac_cv_lib_blkid_blkid_get_cache=no
5505 rm -f core conftest.err conftest.$ac_objext \
5506 conftest$ac_exeext conftest.$ac_ext
5507 LIBS=$ac_check_lib_save_LIBS
5509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
5510 $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
5511 if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes; then :
5512 LIBBLKID=`$PKG_CONFIG --libs blkid`;
5513 STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid`
5515 as_fn_error $? "external blkid library not found" "$LINENO" 5
5519 PROFILED_LIBBLKID=$LIBBLKID
5520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private blkid library" >&5
5521 $as_echo "Disabling private blkid library" >&6; }
5523 LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5524 DEPLIBBLKID=$LIBBLKID
5525 STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5526 DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5527 PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5528 DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
5529 $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
5531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library" >&5
5532 $as_echo "Enabling private blkid library" >&6; }
5536 LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5537 DEPLIBBLKID=$LIBBLKID
5538 STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5539 DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5540 PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5541 DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
5542 $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
5544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library by default" >&5
5545 $as_echo "Enabling private blkid library by default" >&6; }
5556 QUOTA_MAN_COMMENT='.\"'
5566 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5567 if test -n "$ac_tool_prefix"; then
5568 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5569 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5571 $as_echo_n "checking for $ac_word... " >&6; }
5572 if ${ac_cv_path_PKG_CONFIG+:} false; then :
5573 $as_echo_n "(cached) " >&6
5577 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5584 test -z "$as_dir" && as_dir=.
5585 for ac_exec_ext in '' $ac_executable_extensions; do
5586 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5587 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5588 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5598 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5599 if test -n "$PKG_CONFIG"; then
5600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5601 $as_echo "$PKG_CONFIG" >&6; }
5603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5604 $as_echo "no" >&6; }
5609 if test -z "$ac_cv_path_PKG_CONFIG"; then
5610 ac_pt_PKG_CONFIG=$PKG_CONFIG
5611 # Extract the first word of "pkg-config", so it can be a program name with args.
5612 set dummy pkg-config; ac_word=$2
5613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5614 $as_echo_n "checking for $ac_word... " >&6; }
5615 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
5616 $as_echo_n "(cached) " >&6
5618 case $ac_pt_PKG_CONFIG in
5620 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5627 test -z "$as_dir" && as_dir=.
5628 for ac_exec_ext in '' $ac_executable_extensions; do
5629 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5630 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5641 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5642 if test -n "$ac_pt_PKG_CONFIG"; then
5643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5644 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5647 $as_echo "no" >&6; }
5650 if test "x$ac_pt_PKG_CONFIG" = x; then
5653 case $cross_compiling:$ac_tool_warned in
5655 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5656 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5657 ac_tool_warned=yes ;;
5659 PKG_CONFIG=$ac_pt_PKG_CONFIG
5662 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5666 if test -n "$PKG_CONFIG"; then
5667 _pkg_min_version=0.9.0
5668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5669 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5670 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5672 $as_echo "yes" >&6; }
5674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5675 $as_echo "no" >&6; }
5680 # Check whether --enable-quota was given.
5681 if test "${enable_quota+set}" = set; then :
5682 enableval=$enable_quota; if test "$enableval" = "no"
5685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling quota support" >&5
5686 $as_echo "Disabling quota support" >&6; }
5689 $as_echo "#define CONFIG_QUOTA 1" >>confdefs.h
5691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling quota support" >&5
5692 $as_echo "Enabling quota support" >&6; }
5693 QUOTA_MAN_COMMENT=""
5699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling quota support by default" >&5
5700 $as_echo "Disabling quota support by default" >&6; }
5704 LIBQUOTA='$(LIB)/libquota'$LIB_EXT
5705 DEPLIBQUOTA=$LIBQUOTA
5706 STATIC_LIBQUOTA='$(LIB)/libquota'$STATIC_LIB_EXT
5707 DEPSTATIC_LIBQUOTA=$STATIC_LIBQUOTA
5708 PROFILED_LIBQUOTA='$(LIB)/libquota'$PROFILED_LIB_EXT
5709 DEPPROFILED_LIBQUOTA=$PROFILED_LIBQUOTA
5718 # Check whether --enable-backtrace was given.
5719 if test "${enable_backtrace+set}" = set; then :
5720 enableval=$enable_backtrace; if test "$enableval" = "no"
5722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling use of backtrace" >&5
5723 $as_echo "Disabling use of backtrace" >&6; }
5724 $as_echo "#define DISABLE_BACKTRACE 1" >>confdefs.h
5727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace" >&5
5728 $as_echo "Enabling use of backtrace" >&6; }
5732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace by default" >&5
5733 $as_echo "Enabling use of backtrace by default" >&6; }
5737 # Check whether --enable-debugfs was given.
5738 if test "${enable_debugfs+set}" = set; then :
5739 enableval=$enable_debugfs; if test "$enableval" = "no"
5741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling debugfs support" >&5
5742 $as_echo "Disabling debugfs support" >&6; }
5746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support" >&5
5747 $as_echo "Enabling debugfs support" >&6; }
5751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support by default" >&5
5752 $as_echo "Enabling debugfs support by default" >&6; }
5758 # Check whether --enable-imager was given.
5759 if test "${enable_imager+set}" = set; then :
5760 enableval=$enable_imager; if test "$enableval" = "no"
5762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2image support" >&5
5763 $as_echo "Disabling e2image support" >&6; }
5767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support" >&5
5768 $as_echo "Enabling e2image support" >&6; }
5772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support by default" >&5
5773 $as_echo "Enabling e2image support by default" >&6; }
5779 # Check whether --enable-resizer was given.
5780 if test "${enable_resizer+set}" = set; then :
5781 enableval=$enable_resizer; if test "$enableval" = "no"
5783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2resize support" >&5
5784 $as_echo "Disabling e2resize support" >&6; }
5788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support" >&5
5789 $as_echo "Enabling e2resize support" >&6; }
5793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support by default" >&5
5794 $as_echo "Enabling e2resize support by default" >&6; }
5800 # Check whether --enable-defrag was given.
5801 if test "${enable_defrag+set}" = set; then :
5802 enableval=$enable_defrag; if test "$enableval" = "no"
5804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support" >&5
5805 $as_echo "Disabling e4defrag support" >&6; }
5809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support" >&5
5810 $as_echo "Enabling e4defrag support" >&6; }
5814 if test -z "$WITH_DIET_LIBC"
5816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support by default" >&5
5817 $as_echo "Enabling e4defrag support by default" >&6; }
5820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support by default" >&5
5821 $as_echo "Disabling e4defrag support by default" >&6; }
5828 # Check whether --enable-fsck was given.
5829 if test "${enable_fsck+set}" = set; then :
5830 enableval=$enable_fsck; if test "$enableval" = "no"
5832 FSCK_PROG='' FSCK_MAN=''
5833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper" >&5
5834 $as_echo "Not building fsck wrapper" >&6; }
5836 FSCK_PROG=fsck FSCK_MAN=fsck.8
5837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper" >&5
5838 $as_echo "Building fsck wrapper" >&6; }
5844 FSCK_PROG='' FSCK_MAN=''
5845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper by default" >&5
5846 $as_echo "Not building fsck wrapper by default" >&6; }
5849 FSCK_PROG=fsck FSCK_MAN=fsck.8
5850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper by default" >&5
5851 $as_echo "Building fsck wrapper by default" >&6; }
5858 # Check whether --enable-e2initrd-helper was given.
5859 if test "${enable_e2initrd_helper+set}" = set; then :
5860 enableval=$enable_e2initrd_helper; if test "$enableval" = "no"
5862 E2INITRD_PROG='' E2INITRD_MAN=''
5863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building e2initrd helper" >&5
5864 $as_echo "Not building e2initrd helper" >&6; }
5866 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
5867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper" >&5
5868 $as_echo "Building e2initrd helper" >&6; }
5872 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
5873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper by default" >&5
5874 $as_echo "Building e2initrd helper by default" >&6; }
5880 # Check whether --enable-tls was given.
5881 if test "${enable_tls+set}" = set; then :
5882 enableval=$enable_tls; if test "$enableval" = "no"
5885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling thread local support" >&5
5886 $as_echo "Disabling thread local support" >&6; }
5889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling thread local support" >&5
5890 $as_echo "Enabling thread local support" >&6; }
5894 if test -n "$WITH_DIET_LIBC"
5897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Diet libc does not support thread local support" >&5
5898 $as_echo "Diet libc does not support thread local support" >&6; }
5901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Try using thread local support by default" >&5
5902 $as_echo "Try using thread local support by default" >&6; }
5907 if test "$try_tls" = "yes"
5910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread local storage (TLS) class" >&5
5911 $as_echo_n "checking for thread local storage (TLS) class... " >&6; }
5912 if ${ac_cv_tls+:} false; then :
5913 $as_echo_n "(cached) " >&6
5916 ax_tls_keywords="__thread __declspec(thread) none"
5917 for ax_tls_keyword in $ax_tls_keywords; do
5918 case $ax_tls_keyword in
5919 none) ac_cv_tls=none ; break ;;
5921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5922 /* end confdefs.h. */
5926 static $ax_tls_keyword int bar;
5937 if ac_fn_c_try_compile "$LINENO"; then :
5938 ac_cv_tls=$ax_tls_keyword ; break
5943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5950 if test "$ac_cv_tls" != "none"; then
5952 cat >>confdefs.h <<_ACEOF
5953 #define TLS $ac_cv_tls
5957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tls" >&5
5958 $as_echo "$ac_cv_tls" >&6; }
5962 # Check whether --enable-uuidd was given.
5963 if test "${enable_uuidd+set}" = set; then :
5964 enableval=$enable_uuidd; if test "$enableval" = "no"
5966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building uuidd" >&5
5967 $as_echo "Not building uuidd" >&6; }
5970 $as_echo "#define USE_UUIDD 1" >>confdefs.h
5973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd" >&5
5974 $as_echo "Building uuidd" >&6; }
5978 $as_echo "#define USE_UUIDD 1" >>confdefs.h
5981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd by default" >&5
5982 $as_echo "Building uuidd by default" >&6; }
5987 MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
5989 GETTEXT_PACKAGE=e2fsprogs
5991 VERSION="$E2FSPROGS_VERSION"
5994 cat >>confdefs.h <<_ACEOF
5995 #define PACKAGE "$PACKAGE"
5999 cat >>confdefs.h <<_ACEOF
6000 #define VERSION "$VERSION"
6007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6008 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6010 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6011 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
6012 $as_echo_n "(cached) " >&6
6014 cat >conftest.make <<\_ACEOF
6017 @echo '@@@%%%=$(MAKE)=@@@%%%'
6019 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
6020 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6022 eval ac_cv_prog_make_${ac_make}_set=yes;;
6024 eval ac_cv_prog_make_${ac_make}_set=no;;
6028 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6030 $as_echo "yes" >&6; }
6033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6034 $as_echo "no" >&6; }
6035 SET_MAKE="MAKE=${MAKE-make}"
6038 # Find a good install program. We prefer a C program (faster),
6039 # so one script is as good as another. But avoid the broken or
6040 # incompatible versions:
6041 # SysV /etc/install, /usr/sbin/install
6042 # SunOS /usr/etc/install
6043 # IRIX /sbin/install
6045 # AmigaOS /C/install, which installs bootblocks on floppy discs
6046 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6047 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6048 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6049 # OS/2's system install, which has a completely different semantic
6050 # ./install, which can be erroneously created by make from ./install.sh.
6051 # Reject install programs that cannot install multiple files.
6052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
6053 $as_echo_n "checking for a BSD-compatible install... " >&6; }
6054 if test -z "$INSTALL"; then
6055 if ${ac_cv_path_install+:} false; then :
6056 $as_echo_n "(cached) " >&6
6058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6062 test -z "$as_dir" && as_dir=.
6063 # Account for people who put trailing slashes in PATH elements.
6064 case $as_dir/ in #((
6065 ./ | .// | /[cC]/* | \
6066 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6067 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
6070 # OSF1 and SCO ODT 3.0 have their own names for install.
6071 # Don't use installbsd from OSF since it installs stuff as root
6073 for ac_prog in ginstall scoinst install; do
6074 for ac_exec_ext in '' $ac_executable_extensions; do
6075 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
6076 if test $ac_prog = install &&
6077 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6078 # AIX install. It has an incompatible calling convention.
6080 elif test $ac_prog = install &&
6081 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6082 # program-specific install script used by HP pwplus--don't use.
6085 rm -rf conftest.one conftest.two conftest.dir
6086 echo one > conftest.one
6087 echo two > conftest.two
6089 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
6090 test -s conftest.one && test -s conftest.two &&
6091 test -s conftest.dir/conftest.one &&
6092 test -s conftest.dir/conftest.two
6094 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6107 rm -rf conftest.one conftest.two conftest.dir
6110 if test "${ac_cv_path_install+set}" = set; then
6111 INSTALL=$ac_cv_path_install
6113 # As a last resort, use the slow shell script. Don't cache a
6114 # value for INSTALL within a source directory, because that will
6115 # break other packages using the cache if that directory is
6116 # removed, or if the value is a relative name.
6117 INSTALL=$ac_install_sh
6120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
6121 $as_echo "$INSTALL" >&6; }
6123 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6124 # It thinks the first close brace ends the variable substitution.
6125 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6127 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6129 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
6132 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
6133 if test -z "$MKDIR_P"; then
6134 if ${ac_cv_path_mkdir+:} false; then :
6135 $as_echo_n "(cached) " >&6
6137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6138 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
6141 test -z "$as_dir" && as_dir=.
6142 for ac_prog in mkdir gmkdir; do
6143 for ac_exec_ext in '' $ac_executable_extensions; do
6144 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
6145 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
6146 'mkdir (GNU coreutils) '* | \
6147 'mkdir (coreutils) '* | \
6148 'mkdir (fileutils) '4.1*)
6149 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
6159 test -d ./--version && rmdir ./--version
6160 if test "${ac_cv_path_mkdir+set}" = set; then
6161 MKDIR_P="$ac_cv_path_mkdir -p"
6163 # As a last resort, use the slow shell script. Don't cache a
6164 # value for MKDIR_P within a source directory, because that will
6165 # break other packages using the cache if that directory is
6166 # removed, or if the value is a relative name.
6167 MKDIR_P="$ac_install_sh -d"
6170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
6171 $as_echo "$MKDIR_P" >&6; }
6173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6174 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6175 if ${ac_cv_path_SED+:} false; then :
6176 $as_echo_n "(cached) " >&6
6178 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6179 for ac_i in 1 2 3 4 5 6 7; do
6180 ac_script="$ac_script$as_nl$ac_script"
6182 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6183 { ac_script=; unset ac_script;}
6184 if test -z "$SED"; then
6185 ac_path_SED_found=false
6186 # Loop through the user's path and test for each of PROGNAME-LIST
6187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6191 test -z "$as_dir" && as_dir=.
6192 for ac_prog in sed gsed; do
6193 for ac_exec_ext in '' $ac_executable_extensions; do
6194 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6195 as_fn_executable_p "$ac_path_SED" || continue
6196 # Check for GNU ac_path_SED and select it if it is found.
6197 # Check for GNU $ac_path_SED
6198 case `"$ac_path_SED" --version 2>&1` in
6200 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6203 $as_echo_n 0123456789 >"conftest.in"
6206 cat "conftest.in" "conftest.in" >"conftest.tmp"
6207 mv "conftest.tmp" "conftest.in"
6208 cp "conftest.in" "conftest.nl"
6209 $as_echo '' >> "conftest.nl"
6210 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6211 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6212 as_fn_arith $ac_count + 1 && ac_count=$as_val
6213 if test $ac_count -gt ${ac_path_SED_max-0}; then
6214 # Best one so far, save it but keep looking for a better one
6215 ac_cv_path_SED="$ac_path_SED"
6216 ac_path_SED_max=$ac_count
6218 # 10*(2^10) chars as input seems more than enough
6219 test $ac_count -gt 10 && break
6221 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6224 $ac_path_SED_found && break 3
6229 if test -z "$ac_cv_path_SED"; then
6230 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6238 $as_echo "$ac_cv_path_SED" >&6; }
6239 SED="$ac_cv_path_SED"
6243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
6244 $as_echo_n "checking whether NLS is requested... " >&6; }
6245 # Check whether --enable-nls was given.
6246 if test "${enable_nls+set}" = set; then :
6247 enableval=$enable_nls; USE_NLS=$enableval
6252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
6253 $as_echo "$USE_NLS" >&6; }
6258 GETTEXT_MACRO_VERSION=0.18
6263 # Prepare PATH_SEPARATOR.
6264 # The user is always right.
6265 if test "${PATH_SEPARATOR+set}" != set; then
6266 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
6267 # contains only /bin. Note that ksh looks also at the FPATH variable,
6268 # so we have to set that as well for the test.
6270 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6271 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6272 || PATH_SEPARATOR=';'
6276 # Find out how to test for executable files. Don't use a zero-byte file,
6277 # as systems may use methods other than mode bits to determine executability.
6278 cat >conf$$.file <<_ASEOF
6282 chmod +x conf$$.file
6283 if test -x conf$$.file >/dev/null 2>&1; then
6284 ac_executable_p="test -x"
6286 ac_executable_p="test -f"
6290 # Extract the first word of "msgfmt", so it can be a program name with args.
6291 set dummy msgfmt; ac_word=$2
6292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6293 $as_echo_n "checking for $ac_word... " >&6; }
6294 if ${ac_cv_path_MSGFMT+:} false; then :
6295 $as_echo_n "(cached) " >&6
6299 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
6302 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6303 for ac_dir in $PATH; do
6305 test -z "$ac_dir" && ac_dir=.
6306 for ac_exec_ext in '' $ac_executable_extensions; do
6307 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6308 echo "$as_me: trying $ac_dir/$ac_word..." >&5
6309 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
6310 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6311 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
6318 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
6322 MSGFMT="$ac_cv_path_MSGFMT"
6323 if test "$MSGFMT" != ":"; then
6324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
6325 $as_echo "$MSGFMT" >&6; }
6327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6328 $as_echo "no" >&6; }
6331 # Extract the first word of "gmsgfmt", so it can be a program name with args.
6332 set dummy gmsgfmt; ac_word=$2
6333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6334 $as_echo_n "checking for $ac_word... " >&6; }
6335 if ${ac_cv_path_GMSGFMT+:} false; then :
6336 $as_echo_n "(cached) " >&6
6340 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
6343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6347 test -z "$as_dir" && as_dir=.
6348 for ac_exec_ext in '' $ac_executable_extensions; do
6349 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6350 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
6351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6358 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
6362 GMSGFMT=$ac_cv_path_GMSGFMT
6363 if test -n "$GMSGFMT"; then
6364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
6365 $as_echo "$GMSGFMT" >&6; }
6367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6368 $as_echo "no" >&6; }
6373 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6374 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
6375 *) MSGFMT_015=$MSGFMT ;;
6378 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6379 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
6380 *) GMSGFMT_015=$GMSGFMT ;;
6385 # Prepare PATH_SEPARATOR.
6386 # The user is always right.
6387 if test "${PATH_SEPARATOR+set}" != set; then
6388 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
6389 # contains only /bin. Note that ksh looks also at the FPATH variable,
6390 # so we have to set that as well for the test.
6392 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6393 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6394 || PATH_SEPARATOR=';'
6398 # Find out how to test for executable files. Don't use a zero-byte file,
6399 # as systems may use methods other than mode bits to determine executability.
6400 cat >conf$$.file <<_ASEOF
6404 chmod +x conf$$.file
6405 if test -x conf$$.file >/dev/null 2>&1; then
6406 ac_executable_p="test -x"
6408 ac_executable_p="test -f"
6412 # Extract the first word of "xgettext", so it can be a program name with args.
6413 set dummy xgettext; ac_word=$2
6414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6415 $as_echo_n "checking for $ac_word... " >&6; }
6416 if ${ac_cv_path_XGETTEXT+:} false; then :
6417 $as_echo_n "(cached) " >&6
6421 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
6424 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6425 for ac_dir in $PATH; do
6427 test -z "$ac_dir" && ac_dir=.
6428 for ac_exec_ext in '' $ac_executable_extensions; do
6429 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6430 echo "$as_me: trying $ac_dir/$ac_word..." >&5
6431 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
6432 (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
6433 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
6440 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
6444 XGETTEXT="$ac_cv_path_XGETTEXT"
6445 if test "$XGETTEXT" != ":"; then
6446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
6447 $as_echo "$XGETTEXT" >&6; }
6449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6450 $as_echo "no" >&6; }
6455 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6456 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
6457 *) XGETTEXT_015=$XGETTEXT ;;
6462 # Prepare PATH_SEPARATOR.
6463 # The user is always right.
6464 if test "${PATH_SEPARATOR+set}" != set; then
6465 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
6466 # contains only /bin. Note that ksh looks also at the FPATH variable,
6467 # so we have to set that as well for the test.
6469 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6470 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6471 || PATH_SEPARATOR=';'
6475 # Find out how to test for executable files. Don't use a zero-byte file,
6476 # as systems may use methods other than mode bits to determine executability.
6477 cat >conf$$.file <<_ASEOF
6481 chmod +x conf$$.file
6482 if test -x conf$$.file >/dev/null 2>&1; then
6483 ac_executable_p="test -x"
6485 ac_executable_p="test -f"
6489 # Extract the first word of "msgmerge", so it can be a program name with args.
6490 set dummy msgmerge; ac_word=$2
6491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6492 $as_echo_n "checking for $ac_word... " >&6; }
6493 if ${ac_cv_path_MSGMERGE+:} false; then :
6494 $as_echo_n "(cached) " >&6
6498 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
6501 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6502 for ac_dir in $PATH; do
6504 test -z "$ac_dir" && ac_dir=.
6505 for ac_exec_ext in '' $ac_executable_extensions; do
6506 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6507 echo "$as_me: trying $ac_dir/$ac_word..." >&5
6508 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
6509 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
6516 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
6520 MSGMERGE="$ac_cv_path_MSGMERGE"
6521 if test "$MSGMERGE" != ":"; then
6522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
6523 $as_echo "$MSGMERGE" >&6; }
6525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6526 $as_echo "no" >&6; }
6530 test -n "$localedir" || localedir='${datadir}/locale'
6533 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
6536 ac_config_commands="$ac_config_commands po-directories"
6540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2 or newer" >&5
6541 $as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; }
6542 if ${ac_cv_gnu_library_2+:} false; then :
6543 $as_echo_n "(cached) " >&6
6545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6546 /* end confdefs.h. */
6548 #include <features.h>
6549 #ifdef __GNU_LIBRARY__
6550 #if (__GLIBC__ >= 2) && !defined __UCLIBC__
6556 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6557 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
6558 ac_cv_gnu_library_2=yes
6560 ac_cv_gnu_library_2=no
6567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2" >&5
6568 $as_echo "$ac_cv_gnu_library_2" >&6; }
6570 GLIBC2="$ac_cv_gnu_library_2"
6573 if test -n "$ac_tool_prefix"; then
6574 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6575 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6577 $as_echo_n "checking for $ac_word... " >&6; }
6578 if ${ac_cv_prog_RANLIB+:} false; then :
6579 $as_echo_n "(cached) " >&6
6581 if test -n "$RANLIB"; then
6582 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6588 test -z "$as_dir" && as_dir=.
6589 for ac_exec_ext in '' $ac_executable_extensions; do
6590 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6591 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6592 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6601 RANLIB=$ac_cv_prog_RANLIB
6602 if test -n "$RANLIB"; then
6603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6604 $as_echo "$RANLIB" >&6; }
6606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6607 $as_echo "no" >&6; }
6612 if test -z "$ac_cv_prog_RANLIB"; then
6613 ac_ct_RANLIB=$RANLIB
6614 # Extract the first word of "ranlib", so it can be a program name with args.
6615 set dummy ranlib; ac_word=$2
6616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6617 $as_echo_n "checking for $ac_word... " >&6; }
6618 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6619 $as_echo_n "(cached) " >&6
6621 if test -n "$ac_ct_RANLIB"; then
6622 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6628 test -z "$as_dir" && as_dir=.
6629 for ac_exec_ext in '' $ac_executable_extensions; do
6630 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6631 ac_cv_prog_ac_ct_RANLIB="ranlib"
6632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6641 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6642 if test -n "$ac_ct_RANLIB"; then
6643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6644 $as_echo "$ac_ct_RANLIB" >&6; }
6646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6647 $as_echo "no" >&6; }
6650 if test "x$ac_ct_RANLIB" = x; then
6653 case $cross_compiling:$ac_tool_warned in
6655 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6656 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6657 ac_tool_warned=yes ;;
6659 RANLIB=$ac_ct_RANLIB
6662 RANLIB="$ac_cv_prog_RANLIB"
6669 if test -n "$GCC"; then
6670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the -Werror option is usable" >&5
6671 $as_echo_n "checking whether the -Werror option is usable... " >&6; }
6672 if ${gl_cv_cc_vis_werror+:} false; then :
6673 $as_echo_n "(cached) " >&6
6676 gl_save_CFLAGS="$CFLAGS"
6677 CFLAGS="$CFLAGS -Werror"
6678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6679 /* end confdefs.h. */
6689 if ac_fn_c_try_compile "$LINENO"; then :
6690 gl_cv_cc_vis_werror=yes
6692 gl_cv_cc_vis_werror=no
6694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6695 CFLAGS="$gl_save_CFLAGS"
6698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_vis_werror" >&5
6699 $as_echo "$gl_cv_cc_vis_werror" >&6; }
6700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5
6701 $as_echo_n "checking for simple visibility declarations... " >&6; }
6702 if ${gl_cv_cc_visibility+:} false; then :
6703 $as_echo_n "(cached) " >&6
6706 gl_save_CFLAGS="$CFLAGS"
6707 CFLAGS="$CFLAGS -fvisibility=hidden"
6708 if test $gl_cv_cc_vis_werror = yes; then
6709 CFLAGS="$CFLAGS -Werror"
6711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6712 /* end confdefs.h. */
6713 extern __attribute__((__visibility__("hidden"))) int hiddenvar;
6714 extern __attribute__((__visibility__("default"))) int exportedvar;
6715 extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
6716 extern __attribute__((__visibility__("default"))) int exportedfunc (void);
6717 void dummyfunc (void) {}
6727 if ac_fn_c_try_compile "$LINENO"; then :
6728 gl_cv_cc_visibility=yes
6730 gl_cv_cc_visibility=no
6732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6733 CFLAGS="$gl_save_CFLAGS"
6736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5
6737 $as_echo "$gl_cv_cc_visibility" >&6; }
6738 if test $gl_cv_cc_visibility = yes; then
6739 CFLAG_VISIBILITY="-fvisibility=hidden"
6746 cat >>confdefs.h <<_ACEOF
6747 #define HAVE_VISIBILITY $HAVE_VISIBILITY
6751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
6752 $as_echo_n "checking for inline... " >&6; }
6753 if ${ac_cv_c_inline+:} false; then :
6754 $as_echo_n "(cached) " >&6
6757 for ac_kw in inline __inline__ __inline; do
6758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6759 /* end confdefs.h. */
6762 static $ac_kw foo_t static_foo () {return 0; }
6763 $ac_kw foo_t foo () {return 0; }
6767 if ac_fn_c_try_compile "$LINENO"; then :
6768 ac_cv_c_inline=$ac_kw
6770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6771 test "$ac_cv_c_inline" != no && break
6775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
6776 $as_echo "$ac_cv_c_inline" >&6; }
6778 case $ac_cv_c_inline in
6781 case $ac_cv_c_inline in
6783 *) ac_val=$ac_cv_c_inline;;
6785 cat >>confdefs.h <<_ACEOF
6787 #define inline $ac_val
6793 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6794 if test "x$ac_cv_type_size_t" = xyes; then :
6798 cat >>confdefs.h <<_ACEOF
6799 #define size_t unsigned int
6805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
6806 $as_echo_n "checking for stdint.h... " >&6; }
6807 if ${gl_cv_header_stdint_h+:} false; then :
6808 $as_echo_n "(cached) " >&6
6810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6811 /* end confdefs.h. */
6812 #include <sys/types.h>
6817 uintmax_t i = (uintmax_t) -1; return !i;
6822 if ac_fn_c_try_compile "$LINENO"; then :
6823 gl_cv_header_stdint_h=yes
6825 gl_cv_header_stdint_h=no
6827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
6830 $as_echo "$gl_cv_header_stdint_h" >&6; }
6831 if test $gl_cv_header_stdint_h = yes; then
6833 cat >>confdefs.h <<_ACEOF
6834 #define HAVE_STDINT_H_WITH_UINTMAX 1
6839 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6840 # for constant arguments. Useless!
6841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
6842 $as_echo_n "checking for working alloca.h... " >&6; }
6843 if ${ac_cv_working_alloca_h+:} false; then :
6844 $as_echo_n "(cached) " >&6
6846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6847 /* end confdefs.h. */
6852 char *p = (char *) alloca (2 * sizeof (int));
6858 if ac_fn_c_try_link "$LINENO"; then :
6859 ac_cv_working_alloca_h=yes
6861 ac_cv_working_alloca_h=no
6863 rm -f core conftest.err conftest.$ac_objext \
6864 conftest$ac_exeext conftest.$ac_ext
6866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
6867 $as_echo "$ac_cv_working_alloca_h" >&6; }
6868 if test $ac_cv_working_alloca_h = yes; then
6870 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
6874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
6875 $as_echo_n "checking for alloca... " >&6; }
6876 if ${ac_cv_func_alloca_works+:} false; then :
6877 $as_echo_n "(cached) " >&6
6879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6880 /* end confdefs.h. */
6882 # define alloca __builtin_alloca
6885 # include <malloc.h>
6886 # define alloca _alloca
6888 # ifdef HAVE_ALLOCA_H
6889 # include <alloca.h>
6894 # ifndef alloca /* predefined by HP cc +Olibcalls */
6895 void *alloca (size_t);
6905 char *p = (char *) alloca (1);
6911 if ac_fn_c_try_link "$LINENO"; then :
6912 ac_cv_func_alloca_works=yes
6914 ac_cv_func_alloca_works=no
6916 rm -f core conftest.err conftest.$ac_objext \
6917 conftest$ac_exeext conftest.$ac_ext
6919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
6920 $as_echo "$ac_cv_func_alloca_works" >&6; }
6922 if test $ac_cv_func_alloca_works = yes; then
6924 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
6927 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6928 # that cause trouble. Some versions do not even contain alloca or
6929 # contain a buggy version. If you still want to use their alloca,
6930 # use ar to extract alloca.o from them instead of compiling alloca.c.
6932 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
6934 $as_echo "#define C_ALLOCA 1" >>confdefs.h
6937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
6938 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
6939 if ${ac_cv_os_cray+:} false; then :
6940 $as_echo_n "(cached) " >&6
6942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6943 /* end confdefs.h. */
6944 #if defined CRAY && ! defined CRAY2
6951 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6952 $EGREP "webecray" >/dev/null 2>&1; then :
6960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
6961 $as_echo "$ac_cv_os_cray" >&6; }
6962 if test $ac_cv_os_cray = yes; then
6963 for ac_func in _getb67 GETB67 getb67; do
6964 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6965 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6966 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6968 cat >>confdefs.h <<_ACEOF
6969 #define CRAY_STACKSEG_END $ac_func
6978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
6979 $as_echo_n "checking stack direction for C alloca... " >&6; }
6980 if ${ac_cv_c_stack_direction+:} false; then :
6981 $as_echo_n "(cached) " >&6
6983 if test "$cross_compiling" = yes; then :
6984 ac_cv_c_stack_direction=0
6986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6987 /* end confdefs.h. */
6988 $ac_includes_default
6990 find_stack_direction (int *addr, int depth)
6995 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
6996 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
7001 main (int argc, char **argv)
7003 return find_stack_direction (0, argc + !argv + 20) < 0;
7006 if ac_fn_c_try_run "$LINENO"; then :
7007 ac_cv_c_stack_direction=1
7009 ac_cv_c_stack_direction=-1
7011 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7012 conftest.$ac_objext conftest.beam conftest.$ac_ext
7016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
7017 $as_echo "$ac_cv_c_stack_direction" >&6; }
7018 cat >>confdefs.h <<_ACEOF
7019 #define STACK_DIRECTION $ac_cv_c_stack_direction
7028 for ac_header in $ac_header_list
7030 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7031 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7033 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7034 cat >>confdefs.h <<_ACEOF
7035 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7049 for ac_func in getpagesize
7051 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
7052 if test "x$ac_cv_func_getpagesize" = xyes; then :
7053 cat >>confdefs.h <<_ACEOF
7054 #define HAVE_GETPAGESIZE 1
7060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
7061 $as_echo_n "checking for working mmap... " >&6; }
7062 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
7063 $as_echo_n "(cached) " >&6
7065 if test "$cross_compiling" = yes; then :
7066 ac_cv_func_mmap_fixed_mapped=no
7068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7069 /* end confdefs.h. */
7070 $ac_includes_default
7071 /* malloc might have been renamed as rpl_malloc. */
7074 /* Thanks to Mike Haertel and Jim Avera for this test.
7075 Here is a matrix of mmap possibilities:
7076 mmap private not fixed
7077 mmap private fixed at somewhere currently unmapped
7078 mmap private fixed at somewhere already mapped
7079 mmap shared not fixed
7080 mmap shared fixed at somewhere currently unmapped
7081 mmap shared fixed at somewhere already mapped
7082 For private mappings, we should verify that changes cannot be read()
7083 back from the file, nor mmap's back from the file at a different
7084 address. (There have been systems where private was not correctly
7085 implemented like the infamous i386 svr4.0, and systems where the
7086 VM page cache was not coherent with the file system buffer cache
7087 like early versions of FreeBSD and possibly contemporary NetBSD.)
7088 For shared mappings, we should conversely verify that changes get
7089 propagated back to all the places they're supposed to be.
7091 Grep wants private fixed already mapped.
7092 The main things grep needs to know about mmap are:
7093 * does it exist and is it safe to write into the mmap'd area
7094 * how to use it (BSD variants) */
7097 #include <sys/mman.h>
7099 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7103 /* This mess was copied from the GNU getpagesize.h. */
7104 #ifndef HAVE_GETPAGESIZE
7105 # ifdef _SC_PAGESIZE
7106 # define getpagesize() sysconf(_SC_PAGESIZE)
7107 # else /* no _SC_PAGESIZE */
7108 # ifdef HAVE_SYS_PARAM_H
7109 # include <sys/param.h>
7110 # ifdef EXEC_PAGESIZE
7111 # define getpagesize() EXEC_PAGESIZE
7112 # else /* no EXEC_PAGESIZE */
7114 # define getpagesize() NBPG * CLSIZE
7117 # endif /* no CLSIZE */
7118 # else /* no NBPG */
7120 # define getpagesize() NBPC
7121 # else /* no NBPC */
7123 # define getpagesize() PAGESIZE
7124 # endif /* PAGESIZE */
7125 # endif /* no NBPC */
7126 # endif /* no NBPG */
7127 # endif /* no EXEC_PAGESIZE */
7128 # else /* no HAVE_SYS_PARAM_H */
7129 # define getpagesize() 8192 /* punt totally */
7130 # endif /* no HAVE_SYS_PARAM_H */
7131 # endif /* no _SC_PAGESIZE */
7133 #endif /* no HAVE_GETPAGESIZE */
7138 char *data, *data2, *data3;
7143 pagesize = getpagesize ();
7145 /* First, make a file with some known garbage in it. */
7146 data = (char *) malloc (pagesize);
7149 for (i = 0; i < pagesize; ++i)
7150 *(data + i) = rand ();
7152 fd = creat ("conftest.mmap", 0600);
7155 if (write (fd, data, pagesize) != pagesize)
7159 /* Next, check that the tail of a page is zero-filled. File must have
7160 non-zero length, otherwise we risk SIGBUS for entire page. */
7161 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7165 if (write (fd2, cdata2, 1) != 1)
7167 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7168 if (data2 == MAP_FAILED)
7170 for (i = 0; i < pagesize; ++i)
7174 if (munmap (data2, pagesize))
7177 /* Next, try to mmap the file at a fixed address which already has
7178 something else allocated at it. If we can, also make sure that
7179 we see the same garbage. */
7180 fd = open ("conftest.mmap", O_RDWR);
7183 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7184 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7186 for (i = 0; i < pagesize; ++i)
7187 if (*(data + i) != *(data2 + i))
7190 /* Finally, make sure that changes to the mapped area do not
7191 percolate back to the file as seen by read(). (This is a bug on
7192 some variants of i386 svr4.0.) */
7193 for (i = 0; i < pagesize; ++i)
7194 *(data2 + i) = *(data2 + i) + 1;
7195 data3 = (char *) malloc (pagesize);
7198 if (read (fd, data3, pagesize) != pagesize)
7200 for (i = 0; i < pagesize; ++i)
7201 if (*(data + i) != *(data3 + i))
7207 if ac_fn_c_try_run "$LINENO"; then :
7208 ac_cv_func_mmap_fixed_mapped=yes
7210 ac_cv_func_mmap_fixed_mapped=no
7212 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7213 conftest.$ac_objext conftest.beam conftest.$ac_ext
7217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
7218 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
7219 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7221 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
7224 rm -f conftest.mmap conftest.txt
7228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
7229 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
7230 if ${gt_cv_int_divbyzero_sigfpe+:} false; then :
7231 $as_echo_n "(cached) " >&6
7234 gt_cv_int_divbyzero_sigfpe=
7236 macos* | darwin[6-9]* | darwin[1-9][0-9]*)
7237 # On Mac OS X 10.2 or newer, just assume the same as when cross-
7238 # compiling. If we were to perform the real test, 1 Crash Report
7239 # dialog window would pop up.
7241 i[34567]86 | x86_64)
7242 gt_cv_int_divbyzero_sigfpe="guessing yes" ;;
7246 if test -z "$gt_cv_int_divbyzero_sigfpe"; then
7247 if test "$cross_compiling" = yes; then :
7249 # Guess based on the CPU.
7251 alpha* | i[34567]86 | x86_64 | m68k | s390*)
7252 gt_cv_int_divbyzero_sigfpe="guessing yes";;
7254 gt_cv_int_divbyzero_sigfpe="guessing no";;
7258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7259 /* end confdefs.h. */
7265 sigfpe_handler (int sig)
7267 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
7268 exit (sig != SIGFPE);
7278 signal (SIGFPE, sigfpe_handler);
7279 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
7280 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
7281 signal (SIGTRAP, sigfpe_handler);
7283 /* Linux/SPARC yields signal SIGILL. */
7284 #if defined (__sparc__) && defined (__linux__)
7285 signal (SIGILL, sigfpe_handler);
7294 if ac_fn_c_try_run "$LINENO"; then :
7295 gt_cv_int_divbyzero_sigfpe=yes
7297 gt_cv_int_divbyzero_sigfpe=no
7299 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7300 conftest.$ac_objext conftest.beam conftest.$ac_ext
7306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
7307 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
7308 case "$gt_cv_int_divbyzero_sigfpe" in
7313 cat >>confdefs.h <<_ACEOF
7314 #define INTDIV0_RAISES_SIGFPE $value
7319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
7320 $as_echo_n "checking for inttypes.h... " >&6; }
7321 if ${gl_cv_header_inttypes_h+:} false; then :
7322 $as_echo_n "(cached) " >&6
7324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7325 /* end confdefs.h. */
7327 #include <sys/types.h>
7328 #include <inttypes.h>
7333 uintmax_t i = (uintmax_t) -1; return !i;
7338 if ac_fn_c_try_compile "$LINENO"; then :
7339 gl_cv_header_inttypes_h=yes
7341 gl_cv_header_inttypes_h=no
7343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
7346 $as_echo "$gl_cv_header_inttypes_h" >&6; }
7347 if test $gl_cv_header_inttypes_h = yes; then
7349 cat >>confdefs.h <<_ACEOF
7350 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
7356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
7357 $as_echo_n "checking for unsigned long long int... " >&6; }
7358 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
7359 $as_echo_n "(cached) " >&6
7361 ac_cv_type_unsigned_long_long_int=yes
7362 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
7363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7364 /* end confdefs.h. */
7366 /* For now, do not test the preprocessor; as of 2007 there are too many
7367 implementations with broken preprocessors. Perhaps this can
7368 be revisited in 2012. In the meantime, code should not expect
7369 #if to work with literals wider than 32 bits. */
7370 /* Test literals. */
7371 long long int ll = 9223372036854775807ll;
7372 long long int nll = -9223372036854775807LL;
7373 unsigned long long int ull = 18446744073709551615ULL;
7374 /* Test constant expressions. */
7375 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
7377 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
7383 /* Test availability of runtime routines for shift and division. */
7384 long long int llmax = 9223372036854775807ll;
7385 unsigned long long int ullmax = 18446744073709551615ull;
7386 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
7387 | (llmax / ll) | (llmax % ll)
7388 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
7389 | (ullmax / ull) | (ullmax % ull));
7395 if ac_fn_c_try_link "$LINENO"; then :
7398 ac_cv_type_unsigned_long_long_int=no
7400 rm -f core conftest.err conftest.$ac_objext \
7401 conftest$ac_exeext conftest.$ac_ext
7404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
7405 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
7406 if test $ac_cv_type_unsigned_long_long_int = yes; then
7408 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
7415 if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
7417 test $ac_cv_type_unsigned_long_long_int = yes \
7418 && ac_type='unsigned long long' \
7419 || ac_type='unsigned long'
7421 cat >>confdefs.h <<_ACEOF
7422 #define uintmax_t $ac_type
7427 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
7432 for ac_header in inttypes.h
7434 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
7435 if test "x$ac_cv_header_inttypes_h" = xyes; then :
7436 cat >>confdefs.h <<_ACEOF
7437 #define HAVE_INTTYPES_H 1
7444 if test $ac_cv_header_inttypes_h = yes; then
7445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
7446 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
7447 if ${gt_cv_inttypes_pri_broken+:} false; then :
7448 $as_echo_n "(cached) " >&6
7451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7452 /* end confdefs.h. */
7454 #include <inttypes.h>
7467 if ac_fn_c_try_compile "$LINENO"; then :
7468 gt_cv_inttypes_pri_broken=no
7470 gt_cv_inttypes_pri_broken=yes
7472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
7476 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
7478 if test "$gt_cv_inttypes_pri_broken" = yes; then
7480 cat >>confdefs.h <<_ACEOF
7481 #define PRI_MACROS_BROKEN 1
7495 # Check whether --enable-threads was given.
7496 if test "${enable_threads+set}" = set; then :
7497 enableval=$enable_threads; gl_use_threads=$enableval
7499 if test -n "$gl_use_threads_default"; then
7500 gl_use_threads="$gl_use_threads_default"
7503 osf*) gl_use_threads=no ;;
7506 1.[0-5].*) gl_use_threads=no ;;
7507 *) gl_use_threads=yes ;;
7510 *) gl_use_threads=yes ;;
7516 if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
7517 # For using <pthread.h>:
7520 # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
7521 # groks <pthread.h>. cc also understands the flag -pthread, but
7522 # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
7523 # 2. putting a flag into CPPFLAGS that has an effect on the linker
7524 # causes the AC_LINK_IFELSE test below to succeed unexpectedly,
7525 # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
7526 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
7529 # Some systems optimize for single-threaded programs by default, and
7530 # need special flags to disable these optimizations. For example, the
7531 # definition of 'errno' in <errno.h>.
7533 aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;;
7534 solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;;
7542 if test "X$prefix" = "XNONE"; then
7543 acl_final_prefix="$ac_default_prefix"
7545 acl_final_prefix="$prefix"
7547 if test "X$exec_prefix" = "XNONE"; then
7548 acl_final_exec_prefix='${prefix}'
7550 acl_final_exec_prefix="$exec_prefix"
7552 acl_save_prefix="$prefix"
7553 prefix="$acl_final_prefix"
7554 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7555 prefix="$acl_save_prefix"
7559 # Check whether --with-gnu-ld was given.
7560 if test "${with_gnu_ld+set}" = set; then :
7561 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7566 # Prepare PATH_SEPARATOR.
7567 # The user is always right.
7568 if test "${PATH_SEPARATOR+set}" != set; then
7569 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
7570 # contains only /bin. Note that ksh looks also at the FPATH variable,
7571 # so we have to set that as well for the test.
7573 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7574 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7575 || PATH_SEPARATOR=';'
7580 if test "$GCC" = yes; then
7581 # Check if gcc -print-prog-name=ld gives a path.
7582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7583 $as_echo_n "checking for ld used by $CC... " >&6; }
7586 # gcc leaves a trailing carriage return which upsets mingw
7587 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7589 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7592 # Accept absolute paths.
7594 re_direlt='/[^/][^/]*/\.\./'
7595 # Canonicalize the pathname of ld
7596 ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'`
7597 while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do
7598 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
7600 test -z "$LD" && LD="$ac_prog"
7603 # If it fails, then pretend we aren't using GCC.
7607 # If it is relative, then search for the first ld in PATH.
7611 elif test "$with_gnu_ld" = yes; then
7612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7613 $as_echo_n "checking for GNU ld... " >&6; }
7615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7616 $as_echo_n "checking for non-GNU ld... " >&6; }
7618 if ${acl_cv_path_LD+:} false; then :
7619 $as_echo_n "(cached) " >&6
7621 if test -z "$LD"; then
7622 acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7623 for ac_dir in $PATH; do
7625 test -z "$ac_dir" && ac_dir=.
7626 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7627 acl_cv_path_LD="$ac_dir/$ac_prog"
7628 # Check to see if the program is GNU ld. I'd rather use --version,
7629 # but apparently some variants of GNU ld only accept -v.
7630 # Break only if it was the GNU/non-GNU ld that we prefer.
7631 case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
7632 *GNU* | *'with BFD'*)
7633 test "$with_gnu_ld" != no && break
7636 test "$with_gnu_ld" != yes && break
7643 acl_cv_path_LD="$LD" # Let the user override the test with a path.
7647 LD="$acl_cv_path_LD"
7648 if test -n "$LD"; then
7649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7650 $as_echo "$LD" >&6; }
7652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7653 $as_echo "no" >&6; }
7655 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7657 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7658 if ${acl_cv_prog_gnu_ld+:} false; then :
7659 $as_echo_n "(cached) " >&6
7661 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7662 case `$LD -v 2>&1 </dev/null` in
7663 *GNU* | *'with BFD'*)
7664 acl_cv_prog_gnu_ld=yes
7667 acl_cv_prog_gnu_ld=no
7671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
7672 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
7673 with_gnu_ld=$acl_cv_prog_gnu_ld
7678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
7679 $as_echo_n "checking for shared library run path origin... " >&6; }
7680 if ${acl_cv_rpath+:} false; then :
7681 $as_echo_n "(cached) " >&6
7684 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
7685 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
7692 $as_echo "$acl_cv_rpath" >&6; }
7694 acl_libext="$acl_cv_libext"
7695 acl_shlibext="$acl_cv_shlibext"
7696 acl_libname_spec="$acl_cv_libname_spec"
7697 acl_library_names_spec="$acl_cv_library_names_spec"
7698 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
7699 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
7700 acl_hardcode_direct="$acl_cv_hardcode_direct"
7701 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
7702 # Check whether --enable-rpath was given.
7703 if test "${enable_rpath+set}" = set; then :
7704 enableval=$enable_rpath; :
7716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
7717 $as_echo_n "checking for 64-bit host... " >&6; }
7718 if ${gl_cv_solaris_64bit+:} false; then :
7719 $as_echo_n "(cached) " >&6
7721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7722 /* end confdefs.h. */
7729 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7730 $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
7731 gl_cv_solaris_64bit=yes
7733 gl_cv_solaris_64bit=no
7739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
7740 $as_echo "$gl_cv_solaris_64bit" >&6; }
7741 if test $gl_cv_solaris_64bit = yes; then
7742 acl_libdirstem=lib/64
7744 sparc*) acl_libdirstem2=lib/sparcv9 ;;
7745 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
7750 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
7751 if test -n "$searchpath"; then
7752 acl_save_IFS="${IFS= }"; IFS=":"
7753 for searchdir in $searchpath; do
7754 if test -d "$searchdir"; then
7755 case "$searchdir" in
7756 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
7758 # Better ignore directories of this form. They are misleading.
7760 *) searchdir=`cd "$searchdir" && pwd`
7761 case "$searchdir" in
7762 */lib64 ) acl_libdirstem=lib64 ;;
7771 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
7780 if test "$gl_use_threads" != no; then
7781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5
7782 $as_echo_n "checking whether imported symbols can be declared weak... " >&6; }
7783 if ${gl_cv_have_weak+:} false; then :
7784 $as_echo_n "(cached) " >&6
7787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7788 /* end confdefs.h. */
7789 extern void xyzzy ();
7799 if ac_fn_c_try_link "$LINENO"; then :
7800 gl_cv_have_weak=maybe
7802 rm -f core conftest.err conftest.$ac_objext \
7803 conftest$ac_exeext conftest.$ac_ext
7804 if test $gl_cv_have_weak = maybe; then
7805 if test "$cross_compiling" = yes; then :
7806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7807 /* end confdefs.h. */
7809 Extensible Linking Format
7813 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7814 $EGREP "Extensible Linking Format" >/dev/null 2>&1; then :
7815 gl_cv_have_weak="guessing yes"
7817 gl_cv_have_weak="guessing no"
7823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7824 /* end confdefs.h. */
7830 return (fputs == NULL);
7833 if ac_fn_c_try_run "$LINENO"; then :
7838 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7839 conftest.$ac_objext conftest.beam conftest.$ac_ext
7845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5
7846 $as_echo "$gl_cv_have_weak" >&6; }
7847 if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
7848 # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
7849 # it groks <pthread.h>. It's added above, in gl_THREADLIB_EARLY_BODY.
7850 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
7851 if test "x$ac_cv_header_pthread_h" = xyes; then :
7852 gl_have_pthread_h=yes
7854 gl_have_pthread_h=no
7858 if test "$gl_have_pthread_h" = yes; then
7859 # Other possible tests:
7860 # -lpthreads (FSU threads, PCthreads)
7863 # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
7864 # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
7865 # the second one only in libpthread, and lock.c needs it.
7866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7867 /* end confdefs.h. */
7868 #include <pthread.h>
7872 pthread_mutex_lock((pthread_mutex_t*)0);
7873 pthread_mutexattr_init((pthread_mutexattr_t*)0);
7878 if ac_fn_c_try_link "$LINENO"; then :
7881 rm -f core conftest.err conftest.$ac_objext \
7882 conftest$ac_exeext conftest.$ac_ext
7883 # Test for libpthread by looking for pthread_kill. (Not pthread_self,
7884 # since it is defined as a macro on OSF/1.)
7885 if test -n "$gl_have_pthread"; then
7886 # The program links fine without libpthread. But it may actually
7887 # need to link with libpthread in order to create multiple threads.
7888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
7889 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
7890 if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
7891 $as_echo_n "(cached) " >&6
7893 ac_check_lib_save_LIBS=$LIBS
7894 LIBS="-lpthread $LIBS"
7895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7896 /* end confdefs.h. */
7898 /* Override any GCC internal prototype to avoid an error.
7899 Use char because int might match the return type of a GCC
7900 builtin and then its argument prototype would still apply. */
7904 char pthread_kill ();
7908 return pthread_kill ();
7913 if ac_fn_c_try_link "$LINENO"; then :
7914 ac_cv_lib_pthread_pthread_kill=yes
7916 ac_cv_lib_pthread_pthread_kill=no
7918 rm -f core conftest.err conftest.$ac_objext \
7919 conftest$ac_exeext conftest.$ac_ext
7920 LIBS=$ac_check_lib_save_LIBS
7922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
7923 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
7924 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
7925 LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
7926 # On Solaris and HP-UX, most pthread functions exist also in libc.
7927 # Therefore pthread_in_use() needs to actually try to create a
7928 # thread: pthread_create from libc will fail, whereas
7929 # pthread_create will actually create a thread.
7933 $as_echo "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h
7940 # Some library is needed. Try libpthread and libc_r.
7941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
7942 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
7943 if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
7944 $as_echo_n "(cached) " >&6
7946 ac_check_lib_save_LIBS=$LIBS
7947 LIBS="-lpthread $LIBS"
7948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7949 /* end confdefs.h. */
7951 /* Override any GCC internal prototype to avoid an error.
7952 Use char because int might match the return type of a GCC
7953 builtin and then its argument prototype would still apply. */
7957 char pthread_kill ();
7961 return pthread_kill ();
7966 if ac_fn_c_try_link "$LINENO"; then :
7967 ac_cv_lib_pthread_pthread_kill=yes
7969 ac_cv_lib_pthread_pthread_kill=no
7971 rm -f core conftest.err conftest.$ac_objext \
7972 conftest$ac_exeext conftest.$ac_ext
7973 LIBS=$ac_check_lib_save_LIBS
7975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
7976 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
7977 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
7979 LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread
7980 LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
7983 if test -z "$gl_have_pthread"; then
7985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5
7986 $as_echo_n "checking for pthread_kill in -lc_r... " >&6; }
7987 if ${ac_cv_lib_c_r_pthread_kill+:} false; then :
7988 $as_echo_n "(cached) " >&6
7990 ac_check_lib_save_LIBS=$LIBS
7992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7993 /* end confdefs.h. */
7995 /* Override any GCC internal prototype to avoid an error.
7996 Use char because int might match the return type of a GCC
7997 builtin and then its argument prototype would still apply. */
8001 char pthread_kill ();
8005 return pthread_kill ();
8010 if ac_fn_c_try_link "$LINENO"; then :
8011 ac_cv_lib_c_r_pthread_kill=yes
8013 ac_cv_lib_c_r_pthread_kill=no
8015 rm -f core conftest.err conftest.$ac_objext \
8016 conftest$ac_exeext conftest.$ac_ext
8017 LIBS=$ac_check_lib_save_LIBS
8019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5
8020 $as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; }
8021 if test "x$ac_cv_lib_c_r_pthread_kill" = xyes; then :
8023 LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r
8024 LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r
8029 if test -n "$gl_have_pthread"; then
8030 gl_threads_api=posix
8032 $as_echo "#define USE_POSIX_THREADS 1" >>confdefs.h
8034 if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
8035 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
8037 $as_echo "#define USE_POSIX_THREADS_WEAK 1" >>confdefs.h
8046 if test -z "$gl_have_pthread"; then
8047 if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then
8048 gl_have_solaristhread=
8049 gl_save_LIBS="$LIBS"
8050 LIBS="$LIBS -lthread"
8051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8052 /* end confdefs.h. */
8065 if ac_fn_c_try_link "$LINENO"; then :
8066 gl_have_solaristhread=yes
8068 rm -f core conftest.err conftest.$ac_objext \
8069 conftest$ac_exeext conftest.$ac_ext
8070 LIBS="$gl_save_LIBS"
8071 if test -n "$gl_have_solaristhread"; then
8072 gl_threads_api=solaris
8074 LTLIBTHREAD=-lthread
8075 LIBMULTITHREAD="$LIBTHREAD"
8076 LTLIBMULTITHREAD="$LTLIBTHREAD"
8078 $as_echo "#define USE_SOLARIS_THREADS 1" >>confdefs.h
8080 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
8082 $as_echo "#define USE_SOLARIS_THREADS_WEAK 1" >>confdefs.h
8090 if test "$gl_use_threads" = pth; then
8091 gl_save_CPPFLAGS="$CPPFLAGS"
8097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libpth" >&5
8098 $as_echo_n "checking how to link with libpth... " >&6; }
8099 if ${ac_cv_libpth_libs+:} false; then :
8100 $as_echo_n "(cached) " >&6
8112 acl_save_prefix="$prefix"
8113 prefix="$acl_final_prefix"
8114 acl_save_exec_prefix="$exec_prefix"
8115 exec_prefix="$acl_final_exec_prefix"
8117 eval additional_includedir=\"$includedir\"
8118 eval additional_libdir=\"$libdir\"
8120 exec_prefix="$acl_save_exec_prefix"
8121 prefix="$acl_save_prefix"
8124 # Check whether --with-libpth-prefix was given.
8125 if test "${with_libpth_prefix+set}" = set; then :
8126 withval=$with_libpth_prefix;
8127 if test "X$withval" = "Xno"; then
8130 if test "X$withval" = "X"; then
8132 acl_save_prefix="$prefix"
8133 prefix="$acl_final_prefix"
8134 acl_save_exec_prefix="$exec_prefix"
8135 exec_prefix="$acl_final_exec_prefix"
8137 eval additional_includedir=\"$includedir\"
8138 eval additional_libdir=\"$libdir\"
8140 exec_prefix="$acl_save_exec_prefix"
8141 prefix="$acl_save_prefix"
8144 additional_includedir="$withval/include"
8145 additional_libdir="$withval/$acl_libdirstem"
8146 if test "$acl_libdirstem2" != "$acl_libdirstem" \
8147 && ! test -d "$withval/$acl_libdirstem"; then
8148 additional_libdir="$withval/$acl_libdirstem2"
8162 names_already_handled=
8163 names_next_round='pth '
8164 while test -n "$names_next_round"; do
8165 names_this_round="$names_next_round"
8167 for name in $names_this_round; do
8169 for n in $names_already_handled; do
8170 if test "$n" = "$name"; then
8175 if test -z "$already_handled"; then
8176 names_already_handled="$names_already_handled $name"
8177 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
8178 eval value=\"\$HAVE_LIB$uppername\"
8179 if test -n "$value"; then
8180 if test "$value" = yes; then
8181 eval value=\"\$LIB$uppername\"
8182 test -z "$value" || LIBPTH="${LIBPTH}${LIBPTH:+ }$value"
8183 eval value=\"\$LTLIB$uppername\"
8184 test -z "$value" || LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$value"
8193 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
8194 if test -n "$acl_shlibext"; then
8195 shrext=".$acl_shlibext" # typically: shrext=.so
8199 if test $use_additional = yes; then
8200 dir="$additional_libdir"
8201 if test -n "$acl_shlibext"; then
8202 if test -f "$dir/$libname$shrext"; then
8204 found_so="$dir/$libname$shrext"
8206 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8207 ver=`(cd "$dir" && \
8208 for f in "$libname$shrext".*; do echo "$f"; done \
8209 | sed -e "s,^$libname$shrext\\\\.,," \
8210 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8211 | sed 1q ) 2>/dev/null`
8212 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8214 found_so="$dir/$libname$shrext.$ver"
8217 eval library_names=\"$acl_library_names_spec\"
8218 for f in $library_names; do
8219 if test -f "$dir/$f"; then
8228 if test "X$found_dir" = "X"; then
8229 if test -f "$dir/$libname.$acl_libext"; then
8231 found_a="$dir/$libname.$acl_libext"
8234 if test "X$found_dir" != "X"; then
8235 if test -f "$dir/$libname.la"; then
8236 found_la="$dir/$libname.la"
8240 if test "X$found_dir" = "X"; then
8241 for x in $LDFLAGS $LTLIBPTH; do
8243 acl_save_prefix="$prefix"
8244 prefix="$acl_final_prefix"
8245 acl_save_exec_prefix="$exec_prefix"
8246 exec_prefix="$acl_final_exec_prefix"
8248 exec_prefix="$acl_save_exec_prefix"
8249 prefix="$acl_save_prefix"
8253 dir=`echo "X$x" | sed -e 's/^X-L//'`
8254 if test -n "$acl_shlibext"; then
8255 if test -f "$dir/$libname$shrext"; then
8257 found_so="$dir/$libname$shrext"
8259 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8260 ver=`(cd "$dir" && \
8261 for f in "$libname$shrext".*; do echo "$f"; done \
8262 | sed -e "s,^$libname$shrext\\\\.,," \
8263 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8264 | sed 1q ) 2>/dev/null`
8265 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8267 found_so="$dir/$libname$shrext.$ver"
8270 eval library_names=\"$acl_library_names_spec\"
8271 for f in $library_names; do
8272 if test -f "$dir/$f"; then
8281 if test "X$found_dir" = "X"; then
8282 if test -f "$dir/$libname.$acl_libext"; then
8284 found_a="$dir/$libname.$acl_libext"
8287 if test "X$found_dir" != "X"; then
8288 if test -f "$dir/$libname.la"; then
8289 found_la="$dir/$libname.la"
8294 if test "X$found_dir" != "X"; then
8299 if test "X$found_dir" != "X"; then
8300 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name"
8301 if test "X$found_so" != "X"; then
8302 if test "$enable_rpath" = no \
8303 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
8304 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
8305 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
8308 for x in $ltrpathdirs; do
8309 if test "X$x" = "X$found_dir"; then
8314 if test -z "$haveit"; then
8315 ltrpathdirs="$ltrpathdirs $found_dir"
8317 if test "$acl_hardcode_direct" = yes; then
8318 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
8320 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
8321 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
8323 for x in $rpathdirs; do
8324 if test "X$x" = "X$found_dir"; then
8329 if test -z "$haveit"; then
8330 rpathdirs="$rpathdirs $found_dir"
8334 for x in $LDFLAGS $LIBPTH; do
8336 acl_save_prefix="$prefix"
8337 prefix="$acl_final_prefix"
8338 acl_save_exec_prefix="$exec_prefix"
8339 exec_prefix="$acl_final_exec_prefix"
8341 exec_prefix="$acl_save_exec_prefix"
8342 prefix="$acl_save_prefix"
8344 if test "X$x" = "X-L$found_dir"; then
8349 if test -z "$haveit"; then
8350 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir"
8352 if test "$acl_hardcode_minus_L" != no; then
8353 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
8355 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
8361 if test "X$found_a" != "X"; then
8362 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_a"
8364 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name"
8367 additional_includedir=
8368 case "$found_dir" in
8369 */$acl_libdirstem | */$acl_libdirstem/)
8370 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
8371 if test "$name" = 'pth'; then
8372 LIBPTH_PREFIX="$basedir"
8374 additional_includedir="$basedir/include"
8376 */$acl_libdirstem2 | */$acl_libdirstem2/)
8377 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
8378 if test "$name" = 'pth'; then
8379 LIBPTH_PREFIX="$basedir"
8381 additional_includedir="$basedir/include"
8384 if test "X$additional_includedir" != "X"; then
8385 if test "X$additional_includedir" != "X/usr/include"; then
8387 if test "X$additional_includedir" = "X/usr/local/include"; then
8388 if test -n "$GCC"; then
8390 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
8394 if test -z "$haveit"; then
8395 for x in $CPPFLAGS $INCPTH; do
8397 acl_save_prefix="$prefix"
8398 prefix="$acl_final_prefix"
8399 acl_save_exec_prefix="$exec_prefix"
8400 exec_prefix="$acl_final_exec_prefix"
8402 exec_prefix="$acl_save_exec_prefix"
8403 prefix="$acl_save_prefix"
8405 if test "X$x" = "X-I$additional_includedir"; then
8410 if test -z "$haveit"; then
8411 if test -d "$additional_includedir"; then
8412 INCPTH="${INCPTH}${INCPTH:+ }-I$additional_includedir"
8418 if test -n "$found_la"; then
8419 save_libdir="$libdir"
8421 */* | *\\*) . "$found_la" ;;
8422 *) . "./$found_la" ;;
8424 libdir="$save_libdir"
8425 for dep in $dependency_libs; do
8428 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8429 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
8430 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
8432 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
8433 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
8434 if test -n "$GCC"; then
8436 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
8440 if test -z "$haveit"; then
8442 for x in $LDFLAGS $LIBPTH; do
8444 acl_save_prefix="$prefix"
8445 prefix="$acl_final_prefix"
8446 acl_save_exec_prefix="$exec_prefix"
8447 exec_prefix="$acl_final_exec_prefix"
8449 exec_prefix="$acl_save_exec_prefix"
8450 prefix="$acl_save_prefix"
8452 if test "X$x" = "X-L$additional_libdir"; then
8457 if test -z "$haveit"; then
8458 if test -d "$additional_libdir"; then
8459 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$additional_libdir"
8463 for x in $LDFLAGS $LTLIBPTH; do
8465 acl_save_prefix="$prefix"
8466 prefix="$acl_final_prefix"
8467 acl_save_exec_prefix="$exec_prefix"
8468 exec_prefix="$acl_final_exec_prefix"
8470 exec_prefix="$acl_save_exec_prefix"
8471 prefix="$acl_save_prefix"
8473 if test "X$x" = "X-L$additional_libdir"; then
8478 if test -z "$haveit"; then
8479 if test -d "$additional_libdir"; then
8480 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir"
8487 dir=`echo "X$dep" | sed -e 's/^X-R//'`
8488 if test "$enable_rpath" != no; then
8490 for x in $rpathdirs; do
8491 if test "X$x" = "X$dir"; then
8496 if test -z "$haveit"; then
8497 rpathdirs="$rpathdirs $dir"
8500 for x in $ltrpathdirs; do
8501 if test "X$x" = "X$dir"; then
8506 if test -z "$haveit"; then
8507 ltrpathdirs="$ltrpathdirs $dir"
8512 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8515 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8518 LIBPTH="${LIBPTH}${LIBPTH:+ }$dep"
8519 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$dep"
8525 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
8526 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-l$name"
8532 if test "X$rpathdirs" != "X"; then
8533 if test -n "$acl_hardcode_libdir_separator"; then
8535 for found_dir in $rpathdirs; do
8536 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
8538 acl_save_libdir="$libdir"
8540 eval flag=\"$acl_hardcode_libdir_flag_spec\"
8541 libdir="$acl_save_libdir"
8542 LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
8544 for found_dir in $rpathdirs; do
8545 acl_save_libdir="$libdir"
8547 eval flag=\"$acl_hardcode_libdir_flag_spec\"
8548 libdir="$acl_save_libdir"
8549 LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
8553 if test "X$ltrpathdirs" != "X"; then
8554 for found_dir in $ltrpathdirs; do
8555 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir"
8564 ac_cv_libpth_libs="$LIBPTH"
8565 ac_cv_libpth_ltlibs="$LTLIBPTH"
8566 ac_cv_libpth_cppflags="$INCPTH"
8567 ac_cv_libpth_prefix="$LIBPTH_PREFIX"
8570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libpth_libs" >&5
8571 $as_echo "$ac_cv_libpth_libs" >&6; }
8572 LIBPTH="$ac_cv_libpth_libs"
8573 LTLIBPTH="$ac_cv_libpth_ltlibs"
8574 INCPTH="$ac_cv_libpth_cppflags"
8575 LIBPTH_PREFIX="$ac_cv_libpth_prefix"
8577 for element in $INCPTH; do
8579 for x in $CPPFLAGS; do
8581 acl_save_prefix="$prefix"
8582 prefix="$acl_final_prefix"
8583 acl_save_exec_prefix="$exec_prefix"
8584 exec_prefix="$acl_final_exec_prefix"
8586 exec_prefix="$acl_save_exec_prefix"
8587 prefix="$acl_save_prefix"
8589 if test "X$x" = "X$element"; then
8594 if test -z "$haveit"; then
8595 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8607 gl_save_LIBS="$LIBS"
8608 LIBS="$LIBS $LIBPTH"
8609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8610 /* end confdefs.h. */
8620 if ac_fn_c_try_link "$LINENO"; then :
8623 rm -f core conftest.err conftest.$ac_objext \
8624 conftest$ac_exeext conftest.$ac_ext
8625 LIBS="$gl_save_LIBS"
8626 if test -n "$gl_have_pth"; then
8629 LTLIBTHREAD="$LTLIBPTH"
8630 LIBMULTITHREAD="$LIBTHREAD"
8631 LTLIBMULTITHREAD="$LTLIBTHREAD"
8633 $as_echo "#define USE_PTH_THREADS 1" >>confdefs.h
8635 if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
8636 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
8638 $as_echo "#define USE_PTH_THREADS_WEAK 1" >>confdefs.h
8645 CPPFLAGS="$gl_save_CPPFLAGS"
8648 if test -z "$gl_have_pthread"; then
8649 case "$gl_use_threads" in
8650 yes | windows | win32) # The 'win32' is for backward compatibility.
8651 if { case "$host_os" in
8656 gl_threads_api=windows
8658 $as_echo "#define USE_WINDOWS_THREADS 1" >>confdefs.h
8665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multithread API to use" >&5
8666 $as_echo_n "checking for multithread API to use... " >&6; }
8667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_threads_api" >&5
8668 $as_echo "$gl_threads_api" >&6; }
8680 if test "$gl_threads_api" = posix; then
8681 # OSF/1 4.0 and Mac OS X 10.1 lack the pthread_rwlock_t type and the
8682 # pthread_rwlock_* functions.
8683 ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h>
8685 if test "x$ac_cv_type_pthread_rwlock_t" = xyes; then :
8687 $as_echo "#define HAVE_PTHREAD_RWLOCK 1" >>confdefs.h
8691 # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
8692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8693 /* end confdefs.h. */
8695 #include <pthread.h>
8700 #if __FreeBSD__ == 4
8701 error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
8702 #elif (defined __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ \
8703 && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 1070)
8704 error "No, in Mac OS X < 10.7 recursive mutexes actually don't work."
8706 int x = (int)PTHREAD_MUTEX_RECURSIVE;
8714 if ac_fn_c_try_compile "$LINENO"; then :
8716 $as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h
8719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8736 acl_save_prefix="$prefix"
8737 prefix="$acl_final_prefix"
8738 acl_save_exec_prefix="$exec_prefix"
8739 exec_prefix="$acl_final_exec_prefix"
8741 eval additional_includedir=\"$includedir\"
8742 eval additional_libdir=\"$libdir\"
8744 exec_prefix="$acl_save_exec_prefix"
8745 prefix="$acl_save_prefix"
8748 # Check whether --with-libiconv-prefix was given.
8749 if test "${with_libiconv_prefix+set}" = set; then :
8750 withval=$with_libiconv_prefix;
8751 if test "X$withval" = "Xno"; then
8754 if test "X$withval" = "X"; then
8756 acl_save_prefix="$prefix"
8757 prefix="$acl_final_prefix"
8758 acl_save_exec_prefix="$exec_prefix"
8759 exec_prefix="$acl_final_exec_prefix"
8761 eval additional_includedir=\"$includedir\"
8762 eval additional_libdir=\"$libdir\"
8764 exec_prefix="$acl_save_exec_prefix"
8765 prefix="$acl_save_prefix"
8768 additional_includedir="$withval/include"
8769 additional_libdir="$withval/$acl_libdirstem"
8770 if test "$acl_libdirstem2" != "$acl_libdirstem" \
8771 && ! test -d "$withval/$acl_libdirstem"; then
8772 additional_libdir="$withval/$acl_libdirstem2"
8786 names_already_handled=
8787 names_next_round='iconv '
8788 while test -n "$names_next_round"; do
8789 names_this_round="$names_next_round"
8791 for name in $names_this_round; do
8793 for n in $names_already_handled; do
8794 if test "$n" = "$name"; then
8799 if test -z "$already_handled"; then
8800 names_already_handled="$names_already_handled $name"
8801 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
8802 eval value=\"\$HAVE_LIB$uppername\"
8803 if test -n "$value"; then
8804 if test "$value" = yes; then
8805 eval value=\"\$LIB$uppername\"
8806 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
8807 eval value=\"\$LTLIB$uppername\"
8808 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
8817 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
8818 if test -n "$acl_shlibext"; then
8819 shrext=".$acl_shlibext" # typically: shrext=.so
8823 if test $use_additional = yes; then
8824 dir="$additional_libdir"
8825 if test -n "$acl_shlibext"; then
8826 if test -f "$dir/$libname$shrext"; then
8828 found_so="$dir/$libname$shrext"
8830 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8831 ver=`(cd "$dir" && \
8832 for f in "$libname$shrext".*; do echo "$f"; done \
8833 | sed -e "s,^$libname$shrext\\\\.,," \
8834 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8835 | sed 1q ) 2>/dev/null`
8836 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8838 found_so="$dir/$libname$shrext.$ver"
8841 eval library_names=\"$acl_library_names_spec\"
8842 for f in $library_names; do
8843 if test -f "$dir/$f"; then
8852 if test "X$found_dir" = "X"; then
8853 if test -f "$dir/$libname.$acl_libext"; then
8855 found_a="$dir/$libname.$acl_libext"
8858 if test "X$found_dir" != "X"; then
8859 if test -f "$dir/$libname.la"; then
8860 found_la="$dir/$libname.la"
8864 if test "X$found_dir" = "X"; then
8865 for x in $LDFLAGS $LTLIBICONV; do
8867 acl_save_prefix="$prefix"
8868 prefix="$acl_final_prefix"
8869 acl_save_exec_prefix="$exec_prefix"
8870 exec_prefix="$acl_final_exec_prefix"
8872 exec_prefix="$acl_save_exec_prefix"
8873 prefix="$acl_save_prefix"
8877 dir=`echo "X$x" | sed -e 's/^X-L//'`
8878 if test -n "$acl_shlibext"; then
8879 if test -f "$dir/$libname$shrext"; then
8881 found_so="$dir/$libname$shrext"
8883 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8884 ver=`(cd "$dir" && \
8885 for f in "$libname$shrext".*; do echo "$f"; done \
8886 | sed -e "s,^$libname$shrext\\\\.,," \
8887 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8888 | sed 1q ) 2>/dev/null`
8889 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8891 found_so="$dir/$libname$shrext.$ver"
8894 eval library_names=\"$acl_library_names_spec\"
8895 for f in $library_names; do
8896 if test -f "$dir/$f"; then
8905 if test "X$found_dir" = "X"; then
8906 if test -f "$dir/$libname.$acl_libext"; then
8908 found_a="$dir/$libname.$acl_libext"
8911 if test "X$found_dir" != "X"; then
8912 if test -f "$dir/$libname.la"; then
8913 found_la="$dir/$libname.la"
8918 if test "X$found_dir" != "X"; then
8923 if test "X$found_dir" != "X"; then
8924 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
8925 if test "X$found_so" != "X"; then
8926 if test "$enable_rpath" = no \
8927 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
8928 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
8929 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8932 for x in $ltrpathdirs; do
8933 if test "X$x" = "X$found_dir"; then
8938 if test -z "$haveit"; then
8939 ltrpathdirs="$ltrpathdirs $found_dir"
8941 if test "$acl_hardcode_direct" = yes; then
8942 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8944 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
8945 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8947 for x in $rpathdirs; do
8948 if test "X$x" = "X$found_dir"; then
8953 if test -z "$haveit"; then
8954 rpathdirs="$rpathdirs $found_dir"
8958 for x in $LDFLAGS $LIBICONV; do
8960 acl_save_prefix="$prefix"
8961 prefix="$acl_final_prefix"
8962 acl_save_exec_prefix="$exec_prefix"
8963 exec_prefix="$acl_final_exec_prefix"
8965 exec_prefix="$acl_save_exec_prefix"
8966 prefix="$acl_save_prefix"
8968 if test "X$x" = "X-L$found_dir"; then
8973 if test -z "$haveit"; then
8974 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
8976 if test "$acl_hardcode_minus_L" != no; then
8977 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8979 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8985 if test "X$found_a" != "X"; then
8986 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
8988 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
8991 additional_includedir=
8992 case "$found_dir" in
8993 */$acl_libdirstem | */$acl_libdirstem/)
8994 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
8995 if test "$name" = 'iconv'; then
8996 LIBICONV_PREFIX="$basedir"
8998 additional_includedir="$basedir/include"
9000 */$acl_libdirstem2 | */$acl_libdirstem2/)
9001 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
9002 if test "$name" = 'iconv'; then
9003 LIBICONV_PREFIX="$basedir"
9005 additional_includedir="$basedir/include"
9008 if test "X$additional_includedir" != "X"; then
9009 if test "X$additional_includedir" != "X/usr/include"; then
9011 if test "X$additional_includedir" = "X/usr/local/include"; then
9012 if test -n "$GCC"; then
9014 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
9018 if test -z "$haveit"; then
9019 for x in $CPPFLAGS $INCICONV; do
9021 acl_save_prefix="$prefix"
9022 prefix="$acl_final_prefix"
9023 acl_save_exec_prefix="$exec_prefix"
9024 exec_prefix="$acl_final_exec_prefix"
9026 exec_prefix="$acl_save_exec_prefix"
9027 prefix="$acl_save_prefix"
9029 if test "X$x" = "X-I$additional_includedir"; then
9034 if test -z "$haveit"; then
9035 if test -d "$additional_includedir"; then
9036 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9042 if test -n "$found_la"; then
9043 save_libdir="$libdir"
9045 */* | *\\*) . "$found_la" ;;
9046 *) . "./$found_la" ;;
9048 libdir="$save_libdir"
9049 for dep in $dependency_libs; do
9052 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9053 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
9054 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
9056 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
9057 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
9058 if test -n "$GCC"; then
9060 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
9064 if test -z "$haveit"; then
9066 for x in $LDFLAGS $LIBICONV; do
9068 acl_save_prefix="$prefix"
9069 prefix="$acl_final_prefix"
9070 acl_save_exec_prefix="$exec_prefix"
9071 exec_prefix="$acl_final_exec_prefix"
9073 exec_prefix="$acl_save_exec_prefix"
9074 prefix="$acl_save_prefix"
9076 if test "X$x" = "X-L$additional_libdir"; then
9081 if test -z "$haveit"; then
9082 if test -d "$additional_libdir"; then
9083 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9087 for x in $LDFLAGS $LTLIBICONV; do
9089 acl_save_prefix="$prefix"
9090 prefix="$acl_final_prefix"
9091 acl_save_exec_prefix="$exec_prefix"
9092 exec_prefix="$acl_final_exec_prefix"
9094 exec_prefix="$acl_save_exec_prefix"
9095 prefix="$acl_save_prefix"
9097 if test "X$x" = "X-L$additional_libdir"; then
9102 if test -z "$haveit"; then
9103 if test -d "$additional_libdir"; then
9104 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
9111 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9112 if test "$enable_rpath" != no; then
9114 for x in $rpathdirs; do
9115 if test "X$x" = "X$dir"; then
9120 if test -z "$haveit"; then
9121 rpathdirs="$rpathdirs $dir"
9124 for x in $ltrpathdirs; do
9125 if test "X$x" = "X$dir"; then
9130 if test -z "$haveit"; then
9131 ltrpathdirs="$ltrpathdirs $dir"
9136 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9139 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9142 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
9143 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
9149 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9150 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
9156 if test "X$rpathdirs" != "X"; then
9157 if test -n "$acl_hardcode_libdir_separator"; then
9159 for found_dir in $rpathdirs; do
9160 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
9162 acl_save_libdir="$libdir"
9164 eval flag=\"$acl_hardcode_libdir_flag_spec\"
9165 libdir="$acl_save_libdir"
9166 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9168 for found_dir in $rpathdirs; do
9169 acl_save_libdir="$libdir"
9171 eval flag=\"$acl_hardcode_libdir_flag_spec\"
9172 libdir="$acl_save_libdir"
9173 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9177 if test "X$ltrpathdirs" != "X"; then
9178 for found_dir in $ltrpathdirs; do
9179 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
9194 am_save_CPPFLAGS="$CPPFLAGS"
9196 for element in $INCICONV; do
9198 for x in $CPPFLAGS; do
9200 acl_save_prefix="$prefix"
9201 prefix="$acl_final_prefix"
9202 acl_save_exec_prefix="$exec_prefix"
9203 exec_prefix="$acl_final_exec_prefix"
9205 exec_prefix="$acl_save_exec_prefix"
9206 prefix="$acl_save_prefix"
9208 if test "X$x" = "X$element"; then
9213 if test -z "$haveit"; then
9214 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
9220 $as_echo_n "checking for iconv... " >&6; }
9221 if ${am_cv_func_iconv+:} false; then :
9222 $as_echo_n "(cached) " >&6
9225 am_cv_func_iconv="no, consider installing GNU libiconv"
9227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9228 /* end confdefs.h. */
9236 iconv_t cd = iconv_open("","");
9237 iconv(cd,NULL,NULL,NULL,NULL);
9243 if ac_fn_c_try_link "$LINENO"; then :
9244 am_cv_func_iconv=yes
9246 rm -f core conftest.err conftest.$ac_objext \
9247 conftest$ac_exeext conftest.$ac_ext
9248 if test "$am_cv_func_iconv" != yes; then
9249 am_save_LIBS="$LIBS"
9250 LIBS="$LIBS $LIBICONV"
9251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9252 /* end confdefs.h. */
9260 iconv_t cd = iconv_open("","");
9261 iconv(cd,NULL,NULL,NULL,NULL);
9267 if ac_fn_c_try_link "$LINENO"; then :
9269 am_cv_func_iconv=yes
9271 rm -f core conftest.err conftest.$ac_objext \
9272 conftest$ac_exeext conftest.$ac_ext
9273 LIBS="$am_save_LIBS"
9277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
9278 $as_echo "$am_cv_func_iconv" >&6; }
9279 if test "$am_cv_func_iconv" = yes; then
9280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
9281 $as_echo_n "checking for working iconv... " >&6; }
9282 if ${am_cv_func_iconv_works+:} false; then :
9283 $as_echo_n "(cached) " >&6
9286 am_save_LIBS="$LIBS"
9287 if test $am_cv_lib_iconv = yes; then
9288 LIBS="$LIBS $LIBICONV"
9290 if test "$cross_compiling" = yes; then :
9293 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
9294 *) am_cv_func_iconv_works="guessing yes" ;;
9298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9299 /* end confdefs.h. */
9306 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
9309 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
9310 if (cd_utf8_to_88591 != (iconv_t)(-1))
9312 static const char input[] = "\342\202\254"; /* EURO SIGN */
9314 const char *inptr = input;
9315 size_t inbytesleft = strlen (input);
9317 size_t outbytesleft = sizeof (buf);
9318 size_t res = iconv (cd_utf8_to_88591,
9319 (char **) &inptr, &inbytesleft,
9320 &outptr, &outbytesleft);
9323 iconv_close (cd_utf8_to_88591);
9326 /* Test against Solaris 10 bug: Failures are not distinguishable from
9327 successful returns. */
9329 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
9330 if (cd_ascii_to_88591 != (iconv_t)(-1))
9332 static const char input[] = "\263";
9334 const char *inptr = input;
9335 size_t inbytesleft = strlen (input);
9337 size_t outbytesleft = sizeof (buf);
9338 size_t res = iconv (cd_ascii_to_88591,
9339 (char **) &inptr, &inbytesleft,
9340 &outptr, &outbytesleft);
9343 iconv_close (cd_ascii_to_88591);
9346 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
9348 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
9349 if (cd_88591_to_utf8 != (iconv_t)(-1))
9351 static const char input[] = "\304";
9352 static char buf[2] = { (char)0xDE, (char)0xAD };
9353 const char *inptr = input;
9354 size_t inbytesleft = 1;
9356 size_t outbytesleft = 1;
9357 size_t res = iconv (cd_88591_to_utf8,
9358 (char **) &inptr, &inbytesleft,
9359 &outptr, &outbytesleft);
9360 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
9362 iconv_close (cd_88591_to_utf8);
9365 #if 0 /* This bug could be worked around by the caller. */
9366 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
9368 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
9369 if (cd_88591_to_utf8 != (iconv_t)(-1))
9371 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
9373 const char *inptr = input;
9374 size_t inbytesleft = strlen (input);
9376 size_t outbytesleft = sizeof (buf);
9377 size_t res = iconv (cd_88591_to_utf8,
9378 (char **) &inptr, &inbytesleft,
9379 &outptr, &outbytesleft);
9382 iconv_close (cd_88591_to_utf8);
9386 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
9388 if (/* Try standardized names. */
9389 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
9390 /* Try IRIX, OSF/1 names. */
9391 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
9392 /* Try AIX names. */
9393 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
9394 /* Try HP-UX names. */
9395 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
9400 if ac_fn_c_try_run "$LINENO"; then :
9401 am_cv_func_iconv_works=yes
9403 am_cv_func_iconv_works=no
9405 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9406 conftest.$ac_objext conftest.beam conftest.$ac_ext
9409 LIBS="$am_save_LIBS"
9412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
9413 $as_echo "$am_cv_func_iconv_works" >&6; }
9414 case "$am_cv_func_iconv_works" in
9415 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
9416 *) am_func_iconv=yes ;;
9419 am_func_iconv=no am_cv_lib_iconv=no
9421 if test "$am_func_iconv" = yes; then
9423 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
9426 if test "$am_cv_lib_iconv" = yes; then
9427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
9428 $as_echo_n "checking how to link with libiconv... " >&6; }
9429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
9430 $as_echo "$LIBICONV" >&6; }
9432 CPPFLAGS="$am_save_CPPFLAGS"
9439 if test "$am_cv_func_iconv" = yes; then
9440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
9441 $as_echo_n "checking for iconv declaration... " >&6; }
9442 if ${am_cv_proto_iconv+:} false; then :
9443 $as_echo_n "(cached) " >&6
9446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9447 /* end confdefs.h. */
9455 #if defined(__STDC__) || defined(_MSC_VER) || defined(__cplusplus)
9456 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9469 if ac_fn_c_try_compile "$LINENO"; then :
9470 am_cv_proto_iconv_arg1=""
9472 am_cv_proto_iconv_arg1="const"
9474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9475 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);"
9478 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
9479 { $as_echo "$as_me:${as_lineno-$LINENO}: result:
9480 $am_cv_proto_iconv" >&5
9482 $am_cv_proto_iconv" >&6; }
9484 cat >>confdefs.h <<_ACEOF
9485 #define ICONV_CONST $am_cv_proto_iconv_arg1
9494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9495 /* end confdefs.h. */
9496 int foo (int a) { a = __builtin_expect (a, 10); return a == 10 ? 0 : 1; }
9505 if ac_fn_c_try_link "$LINENO"; then :
9507 $as_echo "#define HAVE_BUILTIN_EXPECT 1" >>confdefs.h
9510 rm -f core conftest.err conftest.$ac_objext \
9511 conftest$ac_exeext conftest.$ac_ext
9513 for ac_header in argz.h inttypes.h limits.h unistd.h sys/param.h
9515 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9516 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9517 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9518 cat >>confdefs.h <<_ACEOF
9519 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9526 for ac_func in getcwd getegid geteuid getgid getuid mempcpy munmap \
9527 stpcpy strcasecmp strdup strtoul tsearch uselocale argz_count \
9528 argz_stringify argz_next __fsetlocking
9530 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9531 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9532 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9533 cat >>confdefs.h <<_ACEOF
9534 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9541 ac_fn_c_check_decl "$LINENO" "feof_unlocked" "ac_cv_have_decl_feof_unlocked" "#include <stdio.h>
9543 if test "x$ac_cv_have_decl_feof_unlocked" = xyes; then :
9549 cat >>confdefs.h <<_ACEOF
9550 #define HAVE_DECL_FEOF_UNLOCKED $ac_have_decl
9552 ac_fn_c_check_decl "$LINENO" "fgets_unlocked" "ac_cv_have_decl_fgets_unlocked" "#include <stdio.h>
9554 if test "x$ac_cv_have_decl_fgets_unlocked" = xyes; then :
9560 cat >>confdefs.h <<_ACEOF
9561 #define HAVE_DECL_FGETS_UNLOCKED $ac_have_decl
9567 for ac_prog in bison
9569 # Extract the first word of "$ac_prog", so it can be a program name with args.
9570 set dummy $ac_prog; ac_word=$2
9571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9572 $as_echo_n "checking for $ac_word... " >&6; }
9573 if ${ac_cv_prog_INTLBISON+:} false; then :
9574 $as_echo_n "(cached) " >&6
9576 if test -n "$INTLBISON"; then
9577 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
9579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9583 test -z "$as_dir" && as_dir=.
9584 for ac_exec_ext in '' $ac_executable_extensions; do
9585 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9586 ac_cv_prog_INTLBISON="$ac_prog"
9587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9596 INTLBISON=$ac_cv_prog_INTLBISON
9597 if test -n "$INTLBISON"; then
9598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
9599 $as_echo "$INTLBISON" >&6; }
9601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9602 $as_echo "no" >&6; }
9606 test -n "$INTLBISON" && break
9609 if test -z "$INTLBISON"; then
9612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
9613 $as_echo_n "checking version of bison... " >&6; }
9614 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
9615 case $ac_prog_version in
9616 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
9617 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
9618 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
9619 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
9621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
9622 $as_echo "$ac_prog_version" >&6; }
9624 if test $ac_verc_fail = yes; then
9630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
9631 $as_echo_n "checking for long long int... " >&6; }
9632 if ${ac_cv_type_long_long_int+:} false; then :
9633 $as_echo_n "(cached) " >&6
9635 ac_cv_type_long_long_int=yes
9636 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
9637 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
9638 if test $ac_cv_type_long_long_int = yes; then
9639 if test "$cross_compiling" = yes; then :
9642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9643 /* end confdefs.h. */
9647 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
9648 # define LLONG_MAX (HALF - 1 + HALF)
9653 long long int n = 1;
9657 long long int m = n << i;
9660 if (LLONG_MAX / 2 < m)
9668 if ac_fn_c_try_run "$LINENO"; then :
9671 ac_cv_type_long_long_int=no
9673 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9674 conftest.$ac_objext conftest.beam conftest.$ac_ext
9680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
9681 $as_echo "$ac_cv_type_long_long_int" >&6; }
9682 if test $ac_cv_type_long_long_int = yes; then
9684 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
9689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
9690 $as_echo_n "checking for wchar_t... " >&6; }
9691 if ${gt_cv_c_wchar_t+:} false; then :
9692 $as_echo_n "(cached) " >&6
9694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9695 /* end confdefs.h. */
9697 wchar_t foo = (wchar_t)'\0';
9706 if ac_fn_c_try_compile "$LINENO"; then :
9711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
9714 $as_echo "$gt_cv_c_wchar_t" >&6; }
9715 if test $gt_cv_c_wchar_t = yes; then
9717 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
9722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
9723 $as_echo_n "checking for wint_t... " >&6; }
9724 if ${gt_cv_c_wint_t+:} false; then :
9725 $as_echo_n "(cached) " >&6
9727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9728 /* end confdefs.h. */
9730 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
9732 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
9733 before <wchar.h>. */
9738 wint_t foo = (wchar_t)'\0';
9747 if ac_fn_c_try_compile "$LINENO"; then :
9752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
9755 $as_echo "$gt_cv_c_wint_t" >&6; }
9756 if test $gt_cv_c_wint_t = yes; then
9758 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
9765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
9766 $as_echo_n "checking for intmax_t... " >&6; }
9767 if ${gt_cv_c_intmax_t+:} false; then :
9768 $as_echo_n "(cached) " >&6
9770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9771 /* end confdefs.h. */
9775 #if HAVE_STDINT_H_WITH_UINTMAX
9778 #if HAVE_INTTYPES_H_WITH_UINTMAX
9779 #include <inttypes.h>
9791 if ac_fn_c_try_compile "$LINENO"; then :
9792 gt_cv_c_intmax_t=yes
9796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
9799 $as_echo "$gt_cv_c_intmax_t" >&6; }
9800 if test $gt_cv_c_intmax_t = yes; then
9802 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
9808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
9809 $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
9810 if ${gt_cv_func_printf_posix+:} false; then :
9811 $as_echo_n "(cached) " >&6
9814 if test "$cross_compiling" = yes; then :
9816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9817 /* end confdefs.h. */
9819 #if defined __NetBSD__ || defined __BEOS__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
9824 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9825 $EGREP "notposix" >/dev/null 2>&1; then :
9826 gt_cv_func_printf_posix="guessing no"
9828 gt_cv_func_printf_posix="guessing yes"
9834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9835 /* end confdefs.h. */
9839 /* The string "%2$d %1$d", with dollar characters protected from the shell's
9840 dollar expansion (possibly an autoconf bug). */
9841 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
9842 static char buf[100];
9845 sprintf (buf, format, 33, 55);
9846 return (strcmp (buf, "55 33") != 0);
9849 if ac_fn_c_try_run "$LINENO"; then :
9850 gt_cv_func_printf_posix=yes
9852 gt_cv_func_printf_posix=no
9854 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9855 conftest.$ac_objext conftest.beam conftest.$ac_ext
9860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
9861 $as_echo "$gt_cv_func_printf_posix" >&6; }
9862 case $gt_cv_func_printf_posix in
9865 $as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
9871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library >= 2.1 or uClibc" >&5
9872 $as_echo_n "checking whether we are using the GNU C Library >= 2.1 or uClibc... " >&6; }
9873 if ${ac_cv_gnu_library_2_1+:} false; then :
9874 $as_echo_n "(cached) " >&6
9876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9877 /* end confdefs.h. */
9879 #include <features.h>
9880 #ifdef __GNU_LIBRARY__
9881 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
9890 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9891 $EGREP "Lucky" >/dev/null 2>&1; then :
9892 ac_cv_gnu_library_2_1=yes
9894 ac_cv_gnu_library_2_1=no
9901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
9902 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
9904 GLIBC21="$ac_cv_gnu_library_2_1"
9908 for ac_header in stdint.h
9910 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
9911 if test "x$ac_cv_header_stdint_h" = xyes; then :
9912 cat >>confdefs.h <<_ACEOF
9913 #define HAVE_STDINT_H 1
9920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
9921 $as_echo_n "checking for SIZE_MAX... " >&6; }
9922 if ${gl_cv_size_max+:} false; then :
9923 $as_echo_n "(cached) " >&6
9927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9928 /* end confdefs.h. */
9939 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9940 $EGREP "Found it" >/dev/null 2>&1; then :
9945 if test -z "$gl_cv_size_max"; then
9946 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1" "#include <stddef.h>
9947 #include <limits.h>"; then :
9950 size_t_bits_minus_1=
9953 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then :
9959 if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
9960 if test $fits_in_uint = 1; then
9961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9962 /* end confdefs.h. */
9965 extern unsigned long foo;
9975 if ac_fn_c_try_compile "$LINENO"; then :
9978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9980 if test $fits_in_uint = 1; then
9981 gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
9983 gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
9986 gl_cv_size_max='((size_t)~(size_t)0)'
9991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5
9992 $as_echo "$gl_cv_size_max" >&6; }
9993 if test "$gl_cv_size_max" != yes; then
9995 cat >>confdefs.h <<_ACEOF
9996 #define SIZE_MAX $gl_cv_size_max
10004 for ac_header in stdint.h
10006 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
10007 if test "x$ac_cv_header_stdint_h" = xyes; then :
10008 cat >>confdefs.h <<_ACEOF
10009 #define HAVE_STDINT_H 1
10020 for ac_func in $ac_func_list
10022 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10023 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10024 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10025 cat >>confdefs.h <<_ACEOF
10026 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
10040 $as_echo_n "checking for working fcntl.h... " >&6; }
10041 if ${gl_cv_header_working_fcntl_h+:} false; then :
10042 $as_echo_n "(cached) " >&6
10044 if test "$cross_compiling" = yes; then :
10045 gl_cv_header_working_fcntl_h=cross-compiling
10047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10048 /* end confdefs.h. */
10049 #include <sys/types.h>
10050 #include <sys/stat.h>
10052 # include <unistd.h>
10053 #else /* on Windows with MSVC */
10055 # include <stdlib.h>
10056 # defined sleep(n) _sleep ((n) * 1000)
10060 #define O_NOATIME 0
10063 #define O_NOFOLLOW 0
10065 static int const constants[] =
10067 O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
10068 O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
10075 int result = !constants;
10078 static char const sym[] = "conftest.sym";
10079 if (symlink ("/dev/null", sym) != 0)
10083 int fd = open (sym, O_WRONLY | O_NOFOLLOW | O_CREAT, 0);
10090 if (unlink (sym) != 0 || symlink (".", sym) != 0)
10094 int fd = open (sym, O_RDONLY | O_NOFOLLOW);
10105 static char const file[] = "confdefs.h";
10106 int fd = open (file, O_RDONLY | O_NOATIME);
10112 if (fstat (fd, &st0) != 0)
10118 if (read (fd, &c, 1) != 1)
10122 if (close (fd) != 0)
10127 if (stat (file, &st1) != 0)
10130 if (st0.st_atime != st1.st_atime)
10142 if ac_fn_c_try_run "$LINENO"; then :
10143 gl_cv_header_working_fcntl_h=yes
10146 4) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
10147 64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
10148 68) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
10149 *) gl_cv_header_working_fcntl_h='no';;
10152 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10153 conftest.$ac_objext conftest.beam conftest.$ac_ext
10157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
10158 $as_echo "$gl_cv_header_working_fcntl_h" >&6; }
10160 case $gl_cv_header_working_fcntl_h in #(
10161 *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
10165 cat >>confdefs.h <<_ACEOF
10166 #define HAVE_WORKING_O_NOATIME $ac_val
10170 case $gl_cv_header_working_fcntl_h in #(
10171 *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
10175 cat >>confdefs.h <<_ACEOF
10176 #define HAVE_WORKING_O_NOFOLLOW $ac_val
10181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
10182 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
10183 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
10184 $as_echo_n "(cached) " >&6
10186 gt_save_LIBS="$LIBS"
10187 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10189 /* end confdefs.h. */
10190 #include <CoreFoundation/CFPreferences.h>
10194 CFPreferencesCopyAppValue(NULL, NULL)
10199 if ac_fn_c_try_link "$LINENO"; then :
10200 gt_cv_func_CFPreferencesCopyAppValue=yes
10202 gt_cv_func_CFPreferencesCopyAppValue=no
10204 rm -f core conftest.err conftest.$ac_objext \
10205 conftest$ac_exeext conftest.$ac_ext
10206 LIBS="$gt_save_LIBS"
10208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
10209 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
10210 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
10212 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
10215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
10216 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
10217 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
10218 $as_echo_n "(cached) " >&6
10220 gt_save_LIBS="$LIBS"
10221 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10223 /* end confdefs.h. */
10224 #include <CoreFoundation/CFLocale.h>
10228 CFLocaleCopyCurrent();
10233 if ac_fn_c_try_link "$LINENO"; then :
10234 gt_cv_func_CFLocaleCopyCurrent=yes
10236 gt_cv_func_CFLocaleCopyCurrent=no
10238 rm -f core conftest.err conftest.$ac_objext \
10239 conftest$ac_exeext conftest.$ac_ext
10240 LIBS="$gt_save_LIBS"
10242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
10243 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
10244 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10246 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
10250 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10251 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
10263 case "$enable_silent_rules" in
10264 yes) INTL_DEFAULT_VERBOSITY=0;;
10265 no) INTL_DEFAULT_VERBOSITY=1;;
10266 *) INTL_DEFAULT_VERBOSITY=1;;
10270 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
10271 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
10275 $as_echo "#define ptrdiff_t long" >>confdefs.h
10280 for ac_header in features.h stddef.h stdlib.h string.h
10282 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10283 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10284 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10285 cat >>confdefs.h <<_ACEOF
10286 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10293 for ac_func in asprintf fwprintf newlocale putenv setenv setlocale \
10294 snprintf strnlen wcslen wcsnlen mbrtowc wcrtomb
10296 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10297 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10298 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10299 cat >>confdefs.h <<_ACEOF
10300 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10307 ac_fn_c_check_decl "$LINENO" "_snprintf" "ac_cv_have_decl__snprintf" "#include <stdio.h>
10309 if test "x$ac_cv_have_decl__snprintf" = xyes; then :
10315 cat >>confdefs.h <<_ACEOF
10316 #define HAVE_DECL__SNPRINTF $ac_have_decl
10318 ac_fn_c_check_decl "$LINENO" "_snwprintf" "ac_cv_have_decl__snwprintf" "#include <stdio.h>
10320 if test "x$ac_cv_have_decl__snwprintf" = xyes; then :
10326 cat >>confdefs.h <<_ACEOF
10327 #define HAVE_DECL__SNWPRINTF $ac_have_decl
10331 ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "#include <stdio.h>
10333 if test "x$ac_cv_have_decl_getc_unlocked" = xyes; then :
10339 cat >>confdefs.h <<_ACEOF
10340 #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
10344 case $gt_cv_func_printf_posix in
10345 *yes) HAVE_POSIX_PRINTF=1 ;;
10346 *) HAVE_POSIX_PRINTF=0 ;;
10349 if test "$ac_cv_func_asprintf" = yes; then
10355 if test "$ac_cv_func_snprintf" = yes; then
10361 if test "$ac_cv_func_newlocale" = yes; then
10367 if test "$ac_cv_func_wprintf" = yes; then
10375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10376 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10377 if ${am_cv_langinfo_codeset+:} false; then :
10378 $as_echo_n "(cached) " >&6
10380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10381 /* end confdefs.h. */
10382 #include <langinfo.h>
10386 char* cs = nl_langinfo(CODESET); return !cs;
10391 if ac_fn_c_try_link "$LINENO"; then :
10392 am_cv_langinfo_codeset=yes
10394 am_cv_langinfo_codeset=no
10396 rm -f core conftest.err conftest.$ac_objext \
10397 conftest$ac_exeext conftest.$ac_ext
10400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10401 $as_echo "$am_cv_langinfo_codeset" >&6; }
10402 if test $am_cv_langinfo_codeset = yes; then
10404 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10410 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10411 if ${gt_cv_val_LC_MESSAGES+:} false; then :
10412 $as_echo_n "(cached) " >&6
10414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10415 /* end confdefs.h. */
10416 #include <locale.h>
10425 if ac_fn_c_try_link "$LINENO"; then :
10426 gt_cv_val_LC_MESSAGES=yes
10428 gt_cv_val_LC_MESSAGES=no
10430 rm -f core conftest.err conftest.$ac_objext \
10431 conftest$ac_exeext conftest.$ac_ext
10433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5
10434 $as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
10435 if test $gt_cv_val_LC_MESSAGES = yes; then
10437 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10442 if test "$enable_shared" = yes; then
10444 mingw* | cygwin*) is_woe32dll=yes ;;
10445 *) is_woe32dll=no ;;
10450 WOE32DLL=$is_woe32dll
10454 mingw* | cygwin*) is_woe32=yes ;;
10459 if test $WOE32 = yes; then
10460 if test -n "$ac_tool_prefix"; then
10461 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
10462 set dummy ${ac_tool_prefix}windres; ac_word=$2
10463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10464 $as_echo_n "checking for $ac_word... " >&6; }
10465 if ${ac_cv_prog_WINDRES+:} false; then :
10466 $as_echo_n "(cached) " >&6
10468 if test -n "$WINDRES"; then
10469 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
10471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10472 for as_dir in $PATH
10475 test -z "$as_dir" && as_dir=.
10476 for ac_exec_ext in '' $ac_executable_extensions; do
10477 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10478 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
10479 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10488 WINDRES=$ac_cv_prog_WINDRES
10489 if test -n "$WINDRES"; then
10490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
10491 $as_echo "$WINDRES" >&6; }
10493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10494 $as_echo "no" >&6; }
10499 if test -z "$ac_cv_prog_WINDRES"; then
10500 ac_ct_WINDRES=$WINDRES
10501 # Extract the first word of "windres", so it can be a program name with args.
10502 set dummy windres; ac_word=$2
10503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10504 $as_echo_n "checking for $ac_word... " >&6; }
10505 if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
10506 $as_echo_n "(cached) " >&6
10508 if test -n "$ac_ct_WINDRES"; then
10509 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
10511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10512 for as_dir in $PATH
10515 test -z "$as_dir" && as_dir=.
10516 for ac_exec_ext in '' $ac_executable_extensions; do
10517 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10518 ac_cv_prog_ac_ct_WINDRES="windres"
10519 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10528 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
10529 if test -n "$ac_ct_WINDRES"; then
10530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
10531 $as_echo "$ac_ct_WINDRES" >&6; }
10533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10534 $as_echo "no" >&6; }
10537 if test "x$ac_ct_WINDRES" = x; then
10540 case $cross_compiling:$ac_tool_warned in
10542 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10543 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10544 ac_tool_warned=yes ;;
10546 WINDRES=$ac_ct_WINDRES
10549 WINDRES="$ac_cv_prog_WINDRES"
10555 hpux*) LTLIBC="" ;;
10585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
10586 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
10587 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
10588 $as_echo_n "(cached) " >&6
10590 gt_save_LIBS="$LIBS"
10591 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10593 /* end confdefs.h. */
10594 #include <CoreFoundation/CFPreferences.h>
10598 CFPreferencesCopyAppValue(NULL, NULL)
10603 if ac_fn_c_try_link "$LINENO"; then :
10604 gt_cv_func_CFPreferencesCopyAppValue=yes
10606 gt_cv_func_CFPreferencesCopyAppValue=no
10608 rm -f core conftest.err conftest.$ac_objext \
10609 conftest$ac_exeext conftest.$ac_ext
10610 LIBS="$gt_save_LIBS"
10612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
10613 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
10614 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
10616 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
10619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
10620 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
10621 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
10622 $as_echo_n "(cached) " >&6
10624 gt_save_LIBS="$LIBS"
10625 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10627 /* end confdefs.h. */
10628 #include <CoreFoundation/CFLocale.h>
10632 CFLocaleCopyCurrent();
10637 if ac_fn_c_try_link "$LINENO"; then :
10638 gt_cv_func_CFLocaleCopyCurrent=yes
10640 gt_cv_func_CFLocaleCopyCurrent=no
10642 rm -f core conftest.err conftest.$ac_objext \
10643 conftest$ac_exeext conftest.$ac_ext
10644 LIBS="$gt_save_LIBS"
10646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
10647 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
10648 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10650 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
10654 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10655 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
10663 BUILD_INCLUDED_LIBINTL=no
10664 USE_INCLUDED_LIBINTL=no
10670 case " $gt_needs " in
10671 *" need-formatstring-macros "*) gt_api_version=3 ;;
10672 *" need-ngettext "*) gt_api_version=2 ;;
10673 *) gt_api_version=1 ;;
10675 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
10676 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
10678 if test "$USE_NLS" = "yes"; then
10679 gt_use_preinstalled_gnugettext=no
10681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
10682 $as_echo_n "checking whether included gettext is requested... " >&6; }
10684 # Check whether --with-included-gettext was given.
10685 if test "${with_included_gettext+set}" = set; then :
10686 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
10688 nls_cv_force_use_gnu_gettext=no
10691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
10692 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
10694 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
10695 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
10698 if test $gt_api_version -ge 3; then
10699 gt_revision_test_code='
10700 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
10701 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
10703 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
10706 gt_revision_test_code=
10708 if test $gt_api_version -ge 2; then
10709 gt_expression_test_code=' + * ngettext ("", "", 0)'
10711 gt_expression_test_code=
10714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
10715 $as_echo_n "checking for GNU gettext in libc... " >&6; }
10716 if eval \${$gt_func_gnugettext_libc+:} false; then :
10717 $as_echo_n "(cached) " >&6
10719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10720 /* end confdefs.h. */
10722 #include <libintl.h>
10723 $gt_revision_test_code
10724 extern int _nl_msg_cat_cntr;
10725 extern int *_nl_domain_bindings;
10731 bindtextdomain ("", "");
10732 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
10738 if ac_fn_c_try_link "$LINENO"; then :
10739 eval "$gt_func_gnugettext_libc=yes"
10741 eval "$gt_func_gnugettext_libc=no"
10743 rm -f core conftest.err conftest.$ac_objext \
10744 conftest$ac_exeext conftest.$ac_ext
10746 eval ac_res=\$$gt_func_gnugettext_libc
10747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10748 $as_echo "$ac_res" >&6; }
10750 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
10761 acl_save_prefix="$prefix"
10762 prefix="$acl_final_prefix"
10763 acl_save_exec_prefix="$exec_prefix"
10764 exec_prefix="$acl_final_exec_prefix"
10766 eval additional_includedir=\"$includedir\"
10767 eval additional_libdir=\"$libdir\"
10769 exec_prefix="$acl_save_exec_prefix"
10770 prefix="$acl_save_prefix"
10773 # Check whether --with-libintl-prefix was given.
10774 if test "${with_libintl_prefix+set}" = set; then :
10775 withval=$with_libintl_prefix;
10776 if test "X$withval" = "Xno"; then
10779 if test "X$withval" = "X"; then
10781 acl_save_prefix="$prefix"
10782 prefix="$acl_final_prefix"
10783 acl_save_exec_prefix="$exec_prefix"
10784 exec_prefix="$acl_final_exec_prefix"
10786 eval additional_includedir=\"$includedir\"
10787 eval additional_libdir=\"$libdir\"
10789 exec_prefix="$acl_save_exec_prefix"
10790 prefix="$acl_save_prefix"
10793 additional_includedir="$withval/include"
10794 additional_libdir="$withval/$acl_libdirstem"
10795 if test "$acl_libdirstem2" != "$acl_libdirstem" \
10796 && ! test -d "$withval/$acl_libdirstem"; then
10797 additional_libdir="$withval/$acl_libdirstem2"
10811 names_already_handled=
10812 names_next_round='intl '
10813 while test -n "$names_next_round"; do
10814 names_this_round="$names_next_round"
10816 for name in $names_this_round; do
10818 for n in $names_already_handled; do
10819 if test "$n" = "$name"; then
10820 already_handled=yes
10824 if test -z "$already_handled"; then
10825 names_already_handled="$names_already_handled $name"
10826 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
10827 eval value=\"\$HAVE_LIB$uppername\"
10828 if test -n "$value"; then
10829 if test "$value" = yes; then
10830 eval value=\"\$LIB$uppername\"
10831 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
10832 eval value=\"\$LTLIB$uppername\"
10833 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
10842 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
10843 if test -n "$acl_shlibext"; then
10844 shrext=".$acl_shlibext" # typically: shrext=.so
10848 if test $use_additional = yes; then
10849 dir="$additional_libdir"
10850 if test -n "$acl_shlibext"; then
10851 if test -f "$dir/$libname$shrext"; then
10853 found_so="$dir/$libname$shrext"
10855 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
10856 ver=`(cd "$dir" && \
10857 for f in "$libname$shrext".*; do echo "$f"; done \
10858 | sed -e "s,^$libname$shrext\\\\.,," \
10859 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
10860 | sed 1q ) 2>/dev/null`
10861 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
10863 found_so="$dir/$libname$shrext.$ver"
10866 eval library_names=\"$acl_library_names_spec\"
10867 for f in $library_names; do
10868 if test -f "$dir/$f"; then
10877 if test "X$found_dir" = "X"; then
10878 if test -f "$dir/$libname.$acl_libext"; then
10880 found_a="$dir/$libname.$acl_libext"
10883 if test "X$found_dir" != "X"; then
10884 if test -f "$dir/$libname.la"; then
10885 found_la="$dir/$libname.la"
10889 if test "X$found_dir" = "X"; then
10890 for x in $LDFLAGS $LTLIBINTL; do
10892 acl_save_prefix="$prefix"
10893 prefix="$acl_final_prefix"
10894 acl_save_exec_prefix="$exec_prefix"
10895 exec_prefix="$acl_final_exec_prefix"
10897 exec_prefix="$acl_save_exec_prefix"
10898 prefix="$acl_save_prefix"
10902 dir=`echo "X$x" | sed -e 's/^X-L//'`
10903 if test -n "$acl_shlibext"; then
10904 if test -f "$dir/$libname$shrext"; then
10906 found_so="$dir/$libname$shrext"
10908 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
10909 ver=`(cd "$dir" && \
10910 for f in "$libname$shrext".*; do echo "$f"; done \
10911 | sed -e "s,^$libname$shrext\\\\.,," \
10912 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
10913 | sed 1q ) 2>/dev/null`
10914 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
10916 found_so="$dir/$libname$shrext.$ver"
10919 eval library_names=\"$acl_library_names_spec\"
10920 for f in $library_names; do
10921 if test -f "$dir/$f"; then
10930 if test "X$found_dir" = "X"; then
10931 if test -f "$dir/$libname.$acl_libext"; then
10933 found_a="$dir/$libname.$acl_libext"
10936 if test "X$found_dir" != "X"; then
10937 if test -f "$dir/$libname.la"; then
10938 found_la="$dir/$libname.la"
10943 if test "X$found_dir" != "X"; then
10948 if test "X$found_dir" != "X"; then
10949 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
10950 if test "X$found_so" != "X"; then
10951 if test "$enable_rpath" = no \
10952 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
10953 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
10954 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10957 for x in $ltrpathdirs; do
10958 if test "X$x" = "X$found_dir"; then
10963 if test -z "$haveit"; then
10964 ltrpathdirs="$ltrpathdirs $found_dir"
10966 if test "$acl_hardcode_direct" = yes; then
10967 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10969 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
10970 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10972 for x in $rpathdirs; do
10973 if test "X$x" = "X$found_dir"; then
10978 if test -z "$haveit"; then
10979 rpathdirs="$rpathdirs $found_dir"
10983 for x in $LDFLAGS $LIBINTL; do
10985 acl_save_prefix="$prefix"
10986 prefix="$acl_final_prefix"
10987 acl_save_exec_prefix="$exec_prefix"
10988 exec_prefix="$acl_final_exec_prefix"
10990 exec_prefix="$acl_save_exec_prefix"
10991 prefix="$acl_save_prefix"
10993 if test "X$x" = "X-L$found_dir"; then
10998 if test -z "$haveit"; then
10999 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
11001 if test "$acl_hardcode_minus_L" != no; then
11002 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11004 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
11010 if test "X$found_a" != "X"; then
11011 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
11013 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
11016 additional_includedir=
11017 case "$found_dir" in
11018 */$acl_libdirstem | */$acl_libdirstem/)
11019 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
11020 if test "$name" = 'intl'; then
11021 LIBINTL_PREFIX="$basedir"
11023 additional_includedir="$basedir/include"
11025 */$acl_libdirstem2 | */$acl_libdirstem2/)
11026 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
11027 if test "$name" = 'intl'; then
11028 LIBINTL_PREFIX="$basedir"
11030 additional_includedir="$basedir/include"
11033 if test "X$additional_includedir" != "X"; then
11034 if test "X$additional_includedir" != "X/usr/include"; then
11036 if test "X$additional_includedir" = "X/usr/local/include"; then
11037 if test -n "$GCC"; then
11039 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
11043 if test -z "$haveit"; then
11044 for x in $CPPFLAGS $INCINTL; do
11046 acl_save_prefix="$prefix"
11047 prefix="$acl_final_prefix"
11048 acl_save_exec_prefix="$exec_prefix"
11049 exec_prefix="$acl_final_exec_prefix"
11051 exec_prefix="$acl_save_exec_prefix"
11052 prefix="$acl_save_prefix"
11054 if test "X$x" = "X-I$additional_includedir"; then
11059 if test -z "$haveit"; then
11060 if test -d "$additional_includedir"; then
11061 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
11067 if test -n "$found_la"; then
11068 save_libdir="$libdir"
11069 case "$found_la" in
11070 */* | *\\*) . "$found_la" ;;
11071 *) . "./$found_la" ;;
11073 libdir="$save_libdir"
11074 for dep in $dependency_libs; do
11077 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
11078 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
11079 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
11081 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
11082 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
11083 if test -n "$GCC"; then
11085 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
11089 if test -z "$haveit"; then
11091 for x in $LDFLAGS $LIBINTL; do
11093 acl_save_prefix="$prefix"
11094 prefix="$acl_final_prefix"
11095 acl_save_exec_prefix="$exec_prefix"
11096 exec_prefix="$acl_final_exec_prefix"
11098 exec_prefix="$acl_save_exec_prefix"
11099 prefix="$acl_save_prefix"
11101 if test "X$x" = "X-L$additional_libdir"; then
11106 if test -z "$haveit"; then
11107 if test -d "$additional_libdir"; then
11108 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
11112 for x in $LDFLAGS $LTLIBINTL; do
11114 acl_save_prefix="$prefix"
11115 prefix="$acl_final_prefix"
11116 acl_save_exec_prefix="$exec_prefix"
11117 exec_prefix="$acl_final_exec_prefix"
11119 exec_prefix="$acl_save_exec_prefix"
11120 prefix="$acl_save_prefix"
11122 if test "X$x" = "X-L$additional_libdir"; then
11127 if test -z "$haveit"; then
11128 if test -d "$additional_libdir"; then
11129 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
11136 dir=`echo "X$dep" | sed -e 's/^X-R//'`
11137 if test "$enable_rpath" != no; then
11139 for x in $rpathdirs; do
11140 if test "X$x" = "X$dir"; then
11145 if test -z "$haveit"; then
11146 rpathdirs="$rpathdirs $dir"
11149 for x in $ltrpathdirs; do
11150 if test "X$x" = "X$dir"; then
11155 if test -z "$haveit"; then
11156 ltrpathdirs="$ltrpathdirs $dir"
11161 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11164 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11167 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
11168 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
11174 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
11175 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
11181 if test "X$rpathdirs" != "X"; then
11182 if test -n "$acl_hardcode_libdir_separator"; then
11184 for found_dir in $rpathdirs; do
11185 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
11187 acl_save_libdir="$libdir"
11189 eval flag=\"$acl_hardcode_libdir_flag_spec\"
11190 libdir="$acl_save_libdir"
11191 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
11193 for found_dir in $rpathdirs; do
11194 acl_save_libdir="$libdir"
11195 libdir="$found_dir"
11196 eval flag=\"$acl_hardcode_libdir_flag_spec\"
11197 libdir="$acl_save_libdir"
11198 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
11202 if test "X$ltrpathdirs" != "X"; then
11203 for found_dir in $ltrpathdirs; do
11204 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
11213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
11214 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
11215 if eval \${$gt_func_gnugettext_libintl+:} false; then :
11216 $as_echo_n "(cached) " >&6
11218 gt_save_CPPFLAGS="$CPPFLAGS"
11219 CPPFLAGS="$CPPFLAGS $INCINTL"
11220 gt_save_LIBS="$LIBS"
11221 LIBS="$LIBS $LIBINTL"
11222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11223 /* end confdefs.h. */
11225 #include <libintl.h>
11226 $gt_revision_test_code
11227 extern int _nl_msg_cat_cntr;
11232 const char *_nl_expand_alias (const char *);
11238 bindtextdomain ("", "");
11239 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
11245 if ac_fn_c_try_link "$LINENO"; then :
11246 eval "$gt_func_gnugettext_libintl=yes"
11248 eval "$gt_func_gnugettext_libintl=no"
11250 rm -f core conftest.err conftest.$ac_objext \
11251 conftest$ac_exeext conftest.$ac_ext
11252 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
11253 LIBS="$LIBS $LIBICONV"
11254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11255 /* end confdefs.h. */
11257 #include <libintl.h>
11258 $gt_revision_test_code
11259 extern int _nl_msg_cat_cntr;
11264 const char *_nl_expand_alias (const char *);
11270 bindtextdomain ("", "");
11271 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
11277 if ac_fn_c_try_link "$LINENO"; then :
11278 LIBINTL="$LIBINTL $LIBICONV"
11279 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
11280 eval "$gt_func_gnugettext_libintl=yes"
11283 rm -f core conftest.err conftest.$ac_objext \
11284 conftest$ac_exeext conftest.$ac_ext
11286 CPPFLAGS="$gt_save_CPPFLAGS"
11287 LIBS="$gt_save_LIBS"
11289 eval ac_res=\$$gt_func_gnugettext_libintl
11290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11291 $as_echo "$ac_res" >&6; }
11294 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
11295 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
11296 && test "$PACKAGE" != gettext-runtime \
11297 && test "$PACKAGE" != gettext-tools; }; then
11298 gt_use_preinstalled_gnugettext=yes
11306 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
11307 nls_cv_use_gnu_gettext=yes
11311 if test "$nls_cv_use_gnu_gettext" = "yes"; then
11312 BUILD_INCLUDED_LIBINTL=yes
11313 USE_INCLUDED_LIBINTL=yes
11314 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV $LIBTHREAD"
11315 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV $LTLIBTHREAD"
11316 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
11320 if test "$gt_use_preinstalled_gnugettext" = "yes" \
11321 || test "$nls_cv_use_gnu_gettext" = "yes"; then
11326 if test -n "$INTL_MACOSX_LIBS"; then
11327 if test "$gt_use_preinstalled_gnugettext" = "yes" \
11328 || test "$nls_cv_use_gnu_gettext" = "yes"; then
11329 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
11330 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
11334 if test "$gt_use_preinstalled_gnugettext" = "yes" \
11335 || test "$nls_cv_use_gnu_gettext" = "yes"; then
11337 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
11345 $as_echo_n "checking whether to use NLS... " >&6; }
11346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
11347 $as_echo "$USE_NLS" >&6; }
11348 if test "$USE_NLS" = "yes"; then
11349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
11350 $as_echo_n "checking where the gettext function comes from... " >&6; }
11351 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
11352 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
11353 gt_source="external libintl"
11358 gt_source="included intl directory"
11360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
11361 $as_echo "$gt_source" >&6; }
11364 if test "$USE_NLS" = "yes"; then
11366 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
11367 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
11368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
11369 $as_echo_n "checking how to link with libintl... " >&6; }
11370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
11371 $as_echo "$LIBINTL" >&6; }
11373 for element in $INCINTL; do
11375 for x in $CPPFLAGS; do
11377 acl_save_prefix="$prefix"
11378 prefix="$acl_final_prefix"
11379 acl_save_exec_prefix="$exec_prefix"
11380 exec_prefix="$acl_final_exec_prefix"
11382 exec_prefix="$acl_save_exec_prefix"
11383 prefix="$acl_save_prefix"
11385 if test "X$x" = "X$element"; then
11390 if test -z "$haveit"; then
11391 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11398 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
11401 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
11409 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
11410 BUILD_INCLUDED_LIBINTL=yes
11417 nls_cv_header_intl=
11418 nls_cv_header_libgt=
11430 if test "$USE_INCLUDED_LIBINTL" = yes; then
11431 INTLOBJS="\$(GETTOBJS)"
11435 INTL_LIBTOOL_SUFFIX_PREFIX=
11439 INTLLIBS="$LIBINTL"
11447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
11448 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
11450 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
11451 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
11452 $as_echo_n "(cached) " >&6
11454 cat >conftest.make <<\_ACEOF
11457 @echo '@@@%%%=$(MAKE)=@@@%%%'
11459 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
11460 case `${MAKE-make} -f conftest.make 2>/dev/null` in
11461 *@@@%%%=?*=@@@%%%*)
11462 eval ac_cv_prog_make_${ac_make}_set=yes;;
11464 eval ac_cv_prog_make_${ac_make}_set=no;;
11466 rm -f conftest.make
11468 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
11469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11470 $as_echo "yes" >&6; }
11473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11474 $as_echo "no" >&6; }
11475 SET_MAKE="MAKE=${MAKE-make}"
11478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5
11479 $as_echo_n "checking for GNU make... " >&6; }
11480 if ${_cv_gnu_make_command+:} false; then :
11481 $as_echo_n "(cached) " >&6
11483 _cv_gnu_make_command='' ;
11484 for a in "$MAKE" make gmake gnumake ; do
11485 if test -z "$a" ; then continue ; fi ;
11486 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
11487 _cv_gnu_make_command=$a ;
11493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_cv_gnu_make_command" >&5
11494 $as_echo "$_cv_gnu_make_command" >&6; } ;
11495 if test "x$_cv_gnu_make_command" != "x" ; then
11501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"Not found\"" >&5
11502 $as_echo "\"Not found\"" >&6; };
11507 # Extract the first word of "ln", so it can be a program name with args.
11508 set dummy ln; ac_word=$2
11509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11510 $as_echo_n "checking for $ac_word... " >&6; }
11511 if ${ac_cv_path_LN+:} false; then :
11512 $as_echo_n "(cached) " >&6
11516 ac_cv_path_LN="$LN" # Let the user override the test with a path.
11519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11520 for as_dir in $PATH
11523 test -z "$as_dir" && as_dir=.
11524 for ac_exec_ext in '' $ac_executable_extensions; do
11525 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11526 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
11527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11534 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
11539 if test -n "$LN"; then
11540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
11541 $as_echo "$LN" >&6; }
11543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11544 $as_echo "no" >&6; }
11548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
11549 $as_echo_n "checking whether ln -s works... " >&6; }
11551 if test "$LN_S" = "ln -s"; then
11552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11553 $as_echo "yes" >&6; }
11555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
11556 $as_echo "no, using $LN_S" >&6; }
11559 # Extract the first word of "mv", so it can be a program name with args.
11560 set dummy mv; ac_word=$2
11561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11562 $as_echo_n "checking for $ac_word... " >&6; }
11563 if ${ac_cv_path_MV+:} false; then :
11564 $as_echo_n "(cached) " >&6
11568 ac_cv_path_MV="$MV" # Let the user override the test with a path.
11571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11572 for as_dir in $PATH
11575 test -z "$as_dir" && as_dir=.
11576 for ac_exec_ext in '' $ac_executable_extensions; do
11577 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11578 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
11579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11586 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
11591 if test -n "$MV"; then
11592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
11593 $as_echo "$MV" >&6; }
11595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11596 $as_echo "no" >&6; }
11600 # Extract the first word of "cp", so it can be a program name with args.
11601 set dummy cp; ac_word=$2
11602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11603 $as_echo_n "checking for $ac_word... " >&6; }
11604 if ${ac_cv_path_CP+:} false; then :
11605 $as_echo_n "(cached) " >&6
11609 ac_cv_path_CP="$CP" # Let the user override the test with a path.
11612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11613 for as_dir in $PATH
11616 test -z "$as_dir" && as_dir=.
11617 for ac_exec_ext in '' $ac_executable_extensions; do
11618 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11619 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
11620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11627 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
11632 if test -n "$CP"; then
11633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
11634 $as_echo "$CP" >&6; }
11636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11637 $as_echo "no" >&6; }
11641 # Extract the first word of "rm", so it can be a program name with args.
11642 set dummy rm; ac_word=$2
11643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11644 $as_echo_n "checking for $ac_word... " >&6; }
11645 if ${ac_cv_path_RM+:} false; then :
11646 $as_echo_n "(cached) " >&6
11650 ac_cv_path_RM="$RM" # Let the user override the test with a path.
11653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11654 for as_dir in $PATH
11657 test -z "$as_dir" && as_dir=.
11658 for ac_exec_ext in '' $ac_executable_extensions; do
11659 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11660 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
11661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11668 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
11673 if test -n "$RM"; then
11674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
11675 $as_echo "$RM" >&6; }
11677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11678 $as_echo "no" >&6; }
11682 # Extract the first word of "chmod", so it can be a program name with args.
11683 set dummy chmod; ac_word=$2
11684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11685 $as_echo_n "checking for $ac_word... " >&6; }
11686 if ${ac_cv_path_CHMOD+:} false; then :
11687 $as_echo_n "(cached) " >&6
11691 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
11694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11695 for as_dir in $PATH
11698 test -z "$as_dir" && as_dir=.
11699 for ac_exec_ext in '' $ac_executable_extensions; do
11700 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11701 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
11702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11709 test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
11713 CHMOD=$ac_cv_path_CHMOD
11714 if test -n "$CHMOD"; then
11715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
11716 $as_echo "$CHMOD" >&6; }
11718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11719 $as_echo "no" >&6; }
11723 for ac_prog in gawk mawk nawk awk
11725 # Extract the first word of "$ac_prog", so it can be a program name with args.
11726 set dummy $ac_prog; ac_word=$2
11727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11728 $as_echo_n "checking for $ac_word... " >&6; }
11729 if ${ac_cv_prog_AWK+:} false; then :
11730 $as_echo_n "(cached) " >&6
11732 if test -n "$AWK"; then
11733 ac_cv_prog_AWK="$AWK" # Let the user override the test.
11735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11736 for as_dir in $PATH
11739 test -z "$as_dir" && as_dir=.
11740 for ac_exec_ext in '' $ac_executable_extensions; do
11741 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11742 ac_cv_prog_AWK="$ac_prog"
11743 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11752 AWK=$ac_cv_prog_AWK
11753 if test -n "$AWK"; then
11754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
11755 $as_echo "$AWK" >&6; }
11757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11758 $as_echo "no" >&6; }
11762 test -n "$AWK" && break
11765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
11766 $as_echo_n "checking for egrep... " >&6; }
11767 if ${ac_cv_path_EGREP+:} false; then :
11768 $as_echo_n "(cached) " >&6
11770 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
11771 then ac_cv_path_EGREP="$GREP -E"
11773 if test -z "$EGREP"; then
11774 ac_path_EGREP_found=false
11775 # Loop through the user's path and test for each of PROGNAME-LIST
11776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11777 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11780 test -z "$as_dir" && as_dir=.
11781 for ac_prog in egrep; do
11782 for ac_exec_ext in '' $ac_executable_extensions; do
11783 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
11784 as_fn_executable_p "$ac_path_EGREP" || continue
11785 # Check for GNU ac_path_EGREP and select it if it is found.
11786 # Check for GNU $ac_path_EGREP
11787 case `"$ac_path_EGREP" --version 2>&1` in
11789 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
11792 $as_echo_n 0123456789 >"conftest.in"
11795 cat "conftest.in" "conftest.in" >"conftest.tmp"
11796 mv "conftest.tmp" "conftest.in"
11797 cp "conftest.in" "conftest.nl"
11798 $as_echo 'EGREP' >> "conftest.nl"
11799 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11800 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11801 as_fn_arith $ac_count + 1 && ac_count=$as_val
11802 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
11803 # Best one so far, save it but keep looking for a better one
11804 ac_cv_path_EGREP="$ac_path_EGREP"
11805 ac_path_EGREP_max=$ac_count
11807 # 10*(2^10) chars as input seems more than enough
11808 test $ac_count -gt 10 && break
11810 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11813 $ac_path_EGREP_found && break 3
11818 if test -z "$ac_cv_path_EGREP"; then
11819 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11822 ac_cv_path_EGREP=$EGREP
11827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
11828 $as_echo "$ac_cv_path_EGREP" >&6; }
11829 EGREP="$ac_cv_path_EGREP"
11832 # Extract the first word of "sed", so it can be a program name with args.
11833 set dummy sed; ac_word=$2
11834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11835 $as_echo_n "checking for $ac_word... " >&6; }
11836 if ${ac_cv_path_SED+:} false; then :
11837 $as_echo_n "(cached) " >&6
11841 ac_cv_path_SED="$SED" # Let the user override the test with a path.
11844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11845 for as_dir in $PATH
11848 test -z "$as_dir" && as_dir=.
11849 for ac_exec_ext in '' $ac_executable_extensions; do
11850 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11851 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
11852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11859 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
11863 SED=$ac_cv_path_SED
11864 if test -n "$SED"; then
11865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
11866 $as_echo "$SED" >&6; }
11868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11869 $as_echo "no" >&6; }
11873 # Extract the first word of "perl", so it can be a program name with args.
11874 set dummy perl; ac_word=$2
11875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11876 $as_echo_n "checking for $ac_word... " >&6; }
11877 if ${ac_cv_path_PERL+:} false; then :
11878 $as_echo_n "(cached) " >&6
11882 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
11885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11886 for as_dir in $PATH
11889 test -z "$as_dir" && as_dir=.
11890 for ac_exec_ext in '' $ac_executable_extensions; do
11891 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11892 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
11893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11900 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
11904 PERL=$ac_cv_path_PERL
11905 if test -n "$PERL"; then
11906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
11907 $as_echo "$PERL" >&6; }
11909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11910 $as_echo "no" >&6; }
11914 # Extract the first word of "ldconfig", so it can be a program name with args.
11915 set dummy ldconfig; ac_word=$2
11916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11917 $as_echo_n "checking for $ac_word... " >&6; }
11918 if ${ac_cv_path_LDCONFIG+:} false; then :
11919 $as_echo_n "(cached) " >&6
11923 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
11926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11927 for as_dir in $PATH
11930 test -z "$as_dir" && as_dir=.
11931 for ac_exec_ext in '' $ac_executable_extensions; do
11932 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11933 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
11934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11941 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
11945 LDCONFIG=$ac_cv_path_LDCONFIG
11946 if test -n "$LDCONFIG"; then
11947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
11948 $as_echo "$LDCONFIG" >&6; }
11950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11951 $as_echo "no" >&6; }
11955 if test -n "$ac_tool_prefix"; then
11956 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
11957 set dummy ${ac_tool_prefix}ar; ac_word=$2
11958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11959 $as_echo_n "checking for $ac_word... " >&6; }
11960 if ${ac_cv_prog_AR+:} false; then :
11961 $as_echo_n "(cached) " >&6
11963 if test -n "$AR"; then
11964 ac_cv_prog_AR="$AR" # Let the user override the test.
11966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11967 for as_dir in $PATH
11970 test -z "$as_dir" && as_dir=.
11971 for ac_exec_ext in '' $ac_executable_extensions; do
11972 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11973 ac_cv_prog_AR="${ac_tool_prefix}ar"
11974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11984 if test -n "$AR"; then
11985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
11986 $as_echo "$AR" >&6; }
11988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11989 $as_echo "no" >&6; }
11994 if test -z "$ac_cv_prog_AR"; then
11996 # Extract the first word of "ar", so it can be a program name with args.
11997 set dummy ar; ac_word=$2
11998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11999 $as_echo_n "checking for $ac_word... " >&6; }
12000 if ${ac_cv_prog_ac_ct_AR+:} false; then :
12001 $as_echo_n "(cached) " >&6
12003 if test -n "$ac_ct_AR"; then
12004 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12007 for as_dir in $PATH
12010 test -z "$as_dir" && as_dir=.
12011 for ac_exec_ext in '' $ac_executable_extensions; do
12012 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12013 ac_cv_prog_ac_ct_AR="ar"
12014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12023 ac_ct_AR=$ac_cv_prog_ac_ct_AR
12024 if test -n "$ac_ct_AR"; then
12025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
12026 $as_echo "$ac_ct_AR" >&6; }
12028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12029 $as_echo "no" >&6; }
12032 if test "x$ac_ct_AR" = x; then
12035 case $cross_compiling:$ac_tool_warned in
12037 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12038 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12039 ac_tool_warned=yes ;;
12044 AR="$ac_cv_prog_AR"
12047 if test -n "$ac_tool_prefix"; then
12048 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12049 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12051 $as_echo_n "checking for $ac_word... " >&6; }
12052 if ${ac_cv_prog_RANLIB+:} false; then :
12053 $as_echo_n "(cached) " >&6
12055 if test -n "$RANLIB"; then
12056 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12059 for as_dir in $PATH
12062 test -z "$as_dir" && as_dir=.
12063 for ac_exec_ext in '' $ac_executable_extensions; do
12064 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12065 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12075 RANLIB=$ac_cv_prog_RANLIB
12076 if test -n "$RANLIB"; then
12077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12078 $as_echo "$RANLIB" >&6; }
12080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12081 $as_echo "no" >&6; }
12086 if test -z "$ac_cv_prog_RANLIB"; then
12087 ac_ct_RANLIB=$RANLIB
12088 # Extract the first word of "ranlib", so it can be a program name with args.
12089 set dummy ranlib; ac_word=$2
12090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12091 $as_echo_n "checking for $ac_word... " >&6; }
12092 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
12093 $as_echo_n "(cached) " >&6
12095 if test -n "$ac_ct_RANLIB"; then
12096 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12099 for as_dir in $PATH
12102 test -z "$as_dir" && as_dir=.
12103 for ac_exec_ext in '' $ac_executable_extensions; do
12104 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12105 ac_cv_prog_ac_ct_RANLIB="ranlib"
12106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12115 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12116 if test -n "$ac_ct_RANLIB"; then
12117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12118 $as_echo "$ac_ct_RANLIB" >&6; }
12120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12121 $as_echo "no" >&6; }
12124 if test "x$ac_ct_RANLIB" = x; then
12127 case $cross_compiling:$ac_tool_warned in
12129 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12130 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12131 ac_tool_warned=yes ;;
12133 RANLIB=$ac_ct_RANLIB
12136 RANLIB="$ac_cv_prog_RANLIB"
12139 if test -n "$ac_tool_prefix"; then
12140 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12141 set dummy ${ac_tool_prefix}strip; ac_word=$2
12142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12143 $as_echo_n "checking for $ac_word... " >&6; }
12144 if ${ac_cv_prog_STRIP+:} false; then :
12145 $as_echo_n "(cached) " >&6
12147 if test -n "$STRIP"; then
12148 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12151 for as_dir in $PATH
12154 test -z "$as_dir" && as_dir=.
12155 for ac_exec_ext in '' $ac_executable_extensions; do
12156 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12157 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12167 STRIP=$ac_cv_prog_STRIP
12168 if test -n "$STRIP"; then
12169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12170 $as_echo "$STRIP" >&6; }
12172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12173 $as_echo "no" >&6; }
12178 if test -z "$ac_cv_prog_STRIP"; then
12180 # Extract the first word of "strip", so it can be a program name with args.
12181 set dummy strip; ac_word=$2
12182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12183 $as_echo_n "checking for $ac_word... " >&6; }
12184 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
12185 $as_echo_n "(cached) " >&6
12187 if test -n "$ac_ct_STRIP"; then
12188 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12191 for as_dir in $PATH
12194 test -z "$as_dir" && as_dir=.
12195 for ac_exec_ext in '' $ac_executable_extensions; do
12196 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12197 ac_cv_prog_ac_ct_STRIP="strip"
12198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12207 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12208 if test -n "$ac_ct_STRIP"; then
12209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
12210 $as_echo "$ac_ct_STRIP" >&6; }
12212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12213 $as_echo "no" >&6; }
12216 if test "x$ac_ct_STRIP" = x; then
12219 case $cross_compiling:$ac_tool_warned in
12221 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12222 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12223 ac_tool_warned=yes ;;
12228 STRIP="$ac_cv_prog_STRIP"
12231 # Extract the first word of "makeinfo", so it can be a program name with args.
12232 set dummy makeinfo; ac_word=$2
12233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12234 $as_echo_n "checking for $ac_word... " >&6; }
12235 if ${ac_cv_prog_MAKEINFO+:} false; then :
12236 $as_echo_n "(cached) " >&6
12238 if test -n "$MAKEINFO"; then
12239 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
12241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12242 for as_dir in $PATH
12245 test -z "$as_dir" && as_dir=.
12246 for ac_exec_ext in '' $ac_executable_extensions; do
12247 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12248 ac_cv_prog_MAKEINFO="makeinfo"
12249 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12258 MAKEINFO=$ac_cv_prog_MAKEINFO
12259 if test -n "$MAKEINFO"; then
12260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
12261 $as_echo "$MAKEINFO" >&6; }
12263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12264 $as_echo "no" >&6; }
12268 if test "_$MAKEINFO" = "_"; then
12269 MAKEINFO="@echo Makeinfo is missing. Info documentation will not be built.;true"
12271 case "$MAKEINFO" in
12273 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
12274 *** Makeinfo is missing. Info documentation will not be built." >&5
12275 $as_echo "$as_me: WARNING:
12276 *** Makeinfo is missing. Info documentation will not be built." >&2;}
12284 # See if we need a separate native compiler.
12285 if test $cross_compiling = no; then
12289 for ac_prog in gcc cc
12291 # Extract the first word of "$ac_prog", so it can be a program name with args.
12292 set dummy $ac_prog; ac_word=$2
12293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12294 $as_echo_n "checking for $ac_word... " >&6; }
12295 if ${ac_cv_prog_BUILD_CC+:} false; then :
12296 $as_echo_n "(cached) " >&6
12298 if test -n "$BUILD_CC"; then
12299 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
12301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12302 for as_dir in $PATH
12305 test -z "$as_dir" && as_dir=.
12306 for ac_exec_ext in '' $ac_executable_extensions; do
12307 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12308 ac_cv_prog_BUILD_CC="$ac_prog"
12309 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12318 BUILD_CC=$ac_cv_prog_BUILD_CC
12319 if test -n "$BUILD_CC"; then
12320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
12321 $as_echo "$BUILD_CC" >&6; }
12323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12324 $as_echo "no" >&6; }
12328 test -n "$BUILD_CC" && break
12332 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
12334 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12335 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12336 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12337 cat >>confdefs.h <<_ACEOF
12338 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12345 for ac_header in net/if.h
12347 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
12348 #if HAVE_SYS_TYPES_H
12349 #include <sys/types.h>
12351 #if HAVE_SYS_SOCKET
12352 #include <sys/socket.h>
12356 if test "x$ac_cv_header_net_if_h" = xyes; then :
12357 cat >>confdefs.h <<_ACEOF
12358 #define HAVE_NET_IF_H 1
12365 for ac_func in vprintf
12367 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
12368 if test "x$ac_cv_func_vprintf" = xyes; then :
12369 cat >>confdefs.h <<_ACEOF
12370 #define HAVE_VPRINTF 1
12373 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
12374 if test "x$ac_cv_func__doprnt" = xyes; then :
12376 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
12384 ac_fn_c_check_member "$LINENO" "struct dirent" "d_reclen" "ac_cv_member_struct_dirent_d_reclen" "#include <dirent.h>
12386 if test "x$ac_cv_member_struct_dirent_d_reclen" = xyes; then :
12388 $as_echo "#define HAVE_RECLEN_DIRENT 1" >>confdefs.h
12392 ac_fn_c_check_member "$LINENO" "struct stat" "st_atim" "ac_cv_member_struct_stat_st_atim" "$ac_includes_default"
12393 if test "x$ac_cv_member_struct_stat_st_atim" = xyes; then :
12395 cat >>confdefs.h <<_ACEOF
12396 #define HAVE_STRUCT_STAT_ST_ATIM 1
12402 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "#include <sys/types.h>
12404 if test "x$ac_cv_type_ssize_t" = xyes; then :
12406 $as_echo "#define HAVE_TYPE_SSIZE_T 1" >>confdefs.h
12410 ac_fn_c_check_decl "$LINENO" "llseek" "ac_cv_have_decl_llseek" "#include <unistd.h>
12412 if test "x$ac_cv_have_decl_llseek" = xyes; then :
12414 $as_echo "#define HAVE_LLSEEK_PROTOTYPE 1" >>confdefs.h
12418 ac_fn_c_check_decl "$LINENO" "lseek64" "ac_cv_have_decl_lseek64" "#define _LARGEFILE_SOURCE
12419 #define _LARGEFILE64_SOURCE
12420 #include <unistd.h>
12422 if test "x$ac_cv_have_decl_lseek64" = xyes; then :
12424 $as_echo "#define HAVE_LSEEK64_PROTOTYPE 1" >>confdefs.h
12428 # The cast to long int works around a bug in the HP C Compiler
12429 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12430 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12431 # This bug is HP SR number 8606223364.
12432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
12433 $as_echo_n "checking size of short... " >&6; }
12434 if ${ac_cv_sizeof_short+:} false; then :
12435 $as_echo_n "(cached) " >&6
12437 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
12440 if test "$ac_cv_type_short" = yes; then
12441 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12442 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12443 as_fn_error 77 "cannot compute sizeof (short)
12444 See \`config.log' for more details" "$LINENO" 5; }
12446 ac_cv_sizeof_short=0
12451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
12452 $as_echo "$ac_cv_sizeof_short" >&6; }
12456 cat >>confdefs.h <<_ACEOF
12457 #define SIZEOF_SHORT $ac_cv_sizeof_short
12461 # The cast to long int works around a bug in the HP C Compiler
12462 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12463 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12464 # This bug is HP SR number 8606223364.
12465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
12466 $as_echo_n "checking size of int... " >&6; }
12467 if ${ac_cv_sizeof_int+:} false; then :
12468 $as_echo_n "(cached) " >&6
12470 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
12473 if test "$ac_cv_type_int" = yes; then
12474 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12475 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12476 as_fn_error 77 "cannot compute sizeof (int)
12477 See \`config.log' for more details" "$LINENO" 5; }
12484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
12485 $as_echo "$ac_cv_sizeof_int" >&6; }
12489 cat >>confdefs.h <<_ACEOF
12490 #define SIZEOF_INT $ac_cv_sizeof_int
12494 # The cast to long int works around a bug in the HP C Compiler
12495 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12496 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12497 # This bug is HP SR number 8606223364.
12498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
12499 $as_echo_n "checking size of long... " >&6; }
12500 if ${ac_cv_sizeof_long+:} false; then :
12501 $as_echo_n "(cached) " >&6
12503 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
12506 if test "$ac_cv_type_long" = yes; then
12507 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12508 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12509 as_fn_error 77 "cannot compute sizeof (long)
12510 See \`config.log' for more details" "$LINENO" 5; }
12512 ac_cv_sizeof_long=0
12517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
12518 $as_echo "$ac_cv_sizeof_long" >&6; }
12522 cat >>confdefs.h <<_ACEOF
12523 #define SIZEOF_LONG $ac_cv_sizeof_long
12527 # The cast to long int works around a bug in the HP C Compiler
12528 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12529 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12530 # This bug is HP SR number 8606223364.
12531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
12532 $as_echo_n "checking size of long long... " >&6; }
12533 if ${ac_cv_sizeof_long_long+:} false; then :
12534 $as_echo_n "(cached) " >&6
12536 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
12539 if test "$ac_cv_type_long_long" = yes; then
12540 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12541 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12542 as_fn_error 77 "cannot compute sizeof (long long)
12543 See \`config.log' for more details" "$LINENO" 5; }
12545 ac_cv_sizeof_long_long=0
12550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
12551 $as_echo "$ac_cv_sizeof_long_long" >&6; }
12555 cat >>confdefs.h <<_ACEOF
12556 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
12560 # The cast to long int works around a bug in the HP C Compiler
12561 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12562 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12563 # This bug is HP SR number 8606223364.
12564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
12565 $as_echo_n "checking size of off_t... " >&6; }
12566 if ${ac_cv_sizeof_off_t+:} false; then :
12567 $as_echo_n "(cached) " >&6
12569 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
12572 if test "$ac_cv_type_off_t" = yes; then
12573 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12574 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12575 as_fn_error 77 "cannot compute sizeof (off_t)
12576 See \`config.log' for more details" "$LINENO" 5; }
12578 ac_cv_sizeof_off_t=0
12583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
12584 $as_echo "$ac_cv_sizeof_off_t" >&6; }
12588 cat >>confdefs.h <<_ACEOF
12589 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
12593 SIZEOF_SHORT=$ac_cv_sizeof_short
12594 SIZEOF_INT=$ac_cv_sizeof_int
12595 SIZEOF_LONG=$ac_cv_sizeof_long
12596 SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
12597 SIZEOF_OFF_T=$ac_cv_sizeof_off_t
12603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
12604 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
12605 if ${ac_cv_c_bigendian+:} false; then :
12606 $as_echo_n "(cached) " >&6
12608 ac_cv_c_bigendian=unknown
12609 # See if we're dealing with a universal compiler.
12610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12611 /* end confdefs.h. */
12612 #ifndef __APPLE_CC__
12613 not a universal capable compiler
12618 if ac_fn_c_try_compile "$LINENO"; then :
12620 # Check for potential -arch flags. It is not universal unless
12621 # there are at least two -arch flags with different values.
12624 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
12625 if test -n "$ac_prev"; then
12627 i?86 | x86_64 | ppc | ppc64)
12628 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
12631 ac_cv_c_bigendian=universal
12637 elif test "x$ac_word" = "x-arch"; then
12642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12643 if test $ac_cv_c_bigendian = unknown; then
12644 # See if sys/param.h defines the BYTE_ORDER macro.
12645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12646 /* end confdefs.h. */
12647 #include <sys/types.h>
12648 #include <sys/param.h>
12653 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
12654 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
12656 bogus endian macros
12663 if ac_fn_c_try_compile "$LINENO"; then :
12664 # It does; now see whether it defined to BIG_ENDIAN or not.
12665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12666 /* end confdefs.h. */
12667 #include <sys/types.h>
12668 #include <sys/param.h>
12673 #if BYTE_ORDER != BIG_ENDIAN
12681 if ac_fn_c_try_compile "$LINENO"; then :
12682 ac_cv_c_bigendian=yes
12684 ac_cv_c_bigendian=no
12686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12690 if test $ac_cv_c_bigendian = unknown; then
12691 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
12692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12693 /* end confdefs.h. */
12694 #include <limits.h>
12699 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
12700 bogus endian macros
12707 if ac_fn_c_try_compile "$LINENO"; then :
12708 # It does; now see whether it defined to _BIG_ENDIAN or not.
12709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12710 /* end confdefs.h. */
12711 #include <limits.h>
12716 #ifndef _BIG_ENDIAN
12724 if ac_fn_c_try_compile "$LINENO"; then :
12725 ac_cv_c_bigendian=yes
12727 ac_cv_c_bigendian=no
12729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12733 if test $ac_cv_c_bigendian = unknown; then
12734 # Compile a test program.
12735 if test "$cross_compiling" = yes; then :
12736 # Try to guess by grepping values from an object file.
12737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12738 /* end confdefs.h. */
12739 short int ascii_mm[] =
12740 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12741 short int ascii_ii[] =
12742 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12743 int use_ascii (int i) {
12744 return ascii_mm[i] + ascii_ii[i];
12746 short int ebcdic_ii[] =
12747 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12748 short int ebcdic_mm[] =
12749 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12750 int use_ebcdic (int i) {
12751 return ebcdic_mm[i] + ebcdic_ii[i];
12758 return use_ascii (foo) == use_ebcdic (foo);
12763 if ac_fn_c_try_compile "$LINENO"; then :
12764 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
12765 ac_cv_c_bigendian=yes
12767 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
12768 if test "$ac_cv_c_bigendian" = unknown; then
12769 ac_cv_c_bigendian=no
12771 # finding both strings is unlikely to happen, but who knows?
12772 ac_cv_c_bigendian=unknown
12776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12779 /* end confdefs.h. */
12780 $ac_includes_default
12785 /* Are we little or big endian? From Harbison&Steele. */
12789 char c[sizeof (long int)];
12792 return u.c[sizeof (long int) - 1] == 1;
12798 if ac_fn_c_try_run "$LINENO"; then :
12799 ac_cv_c_bigendian=no
12801 ac_cv_c_bigendian=yes
12803 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12804 conftest.$ac_objext conftest.beam conftest.$ac_ext
12809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
12810 $as_echo "$ac_cv_c_bigendian" >&6; }
12811 case $ac_cv_c_bigendian in #(
12813 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
12819 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
12823 as_fn_error $? "unknown endianness
12824 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
12827 if test $cross_compiling = no; then
12828 BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
12830 CROSS_COMPILE="1" BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
12832 ASM_TYPES_HEADER=./asm_types.h
12834 echo "/* These defines are needed for the public ext2fs.h header file */" \
12836 if grep HAVE_SYS_TYPES_H confdefs.h > tmp_config.$$; then
12837 uniq tmp_config.$$ >> public_config.h
12839 echo "#undef HAVE_SYS_TYPES_H" >> public_config.h
12841 if grep WORDS_BIGENDIAN confdefs.h > tmp_config.$$; then
12842 uniq tmp_config.$$ >> public_config.h
12844 echo "#undef WORDS_BIGENDIAN" >> public_config.h
12846 rm -f tmp_config.$$
12847 PUBLIC_CONFIG_HEADER=./public_config.h
12849 for ac_header in inttypes.h
12851 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
12852 if test "x$ac_cv_header_inttypes_h" = xyes; then :
12853 cat >>confdefs.h <<_ACEOF
12854 #define HAVE_INTTYPES_H 1
12861 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
12862 if test "x$ac_cv_type_intptr_t" = xyes; then :
12864 cat >>confdefs.h <<_ACEOF
12865 #define HAVE_INTPTR_T 1
12871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat has a st_flags field" >&5
12872 $as_echo_n "checking whether struct stat has a st_flags field... " >&6; }
12873 if ${e2fsprogs_cv_struct_st_flags+:} false; then :
12874 $as_echo_n "(cached) " >&6
12876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12877 /* end confdefs.h. */
12878 #include <sys/stat.h>
12882 struct stat stat; stat.st_flags = 0;
12887 if ac_fn_c_try_compile "$LINENO"; then :
12888 e2fsprogs_cv_struct_st_flags=yes
12890 e2fsprogs_cv_struct_st_flags=no
12892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags" >&5
12896 $as_echo "$e2fsprogs_cv_struct_st_flags" >&6; }
12897 if test "$e2fsprogs_cv_struct_st_flags" = yes; then
12898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether st_flags field is useful" >&5
12899 $as_echo_n "checking whether st_flags field is useful... " >&6; }
12900 if ${e2fsprogs_cv_struct_st_flags_immut+:} false; then :
12901 $as_echo_n "(cached) " >&6
12903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12904 /* end confdefs.h. */
12905 #include <sys/stat.h>
12909 struct stat stat; stat.st_flags |= UF_IMMUTABLE;
12914 if ac_fn_c_try_compile "$LINENO"; then :
12915 e2fsprogs_cv_struct_st_flags_immut=yes
12917 e2fsprogs_cv_struct_st_flags_immut=no
12919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags_immut" >&5
12923 $as_echo "$e2fsprogs_cv_struct_st_flags_immut" >&6; }
12924 if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
12926 $as_echo "#define HAVE_STAT_FLAGS 1" >>confdefs.h
12930 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h>
12931 #include <sys/socket.h>
12933 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
12935 cat >>confdefs.h <<_ACEOF
12936 #define HAVE_SA_LEN 1
12941 if test -n "$BLKID_CMT"; then
12942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing blkid_probe_all" >&5
12943 $as_echo_n "checking for library containing blkid_probe_all... " >&6; }
12944 if ${ac_cv_search_blkid_probe_all+:} false; then :
12945 $as_echo_n "(cached) " >&6
12947 ac_func_search_save_LIBS=$LIBS
12948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12949 /* end confdefs.h. */
12951 /* Override any GCC internal prototype to avoid an error.
12952 Use char because int might match the return type of a GCC
12953 builtin and then its argument prototype would still apply. */
12957 char blkid_probe_all ();
12961 return blkid_probe_all ();
12966 for ac_lib in '' blkid; do
12967 if test -z "$ac_lib"; then
12968 ac_res="none required"
12971 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12973 if ac_fn_c_try_link "$LINENO"; then :
12974 ac_cv_search_blkid_probe_all=$ac_res
12976 rm -f core conftest.err conftest.$ac_objext \
12978 if ${ac_cv_search_blkid_probe_all+:} false; then :
12982 if ${ac_cv_search_blkid_probe_all+:} false; then :
12985 ac_cv_search_blkid_probe_all=no
12987 rm conftest.$ac_ext
12988 LIBS=$ac_func_search_save_LIBS
12990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_blkid_probe_all" >&5
12991 $as_echo "$ac_cv_search_blkid_probe_all" >&6; }
12992 ac_res=$ac_cv_search_blkid_probe_all
12993 if test "$ac_res" != no; then :
12994 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12999 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 pread pwrite pread64 pwrite64 secure_getenv setmntent setresgid setresuid snprintf srandom stpcpy strcasecmp strdup strnlen strptime strtoull sync_file_range sysconf usleep utime valloc
13001 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13002 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13003 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13004 cat >>confdefs.h <<_ACEOF
13005 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
13013 $as_echo_n "checking for socket in -lsocket... " >&6; }
13014 if ${ac_cv_lib_socket_socket+:} false; then :
13015 $as_echo_n "(cached) " >&6
13017 ac_check_lib_save_LIBS=$LIBS
13018 LIBS="-lsocket $LIBS"
13019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13020 /* end confdefs.h. */
13022 /* Override any GCC internal prototype to avoid an error.
13023 Use char because int might match the return type of a GCC
13024 builtin and then its argument prototype would still apply. */
13037 if ac_fn_c_try_link "$LINENO"; then :
13038 ac_cv_lib_socket_socket=yes
13040 ac_cv_lib_socket_socket=no
13042 rm -f core conftest.err conftest.$ac_objext \
13043 conftest$ac_exeext conftest.$ac_ext
13044 LIBS=$ac_check_lib_save_LIBS
13046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
13047 $as_echo "$ac_cv_lib_socket_socket" >&6; }
13048 if test "x$ac_cv_lib_socket_socket" = xyes; then :
13049 SOCKET_LIB=-lsocket
13053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for optreset" >&5
13054 $as_echo_n "checking for optreset... " >&6; }
13055 if ${ac_cv_have_optreset+:} false; then :
13056 $as_echo_n "(cached) " >&6
13058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13059 /* end confdefs.h. */
13060 #include <unistd.h>
13063 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13064 $EGREP "optreset" >/dev/null 2>&1; then :
13065 ac_cv_have_optreset=yes
13067 ac_cv_have_optreset=no
13072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_optreset" >&5
13073 $as_echo "$ac_cv_have_optreset" >&6; }
13074 if test $ac_cv_have_optreset = yes; then
13076 $as_echo "#define HAVE_OPTRESET 1" >>confdefs.h
13081 ac_fn_c_check_func "$LINENO" "sem_init" "ac_cv_func_sem_init"
13082 if test "x$ac_cv_func_sem_init" = xyes; then :
13085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lpthread" >&5
13086 $as_echo_n "checking for sem_init in -lpthread... " >&6; }
13087 if ${ac_cv_lib_pthread_sem_init+:} false; then :
13088 $as_echo_n "(cached) " >&6
13090 ac_check_lib_save_LIBS=$LIBS
13091 LIBS="-lpthread $LIBS"
13092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13093 /* end confdefs.h. */
13095 /* Override any GCC internal prototype to avoid an error.
13096 Use char because int might match the return type of a GCC
13097 builtin and then its argument prototype would still apply. */
13105 return sem_init ();
13110 if ac_fn_c_try_link "$LINENO"; then :
13111 ac_cv_lib_pthread_sem_init=yes
13113 ac_cv_lib_pthread_sem_init=no
13115 rm -f core conftest.err conftest.$ac_objext \
13116 conftest$ac_exeext conftest.$ac_ext
13117 LIBS=$ac_check_lib_save_LIBS
13119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_sem_init" >&5
13120 $as_echo "$ac_cv_lib_pthread_sem_init" >&6; }
13121 if test "x$ac_cv_lib_pthread_sem_init" = xyes; then :
13122 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
13124 SEM_INIT_LIB=-lpthread
13126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lrt" >&5
13127 $as_echo_n "checking for sem_init in -lrt... " >&6; }
13128 if ${ac_cv_lib_rt_sem_init+:} false; then :
13129 $as_echo_n "(cached) " >&6
13131 ac_check_lib_save_LIBS=$LIBS
13133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13134 /* end confdefs.h. */
13136 /* Override any GCC internal prototype to avoid an error.
13137 Use char because int might match the return type of a GCC
13138 builtin and then its argument prototype would still apply. */
13146 return sem_init ();
13151 if ac_fn_c_try_link "$LINENO"; then :
13152 ac_cv_lib_rt_sem_init=yes
13154 ac_cv_lib_rt_sem_init=no
13156 rm -f core conftest.err conftest.$ac_objext \
13157 conftest$ac_exeext conftest.$ac_ext
13158 LIBS=$ac_check_lib_save_LIBS
13160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sem_init" >&5
13161 $as_echo "$ac_cv_lib_rt_sem_init" >&6; }
13162 if test "x$ac_cv_lib_rt_sem_init" = xyes; then :
13163 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
13167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lposix4" >&5
13168 $as_echo_n "checking for sem_init in -lposix4... " >&6; }
13169 if ${ac_cv_lib_posix4_sem_init+:} false; then :
13170 $as_echo_n "(cached) " >&6
13172 ac_check_lib_save_LIBS=$LIBS
13173 LIBS="-lposix4 $LIBS"
13174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13175 /* end confdefs.h. */
13177 /* Override any GCC internal prototype to avoid an error.
13178 Use char because int might match the return type of a GCC
13179 builtin and then its argument prototype would still apply. */
13187 return sem_init ();
13192 if ac_fn_c_try_link "$LINENO"; then :
13193 ac_cv_lib_posix4_sem_init=yes
13195 ac_cv_lib_posix4_sem_init=no
13197 rm -f core conftest.err conftest.$ac_objext \
13198 conftest$ac_exeext conftest.$ac_ext
13199 LIBS=$ac_check_lib_save_LIBS
13201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sem_init" >&5
13202 $as_echo "$ac_cv_lib_posix4_sem_init" >&6; }
13203 if test "x$ac_cv_lib_posix4_sem_init" = xyes; then :
13204 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
13206 SEM_INIT_LIB=-lposix4
13215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unified diff option" >&5
13216 $as_echo_n "checking for unified diff option... " >&6; }
13217 if diff -u $0 $0 > /dev/null 2>&1 ; then
13222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNI_DIFF_OPTS" >&5
13223 $as_echo "$UNI_DIFF_OPTS" >&6; }
13228 $as_echo "#define HAVE_EXT2_IOCTLS 1" >>confdefs.h
13248 linux* | gnu* | k*bsd*-gnu)
13249 if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
13251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, root_prefix defaults to ''" >&5
13252 $as_echo "On $host_os systems, root_prefix defaults to ''" >&6; }
13257 linux* | gnu* | k*bsd*-gnu)
13258 if test "$prefix" = NONE ; then
13260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, prefix defaults to /usr" >&5
13261 $as_echo "On $host_os systems, prefix defaults to /usr" >&6; }
13262 if test "$mandir" = '${prefix}/man' ; then
13263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ...and mandir defaults to /usr/share/man" >&5
13264 $as_echo "...and mandir defaults to /usr/share/man" >&6; }
13265 mandir=/usr/share/man
13270 if test "$root_prefix" = NONE ; then
13271 if test "$prefix" = NONE ; then
13272 root_prefix="$ac_default_prefix"
13274 root_prefix="$prefix"
13276 root_bindir=$bindir
13277 root_sbindir=$sbindir
13278 root_libdir=$libdir
13279 root_sysconfdir=$sysconfdir
13281 root_bindir='${root_prefix}/bin'
13282 root_sbindir='${root_prefix}/sbin'
13283 root_libdir='${root_prefix}/lib'
13284 root_sysconfdir='${root_prefix}/etc'
13286 if test "$bindir" != '${exec_prefix}/bin'; then
13287 root_bindir=$bindir
13288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_bindir to $root_bindir" >&5
13289 $as_echo "Setting root_bindir to $root_bindir" >&6; }
13291 if test "$sbindir" != '${exec_prefix}/sbin'; then
13292 root_sbindir=$sbindir
13293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sbindir to $root_sbindir" >&5
13294 $as_echo "Setting root_sbindir to $root_sbindir" >&6; }
13296 if test "$libdir" != '${exec_prefix}/lib'; then
13297 root_libdir=$libdir
13298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_libdir to $root_libdir" >&5
13299 $as_echo "Setting root_libdir to $root_libdir" >&6; }
13301 if test "$sysconfdir" != '${prefix}/etc'; then
13302 root_sysconfdir=$sysconfdir
13303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sysconfdir to $root_sysconfdir" >&5
13304 $as_echo "Setting root_sysconfdir to $root_sysconfdir" >&6; }
13312 # Check whether --with-multiarch was given.
13313 if test "${with_multiarch+set}" = set; then :
13314 withval=$with_multiarch; if test "$withval" = "lib64"; then
13318 libdir=$libdir/$withval
13319 root_libdir=$root_libdir/$withval
13323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can link with -static" >&5
13324 $as_echo_n "checking whether we can link with -static... " >&6; }
13325 if ${ac_cv_e2fsprogs_use_static+:} false; then :
13326 $as_echo_n "(cached) " >&6
13328 SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static"
13329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13330 /* end confdefs.h. */
13340 if ac_fn_c_try_link "$LINENO"; then :
13341 ac_cv_e2fsprogs_use_static=yes
13343 ac_cv_e2fsprogs_use_static=no
13345 rm -f core conftest.err conftest.$ac_objext \
13346 conftest$ac_exeext conftest.$ac_ext
13347 LDFLAGS=$SAVE_LDFLAGS
13352 ac_cv_e2fsprogs_use_static=no
13355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_e2fsprogs_use_static" >&5
13356 $as_echo "$ac_cv_e2fsprogs_use_static" >&6; }
13358 if test $ac_cv_e2fsprogs_use_static = yes; then
13359 LDFLAG_STATIC=-static
13364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using Apple Darwin / GNU libintl workaround" >&5
13365 $as_echo "Using Apple Darwin / GNU libintl workaround" >&6; }
13367 $as_echo "#define _INTL_REDIRECT_MACROS 1" >>confdefs.h
13371 SS_DIR=`cd ${srcdir}/lib/ss; pwd`
13372 ET_DIR=`cd ${srcdir}/lib/et; pwd`
13375 if test "$cross_compiling" = yes ; then
13378 DO_TEST_SUITE=check
13381 INCLUDES='-I. -I$(top_builddir)/lib -I$(top_srcdir)/lib'
13382 if test -n "$CPPFLAGS" ; then
13383 INCLUDES="$INCLUDES $CPPFLAGS"
13385 if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
13386 INCLUDES=$INCLUDES' -I$(top_builddir)/intl -I$(top_srcdir)/intl'
13388 if test -n "$WITH_DIET_LIBC" ; then
13389 INCLUDES="$INCLUDES -D_REENTRANT"
13394 if test -n "$ac_aux_dir"; then
13395 case "$ac_aux_dir" in
13396 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
13397 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
13400 if test -z "$MKINSTALLDIRS"; then
13401 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
13405 if test $cross_compiling = no; then
13406 BUILD_CFLAGS="$CFLAGS $CPPFLAGS $INCLUDES -DHAVE_CONFIG_H"
13407 BUILD_LDFLAGS="$LDFLAGS"
13411 test -d lib || mkdir lib
13412 test -d include || mkdir include
13413 test -d include/linux || mkdir include/linux
13414 test -d include/asm || mkdir include/asm
13415 for i in MCONFIG Makefile e2fsprogs.spec \
13416 util/Makefile util/subst.conf util/gen-tarball util/install-symlink \
13417 lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \
13418 lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \
13419 lib/uuid/Makefile lib/uuid/uuid_types.h \
13420 lib/blkid/Makefile lib/blkid/blkid_types.h lib/quota/Makefile \
13421 lib/ss/ss.pc lib/uuid/uuid.pc lib/et/com_err.pc \
13422 lib/e2p/e2p.pc lib/blkid/blkid.pc lib/ext2fs/ext2fs.pc \
13423 misc/Makefile ext2ed/Makefile e2fsck/Makefile \
13424 debugfs/Makefile tests/Makefile tests/progs/Makefile \
13425 resize/Makefile doc/Makefile intl/Makefile \
13426 intl/libgnuintl.h po/Makefile.in ; do
13427 if test -d `dirname ${srcdir}/$i` ; then
13428 outlist="$outlist $i"
13431 ac_config_files="$ac_config_files $outlist"
13433 cat >confcache <<\_ACEOF
13434 # This file is a shell script that caches the results of configure
13435 # tests run on this system so they can be shared between configure
13436 # scripts and configure runs, see configure's option --config-cache.
13437 # It is not useful on other systems. If it contains results you don't
13438 # want to keep, you may remove or edit it.
13440 # config.status only pays attention to the cache file if you give it
13441 # the --recheck option to rerun configure.
13443 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13444 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13445 # following values.
13449 # The following way of writing the cache mishandles newlines in values,
13450 # but we know of no workaround that is simple, portable, and efficient.
13451 # So, we kill variables containing newlines.
13452 # Ultrix sh set writes to stderr and can't be redirected directly,
13453 # and sets the high bit in the cache file unless we assign to the vars.
13455 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13456 eval ac_val=\$$ac_var
13460 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13461 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13464 _ | IFS | as_nl) ;; #(
13465 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13466 *) { eval $ac_var=; unset $ac_var;} ;;
13472 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13473 *${as_nl}ac_space=\ *)
13474 # `set' does not quote correctly, so add quotes: double-quote
13475 # substitution turns \\\\ into \\, and sed turns \\ into \.
13478 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13481 # `set' quotes correctly as required by POSIX, so do not add quotes.
13482 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13491 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13493 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13495 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13496 if test -w "$cache_file"; then
13497 if test "x$cache_file" != "x/dev/null"; then
13498 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13499 $as_echo "$as_me: updating cache $cache_file" >&6;}
13500 if test ! -f "$cache_file" || test -h "$cache_file"; then
13501 cat confcache >"$cache_file"
13503 case $cache_file in #(
13505 mv -f confcache "$cache_file"$$ &&
13506 mv -f "$cache_file"$$ "$cache_file" ;; #(
13508 mv -f confcache "$cache_file" ;;
13513 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13514 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13519 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13520 # Let make expand exec_prefix.
13521 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13523 DEFS=-DHAVE_CONFIG_H
13528 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13529 # 1. Remove the extension, and $U if already installed.
13530 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13531 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13532 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13533 # will be set to the directory where LIBOBJS objects are built.
13534 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13535 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13537 LIBOBJS=$ac_libobjs
13539 LTLIBOBJS=$ac_ltlibobjs
13544 : "${CONFIG_STATUS=./config.status}"
13546 ac_clean_files_save=$ac_clean_files
13547 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13548 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13549 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13551 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13553 # Generated by $as_me.
13554 # Run this file to recreate the current configuration.
13555 # Compiler output produced by configure, useful for debugging
13556 # configure, is in config.log if it exists.
13559 ac_cs_recheck=false
13562 SHELL=\${CONFIG_SHELL-$SHELL}
13565 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13566 ## -------------------- ##
13567 ## M4sh Initialization. ##
13568 ## -------------------- ##
13570 # Be more Bourne compatible
13571 DUALCASE=1; export DUALCASE # for MKS sh
13572 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13575 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13576 # is contrary to our usage. Disable this feature.
13577 alias -g '${1+"$@"}'='"$@"'
13578 setopt NO_GLOB_SUBST
13580 case `(set -o) 2>/dev/null` in #(
13592 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13593 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13594 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13595 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13596 # Prefer a ksh shell builtin over an external printf program on Solaris,
13597 # but without wasting forks for bash or zsh.
13598 if test -z "$BASH_VERSION$ZSH_VERSION" \
13599 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13600 as_echo='print -r --'
13601 as_echo_n='print -rn --'
13602 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13603 as_echo='printf %s\n'
13604 as_echo_n='printf %s'
13606 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13607 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13608 as_echo_n='/usr/ucb/echo -n'
13610 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13611 as_echo_n_body='eval
13615 expr "X$arg" : "X\\(.*\\)$as_nl";
13616 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13618 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13620 export as_echo_n_body
13621 as_echo_n='sh -c $as_echo_n_body as_echo'
13623 export as_echo_body
13624 as_echo='sh -c $as_echo_body as_echo'
13627 # The user is always right.
13628 if test "${PATH_SEPARATOR+set}" != set; then
13630 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13631 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13638 # We need space, tab and new line, in precisely that order. Quoting is
13639 # there to prevent editors from complaining about space-tab.
13640 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13641 # splitting by setting IFS to empty value.)
13644 # Find who we are. Look in the path if we contain no directory separator.
13647 *[\\/]* ) as_myself=$0 ;;
13648 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13649 for as_dir in $PATH
13652 test -z "$as_dir" && as_dir=.
13653 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13659 # We did not find ourselves, most probably we were run as `sh COMMAND'
13660 # in which case we are not to be found in the path.
13661 if test "x$as_myself" = x; then
13664 if test ! -f "$as_myself"; then
13665 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13669 # Unset variables that we do not need and which cause bugs (e.g. in
13670 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13671 # suppresses any "Segmentation fault" message there. '((' could
13672 # trigger a bug in pdksh 5.2.14.
13673 for as_var in BASH_ENV ENV MAIL MAILPATH
13674 do eval test x\${$as_var+set} = xset \
13675 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13688 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13691 # as_fn_error STATUS ERROR [LINENO LOG_FD]
13692 # ----------------------------------------
13693 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13694 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13695 # script with STATUS, using 1 if that was 0.
13698 as_status=$1; test $as_status -eq 0 && as_status=1
13700 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13701 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13703 $as_echo "$as_me: error: $2" >&2
13704 as_fn_exit $as_status
13708 # as_fn_set_status STATUS
13709 # -----------------------
13710 # Set $? to STATUS, without forking.
13711 as_fn_set_status ()
13714 } # as_fn_set_status
13716 # as_fn_exit STATUS
13717 # -----------------
13718 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13722 as_fn_set_status $1
13728 # Portably unset VAR.
13731 { eval $1=; unset $1;}
13733 as_unset=as_fn_unset
13734 # as_fn_append VAR VALUE
13735 # ----------------------
13736 # Append the text in VALUE to the end of the definition contained in VAR. Take
13737 # advantage of any shell optimizations that allow amortized linear growth over
13738 # repeated appends, instead of the typical quadratic growth present in naive
13740 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13741 eval 'as_fn_append ()
13752 # as_fn_arith ARG...
13753 # ------------------
13754 # Perform arithmetic evaluation on the ARGs, and store the result in the
13755 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13756 # must be portable across $(()) and expr.
13757 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13758 eval 'as_fn_arith ()
13765 as_val=`expr "$@" || test $? -eq 1`
13770 if expr a : '\(a\)' >/dev/null 2>&1 &&
13771 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13777 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13778 as_basename=basename
13783 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13789 as_me=`$as_basename -- "$0" ||
13790 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13791 X"$0" : 'X\(//\)$' \| \
13792 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13794 sed '/^.*\/\([^/][^/]*\)\/*$/{
13808 # Avoid depending upon Character Ranges.
13809 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13810 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13811 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13812 as_cr_digits='0123456789'
13813 as_cr_alnum=$as_cr_Letters$as_cr_digits
13815 ECHO_C= ECHO_N= ECHO_T=
13816 case `echo -n x` in #(((((
13818 case `echo 'xy\c'` in
13819 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13821 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13828 rm -f conf$$ conf$$.exe conf$$.file
13829 if test -d conf$$.dir; then
13830 rm -f conf$$.dir/conf$$.file
13833 mkdir conf$$.dir 2>/dev/null
13835 if (echo >conf$$.file) 2>/dev/null; then
13836 if ln -s conf$$.file conf$$ 2>/dev/null; then
13838 # ... but there are two gotchas:
13839 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13840 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13841 # In both cases, we have to default to `cp -pR'.
13842 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13844 elif ln conf$$.file conf$$ 2>/dev/null; then
13852 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13853 rmdir conf$$.dir 2>/dev/null
13858 # Create "$as_dir" as a directory, including parents if necessary.
13863 -*) as_dir=./$as_dir;;
13865 test -d "$as_dir" || eval $as_mkdir_p || {
13869 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13870 *) as_qdir=$as_dir;;
13872 as_dirs="'$as_qdir' $as_dirs"
13873 as_dir=`$as_dirname -- "$as_dir" ||
13874 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13875 X"$as_dir" : 'X\(//\)[^/]' \| \
13876 X"$as_dir" : 'X\(//\)$' \| \
13877 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13878 $as_echo X"$as_dir" |
13879 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13883 /^X\(\/\/\)[^/].*/{
13896 test -d "$as_dir" && break
13898 test -z "$as_dirs" || eval "mkdir $as_dirs"
13899 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13903 if mkdir -p . 2>/dev/null; then
13904 as_mkdir_p='mkdir -p "$as_dir"'
13906 test -d ./-p && rmdir ./-p
13911 # as_fn_executable_p FILE
13912 # -----------------------
13913 # Test if FILE is an executable regular file.
13914 as_fn_executable_p ()
13916 test -f "$1" && test -x "$1"
13917 } # as_fn_executable_p
13918 as_test_x='test -x'
13919 as_executable_p=as_fn_executable_p
13921 # Sed expression to map a string onto a valid CPP name.
13922 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13924 # Sed expression to map a string onto a valid variable name.
13925 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13929 ## ----------------------------------- ##
13930 ## Main body of $CONFIG_STATUS script. ##
13931 ## ----------------------------------- ##
13933 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13935 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13936 # Save the log message, to keep $0 and so on meaningful, and to
13937 # report actual input values of CONFIG_FILES etc. instead of their
13938 # values after options handling.
13940 This file was extended by $as_me, which was
13941 generated by GNU Autoconf 2.69. Invocation command line was
13943 CONFIG_FILES = $CONFIG_FILES
13944 CONFIG_HEADERS = $CONFIG_HEADERS
13945 CONFIG_LINKS = $CONFIG_LINKS
13946 CONFIG_COMMANDS = $CONFIG_COMMANDS
13949 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13954 case $ac_config_files in *"
13955 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13958 case $ac_config_headers in *"
13959 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13963 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13964 # Files that config.status was made for.
13965 config_files="$ac_config_files"
13966 config_headers="$ac_config_headers"
13967 config_commands="$ac_config_commands"
13971 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13973 \`$as_me' instantiates files and other configuration actions
13974 from templates according to the current configuration. Unless the files
13975 and actions are specified as TAGs, all are instantiated by default.
13977 Usage: $0 [OPTION]... [TAG]...
13979 -h, --help print this help, then exit
13980 -V, --version print version number and configuration settings, then exit
13981 --config print configuration, then exit
13982 -q, --quiet, --silent
13983 do not print progress messages
13984 -d, --debug don't remove temporary files
13985 --recheck update $as_me by reconfiguring in the same conditions
13986 --file=FILE[:TEMPLATE]
13987 instantiate the configuration file FILE
13988 --header=FILE[:TEMPLATE]
13989 instantiate the configuration header FILE
13991 Configuration files:
13994 Configuration headers:
13997 Configuration commands:
14000 Report bugs to the package provider."
14003 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14004 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14007 configured by $0, generated by GNU Autoconf 2.69,
14008 with options \\"\$ac_cs_config\\"
14010 Copyright (C) 2012 Free Software Foundation, Inc.
14011 This config.status script is free software; the Free Software Foundation
14012 gives unlimited permission to copy, distribute and modify it."
14019 test -n "\$AWK" || AWK=awk
14022 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14023 # The default lists apply if the user does not specify any file.
14029 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14030 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14034 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14046 # Handling of the options.
14047 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14049 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14050 $as_echo "$ac_cs_version"; exit ;;
14051 --config | --confi | --conf | --con | --co | --c )
14052 $as_echo "$ac_cs_config"; exit ;;
14053 --debug | --debu | --deb | --de | --d | -d )
14055 --file | --fil | --fi | --f )
14058 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14059 '') as_fn_error $? "missing file argument" ;;
14061 as_fn_append CONFIG_FILES " '$ac_optarg'"
14062 ac_need_defaults=false;;
14063 --header | --heade | --head | --hea )
14066 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14068 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14069 ac_need_defaults=false;;
14071 # Conflict between --help and --header
14072 as_fn_error $? "ambiguous option: \`$1'
14073 Try \`$0 --help' for more information.";;
14074 --help | --hel | -h )
14075 $as_echo "$ac_cs_usage"; exit ;;
14076 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14077 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14080 # This is an error.
14081 -*) as_fn_error $? "unrecognized option: \`$1'
14082 Try \`$0 --help' for more information." ;;
14084 *) as_fn_append ac_config_targets " $1"
14085 ac_need_defaults=false ;;
14091 ac_configure_extra_args=
14093 if $ac_cs_silent; then
14095 ac_configure_extra_args="$ac_configure_extra_args --silent"
14099 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14100 if \$ac_cs_recheck; then
14101 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14103 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14104 CONFIG_SHELL='$SHELL'
14105 export CONFIG_SHELL
14110 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14114 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14115 ## Running $as_me. ##
14121 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14125 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
14126 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
14127 # from automake < 1.5.
14128 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
14129 # Capture the value of LINGUAS because we need it to compute CATALOGS.
14130 LINGUAS="${LINGUAS-%UNSET%}"
14135 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14137 # Handling of arguments.
14138 for ac_config_target in $ac_config_targets
14140 case $ac_config_target in
14141 "lib/config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/config.h" ;;
14142 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
14143 "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;;
14145 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14150 # If the user did not use the arguments to specify the items to instantiate,
14151 # then the envvar interface is used. Set only those that are not.
14152 # We use the long form for the default assignment because of an extremely
14153 # bizarre bug on SunOS 4.1.3.
14154 if $ac_need_defaults; then
14155 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14156 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14157 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14160 # Have a temporary directory for convenience. Make it in the build tree
14161 # simply because there is no reason against having it here, and in addition,
14162 # creating and moving files from /tmp can sometimes cause problems.
14163 # Hook for its removal unless debugging.
14164 # Note that there is a small window in which the directory will not be cleaned:
14165 # after its creation but before its name has been assigned to `$tmp'.
14169 trap 'exit_status=$?
14170 : "${ac_tmp:=$tmp}"
14171 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
14173 trap 'as_fn_exit 1' 1 2 13 15
14175 # Create a (secure) tmp directory for tmp files.
14178 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14182 tmp=./conf$$-$RANDOM
14183 (umask 077 && mkdir "$tmp")
14184 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14187 # Set up the scripts for CONFIG_FILES section.
14188 # No need to generate them if there are no CONFIG_FILES.
14189 # This happens for instance with `./config.status config.h'.
14190 if test -n "$CONFIG_FILES"; then
14192 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
14193 ac_cs_awk_getline=:
14194 ac_cs_awk_pipe_init=
14195 ac_cs_awk_read_file='
14196 while ((getline aline < (F[key])) > 0)
14199 ac_cs_awk_pipe_fini=
14201 ac_cs_awk_getline=false
14202 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
14203 ac_cs_awk_read_file='
14205 print "cat " F[key] " &&"
14206 '$ac_cs_awk_pipe_init
14207 # The final `:' finishes the AND list.
14208 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
14210 ac_cr=`echo X | tr X '\015'`
14211 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14212 # But we know of no other shell where ac_cr would be empty at this
14213 # point, so we can use a bashism as a fallback.
14214 if test "x$ac_cr" = x; then
14215 eval ac_cr=\$\'\\r\'
14217 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14218 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14221 ac_cs_awk_cr=$ac_cr
14224 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
14227 # Create commands to substitute file output variables.
14229 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
14230 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
14231 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
14234 } >conf$$files.sh &&
14235 . ./conf$$files.sh ||
14236 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14237 rm -f conf$$files.sh
14240 echo "cat >conf$$subs.awk <<_ACEOF" &&
14241 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14243 } >conf$$subs.sh ||
14244 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14245 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14247 for ac_last_try in false false false false false :; do
14248 . ./conf$$subs.sh ||
14249 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14251 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14252 if test $ac_delim_n = $ac_delim_num; then
14254 elif $ac_last_try; then
14255 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14257 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14260 rm -f conf$$subs.sh
14262 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14263 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14267 s/^/S["/; s/!.*/"]=/
14277 s/\(.\{148\}\)..*/\1/
14279 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14284 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14291 s/\(.\{148\}\)..*/\1/
14293 s/["\\]/\\&/g; s/^/"/; s/$/"/
14297 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14302 ' <conf$$subs.awk | sed '
14307 ' >>$CONFIG_STATUS || ac_write_fail=1
14308 rm -f conf$$subs.awk
14309 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14311 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14312 for (key in S) S_is_set[key] = 1
14314 \$ac_cs_awk_pipe_init
14318 nfields = split(line, field, "@")
14320 len = length(field[1])
14321 for (i = 2; i < nfields; i++) {
14323 keylen = length(key)
14324 if (S_is_set[key]) {
14326 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14327 len += length(value) + length(field[++i])
14332 if (nfields == 3 && !substed) {
14334 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
14335 \$ac_cs_awk_read_file
14341 \$ac_cs_awk_pipe_fini
14344 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14345 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14346 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14349 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14350 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14353 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14354 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14355 # trailing colons and then remove the whole line if VPATH becomes empty
14356 # (actually we leave an empty line to preserve line numbers).
14357 if test "x$srcdir" = x.; then
14358 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
14376 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14377 fi # test -n "$CONFIG_FILES"
14379 # Set up the scripts for CONFIG_HEADERS section.
14380 # No need to generate them if there are no CONFIG_HEADERS.
14381 # This happens for instance with `./config.status Makefile'.
14382 if test -n "$CONFIG_HEADERS"; then
14383 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
14387 # Transform confdefs.h into an awk script `defines.awk', embedded as
14388 # here-document in config.status, that substitutes the proper values into
14389 # config.h.in to produce config.h.
14391 # Create a delimiter string that does not exist in confdefs.h, to ease
14392 # handling of long lines.
14394 for ac_last_try in false false :; do
14395 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14396 if test -z "$ac_tt"; then
14398 elif $ac_last_try; then
14399 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14401 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14405 # For the awk script, D is an array of macro values keyed by name,
14406 # likewise P contains macro parameters if any. Preserve backslash
14407 # newline sequences.
14409 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14411 s/.\{148\}/&'"$ac_delim"'/g
14414 s/^[ ]*#[ ]*define[ ][ ]*/ /
14421 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14423 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14427 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14428 D["\1"]=" \3\\\\\\n"\\/p
14430 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14435 s/.\{148\}/&'"$ac_delim"'/g
14440 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14443 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14445 ' <confdefs.h | sed '
14446 s/'"$ac_delim"'/"\\\
14447 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14449 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14450 for (key in D) D_is_set[key] = 1
14453 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14455 split(line, arg, " ")
14456 if (arg[1] == "#") {
14460 defundef = substr(arg[1], 2)
14463 split(mac1, mac2, "(") #)
14465 prefix = substr(line, 1, index(line, defundef) - 1)
14466 if (D_is_set[macro]) {
14467 # Preserve the white space surrounding the "#".
14468 print prefix "define", macro P[macro] D[macro]
14471 # Replace #undef with comments. This is necessary, for example,
14472 # in the case of _POSIX_SOURCE, which is predefined and required
14473 # on some systems where configure will not decide to define it.
14474 if (defundef == "undef") {
14475 print "/*", prefix defundef, macro, "*/"
14483 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14484 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14485 fi # test -n "$CONFIG_HEADERS"
14488 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14493 :[FHLC]) ac_mode=$ac_tag; continue;;
14495 case $ac_mode$ac_tag in
14497 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14498 :[FH]-) ac_tag=-:-;;
14499 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14516 -) ac_f="$ac_tmp/stdin";;
14517 *) # Look for the file first in the build tree, then in the source tree
14518 # (if the path is not absolute). The absolute path cannot be DOS-style,
14519 # because $ac_f cannot contain `:'.
14523 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14525 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14527 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14528 as_fn_append ac_file_inputs " '$ac_f'"
14531 # Let's still pretend it is `configure' which instantiates (i.e., don't
14532 # use $as_me), people would be surprised to read:
14533 # /* config.h. Generated by config.status. */
14534 configure_input='Generated from '`
14535 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14537 if test x"$ac_file" != x-; then
14538 configure_input="$ac_file. $configure_input"
14539 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14540 $as_echo "$as_me: creating $ac_file" >&6;}
14542 # Neutralize special characters interpreted by sed in replacement strings.
14543 case $configure_input in #(
14544 *\&* | *\|* | *\\* )
14545 ac_sed_conf_input=`$as_echo "$configure_input" |
14546 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14547 *) ac_sed_conf_input=$configure_input;;
14551 *:-:* | *:-) cat >"$ac_tmp/stdin" \
14552 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14557 ac_dir=`$as_dirname -- "$ac_file" ||
14558 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14559 X"$ac_file" : 'X\(//\)[^/]' \| \
14560 X"$ac_file" : 'X\(//\)$' \| \
14561 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14562 $as_echo X"$ac_file" |
14563 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14567 /^X\(\/\/\)[^/].*/{
14580 as_dir="$ac_dir"; as_fn_mkdir_p
14584 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14586 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14587 # A ".." for each directory in $ac_dir_suffix.
14588 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14589 case $ac_top_builddir_sub in
14590 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14591 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14594 ac_abs_top_builddir=$ac_pwd
14595 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14596 # for backward compatibility:
14597 ac_top_builddir=$ac_top_build_prefix
14600 .) # We are building in place.
14602 ac_top_srcdir=$ac_top_builddir_sub
14603 ac_abs_top_srcdir=$ac_pwd ;;
14604 [\\/]* | ?:[\\/]* ) # Absolute name.
14605 ac_srcdir=$srcdir$ac_dir_suffix;
14606 ac_top_srcdir=$srcdir
14607 ac_abs_top_srcdir=$srcdir ;;
14608 *) # Relative name.
14609 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14610 ac_top_srcdir=$ac_top_build_prefix$srcdir
14611 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14613 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14623 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14624 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14626 ac_MKDIR_P=$MKDIR_P
14628 [\\/$]* | ?:[\\/]* ) ;;
14629 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14633 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14634 # If the template does not know about datarootdir, expand it.
14635 # FIXME: This hack should be removed a few years after 2.60.
14636 ac_datarootdir_hack=; ac_datarootdir_seen=
14647 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14648 *datarootdir*) ac_datarootdir_seen=yes;;
14649 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14650 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14651 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14653 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14654 ac_datarootdir_hack='
14655 s&@datadir@&$datadir&g
14656 s&@docdir@&$docdir&g
14657 s&@infodir@&$infodir&g
14658 s&@localedir@&$localedir&g
14659 s&@mandir@&$mandir&g
14660 s&\\\${datarootdir}&$datarootdir&g' ;;
14664 # Neutralize VPATH when `$srcdir' = `.'.
14665 # Shell code in configure.ac might set extrasub.
14666 # FIXME: do we really want to maintain this feature?
14667 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14668 ac_sed_extra="$ac_vpsub
14671 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14673 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14674 s|@configure_input@|$ac_sed_conf_input|;t t
14675 s&@top_builddir@&$ac_top_builddir_sub&;t t
14676 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14677 s&@srcdir@&$ac_srcdir&;t t
14678 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14679 s&@top_srcdir@&$ac_top_srcdir&;t t
14680 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14681 s&@builddir@&$ac_builddir&;t t
14682 s&@abs_builddir@&$ac_abs_builddir&;t t
14683 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14684 s&@INSTALL@&$ac_INSTALL&;t t
14685 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14686 $ac_datarootdir_hack
14688 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
14689 if $ac_cs_awk_getline; then
14690 $AWK -f "$ac_tmp/subs.awk"
14692 $AWK -f "$ac_tmp/subs.awk" | $SHELL
14694 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14696 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14697 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14698 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
14699 "$ac_tmp/out"`; test -z "$ac_out"; } &&
14700 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14701 which seems to be undefined. Please make sure it is defined" >&5
14702 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14703 which seems to be undefined. Please make sure it is defined" >&2;}
14705 rm -f "$ac_tmp/stdin"
14707 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14708 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14710 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14716 if test x"$ac_file" != x-; then
14718 $as_echo "/* $configure_input */" \
14719 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14720 } >"$ac_tmp/config.h" \
14721 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14722 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14723 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14724 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14727 mv "$ac_tmp/config.h" "$ac_file" \
14728 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14731 $as_echo "/* $configure_input */" \
14732 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14733 || as_fn_error $? "could not create -" "$LINENO" 5
14737 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14738 $as_echo "$as_me: executing $ac_file commands" >&6;}
14743 case $ac_file$ac_mode in
14744 "po-directories":C)
14745 for ac_file in $CONFIG_FILES; do
14746 # Support "outfile[:infile[:infile...]]"
14748 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
14750 # PO directories have a Makefile.in generated from Makefile.in.in.
14751 case "$ac_file" in */Makefile.in)
14752 # Adjust a relative srcdir.
14753 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
14754 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
14755 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
14756 # In autoconf-2.13 it is called $ac_given_srcdir.
14757 # In autoconf-2.50 it is called $srcdir.
14758 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
14759 case "$ac_given_srcdir" in
14760 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
14761 /*) top_srcdir="$ac_given_srcdir" ;;
14762 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
14764 # Treat a directory as a PO directory if and only if it has a
14765 # POTFILES.in file. This allows packages to have multiple PO
14766 # directories under different names or in different locations.
14767 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
14768 rm -f "$ac_dir/POTFILES"
14769 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
14770 gt_tab=`printf '\t'`
14771 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"
14772 POMAKEFILEDEPS="POTFILES.in"
14773 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
14774 # on $ac_dir but don't depend on user-specified configuration
14776 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
14777 # The LINGUAS file contains the set of available languages.
14778 if test -n "$OBSOLETE_ALL_LINGUAS"; then
14779 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
14781 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
14782 # Hide the ALL_LINGUAS assignment from automake < 1.5.
14783 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
14784 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
14786 # The set of available languages was given in configure.in.
14787 # Hide the ALL_LINGUAS assignment from automake < 1.5.
14788 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
14791 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
14792 # Compute UPDATEPOFILES
14793 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
14794 # Compute DUMMYPOFILES
14795 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
14797 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
14798 case "$ac_given_srcdir" in
14800 *) srcdirpre='$(srcdir)/' ;;
14806 for lang in $ALL_LINGUAS; do
14807 POFILES="$POFILES $srcdirpre$lang.po"
14808 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
14809 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
14810 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
14812 # CATALOGS depends on both $ac_dir and the user's LINGUAS
14813 # environment variable.
14815 if test -n "$ALL_LINGUAS"; then
14816 for presentlang in $ALL_LINGUAS; do
14818 if test "%UNSET%" != "$LINGUAS"; then
14819 desiredlanguages="$LINGUAS"
14821 desiredlanguages="$ALL_LINGUAS"
14823 for desiredlang in $desiredlanguages; do
14824 # Use the presentlang catalog if desiredlang is
14825 # a. equal to presentlang, or
14826 # b. a variant of presentlang (because in this case,
14827 # presentlang can be used as a fallback for messages
14828 # which are not translated in the desiredlang catalog).
14829 case "$desiredlang" in
14830 "$presentlang"*) useit=yes;;
14833 if test $useit = yes; then
14834 INST_LINGUAS="$INST_LINGUAS $presentlang"
14839 if test -n "$INST_LINGUAS"; then
14840 for lang in $INST_LINGUAS; do
14841 CATALOGS="$CATALOGS $lang.gmo"
14844 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
14845 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"
14846 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
14847 if test -f "$f"; then
14849 *.orig | *.bak | *~) ;;
14850 *) cat "$f" >> "$ac_dir/Makefile" ;;
14865 ac_clean_files=$ac_clean_files_save
14867 test $ac_write_fail = 0 ||
14868 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
14871 # configure is writing to config.log, and then calls config.status.
14872 # config.status does its own redirection, appending to config.log.
14873 # Unfortunately, on DOS this fails, as config.log is still kept open
14874 # by configure, so config.status won't be able to write to it; its
14875 # output is simply discarded. So we exec the FD to /dev/null,
14876 # effectively closing config.log, so it can be properly (re)opened and
14877 # appended to by config.status. When coming back to configure, we
14878 # need to make the FD available again.
14879 if test "$no_create" != yes; then
14881 ac_config_status_args=
14882 test "$silent" = yes &&
14883 ac_config_status_args="$ac_config_status_args --quiet"
14885 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14887 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14888 # would make configure fail if this is the last instruction.
14889 $ac_cs_success || as_fn_exit 1
14891 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14892 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14893 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14896 if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi