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
884 enable_bmap_stats_ops
891 with_included_gettext
895 ac_precious_vars='build_alias
909 # Initialize some variables set by options.
911 ac_init_version=false
912 ac_unrecognized_opts=
914 # The variables have the same names as the options, with
915 # dashes changed to underlines.
923 program_transform_name=s,x,x,
931 # Installation directory options.
932 # These are left unexpanded so users can "make install exec_prefix=/foo"
933 # and all the variables that are supposed to be based on exec_prefix
934 # by default will actually change.
935 # Use braces instead of parens because sh, perl, etc. also accept them.
936 # (The list follows the same order as the GNU Coding Standards.)
937 bindir='${exec_prefix}/bin'
938 sbindir='${exec_prefix}/sbin'
939 libexecdir='${exec_prefix}/libexec'
940 datarootdir='${prefix}/share'
941 datadir='${datarootdir}'
942 sysconfdir='${prefix}/etc'
943 sharedstatedir='${prefix}/com'
944 localstatedir='${prefix}/var'
945 includedir='${prefix}/include'
946 oldincludedir='/usr/include'
947 docdir='${datarootdir}/doc/${PACKAGE}'
948 infodir='${datarootdir}/info'
953 libdir='${exec_prefix}/lib'
954 localedir='${datarootdir}/locale'
955 mandir='${datarootdir}/man'
961 # If the previous option needs an argument, assign it.
962 if test -n "$ac_prev"; then
963 eval $ac_prev=\$ac_option
969 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
974 # Accept the important Cygnus configure options, so we can diagnose typos.
976 case $ac_dashdash$ac_option in
980 -bindir | --bindir | --bindi | --bind | --bin | --bi)
982 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
985 -build | --build | --buil | --bui | --bu)
986 ac_prev=build_alias ;;
987 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
988 build_alias=$ac_optarg ;;
990 -cache-file | --cache-file | --cache-fil | --cache-fi \
991 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
992 ac_prev=cache_file ;;
993 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
994 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
995 cache_file=$ac_optarg ;;
998 cache_file=config.cache ;;
1000 -datadir | --datadir | --datadi | --datad)
1002 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1003 datadir=$ac_optarg ;;
1005 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1006 | --dataroo | --dataro | --datar)
1007 ac_prev=datarootdir ;;
1008 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1009 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1010 datarootdir=$ac_optarg ;;
1012 -disable-* | --disable-*)
1013 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1014 # Reject names that are not valid shell variable names.
1015 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1016 as_fn_error $? "invalid feature name: $ac_useropt"
1017 ac_useropt_orig=$ac_useropt
1018 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1019 case $ac_user_opts in
1021 "enable_$ac_useropt"
1023 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1024 ac_unrecognized_sep=', ';;
1026 eval enable_$ac_useropt=no ;;
1028 -docdir | --docdir | --docdi | --doc | --do)
1030 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1031 docdir=$ac_optarg ;;
1033 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1035 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1036 dvidir=$ac_optarg ;;
1038 -enable-* | --enable-*)
1039 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1040 # Reject names that are not valid shell variable names.
1041 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1042 as_fn_error $? "invalid feature name: $ac_useropt"
1043 ac_useropt_orig=$ac_useropt
1044 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1045 case $ac_user_opts in
1047 "enable_$ac_useropt"
1049 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1050 ac_unrecognized_sep=', ';;
1052 eval enable_$ac_useropt=\$ac_optarg ;;
1054 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1055 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1056 | --exec | --exe | --ex)
1057 ac_prev=exec_prefix ;;
1058 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1059 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1060 | --exec=* | --exe=* | --ex=*)
1061 exec_prefix=$ac_optarg ;;
1063 -gas | --gas | --ga | --g)
1064 # Obsolete; use --with-gas.
1067 -help | --help | --hel | --he | -h)
1068 ac_init_help=long ;;
1069 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1070 ac_init_help=recursive ;;
1071 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1072 ac_init_help=short ;;
1074 -host | --host | --hos | --ho)
1075 ac_prev=host_alias ;;
1076 -host=* | --host=* | --hos=* | --ho=*)
1077 host_alias=$ac_optarg ;;
1079 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1081 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1083 htmldir=$ac_optarg ;;
1085 -includedir | --includedir | --includedi | --included | --include \
1086 | --includ | --inclu | --incl | --inc)
1087 ac_prev=includedir ;;
1088 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1089 | --includ=* | --inclu=* | --incl=* | --inc=*)
1090 includedir=$ac_optarg ;;
1092 -infodir | --infodir | --infodi | --infod | --info | --inf)
1094 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1095 infodir=$ac_optarg ;;
1097 -libdir | --libdir | --libdi | --libd)
1099 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1100 libdir=$ac_optarg ;;
1102 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1103 | --libexe | --libex | --libe)
1104 ac_prev=libexecdir ;;
1105 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1106 | --libexe=* | --libex=* | --libe=*)
1107 libexecdir=$ac_optarg ;;
1109 -localedir | --localedir | --localedi | --localed | --locale)
1110 ac_prev=localedir ;;
1111 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1112 localedir=$ac_optarg ;;
1114 -localstatedir | --localstatedir | --localstatedi | --localstated \
1115 | --localstate | --localstat | --localsta | --localst | --locals)
1116 ac_prev=localstatedir ;;
1117 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1118 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1119 localstatedir=$ac_optarg ;;
1121 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1123 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1124 mandir=$ac_optarg ;;
1126 -nfp | --nfp | --nf)
1127 # Obsolete; use --without-fp.
1130 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1131 | --no-cr | --no-c | -n)
1134 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1135 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1138 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1139 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1140 | --oldin | --oldi | --old | --ol | --o)
1141 ac_prev=oldincludedir ;;
1142 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1143 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1144 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1145 oldincludedir=$ac_optarg ;;
1147 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1149 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1150 prefix=$ac_optarg ;;
1152 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1153 | --program-pre | --program-pr | --program-p)
1154 ac_prev=program_prefix ;;
1155 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1156 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1157 program_prefix=$ac_optarg ;;
1159 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1160 | --program-suf | --program-su | --program-s)
1161 ac_prev=program_suffix ;;
1162 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1163 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1164 program_suffix=$ac_optarg ;;
1166 -program-transform-name | --program-transform-name \
1167 | --program-transform-nam | --program-transform-na \
1168 | --program-transform-n | --program-transform- \
1169 | --program-transform | --program-transfor \
1170 | --program-transfo | --program-transf \
1171 | --program-trans | --program-tran \
1172 | --progr-tra | --program-tr | --program-t)
1173 ac_prev=program_transform_name ;;
1174 -program-transform-name=* | --program-transform-name=* \
1175 | --program-transform-nam=* | --program-transform-na=* \
1176 | --program-transform-n=* | --program-transform-=* \
1177 | --program-transform=* | --program-transfor=* \
1178 | --program-transfo=* | --program-transf=* \
1179 | --program-trans=* | --program-tran=* \
1180 | --progr-tra=* | --program-tr=* | --program-t=*)
1181 program_transform_name=$ac_optarg ;;
1183 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1185 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1186 pdfdir=$ac_optarg ;;
1188 -psdir | --psdir | --psdi | --psd | --ps)
1190 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1193 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1194 | -silent | --silent | --silen | --sile | --sil)
1197 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1199 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1201 sbindir=$ac_optarg ;;
1203 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1204 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1205 | --sharedst | --shareds | --shared | --share | --shar \
1207 ac_prev=sharedstatedir ;;
1208 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1209 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1210 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1212 sharedstatedir=$ac_optarg ;;
1214 -site | --site | --sit)
1216 -site=* | --site=* | --sit=*)
1219 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1221 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1222 srcdir=$ac_optarg ;;
1224 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1225 | --syscon | --sysco | --sysc | --sys | --sy)
1226 ac_prev=sysconfdir ;;
1227 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1228 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1229 sysconfdir=$ac_optarg ;;
1231 -target | --target | --targe | --targ | --tar | --ta | --t)
1232 ac_prev=target_alias ;;
1233 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1234 target_alias=$ac_optarg ;;
1236 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1239 -version | --version | --versio | --versi | --vers | -V)
1240 ac_init_version=: ;;
1243 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1244 # Reject names that are not valid shell variable names.
1245 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1246 as_fn_error $? "invalid package name: $ac_useropt"
1247 ac_useropt_orig=$ac_useropt
1248 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1249 case $ac_user_opts in
1253 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1254 ac_unrecognized_sep=', ';;
1256 eval with_$ac_useropt=\$ac_optarg ;;
1258 -without-* | --without-*)
1259 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1260 # Reject names that are not valid shell variable names.
1261 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1262 as_fn_error $? "invalid package name: $ac_useropt"
1263 ac_useropt_orig=$ac_useropt
1264 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1265 case $ac_user_opts in
1269 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1270 ac_unrecognized_sep=', ';;
1272 eval with_$ac_useropt=no ;;
1275 # Obsolete; use --with-x.
1278 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1279 | --x-incl | --x-inc | --x-in | --x-i)
1280 ac_prev=x_includes ;;
1281 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1282 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1283 x_includes=$ac_optarg ;;
1285 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1286 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1287 ac_prev=x_libraries ;;
1288 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1289 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1290 x_libraries=$ac_optarg ;;
1292 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1293 Try \`$0 --help' for more information"
1297 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1298 # Reject names that are not valid shell variable names.
1299 case $ac_envvar in #(
1300 '' | [0-9]* | *[!_$as_cr_alnum]* )
1301 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1303 eval $ac_envvar=\$ac_optarg
1304 export $ac_envvar ;;
1307 # FIXME: should be removed in autoconf 3.0.
1308 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1309 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1310 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1311 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1317 if test -n "$ac_prev"; then
1318 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1319 as_fn_error $? "missing argument to $ac_option"
1322 if test -n "$ac_unrecognized_opts"; then
1323 case $enable_option_checking in
1325 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1326 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1330 # Check all directory arguments for consistency.
1331 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1332 datadir sysconfdir sharedstatedir localstatedir includedir \
1333 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1334 libdir localedir mandir
1336 eval ac_val=\$$ac_var
1337 # Remove trailing slashes.
1340 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1341 eval $ac_var=\$ac_val;;
1343 # Be sure to have absolute directory names.
1345 [\\/$]* | ?:[\\/]* ) continue;;
1346 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1348 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1351 # There might be people who depend on the old broken behavior: `$host'
1352 # used to hold the argument of --host etc.
1353 # FIXME: To remove some day.
1356 target=$target_alias
1358 # FIXME: To remove some day.
1359 if test "x$host_alias" != x; then
1360 if test "x$build_alias" = x; then
1361 cross_compiling=maybe
1362 elif test "x$build_alias" != "x$host_alias"; then
1368 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1370 test "$silent" = yes && exec 6>/dev/null
1373 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1374 ac_ls_di=`ls -di .` &&
1375 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1376 as_fn_error $? "working directory cannot be determined"
1377 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1378 as_fn_error $? "pwd does not report name of working directory"
1381 # Find the source files, if location was not specified.
1382 if test -z "$srcdir"; then
1383 ac_srcdir_defaulted=yes
1384 # Try the directory containing this script, then the parent directory.
1385 ac_confdir=`$as_dirname -- "$as_myself" ||
1386 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1387 X"$as_myself" : 'X\(//\)[^/]' \| \
1388 X"$as_myself" : 'X\(//\)$' \| \
1389 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1390 $as_echo X"$as_myself" |
1391 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1409 if test ! -r "$srcdir/$ac_unique_file"; then
1413 ac_srcdir_defaulted=no
1415 if test ! -r "$srcdir/$ac_unique_file"; then
1416 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1417 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1419 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1421 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1423 # When building in place, set srcdir=.
1424 if test "$ac_abs_confdir" = "$ac_pwd"; then
1427 # Remove unnecessary trailing slashes from srcdir.
1428 # Double slashes in file names in object file debugging info
1429 # mess up M-x gdb in Emacs.
1431 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1433 for ac_var in $ac_precious_vars; do
1434 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1435 eval ac_env_${ac_var}_value=\$${ac_var}
1436 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1437 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1441 # Report the --help message.
1443 if test "$ac_init_help" = "long"; then
1444 # Omit some internal or obsolete options to make the list less imposing.
1445 # This message is too long to be a string in the A/UX 3.1 sh.
1447 \`configure' configures this package to adapt to many kinds of systems.
1449 Usage: $0 [OPTION]... [VAR=VALUE]...
1451 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1452 VAR=VALUE. See below for descriptions of some of the useful variables.
1454 Defaults for the options are specified in brackets.
1457 -h, --help display this help and exit
1458 --help=short display options specific to this package
1459 --help=recursive display the short help of all the included packages
1460 -V, --version display version information and exit
1461 -q, --quiet, --silent do not print \`checking ...' messages
1462 --cache-file=FILE cache test results in FILE [disabled]
1463 -C, --config-cache alias for \`--cache-file=config.cache'
1464 -n, --no-create do not create output files
1465 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1467 Installation directories:
1468 --prefix=PREFIX install architecture-independent files in PREFIX
1469 [$ac_default_prefix]
1470 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1473 By default, \`make install' will install all the files in
1474 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1475 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1476 for instance \`--prefix=\$HOME'.
1478 For better control, use the options below.
1480 Fine tuning of the installation directories:
1481 --bindir=DIR user executables [EPREFIX/bin]
1482 --sbindir=DIR system admin executables [EPREFIX/sbin]
1483 --libexecdir=DIR program executables [EPREFIX/libexec]
1484 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1485 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1486 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1487 --libdir=DIR object code libraries [EPREFIX/lib]
1488 --includedir=DIR C header files [PREFIX/include]
1489 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1490 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1491 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1492 --infodir=DIR info documentation [DATAROOTDIR/info]
1493 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1494 --mandir=DIR man documentation [DATAROOTDIR/man]
1495 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1496 --htmldir=DIR html documentation [DOCDIR]
1497 --dvidir=DIR dvi documentation [DOCDIR]
1498 --pdfdir=DIR pdf documentation [DOCDIR]
1499 --psdir=DIR ps documentation [DOCDIR]
1505 --build=BUILD configure for building on BUILD [guessed]
1506 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1510 if test -n "$ac_init_help"; then
1515 --disable-option-checking ignore unrecognized --enable/--with options
1516 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1517 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1518 --enable-maintainer-mode enable makefile rules useful for maintainers
1519 --enable-symlink-install use symlinks when installing instead of hard links
1520 --enable-relative-symlinks use relative symlinks when installing
1522 --enable-symlink-build use symlinks while building instead of hard links
1523 --enable-verbose-makecmds enable verbose make command output
1524 --enable-compression enable EXPERIMENTAL compression support
1525 --enable-htree enable EXPERIMENTAL htree directory support
1526 --enable-elf-shlibs select ELF shared libraries
1527 --enable-bsd-shlibs select BSD shared libraries
1528 --enable-profile build profiling libraries
1529 --enable-gcov build for coverage testing using gcov
1530 --enable-jbd-debug enable journal debugging
1531 --enable-blkid-debug enable blkid debugging
1532 --disable-testio-debug disable the use of the test I/O manager for debugging
1533 --disable-libuuid do not build private uuid library
1534 --disable-libblkid do not build private blkid library
1535 --enable-quota enable quota support
1536 --disable-backtrace disable use backtrace
1537 --disable-debugfs disable support of debugfs program
1538 --disable-imager disable support of e2image program
1539 --disable-resizer disable support of e2resize program
1540 --disable-defrag disable support of e4defrag program
1541 --enable-fsck build fsck wrapper program
1542 --enable-e2initrd-helper build e2initrd-helper program
1543 --disable-tls disable use of thread local support
1544 --disable-uuidd disable building the uuid daemon
1545 --disable-mmp disable support mmp, Multi Mount Protection
1546 --disable-bmap-stats disable collection of bitmap stats.
1547 --enable-bmap-stats-ops enable collection of additional bitmap stats
1548 --disable-nls do not use Native Language Support
1549 --enable-threads={posix|solaris|pth|windows}
1550 specify multithreading API
1551 --disable-threads build without multithread safety
1552 --disable-rpath do not hardcode runtime library paths
1555 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1556 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1557 --with-diet-libc use diet libc
1558 --with-cc no longer supported, use CC= instead
1559 --with-ccopts no longer supported, use CFLAGS= instead
1560 --with-ldopts no longer supported, use LDFLAGS= instead
1561 --with-root-prefix=PREFIX override prefix variable for files to be placed in the root
1562 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1563 --with-libpth-prefix[=DIR] search for libpth in DIR/include and DIR/lib
1564 --without-libpth-prefix don't search for libpth in includedir and libdir
1565 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1566 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1567 --with-included-gettext use the GNU gettext library included here
1568 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1569 --without-libintl-prefix don't search for libintl in includedir and libdir
1570 --with-multiarch=ARCH specify the multiarch triplet
1572 Some influential environment variables:
1573 CC C compiler command
1574 CFLAGS C compiler flags
1575 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1576 nonstandard directory <lib dir>
1577 LIBS libraries to pass to the linker, e.g. -l<library>
1578 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1579 you have headers in a nonstandard directory <include dir>
1581 PKG_CONFIG path to pkg-config utility
1583 directories to add to pkg-config's search path
1585 path overriding pkg-config's built-in search path
1587 Use these variables to override the choices made by `configure' or to help
1588 it to find libraries and programs with nonstandard names/locations.
1590 Report bugs to the package provider.
1595 if test "$ac_init_help" = "recursive"; then
1596 # If there are subdirs, report their specific --help.
1597 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1598 test -d "$ac_dir" ||
1599 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1604 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1606 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1607 # A ".." for each directory in $ac_dir_suffix.
1608 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1609 case $ac_top_builddir_sub in
1610 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1611 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1614 ac_abs_top_builddir=$ac_pwd
1615 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1616 # for backward compatibility:
1617 ac_top_builddir=$ac_top_build_prefix
1620 .) # We are building in place.
1622 ac_top_srcdir=$ac_top_builddir_sub
1623 ac_abs_top_srcdir=$ac_pwd ;;
1624 [\\/]* | ?:[\\/]* ) # Absolute name.
1625 ac_srcdir=$srcdir$ac_dir_suffix;
1626 ac_top_srcdir=$srcdir
1627 ac_abs_top_srcdir=$srcdir ;;
1629 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1630 ac_top_srcdir=$ac_top_build_prefix$srcdir
1631 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1633 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1635 cd "$ac_dir" || { ac_status=$?; continue; }
1636 # Check for guested configure.
1637 if test -f "$ac_srcdir/configure.gnu"; then
1639 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1640 elif test -f "$ac_srcdir/configure"; then
1642 $SHELL "$ac_srcdir/configure" --help=recursive
1644 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1646 cd "$ac_pwd" || { ac_status=$?; break; }
1650 test -n "$ac_init_help" && exit $ac_status
1651 if $ac_init_version; then
1654 generated by GNU Autoconf 2.69
1656 Copyright (C) 2012 Free Software Foundation, Inc.
1657 This configure script is free software; the Free Software Foundation
1658 gives unlimited permission to copy, distribute and modify it.
1663 ## ------------------------ ##
1664 ## Autoconf initialization. ##
1665 ## ------------------------ ##
1667 # ac_fn_c_try_compile LINENO
1668 # --------------------------
1669 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1670 ac_fn_c_try_compile ()
1672 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1673 rm -f conftest.$ac_objext
1674 if { { ac_try="$ac_compile"
1676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1677 *) ac_try_echo=$ac_try;;
1679 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1680 $as_echo "$ac_try_echo"; } >&5
1681 (eval "$ac_compile") 2>conftest.err
1683 if test -s conftest.err; then
1684 grep -v '^ *+' conftest.err >conftest.er1
1685 cat conftest.er1 >&5
1686 mv -f conftest.er1 conftest.err
1688 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1689 test $ac_status = 0; } && {
1690 test -z "$ac_c_werror_flag" ||
1691 test ! -s conftest.err
1692 } && test -s conftest.$ac_objext; then :
1695 $as_echo "$as_me: failed program was:" >&5
1696 sed 's/^/| /' conftest.$ac_ext >&5
1700 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1701 as_fn_set_status $ac_retval
1703 } # ac_fn_c_try_compile
1705 # ac_fn_c_try_link LINENO
1706 # -----------------------
1707 # Try to link conftest.$ac_ext, and return whether this succeeded.
1710 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1711 rm -f conftest.$ac_objext conftest$ac_exeext
1712 if { { ac_try="$ac_link"
1714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1715 *) ac_try_echo=$ac_try;;
1717 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1718 $as_echo "$ac_try_echo"; } >&5
1719 (eval "$ac_link") 2>conftest.err
1721 if test -s conftest.err; then
1722 grep -v '^ *+' conftest.err >conftest.er1
1723 cat conftest.er1 >&5
1724 mv -f conftest.er1 conftest.err
1726 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1727 test $ac_status = 0; } && {
1728 test -z "$ac_c_werror_flag" ||
1729 test ! -s conftest.err
1730 } && test -s conftest$ac_exeext && {
1731 test "$cross_compiling" = yes ||
1732 test -x conftest$ac_exeext
1736 $as_echo "$as_me: failed program was:" >&5
1737 sed 's/^/| /' conftest.$ac_ext >&5
1741 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1742 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1743 # interfere with the next link command; also delete a directory that is
1744 # left behind by Apple's compiler. We do this before executing the actions.
1745 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1746 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1747 as_fn_set_status $ac_retval
1749 } # ac_fn_c_try_link
1751 # ac_fn_c_try_cpp LINENO
1752 # ----------------------
1753 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1756 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1757 if { { ac_try="$ac_cpp conftest.$ac_ext"
1759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1760 *) ac_try_echo=$ac_try;;
1762 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1763 $as_echo "$ac_try_echo"; } >&5
1764 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1766 if test -s conftest.err; then
1767 grep -v '^ *+' conftest.err >conftest.er1
1768 cat conftest.er1 >&5
1769 mv -f conftest.er1 conftest.err
1771 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1772 test $ac_status = 0; } > conftest.i && {
1773 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1774 test ! -s conftest.err
1778 $as_echo "$as_me: failed program was:" >&5
1779 sed 's/^/| /' conftest.$ac_ext >&5
1783 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1784 as_fn_set_status $ac_retval
1788 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1789 # -------------------------------------------------------
1790 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1791 # the include files in INCLUDES and setting the cache variable VAR
1793 ac_fn_c_check_header_mongrel ()
1795 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1796 if eval \${$3+:} false; then :
1797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1798 $as_echo_n "checking for $2... " >&6; }
1799 if eval \${$3+:} false; then :
1800 $as_echo_n "(cached) " >&6
1803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1804 $as_echo "$ac_res" >&6; }
1806 # Is the header compilable?
1807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1808 $as_echo_n "checking $2 usability... " >&6; }
1809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1810 /* end confdefs.h. */
1814 if ac_fn_c_try_compile "$LINENO"; then :
1815 ac_header_compiler=yes
1817 ac_header_compiler=no
1819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1821 $as_echo "$ac_header_compiler" >&6; }
1823 # Is the header present?
1824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1825 $as_echo_n "checking $2 presence... " >&6; }
1826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1827 /* end confdefs.h. */
1830 if ac_fn_c_try_cpp "$LINENO"; then :
1831 ac_header_preproc=yes
1833 ac_header_preproc=no
1835 rm -f conftest.err conftest.i conftest.$ac_ext
1836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1837 $as_echo "$ac_header_preproc" >&6; }
1839 # So? What about this header?
1840 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1842 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1843 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1844 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1845 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1848 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1849 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1850 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1851 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1852 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1853 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1854 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1855 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1856 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1857 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1861 $as_echo_n "checking for $2... " >&6; }
1862 if eval \${$3+:} false; then :
1863 $as_echo_n "(cached) " >&6
1865 eval "$3=\$ac_header_compiler"
1868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1869 $as_echo "$ac_res" >&6; }
1871 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1873 } # ac_fn_c_check_header_mongrel
1875 # ac_fn_c_try_run LINENO
1876 # ----------------------
1877 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1878 # that executables *can* be run.
1881 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1882 if { { ac_try="$ac_link"
1884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1885 *) ac_try_echo=$ac_try;;
1887 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1888 $as_echo "$ac_try_echo"; } >&5
1889 (eval "$ac_link") 2>&5
1891 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1892 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1893 { { case "(($ac_try" in
1894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1895 *) ac_try_echo=$ac_try;;
1897 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1898 $as_echo "$ac_try_echo"; } >&5
1899 (eval "$ac_try") 2>&5
1901 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1902 test $ac_status = 0; }; }; then :
1905 $as_echo "$as_me: program exited with status $ac_status" >&5
1906 $as_echo "$as_me: failed program was:" >&5
1907 sed 's/^/| /' conftest.$ac_ext >&5
1909 ac_retval=$ac_status
1911 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1912 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1913 as_fn_set_status $ac_retval
1917 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1918 # -------------------------------------------------------
1919 # Tests whether HEADER exists and can be compiled using the include files in
1920 # INCLUDES, setting the cache variable VAR accordingly.
1921 ac_fn_c_check_header_compile ()
1923 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1925 $as_echo_n "checking for $2... " >&6; }
1926 if eval \${$3+:} false; then :
1927 $as_echo_n "(cached) " >&6
1929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1930 /* end confdefs.h. */
1934 if ac_fn_c_try_compile "$LINENO"; then :
1939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1943 $as_echo "$ac_res" >&6; }
1944 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1946 } # ac_fn_c_check_header_compile
1948 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1949 # -------------------------------------------
1950 # Tests whether TYPE exists after having included INCLUDES, setting cache
1951 # variable VAR accordingly.
1952 ac_fn_c_check_type ()
1954 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1956 $as_echo_n "checking for $2... " >&6; }
1957 if eval \${$3+:} false; then :
1958 $as_echo_n "(cached) " >&6
1961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1962 /* end confdefs.h. */
1973 if ac_fn_c_try_compile "$LINENO"; then :
1974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1975 /* end confdefs.h. */
1986 if ac_fn_c_try_compile "$LINENO"; then :
1991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1997 $as_echo "$ac_res" >&6; }
1998 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2000 } # ac_fn_c_check_type
2002 # ac_fn_c_check_func LINENO FUNC VAR
2003 # ----------------------------------
2004 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2005 ac_fn_c_check_func ()
2007 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2009 $as_echo_n "checking for $2... " >&6; }
2010 if eval \${$3+:} false; then :
2011 $as_echo_n "(cached) " >&6
2013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2014 /* end confdefs.h. */
2015 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2016 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2017 #define $2 innocuous_$2
2019 /* System header to define __stub macros and hopefully few prototypes,
2020 which can conflict with char $2 (); below.
2021 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2022 <limits.h> exists even on freestanding compilers. */
2025 # include <limits.h>
2027 # include <assert.h>
2032 /* Override any GCC internal prototype to avoid an error.
2033 Use char because int might match the return type of a GCC
2034 builtin and then its argument prototype would still apply. */
2039 /* The GNU C library defines this for functions which it implements
2040 to always fail with ENOSYS. Some functions are actually named
2041 something starting with __ and the normal name is an alias. */
2042 #if defined __stub_$2 || defined __stub___$2
2054 if ac_fn_c_try_link "$LINENO"; then :
2059 rm -f core conftest.err conftest.$ac_objext \
2060 conftest$ac_exeext conftest.$ac_ext
2063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2064 $as_echo "$ac_res" >&6; }
2065 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2067 } # ac_fn_c_check_func
2069 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2070 # ---------------------------------------------
2071 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2073 ac_fn_c_check_decl ()
2075 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2076 as_decl_name=`echo $2|sed 's/ *(.*//'`
2077 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2079 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2080 if eval \${$3+:} false; then :
2081 $as_echo_n "(cached) " >&6
2083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2084 /* end confdefs.h. */
2089 #ifndef $as_decl_name
2091 (void) $as_decl_use;
2093 (void) $as_decl_name;
2101 if ac_fn_c_try_compile "$LINENO"; then :
2106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2110 $as_echo "$ac_res" >&6; }
2111 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2113 } # ac_fn_c_check_decl
2115 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2116 # --------------------------------------------
2117 # Tries to find the compile-time value of EXPR in a program that includes
2118 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2120 ac_fn_c_compute_int ()
2122 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2123 if test "$cross_compiling" = yes; then
2124 # Depending upon the size, compute the lo and hi bounds.
2125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2126 /* end confdefs.h. */
2131 static int test_array [1 - 2 * !(($2) >= 0)];
2133 return test_array [0];
2139 if ac_fn_c_try_compile "$LINENO"; then :
2142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2143 /* end confdefs.h. */
2148 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2150 return test_array [0];
2156 if ac_fn_c_try_compile "$LINENO"; then :
2157 ac_hi=$ac_mid; break
2159 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2160 if test $ac_lo -le $ac_mid; then
2164 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2170 /* end confdefs.h. */
2175 static int test_array [1 - 2 * !(($2) < 0)];
2177 return test_array [0];
2183 if ac_fn_c_try_compile "$LINENO"; then :
2186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2187 /* end confdefs.h. */
2192 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2194 return test_array [0];
2200 if ac_fn_c_try_compile "$LINENO"; then :
2201 ac_lo=$ac_mid; break
2203 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2204 if test $ac_mid -le $ac_hi; then
2208 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2218 # Binary search between lo and hi bounds.
2219 while test "x$ac_lo" != "x$ac_hi"; do
2220 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2222 /* end confdefs.h. */
2227 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2229 return test_array [0];
2235 if ac_fn_c_try_compile "$LINENO"; then :
2238 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2243 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2248 /* end confdefs.h. */
2250 static long int longval () { return $2; }
2251 static unsigned long int ulongval () { return $2; }
2258 FILE *f = fopen ("conftest.val", "w");
2263 long int i = longval ();
2266 fprintf (f, "%ld", i);
2270 unsigned long int i = ulongval ();
2273 fprintf (f, "%lu", i);
2275 /* Do not output a trailing newline, as this causes \r\n confusion
2276 on some platforms. */
2277 return ferror (f) || fclose (f) != 0;
2283 if ac_fn_c_try_run "$LINENO"; then :
2284 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2288 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2289 conftest.$ac_objext conftest.beam conftest.$ac_ext
2293 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2294 as_fn_set_status $ac_retval
2296 } # ac_fn_c_compute_int
2298 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2299 # ----------------------------------------------------
2300 # Tries to find if the field MEMBER exists in type AGGR, after including
2301 # INCLUDES, setting cache variable VAR accordingly.
2302 ac_fn_c_check_member ()
2304 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2306 $as_echo_n "checking for $2.$3... " >&6; }
2307 if eval \${$4+:} false; then :
2308 $as_echo_n "(cached) " >&6
2310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2311 /* end confdefs.h. */
2323 if ac_fn_c_try_compile "$LINENO"; then :
2326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2327 /* end confdefs.h. */
2333 if (sizeof ac_aggr.$3)
2339 if ac_fn_c_try_compile "$LINENO"; then :
2344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2350 $as_echo "$ac_res" >&6; }
2351 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2353 } # ac_fn_c_check_member
2354 cat >config.log <<_ACEOF
2355 This file contains any messages produced by compilers while
2356 running configure, to aid debugging if configure makes a mistake.
2358 It was created by $as_me, which was
2359 generated by GNU Autoconf 2.69. Invocation command line was
2371 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2372 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2373 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2374 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2375 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2377 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2378 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2380 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2381 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2382 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2383 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2384 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2385 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2386 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2394 test -z "$as_dir" && as_dir=.
2395 $as_echo "PATH: $as_dir"
2411 # Keep a trace of the command line.
2412 # Strip out --no-create and --no-recursion so they do not pile up.
2413 # Strip out --silent because we don't want to record it for future runs.
2414 # Also quote any args containing shell meta-characters.
2415 # Make two passes to allow for proper duplicate-argument suppression.
2419 ac_must_keep_next=false
2425 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2426 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2427 | -silent | --silent | --silen | --sile | --sil)
2430 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2433 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2435 as_fn_append ac_configure_args1 " '$ac_arg'"
2436 if test $ac_must_keep_next = true; then
2437 ac_must_keep_next=false # Got value, back to normal.
2440 *=* | --config-cache | -C | -disable-* | --disable-* \
2441 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2442 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2443 | -with-* | --with-* | -without-* | --without-* | --x)
2444 case "$ac_configure_args0 " in
2445 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2448 -* ) ac_must_keep_next=true ;;
2451 as_fn_append ac_configure_args " '$ac_arg'"
2456 { ac_configure_args0=; unset ac_configure_args0;}
2457 { ac_configure_args1=; unset ac_configure_args1;}
2459 # When interrupted or exit'd, cleanup temporary files, and complete
2460 # config.log. We remove comments because anyway the quotes in there
2461 # would cause problems or look ugly.
2462 # WARNING: Use '\'' to represent an apostrophe within the trap.
2463 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2464 trap 'exit_status=$?
2465 # Save into config.log some information that might help in debugging.
2469 $as_echo "## ---------------- ##
2470 ## Cache variables. ##
2471 ## ---------------- ##"
2473 # The following way of writing the cache mishandles newlines in values,
2475 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2476 eval ac_val=\$$ac_var
2480 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2481 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2484 _ | IFS | as_nl) ;; #(
2485 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2486 *) { eval $ac_var=; unset $ac_var;} ;;
2491 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2492 *${as_nl}ac_space=\ *)
2494 "s/'\''/'\''\\\\'\'''\''/g;
2495 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2498 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2505 $as_echo "## ----------------- ##
2506 ## Output variables. ##
2507 ## ----------------- ##"
2509 for ac_var in $ac_subst_vars
2511 eval ac_val=\$$ac_var
2513 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2515 $as_echo "$ac_var='\''$ac_val'\''"
2519 if test -n "$ac_subst_files"; then
2520 $as_echo "## ------------------- ##
2521 ## File substitutions. ##
2522 ## ------------------- ##"
2524 for ac_var in $ac_subst_files
2526 eval ac_val=\$$ac_var
2528 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2530 $as_echo "$ac_var='\''$ac_val'\''"
2535 if test -s confdefs.h; then
2536 $as_echo "## ----------- ##
2543 test "$ac_signal" != 0 &&
2544 $as_echo "$as_me: caught signal $ac_signal"
2545 $as_echo "$as_me: exit $exit_status"
2547 rm -f core *.core core.conftest.* &&
2548 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2551 for ac_signal in 1 2 13 15; do
2552 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2556 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2557 rm -f -r conftest* confdefs.h
2559 $as_echo "/* confdefs.h */" > confdefs.h
2561 # Predefined preprocessor variables.
2563 cat >>confdefs.h <<_ACEOF
2564 #define PACKAGE_NAME "$PACKAGE_NAME"
2567 cat >>confdefs.h <<_ACEOF
2568 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2571 cat >>confdefs.h <<_ACEOF
2572 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2575 cat >>confdefs.h <<_ACEOF
2576 #define PACKAGE_STRING "$PACKAGE_STRING"
2579 cat >>confdefs.h <<_ACEOF
2580 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2583 cat >>confdefs.h <<_ACEOF
2584 #define PACKAGE_URL "$PACKAGE_URL"
2588 # Let the site file select an alternate cache file if it wants to.
2589 # Prefer an explicitly selected file to automatically selected ones.
2592 if test -n "$CONFIG_SITE"; then
2593 # We do not want a PATH search for config.site.
2594 case $CONFIG_SITE in #((
2595 -*) ac_site_file1=./$CONFIG_SITE;;
2596 */*) ac_site_file1=$CONFIG_SITE;;
2597 *) ac_site_file1=./$CONFIG_SITE;;
2599 elif test "x$prefix" != xNONE; then
2600 ac_site_file1=$prefix/share/config.site
2601 ac_site_file2=$prefix/etc/config.site
2603 ac_site_file1=$ac_default_prefix/share/config.site
2604 ac_site_file2=$ac_default_prefix/etc/config.site
2606 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2608 test "x$ac_site_file" = xNONE && continue
2609 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2610 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2611 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2612 sed 's/^/| /' "$ac_site_file" >&5
2614 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2615 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2616 as_fn_error $? "failed to load site script $ac_site_file
2617 See \`config.log' for more details" "$LINENO" 5; }
2621 if test -r "$cache_file"; then
2622 # Some versions of bash will fail to source /dev/null (special files
2623 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2624 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2625 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2626 $as_echo "$as_me: loading cache $cache_file" >&6;}
2628 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2629 *) . "./$cache_file";;
2633 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2634 $as_echo "$as_me: creating cache $cache_file" >&6;}
2638 gt_needs="$gt_needs "
2639 as_fn_append ac_header_list " stdlib.h"
2640 as_fn_append ac_header_list " unistd.h"
2641 as_fn_append ac_header_list " sys/param.h"
2642 as_fn_append ac_func_list " symlink"
2643 # Check that the precious variables saved in the cache have kept the same
2645 ac_cache_corrupted=false
2646 for ac_var in $ac_precious_vars; do
2647 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2648 eval ac_new_set=\$ac_env_${ac_var}_set
2649 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2650 eval ac_new_val=\$ac_env_${ac_var}_value
2651 case $ac_old_set,$ac_new_set in
2653 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2654 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2655 ac_cache_corrupted=: ;;
2657 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2658 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2659 ac_cache_corrupted=: ;;
2662 if test "x$ac_old_val" != "x$ac_new_val"; then
2663 # differences in whitespace do not lead to failure.
2664 ac_old_val_w=`echo x $ac_old_val`
2665 ac_new_val_w=`echo x $ac_new_val`
2666 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2667 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2668 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2669 ac_cache_corrupted=:
2671 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2672 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2673 eval $ac_var=\$ac_old_val
2675 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2676 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2677 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2678 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2681 # Pass precious variables to config.status.
2682 if test "$ac_new_set" = set; then
2684 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2685 *) ac_arg=$ac_var=$ac_new_val ;;
2687 case " $ac_configure_args " in
2688 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2689 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2693 if $ac_cache_corrupted; then
2694 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2695 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2696 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2697 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2698 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2700 ## -------------------- ##
2701 ## Main body of script. ##
2702 ## -------------------- ##
2705 ac_cpp='$CPP $CPPFLAGS'
2706 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2707 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2708 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2713 for ac_dir in config "$srcdir"/config; do
2714 if test -f "$ac_dir/install-sh"; then
2716 ac_install_sh="$ac_aux_dir/install-sh -c"
2718 elif test -f "$ac_dir/install.sh"; then
2720 ac_install_sh="$ac_aux_dir/install.sh -c"
2722 elif test -f "$ac_dir/shtool"; then
2724 ac_install_sh="$ac_aux_dir/shtool install -c"
2728 if test -z "$ac_aux_dir"; then
2729 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2732 # These three variables are undocumented and unsupported,
2733 # and are intended to be withdrawn in a future Autoconf release.
2734 # They can cause serious problems if a builder's source tree is in a directory
2735 # whose full name contains unusual characters.
2736 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2737 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2738 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2741 ac_config_headers="$ac_config_headers lib/config.h"
2747 E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \
2748 | awk '{print $3}' | tr \" " " | awk '{print $1}'`
2749 DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
2751 E2FSPROGS_DAY=`echo $DATE | awk -F- '{print $1}'`
2752 MONTH=`echo $DATE | awk -F- '{print $2}'`
2753 YEAR=`echo $DATE | awk -F- '{print $3}'`
2755 if expr $YEAR ">" 1900 > /dev/null ; then
2756 E2FSPROGS_YEAR=$YEAR
2757 elif expr $YEAR ">" 90 >/dev/null ; then
2758 E2FSPROGS_YEAR=19$YEAR
2760 E2FSPROGS_YEAR=20$YEAR
2764 Jan) MONTH_NUM=01; E2FSPROGS_MONTH="January" ;;
2765 Feb) MONTH_NUM=02; E2FSPROGS_MONTH="February" ;;
2766 Mar) MONTH_NUM=03; E2FSPROGS_MONTH="March" ;;
2767 Apr) MONTH_NUM=04; E2FSPROGS_MONTH="April" ;;
2768 May) MONTH_NUM=05; E2FSPROGS_MONTH="May" ;;
2769 Jun) MONTH_NUM=06; E2FSPROGS_MONTH="June" ;;
2770 Jul) MONTH_NUM=07; E2FSPROGS_MONTH="July" ;;
2771 Aug) MONTH_NUM=08; E2FSPROGS_MONTH="August" ;;
2772 Sep) MONTH_NUM=09; E2FSPROGS_MONTH="September" ;;
2773 Oct) MONTH_NUM=10; E2FSPROGS_MONTH="October" ;;
2774 Nov) MONTH_NUM=11; E2FSPROGS_MONTH="November" ;;
2775 Dec) MONTH_NUM=12; E2FSPROGS_MONTH="December" ;;
2776 *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unknown month $MONTH??" >&5
2777 $as_echo "$as_me: WARNING: Unknown month $MONTH??" >&2;} ;;
2780 base_ver=`echo $E2FSPROGS_VERSION | \
2781 sed -e 's/-WIP//' -e 's/pre-//' -e 's/-PLUS//'`
2783 date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY}
2785 case $E2FSPROGS_VERSION in
2787 E2FSPROGS_PKGVER="$base_ver~WIP-$E2FSPROGS_YEAR-$MONTH_NUM-$E2FSPROGS_DAY"
2790 E2FSPROGS_PKGVER="$base_ver"
2794 unset DATE MONTH YEAR base_ver pre_vers date_spec
2795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&5
2796 $as_echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&6; }
2797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&5
2798 $as_echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&6; }
2806 # Check whether --with-diet-libc was given.
2807 if test "${with_diet_libc+set}" = set; then :
2808 withval=$with_diet_libc; CC="diet cc -nostdinc"
2814 LIBS="$LIBS -lcompat"
2816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: CC=$CC" >&5
2817 $as_echo "CC=$CC" >&6; }
2819 # Make sure we can run config.sub.
2820 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2821 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2824 $as_echo_n "checking build system type... " >&6; }
2825 if ${ac_cv_build+:} false; then :
2826 $as_echo_n "(cached) " >&6
2828 ac_build_alias=$build_alias
2829 test "x$ac_build_alias" = x &&
2830 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2831 test "x$ac_build_alias" = x &&
2832 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2833 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2834 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2838 $as_echo "$ac_cv_build" >&6; }
2839 case $ac_cv_build in
2841 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2844 ac_save_IFS=$IFS; IFS='-'
2850 # Remember, the first character of IFS is used to create $*,
2851 # except with old shells:
2854 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2858 $as_echo_n "checking host system type... " >&6; }
2859 if ${ac_cv_host+:} false; then :
2860 $as_echo_n "(cached) " >&6
2862 if test "x$host_alias" = x; then
2863 ac_cv_host=$ac_cv_build
2865 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2866 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2871 $as_echo "$ac_cv_host" >&6; }
2874 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2877 ac_save_IFS=$IFS; IFS='-'
2883 # Remember, the first character of IFS is used to create $*,
2884 # except with old shells:
2887 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2892 ac_cpp='$CPP $CPPFLAGS'
2893 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2894 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2895 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2896 if test -n "$ac_tool_prefix"; then
2897 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2898 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2900 $as_echo_n "checking for $ac_word... " >&6; }
2901 if ${ac_cv_prog_CC+:} false; then :
2902 $as_echo_n "(cached) " >&6
2904 if test -n "$CC"; then
2905 ac_cv_prog_CC="$CC" # Let the user override the test.
2907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2911 test -z "$as_dir" && as_dir=.
2912 for ac_exec_ext in '' $ac_executable_extensions; do
2913 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2914 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2925 if test -n "$CC"; then
2926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2927 $as_echo "$CC" >&6; }
2929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2930 $as_echo "no" >&6; }
2935 if test -z "$ac_cv_prog_CC"; then
2937 # Extract the first word of "gcc", so it can be a program name with args.
2938 set dummy gcc; ac_word=$2
2939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2940 $as_echo_n "checking for $ac_word... " >&6; }
2941 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2942 $as_echo_n "(cached) " >&6
2944 if test -n "$ac_ct_CC"; then
2945 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2951 test -z "$as_dir" && as_dir=.
2952 for ac_exec_ext in '' $ac_executable_extensions; do
2953 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2954 ac_cv_prog_ac_ct_CC="gcc"
2955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2964 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2965 if test -n "$ac_ct_CC"; then
2966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2967 $as_echo "$ac_ct_CC" >&6; }
2969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2970 $as_echo "no" >&6; }
2973 if test "x$ac_ct_CC" = x; then
2976 case $cross_compiling:$ac_tool_warned in
2978 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2979 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2980 ac_tool_warned=yes ;;
2988 if test -z "$CC"; then
2989 if test -n "$ac_tool_prefix"; then
2990 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2991 set dummy ${ac_tool_prefix}cc; ac_word=$2
2992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2993 $as_echo_n "checking for $ac_word... " >&6; }
2994 if ${ac_cv_prog_CC+:} false; then :
2995 $as_echo_n "(cached) " >&6
2997 if test -n "$CC"; then
2998 ac_cv_prog_CC="$CC" # Let the user override the test.
3000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3004 test -z "$as_dir" && as_dir=.
3005 for ac_exec_ext in '' $ac_executable_extensions; do
3006 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3007 ac_cv_prog_CC="${ac_tool_prefix}cc"
3008 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3018 if test -n "$CC"; then
3019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3020 $as_echo "$CC" >&6; }
3022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3023 $as_echo "no" >&6; }
3029 if test -z "$CC"; then
3030 # Extract the first word of "cc", so it can be a program name with args.
3031 set dummy cc; ac_word=$2
3032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3033 $as_echo_n "checking for $ac_word... " >&6; }
3034 if ${ac_cv_prog_CC+:} false; then :
3035 $as_echo_n "(cached) " >&6
3037 if test -n "$CC"; then
3038 ac_cv_prog_CC="$CC" # Let the user override the test.
3041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3045 test -z "$as_dir" && as_dir=.
3046 for ac_exec_ext in '' $ac_executable_extensions; do
3047 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3048 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3049 ac_prog_rejected=yes
3053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3060 if test $ac_prog_rejected = yes; then
3061 # We found a bogon in the path, so make sure we never use it.
3062 set dummy $ac_cv_prog_CC
3064 if test $# != 0; then
3065 # We chose a different compiler from the bogus one.
3066 # However, it has the same basename, so the bogon will be chosen
3067 # first if we set CC to just the basename; use the full file name.
3069 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3075 if test -n "$CC"; then
3076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3077 $as_echo "$CC" >&6; }
3079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3080 $as_echo "no" >&6; }
3085 if test -z "$CC"; then
3086 if test -n "$ac_tool_prefix"; then
3087 for ac_prog in cl.exe
3089 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3090 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3092 $as_echo_n "checking for $ac_word... " >&6; }
3093 if ${ac_cv_prog_CC+:} false; then :
3094 $as_echo_n "(cached) " >&6
3096 if test -n "$CC"; then
3097 ac_cv_prog_CC="$CC" # Let the user override the test.
3099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3103 test -z "$as_dir" && as_dir=.
3104 for ac_exec_ext in '' $ac_executable_extensions; do
3105 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3106 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3107 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3117 if test -n "$CC"; then
3118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3119 $as_echo "$CC" >&6; }
3121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3122 $as_echo "no" >&6; }
3126 test -n "$CC" && break
3129 if test -z "$CC"; then
3131 for ac_prog in cl.exe
3133 # Extract the first word of "$ac_prog", so it can be a program name with args.
3134 set dummy $ac_prog; ac_word=$2
3135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3136 $as_echo_n "checking for $ac_word... " >&6; }
3137 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3138 $as_echo_n "(cached) " >&6
3140 if test -n "$ac_ct_CC"; then
3141 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3147 test -z "$as_dir" && as_dir=.
3148 for ac_exec_ext in '' $ac_executable_extensions; do
3149 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3150 ac_cv_prog_ac_ct_CC="$ac_prog"
3151 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3160 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3161 if test -n "$ac_ct_CC"; then
3162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3163 $as_echo "$ac_ct_CC" >&6; }
3165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3166 $as_echo "no" >&6; }
3170 test -n "$ac_ct_CC" && break
3173 if test "x$ac_ct_CC" = x; then
3176 case $cross_compiling:$ac_tool_warned in
3178 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3179 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3180 ac_tool_warned=yes ;;
3189 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3190 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3191 as_fn_error $? "no acceptable C compiler found in \$PATH
3192 See \`config.log' for more details" "$LINENO" 5; }
3194 # Provide some information about the compiler.
3195 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3198 for ac_option in --version -v -V -qversion; do
3199 { { ac_try="$ac_compiler $ac_option >&5"
3201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3202 *) ac_try_echo=$ac_try;;
3204 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3205 $as_echo "$ac_try_echo"; } >&5
3206 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3208 if test -s conftest.err; then
3210 ... rest of stderr output deleted ...
3211 10q' conftest.err >conftest.er1
3212 cat conftest.er1 >&5
3214 rm -f conftest.er1 conftest.err
3215 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3216 test $ac_status = 0; }
3219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3220 /* end confdefs.h. */
3230 ac_clean_files_save=$ac_clean_files
3231 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3232 # Try to create an executable without -o first, disregard a.out.
3233 # It will help us diagnose broken compilers, and finding out an intuition
3235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3236 $as_echo_n "checking whether the C compiler works... " >&6; }
3237 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3239 # The possible output files:
3240 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3243 for ac_file in $ac_files
3246 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3247 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3252 if { { ac_try="$ac_link_default"
3254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3255 *) ac_try_echo=$ac_try;;
3257 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3258 $as_echo "$ac_try_echo"; } >&5
3259 (eval "$ac_link_default") 2>&5
3261 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3262 test $ac_status = 0; }; then :
3263 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3264 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3265 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3266 # so that the user can short-circuit this test for compilers unknown to
3268 for ac_file in $ac_files ''
3270 test -f "$ac_file" || continue
3272 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3275 # We found the default executable, but exeext='' is most
3279 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3281 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3283 # We set ac_cv_exeext here because the later test for it is not
3284 # safe: cross compilers may not add the suffix if given an `-o'
3285 # argument, so we may need to know it at that point already.
3286 # Even if this section looks crufty: it has the advantage of
3293 test "$ac_cv_exeext" = no && ac_cv_exeext=
3298 if test -z "$ac_file"; then :
3299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3300 $as_echo "no" >&6; }
3301 $as_echo "$as_me: failed program was:" >&5
3302 sed 's/^/| /' conftest.$ac_ext >&5
3304 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3305 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3306 as_fn_error 77 "C compiler cannot create executables
3307 See \`config.log' for more details" "$LINENO" 5; }
3309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3310 $as_echo "yes" >&6; }
3312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3313 $as_echo_n "checking for C compiler default output file name... " >&6; }
3314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3315 $as_echo "$ac_file" >&6; }
3316 ac_exeext=$ac_cv_exeext
3318 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3319 ac_clean_files=$ac_clean_files_save
3320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3321 $as_echo_n "checking for suffix of executables... " >&6; }
3322 if { { ac_try="$ac_link"
3324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3325 *) ac_try_echo=$ac_try;;
3327 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3328 $as_echo "$ac_try_echo"; } >&5
3329 (eval "$ac_link") 2>&5
3331 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3332 test $ac_status = 0; }; then :
3333 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3334 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3335 # work properly (i.e., refer to `conftest.exe'), while it won't with
3337 for ac_file in conftest.exe conftest conftest.*; do
3338 test -f "$ac_file" || continue
3340 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3341 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3347 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3348 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3349 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3350 See \`config.log' for more details" "$LINENO" 5; }
3352 rm -f conftest conftest$ac_cv_exeext
3353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3354 $as_echo "$ac_cv_exeext" >&6; }
3356 rm -f conftest.$ac_ext
3357 EXEEXT=$ac_cv_exeext
3359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3360 /* end confdefs.h. */
3365 FILE *f = fopen ("conftest.out", "w");
3366 return ferror (f) || fclose (f) != 0;
3372 ac_clean_files="$ac_clean_files conftest.out"
3373 # Check that the compiler produces executables we can run. If not, either
3374 # the compiler is broken, or we cross compile.
3375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3376 $as_echo_n "checking whether we are cross compiling... " >&6; }
3377 if test "$cross_compiling" != yes; then
3378 { { ac_try="$ac_link"
3380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3381 *) ac_try_echo=$ac_try;;
3383 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3384 $as_echo "$ac_try_echo"; } >&5
3385 (eval "$ac_link") 2>&5
3387 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3388 test $ac_status = 0; }
3389 if { ac_try='./conftest$ac_cv_exeext'
3390 { { case "(($ac_try" in
3391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3392 *) ac_try_echo=$ac_try;;
3394 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3395 $as_echo "$ac_try_echo"; } >&5
3396 (eval "$ac_try") 2>&5
3398 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3399 test $ac_status = 0; }; }; then
3402 if test "$cross_compiling" = maybe; then
3405 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3406 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3407 as_fn_error $? "cannot run C compiled programs.
3408 If you meant to cross compile, use \`--host'.
3409 See \`config.log' for more details" "$LINENO" 5; }
3413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3414 $as_echo "$cross_compiling" >&6; }
3416 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3417 ac_clean_files=$ac_clean_files_save
3418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3419 $as_echo_n "checking for suffix of object files... " >&6; }
3420 if ${ac_cv_objext+:} false; then :
3421 $as_echo_n "(cached) " >&6
3423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3424 /* end confdefs.h. */
3434 rm -f conftest.o conftest.obj
3435 if { { ac_try="$ac_compile"
3437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3438 *) ac_try_echo=$ac_try;;
3440 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3441 $as_echo "$ac_try_echo"; } >&5
3442 (eval "$ac_compile") 2>&5
3444 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3445 test $ac_status = 0; }; then :
3446 for ac_file in conftest.o conftest.obj conftest.*; do
3447 test -f "$ac_file" || continue;
3449 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3450 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3455 $as_echo "$as_me: failed program was:" >&5
3456 sed 's/^/| /' conftest.$ac_ext >&5
3458 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3459 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3460 as_fn_error $? "cannot compute suffix of object files: cannot compile
3461 See \`config.log' for more details" "$LINENO" 5; }
3463 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3466 $as_echo "$ac_cv_objext" >&6; }
3467 OBJEXT=$ac_cv_objext
3469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3470 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3471 if ${ac_cv_c_compiler_gnu+:} false; then :
3472 $as_echo_n "(cached) " >&6
3474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3475 /* end confdefs.h. */
3488 if ac_fn_c_try_compile "$LINENO"; then :
3493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3494 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3498 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3499 if test $ac_compiler_gnu = yes; then
3504 ac_test_CFLAGS=${CFLAGS+set}
3505 ac_save_CFLAGS=$CFLAGS
3506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3507 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3508 if ${ac_cv_prog_cc_g+:} false; then :
3509 $as_echo_n "(cached) " >&6
3511 ac_save_c_werror_flag=$ac_c_werror_flag
3512 ac_c_werror_flag=yes
3515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3516 /* end confdefs.h. */
3526 if ac_fn_c_try_compile "$LINENO"; then :
3530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3531 /* end confdefs.h. */
3541 if ac_fn_c_try_compile "$LINENO"; then :
3544 ac_c_werror_flag=$ac_save_c_werror_flag
3546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3547 /* end confdefs.h. */
3557 if ac_fn_c_try_compile "$LINENO"; then :
3560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3565 ac_c_werror_flag=$ac_save_c_werror_flag
3567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3568 $as_echo "$ac_cv_prog_cc_g" >&6; }
3569 if test "$ac_test_CFLAGS" = set; then
3570 CFLAGS=$ac_save_CFLAGS
3571 elif test $ac_cv_prog_cc_g = yes; then
3572 if test "$GCC" = yes; then
3578 if test "$GCC" = yes; then
3584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3585 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3586 if ${ac_cv_prog_cc_c89+:} false; then :
3587 $as_echo_n "(cached) " >&6
3589 ac_cv_prog_cc_c89=no
3591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3592 /* end confdefs.h. */
3596 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3597 struct buf { int x; };
3598 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3599 static char *e (p, i)
3605 static char *f (char * (*g) (char **, int), char **p, ...)
3610 s = g (p, va_arg (v,int));
3615 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3616 function prototypes and stuff, but not '\xHH' hex character constants.
3617 These don't provoke an error unfortunately, instead are silently treated
3618 as 'x'. The following induces an error, until -std is added to get
3619 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3620 array size at least. It's necessary to write '\x00'==0 to get something
3621 that's true only with -std. */
3622 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3624 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3625 inside strings and character constants. */
3627 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3629 int test (int i, double x);
3630 struct s1 {int (*f) (int a);};
3631 struct s2 {int (*f) (double a);};
3632 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3638 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3643 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3644 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3646 CC="$ac_save_CC $ac_arg"
3647 if ac_fn_c_try_compile "$LINENO"; then :
3648 ac_cv_prog_cc_c89=$ac_arg
3650 rm -f core conftest.err conftest.$ac_objext
3651 test "x$ac_cv_prog_cc_c89" != "xno" && break
3653 rm -f conftest.$ac_ext
3658 case "x$ac_cv_prog_cc_c89" in
3660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3661 $as_echo "none needed" >&6; } ;;
3663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3664 $as_echo "unsupported" >&6; } ;;
3666 CC="$CC $ac_cv_prog_cc_c89"
3667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3668 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3670 if test "x$ac_cv_prog_cc_c89" != xno; then :
3675 ac_cpp='$CPP $CPPFLAGS'
3676 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3677 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3678 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
3682 $as_echo_n "checking for dlopen in -ldl... " >&6; }
3683 if ${ac_cv_lib_dl_dlopen+:} false; then :
3684 $as_echo_n "(cached) " >&6
3686 ac_check_lib_save_LIBS=$LIBS
3688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3689 /* end confdefs.h. */
3691 /* Override any GCC internal prototype to avoid an error.
3692 Use char because int might match the return type of a GCC
3693 builtin and then its argument prototype would still apply. */
3706 if ac_fn_c_try_link "$LINENO"; then :
3707 ac_cv_lib_dl_dlopen=yes
3709 ac_cv_lib_dl_dlopen=no
3711 rm -f core conftest.err conftest.$ac_objext \
3712 conftest$ac_exeext conftest.$ac_ext
3713 LIBS=$ac_check_lib_save_LIBS
3715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
3716 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
3717 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
3720 $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
3726 # Check whether --with-cc was given.
3727 if test "${with_cc+set}" = set; then :
3728 withval=$with_cc; as_fn_error $? "--with-cc no longer supported; use CC= instead" "$LINENO" 5
3732 # Check whether --with-ccopts was given.
3733 if test "${with_ccopts+set}" = set; then :
3734 withval=$with_ccopts; as_fn_error $? "--with-ccopts no longer supported; use CFLAGS= instead" "$LINENO" 5
3738 # Check whether --with-ldopts was given.
3739 if test "${with_ldopts+set}" = set; then :
3740 withval=$with_ldopts; as_fn_error $? "--with-ldopts no longer supported; use LDFLAGS= instead" "$LINENO" 5
3744 ac_cpp='$CPP $CPPFLAGS'
3745 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3746 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3747 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3748 if test -n "$ac_tool_prefix"; then
3749 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3750 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3752 $as_echo_n "checking for $ac_word... " >&6; }
3753 if ${ac_cv_prog_CC+:} false; then :
3754 $as_echo_n "(cached) " >&6
3756 if test -n "$CC"; then
3757 ac_cv_prog_CC="$CC" # Let the user override the test.
3759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3763 test -z "$as_dir" && as_dir=.
3764 for ac_exec_ext in '' $ac_executable_extensions; do
3765 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3766 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3767 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3777 if test -n "$CC"; then
3778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3779 $as_echo "$CC" >&6; }
3781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3782 $as_echo "no" >&6; }
3787 if test -z "$ac_cv_prog_CC"; then
3789 # Extract the first word of "gcc", so it can be a program name with args.
3790 set dummy gcc; ac_word=$2
3791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3792 $as_echo_n "checking for $ac_word... " >&6; }
3793 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3794 $as_echo_n "(cached) " >&6
3796 if test -n "$ac_ct_CC"; then
3797 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3803 test -z "$as_dir" && as_dir=.
3804 for ac_exec_ext in '' $ac_executable_extensions; do
3805 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3806 ac_cv_prog_ac_ct_CC="gcc"
3807 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3816 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3817 if test -n "$ac_ct_CC"; then
3818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3819 $as_echo "$ac_ct_CC" >&6; }
3821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3822 $as_echo "no" >&6; }
3825 if test "x$ac_ct_CC" = x; then
3828 case $cross_compiling:$ac_tool_warned in
3830 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3831 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3832 ac_tool_warned=yes ;;
3840 if test -z "$CC"; then
3841 if test -n "$ac_tool_prefix"; then
3842 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3843 set dummy ${ac_tool_prefix}cc; ac_word=$2
3844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3845 $as_echo_n "checking for $ac_word... " >&6; }
3846 if ${ac_cv_prog_CC+:} false; then :
3847 $as_echo_n "(cached) " >&6
3849 if test -n "$CC"; then
3850 ac_cv_prog_CC="$CC" # Let the user override the test.
3852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3856 test -z "$as_dir" && as_dir=.
3857 for ac_exec_ext in '' $ac_executable_extensions; do
3858 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3859 ac_cv_prog_CC="${ac_tool_prefix}cc"
3860 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3870 if test -n "$CC"; then
3871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3872 $as_echo "$CC" >&6; }
3874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3875 $as_echo "no" >&6; }
3881 if test -z "$CC"; then
3882 # Extract the first word of "cc", so it can be a program name with args.
3883 set dummy cc; ac_word=$2
3884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3885 $as_echo_n "checking for $ac_word... " >&6; }
3886 if ${ac_cv_prog_CC+:} false; then :
3887 $as_echo_n "(cached) " >&6
3889 if test -n "$CC"; then
3890 ac_cv_prog_CC="$CC" # Let the user override the test.
3893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3897 test -z "$as_dir" && as_dir=.
3898 for ac_exec_ext in '' $ac_executable_extensions; do
3899 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3900 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3901 ac_prog_rejected=yes
3905 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3912 if test $ac_prog_rejected = yes; then
3913 # We found a bogon in the path, so make sure we never use it.
3914 set dummy $ac_cv_prog_CC
3916 if test $# != 0; then
3917 # We chose a different compiler from the bogus one.
3918 # However, it has the same basename, so the bogon will be chosen
3919 # first if we set CC to just the basename; use the full file name.
3921 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3927 if test -n "$CC"; then
3928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3929 $as_echo "$CC" >&6; }
3931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3932 $as_echo "no" >&6; }
3937 if test -z "$CC"; then
3938 if test -n "$ac_tool_prefix"; then
3939 for ac_prog in cl.exe
3941 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3942 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3944 $as_echo_n "checking for $ac_word... " >&6; }
3945 if ${ac_cv_prog_CC+:} false; then :
3946 $as_echo_n "(cached) " >&6
3948 if test -n "$CC"; then
3949 ac_cv_prog_CC="$CC" # Let the user override the test.
3951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3955 test -z "$as_dir" && as_dir=.
3956 for ac_exec_ext in '' $ac_executable_extensions; do
3957 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3958 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3969 if test -n "$CC"; then
3970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3971 $as_echo "$CC" >&6; }
3973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3974 $as_echo "no" >&6; }
3978 test -n "$CC" && break
3981 if test -z "$CC"; then
3983 for ac_prog in cl.exe
3985 # Extract the first word of "$ac_prog", so it can be a program name with args.
3986 set dummy $ac_prog; ac_word=$2
3987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3988 $as_echo_n "checking for $ac_word... " >&6; }
3989 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3990 $as_echo_n "(cached) " >&6
3992 if test -n "$ac_ct_CC"; then
3993 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3999 test -z "$as_dir" && as_dir=.
4000 for ac_exec_ext in '' $ac_executable_extensions; do
4001 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4002 ac_cv_prog_ac_ct_CC="$ac_prog"
4003 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4012 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4013 if test -n "$ac_ct_CC"; then
4014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4015 $as_echo "$ac_ct_CC" >&6; }
4017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4018 $as_echo "no" >&6; }
4022 test -n "$ac_ct_CC" && break
4025 if test "x$ac_ct_CC" = x; then
4028 case $cross_compiling:$ac_tool_warned in
4030 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4031 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4032 ac_tool_warned=yes ;;
4041 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4042 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4043 as_fn_error $? "no acceptable C compiler found in \$PATH
4044 See \`config.log' for more details" "$LINENO" 5; }
4046 # Provide some information about the compiler.
4047 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4050 for ac_option in --version -v -V -qversion; do
4051 { { ac_try="$ac_compiler $ac_option >&5"
4053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4054 *) ac_try_echo=$ac_try;;
4056 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4057 $as_echo "$ac_try_echo"; } >&5
4058 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4060 if test -s conftest.err; then
4062 ... rest of stderr output deleted ...
4063 10q' conftest.err >conftest.er1
4064 cat conftest.er1 >&5
4066 rm -f conftest.er1 conftest.err
4067 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4068 test $ac_status = 0; }
4071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4072 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4073 if ${ac_cv_c_compiler_gnu+:} false; then :
4074 $as_echo_n "(cached) " >&6
4076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4077 /* end confdefs.h. */
4090 if ac_fn_c_try_compile "$LINENO"; then :
4095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4096 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4100 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4101 if test $ac_compiler_gnu = yes; then
4106 ac_test_CFLAGS=${CFLAGS+set}
4107 ac_save_CFLAGS=$CFLAGS
4108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4109 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4110 if ${ac_cv_prog_cc_g+:} false; then :
4111 $as_echo_n "(cached) " >&6
4113 ac_save_c_werror_flag=$ac_c_werror_flag
4114 ac_c_werror_flag=yes
4117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4118 /* end confdefs.h. */
4128 if ac_fn_c_try_compile "$LINENO"; then :
4132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4133 /* end confdefs.h. */
4143 if ac_fn_c_try_compile "$LINENO"; then :
4146 ac_c_werror_flag=$ac_save_c_werror_flag
4148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4149 /* end confdefs.h. */
4159 if ac_fn_c_try_compile "$LINENO"; then :
4162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4167 ac_c_werror_flag=$ac_save_c_werror_flag
4169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4170 $as_echo "$ac_cv_prog_cc_g" >&6; }
4171 if test "$ac_test_CFLAGS" = set; then
4172 CFLAGS=$ac_save_CFLAGS
4173 elif test $ac_cv_prog_cc_g = yes; then
4174 if test "$GCC" = yes; then
4180 if test "$GCC" = yes; then
4186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4187 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4188 if ${ac_cv_prog_cc_c89+:} false; then :
4189 $as_echo_n "(cached) " >&6
4191 ac_cv_prog_cc_c89=no
4193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4194 /* end confdefs.h. */
4198 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4199 struct buf { int x; };
4200 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4201 static char *e (p, i)
4207 static char *f (char * (*g) (char **, int), char **p, ...)
4212 s = g (p, va_arg (v,int));
4217 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4218 function prototypes and stuff, but not '\xHH' hex character constants.
4219 These don't provoke an error unfortunately, instead are silently treated
4220 as 'x'. The following induces an error, until -std is added to get
4221 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4222 array size at least. It's necessary to write '\x00'==0 to get something
4223 that's true only with -std. */
4224 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4226 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4227 inside strings and character constants. */
4229 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4231 int test (int i, double x);
4232 struct s1 {int (*f) (int a);};
4233 struct s2 {int (*f) (double a);};
4234 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4240 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4245 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4246 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4248 CC="$ac_save_CC $ac_arg"
4249 if ac_fn_c_try_compile "$LINENO"; then :
4250 ac_cv_prog_cc_c89=$ac_arg
4252 rm -f core conftest.err conftest.$ac_objext
4253 test "x$ac_cv_prog_cc_c89" != "xno" && break
4255 rm -f conftest.$ac_ext
4260 case "x$ac_cv_prog_cc_c89" in
4262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4263 $as_echo "none needed" >&6; } ;;
4265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4266 $as_echo "unsupported" >&6; } ;;
4268 CC="$CC $ac_cv_prog_cc_c89"
4269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4270 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4272 if test "x$ac_cv_prog_cc_c89" != xno; then :
4277 ac_cpp='$CPP $CPPFLAGS'
4278 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4279 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4280 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4282 if test "$GCC" = yes; then
4283 RDYNAMIC="-rdynamic"
4287 ac_cpp='$CPP $CPPFLAGS'
4288 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4289 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4290 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4292 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4293 # On Suns, sometimes $CPP names a directory.
4294 if test -n "$CPP" && test -d "$CPP"; then
4297 if test -z "$CPP"; then
4298 if ${ac_cv_prog_CPP+:} false; then :
4299 $as_echo_n "(cached) " >&6
4301 # Double quotes because CPP needs to be expanded
4302 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4305 for ac_c_preproc_warn_flag in '' yes
4307 # Use a header file that comes with gcc, so configuring glibc
4308 # with a fresh cross-compiler works.
4309 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4310 # <limits.h> exists even on freestanding compilers.
4311 # On the NeXT, cc -E runs the code through the compiler's parser,
4312 # not just through cpp. "Syntax error" is here to catch this case.
4313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4314 /* end confdefs.h. */
4316 # include <limits.h>
4318 # include <assert.h>
4322 if ac_fn_c_try_cpp "$LINENO"; then :
4325 # Broken: fails on valid input.
4328 rm -f conftest.err conftest.i conftest.$ac_ext
4330 # OK, works on sane cases. Now check whether nonexistent headers
4331 # can be detected and how.
4332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4333 /* end confdefs.h. */
4334 #include <ac_nonexistent.h>
4336 if ac_fn_c_try_cpp "$LINENO"; then :
4337 # Broken: success on invalid input.
4340 # Passes both tests.
4344 rm -f conftest.err conftest.i conftest.$ac_ext
4347 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4348 rm -f conftest.i conftest.err conftest.$ac_ext
4349 if $ac_preproc_ok; then :
4361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4362 $as_echo "$CPP" >&6; }
4364 for ac_c_preproc_warn_flag in '' yes
4366 # Use a header file that comes with gcc, so configuring glibc
4367 # with a fresh cross-compiler works.
4368 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4369 # <limits.h> exists even on freestanding compilers.
4370 # On the NeXT, cc -E runs the code through the compiler's parser,
4371 # not just through cpp. "Syntax error" is here to catch this case.
4372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4373 /* end confdefs.h. */
4375 # include <limits.h>
4377 # include <assert.h>
4381 if ac_fn_c_try_cpp "$LINENO"; then :
4384 # Broken: fails on valid input.
4387 rm -f conftest.err conftest.i conftest.$ac_ext
4389 # OK, works on sane cases. Now check whether nonexistent headers
4390 # can be detected and how.
4391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4392 /* end confdefs.h. */
4393 #include <ac_nonexistent.h>
4395 if ac_fn_c_try_cpp "$LINENO"; then :
4396 # Broken: success on invalid input.
4399 # Passes both tests.
4403 rm -f conftest.err conftest.i conftest.$ac_ext
4406 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4407 rm -f conftest.i conftest.err conftest.$ac_ext
4408 if $ac_preproc_ok; then :
4411 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4412 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4413 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4414 See \`config.log' for more details" "$LINENO" 5; }
4418 ac_cpp='$CPP $CPPFLAGS'
4419 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4420 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4421 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for additional special compiler flags" >&5
4424 $as_echo_n "checking for additional special compiler flags... " >&6; }
4425 if test "$GCC" = yes
4428 alpha) addcflags="-mieee" ;;
4431 if test "x$addcflags" != x
4433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $addcflags" >&5
4434 $as_echo "$addcflags" >&6; }
4435 CFLAGS="$addcflags $CFLAGS"
4437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (none)" >&5
4438 $as_echo "(none)" >&6; }
4441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4442 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4443 if ${ac_cv_path_GREP+:} false; then :
4444 $as_echo_n "(cached) " >&6
4446 if test -z "$GREP"; then
4447 ac_path_GREP_found=false
4448 # Loop through the user's path and test for each of PROGNAME-LIST
4449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4450 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4453 test -z "$as_dir" && as_dir=.
4454 for ac_prog in grep ggrep; do
4455 for ac_exec_ext in '' $ac_executable_extensions; do
4456 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4457 as_fn_executable_p "$ac_path_GREP" || continue
4458 # Check for GNU ac_path_GREP and select it if it is found.
4459 # Check for GNU $ac_path_GREP
4460 case `"$ac_path_GREP" --version 2>&1` in
4462 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4465 $as_echo_n 0123456789 >"conftest.in"
4468 cat "conftest.in" "conftest.in" >"conftest.tmp"
4469 mv "conftest.tmp" "conftest.in"
4470 cp "conftest.in" "conftest.nl"
4471 $as_echo 'GREP' >> "conftest.nl"
4472 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4473 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4474 as_fn_arith $ac_count + 1 && ac_count=$as_val
4475 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4476 # Best one so far, save it but keep looking for a better one
4477 ac_cv_path_GREP="$ac_path_GREP"
4478 ac_path_GREP_max=$ac_count
4480 # 10*(2^10) chars as input seems more than enough
4481 test $ac_count -gt 10 && break
4483 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4486 $ac_path_GREP_found && break 3
4491 if test -z "$ac_cv_path_GREP"; then
4492 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4495 ac_cv_path_GREP=$GREP
4499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4500 $as_echo "$ac_cv_path_GREP" >&6; }
4501 GREP="$ac_cv_path_GREP"
4504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4505 $as_echo_n "checking for egrep... " >&6; }
4506 if ${ac_cv_path_EGREP+:} false; then :
4507 $as_echo_n "(cached) " >&6
4509 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4510 then ac_cv_path_EGREP="$GREP -E"
4512 if test -z "$EGREP"; then
4513 ac_path_EGREP_found=false
4514 # Loop through the user's path and test for each of PROGNAME-LIST
4515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4516 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4519 test -z "$as_dir" && as_dir=.
4520 for ac_prog in egrep; do
4521 for ac_exec_ext in '' $ac_executable_extensions; do
4522 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4523 as_fn_executable_p "$ac_path_EGREP" || continue
4524 # Check for GNU ac_path_EGREP and select it if it is found.
4525 # Check for GNU $ac_path_EGREP
4526 case `"$ac_path_EGREP" --version 2>&1` in
4528 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4531 $as_echo_n 0123456789 >"conftest.in"
4534 cat "conftest.in" "conftest.in" >"conftest.tmp"
4535 mv "conftest.tmp" "conftest.in"
4536 cp "conftest.in" "conftest.nl"
4537 $as_echo 'EGREP' >> "conftest.nl"
4538 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4539 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4540 as_fn_arith $ac_count + 1 && ac_count=$as_val
4541 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4542 # Best one so far, save it but keep looking for a better one
4543 ac_cv_path_EGREP="$ac_path_EGREP"
4544 ac_path_EGREP_max=$ac_count
4546 # 10*(2^10) chars as input seems more than enough
4547 test $ac_count -gt 10 && break
4549 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4552 $ac_path_EGREP_found && break 3
4557 if test -z "$ac_cv_path_EGREP"; then
4558 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4561 ac_cv_path_EGREP=$EGREP
4566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4567 $as_echo "$ac_cv_path_EGREP" >&6; }
4568 EGREP="$ac_cv_path_EGREP"
4571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4572 $as_echo_n "checking for ANSI C header files... " >&6; }
4573 if ${ac_cv_header_stdc+:} false; then :
4574 $as_echo_n "(cached) " >&6
4576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4577 /* end confdefs.h. */
4591 if ac_fn_c_try_compile "$LINENO"; then :
4592 ac_cv_header_stdc=yes
4594 ac_cv_header_stdc=no
4596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4598 if test $ac_cv_header_stdc = yes; then
4599 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4601 /* end confdefs.h. */
4605 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4606 $EGREP "memchr" >/dev/null 2>&1; then :
4609 ac_cv_header_stdc=no
4615 if test $ac_cv_header_stdc = yes; then
4616 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4618 /* end confdefs.h. */
4622 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4623 $EGREP "free" >/dev/null 2>&1; then :
4626 ac_cv_header_stdc=no
4632 if test $ac_cv_header_stdc = yes; then
4633 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4634 if test "$cross_compiling" = yes; then :
4637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4638 /* end confdefs.h. */
4641 #if ((' ' & 0x0FF) == 0x020)
4642 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4643 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4645 # define ISLOWER(c) \
4646 (('a' <= (c) && (c) <= 'i') \
4647 || ('j' <= (c) && (c) <= 'r') \
4648 || ('s' <= (c) && (c) <= 'z'))
4649 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4652 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4657 for (i = 0; i < 256; i++)
4658 if (XOR (islower (i), ISLOWER (i))
4659 || toupper (i) != TOUPPER (i))
4664 if ac_fn_c_try_run "$LINENO"; then :
4667 ac_cv_header_stdc=no
4669 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4670 conftest.$ac_objext conftest.beam conftest.$ac_ext
4675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4676 $as_echo "$ac_cv_header_stdc" >&6; }
4677 if test $ac_cv_header_stdc = yes; then
4679 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4683 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4684 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4685 inttypes.h stdint.h unistd.h
4687 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4688 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4690 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4691 cat >>confdefs.h <<_ACEOF
4692 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4701 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4702 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4709 if test "$MINIX" = yes; then
4711 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4714 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4717 $as_echo "#define _MINIX 1" >>confdefs.h
4722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4723 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4724 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4725 $as_echo_n "(cached) " >&6
4727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4728 /* end confdefs.h. */
4730 # define __EXTENSIONS__ 1
4731 $ac_includes_default
4740 if ac_fn_c_try_compile "$LINENO"; then :
4741 ac_cv_safe_to_define___extensions__=yes
4743 ac_cv_safe_to_define___extensions__=no
4745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4748 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4749 test $ac_cv_safe_to_define___extensions__ = yes &&
4750 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4752 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4754 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4756 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4758 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4765 # Check whether --with-root-prefix was given.
4766 if test "${with_root_prefix+set}" = set; then :
4767 withval=$with_root_prefix; root_prefix=$withval
4771 # Check whether --enable-maintainer-mode was given.
4772 if test "${enable_maintainer_mode+set}" = set; then :
4773 enableval=$enable_maintainer_mode; if test "$enableval" = "no"
4776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode" >&5
4777 $as_echo "Disabling maintainer mode" >&6; }
4780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling maintainer mode" >&5
4781 $as_echo "Enabling maintainer mode" >&6; }
4786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode by default" >&5
4787 $as_echo "Disabling maintainer mode by default" >&6; }
4792 # Check whether --enable-symlink-install was given.
4793 if test "${enable_symlink_install+set}" = set; then :
4794 enableval=$enable_symlink_install; if test "$enableval" = "no"
4796 LINK_INSTALL_FLAGS=-f
4797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install" >&5
4798 $as_echo "Disabling symlinks for install" >&6; }
4800 LINK_INSTALL_FLAGS=-sf
4801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for install" >&5
4802 $as_echo "Enabling symlinks for install" >&6; }
4806 LINK_INSTALL_FLAGS=-f
4807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install by default" >&5
4808 $as_echo "Disabling symlinks for install by default" >&6; }
4813 relative_symlink_defined=
4814 # Check whether --enable-relative-symlinks was given.
4815 if test "${enable_relative_symlinks+set}" = set; then :
4816 enableval=$enable_relative_symlinks; if test "$enableval" = "no"
4819 relative_symlink_defined=yes
4820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
4821 $as_echo "Disabling relative symlinks for install" >&6; }
4823 SYMLINK_RELATIVE=--relative
4824 relative_symlink_defined=yes
4825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5
4826 $as_echo "Enabling relative symlinks for install" >&6; }
4830 # Check whether --enable-symlink-relative-symlinks was given.
4831 if test "${enable_symlink_relative_symlinks+set}" = set; then :
4832 enableval=$enable_symlink_relative_symlinks; if test "$enableval" = "no"
4834 SYMLINK_RELATIVE=yes
4835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
4836 $as_echo "Disabling relative symlinks for install" >&6; }
4838 SYMLINK_RELATIVE=--relative
4839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5
4840 $as_echo "Enabling relative symlinks for install" >&6; }
4844 if test -z "$relative_symlink_defined"
4847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install by default" >&5
4848 $as_echo "Disabling relative symlinks for install by default" >&6; }
4854 # Check whether --enable-symlink-build was given.
4855 if test "${enable_symlink_build+set}" = set; then :
4856 enableval=$enable_symlink_build; if test "$enableval" = "no"
4859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build" >&5
4860 $as_echo "Disabling symlinks for build" >&6; }
4863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for build" >&5
4864 $as_echo "Enabling symlinks for build" >&6; }
4869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build by default" >&5
4870 $as_echo "Disabling symlinks for build by default" >&6; }
4875 # Check whether --enable-verbose-makecmds was given.
4876 if test "${enable_verbose_makecmds+set}" = set; then :
4877 enableval=$enable_verbose_makecmds; if test "$enableval" = "no"
4879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
4880 $as_echo "Disabling verbose make commands" >&6; }
4885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling verbose make commands" >&5
4886 $as_echo "Enabling verbose make commands" >&6; }
4893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
4894 $as_echo "Disabling verbose make commands" >&6; }
4904 # Check whether --enable-compression was given.
4905 if test "${enable_compression+set}" = set; then :
4906 enableval=$enable_compression; if test "$enableval" = "no"
4908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling compression support" >&5
4909 $as_echo "Disabling compression support" >&6; }
4912 $as_echo "#define ENABLE_COMPRESSION 1" >>confdefs.h
4914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling compression support" >&5
4915 $as_echo "Enabling compression support" >&6; }
4916 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Compression support is experimental" >&5
4917 $as_echo "$as_me: WARNING: Compression support is experimental" >&2;}
4921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling compression support by default" >&5
4922 $as_echo "Disabling compression support by default" >&6; }
4927 # Check whether --enable-htree was given.
4928 if test "${enable_htree+set}" = set; then :
4929 enableval=$enable_htree; if test "$enableval" = "no"
4932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling htree directory support" >&5
4933 $as_echo "Disabling htree directory support" >&6; }
4936 $as_echo "#define ENABLE_HTREE 1" >>confdefs.h
4938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling htree directory support" >&5
4939 $as_echo "Enabling htree directory support" >&6; }
4944 $as_echo "#define ENABLE_HTREE 1" >>confdefs.h
4946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling htree directory support by default" >&5
4947 $as_echo "Enabling htree directory support by default" >&6; }
4952 E2_PKG_CONFIG_STATIC=--static
4955 # Check whether --enable-elf-shlibs was given.
4956 if test "${enable_elf_shlibs+set}" = set; then :
4957 enableval=$enable_elf_shlibs; if test "$enableval" = "no"
4960 MAKEFILE_ELF=/dev/null
4961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries" >&5
4962 $as_echo "Disabling ELF shared libraries" >&6; }
4964 E2_PKG_CONFIG_STATIC=
4966 MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
4969 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
4975 LDFLAG_DYNAMIC='-Wl,-rpath-link,$(top_builddir)/lib'
4976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling ELF shared libraries" >&5
4977 $as_echo "Enabling ELF shared libraries" >&6; }
4981 MAKEFILE_ELF=/dev/null
4983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries by default" >&5
4984 $as_echo "Disabling ELF shared libraries by default" >&6; }
4990 # Check whether --enable-bsd-shlibs was given.
4991 if test "${enable_bsd_shlibs+set}" = set; then :
4992 enableval=$enable_bsd_shlibs; if test "$enableval" = "no"
4995 MAKEFILE_BSDLIB=/dev/null
4996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries" >&5
4997 $as_echo "Disabling BSD shared libraries" >&6; }
4999 E2_PKG_CONFIG_STATIC=
5001 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
5005 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib
5009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling BSD shared libraries" >&5
5010 $as_echo "Enabling BSD shared libraries" >&6; }
5014 MAKEFILE_BSDLIB=/dev/null
5016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries by default" >&5
5017 $as_echo "Disabling BSD shared libraries by default" >&6; }
5023 # Check whether --enable-profile was given.
5024 if test "${enable_profile+set}" = set; then :
5025 enableval=$enable_profile; if test "$enableval" = "no"
5028 MAKEFILE_PROFILE=/dev/null
5029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries" >&5
5030 $as_echo "Disabling profiling libraries" >&6; }
5033 MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
5034 PROFILED_LIB_EXT=_p.a
5035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building profiling libraries" >&5
5036 $as_echo "Building profiling libraries" >&6; }
5041 MAKEFILE_PROFILE=/dev/null
5042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries by default" >&5
5043 $as_echo "Disabling profiling libraries by default" >&6; }
5049 # Check whether --enable-gcov was given.
5050 if test "${enable_gcov+set}" = set; then :
5051 enableval=$enable_gcov; if test "$enableval" = "yes"
5053 CFLAGS="-g -fprofile-arcs -ftest-coverage"
5054 LDFLAGS="-fprofile-arcs -ftest-coverage"
5055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling gcov support" >&5
5056 $as_echo "Enabling gcov support" >&6; }
5067 # Check whether --enable-jbd-debug was given.
5068 if test "${enable_jbd_debug+set}" = set; then :
5069 enableval=$enable_jbd_debug; if test "$enableval" = "no"
5071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging" >&5
5072 $as_echo "Disabling journal debugging" >&6; }
5075 $as_echo "#define CONFIG_JBD_DEBUG 1" >>confdefs.h
5077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling journal debugging" >&5
5078 $as_echo "Enabling journal debugging" >&6; }
5082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging by default" >&5
5083 $as_echo "Disabling journal debugging by default" >&6; }
5087 # Check whether --enable-blkid-debug was given.
5088 if test "${enable_blkid_debug+set}" = set; then :
5089 enableval=$enable_blkid_debug; if test "$enableval" = "no"
5091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging" >&5
5092 $as_echo "Disabling blkid debugging" >&6; }
5095 $as_echo "#define CONFIG_BLKID_DEBUG 1" >>confdefs.h
5097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling blkid debugging" >&5
5098 $as_echo "Enabling blkid debugging" >&6; }
5102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging by default" >&5
5103 $as_echo "Disabling blkid debugging by default" >&6; }
5107 # Check whether --enable-testio-debug was given.
5108 if test "${enable_testio_debug+set}" = set; then :
5109 enableval=$enable_testio_debug;
5110 if test "$enableval" = "no"
5112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling testio debugging" >&5
5113 $as_echo "Disabling testio debugging" >&6; }
5117 $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
5119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging" >&5
5120 $as_echo "Enabling testio debugging" >&6; }
5124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging by default" >&5
5125 $as_echo "Enabling testio debugging by default" >&6; }
5126 $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
5140 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5141 if test -n "$ac_tool_prefix"; then
5142 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5143 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5145 $as_echo_n "checking for $ac_word... " >&6; }
5146 if ${ac_cv_path_PKG_CONFIG+:} false; then :
5147 $as_echo_n "(cached) " >&6
5151 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5158 test -z "$as_dir" && as_dir=.
5159 for ac_exec_ext in '' $ac_executable_extensions; do
5160 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5161 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5162 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5172 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5173 if test -n "$PKG_CONFIG"; then
5174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5175 $as_echo "$PKG_CONFIG" >&6; }
5177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5178 $as_echo "no" >&6; }
5183 if test -z "$ac_cv_path_PKG_CONFIG"; then
5184 ac_pt_PKG_CONFIG=$PKG_CONFIG
5185 # Extract the first word of "pkg-config", so it can be a program name with args.
5186 set dummy pkg-config; ac_word=$2
5187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5188 $as_echo_n "checking for $ac_word... " >&6; }
5189 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
5190 $as_echo_n "(cached) " >&6
5192 case $ac_pt_PKG_CONFIG in
5194 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5201 test -z "$as_dir" && as_dir=.
5202 for ac_exec_ext in '' $ac_executable_extensions; do
5203 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5204 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5205 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5215 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5216 if test -n "$ac_pt_PKG_CONFIG"; then
5217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5218 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5221 $as_echo "no" >&6; }
5224 if test "x$ac_pt_PKG_CONFIG" = x; then
5227 case $cross_compiling:$ac_tool_warned in
5229 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5230 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5231 ac_tool_warned=yes ;;
5233 PKG_CONFIG=$ac_pt_PKG_CONFIG
5236 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5240 if test -n "$PKG_CONFIG"; then
5241 _pkg_min_version=0.9.0
5242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5243 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5244 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5246 $as_echo "yes" >&6; }
5248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5249 $as_echo "no" >&6; }
5258 DEPPROFILED_LIBUUID=
5260 # Check whether --enable-libuuid was given.
5261 if test "${enable_libuuid+set}" = set; then :
5262 enableval=$enable_libuuid; if test "$enableval" = "no"
5264 if test -z "$PKG_CONFIG"; then
5265 as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5
5268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
5269 $as_echo_n "checking for uuid_generate in -luuid... " >&6; }
5270 if ${ac_cv_lib_uuid_uuid_generate+:} false; then :
5271 $as_echo_n "(cached) " >&6
5273 ac_check_lib_save_LIBS=$LIBS
5275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5276 /* end confdefs.h. */
5278 /* Override any GCC internal prototype to avoid an error.
5279 Use char because int might match the return type of a GCC
5280 builtin and then its argument prototype would still apply. */
5284 char uuid_generate ();
5288 return uuid_generate ();
5293 if ac_fn_c_try_link "$LINENO"; then :
5294 ac_cv_lib_uuid_uuid_generate=yes
5296 ac_cv_lib_uuid_uuid_generate=no
5298 rm -f core conftest.err conftest.$ac_objext \
5299 conftest$ac_exeext conftest.$ac_ext
5300 LIBS=$ac_check_lib_save_LIBS
5302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
5303 $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
5304 if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then :
5305 LIBUUID=`$PKG_CONFIG --libs uuid`;
5306 STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid`
5308 as_fn_error $? "external uuid library not found" "$LINENO" 5
5312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private uuid library" >&5
5313 $as_echo "Disabling private uuid library" >&6; }
5315 LIBUUID='$(LIB)/libuuid'$LIB_EXT
5317 STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
5318 DEPSTATIC_LIBUUID=$STATIC_LIBUUID
5319 PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
5320 DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
5321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library" >&5
5322 $as_echo "Enabling private uuid library" >&6; }
5326 LIBUUID='$(LIB)/libuuid'$LIB_EXT
5328 STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
5329 DEPSTATIC_LIBUUID=$STATIC_LIBUUID
5330 PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
5331 DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
5332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library by default" >&5
5333 $as_echo "Enabling private uuid library by default" >&6; }
5351 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5352 if test -n "$ac_tool_prefix"; then
5353 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5354 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5356 $as_echo_n "checking for $ac_word... " >&6; }
5357 if ${ac_cv_path_PKG_CONFIG+:} false; then :
5358 $as_echo_n "(cached) " >&6
5362 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5369 test -z "$as_dir" && as_dir=.
5370 for ac_exec_ext in '' $ac_executable_extensions; do
5371 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5372 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5383 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5384 if test -n "$PKG_CONFIG"; then
5385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5386 $as_echo "$PKG_CONFIG" >&6; }
5388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5389 $as_echo "no" >&6; }
5394 if test -z "$ac_cv_path_PKG_CONFIG"; then
5395 ac_pt_PKG_CONFIG=$PKG_CONFIG
5396 # Extract the first word of "pkg-config", so it can be a program name with args.
5397 set dummy pkg-config; ac_word=$2
5398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5399 $as_echo_n "checking for $ac_word... " >&6; }
5400 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
5401 $as_echo_n "(cached) " >&6
5403 case $ac_pt_PKG_CONFIG in
5405 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5412 test -z "$as_dir" && as_dir=.
5413 for ac_exec_ext in '' $ac_executable_extensions; do
5414 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5415 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5416 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5426 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5427 if test -n "$ac_pt_PKG_CONFIG"; then
5428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5429 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5432 $as_echo "no" >&6; }
5435 if test "x$ac_pt_PKG_CONFIG" = x; then
5438 case $cross_compiling:$ac_tool_warned in
5440 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5441 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5442 ac_tool_warned=yes ;;
5444 PKG_CONFIG=$ac_pt_PKG_CONFIG
5447 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5451 if test -n "$PKG_CONFIG"; then
5452 _pkg_min_version=0.9.0
5453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5454 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5455 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5457 $as_echo "yes" >&6; }
5459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5460 $as_echo "no" >&6; }
5469 DEPPROFILED_LIBBLKID=
5472 # Check whether --enable-libblkid was given.
5473 if test "${enable_libblkid+set}" = set; then :
5474 enableval=$enable_libblkid; if test "$enableval" = "no"
5476 if test -z "$PKG_CONFIG"; then
5477 as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5
5480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
5481 $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
5482 if ${ac_cv_lib_blkid_blkid_get_cache+:} false; then :
5483 $as_echo_n "(cached) " >&6
5485 ac_check_lib_save_LIBS=$LIBS
5486 LIBS="-lblkid -luuid $LIBS"
5487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5488 /* end confdefs.h. */
5490 /* Override any GCC internal prototype to avoid an error.
5491 Use char because int might match the return type of a GCC
5492 builtin and then its argument prototype would still apply. */
5496 char blkid_get_cache ();
5500 return blkid_get_cache ();
5505 if ac_fn_c_try_link "$LINENO"; then :
5506 ac_cv_lib_blkid_blkid_get_cache=yes
5508 ac_cv_lib_blkid_blkid_get_cache=no
5510 rm -f core conftest.err conftest.$ac_objext \
5511 conftest$ac_exeext conftest.$ac_ext
5512 LIBS=$ac_check_lib_save_LIBS
5514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
5515 $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
5516 if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes; then :
5517 LIBBLKID=`$PKG_CONFIG --libs blkid`;
5518 STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid`
5520 as_fn_error $? "external blkid library not found" "$LINENO" 5
5524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private blkid library" >&5
5525 $as_echo "Disabling private blkid library" >&6; }
5527 LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5528 DEPLIBBLKID=$LIBBLKID
5529 STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5530 DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5531 PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5532 DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
5533 $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
5535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library" >&5
5536 $as_echo "Enabling private blkid library" >&6; }
5540 LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5541 DEPLIBBLKID=$LIBBLKID
5542 STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5543 DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5544 PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5545 DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
5546 $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
5548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library by default" >&5
5549 $as_echo "Enabling private blkid library by default" >&6; }
5560 QUOTA_MAN_COMMENT='.\"'
5570 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5571 if test -n "$ac_tool_prefix"; then
5572 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5573 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5575 $as_echo_n "checking for $ac_word... " >&6; }
5576 if ${ac_cv_path_PKG_CONFIG+:} false; then :
5577 $as_echo_n "(cached) " >&6
5581 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5588 test -z "$as_dir" && as_dir=.
5589 for ac_exec_ext in '' $ac_executable_extensions; do
5590 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5591 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5592 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5602 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5603 if test -n "$PKG_CONFIG"; then
5604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5605 $as_echo "$PKG_CONFIG" >&6; }
5607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5608 $as_echo "no" >&6; }
5613 if test -z "$ac_cv_path_PKG_CONFIG"; then
5614 ac_pt_PKG_CONFIG=$PKG_CONFIG
5615 # Extract the first word of "pkg-config", so it can be a program name with args.
5616 set dummy pkg-config; ac_word=$2
5617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5618 $as_echo_n "checking for $ac_word... " >&6; }
5619 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
5620 $as_echo_n "(cached) " >&6
5622 case $ac_pt_PKG_CONFIG in
5624 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5631 test -z "$as_dir" && as_dir=.
5632 for ac_exec_ext in '' $ac_executable_extensions; do
5633 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5634 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5635 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5645 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5646 if test -n "$ac_pt_PKG_CONFIG"; then
5647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5648 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5651 $as_echo "no" >&6; }
5654 if test "x$ac_pt_PKG_CONFIG" = x; then
5657 case $cross_compiling:$ac_tool_warned in
5659 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5660 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5661 ac_tool_warned=yes ;;
5663 PKG_CONFIG=$ac_pt_PKG_CONFIG
5666 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5670 if test -n "$PKG_CONFIG"; then
5671 _pkg_min_version=0.9.0
5672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5673 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5674 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5676 $as_echo "yes" >&6; }
5678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5679 $as_echo "no" >&6; }
5684 # Check whether --enable-quota was given.
5685 if test "${enable_quota+set}" = set; then :
5686 enableval=$enable_quota; if test "$enableval" = "no"
5689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling quota support" >&5
5690 $as_echo "Disabling quota support" >&6; }
5693 $as_echo "#define CONFIG_QUOTA 1" >>confdefs.h
5695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling quota support" >&5
5696 $as_echo "Enabling quota support" >&6; }
5697 QUOTA_MAN_COMMENT=""
5703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling quota support by default" >&5
5704 $as_echo "Disabling quota support by default" >&6; }
5708 LIBQUOTA='$(LIB)/libquota'$LIB_EXT
5709 DEPLIBQUOTA=$LIBQUOTA
5710 STATIC_LIBQUOTA='$(LIB)/libquota'$STATIC_LIB_EXT
5711 DEPSTATIC_LIBQUOTA=$STATIC_LIBQUOTA
5712 PROFILED_LIBQUOTA='$(LIB)/libquota'$PROFILED_LIB_EXT
5713 DEPPROFILED_LIBQUOTA=$PROFILED_LIBQUOTA
5722 # Check whether --enable-backtrace was given.
5723 if test "${enable_backtrace+set}" = set; then :
5724 enableval=$enable_backtrace; if test "$enableval" = "no"
5726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling use of backtrace" >&5
5727 $as_echo "Disabling use of backtrace" >&6; }
5728 $as_echo "#define DISABLE_BACKTRACE 1" >>confdefs.h
5731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace" >&5
5732 $as_echo "Enabling use of backtrace" >&6; }
5736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace by default" >&5
5737 $as_echo "Enabling use of backtrace by default" >&6; }
5741 # Check whether --enable-debugfs was given.
5742 if test "${enable_debugfs+set}" = set; then :
5743 enableval=$enable_debugfs; if test "$enableval" = "no"
5745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling debugfs support" >&5
5746 $as_echo "Disabling debugfs support" >&6; }
5750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support" >&5
5751 $as_echo "Enabling debugfs support" >&6; }
5755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support by default" >&5
5756 $as_echo "Enabling debugfs support by default" >&6; }
5762 # Check whether --enable-imager was given.
5763 if test "${enable_imager+set}" = set; then :
5764 enableval=$enable_imager; if test "$enableval" = "no"
5766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2image support" >&5
5767 $as_echo "Disabling e2image support" >&6; }
5771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support" >&5
5772 $as_echo "Enabling e2image support" >&6; }
5776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support by default" >&5
5777 $as_echo "Enabling e2image support by default" >&6; }
5783 # Check whether --enable-resizer was given.
5784 if test "${enable_resizer+set}" = set; then :
5785 enableval=$enable_resizer; if test "$enableval" = "no"
5787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2resize support" >&5
5788 $as_echo "Disabling e2resize support" >&6; }
5792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support" >&5
5793 $as_echo "Enabling e2resize support" >&6; }
5797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support by default" >&5
5798 $as_echo "Enabling e2resize support by default" >&6; }
5804 # Check whether --enable-defrag was given.
5805 if test "${enable_defrag+set}" = set; then :
5806 enableval=$enable_defrag; if test "$enableval" = "no"
5808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support" >&5
5809 $as_echo "Disabling e4defrag support" >&6; }
5813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support" >&5
5814 $as_echo "Enabling e4defrag support" >&6; }
5818 if test -z "$WITH_DIET_LIBC"
5820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support by default" >&5
5821 $as_echo "Enabling e4defrag support by default" >&6; }
5824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support by default" >&5
5825 $as_echo "Disabling e4defrag support by default" >&6; }
5832 # Check whether --enable-fsck was given.
5833 if test "${enable_fsck+set}" = set; then :
5834 enableval=$enable_fsck; if test "$enableval" = "no"
5836 FSCK_PROG='' FSCK_MAN=''
5837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper" >&5
5838 $as_echo "Not building fsck wrapper" >&6; }
5840 FSCK_PROG=fsck FSCK_MAN=fsck.8
5841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper" >&5
5842 $as_echo "Building fsck wrapper" >&6; }
5848 FSCK_PROG='' FSCK_MAN=''
5849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper by default" >&5
5850 $as_echo "Not building fsck wrapper by default" >&6; }
5853 FSCK_PROG=fsck FSCK_MAN=fsck.8
5854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper by default" >&5
5855 $as_echo "Building fsck wrapper by default" >&6; }
5862 # Check whether --enable-e2initrd-helper was given.
5863 if test "${enable_e2initrd_helper+set}" = set; then :
5864 enableval=$enable_e2initrd_helper; if test "$enableval" = "no"
5866 E2INITRD_PROG='' E2INITRD_MAN=''
5867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building e2initrd helper" >&5
5868 $as_echo "Not building e2initrd helper" >&6; }
5870 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
5871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper" >&5
5872 $as_echo "Building e2initrd helper" >&6; }
5876 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
5877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper by default" >&5
5878 $as_echo "Building e2initrd helper by default" >&6; }
5884 # Check whether --enable-tls was given.
5885 if test "${enable_tls+set}" = set; then :
5886 enableval=$enable_tls; if test "$enableval" = "no"
5889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling thread local support" >&5
5890 $as_echo "Disabling thread local support" >&6; }
5893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling thread local support" >&5
5894 $as_echo "Enabling thread local support" >&6; }
5898 if test -n "$WITH_DIET_LIBC"
5901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Diet libc does not support thread local support" >&5
5902 $as_echo "Diet libc does not support thread local support" >&6; }
5905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Try using thread local support by default" >&5
5906 $as_echo "Try using thread local support by default" >&6; }
5911 if test "$try_tls" = "yes"
5914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread local storage (TLS) class" >&5
5915 $as_echo_n "checking for thread local storage (TLS) class... " >&6; }
5916 if ${ac_cv_tls+:} false; then :
5917 $as_echo_n "(cached) " >&6
5920 ax_tls_keywords="__thread __declspec(thread) none"
5921 for ax_tls_keyword in $ax_tls_keywords; do
5922 case $ax_tls_keyword in
5923 none) ac_cv_tls=none ; break ;;
5925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5926 /* end confdefs.h. */
5930 static $ax_tls_keyword int bar;
5941 if ac_fn_c_try_compile "$LINENO"; then :
5942 ac_cv_tls=$ax_tls_keyword ; break
5947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5954 if test "$ac_cv_tls" != "none"; then
5956 cat >>confdefs.h <<_ACEOF
5957 #define TLS $ac_cv_tls
5961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tls" >&5
5962 $as_echo "$ac_cv_tls" >&6; }
5966 # Check whether --enable-uuidd was given.
5967 if test "${enable_uuidd+set}" = set; then :
5968 enableval=$enable_uuidd; if test "$enableval" = "no"
5970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building uuidd" >&5
5971 $as_echo "Not building uuidd" >&6; }
5974 $as_echo "#define USE_UUIDD 1" >>confdefs.h
5977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd" >&5
5978 $as_echo "Building uuidd" >&6; }
5982 $as_echo "#define USE_UUIDD 1" >>confdefs.h
5985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd by default" >&5
5986 $as_echo "Building uuidd by default" >&6; }
5992 # Check whether --enable-mmp was given.
5993 if test "${enable_mmp+set}" = set; then :
5994 enableval=$enable_mmp; if test "$enableval" = "no"
5996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling mmp support" >&5
5997 $as_echo "Disabling mmp support" >&6; }
5999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support" >&5
6000 $as_echo "Enabling mmp support" >&6; }
6001 $as_echo "#define CONFIG_MMP 1" >>confdefs.h
6006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support by default" >&5
6007 $as_echo "Enabling mmp support by default" >&6; }
6008 $as_echo "#define CONFIG_MMP 1" >>confdefs.h
6014 # Check whether --enable-bmap-stats was given.
6015 if test "${enable_bmap_stats+set}" = set; then :
6016 enableval=$enable_bmap_stats; if test "$enableval" = "no"
6018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling bitmap statistics support" >&5
6019 $as_echo "Disabling bitmap statistics support" >&6; }
6021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling bitmap statistics support" >&5
6022 $as_echo "Enabling bitmap statistics support" >&6; }
6023 $as_echo "#define ENABLE_BMAP_STATS 1" >>confdefs.h
6028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling bitmap statistics support by default" >&5
6029 $as_echo "Enabling bitmap statistics support by default" >&6; }
6030 $as_echo "#define ENABLE_BMAP_STATS 1" >>confdefs.h
6036 # Check whether --enable-bmap-stats-ops was given.
6037 if test "${enable_bmap_stats_ops+set}" = set; then :
6038 enableval=$enable_bmap_stats_ops; if test "$enableval" = "no"
6040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling additional bitmap statistics" >&5
6041 $as_echo "Disabling additional bitmap statistics" >&6; }
6043 if test "x${enable_bmap_stats}" = "xno"; then :
6044 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6045 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6046 as_fn_error $? "Error --enable-bmap-stats-ops requires bmap-stats
6047 See \`config.log' for more details" "$LINENO" 5; }
6050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling additional bitmap statistics" >&5
6051 $as_echo "Enabling additional bitmap statistics" >&6; }
6052 $as_echo "#define ENABLE_BMAP_STATS_OPS 1" >>confdefs.h
6057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling additional bitmap statistics by default" >&5
6058 $as_echo "Disabling additional bitmap statistics by default" >&6; }
6062 MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
6064 GETTEXT_PACKAGE=e2fsprogs
6066 VERSION="$E2FSPROGS_VERSION"
6069 cat >>confdefs.h <<_ACEOF
6070 #define PACKAGE "$PACKAGE"
6074 cat >>confdefs.h <<_ACEOF
6075 #define VERSION "$VERSION"
6082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6083 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6085 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6086 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
6087 $as_echo_n "(cached) " >&6
6089 cat >conftest.make <<\_ACEOF
6092 @echo '@@@%%%=$(MAKE)=@@@%%%'
6094 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
6095 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6097 eval ac_cv_prog_make_${ac_make}_set=yes;;
6099 eval ac_cv_prog_make_${ac_make}_set=no;;
6103 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6105 $as_echo "yes" >&6; }
6108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6109 $as_echo "no" >&6; }
6110 SET_MAKE="MAKE=${MAKE-make}"
6113 # Find a good install program. We prefer a C program (faster),
6114 # so one script is as good as another. But avoid the broken or
6115 # incompatible versions:
6116 # SysV /etc/install, /usr/sbin/install
6117 # SunOS /usr/etc/install
6118 # IRIX /sbin/install
6120 # AmigaOS /C/install, which installs bootblocks on floppy discs
6121 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6122 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6123 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6124 # OS/2's system install, which has a completely different semantic
6125 # ./install, which can be erroneously created by make from ./install.sh.
6126 # Reject install programs that cannot install multiple files.
6127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
6128 $as_echo_n "checking for a BSD-compatible install... " >&6; }
6129 if test -z "$INSTALL"; then
6130 if ${ac_cv_path_install+:} false; then :
6131 $as_echo_n "(cached) " >&6
6133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6137 test -z "$as_dir" && as_dir=.
6138 # Account for people who put trailing slashes in PATH elements.
6139 case $as_dir/ in #((
6140 ./ | .// | /[cC]/* | \
6141 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6142 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
6145 # OSF1 and SCO ODT 3.0 have their own names for install.
6146 # Don't use installbsd from OSF since it installs stuff as root
6148 for ac_prog in ginstall scoinst install; do
6149 for ac_exec_ext in '' $ac_executable_extensions; do
6150 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
6151 if test $ac_prog = install &&
6152 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6153 # AIX install. It has an incompatible calling convention.
6155 elif test $ac_prog = install &&
6156 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6157 # program-specific install script used by HP pwplus--don't use.
6160 rm -rf conftest.one conftest.two conftest.dir
6161 echo one > conftest.one
6162 echo two > conftest.two
6164 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
6165 test -s conftest.one && test -s conftest.two &&
6166 test -s conftest.dir/conftest.one &&
6167 test -s conftest.dir/conftest.two
6169 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6182 rm -rf conftest.one conftest.two conftest.dir
6185 if test "${ac_cv_path_install+set}" = set; then
6186 INSTALL=$ac_cv_path_install
6188 # As a last resort, use the slow shell script. Don't cache a
6189 # value for INSTALL within a source directory, because that will
6190 # break other packages using the cache if that directory is
6191 # removed, or if the value is a relative name.
6192 INSTALL=$ac_install_sh
6195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
6196 $as_echo "$INSTALL" >&6; }
6198 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6199 # It thinks the first close brace ends the variable substitution.
6200 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6202 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6204 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
6207 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
6208 if test -z "$MKDIR_P"; then
6209 if ${ac_cv_path_mkdir+:} false; then :
6210 $as_echo_n "(cached) " >&6
6212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6213 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
6216 test -z "$as_dir" && as_dir=.
6217 for ac_prog in mkdir gmkdir; do
6218 for ac_exec_ext in '' $ac_executable_extensions; do
6219 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
6220 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
6221 'mkdir (GNU coreutils) '* | \
6222 'mkdir (coreutils) '* | \
6223 'mkdir (fileutils) '4.1*)
6224 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
6234 test -d ./--version && rmdir ./--version
6235 if test "${ac_cv_path_mkdir+set}" = set; then
6236 MKDIR_P="$ac_cv_path_mkdir -p"
6238 # As a last resort, use the slow shell script. Don't cache a
6239 # value for MKDIR_P within a source directory, because that will
6240 # break other packages using the cache if that directory is
6241 # removed, or if the value is a relative name.
6242 MKDIR_P="$ac_install_sh -d"
6245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
6246 $as_echo "$MKDIR_P" >&6; }
6248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6249 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6250 if ${ac_cv_path_SED+:} false; then :
6251 $as_echo_n "(cached) " >&6
6253 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6254 for ac_i in 1 2 3 4 5 6 7; do
6255 ac_script="$ac_script$as_nl$ac_script"
6257 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6258 { ac_script=; unset ac_script;}
6259 if test -z "$SED"; then
6260 ac_path_SED_found=false
6261 # Loop through the user's path and test for each of PROGNAME-LIST
6262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6266 test -z "$as_dir" && as_dir=.
6267 for ac_prog in sed gsed; do
6268 for ac_exec_ext in '' $ac_executable_extensions; do
6269 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6270 as_fn_executable_p "$ac_path_SED" || continue
6271 # Check for GNU ac_path_SED and select it if it is found.
6272 # Check for GNU $ac_path_SED
6273 case `"$ac_path_SED" --version 2>&1` in
6275 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6278 $as_echo_n 0123456789 >"conftest.in"
6281 cat "conftest.in" "conftest.in" >"conftest.tmp"
6282 mv "conftest.tmp" "conftest.in"
6283 cp "conftest.in" "conftest.nl"
6284 $as_echo '' >> "conftest.nl"
6285 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6286 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6287 as_fn_arith $ac_count + 1 && ac_count=$as_val
6288 if test $ac_count -gt ${ac_path_SED_max-0}; then
6289 # Best one so far, save it but keep looking for a better one
6290 ac_cv_path_SED="$ac_path_SED"
6291 ac_path_SED_max=$ac_count
6293 # 10*(2^10) chars as input seems more than enough
6294 test $ac_count -gt 10 && break
6296 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6299 $ac_path_SED_found && break 3
6304 if test -z "$ac_cv_path_SED"; then
6305 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6313 $as_echo "$ac_cv_path_SED" >&6; }
6314 SED="$ac_cv_path_SED"
6318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
6319 $as_echo_n "checking whether NLS is requested... " >&6; }
6320 # Check whether --enable-nls was given.
6321 if test "${enable_nls+set}" = set; then :
6322 enableval=$enable_nls; USE_NLS=$enableval
6327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
6328 $as_echo "$USE_NLS" >&6; }
6333 GETTEXT_MACRO_VERSION=0.18
6338 # Prepare PATH_SEPARATOR.
6339 # The user is always right.
6340 if test "${PATH_SEPARATOR+set}" != set; then
6341 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
6342 # contains only /bin. Note that ksh looks also at the FPATH variable,
6343 # so we have to set that as well for the test.
6345 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6346 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6347 || PATH_SEPARATOR=';'
6351 # Find out how to test for executable files. Don't use a zero-byte file,
6352 # as systems may use methods other than mode bits to determine executability.
6353 cat >conf$$.file <<_ASEOF
6357 chmod +x conf$$.file
6358 if test -x conf$$.file >/dev/null 2>&1; then
6359 ac_executable_p="test -x"
6361 ac_executable_p="test -f"
6365 # Extract the first word of "msgfmt", so it can be a program name with args.
6366 set dummy msgfmt; ac_word=$2
6367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6368 $as_echo_n "checking for $ac_word... " >&6; }
6369 if ${ac_cv_path_MSGFMT+:} false; then :
6370 $as_echo_n "(cached) " >&6
6374 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
6377 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6378 for ac_dir in $PATH; do
6380 test -z "$ac_dir" && ac_dir=.
6381 for ac_exec_ext in '' $ac_executable_extensions; do
6382 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6383 echo "$as_me: trying $ac_dir/$ac_word..." >&5
6384 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
6385 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6386 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
6393 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
6397 MSGFMT="$ac_cv_path_MSGFMT"
6398 if test "$MSGFMT" != ":"; then
6399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
6400 $as_echo "$MSGFMT" >&6; }
6402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6403 $as_echo "no" >&6; }
6406 # Extract the first word of "gmsgfmt", so it can be a program name with args.
6407 set dummy gmsgfmt; ac_word=$2
6408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6409 $as_echo_n "checking for $ac_word... " >&6; }
6410 if ${ac_cv_path_GMSGFMT+:} false; then :
6411 $as_echo_n "(cached) " >&6
6415 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
6418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6422 test -z "$as_dir" && as_dir=.
6423 for ac_exec_ext in '' $ac_executable_extensions; do
6424 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6425 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
6426 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6433 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
6437 GMSGFMT=$ac_cv_path_GMSGFMT
6438 if test -n "$GMSGFMT"; then
6439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
6440 $as_echo "$GMSGFMT" >&6; }
6442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6443 $as_echo "no" >&6; }
6448 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6449 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
6450 *) MSGFMT_015=$MSGFMT ;;
6453 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6454 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
6455 *) GMSGFMT_015=$GMSGFMT ;;
6460 # Prepare PATH_SEPARATOR.
6461 # The user is always right.
6462 if test "${PATH_SEPARATOR+set}" != set; then
6463 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
6464 # contains only /bin. Note that ksh looks also at the FPATH variable,
6465 # so we have to set that as well for the test.
6467 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6468 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6469 || PATH_SEPARATOR=';'
6473 # Find out how to test for executable files. Don't use a zero-byte file,
6474 # as systems may use methods other than mode bits to determine executability.
6475 cat >conf$$.file <<_ASEOF
6479 chmod +x conf$$.file
6480 if test -x conf$$.file >/dev/null 2>&1; then
6481 ac_executable_p="test -x"
6483 ac_executable_p="test -f"
6487 # Extract the first word of "xgettext", so it can be a program name with args.
6488 set dummy xgettext; ac_word=$2
6489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6490 $as_echo_n "checking for $ac_word... " >&6; }
6491 if ${ac_cv_path_XGETTEXT+:} false; then :
6492 $as_echo_n "(cached) " >&6
6496 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
6499 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6500 for ac_dir in $PATH; do
6502 test -z "$ac_dir" && ac_dir=.
6503 for ac_exec_ext in '' $ac_executable_extensions; do
6504 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6505 echo "$as_me: trying $ac_dir/$ac_word..." >&5
6506 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
6507 (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
6508 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
6515 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
6519 XGETTEXT="$ac_cv_path_XGETTEXT"
6520 if test "$XGETTEXT" != ":"; then
6521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
6522 $as_echo "$XGETTEXT" >&6; }
6524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6525 $as_echo "no" >&6; }
6530 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6531 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
6532 *) XGETTEXT_015=$XGETTEXT ;;
6537 # Prepare PATH_SEPARATOR.
6538 # The user is always right.
6539 if test "${PATH_SEPARATOR+set}" != set; then
6540 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
6541 # contains only /bin. Note that ksh looks also at the FPATH variable,
6542 # so we have to set that as well for the test.
6544 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6545 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6546 || PATH_SEPARATOR=';'
6550 # Find out how to test for executable files. Don't use a zero-byte file,
6551 # as systems may use methods other than mode bits to determine executability.
6552 cat >conf$$.file <<_ASEOF
6556 chmod +x conf$$.file
6557 if test -x conf$$.file >/dev/null 2>&1; then
6558 ac_executable_p="test -x"
6560 ac_executable_p="test -f"
6564 # Extract the first word of "msgmerge", so it can be a program name with args.
6565 set dummy msgmerge; ac_word=$2
6566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6567 $as_echo_n "checking for $ac_word... " >&6; }
6568 if ${ac_cv_path_MSGMERGE+:} false; then :
6569 $as_echo_n "(cached) " >&6
6573 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
6576 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6577 for ac_dir in $PATH; do
6579 test -z "$ac_dir" && ac_dir=.
6580 for ac_exec_ext in '' $ac_executable_extensions; do
6581 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6582 echo "$as_me: trying $ac_dir/$ac_word..." >&5
6583 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
6584 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
6591 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
6595 MSGMERGE="$ac_cv_path_MSGMERGE"
6596 if test "$MSGMERGE" != ":"; then
6597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
6598 $as_echo "$MSGMERGE" >&6; }
6600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6601 $as_echo "no" >&6; }
6605 test -n "$localedir" || localedir='${datadir}/locale'
6608 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
6611 ac_config_commands="$ac_config_commands po-directories"
6615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2 or newer" >&5
6616 $as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; }
6617 if ${ac_cv_gnu_library_2+:} false; then :
6618 $as_echo_n "(cached) " >&6
6620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6621 /* end confdefs.h. */
6623 #include <features.h>
6624 #ifdef __GNU_LIBRARY__
6625 #if (__GLIBC__ >= 2) && !defined __UCLIBC__
6631 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6632 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
6633 ac_cv_gnu_library_2=yes
6635 ac_cv_gnu_library_2=no
6642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2" >&5
6643 $as_echo "$ac_cv_gnu_library_2" >&6; }
6645 GLIBC2="$ac_cv_gnu_library_2"
6648 if test -n "$ac_tool_prefix"; then
6649 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6650 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6652 $as_echo_n "checking for $ac_word... " >&6; }
6653 if ${ac_cv_prog_RANLIB+:} false; then :
6654 $as_echo_n "(cached) " >&6
6656 if test -n "$RANLIB"; then
6657 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6663 test -z "$as_dir" && as_dir=.
6664 for ac_exec_ext in '' $ac_executable_extensions; do
6665 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6666 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6676 RANLIB=$ac_cv_prog_RANLIB
6677 if test -n "$RANLIB"; then
6678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6679 $as_echo "$RANLIB" >&6; }
6681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6682 $as_echo "no" >&6; }
6687 if test -z "$ac_cv_prog_RANLIB"; then
6688 ac_ct_RANLIB=$RANLIB
6689 # Extract the first word of "ranlib", so it can be a program name with args.
6690 set dummy ranlib; ac_word=$2
6691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6692 $as_echo_n "checking for $ac_word... " >&6; }
6693 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6694 $as_echo_n "(cached) " >&6
6696 if test -n "$ac_ct_RANLIB"; then
6697 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6703 test -z "$as_dir" && as_dir=.
6704 for ac_exec_ext in '' $ac_executable_extensions; do
6705 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6706 ac_cv_prog_ac_ct_RANLIB="ranlib"
6707 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6716 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6717 if test -n "$ac_ct_RANLIB"; then
6718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6719 $as_echo "$ac_ct_RANLIB" >&6; }
6721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6722 $as_echo "no" >&6; }
6725 if test "x$ac_ct_RANLIB" = x; then
6728 case $cross_compiling:$ac_tool_warned in
6730 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6731 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6732 ac_tool_warned=yes ;;
6734 RANLIB=$ac_ct_RANLIB
6737 RANLIB="$ac_cv_prog_RANLIB"
6744 if test -n "$GCC"; then
6745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the -Werror option is usable" >&5
6746 $as_echo_n "checking whether the -Werror option is usable... " >&6; }
6747 if ${gl_cv_cc_vis_werror+:} false; then :
6748 $as_echo_n "(cached) " >&6
6751 gl_save_CFLAGS="$CFLAGS"
6752 CFLAGS="$CFLAGS -Werror"
6753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6754 /* end confdefs.h. */
6764 if ac_fn_c_try_compile "$LINENO"; then :
6765 gl_cv_cc_vis_werror=yes
6767 gl_cv_cc_vis_werror=no
6769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6770 CFLAGS="$gl_save_CFLAGS"
6773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_vis_werror" >&5
6774 $as_echo "$gl_cv_cc_vis_werror" >&6; }
6775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5
6776 $as_echo_n "checking for simple visibility declarations... " >&6; }
6777 if ${gl_cv_cc_visibility+:} false; then :
6778 $as_echo_n "(cached) " >&6
6781 gl_save_CFLAGS="$CFLAGS"
6782 CFLAGS="$CFLAGS -fvisibility=hidden"
6783 if test $gl_cv_cc_vis_werror = yes; then
6784 CFLAGS="$CFLAGS -Werror"
6786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6787 /* end confdefs.h. */
6788 extern __attribute__((__visibility__("hidden"))) int hiddenvar;
6789 extern __attribute__((__visibility__("default"))) int exportedvar;
6790 extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
6791 extern __attribute__((__visibility__("default"))) int exportedfunc (void);
6792 void dummyfunc (void) {}
6802 if ac_fn_c_try_compile "$LINENO"; then :
6803 gl_cv_cc_visibility=yes
6805 gl_cv_cc_visibility=no
6807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6808 CFLAGS="$gl_save_CFLAGS"
6811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5
6812 $as_echo "$gl_cv_cc_visibility" >&6; }
6813 if test $gl_cv_cc_visibility = yes; then
6814 CFLAG_VISIBILITY="-fvisibility=hidden"
6821 cat >>confdefs.h <<_ACEOF
6822 #define HAVE_VISIBILITY $HAVE_VISIBILITY
6826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
6827 $as_echo_n "checking for inline... " >&6; }
6828 if ${ac_cv_c_inline+:} false; then :
6829 $as_echo_n "(cached) " >&6
6832 for ac_kw in inline __inline__ __inline; do
6833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6834 /* end confdefs.h. */
6837 static $ac_kw foo_t static_foo () {return 0; }
6838 $ac_kw foo_t foo () {return 0; }
6842 if ac_fn_c_try_compile "$LINENO"; then :
6843 ac_cv_c_inline=$ac_kw
6845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6846 test "$ac_cv_c_inline" != no && break
6850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
6851 $as_echo "$ac_cv_c_inline" >&6; }
6853 case $ac_cv_c_inline in
6856 case $ac_cv_c_inline in
6858 *) ac_val=$ac_cv_c_inline;;
6860 cat >>confdefs.h <<_ACEOF
6862 #define inline $ac_val
6868 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6869 if test "x$ac_cv_type_size_t" = xyes; then :
6873 cat >>confdefs.h <<_ACEOF
6874 #define size_t unsigned int
6880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
6881 $as_echo_n "checking for stdint.h... " >&6; }
6882 if ${gl_cv_header_stdint_h+:} false; then :
6883 $as_echo_n "(cached) " >&6
6885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6886 /* end confdefs.h. */
6887 #include <sys/types.h>
6892 uintmax_t i = (uintmax_t) -1; return !i;
6897 if ac_fn_c_try_compile "$LINENO"; then :
6898 gl_cv_header_stdint_h=yes
6900 gl_cv_header_stdint_h=no
6902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
6905 $as_echo "$gl_cv_header_stdint_h" >&6; }
6906 if test $gl_cv_header_stdint_h = yes; then
6908 cat >>confdefs.h <<_ACEOF
6909 #define HAVE_STDINT_H_WITH_UINTMAX 1
6914 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6915 # for constant arguments. Useless!
6916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
6917 $as_echo_n "checking for working alloca.h... " >&6; }
6918 if ${ac_cv_working_alloca_h+:} false; then :
6919 $as_echo_n "(cached) " >&6
6921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6922 /* end confdefs.h. */
6927 char *p = (char *) alloca (2 * sizeof (int));
6933 if ac_fn_c_try_link "$LINENO"; then :
6934 ac_cv_working_alloca_h=yes
6936 ac_cv_working_alloca_h=no
6938 rm -f core conftest.err conftest.$ac_objext \
6939 conftest$ac_exeext conftest.$ac_ext
6941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
6942 $as_echo "$ac_cv_working_alloca_h" >&6; }
6943 if test $ac_cv_working_alloca_h = yes; then
6945 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
6949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
6950 $as_echo_n "checking for alloca... " >&6; }
6951 if ${ac_cv_func_alloca_works+:} false; then :
6952 $as_echo_n "(cached) " >&6
6954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6955 /* end confdefs.h. */
6957 # define alloca __builtin_alloca
6960 # include <malloc.h>
6961 # define alloca _alloca
6963 # ifdef HAVE_ALLOCA_H
6964 # include <alloca.h>
6969 # ifndef alloca /* predefined by HP cc +Olibcalls */
6970 void *alloca (size_t);
6980 char *p = (char *) alloca (1);
6986 if ac_fn_c_try_link "$LINENO"; then :
6987 ac_cv_func_alloca_works=yes
6989 ac_cv_func_alloca_works=no
6991 rm -f core conftest.err conftest.$ac_objext \
6992 conftest$ac_exeext conftest.$ac_ext
6994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
6995 $as_echo "$ac_cv_func_alloca_works" >&6; }
6997 if test $ac_cv_func_alloca_works = yes; then
6999 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
7002 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
7003 # that cause trouble. Some versions do not even contain alloca or
7004 # contain a buggy version. If you still want to use their alloca,
7005 # use ar to extract alloca.o from them instead of compiling alloca.c.
7007 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
7009 $as_echo "#define C_ALLOCA 1" >>confdefs.h
7012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
7013 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
7014 if ${ac_cv_os_cray+:} false; then :
7015 $as_echo_n "(cached) " >&6
7017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7018 /* end confdefs.h. */
7019 #if defined CRAY && ! defined CRAY2
7026 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7027 $EGREP "webecray" >/dev/null 2>&1; then :
7035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
7036 $as_echo "$ac_cv_os_cray" >&6; }
7037 if test $ac_cv_os_cray = yes; then
7038 for ac_func in _getb67 GETB67 getb67; do
7039 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7040 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7041 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7043 cat >>confdefs.h <<_ACEOF
7044 #define CRAY_STACKSEG_END $ac_func
7053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
7054 $as_echo_n "checking stack direction for C alloca... " >&6; }
7055 if ${ac_cv_c_stack_direction+:} false; then :
7056 $as_echo_n "(cached) " >&6
7058 if test "$cross_compiling" = yes; then :
7059 ac_cv_c_stack_direction=0
7061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7062 /* end confdefs.h. */
7063 $ac_includes_default
7065 find_stack_direction (int *addr, int depth)
7070 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
7071 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
7076 main (int argc, char **argv)
7078 return find_stack_direction (0, argc + !argv + 20) < 0;
7081 if ac_fn_c_try_run "$LINENO"; then :
7082 ac_cv_c_stack_direction=1
7084 ac_cv_c_stack_direction=-1
7086 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7087 conftest.$ac_objext conftest.beam conftest.$ac_ext
7091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
7092 $as_echo "$ac_cv_c_stack_direction" >&6; }
7093 cat >>confdefs.h <<_ACEOF
7094 #define STACK_DIRECTION $ac_cv_c_stack_direction
7103 for ac_header in $ac_header_list
7105 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7106 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7108 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7109 cat >>confdefs.h <<_ACEOF
7110 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7124 for ac_func in getpagesize
7126 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
7127 if test "x$ac_cv_func_getpagesize" = xyes; then :
7128 cat >>confdefs.h <<_ACEOF
7129 #define HAVE_GETPAGESIZE 1
7135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
7136 $as_echo_n "checking for working mmap... " >&6; }
7137 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
7138 $as_echo_n "(cached) " >&6
7140 if test "$cross_compiling" = yes; then :
7141 ac_cv_func_mmap_fixed_mapped=no
7143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7144 /* end confdefs.h. */
7145 $ac_includes_default
7146 /* malloc might have been renamed as rpl_malloc. */
7149 /* Thanks to Mike Haertel and Jim Avera for this test.
7150 Here is a matrix of mmap possibilities:
7151 mmap private not fixed
7152 mmap private fixed at somewhere currently unmapped
7153 mmap private fixed at somewhere already mapped
7154 mmap shared not fixed
7155 mmap shared fixed at somewhere currently unmapped
7156 mmap shared fixed at somewhere already mapped
7157 For private mappings, we should verify that changes cannot be read()
7158 back from the file, nor mmap's back from the file at a different
7159 address. (There have been systems where private was not correctly
7160 implemented like the infamous i386 svr4.0, and systems where the
7161 VM page cache was not coherent with the file system buffer cache
7162 like early versions of FreeBSD and possibly contemporary NetBSD.)
7163 For shared mappings, we should conversely verify that changes get
7164 propagated back to all the places they're supposed to be.
7166 Grep wants private fixed already mapped.
7167 The main things grep needs to know about mmap are:
7168 * does it exist and is it safe to write into the mmap'd area
7169 * how to use it (BSD variants) */
7172 #include <sys/mman.h>
7174 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7178 /* This mess was copied from the GNU getpagesize.h. */
7179 #ifndef HAVE_GETPAGESIZE
7180 # ifdef _SC_PAGESIZE
7181 # define getpagesize() sysconf(_SC_PAGESIZE)
7182 # else /* no _SC_PAGESIZE */
7183 # ifdef HAVE_SYS_PARAM_H
7184 # include <sys/param.h>
7185 # ifdef EXEC_PAGESIZE
7186 # define getpagesize() EXEC_PAGESIZE
7187 # else /* no EXEC_PAGESIZE */
7189 # define getpagesize() NBPG * CLSIZE
7192 # endif /* no CLSIZE */
7193 # else /* no NBPG */
7195 # define getpagesize() NBPC
7196 # else /* no NBPC */
7198 # define getpagesize() PAGESIZE
7199 # endif /* PAGESIZE */
7200 # endif /* no NBPC */
7201 # endif /* no NBPG */
7202 # endif /* no EXEC_PAGESIZE */
7203 # else /* no HAVE_SYS_PARAM_H */
7204 # define getpagesize() 8192 /* punt totally */
7205 # endif /* no HAVE_SYS_PARAM_H */
7206 # endif /* no _SC_PAGESIZE */
7208 #endif /* no HAVE_GETPAGESIZE */
7213 char *data, *data2, *data3;
7218 pagesize = getpagesize ();
7220 /* First, make a file with some known garbage in it. */
7221 data = (char *) malloc (pagesize);
7224 for (i = 0; i < pagesize; ++i)
7225 *(data + i) = rand ();
7227 fd = creat ("conftest.mmap", 0600);
7230 if (write (fd, data, pagesize) != pagesize)
7234 /* Next, check that the tail of a page is zero-filled. File must have
7235 non-zero length, otherwise we risk SIGBUS for entire page. */
7236 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7240 if (write (fd2, cdata2, 1) != 1)
7242 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7243 if (data2 == MAP_FAILED)
7245 for (i = 0; i < pagesize; ++i)
7249 if (munmap (data2, pagesize))
7252 /* Next, try to mmap the file at a fixed address which already has
7253 something else allocated at it. If we can, also make sure that
7254 we see the same garbage. */
7255 fd = open ("conftest.mmap", O_RDWR);
7258 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7259 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7261 for (i = 0; i < pagesize; ++i)
7262 if (*(data + i) != *(data2 + i))
7265 /* Finally, make sure that changes to the mapped area do not
7266 percolate back to the file as seen by read(). (This is a bug on
7267 some variants of i386 svr4.0.) */
7268 for (i = 0; i < pagesize; ++i)
7269 *(data2 + i) = *(data2 + i) + 1;
7270 data3 = (char *) malloc (pagesize);
7273 if (read (fd, data3, pagesize) != pagesize)
7275 for (i = 0; i < pagesize; ++i)
7276 if (*(data + i) != *(data3 + i))
7282 if ac_fn_c_try_run "$LINENO"; then :
7283 ac_cv_func_mmap_fixed_mapped=yes
7285 ac_cv_func_mmap_fixed_mapped=no
7287 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7288 conftest.$ac_objext conftest.beam conftest.$ac_ext
7292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
7293 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
7294 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7296 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
7299 rm -f conftest.mmap conftest.txt
7303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
7304 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
7305 if ${gt_cv_int_divbyzero_sigfpe+:} false; then :
7306 $as_echo_n "(cached) " >&6
7309 gt_cv_int_divbyzero_sigfpe=
7311 macos* | darwin[6-9]* | darwin[1-9][0-9]*)
7312 # On Mac OS X 10.2 or newer, just assume the same as when cross-
7313 # compiling. If we were to perform the real test, 1 Crash Report
7314 # dialog window would pop up.
7316 i[34567]86 | x86_64)
7317 gt_cv_int_divbyzero_sigfpe="guessing yes" ;;
7321 if test -z "$gt_cv_int_divbyzero_sigfpe"; then
7322 if test "$cross_compiling" = yes; then :
7324 # Guess based on the CPU.
7326 alpha* | i[34567]86 | x86_64 | m68k | s390*)
7327 gt_cv_int_divbyzero_sigfpe="guessing yes";;
7329 gt_cv_int_divbyzero_sigfpe="guessing no";;
7333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7334 /* end confdefs.h. */
7340 sigfpe_handler (int sig)
7342 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
7343 exit (sig != SIGFPE);
7353 signal (SIGFPE, sigfpe_handler);
7354 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
7355 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
7356 signal (SIGTRAP, sigfpe_handler);
7358 /* Linux/SPARC yields signal SIGILL. */
7359 #if defined (__sparc__) && defined (__linux__)
7360 signal (SIGILL, sigfpe_handler);
7369 if ac_fn_c_try_run "$LINENO"; then :
7370 gt_cv_int_divbyzero_sigfpe=yes
7372 gt_cv_int_divbyzero_sigfpe=no
7374 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7375 conftest.$ac_objext conftest.beam conftest.$ac_ext
7381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
7382 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
7383 case "$gt_cv_int_divbyzero_sigfpe" in
7388 cat >>confdefs.h <<_ACEOF
7389 #define INTDIV0_RAISES_SIGFPE $value
7394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
7395 $as_echo_n "checking for inttypes.h... " >&6; }
7396 if ${gl_cv_header_inttypes_h+:} false; then :
7397 $as_echo_n "(cached) " >&6
7399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7400 /* end confdefs.h. */
7402 #include <sys/types.h>
7403 #include <inttypes.h>
7408 uintmax_t i = (uintmax_t) -1; return !i;
7413 if ac_fn_c_try_compile "$LINENO"; then :
7414 gl_cv_header_inttypes_h=yes
7416 gl_cv_header_inttypes_h=no
7418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
7421 $as_echo "$gl_cv_header_inttypes_h" >&6; }
7422 if test $gl_cv_header_inttypes_h = yes; then
7424 cat >>confdefs.h <<_ACEOF
7425 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
7431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
7432 $as_echo_n "checking for unsigned long long int... " >&6; }
7433 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
7434 $as_echo_n "(cached) " >&6
7436 ac_cv_type_unsigned_long_long_int=yes
7437 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
7438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7439 /* end confdefs.h. */
7441 /* For now, do not test the preprocessor; as of 2007 there are too many
7442 implementations with broken preprocessors. Perhaps this can
7443 be revisited in 2012. In the meantime, code should not expect
7444 #if to work with literals wider than 32 bits. */
7445 /* Test literals. */
7446 long long int ll = 9223372036854775807ll;
7447 long long int nll = -9223372036854775807LL;
7448 unsigned long long int ull = 18446744073709551615ULL;
7449 /* Test constant expressions. */
7450 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
7452 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
7458 /* Test availability of runtime routines for shift and division. */
7459 long long int llmax = 9223372036854775807ll;
7460 unsigned long long int ullmax = 18446744073709551615ull;
7461 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
7462 | (llmax / ll) | (llmax % ll)
7463 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
7464 | (ullmax / ull) | (ullmax % ull));
7470 if ac_fn_c_try_link "$LINENO"; then :
7473 ac_cv_type_unsigned_long_long_int=no
7475 rm -f core conftest.err conftest.$ac_objext \
7476 conftest$ac_exeext conftest.$ac_ext
7479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
7480 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
7481 if test $ac_cv_type_unsigned_long_long_int = yes; then
7483 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
7490 if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
7492 test $ac_cv_type_unsigned_long_long_int = yes \
7493 && ac_type='unsigned long long' \
7494 || ac_type='unsigned long'
7496 cat >>confdefs.h <<_ACEOF
7497 #define uintmax_t $ac_type
7502 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
7507 for ac_header in inttypes.h
7509 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
7510 if test "x$ac_cv_header_inttypes_h" = xyes; then :
7511 cat >>confdefs.h <<_ACEOF
7512 #define HAVE_INTTYPES_H 1
7519 if test $ac_cv_header_inttypes_h = yes; then
7520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
7521 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
7522 if ${gt_cv_inttypes_pri_broken+:} false; then :
7523 $as_echo_n "(cached) " >&6
7526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7527 /* end confdefs.h. */
7529 #include <inttypes.h>
7542 if ac_fn_c_try_compile "$LINENO"; then :
7543 gt_cv_inttypes_pri_broken=no
7545 gt_cv_inttypes_pri_broken=yes
7547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
7551 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
7553 if test "$gt_cv_inttypes_pri_broken" = yes; then
7555 cat >>confdefs.h <<_ACEOF
7556 #define PRI_MACROS_BROKEN 1
7570 # Check whether --enable-threads was given.
7571 if test "${enable_threads+set}" = set; then :
7572 enableval=$enable_threads; gl_use_threads=$enableval
7574 if test -n "$gl_use_threads_default"; then
7575 gl_use_threads="$gl_use_threads_default"
7578 osf*) gl_use_threads=no ;;
7581 1.[0-5].*) gl_use_threads=no ;;
7582 *) gl_use_threads=yes ;;
7585 *) gl_use_threads=yes ;;
7591 if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
7592 # For using <pthread.h>:
7595 # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
7596 # groks <pthread.h>. cc also understands the flag -pthread, but
7597 # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
7598 # 2. putting a flag into CPPFLAGS that has an effect on the linker
7599 # causes the AC_LINK_IFELSE test below to succeed unexpectedly,
7600 # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
7601 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
7604 # Some systems optimize for single-threaded programs by default, and
7605 # need special flags to disable these optimizations. For example, the
7606 # definition of 'errno' in <errno.h>.
7608 aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;;
7609 solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;;
7617 if test "X$prefix" = "XNONE"; then
7618 acl_final_prefix="$ac_default_prefix"
7620 acl_final_prefix="$prefix"
7622 if test "X$exec_prefix" = "XNONE"; then
7623 acl_final_exec_prefix='${prefix}'
7625 acl_final_exec_prefix="$exec_prefix"
7627 acl_save_prefix="$prefix"
7628 prefix="$acl_final_prefix"
7629 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7630 prefix="$acl_save_prefix"
7634 # Check whether --with-gnu-ld was given.
7635 if test "${with_gnu_ld+set}" = set; then :
7636 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7641 # Prepare PATH_SEPARATOR.
7642 # The user is always right.
7643 if test "${PATH_SEPARATOR+set}" != set; then
7644 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
7645 # contains only /bin. Note that ksh looks also at the FPATH variable,
7646 # so we have to set that as well for the test.
7648 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7649 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7650 || PATH_SEPARATOR=';'
7655 if test "$GCC" = yes; then
7656 # Check if gcc -print-prog-name=ld gives a path.
7657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7658 $as_echo_n "checking for ld used by $CC... " >&6; }
7661 # gcc leaves a trailing carriage return which upsets mingw
7662 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7664 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7667 # Accept absolute paths.
7669 re_direlt='/[^/][^/]*/\.\./'
7670 # Canonicalize the pathname of ld
7671 ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'`
7672 while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do
7673 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
7675 test -z "$LD" && LD="$ac_prog"
7678 # If it fails, then pretend we aren't using GCC.
7682 # If it is relative, then search for the first ld in PATH.
7686 elif test "$with_gnu_ld" = yes; then
7687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7688 $as_echo_n "checking for GNU ld... " >&6; }
7690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7691 $as_echo_n "checking for non-GNU ld... " >&6; }
7693 if ${acl_cv_path_LD+:} false; then :
7694 $as_echo_n "(cached) " >&6
7696 if test -z "$LD"; then
7697 acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7698 for ac_dir in $PATH; do
7700 test -z "$ac_dir" && ac_dir=.
7701 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7702 acl_cv_path_LD="$ac_dir/$ac_prog"
7703 # Check to see if the program is GNU ld. I'd rather use --version,
7704 # but apparently some variants of GNU ld only accept -v.
7705 # Break only if it was the GNU/non-GNU ld that we prefer.
7706 case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
7707 *GNU* | *'with BFD'*)
7708 test "$with_gnu_ld" != no && break
7711 test "$with_gnu_ld" != yes && break
7718 acl_cv_path_LD="$LD" # Let the user override the test with a path.
7722 LD="$acl_cv_path_LD"
7723 if test -n "$LD"; then
7724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7725 $as_echo "$LD" >&6; }
7727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7728 $as_echo "no" >&6; }
7730 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7732 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7733 if ${acl_cv_prog_gnu_ld+:} false; then :
7734 $as_echo_n "(cached) " >&6
7736 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7737 case `$LD -v 2>&1 </dev/null` in
7738 *GNU* | *'with BFD'*)
7739 acl_cv_prog_gnu_ld=yes
7742 acl_cv_prog_gnu_ld=no
7746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
7747 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
7748 with_gnu_ld=$acl_cv_prog_gnu_ld
7753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
7754 $as_echo_n "checking for shared library run path origin... " >&6; }
7755 if ${acl_cv_rpath+:} false; then :
7756 $as_echo_n "(cached) " >&6
7759 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
7760 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
7767 $as_echo "$acl_cv_rpath" >&6; }
7769 acl_libext="$acl_cv_libext"
7770 acl_shlibext="$acl_cv_shlibext"
7771 acl_libname_spec="$acl_cv_libname_spec"
7772 acl_library_names_spec="$acl_cv_library_names_spec"
7773 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
7774 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
7775 acl_hardcode_direct="$acl_cv_hardcode_direct"
7776 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
7777 # Check whether --enable-rpath was given.
7778 if test "${enable_rpath+set}" = set; then :
7779 enableval=$enable_rpath; :
7791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
7792 $as_echo_n "checking for 64-bit host... " >&6; }
7793 if ${gl_cv_solaris_64bit+:} false; then :
7794 $as_echo_n "(cached) " >&6
7796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7797 /* end confdefs.h. */
7804 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7805 $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
7806 gl_cv_solaris_64bit=yes
7808 gl_cv_solaris_64bit=no
7814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
7815 $as_echo "$gl_cv_solaris_64bit" >&6; }
7816 if test $gl_cv_solaris_64bit = yes; then
7817 acl_libdirstem=lib/64
7819 sparc*) acl_libdirstem2=lib/sparcv9 ;;
7820 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
7825 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
7826 if test -n "$searchpath"; then
7827 acl_save_IFS="${IFS= }"; IFS=":"
7828 for searchdir in $searchpath; do
7829 if test -d "$searchdir"; then
7830 case "$searchdir" in
7831 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
7833 # Better ignore directories of this form. They are misleading.
7835 *) searchdir=`cd "$searchdir" && pwd`
7836 case "$searchdir" in
7837 */lib64 ) acl_libdirstem=lib64 ;;
7846 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
7855 if test "$gl_use_threads" != no; then
7856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5
7857 $as_echo_n "checking whether imported symbols can be declared weak... " >&6; }
7858 if ${gl_cv_have_weak+:} false; then :
7859 $as_echo_n "(cached) " >&6
7862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7863 /* end confdefs.h. */
7864 extern void xyzzy ();
7874 if ac_fn_c_try_link "$LINENO"; then :
7875 gl_cv_have_weak=maybe
7877 rm -f core conftest.err conftest.$ac_objext \
7878 conftest$ac_exeext conftest.$ac_ext
7879 if test $gl_cv_have_weak = maybe; then
7880 if test "$cross_compiling" = yes; then :
7881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7882 /* end confdefs.h. */
7884 Extensible Linking Format
7888 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7889 $EGREP "Extensible Linking Format" >/dev/null 2>&1; then :
7890 gl_cv_have_weak="guessing yes"
7892 gl_cv_have_weak="guessing no"
7898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7899 /* end confdefs.h. */
7905 return (fputs == NULL);
7908 if ac_fn_c_try_run "$LINENO"; then :
7913 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7914 conftest.$ac_objext conftest.beam conftest.$ac_ext
7920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5
7921 $as_echo "$gl_cv_have_weak" >&6; }
7922 if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
7923 # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
7924 # it groks <pthread.h>. It's added above, in gl_THREADLIB_EARLY_BODY.
7925 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
7926 if test "x$ac_cv_header_pthread_h" = xyes; then :
7927 gl_have_pthread_h=yes
7929 gl_have_pthread_h=no
7933 if test "$gl_have_pthread_h" = yes; then
7934 # Other possible tests:
7935 # -lpthreads (FSU threads, PCthreads)
7938 # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
7939 # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
7940 # the second one only in libpthread, and lock.c needs it.
7941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7942 /* end confdefs.h. */
7943 #include <pthread.h>
7947 pthread_mutex_lock((pthread_mutex_t*)0);
7948 pthread_mutexattr_init((pthread_mutexattr_t*)0);
7953 if ac_fn_c_try_link "$LINENO"; then :
7956 rm -f core conftest.err conftest.$ac_objext \
7957 conftest$ac_exeext conftest.$ac_ext
7958 # Test for libpthread by looking for pthread_kill. (Not pthread_self,
7959 # since it is defined as a macro on OSF/1.)
7960 if test -n "$gl_have_pthread"; then
7961 # The program links fine without libpthread. But it may actually
7962 # need to link with libpthread in order to create multiple threads.
7963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
7964 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
7965 if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
7966 $as_echo_n "(cached) " >&6
7968 ac_check_lib_save_LIBS=$LIBS
7969 LIBS="-lpthread $LIBS"
7970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7971 /* end confdefs.h. */
7973 /* Override any GCC internal prototype to avoid an error.
7974 Use char because int might match the return type of a GCC
7975 builtin and then its argument prototype would still apply. */
7979 char pthread_kill ();
7983 return pthread_kill ();
7988 if ac_fn_c_try_link "$LINENO"; then :
7989 ac_cv_lib_pthread_pthread_kill=yes
7991 ac_cv_lib_pthread_pthread_kill=no
7993 rm -f core conftest.err conftest.$ac_objext \
7994 conftest$ac_exeext conftest.$ac_ext
7995 LIBS=$ac_check_lib_save_LIBS
7997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
7998 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
7999 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
8000 LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
8001 # On Solaris and HP-UX, most pthread functions exist also in libc.
8002 # Therefore pthread_in_use() needs to actually try to create a
8003 # thread: pthread_create from libc will fail, whereas
8004 # pthread_create will actually create a thread.
8008 $as_echo "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h
8015 # Some library is needed. Try libpthread and libc_r.
8016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
8017 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
8018 if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
8019 $as_echo_n "(cached) " >&6
8021 ac_check_lib_save_LIBS=$LIBS
8022 LIBS="-lpthread $LIBS"
8023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8024 /* end confdefs.h. */
8026 /* Override any GCC internal prototype to avoid an error.
8027 Use char because int might match the return type of a GCC
8028 builtin and then its argument prototype would still apply. */
8032 char pthread_kill ();
8036 return pthread_kill ();
8041 if ac_fn_c_try_link "$LINENO"; then :
8042 ac_cv_lib_pthread_pthread_kill=yes
8044 ac_cv_lib_pthread_pthread_kill=no
8046 rm -f core conftest.err conftest.$ac_objext \
8047 conftest$ac_exeext conftest.$ac_ext
8048 LIBS=$ac_check_lib_save_LIBS
8050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
8051 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
8052 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
8054 LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread
8055 LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
8058 if test -z "$gl_have_pthread"; then
8060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5
8061 $as_echo_n "checking for pthread_kill in -lc_r... " >&6; }
8062 if ${ac_cv_lib_c_r_pthread_kill+:} false; then :
8063 $as_echo_n "(cached) " >&6
8065 ac_check_lib_save_LIBS=$LIBS
8067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8068 /* end confdefs.h. */
8070 /* Override any GCC internal prototype to avoid an error.
8071 Use char because int might match the return type of a GCC
8072 builtin and then its argument prototype would still apply. */
8076 char pthread_kill ();
8080 return pthread_kill ();
8085 if ac_fn_c_try_link "$LINENO"; then :
8086 ac_cv_lib_c_r_pthread_kill=yes
8088 ac_cv_lib_c_r_pthread_kill=no
8090 rm -f core conftest.err conftest.$ac_objext \
8091 conftest$ac_exeext conftest.$ac_ext
8092 LIBS=$ac_check_lib_save_LIBS
8094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5
8095 $as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; }
8096 if test "x$ac_cv_lib_c_r_pthread_kill" = xyes; then :
8098 LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r
8099 LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r
8104 if test -n "$gl_have_pthread"; then
8105 gl_threads_api=posix
8107 $as_echo "#define USE_POSIX_THREADS 1" >>confdefs.h
8109 if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
8110 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
8112 $as_echo "#define USE_POSIX_THREADS_WEAK 1" >>confdefs.h
8121 if test -z "$gl_have_pthread"; then
8122 if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then
8123 gl_have_solaristhread=
8124 gl_save_LIBS="$LIBS"
8125 LIBS="$LIBS -lthread"
8126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8127 /* end confdefs.h. */
8140 if ac_fn_c_try_link "$LINENO"; then :
8141 gl_have_solaristhread=yes
8143 rm -f core conftest.err conftest.$ac_objext \
8144 conftest$ac_exeext conftest.$ac_ext
8145 LIBS="$gl_save_LIBS"
8146 if test -n "$gl_have_solaristhread"; then
8147 gl_threads_api=solaris
8149 LTLIBTHREAD=-lthread
8150 LIBMULTITHREAD="$LIBTHREAD"
8151 LTLIBMULTITHREAD="$LTLIBTHREAD"
8153 $as_echo "#define USE_SOLARIS_THREADS 1" >>confdefs.h
8155 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
8157 $as_echo "#define USE_SOLARIS_THREADS_WEAK 1" >>confdefs.h
8165 if test "$gl_use_threads" = pth; then
8166 gl_save_CPPFLAGS="$CPPFLAGS"
8172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libpth" >&5
8173 $as_echo_n "checking how to link with libpth... " >&6; }
8174 if ${ac_cv_libpth_libs+:} false; then :
8175 $as_echo_n "(cached) " >&6
8187 acl_save_prefix="$prefix"
8188 prefix="$acl_final_prefix"
8189 acl_save_exec_prefix="$exec_prefix"
8190 exec_prefix="$acl_final_exec_prefix"
8192 eval additional_includedir=\"$includedir\"
8193 eval additional_libdir=\"$libdir\"
8195 exec_prefix="$acl_save_exec_prefix"
8196 prefix="$acl_save_prefix"
8199 # Check whether --with-libpth-prefix was given.
8200 if test "${with_libpth_prefix+set}" = set; then :
8201 withval=$with_libpth_prefix;
8202 if test "X$withval" = "Xno"; then
8205 if test "X$withval" = "X"; then
8207 acl_save_prefix="$prefix"
8208 prefix="$acl_final_prefix"
8209 acl_save_exec_prefix="$exec_prefix"
8210 exec_prefix="$acl_final_exec_prefix"
8212 eval additional_includedir=\"$includedir\"
8213 eval additional_libdir=\"$libdir\"
8215 exec_prefix="$acl_save_exec_prefix"
8216 prefix="$acl_save_prefix"
8219 additional_includedir="$withval/include"
8220 additional_libdir="$withval/$acl_libdirstem"
8221 if test "$acl_libdirstem2" != "$acl_libdirstem" \
8222 && ! test -d "$withval/$acl_libdirstem"; then
8223 additional_libdir="$withval/$acl_libdirstem2"
8237 names_already_handled=
8238 names_next_round='pth '
8239 while test -n "$names_next_round"; do
8240 names_this_round="$names_next_round"
8242 for name in $names_this_round; do
8244 for n in $names_already_handled; do
8245 if test "$n" = "$name"; then
8250 if test -z "$already_handled"; then
8251 names_already_handled="$names_already_handled $name"
8252 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
8253 eval value=\"\$HAVE_LIB$uppername\"
8254 if test -n "$value"; then
8255 if test "$value" = yes; then
8256 eval value=\"\$LIB$uppername\"
8257 test -z "$value" || LIBPTH="${LIBPTH}${LIBPTH:+ }$value"
8258 eval value=\"\$LTLIB$uppername\"
8259 test -z "$value" || LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$value"
8268 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
8269 if test -n "$acl_shlibext"; then
8270 shrext=".$acl_shlibext" # typically: shrext=.so
8274 if test $use_additional = yes; then
8275 dir="$additional_libdir"
8276 if test -n "$acl_shlibext"; then
8277 if test -f "$dir/$libname$shrext"; then
8279 found_so="$dir/$libname$shrext"
8281 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8282 ver=`(cd "$dir" && \
8283 for f in "$libname$shrext".*; do echo "$f"; done \
8284 | sed -e "s,^$libname$shrext\\\\.,," \
8285 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8286 | sed 1q ) 2>/dev/null`
8287 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8289 found_so="$dir/$libname$shrext.$ver"
8292 eval library_names=\"$acl_library_names_spec\"
8293 for f in $library_names; do
8294 if test -f "$dir/$f"; then
8303 if test "X$found_dir" = "X"; then
8304 if test -f "$dir/$libname.$acl_libext"; then
8306 found_a="$dir/$libname.$acl_libext"
8309 if test "X$found_dir" != "X"; then
8310 if test -f "$dir/$libname.la"; then
8311 found_la="$dir/$libname.la"
8315 if test "X$found_dir" = "X"; then
8316 for x in $LDFLAGS $LTLIBPTH; do
8318 acl_save_prefix="$prefix"
8319 prefix="$acl_final_prefix"
8320 acl_save_exec_prefix="$exec_prefix"
8321 exec_prefix="$acl_final_exec_prefix"
8323 exec_prefix="$acl_save_exec_prefix"
8324 prefix="$acl_save_prefix"
8328 dir=`echo "X$x" | sed -e 's/^X-L//'`
8329 if test -n "$acl_shlibext"; then
8330 if test -f "$dir/$libname$shrext"; then
8332 found_so="$dir/$libname$shrext"
8334 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8335 ver=`(cd "$dir" && \
8336 for f in "$libname$shrext".*; do echo "$f"; done \
8337 | sed -e "s,^$libname$shrext\\\\.,," \
8338 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8339 | sed 1q ) 2>/dev/null`
8340 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8342 found_so="$dir/$libname$shrext.$ver"
8345 eval library_names=\"$acl_library_names_spec\"
8346 for f in $library_names; do
8347 if test -f "$dir/$f"; then
8356 if test "X$found_dir" = "X"; then
8357 if test -f "$dir/$libname.$acl_libext"; then
8359 found_a="$dir/$libname.$acl_libext"
8362 if test "X$found_dir" != "X"; then
8363 if test -f "$dir/$libname.la"; then
8364 found_la="$dir/$libname.la"
8369 if test "X$found_dir" != "X"; then
8374 if test "X$found_dir" != "X"; then
8375 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name"
8376 if test "X$found_so" != "X"; then
8377 if test "$enable_rpath" = no \
8378 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
8379 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
8380 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
8383 for x in $ltrpathdirs; do
8384 if test "X$x" = "X$found_dir"; then
8389 if test -z "$haveit"; then
8390 ltrpathdirs="$ltrpathdirs $found_dir"
8392 if test "$acl_hardcode_direct" = yes; then
8393 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
8395 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
8396 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
8398 for x in $rpathdirs; do
8399 if test "X$x" = "X$found_dir"; then
8404 if test -z "$haveit"; then
8405 rpathdirs="$rpathdirs $found_dir"
8409 for x in $LDFLAGS $LIBPTH; do
8411 acl_save_prefix="$prefix"
8412 prefix="$acl_final_prefix"
8413 acl_save_exec_prefix="$exec_prefix"
8414 exec_prefix="$acl_final_exec_prefix"
8416 exec_prefix="$acl_save_exec_prefix"
8417 prefix="$acl_save_prefix"
8419 if test "X$x" = "X-L$found_dir"; then
8424 if test -z "$haveit"; then
8425 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir"
8427 if test "$acl_hardcode_minus_L" != no; then
8428 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
8430 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
8436 if test "X$found_a" != "X"; then
8437 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_a"
8439 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name"
8442 additional_includedir=
8443 case "$found_dir" in
8444 */$acl_libdirstem | */$acl_libdirstem/)
8445 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
8446 if test "$name" = 'pth'; then
8447 LIBPTH_PREFIX="$basedir"
8449 additional_includedir="$basedir/include"
8451 */$acl_libdirstem2 | */$acl_libdirstem2/)
8452 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
8453 if test "$name" = 'pth'; then
8454 LIBPTH_PREFIX="$basedir"
8456 additional_includedir="$basedir/include"
8459 if test "X$additional_includedir" != "X"; then
8460 if test "X$additional_includedir" != "X/usr/include"; then
8462 if test "X$additional_includedir" = "X/usr/local/include"; then
8463 if test -n "$GCC"; then
8465 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
8469 if test -z "$haveit"; then
8470 for x in $CPPFLAGS $INCPTH; do
8472 acl_save_prefix="$prefix"
8473 prefix="$acl_final_prefix"
8474 acl_save_exec_prefix="$exec_prefix"
8475 exec_prefix="$acl_final_exec_prefix"
8477 exec_prefix="$acl_save_exec_prefix"
8478 prefix="$acl_save_prefix"
8480 if test "X$x" = "X-I$additional_includedir"; then
8485 if test -z "$haveit"; then
8486 if test -d "$additional_includedir"; then
8487 INCPTH="${INCPTH}${INCPTH:+ }-I$additional_includedir"
8493 if test -n "$found_la"; then
8494 save_libdir="$libdir"
8496 */* | *\\*) . "$found_la" ;;
8497 *) . "./$found_la" ;;
8499 libdir="$save_libdir"
8500 for dep in $dependency_libs; do
8503 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8504 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
8505 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
8507 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
8508 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
8509 if test -n "$GCC"; then
8511 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
8515 if test -z "$haveit"; then
8517 for x in $LDFLAGS $LIBPTH; do
8519 acl_save_prefix="$prefix"
8520 prefix="$acl_final_prefix"
8521 acl_save_exec_prefix="$exec_prefix"
8522 exec_prefix="$acl_final_exec_prefix"
8524 exec_prefix="$acl_save_exec_prefix"
8525 prefix="$acl_save_prefix"
8527 if test "X$x" = "X-L$additional_libdir"; then
8532 if test -z "$haveit"; then
8533 if test -d "$additional_libdir"; then
8534 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$additional_libdir"
8538 for x in $LDFLAGS $LTLIBPTH; do
8540 acl_save_prefix="$prefix"
8541 prefix="$acl_final_prefix"
8542 acl_save_exec_prefix="$exec_prefix"
8543 exec_prefix="$acl_final_exec_prefix"
8545 exec_prefix="$acl_save_exec_prefix"
8546 prefix="$acl_save_prefix"
8548 if test "X$x" = "X-L$additional_libdir"; then
8553 if test -z "$haveit"; then
8554 if test -d "$additional_libdir"; then
8555 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir"
8562 dir=`echo "X$dep" | sed -e 's/^X-R//'`
8563 if test "$enable_rpath" != no; then
8565 for x in $rpathdirs; do
8566 if test "X$x" = "X$dir"; then
8571 if test -z "$haveit"; then
8572 rpathdirs="$rpathdirs $dir"
8575 for x in $ltrpathdirs; do
8576 if test "X$x" = "X$dir"; then
8581 if test -z "$haveit"; then
8582 ltrpathdirs="$ltrpathdirs $dir"
8587 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8590 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8593 LIBPTH="${LIBPTH}${LIBPTH:+ }$dep"
8594 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$dep"
8600 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
8601 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-l$name"
8607 if test "X$rpathdirs" != "X"; then
8608 if test -n "$acl_hardcode_libdir_separator"; then
8610 for found_dir in $rpathdirs; do
8611 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
8613 acl_save_libdir="$libdir"
8615 eval flag=\"$acl_hardcode_libdir_flag_spec\"
8616 libdir="$acl_save_libdir"
8617 LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
8619 for found_dir in $rpathdirs; do
8620 acl_save_libdir="$libdir"
8622 eval flag=\"$acl_hardcode_libdir_flag_spec\"
8623 libdir="$acl_save_libdir"
8624 LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
8628 if test "X$ltrpathdirs" != "X"; then
8629 for found_dir in $ltrpathdirs; do
8630 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir"
8639 ac_cv_libpth_libs="$LIBPTH"
8640 ac_cv_libpth_ltlibs="$LTLIBPTH"
8641 ac_cv_libpth_cppflags="$INCPTH"
8642 ac_cv_libpth_prefix="$LIBPTH_PREFIX"
8645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libpth_libs" >&5
8646 $as_echo "$ac_cv_libpth_libs" >&6; }
8647 LIBPTH="$ac_cv_libpth_libs"
8648 LTLIBPTH="$ac_cv_libpth_ltlibs"
8649 INCPTH="$ac_cv_libpth_cppflags"
8650 LIBPTH_PREFIX="$ac_cv_libpth_prefix"
8652 for element in $INCPTH; do
8654 for x in $CPPFLAGS; do
8656 acl_save_prefix="$prefix"
8657 prefix="$acl_final_prefix"
8658 acl_save_exec_prefix="$exec_prefix"
8659 exec_prefix="$acl_final_exec_prefix"
8661 exec_prefix="$acl_save_exec_prefix"
8662 prefix="$acl_save_prefix"
8664 if test "X$x" = "X$element"; then
8669 if test -z "$haveit"; then
8670 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8682 gl_save_LIBS="$LIBS"
8683 LIBS="$LIBS $LIBPTH"
8684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8685 /* end confdefs.h. */
8695 if ac_fn_c_try_link "$LINENO"; then :
8698 rm -f core conftest.err conftest.$ac_objext \
8699 conftest$ac_exeext conftest.$ac_ext
8700 LIBS="$gl_save_LIBS"
8701 if test -n "$gl_have_pth"; then
8704 LTLIBTHREAD="$LTLIBPTH"
8705 LIBMULTITHREAD="$LIBTHREAD"
8706 LTLIBMULTITHREAD="$LTLIBTHREAD"
8708 $as_echo "#define USE_PTH_THREADS 1" >>confdefs.h
8710 if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
8711 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
8713 $as_echo "#define USE_PTH_THREADS_WEAK 1" >>confdefs.h
8720 CPPFLAGS="$gl_save_CPPFLAGS"
8723 if test -z "$gl_have_pthread"; then
8724 case "$gl_use_threads" in
8725 yes | windows | win32) # The 'win32' is for backward compatibility.
8726 if { case "$host_os" in
8731 gl_threads_api=windows
8733 $as_echo "#define USE_WINDOWS_THREADS 1" >>confdefs.h
8740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multithread API to use" >&5
8741 $as_echo_n "checking for multithread API to use... " >&6; }
8742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_threads_api" >&5
8743 $as_echo "$gl_threads_api" >&6; }
8755 if test "$gl_threads_api" = posix; then
8756 # OSF/1 4.0 and Mac OS X 10.1 lack the pthread_rwlock_t type and the
8757 # pthread_rwlock_* functions.
8758 ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h>
8760 if test "x$ac_cv_type_pthread_rwlock_t" = xyes; then :
8762 $as_echo "#define HAVE_PTHREAD_RWLOCK 1" >>confdefs.h
8766 # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
8767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8768 /* end confdefs.h. */
8770 #include <pthread.h>
8775 #if __FreeBSD__ == 4
8776 error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
8777 #elif (defined __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ \
8778 && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 1070)
8779 error "No, in Mac OS X < 10.7 recursive mutexes actually don't work."
8781 int x = (int)PTHREAD_MUTEX_RECURSIVE;
8789 if ac_fn_c_try_compile "$LINENO"; then :
8791 $as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h
8794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8811 acl_save_prefix="$prefix"
8812 prefix="$acl_final_prefix"
8813 acl_save_exec_prefix="$exec_prefix"
8814 exec_prefix="$acl_final_exec_prefix"
8816 eval additional_includedir=\"$includedir\"
8817 eval additional_libdir=\"$libdir\"
8819 exec_prefix="$acl_save_exec_prefix"
8820 prefix="$acl_save_prefix"
8823 # Check whether --with-libiconv-prefix was given.
8824 if test "${with_libiconv_prefix+set}" = set; then :
8825 withval=$with_libiconv_prefix;
8826 if test "X$withval" = "Xno"; then
8829 if test "X$withval" = "X"; then
8831 acl_save_prefix="$prefix"
8832 prefix="$acl_final_prefix"
8833 acl_save_exec_prefix="$exec_prefix"
8834 exec_prefix="$acl_final_exec_prefix"
8836 eval additional_includedir=\"$includedir\"
8837 eval additional_libdir=\"$libdir\"
8839 exec_prefix="$acl_save_exec_prefix"
8840 prefix="$acl_save_prefix"
8843 additional_includedir="$withval/include"
8844 additional_libdir="$withval/$acl_libdirstem"
8845 if test "$acl_libdirstem2" != "$acl_libdirstem" \
8846 && ! test -d "$withval/$acl_libdirstem"; then
8847 additional_libdir="$withval/$acl_libdirstem2"
8861 names_already_handled=
8862 names_next_round='iconv '
8863 while test -n "$names_next_round"; do
8864 names_this_round="$names_next_round"
8866 for name in $names_this_round; do
8868 for n in $names_already_handled; do
8869 if test "$n" = "$name"; then
8874 if test -z "$already_handled"; then
8875 names_already_handled="$names_already_handled $name"
8876 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
8877 eval value=\"\$HAVE_LIB$uppername\"
8878 if test -n "$value"; then
8879 if test "$value" = yes; then
8880 eval value=\"\$LIB$uppername\"
8881 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
8882 eval value=\"\$LTLIB$uppername\"
8883 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
8892 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
8893 if test -n "$acl_shlibext"; then
8894 shrext=".$acl_shlibext" # typically: shrext=.so
8898 if test $use_additional = yes; then
8899 dir="$additional_libdir"
8900 if test -n "$acl_shlibext"; then
8901 if test -f "$dir/$libname$shrext"; then
8903 found_so="$dir/$libname$shrext"
8905 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8906 ver=`(cd "$dir" && \
8907 for f in "$libname$shrext".*; do echo "$f"; done \
8908 | sed -e "s,^$libname$shrext\\\\.,," \
8909 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8910 | sed 1q ) 2>/dev/null`
8911 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8913 found_so="$dir/$libname$shrext.$ver"
8916 eval library_names=\"$acl_library_names_spec\"
8917 for f in $library_names; do
8918 if test -f "$dir/$f"; then
8927 if test "X$found_dir" = "X"; then
8928 if test -f "$dir/$libname.$acl_libext"; then
8930 found_a="$dir/$libname.$acl_libext"
8933 if test "X$found_dir" != "X"; then
8934 if test -f "$dir/$libname.la"; then
8935 found_la="$dir/$libname.la"
8939 if test "X$found_dir" = "X"; then
8940 for x in $LDFLAGS $LTLIBICONV; do
8942 acl_save_prefix="$prefix"
8943 prefix="$acl_final_prefix"
8944 acl_save_exec_prefix="$exec_prefix"
8945 exec_prefix="$acl_final_exec_prefix"
8947 exec_prefix="$acl_save_exec_prefix"
8948 prefix="$acl_save_prefix"
8952 dir=`echo "X$x" | sed -e 's/^X-L//'`
8953 if test -n "$acl_shlibext"; then
8954 if test -f "$dir/$libname$shrext"; then
8956 found_so="$dir/$libname$shrext"
8958 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8959 ver=`(cd "$dir" && \
8960 for f in "$libname$shrext".*; do echo "$f"; done \
8961 | sed -e "s,^$libname$shrext\\\\.,," \
8962 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8963 | sed 1q ) 2>/dev/null`
8964 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8966 found_so="$dir/$libname$shrext.$ver"
8969 eval library_names=\"$acl_library_names_spec\"
8970 for f in $library_names; do
8971 if test -f "$dir/$f"; then
8980 if test "X$found_dir" = "X"; then
8981 if test -f "$dir/$libname.$acl_libext"; then
8983 found_a="$dir/$libname.$acl_libext"
8986 if test "X$found_dir" != "X"; then
8987 if test -f "$dir/$libname.la"; then
8988 found_la="$dir/$libname.la"
8993 if test "X$found_dir" != "X"; then
8998 if test "X$found_dir" != "X"; then
8999 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9000 if test "X$found_so" != "X"; then
9001 if test "$enable_rpath" = no \
9002 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
9003 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
9004 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9007 for x in $ltrpathdirs; do
9008 if test "X$x" = "X$found_dir"; then
9013 if test -z "$haveit"; then
9014 ltrpathdirs="$ltrpathdirs $found_dir"
9016 if test "$acl_hardcode_direct" = yes; then
9017 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9019 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
9020 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9022 for x in $rpathdirs; do
9023 if test "X$x" = "X$found_dir"; then
9028 if test -z "$haveit"; then
9029 rpathdirs="$rpathdirs $found_dir"
9033 for x in $LDFLAGS $LIBICONV; do
9035 acl_save_prefix="$prefix"
9036 prefix="$acl_final_prefix"
9037 acl_save_exec_prefix="$exec_prefix"
9038 exec_prefix="$acl_final_exec_prefix"
9040 exec_prefix="$acl_save_exec_prefix"
9041 prefix="$acl_save_prefix"
9043 if test "X$x" = "X-L$found_dir"; then
9048 if test -z "$haveit"; then
9049 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9051 if test "$acl_hardcode_minus_L" != no; then
9052 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9054 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9060 if test "X$found_a" != "X"; then
9061 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
9063 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9066 additional_includedir=
9067 case "$found_dir" in
9068 */$acl_libdirstem | */$acl_libdirstem/)
9069 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
9070 if test "$name" = 'iconv'; then
9071 LIBICONV_PREFIX="$basedir"
9073 additional_includedir="$basedir/include"
9075 */$acl_libdirstem2 | */$acl_libdirstem2/)
9076 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
9077 if test "$name" = 'iconv'; then
9078 LIBICONV_PREFIX="$basedir"
9080 additional_includedir="$basedir/include"
9083 if test "X$additional_includedir" != "X"; then
9084 if test "X$additional_includedir" != "X/usr/include"; then
9086 if test "X$additional_includedir" = "X/usr/local/include"; then
9087 if test -n "$GCC"; then
9089 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
9093 if test -z "$haveit"; then
9094 for x in $CPPFLAGS $INCICONV; do
9096 acl_save_prefix="$prefix"
9097 prefix="$acl_final_prefix"
9098 acl_save_exec_prefix="$exec_prefix"
9099 exec_prefix="$acl_final_exec_prefix"
9101 exec_prefix="$acl_save_exec_prefix"
9102 prefix="$acl_save_prefix"
9104 if test "X$x" = "X-I$additional_includedir"; then
9109 if test -z "$haveit"; then
9110 if test -d "$additional_includedir"; then
9111 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9117 if test -n "$found_la"; then
9118 save_libdir="$libdir"
9120 */* | *\\*) . "$found_la" ;;
9121 *) . "./$found_la" ;;
9123 libdir="$save_libdir"
9124 for dep in $dependency_libs; do
9127 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9128 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
9129 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
9131 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
9132 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
9133 if test -n "$GCC"; then
9135 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
9139 if test -z "$haveit"; then
9141 for x in $LDFLAGS $LIBICONV; do
9143 acl_save_prefix="$prefix"
9144 prefix="$acl_final_prefix"
9145 acl_save_exec_prefix="$exec_prefix"
9146 exec_prefix="$acl_final_exec_prefix"
9148 exec_prefix="$acl_save_exec_prefix"
9149 prefix="$acl_save_prefix"
9151 if test "X$x" = "X-L$additional_libdir"; then
9156 if test -z "$haveit"; then
9157 if test -d "$additional_libdir"; then
9158 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9162 for x in $LDFLAGS $LTLIBICONV; do
9164 acl_save_prefix="$prefix"
9165 prefix="$acl_final_prefix"
9166 acl_save_exec_prefix="$exec_prefix"
9167 exec_prefix="$acl_final_exec_prefix"
9169 exec_prefix="$acl_save_exec_prefix"
9170 prefix="$acl_save_prefix"
9172 if test "X$x" = "X-L$additional_libdir"; then
9177 if test -z "$haveit"; then
9178 if test -d "$additional_libdir"; then
9179 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
9186 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9187 if test "$enable_rpath" != no; then
9189 for x in $rpathdirs; do
9190 if test "X$x" = "X$dir"; then
9195 if test -z "$haveit"; then
9196 rpathdirs="$rpathdirs $dir"
9199 for x in $ltrpathdirs; do
9200 if test "X$x" = "X$dir"; then
9205 if test -z "$haveit"; then
9206 ltrpathdirs="$ltrpathdirs $dir"
9211 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9214 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9217 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
9218 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
9224 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9225 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
9231 if test "X$rpathdirs" != "X"; then
9232 if test -n "$acl_hardcode_libdir_separator"; then
9234 for found_dir in $rpathdirs; do
9235 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
9237 acl_save_libdir="$libdir"
9239 eval flag=\"$acl_hardcode_libdir_flag_spec\"
9240 libdir="$acl_save_libdir"
9241 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9243 for found_dir in $rpathdirs; do
9244 acl_save_libdir="$libdir"
9246 eval flag=\"$acl_hardcode_libdir_flag_spec\"
9247 libdir="$acl_save_libdir"
9248 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9252 if test "X$ltrpathdirs" != "X"; then
9253 for found_dir in $ltrpathdirs; do
9254 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
9269 am_save_CPPFLAGS="$CPPFLAGS"
9271 for element in $INCICONV; do
9273 for x in $CPPFLAGS; do
9275 acl_save_prefix="$prefix"
9276 prefix="$acl_final_prefix"
9277 acl_save_exec_prefix="$exec_prefix"
9278 exec_prefix="$acl_final_exec_prefix"
9280 exec_prefix="$acl_save_exec_prefix"
9281 prefix="$acl_save_prefix"
9283 if test "X$x" = "X$element"; then
9288 if test -z "$haveit"; then
9289 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
9295 $as_echo_n "checking for iconv... " >&6; }
9296 if ${am_cv_func_iconv+:} false; then :
9297 $as_echo_n "(cached) " >&6
9300 am_cv_func_iconv="no, consider installing GNU libiconv"
9302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9303 /* end confdefs.h. */
9311 iconv_t cd = iconv_open("","");
9312 iconv(cd,NULL,NULL,NULL,NULL);
9318 if ac_fn_c_try_link "$LINENO"; then :
9319 am_cv_func_iconv=yes
9321 rm -f core conftest.err conftest.$ac_objext \
9322 conftest$ac_exeext conftest.$ac_ext
9323 if test "$am_cv_func_iconv" != yes; then
9324 am_save_LIBS="$LIBS"
9325 LIBS="$LIBS $LIBICONV"
9326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9327 /* end confdefs.h. */
9335 iconv_t cd = iconv_open("","");
9336 iconv(cd,NULL,NULL,NULL,NULL);
9342 if ac_fn_c_try_link "$LINENO"; then :
9344 am_cv_func_iconv=yes
9346 rm -f core conftest.err conftest.$ac_objext \
9347 conftest$ac_exeext conftest.$ac_ext
9348 LIBS="$am_save_LIBS"
9352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
9353 $as_echo "$am_cv_func_iconv" >&6; }
9354 if test "$am_cv_func_iconv" = yes; then
9355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
9356 $as_echo_n "checking for working iconv... " >&6; }
9357 if ${am_cv_func_iconv_works+:} false; then :
9358 $as_echo_n "(cached) " >&6
9361 am_save_LIBS="$LIBS"
9362 if test $am_cv_lib_iconv = yes; then
9363 LIBS="$LIBS $LIBICONV"
9365 if test "$cross_compiling" = yes; then :
9368 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
9369 *) am_cv_func_iconv_works="guessing yes" ;;
9373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9374 /* end confdefs.h. */
9381 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
9384 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
9385 if (cd_utf8_to_88591 != (iconv_t)(-1))
9387 static const char input[] = "\342\202\254"; /* EURO SIGN */
9389 const char *inptr = input;
9390 size_t inbytesleft = strlen (input);
9392 size_t outbytesleft = sizeof (buf);
9393 size_t res = iconv (cd_utf8_to_88591,
9394 (char **) &inptr, &inbytesleft,
9395 &outptr, &outbytesleft);
9398 iconv_close (cd_utf8_to_88591);
9401 /* Test against Solaris 10 bug: Failures are not distinguishable from
9402 successful returns. */
9404 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
9405 if (cd_ascii_to_88591 != (iconv_t)(-1))
9407 static const char input[] = "\263";
9409 const char *inptr = input;
9410 size_t inbytesleft = strlen (input);
9412 size_t outbytesleft = sizeof (buf);
9413 size_t res = iconv (cd_ascii_to_88591,
9414 (char **) &inptr, &inbytesleft,
9415 &outptr, &outbytesleft);
9418 iconv_close (cd_ascii_to_88591);
9421 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
9423 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
9424 if (cd_88591_to_utf8 != (iconv_t)(-1))
9426 static const char input[] = "\304";
9427 static char buf[2] = { (char)0xDE, (char)0xAD };
9428 const char *inptr = input;
9429 size_t inbytesleft = 1;
9431 size_t outbytesleft = 1;
9432 size_t res = iconv (cd_88591_to_utf8,
9433 (char **) &inptr, &inbytesleft,
9434 &outptr, &outbytesleft);
9435 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
9437 iconv_close (cd_88591_to_utf8);
9440 #if 0 /* This bug could be worked around by the caller. */
9441 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
9443 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
9444 if (cd_88591_to_utf8 != (iconv_t)(-1))
9446 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
9448 const char *inptr = input;
9449 size_t inbytesleft = strlen (input);
9451 size_t outbytesleft = sizeof (buf);
9452 size_t res = iconv (cd_88591_to_utf8,
9453 (char **) &inptr, &inbytesleft,
9454 &outptr, &outbytesleft);
9457 iconv_close (cd_88591_to_utf8);
9461 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
9463 if (/* Try standardized names. */
9464 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
9465 /* Try IRIX, OSF/1 names. */
9466 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
9467 /* Try AIX names. */
9468 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
9469 /* Try HP-UX names. */
9470 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
9475 if ac_fn_c_try_run "$LINENO"; then :
9476 am_cv_func_iconv_works=yes
9478 am_cv_func_iconv_works=no
9480 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9481 conftest.$ac_objext conftest.beam conftest.$ac_ext
9484 LIBS="$am_save_LIBS"
9487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
9488 $as_echo "$am_cv_func_iconv_works" >&6; }
9489 case "$am_cv_func_iconv_works" in
9490 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
9491 *) am_func_iconv=yes ;;
9494 am_func_iconv=no am_cv_lib_iconv=no
9496 if test "$am_func_iconv" = yes; then
9498 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
9501 if test "$am_cv_lib_iconv" = yes; then
9502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
9503 $as_echo_n "checking how to link with libiconv... " >&6; }
9504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
9505 $as_echo "$LIBICONV" >&6; }
9507 CPPFLAGS="$am_save_CPPFLAGS"
9514 if test "$am_cv_func_iconv" = yes; then
9515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
9516 $as_echo_n "checking for iconv declaration... " >&6; }
9517 if ${am_cv_proto_iconv+:} false; then :
9518 $as_echo_n "(cached) " >&6
9521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9522 /* end confdefs.h. */
9530 #if defined(__STDC__) || defined(_MSC_VER) || defined(__cplusplus)
9531 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9544 if ac_fn_c_try_compile "$LINENO"; then :
9545 am_cv_proto_iconv_arg1=""
9547 am_cv_proto_iconv_arg1="const"
9549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9550 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
9553 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
9554 { $as_echo "$as_me:${as_lineno-$LINENO}: result:
9555 $am_cv_proto_iconv" >&5
9557 $am_cv_proto_iconv" >&6; }
9559 cat >>confdefs.h <<_ACEOF
9560 #define ICONV_CONST $am_cv_proto_iconv_arg1
9569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9570 /* end confdefs.h. */
9571 int foo (int a) { a = __builtin_expect (a, 10); return a == 10 ? 0 : 1; }
9580 if ac_fn_c_try_link "$LINENO"; then :
9582 $as_echo "#define HAVE_BUILTIN_EXPECT 1" >>confdefs.h
9585 rm -f core conftest.err conftest.$ac_objext \
9586 conftest$ac_exeext conftest.$ac_ext
9588 for ac_header in argz.h inttypes.h limits.h unistd.h sys/param.h
9590 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9591 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9592 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9593 cat >>confdefs.h <<_ACEOF
9594 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9601 for ac_func in getcwd getegid geteuid getgid getuid mempcpy munmap \
9602 stpcpy strcasecmp strdup strtoul tsearch uselocale argz_count \
9603 argz_stringify argz_next __fsetlocking
9605 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9606 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9607 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9608 cat >>confdefs.h <<_ACEOF
9609 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9616 ac_fn_c_check_decl "$LINENO" "feof_unlocked" "ac_cv_have_decl_feof_unlocked" "#include <stdio.h>
9618 if test "x$ac_cv_have_decl_feof_unlocked" = xyes; then :
9624 cat >>confdefs.h <<_ACEOF
9625 #define HAVE_DECL_FEOF_UNLOCKED $ac_have_decl
9627 ac_fn_c_check_decl "$LINENO" "fgets_unlocked" "ac_cv_have_decl_fgets_unlocked" "#include <stdio.h>
9629 if test "x$ac_cv_have_decl_fgets_unlocked" = xyes; then :
9635 cat >>confdefs.h <<_ACEOF
9636 #define HAVE_DECL_FGETS_UNLOCKED $ac_have_decl
9642 for ac_prog in bison
9644 # Extract the first word of "$ac_prog", so it can be a program name with args.
9645 set dummy $ac_prog; ac_word=$2
9646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9647 $as_echo_n "checking for $ac_word... " >&6; }
9648 if ${ac_cv_prog_INTLBISON+:} false; then :
9649 $as_echo_n "(cached) " >&6
9651 if test -n "$INTLBISON"; then
9652 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
9654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9658 test -z "$as_dir" && as_dir=.
9659 for ac_exec_ext in '' $ac_executable_extensions; do
9660 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9661 ac_cv_prog_INTLBISON="$ac_prog"
9662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9671 INTLBISON=$ac_cv_prog_INTLBISON
9672 if test -n "$INTLBISON"; then
9673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
9674 $as_echo "$INTLBISON" >&6; }
9676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9677 $as_echo "no" >&6; }
9681 test -n "$INTLBISON" && break
9684 if test -z "$INTLBISON"; then
9687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
9688 $as_echo_n "checking version of bison... " >&6; }
9689 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
9690 case $ac_prog_version in
9691 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
9692 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
9693 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
9694 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
9696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
9697 $as_echo "$ac_prog_version" >&6; }
9699 if test $ac_verc_fail = yes; then
9705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
9706 $as_echo_n "checking for long long int... " >&6; }
9707 if ${ac_cv_type_long_long_int+:} false; then :
9708 $as_echo_n "(cached) " >&6
9710 ac_cv_type_long_long_int=yes
9711 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
9712 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
9713 if test $ac_cv_type_long_long_int = yes; then
9714 if test "$cross_compiling" = yes; then :
9717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9718 /* end confdefs.h. */
9722 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
9723 # define LLONG_MAX (HALF - 1 + HALF)
9728 long long int n = 1;
9732 long long int m = n << i;
9735 if (LLONG_MAX / 2 < m)
9743 if ac_fn_c_try_run "$LINENO"; then :
9746 ac_cv_type_long_long_int=no
9748 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9749 conftest.$ac_objext conftest.beam conftest.$ac_ext
9755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
9756 $as_echo "$ac_cv_type_long_long_int" >&6; }
9757 if test $ac_cv_type_long_long_int = yes; then
9759 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
9764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
9765 $as_echo_n "checking for wchar_t... " >&6; }
9766 if ${gt_cv_c_wchar_t+:} false; then :
9767 $as_echo_n "(cached) " >&6
9769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9770 /* end confdefs.h. */
9772 wchar_t foo = (wchar_t)'\0';
9781 if ac_fn_c_try_compile "$LINENO"; then :
9786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
9789 $as_echo "$gt_cv_c_wchar_t" >&6; }
9790 if test $gt_cv_c_wchar_t = yes; then
9792 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
9797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
9798 $as_echo_n "checking for wint_t... " >&6; }
9799 if ${gt_cv_c_wint_t+:} false; then :
9800 $as_echo_n "(cached) " >&6
9802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9803 /* end confdefs.h. */
9805 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
9807 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
9808 before <wchar.h>. */
9813 wint_t foo = (wchar_t)'\0';
9822 if ac_fn_c_try_compile "$LINENO"; then :
9827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
9830 $as_echo "$gt_cv_c_wint_t" >&6; }
9831 if test $gt_cv_c_wint_t = yes; then
9833 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
9840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
9841 $as_echo_n "checking for intmax_t... " >&6; }
9842 if ${gt_cv_c_intmax_t+:} false; then :
9843 $as_echo_n "(cached) " >&6
9845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9846 /* end confdefs.h. */
9850 #if HAVE_STDINT_H_WITH_UINTMAX
9853 #if HAVE_INTTYPES_H_WITH_UINTMAX
9854 #include <inttypes.h>
9866 if ac_fn_c_try_compile "$LINENO"; then :
9867 gt_cv_c_intmax_t=yes
9871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
9874 $as_echo "$gt_cv_c_intmax_t" >&6; }
9875 if test $gt_cv_c_intmax_t = yes; then
9877 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
9883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
9884 $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
9885 if ${gt_cv_func_printf_posix+:} false; then :
9886 $as_echo_n "(cached) " >&6
9889 if test "$cross_compiling" = yes; then :
9891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9892 /* end confdefs.h. */
9894 #if defined __NetBSD__ || defined __BEOS__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
9899 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9900 $EGREP "notposix" >/dev/null 2>&1; then :
9901 gt_cv_func_printf_posix="guessing no"
9903 gt_cv_func_printf_posix="guessing yes"
9909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9910 /* end confdefs.h. */
9914 /* The string "%2$d %1$d", with dollar characters protected from the shell's
9915 dollar expansion (possibly an autoconf bug). */
9916 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
9917 static char buf[100];
9920 sprintf (buf, format, 33, 55);
9921 return (strcmp (buf, "55 33") != 0);
9924 if ac_fn_c_try_run "$LINENO"; then :
9925 gt_cv_func_printf_posix=yes
9927 gt_cv_func_printf_posix=no
9929 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9930 conftest.$ac_objext conftest.beam conftest.$ac_ext
9935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
9936 $as_echo "$gt_cv_func_printf_posix" >&6; }
9937 case $gt_cv_func_printf_posix in
9940 $as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
9946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library >= 2.1 or uClibc" >&5
9947 $as_echo_n "checking whether we are using the GNU C Library >= 2.1 or uClibc... " >&6; }
9948 if ${ac_cv_gnu_library_2_1+:} false; then :
9949 $as_echo_n "(cached) " >&6
9951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9952 /* end confdefs.h. */
9954 #include <features.h>
9955 #ifdef __GNU_LIBRARY__
9956 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
9965 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9966 $EGREP "Lucky" >/dev/null 2>&1; then :
9967 ac_cv_gnu_library_2_1=yes
9969 ac_cv_gnu_library_2_1=no
9976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
9977 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
9979 GLIBC21="$ac_cv_gnu_library_2_1"
9983 for ac_header in stdint.h
9985 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
9986 if test "x$ac_cv_header_stdint_h" = xyes; then :
9987 cat >>confdefs.h <<_ACEOF
9988 #define HAVE_STDINT_H 1
9995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
9996 $as_echo_n "checking for SIZE_MAX... " >&6; }
9997 if ${gl_cv_size_max+:} false; then :
9998 $as_echo_n "(cached) " >&6
10002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10003 /* end confdefs.h. */
10005 #include <limits.h>
10007 #include <stdint.h>
10014 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10015 $EGREP "Found it" >/dev/null 2>&1; then :
10020 if test -z "$gl_cv_size_max"; then
10021 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1" "#include <stddef.h>
10022 #include <limits.h>"; then :
10025 size_t_bits_minus_1=
10028 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then :
10034 if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
10035 if test $fits_in_uint = 1; then
10036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10037 /* end confdefs.h. */
10038 #include <stddef.h>
10040 extern unsigned long foo;
10050 if ac_fn_c_try_compile "$LINENO"; then :
10053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10055 if test $fits_in_uint = 1; then
10056 gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
10058 gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
10061 gl_cv_size_max='((size_t)~(size_t)0)'
10066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5
10067 $as_echo "$gl_cv_size_max" >&6; }
10068 if test "$gl_cv_size_max" != yes; then
10070 cat >>confdefs.h <<_ACEOF
10071 #define SIZE_MAX $gl_cv_size_max
10079 for ac_header in stdint.h
10081 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
10082 if test "x$ac_cv_header_stdint_h" = xyes; then :
10083 cat >>confdefs.h <<_ACEOF
10084 #define HAVE_STDINT_H 1
10095 for ac_func in $ac_func_list
10097 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10098 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10099 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10100 cat >>confdefs.h <<_ACEOF
10101 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
10115 $as_echo_n "checking for working fcntl.h... " >&6; }
10116 if ${gl_cv_header_working_fcntl_h+:} false; then :
10117 $as_echo_n "(cached) " >&6
10119 if test "$cross_compiling" = yes; then :
10120 gl_cv_header_working_fcntl_h=cross-compiling
10122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10123 /* end confdefs.h. */
10124 #include <sys/types.h>
10125 #include <sys/stat.h>
10127 # include <unistd.h>
10128 #else /* on Windows with MSVC */
10130 # include <stdlib.h>
10131 # defined sleep(n) _sleep ((n) * 1000)
10135 #define O_NOATIME 0
10138 #define O_NOFOLLOW 0
10140 static int const constants[] =
10142 O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
10143 O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
10150 int result = !constants;
10153 static char const sym[] = "conftest.sym";
10154 if (symlink ("/dev/null", sym) != 0)
10158 int fd = open (sym, O_WRONLY | O_NOFOLLOW | O_CREAT, 0);
10165 if (unlink (sym) != 0 || symlink (".", sym) != 0)
10169 int fd = open (sym, O_RDONLY | O_NOFOLLOW);
10180 static char const file[] = "confdefs.h";
10181 int fd = open (file, O_RDONLY | O_NOATIME);
10187 if (fstat (fd, &st0) != 0)
10193 if (read (fd, &c, 1) != 1)
10197 if (close (fd) != 0)
10202 if (stat (file, &st1) != 0)
10205 if (st0.st_atime != st1.st_atime)
10217 if ac_fn_c_try_run "$LINENO"; then :
10218 gl_cv_header_working_fcntl_h=yes
10221 4) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
10222 64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
10223 68) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
10224 *) gl_cv_header_working_fcntl_h='no';;
10227 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10228 conftest.$ac_objext conftest.beam conftest.$ac_ext
10232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
10233 $as_echo "$gl_cv_header_working_fcntl_h" >&6; }
10235 case $gl_cv_header_working_fcntl_h in #(
10236 *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
10240 cat >>confdefs.h <<_ACEOF
10241 #define HAVE_WORKING_O_NOATIME $ac_val
10245 case $gl_cv_header_working_fcntl_h in #(
10246 *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
10250 cat >>confdefs.h <<_ACEOF
10251 #define HAVE_WORKING_O_NOFOLLOW $ac_val
10256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
10257 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
10258 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
10259 $as_echo_n "(cached) " >&6
10261 gt_save_LIBS="$LIBS"
10262 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10264 /* end confdefs.h. */
10265 #include <CoreFoundation/CFPreferences.h>
10269 CFPreferencesCopyAppValue(NULL, NULL)
10274 if ac_fn_c_try_link "$LINENO"; then :
10275 gt_cv_func_CFPreferencesCopyAppValue=yes
10277 gt_cv_func_CFPreferencesCopyAppValue=no
10279 rm -f core conftest.err conftest.$ac_objext \
10280 conftest$ac_exeext conftest.$ac_ext
10281 LIBS="$gt_save_LIBS"
10283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
10284 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
10285 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
10287 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
10290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
10291 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
10292 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
10293 $as_echo_n "(cached) " >&6
10295 gt_save_LIBS="$LIBS"
10296 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10298 /* end confdefs.h. */
10299 #include <CoreFoundation/CFLocale.h>
10303 CFLocaleCopyCurrent();
10308 if ac_fn_c_try_link "$LINENO"; then :
10309 gt_cv_func_CFLocaleCopyCurrent=yes
10311 gt_cv_func_CFLocaleCopyCurrent=no
10313 rm -f core conftest.err conftest.$ac_objext \
10314 conftest$ac_exeext conftest.$ac_ext
10315 LIBS="$gt_save_LIBS"
10317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
10318 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
10319 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10321 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
10325 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10326 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
10338 case "$enable_silent_rules" in
10339 yes) INTL_DEFAULT_VERBOSITY=0;;
10340 no) INTL_DEFAULT_VERBOSITY=1;;
10341 *) INTL_DEFAULT_VERBOSITY=1;;
10345 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
10346 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
10350 $as_echo "#define ptrdiff_t long" >>confdefs.h
10355 for ac_header in features.h stddef.h stdlib.h string.h
10357 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10358 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10359 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10360 cat >>confdefs.h <<_ACEOF
10361 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10368 for ac_func in asprintf fwprintf newlocale putenv setenv setlocale \
10369 snprintf strnlen wcslen wcsnlen mbrtowc wcrtomb
10371 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10372 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10373 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10374 cat >>confdefs.h <<_ACEOF
10375 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10382 ac_fn_c_check_decl "$LINENO" "_snprintf" "ac_cv_have_decl__snprintf" "#include <stdio.h>
10384 if test "x$ac_cv_have_decl__snprintf" = xyes; then :
10390 cat >>confdefs.h <<_ACEOF
10391 #define HAVE_DECL__SNPRINTF $ac_have_decl
10393 ac_fn_c_check_decl "$LINENO" "_snwprintf" "ac_cv_have_decl__snwprintf" "#include <stdio.h>
10395 if test "x$ac_cv_have_decl__snwprintf" = xyes; then :
10401 cat >>confdefs.h <<_ACEOF
10402 #define HAVE_DECL__SNWPRINTF $ac_have_decl
10406 ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "#include <stdio.h>
10408 if test "x$ac_cv_have_decl_getc_unlocked" = xyes; then :
10414 cat >>confdefs.h <<_ACEOF
10415 #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
10419 case $gt_cv_func_printf_posix in
10420 *yes) HAVE_POSIX_PRINTF=1 ;;
10421 *) HAVE_POSIX_PRINTF=0 ;;
10424 if test "$ac_cv_func_asprintf" = yes; then
10430 if test "$ac_cv_func_snprintf" = yes; then
10436 if test "$ac_cv_func_newlocale" = yes; then
10442 if test "$ac_cv_func_wprintf" = yes; then
10450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10451 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10452 if ${am_cv_langinfo_codeset+:} false; then :
10453 $as_echo_n "(cached) " >&6
10455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10456 /* end confdefs.h. */
10457 #include <langinfo.h>
10461 char* cs = nl_langinfo(CODESET); return !cs;
10466 if ac_fn_c_try_link "$LINENO"; then :
10467 am_cv_langinfo_codeset=yes
10469 am_cv_langinfo_codeset=no
10471 rm -f core conftest.err conftest.$ac_objext \
10472 conftest$ac_exeext conftest.$ac_ext
10475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10476 $as_echo "$am_cv_langinfo_codeset" >&6; }
10477 if test $am_cv_langinfo_codeset = yes; then
10479 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10485 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10486 if ${gt_cv_val_LC_MESSAGES+:} false; then :
10487 $as_echo_n "(cached) " >&6
10489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10490 /* end confdefs.h. */
10491 #include <locale.h>
10500 if ac_fn_c_try_link "$LINENO"; then :
10501 gt_cv_val_LC_MESSAGES=yes
10503 gt_cv_val_LC_MESSAGES=no
10505 rm -f core conftest.err conftest.$ac_objext \
10506 conftest$ac_exeext conftest.$ac_ext
10508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5
10509 $as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
10510 if test $gt_cv_val_LC_MESSAGES = yes; then
10512 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10517 if test "$enable_shared" = yes; then
10519 mingw* | cygwin*) is_woe32dll=yes ;;
10520 *) is_woe32dll=no ;;
10525 WOE32DLL=$is_woe32dll
10529 mingw* | cygwin*) is_woe32=yes ;;
10534 if test $WOE32 = yes; then
10535 if test -n "$ac_tool_prefix"; then
10536 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
10537 set dummy ${ac_tool_prefix}windres; ac_word=$2
10538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10539 $as_echo_n "checking for $ac_word... " >&6; }
10540 if ${ac_cv_prog_WINDRES+:} false; then :
10541 $as_echo_n "(cached) " >&6
10543 if test -n "$WINDRES"; then
10544 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
10546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10547 for as_dir in $PATH
10550 test -z "$as_dir" && as_dir=.
10551 for ac_exec_ext in '' $ac_executable_extensions; do
10552 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10553 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
10554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10563 WINDRES=$ac_cv_prog_WINDRES
10564 if test -n "$WINDRES"; then
10565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
10566 $as_echo "$WINDRES" >&6; }
10568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10569 $as_echo "no" >&6; }
10574 if test -z "$ac_cv_prog_WINDRES"; then
10575 ac_ct_WINDRES=$WINDRES
10576 # Extract the first word of "windres", so it can be a program name with args.
10577 set dummy windres; ac_word=$2
10578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10579 $as_echo_n "checking for $ac_word... " >&6; }
10580 if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
10581 $as_echo_n "(cached) " >&6
10583 if test -n "$ac_ct_WINDRES"; then
10584 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
10586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10587 for as_dir in $PATH
10590 test -z "$as_dir" && as_dir=.
10591 for ac_exec_ext in '' $ac_executable_extensions; do
10592 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10593 ac_cv_prog_ac_ct_WINDRES="windres"
10594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10603 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
10604 if test -n "$ac_ct_WINDRES"; then
10605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
10606 $as_echo "$ac_ct_WINDRES" >&6; }
10608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10609 $as_echo "no" >&6; }
10612 if test "x$ac_ct_WINDRES" = x; then
10615 case $cross_compiling:$ac_tool_warned in
10617 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10618 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10619 ac_tool_warned=yes ;;
10621 WINDRES=$ac_ct_WINDRES
10624 WINDRES="$ac_cv_prog_WINDRES"
10630 hpux*) LTLIBC="" ;;
10660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
10661 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
10662 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
10663 $as_echo_n "(cached) " >&6
10665 gt_save_LIBS="$LIBS"
10666 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10668 /* end confdefs.h. */
10669 #include <CoreFoundation/CFPreferences.h>
10673 CFPreferencesCopyAppValue(NULL, NULL)
10678 if ac_fn_c_try_link "$LINENO"; then :
10679 gt_cv_func_CFPreferencesCopyAppValue=yes
10681 gt_cv_func_CFPreferencesCopyAppValue=no
10683 rm -f core conftest.err conftest.$ac_objext \
10684 conftest$ac_exeext conftest.$ac_ext
10685 LIBS="$gt_save_LIBS"
10687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
10688 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
10689 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
10691 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
10694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
10695 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
10696 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
10697 $as_echo_n "(cached) " >&6
10699 gt_save_LIBS="$LIBS"
10700 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10702 /* end confdefs.h. */
10703 #include <CoreFoundation/CFLocale.h>
10707 CFLocaleCopyCurrent();
10712 if ac_fn_c_try_link "$LINENO"; then :
10713 gt_cv_func_CFLocaleCopyCurrent=yes
10715 gt_cv_func_CFLocaleCopyCurrent=no
10717 rm -f core conftest.err conftest.$ac_objext \
10718 conftest$ac_exeext conftest.$ac_ext
10719 LIBS="$gt_save_LIBS"
10721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
10722 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
10723 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10725 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
10729 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10730 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
10738 BUILD_INCLUDED_LIBINTL=no
10739 USE_INCLUDED_LIBINTL=no
10745 case " $gt_needs " in
10746 *" need-formatstring-macros "*) gt_api_version=3 ;;
10747 *" need-ngettext "*) gt_api_version=2 ;;
10748 *) gt_api_version=1 ;;
10750 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
10751 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
10753 if test "$USE_NLS" = "yes"; then
10754 gt_use_preinstalled_gnugettext=no
10756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
10757 $as_echo_n "checking whether included gettext is requested... " >&6; }
10759 # Check whether --with-included-gettext was given.
10760 if test "${with_included_gettext+set}" = set; then :
10761 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
10763 nls_cv_force_use_gnu_gettext=no
10766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
10767 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
10769 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
10770 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
10773 if test $gt_api_version -ge 3; then
10774 gt_revision_test_code='
10775 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
10776 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
10778 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
10781 gt_revision_test_code=
10783 if test $gt_api_version -ge 2; then
10784 gt_expression_test_code=' + * ngettext ("", "", 0)'
10786 gt_expression_test_code=
10789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
10790 $as_echo_n "checking for GNU gettext in libc... " >&6; }
10791 if eval \${$gt_func_gnugettext_libc+:} false; then :
10792 $as_echo_n "(cached) " >&6
10794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10795 /* end confdefs.h. */
10797 #include <libintl.h>
10798 $gt_revision_test_code
10799 extern int _nl_msg_cat_cntr;
10800 extern int *_nl_domain_bindings;
10806 bindtextdomain ("", "");
10807 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
10813 if ac_fn_c_try_link "$LINENO"; then :
10814 eval "$gt_func_gnugettext_libc=yes"
10816 eval "$gt_func_gnugettext_libc=no"
10818 rm -f core conftest.err conftest.$ac_objext \
10819 conftest$ac_exeext conftest.$ac_ext
10821 eval ac_res=\$$gt_func_gnugettext_libc
10822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10823 $as_echo "$ac_res" >&6; }
10825 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
10836 acl_save_prefix="$prefix"
10837 prefix="$acl_final_prefix"
10838 acl_save_exec_prefix="$exec_prefix"
10839 exec_prefix="$acl_final_exec_prefix"
10841 eval additional_includedir=\"$includedir\"
10842 eval additional_libdir=\"$libdir\"
10844 exec_prefix="$acl_save_exec_prefix"
10845 prefix="$acl_save_prefix"
10848 # Check whether --with-libintl-prefix was given.
10849 if test "${with_libintl_prefix+set}" = set; then :
10850 withval=$with_libintl_prefix;
10851 if test "X$withval" = "Xno"; then
10854 if test "X$withval" = "X"; then
10856 acl_save_prefix="$prefix"
10857 prefix="$acl_final_prefix"
10858 acl_save_exec_prefix="$exec_prefix"
10859 exec_prefix="$acl_final_exec_prefix"
10861 eval additional_includedir=\"$includedir\"
10862 eval additional_libdir=\"$libdir\"
10864 exec_prefix="$acl_save_exec_prefix"
10865 prefix="$acl_save_prefix"
10868 additional_includedir="$withval/include"
10869 additional_libdir="$withval/$acl_libdirstem"
10870 if test "$acl_libdirstem2" != "$acl_libdirstem" \
10871 && ! test -d "$withval/$acl_libdirstem"; then
10872 additional_libdir="$withval/$acl_libdirstem2"
10886 names_already_handled=
10887 names_next_round='intl '
10888 while test -n "$names_next_round"; do
10889 names_this_round="$names_next_round"
10891 for name in $names_this_round; do
10893 for n in $names_already_handled; do
10894 if test "$n" = "$name"; then
10895 already_handled=yes
10899 if test -z "$already_handled"; then
10900 names_already_handled="$names_already_handled $name"
10901 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
10902 eval value=\"\$HAVE_LIB$uppername\"
10903 if test -n "$value"; then
10904 if test "$value" = yes; then
10905 eval value=\"\$LIB$uppername\"
10906 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
10907 eval value=\"\$LTLIB$uppername\"
10908 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
10917 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
10918 if test -n "$acl_shlibext"; then
10919 shrext=".$acl_shlibext" # typically: shrext=.so
10923 if test $use_additional = yes; then
10924 dir="$additional_libdir"
10925 if test -n "$acl_shlibext"; then
10926 if test -f "$dir/$libname$shrext"; then
10928 found_so="$dir/$libname$shrext"
10930 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
10931 ver=`(cd "$dir" && \
10932 for f in "$libname$shrext".*; do echo "$f"; done \
10933 | sed -e "s,^$libname$shrext\\\\.,," \
10934 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
10935 | sed 1q ) 2>/dev/null`
10936 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
10938 found_so="$dir/$libname$shrext.$ver"
10941 eval library_names=\"$acl_library_names_spec\"
10942 for f in $library_names; do
10943 if test -f "$dir/$f"; then
10952 if test "X$found_dir" = "X"; then
10953 if test -f "$dir/$libname.$acl_libext"; then
10955 found_a="$dir/$libname.$acl_libext"
10958 if test "X$found_dir" != "X"; then
10959 if test -f "$dir/$libname.la"; then
10960 found_la="$dir/$libname.la"
10964 if test "X$found_dir" = "X"; then
10965 for x in $LDFLAGS $LTLIBINTL; do
10967 acl_save_prefix="$prefix"
10968 prefix="$acl_final_prefix"
10969 acl_save_exec_prefix="$exec_prefix"
10970 exec_prefix="$acl_final_exec_prefix"
10972 exec_prefix="$acl_save_exec_prefix"
10973 prefix="$acl_save_prefix"
10977 dir=`echo "X$x" | sed -e 's/^X-L//'`
10978 if test -n "$acl_shlibext"; then
10979 if test -f "$dir/$libname$shrext"; then
10981 found_so="$dir/$libname$shrext"
10983 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
10984 ver=`(cd "$dir" && \
10985 for f in "$libname$shrext".*; do echo "$f"; done \
10986 | sed -e "s,^$libname$shrext\\\\.,," \
10987 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
10988 | sed 1q ) 2>/dev/null`
10989 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
10991 found_so="$dir/$libname$shrext.$ver"
10994 eval library_names=\"$acl_library_names_spec\"
10995 for f in $library_names; do
10996 if test -f "$dir/$f"; then
11005 if test "X$found_dir" = "X"; then
11006 if test -f "$dir/$libname.$acl_libext"; then
11008 found_a="$dir/$libname.$acl_libext"
11011 if test "X$found_dir" != "X"; then
11012 if test -f "$dir/$libname.la"; then
11013 found_la="$dir/$libname.la"
11018 if test "X$found_dir" != "X"; then
11023 if test "X$found_dir" != "X"; then
11024 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
11025 if test "X$found_so" != "X"; then
11026 if test "$enable_rpath" = no \
11027 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
11028 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
11029 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11032 for x in $ltrpathdirs; do
11033 if test "X$x" = "X$found_dir"; then
11038 if test -z "$haveit"; then
11039 ltrpathdirs="$ltrpathdirs $found_dir"
11041 if test "$acl_hardcode_direct" = yes; then
11042 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11044 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
11045 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11047 for x in $rpathdirs; do
11048 if test "X$x" = "X$found_dir"; then
11053 if test -z "$haveit"; then
11054 rpathdirs="$rpathdirs $found_dir"
11058 for x in $LDFLAGS $LIBINTL; do
11060 acl_save_prefix="$prefix"
11061 prefix="$acl_final_prefix"
11062 acl_save_exec_prefix="$exec_prefix"
11063 exec_prefix="$acl_final_exec_prefix"
11065 exec_prefix="$acl_save_exec_prefix"
11066 prefix="$acl_save_prefix"
11068 if test "X$x" = "X-L$found_dir"; then
11073 if test -z "$haveit"; then
11074 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
11076 if test "$acl_hardcode_minus_L" != no; then
11077 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11079 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
11085 if test "X$found_a" != "X"; then
11086 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
11088 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
11091 additional_includedir=
11092 case "$found_dir" in
11093 */$acl_libdirstem | */$acl_libdirstem/)
11094 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
11095 if test "$name" = 'intl'; then
11096 LIBINTL_PREFIX="$basedir"
11098 additional_includedir="$basedir/include"
11100 */$acl_libdirstem2 | */$acl_libdirstem2/)
11101 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
11102 if test "$name" = 'intl'; then
11103 LIBINTL_PREFIX="$basedir"
11105 additional_includedir="$basedir/include"
11108 if test "X$additional_includedir" != "X"; then
11109 if test "X$additional_includedir" != "X/usr/include"; then
11111 if test "X$additional_includedir" = "X/usr/local/include"; then
11112 if test -n "$GCC"; then
11114 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
11118 if test -z "$haveit"; then
11119 for x in $CPPFLAGS $INCINTL; do
11121 acl_save_prefix="$prefix"
11122 prefix="$acl_final_prefix"
11123 acl_save_exec_prefix="$exec_prefix"
11124 exec_prefix="$acl_final_exec_prefix"
11126 exec_prefix="$acl_save_exec_prefix"
11127 prefix="$acl_save_prefix"
11129 if test "X$x" = "X-I$additional_includedir"; then
11134 if test -z "$haveit"; then
11135 if test -d "$additional_includedir"; then
11136 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
11142 if test -n "$found_la"; then
11143 save_libdir="$libdir"
11144 case "$found_la" in
11145 */* | *\\*) . "$found_la" ;;
11146 *) . "./$found_la" ;;
11148 libdir="$save_libdir"
11149 for dep in $dependency_libs; do
11152 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
11153 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
11154 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
11156 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
11157 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
11158 if test -n "$GCC"; then
11160 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
11164 if test -z "$haveit"; then
11166 for x in $LDFLAGS $LIBINTL; do
11168 acl_save_prefix="$prefix"
11169 prefix="$acl_final_prefix"
11170 acl_save_exec_prefix="$exec_prefix"
11171 exec_prefix="$acl_final_exec_prefix"
11173 exec_prefix="$acl_save_exec_prefix"
11174 prefix="$acl_save_prefix"
11176 if test "X$x" = "X-L$additional_libdir"; then
11181 if test -z "$haveit"; then
11182 if test -d "$additional_libdir"; then
11183 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
11187 for x in $LDFLAGS $LTLIBINTL; do
11189 acl_save_prefix="$prefix"
11190 prefix="$acl_final_prefix"
11191 acl_save_exec_prefix="$exec_prefix"
11192 exec_prefix="$acl_final_exec_prefix"
11194 exec_prefix="$acl_save_exec_prefix"
11195 prefix="$acl_save_prefix"
11197 if test "X$x" = "X-L$additional_libdir"; then
11202 if test -z "$haveit"; then
11203 if test -d "$additional_libdir"; then
11204 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
11211 dir=`echo "X$dep" | sed -e 's/^X-R//'`
11212 if test "$enable_rpath" != no; then
11214 for x in $rpathdirs; do
11215 if test "X$x" = "X$dir"; then
11220 if test -z "$haveit"; then
11221 rpathdirs="$rpathdirs $dir"
11224 for x in $ltrpathdirs; do
11225 if test "X$x" = "X$dir"; then
11230 if test -z "$haveit"; then
11231 ltrpathdirs="$ltrpathdirs $dir"
11236 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11239 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11242 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
11243 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
11249 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
11250 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
11256 if test "X$rpathdirs" != "X"; then
11257 if test -n "$acl_hardcode_libdir_separator"; then
11259 for found_dir in $rpathdirs; do
11260 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
11262 acl_save_libdir="$libdir"
11264 eval flag=\"$acl_hardcode_libdir_flag_spec\"
11265 libdir="$acl_save_libdir"
11266 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
11268 for found_dir in $rpathdirs; do
11269 acl_save_libdir="$libdir"
11270 libdir="$found_dir"
11271 eval flag=\"$acl_hardcode_libdir_flag_spec\"
11272 libdir="$acl_save_libdir"
11273 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
11277 if test "X$ltrpathdirs" != "X"; then
11278 for found_dir in $ltrpathdirs; do
11279 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
11288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
11289 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
11290 if eval \${$gt_func_gnugettext_libintl+:} false; then :
11291 $as_echo_n "(cached) " >&6
11293 gt_save_CPPFLAGS="$CPPFLAGS"
11294 CPPFLAGS="$CPPFLAGS $INCINTL"
11295 gt_save_LIBS="$LIBS"
11296 LIBS="$LIBS $LIBINTL"
11297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11298 /* end confdefs.h. */
11300 #include <libintl.h>
11301 $gt_revision_test_code
11302 extern int _nl_msg_cat_cntr;
11307 const char *_nl_expand_alias (const char *);
11313 bindtextdomain ("", "");
11314 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
11320 if ac_fn_c_try_link "$LINENO"; then :
11321 eval "$gt_func_gnugettext_libintl=yes"
11323 eval "$gt_func_gnugettext_libintl=no"
11325 rm -f core conftest.err conftest.$ac_objext \
11326 conftest$ac_exeext conftest.$ac_ext
11327 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
11328 LIBS="$LIBS $LIBICONV"
11329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11330 /* end confdefs.h. */
11332 #include <libintl.h>
11333 $gt_revision_test_code
11334 extern int _nl_msg_cat_cntr;
11339 const char *_nl_expand_alias (const char *);
11345 bindtextdomain ("", "");
11346 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
11352 if ac_fn_c_try_link "$LINENO"; then :
11353 LIBINTL="$LIBINTL $LIBICONV"
11354 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
11355 eval "$gt_func_gnugettext_libintl=yes"
11358 rm -f core conftest.err conftest.$ac_objext \
11359 conftest$ac_exeext conftest.$ac_ext
11361 CPPFLAGS="$gt_save_CPPFLAGS"
11362 LIBS="$gt_save_LIBS"
11364 eval ac_res=\$$gt_func_gnugettext_libintl
11365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11366 $as_echo "$ac_res" >&6; }
11369 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
11370 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
11371 && test "$PACKAGE" != gettext-runtime \
11372 && test "$PACKAGE" != gettext-tools; }; then
11373 gt_use_preinstalled_gnugettext=yes
11381 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
11382 nls_cv_use_gnu_gettext=yes
11386 if test "$nls_cv_use_gnu_gettext" = "yes"; then
11387 BUILD_INCLUDED_LIBINTL=yes
11388 USE_INCLUDED_LIBINTL=yes
11389 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV $LIBTHREAD"
11390 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV $LTLIBTHREAD"
11391 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
11395 if test "$gt_use_preinstalled_gnugettext" = "yes" \
11396 || test "$nls_cv_use_gnu_gettext" = "yes"; then
11401 if test -n "$INTL_MACOSX_LIBS"; then
11402 if test "$gt_use_preinstalled_gnugettext" = "yes" \
11403 || test "$nls_cv_use_gnu_gettext" = "yes"; then
11404 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
11405 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
11409 if test "$gt_use_preinstalled_gnugettext" = "yes" \
11410 || test "$nls_cv_use_gnu_gettext" = "yes"; then
11412 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
11420 $as_echo_n "checking whether to use NLS... " >&6; }
11421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
11422 $as_echo "$USE_NLS" >&6; }
11423 if test "$USE_NLS" = "yes"; then
11424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
11425 $as_echo_n "checking where the gettext function comes from... " >&6; }
11426 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
11427 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
11428 gt_source="external libintl"
11433 gt_source="included intl directory"
11435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
11436 $as_echo "$gt_source" >&6; }
11439 if test "$USE_NLS" = "yes"; then
11441 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
11442 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
11443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
11444 $as_echo_n "checking how to link with libintl... " >&6; }
11445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
11446 $as_echo "$LIBINTL" >&6; }
11448 for element in $INCINTL; do
11450 for x in $CPPFLAGS; do
11452 acl_save_prefix="$prefix"
11453 prefix="$acl_final_prefix"
11454 acl_save_exec_prefix="$exec_prefix"
11455 exec_prefix="$acl_final_exec_prefix"
11457 exec_prefix="$acl_save_exec_prefix"
11458 prefix="$acl_save_prefix"
11460 if test "X$x" = "X$element"; then
11465 if test -z "$haveit"; then
11466 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11473 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
11476 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
11484 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
11485 BUILD_INCLUDED_LIBINTL=yes
11492 nls_cv_header_intl=
11493 nls_cv_header_libgt=
11505 if test "$USE_INCLUDED_LIBINTL" = yes; then
11506 INTLOBJS="\$(GETTOBJS)"
11510 INTL_LIBTOOL_SUFFIX_PREFIX=
11514 INTLLIBS="$LIBINTL"
11522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
11523 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
11525 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
11526 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
11527 $as_echo_n "(cached) " >&6
11529 cat >conftest.make <<\_ACEOF
11532 @echo '@@@%%%=$(MAKE)=@@@%%%'
11534 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
11535 case `${MAKE-make} -f conftest.make 2>/dev/null` in
11536 *@@@%%%=?*=@@@%%%*)
11537 eval ac_cv_prog_make_${ac_make}_set=yes;;
11539 eval ac_cv_prog_make_${ac_make}_set=no;;
11541 rm -f conftest.make
11543 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
11544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11545 $as_echo "yes" >&6; }
11548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11549 $as_echo "no" >&6; }
11550 SET_MAKE="MAKE=${MAKE-make}"
11553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5
11554 $as_echo_n "checking for GNU make... " >&6; }
11555 if ${_cv_gnu_make_command+:} false; then :
11556 $as_echo_n "(cached) " >&6
11558 _cv_gnu_make_command='' ;
11559 for a in "$MAKE" make gmake gnumake ; do
11560 if test -z "$a" ; then continue ; fi ;
11561 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
11562 _cv_gnu_make_command=$a ;
11568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_cv_gnu_make_command" >&5
11569 $as_echo "$_cv_gnu_make_command" >&6; } ;
11570 if test "x$_cv_gnu_make_command" != "x" ; then
11576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"Not found\"" >&5
11577 $as_echo "\"Not found\"" >&6; };
11582 # Extract the first word of "ln", so it can be a program name with args.
11583 set dummy ln; ac_word=$2
11584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11585 $as_echo_n "checking for $ac_word... " >&6; }
11586 if ${ac_cv_path_LN+:} false; then :
11587 $as_echo_n "(cached) " >&6
11591 ac_cv_path_LN="$LN" # Let the user override the test with a path.
11594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11595 for as_dir in $PATH
11598 test -z "$as_dir" && as_dir=.
11599 for ac_exec_ext in '' $ac_executable_extensions; do
11600 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11601 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
11602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11609 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
11614 if test -n "$LN"; then
11615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
11616 $as_echo "$LN" >&6; }
11618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11619 $as_echo "no" >&6; }
11623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
11624 $as_echo_n "checking whether ln -s works... " >&6; }
11626 if test "$LN_S" = "ln -s"; then
11627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11628 $as_echo "yes" >&6; }
11630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
11631 $as_echo "no, using $LN_S" >&6; }
11634 # Extract the first word of "mv", so it can be a program name with args.
11635 set dummy mv; ac_word=$2
11636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11637 $as_echo_n "checking for $ac_word... " >&6; }
11638 if ${ac_cv_path_MV+:} false; then :
11639 $as_echo_n "(cached) " >&6
11643 ac_cv_path_MV="$MV" # Let the user override the test with a path.
11646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11647 for as_dir in $PATH
11650 test -z "$as_dir" && as_dir=.
11651 for ac_exec_ext in '' $ac_executable_extensions; do
11652 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11653 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
11654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11661 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
11666 if test -n "$MV"; then
11667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
11668 $as_echo "$MV" >&6; }
11670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11671 $as_echo "no" >&6; }
11675 # Extract the first word of "cp", so it can be a program name with args.
11676 set dummy cp; ac_word=$2
11677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11678 $as_echo_n "checking for $ac_word... " >&6; }
11679 if ${ac_cv_path_CP+:} false; then :
11680 $as_echo_n "(cached) " >&6
11684 ac_cv_path_CP="$CP" # Let the user override the test with a path.
11687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11688 for as_dir in $PATH
11691 test -z "$as_dir" && as_dir=.
11692 for ac_exec_ext in '' $ac_executable_extensions; do
11693 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11694 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
11695 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11702 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
11707 if test -n "$CP"; then
11708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
11709 $as_echo "$CP" >&6; }
11711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11712 $as_echo "no" >&6; }
11716 # Extract the first word of "rm", so it can be a program name with args.
11717 set dummy rm; ac_word=$2
11718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11719 $as_echo_n "checking for $ac_word... " >&6; }
11720 if ${ac_cv_path_RM+:} false; then :
11721 $as_echo_n "(cached) " >&6
11725 ac_cv_path_RM="$RM" # Let the user override the test with a path.
11728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11729 for as_dir in $PATH
11732 test -z "$as_dir" && as_dir=.
11733 for ac_exec_ext in '' $ac_executable_extensions; do
11734 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11735 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
11736 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11743 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
11748 if test -n "$RM"; then
11749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
11750 $as_echo "$RM" >&6; }
11752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11753 $as_echo "no" >&6; }
11757 # Extract the first word of "chmod", so it can be a program name with args.
11758 set dummy chmod; ac_word=$2
11759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11760 $as_echo_n "checking for $ac_word... " >&6; }
11761 if ${ac_cv_path_CHMOD+:} false; then :
11762 $as_echo_n "(cached) " >&6
11766 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
11769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11770 for as_dir in $PATH
11773 test -z "$as_dir" && as_dir=.
11774 for ac_exec_ext in '' $ac_executable_extensions; do
11775 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11776 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
11777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11784 test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
11788 CHMOD=$ac_cv_path_CHMOD
11789 if test -n "$CHMOD"; then
11790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
11791 $as_echo "$CHMOD" >&6; }
11793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11794 $as_echo "no" >&6; }
11798 for ac_prog in gawk mawk nawk awk
11800 # Extract the first word of "$ac_prog", so it can be a program name with args.
11801 set dummy $ac_prog; ac_word=$2
11802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11803 $as_echo_n "checking for $ac_word... " >&6; }
11804 if ${ac_cv_prog_AWK+:} false; then :
11805 $as_echo_n "(cached) " >&6
11807 if test -n "$AWK"; then
11808 ac_cv_prog_AWK="$AWK" # Let the user override the test.
11810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11811 for as_dir in $PATH
11814 test -z "$as_dir" && as_dir=.
11815 for ac_exec_ext in '' $ac_executable_extensions; do
11816 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11817 ac_cv_prog_AWK="$ac_prog"
11818 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11827 AWK=$ac_cv_prog_AWK
11828 if test -n "$AWK"; then
11829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
11830 $as_echo "$AWK" >&6; }
11832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11833 $as_echo "no" >&6; }
11837 test -n "$AWK" && break
11840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
11841 $as_echo_n "checking for egrep... " >&6; }
11842 if ${ac_cv_path_EGREP+:} false; then :
11843 $as_echo_n "(cached) " >&6
11845 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
11846 then ac_cv_path_EGREP="$GREP -E"
11848 if test -z "$EGREP"; then
11849 ac_path_EGREP_found=false
11850 # Loop through the user's path and test for each of PROGNAME-LIST
11851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11852 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11855 test -z "$as_dir" && as_dir=.
11856 for ac_prog in egrep; do
11857 for ac_exec_ext in '' $ac_executable_extensions; do
11858 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
11859 as_fn_executable_p "$ac_path_EGREP" || continue
11860 # Check for GNU ac_path_EGREP and select it if it is found.
11861 # Check for GNU $ac_path_EGREP
11862 case `"$ac_path_EGREP" --version 2>&1` in
11864 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
11867 $as_echo_n 0123456789 >"conftest.in"
11870 cat "conftest.in" "conftest.in" >"conftest.tmp"
11871 mv "conftest.tmp" "conftest.in"
11872 cp "conftest.in" "conftest.nl"
11873 $as_echo 'EGREP' >> "conftest.nl"
11874 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11875 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11876 as_fn_arith $ac_count + 1 && ac_count=$as_val
11877 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
11878 # Best one so far, save it but keep looking for a better one
11879 ac_cv_path_EGREP="$ac_path_EGREP"
11880 ac_path_EGREP_max=$ac_count
11882 # 10*(2^10) chars as input seems more than enough
11883 test $ac_count -gt 10 && break
11885 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11888 $ac_path_EGREP_found && break 3
11893 if test -z "$ac_cv_path_EGREP"; then
11894 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11897 ac_cv_path_EGREP=$EGREP
11902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
11903 $as_echo "$ac_cv_path_EGREP" >&6; }
11904 EGREP="$ac_cv_path_EGREP"
11907 # Extract the first word of "sed", so it can be a program name with args.
11908 set dummy sed; ac_word=$2
11909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11910 $as_echo_n "checking for $ac_word... " >&6; }
11911 if ${ac_cv_path_SED+:} false; then :
11912 $as_echo_n "(cached) " >&6
11916 ac_cv_path_SED="$SED" # Let the user override the test with a path.
11919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11920 for as_dir in $PATH
11923 test -z "$as_dir" && as_dir=.
11924 for ac_exec_ext in '' $ac_executable_extensions; do
11925 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11926 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
11927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11934 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
11938 SED=$ac_cv_path_SED
11939 if test -n "$SED"; then
11940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
11941 $as_echo "$SED" >&6; }
11943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11944 $as_echo "no" >&6; }
11948 # Extract the first word of "perl", so it can be a program name with args.
11949 set dummy perl; ac_word=$2
11950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11951 $as_echo_n "checking for $ac_word... " >&6; }
11952 if ${ac_cv_path_PERL+:} false; then :
11953 $as_echo_n "(cached) " >&6
11957 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
11960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11961 for as_dir in $PATH
11964 test -z "$as_dir" && as_dir=.
11965 for ac_exec_ext in '' $ac_executable_extensions; do
11966 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11967 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
11968 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11975 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
11979 PERL=$ac_cv_path_PERL
11980 if test -n "$PERL"; then
11981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
11982 $as_echo "$PERL" >&6; }
11984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11985 $as_echo "no" >&6; }
11989 # Extract the first word of "ldconfig", so it can be a program name with args.
11990 set dummy ldconfig; ac_word=$2
11991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11992 $as_echo_n "checking for $ac_word... " >&6; }
11993 if ${ac_cv_path_LDCONFIG+:} false; then :
11994 $as_echo_n "(cached) " >&6
11998 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
12001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12002 for as_dir in $PATH
12005 test -z "$as_dir" && as_dir=.
12006 for ac_exec_ext in '' $ac_executable_extensions; do
12007 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12008 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
12009 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12016 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
12020 LDCONFIG=$ac_cv_path_LDCONFIG
12021 if test -n "$LDCONFIG"; then
12022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
12023 $as_echo "$LDCONFIG" >&6; }
12025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12026 $as_echo "no" >&6; }
12030 if test -n "$ac_tool_prefix"; then
12031 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
12032 set dummy ${ac_tool_prefix}ar; ac_word=$2
12033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12034 $as_echo_n "checking for $ac_word... " >&6; }
12035 if ${ac_cv_prog_AR+:} false; then :
12036 $as_echo_n "(cached) " >&6
12038 if test -n "$AR"; then
12039 ac_cv_prog_AR="$AR" # Let the user override the test.
12041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12042 for as_dir in $PATH
12045 test -z "$as_dir" && as_dir=.
12046 for ac_exec_ext in '' $ac_executable_extensions; do
12047 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12048 ac_cv_prog_AR="${ac_tool_prefix}ar"
12049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12059 if test -n "$AR"; then
12060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12061 $as_echo "$AR" >&6; }
12063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12064 $as_echo "no" >&6; }
12069 if test -z "$ac_cv_prog_AR"; then
12071 # Extract the first word of "ar", so it can be a program name with args.
12072 set dummy ar; ac_word=$2
12073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12074 $as_echo_n "checking for $ac_word... " >&6; }
12075 if ${ac_cv_prog_ac_ct_AR+:} false; then :
12076 $as_echo_n "(cached) " >&6
12078 if test -n "$ac_ct_AR"; then
12079 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12082 for as_dir in $PATH
12085 test -z "$as_dir" && as_dir=.
12086 for ac_exec_ext in '' $ac_executable_extensions; do
12087 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12088 ac_cv_prog_ac_ct_AR="ar"
12089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12098 ac_ct_AR=$ac_cv_prog_ac_ct_AR
12099 if test -n "$ac_ct_AR"; then
12100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
12101 $as_echo "$ac_ct_AR" >&6; }
12103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12104 $as_echo "no" >&6; }
12107 if test "x$ac_ct_AR" = x; then
12110 case $cross_compiling:$ac_tool_warned in
12112 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12113 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12114 ac_tool_warned=yes ;;
12119 AR="$ac_cv_prog_AR"
12122 if test -n "$ac_tool_prefix"; then
12123 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12124 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12126 $as_echo_n "checking for $ac_word... " >&6; }
12127 if ${ac_cv_prog_RANLIB+:} false; then :
12128 $as_echo_n "(cached) " >&6
12130 if test -n "$RANLIB"; then
12131 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12134 for as_dir in $PATH
12137 test -z "$as_dir" && as_dir=.
12138 for ac_exec_ext in '' $ac_executable_extensions; do
12139 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12140 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12141 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12150 RANLIB=$ac_cv_prog_RANLIB
12151 if test -n "$RANLIB"; then
12152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12153 $as_echo "$RANLIB" >&6; }
12155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12156 $as_echo "no" >&6; }
12161 if test -z "$ac_cv_prog_RANLIB"; then
12162 ac_ct_RANLIB=$RANLIB
12163 # Extract the first word of "ranlib", so it can be a program name with args.
12164 set dummy ranlib; ac_word=$2
12165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12166 $as_echo_n "checking for $ac_word... " >&6; }
12167 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
12168 $as_echo_n "(cached) " >&6
12170 if test -n "$ac_ct_RANLIB"; then
12171 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12174 for as_dir in $PATH
12177 test -z "$as_dir" && as_dir=.
12178 for ac_exec_ext in '' $ac_executable_extensions; do
12179 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12180 ac_cv_prog_ac_ct_RANLIB="ranlib"
12181 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12190 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12191 if test -n "$ac_ct_RANLIB"; then
12192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12193 $as_echo "$ac_ct_RANLIB" >&6; }
12195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12196 $as_echo "no" >&6; }
12199 if test "x$ac_ct_RANLIB" = x; then
12202 case $cross_compiling:$ac_tool_warned in
12204 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12205 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12206 ac_tool_warned=yes ;;
12208 RANLIB=$ac_ct_RANLIB
12211 RANLIB="$ac_cv_prog_RANLIB"
12214 if test -n "$ac_tool_prefix"; then
12215 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12216 set dummy ${ac_tool_prefix}strip; ac_word=$2
12217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12218 $as_echo_n "checking for $ac_word... " >&6; }
12219 if ${ac_cv_prog_STRIP+:} false; then :
12220 $as_echo_n "(cached) " >&6
12222 if test -n "$STRIP"; then
12223 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12226 for as_dir in $PATH
12229 test -z "$as_dir" && as_dir=.
12230 for ac_exec_ext in '' $ac_executable_extensions; do
12231 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12232 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12233 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12242 STRIP=$ac_cv_prog_STRIP
12243 if test -n "$STRIP"; then
12244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12245 $as_echo "$STRIP" >&6; }
12247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12248 $as_echo "no" >&6; }
12253 if test -z "$ac_cv_prog_STRIP"; then
12255 # Extract the first word of "strip", so it can be a program name with args.
12256 set dummy strip; ac_word=$2
12257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12258 $as_echo_n "checking for $ac_word... " >&6; }
12259 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
12260 $as_echo_n "(cached) " >&6
12262 if test -n "$ac_ct_STRIP"; then
12263 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12266 for as_dir in $PATH
12269 test -z "$as_dir" && as_dir=.
12270 for ac_exec_ext in '' $ac_executable_extensions; do
12271 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12272 ac_cv_prog_ac_ct_STRIP="strip"
12273 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12282 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12283 if test -n "$ac_ct_STRIP"; then
12284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
12285 $as_echo "$ac_ct_STRIP" >&6; }
12287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12288 $as_echo "no" >&6; }
12291 if test "x$ac_ct_STRIP" = x; then
12294 case $cross_compiling:$ac_tool_warned in
12296 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12297 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12298 ac_tool_warned=yes ;;
12303 STRIP="$ac_cv_prog_STRIP"
12306 # Extract the first word of "makeinfo", so it can be a program name with args.
12307 set dummy makeinfo; ac_word=$2
12308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12309 $as_echo_n "checking for $ac_word... " >&6; }
12310 if ${ac_cv_prog_MAKEINFO+:} false; then :
12311 $as_echo_n "(cached) " >&6
12313 if test -n "$MAKEINFO"; then
12314 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
12316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12317 for as_dir in $PATH
12320 test -z "$as_dir" && as_dir=.
12321 for ac_exec_ext in '' $ac_executable_extensions; do
12322 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12323 ac_cv_prog_MAKEINFO="makeinfo"
12324 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12333 MAKEINFO=$ac_cv_prog_MAKEINFO
12334 if test -n "$MAKEINFO"; then
12335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
12336 $as_echo "$MAKEINFO" >&6; }
12338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12339 $as_echo "no" >&6; }
12343 if test "_$MAKEINFO" = "_"; then
12344 MAKEINFO="@echo Makeinfo is missing. Info documentation will not be built.;true"
12346 case "$MAKEINFO" in
12348 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
12349 *** Makeinfo is missing. Info documentation will not be built." >&5
12350 $as_echo "$as_me: WARNING:
12351 *** Makeinfo is missing. Info documentation will not be built." >&2;}
12359 # See if we need a separate native compiler.
12360 if test $cross_compiling = no; then
12364 for ac_prog in gcc cc
12366 # Extract the first word of "$ac_prog", so it can be a program name with args.
12367 set dummy $ac_prog; ac_word=$2
12368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12369 $as_echo_n "checking for $ac_word... " >&6; }
12370 if ${ac_cv_prog_BUILD_CC+:} false; then :
12371 $as_echo_n "(cached) " >&6
12373 if test -n "$BUILD_CC"; then
12374 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
12376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12377 for as_dir in $PATH
12380 test -z "$as_dir" && as_dir=.
12381 for ac_exec_ext in '' $ac_executable_extensions; do
12382 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12383 ac_cv_prog_BUILD_CC="$ac_prog"
12384 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12393 BUILD_CC=$ac_cv_prog_BUILD_CC
12394 if test -n "$BUILD_CC"; then
12395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
12396 $as_echo "$BUILD_CC" >&6; }
12398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12399 $as_echo "no" >&6; }
12403 test -n "$BUILD_CC" && break
12407 for ac_header in dirent.h errno.h execinfo.h getopt.h malloc.h mntent.h paths.h semaphore.h setjmp.h signal.h stdarg.h stdint.h stdlib.h termios.h termio.h unistd.h utime.h attr/xattr.h linux/falloc.h linux/fd.h linux/major.h linux/loop.h net/if_dl.h netinet/in.h sys/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
12409 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12410 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12411 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12412 cat >>confdefs.h <<_ACEOF
12413 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12420 for ac_header in net/if.h
12422 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
12423 #if HAVE_SYS_TYPES_H
12424 #include <sys/types.h>
12426 #if HAVE_SYS_SOCKET
12427 #include <sys/socket.h>
12431 if test "x$ac_cv_header_net_if_h" = xyes; then :
12432 cat >>confdefs.h <<_ACEOF
12433 #define HAVE_NET_IF_H 1
12440 for ac_func in vprintf
12442 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
12443 if test "x$ac_cv_func_vprintf" = xyes; then :
12444 cat >>confdefs.h <<_ACEOF
12445 #define HAVE_VPRINTF 1
12448 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
12449 if test "x$ac_cv_func__doprnt" = xyes; then :
12451 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
12459 ac_fn_c_check_member "$LINENO" "struct dirent" "d_reclen" "ac_cv_member_struct_dirent_d_reclen" "#include <dirent.h>
12461 if test "x$ac_cv_member_struct_dirent_d_reclen" = xyes; then :
12463 $as_echo "#define HAVE_RECLEN_DIRENT 1" >>confdefs.h
12467 ac_fn_c_check_member "$LINENO" "struct stat" "st_atim" "ac_cv_member_struct_stat_st_atim" "$ac_includes_default"
12468 if test "x$ac_cv_member_struct_stat_st_atim" = xyes; then :
12470 cat >>confdefs.h <<_ACEOF
12471 #define HAVE_STRUCT_STAT_ST_ATIM 1
12477 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "#include <sys/types.h>
12479 if test "x$ac_cv_type_ssize_t" = xyes; then :
12481 $as_echo "#define HAVE_TYPE_SSIZE_T 1" >>confdefs.h
12485 ac_fn_c_check_decl "$LINENO" "llseek" "ac_cv_have_decl_llseek" "#include <unistd.h>
12487 if test "x$ac_cv_have_decl_llseek" = xyes; then :
12489 $as_echo "#define HAVE_LLSEEK_PROTOTYPE 1" >>confdefs.h
12493 ac_fn_c_check_decl "$LINENO" "lseek64" "ac_cv_have_decl_lseek64" "#define _LARGEFILE_SOURCE
12494 #define _LARGEFILE64_SOURCE
12495 #include <unistd.h>
12497 if test "x$ac_cv_have_decl_lseek64" = xyes; then :
12499 $as_echo "#define HAVE_LSEEK64_PROTOTYPE 1" >>confdefs.h
12503 # The cast to long int works around a bug in the HP C Compiler
12504 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12505 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12506 # This bug is HP SR number 8606223364.
12507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
12508 $as_echo_n "checking size of short... " >&6; }
12509 if ${ac_cv_sizeof_short+:} false; then :
12510 $as_echo_n "(cached) " >&6
12512 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
12515 if test "$ac_cv_type_short" = yes; then
12516 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12517 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12518 as_fn_error 77 "cannot compute sizeof (short)
12519 See \`config.log' for more details" "$LINENO" 5; }
12521 ac_cv_sizeof_short=0
12526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
12527 $as_echo "$ac_cv_sizeof_short" >&6; }
12531 cat >>confdefs.h <<_ACEOF
12532 #define SIZEOF_SHORT $ac_cv_sizeof_short
12536 # The cast to long int works around a bug in the HP C Compiler
12537 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12538 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12539 # This bug is HP SR number 8606223364.
12540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
12541 $as_echo_n "checking size of int... " >&6; }
12542 if ${ac_cv_sizeof_int+:} false; then :
12543 $as_echo_n "(cached) " >&6
12545 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
12548 if test "$ac_cv_type_int" = yes; then
12549 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12550 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12551 as_fn_error 77 "cannot compute sizeof (int)
12552 See \`config.log' for more details" "$LINENO" 5; }
12559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
12560 $as_echo "$ac_cv_sizeof_int" >&6; }
12564 cat >>confdefs.h <<_ACEOF
12565 #define SIZEOF_INT $ac_cv_sizeof_int
12569 # The cast to long int works around a bug in the HP C Compiler
12570 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12571 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12572 # This bug is HP SR number 8606223364.
12573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
12574 $as_echo_n "checking size of long... " >&6; }
12575 if ${ac_cv_sizeof_long+:} false; then :
12576 $as_echo_n "(cached) " >&6
12578 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
12581 if test "$ac_cv_type_long" = yes; then
12582 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12583 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12584 as_fn_error 77 "cannot compute sizeof (long)
12585 See \`config.log' for more details" "$LINENO" 5; }
12587 ac_cv_sizeof_long=0
12592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
12593 $as_echo "$ac_cv_sizeof_long" >&6; }
12597 cat >>confdefs.h <<_ACEOF
12598 #define SIZEOF_LONG $ac_cv_sizeof_long
12602 # The cast to long int works around a bug in the HP C Compiler
12603 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12604 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12605 # This bug is HP SR number 8606223364.
12606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
12607 $as_echo_n "checking size of long long... " >&6; }
12608 if ${ac_cv_sizeof_long_long+:} false; then :
12609 $as_echo_n "(cached) " >&6
12611 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
12614 if test "$ac_cv_type_long_long" = yes; then
12615 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12616 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12617 as_fn_error 77 "cannot compute sizeof (long long)
12618 See \`config.log' for more details" "$LINENO" 5; }
12620 ac_cv_sizeof_long_long=0
12625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
12626 $as_echo "$ac_cv_sizeof_long_long" >&6; }
12630 cat >>confdefs.h <<_ACEOF
12631 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
12635 # The cast to long int works around a bug in the HP C Compiler
12636 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12637 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12638 # This bug is HP SR number 8606223364.
12639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
12640 $as_echo_n "checking size of off_t... " >&6; }
12641 if ${ac_cv_sizeof_off_t+:} false; then :
12642 $as_echo_n "(cached) " >&6
12644 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
12647 if test "$ac_cv_type_off_t" = yes; then
12648 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12649 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12650 as_fn_error 77 "cannot compute sizeof (off_t)
12651 See \`config.log' for more details" "$LINENO" 5; }
12653 ac_cv_sizeof_off_t=0
12658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
12659 $as_echo "$ac_cv_sizeof_off_t" >&6; }
12663 cat >>confdefs.h <<_ACEOF
12664 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
12668 SIZEOF_SHORT=$ac_cv_sizeof_short
12669 SIZEOF_INT=$ac_cv_sizeof_int
12670 SIZEOF_LONG=$ac_cv_sizeof_long
12671 SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
12672 SIZEOF_OFF_T=$ac_cv_sizeof_off_t
12678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
12679 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
12680 if ${ac_cv_c_bigendian+:} false; then :
12681 $as_echo_n "(cached) " >&6
12683 ac_cv_c_bigendian=unknown
12684 # See if we're dealing with a universal compiler.
12685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12686 /* end confdefs.h. */
12687 #ifndef __APPLE_CC__
12688 not a universal capable compiler
12693 if ac_fn_c_try_compile "$LINENO"; then :
12695 # Check for potential -arch flags. It is not universal unless
12696 # there are at least two -arch flags with different values.
12699 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
12700 if test -n "$ac_prev"; then
12702 i?86 | x86_64 | ppc | ppc64)
12703 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
12706 ac_cv_c_bigendian=universal
12712 elif test "x$ac_word" = "x-arch"; then
12717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12718 if test $ac_cv_c_bigendian = unknown; then
12719 # See if sys/param.h defines the BYTE_ORDER macro.
12720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12721 /* end confdefs.h. */
12722 #include <sys/types.h>
12723 #include <sys/param.h>
12728 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
12729 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
12731 bogus endian macros
12738 if ac_fn_c_try_compile "$LINENO"; then :
12739 # It does; now see whether it defined to BIG_ENDIAN or not.
12740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12741 /* end confdefs.h. */
12742 #include <sys/types.h>
12743 #include <sys/param.h>
12748 #if BYTE_ORDER != BIG_ENDIAN
12756 if ac_fn_c_try_compile "$LINENO"; then :
12757 ac_cv_c_bigendian=yes
12759 ac_cv_c_bigendian=no
12761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12765 if test $ac_cv_c_bigendian = unknown; then
12766 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
12767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12768 /* end confdefs.h. */
12769 #include <limits.h>
12774 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
12775 bogus endian macros
12782 if ac_fn_c_try_compile "$LINENO"; then :
12783 # It does; now see whether it defined to _BIG_ENDIAN or not.
12784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12785 /* end confdefs.h. */
12786 #include <limits.h>
12791 #ifndef _BIG_ENDIAN
12799 if ac_fn_c_try_compile "$LINENO"; then :
12800 ac_cv_c_bigendian=yes
12802 ac_cv_c_bigendian=no
12804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12808 if test $ac_cv_c_bigendian = unknown; then
12809 # Compile a test program.
12810 if test "$cross_compiling" = yes; then :
12811 # Try to guess by grepping values from an object file.
12812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12813 /* end confdefs.h. */
12814 short int ascii_mm[] =
12815 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12816 short int ascii_ii[] =
12817 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12818 int use_ascii (int i) {
12819 return ascii_mm[i] + ascii_ii[i];
12821 short int ebcdic_ii[] =
12822 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12823 short int ebcdic_mm[] =
12824 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12825 int use_ebcdic (int i) {
12826 return ebcdic_mm[i] + ebcdic_ii[i];
12833 return use_ascii (foo) == use_ebcdic (foo);
12838 if ac_fn_c_try_compile "$LINENO"; then :
12839 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
12840 ac_cv_c_bigendian=yes
12842 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
12843 if test "$ac_cv_c_bigendian" = unknown; then
12844 ac_cv_c_bigendian=no
12846 # finding both strings is unlikely to happen, but who knows?
12847 ac_cv_c_bigendian=unknown
12851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12854 /* end confdefs.h. */
12855 $ac_includes_default
12860 /* Are we little or big endian? From Harbison&Steele. */
12864 char c[sizeof (long int)];
12867 return u.c[sizeof (long int) - 1] == 1;
12873 if ac_fn_c_try_run "$LINENO"; then :
12874 ac_cv_c_bigendian=no
12876 ac_cv_c_bigendian=yes
12878 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12879 conftest.$ac_objext conftest.beam conftest.$ac_ext
12884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
12885 $as_echo "$ac_cv_c_bigendian" >&6; }
12886 case $ac_cv_c_bigendian in #(
12888 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
12894 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
12898 as_fn_error $? "unknown endianness
12899 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
12902 if test $cross_compiling = no; then
12903 BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
12905 CROSS_COMPILE="1" BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
12907 ASM_TYPES_HEADER=./asm_types.h
12909 echo "/* These defines are needed for the public ext2fs.h header file */" \
12911 if grep HAVE_SYS_TYPES_H confdefs.h > tmp_config.$$; then
12912 uniq tmp_config.$$ >> public_config.h
12914 echo "#undef HAVE_SYS_TYPES_H" >> public_config.h
12916 if grep WORDS_BIGENDIAN confdefs.h > tmp_config.$$; then
12917 uniq tmp_config.$$ >> public_config.h
12919 echo "#undef WORDS_BIGENDIAN" >> public_config.h
12921 rm -f tmp_config.$$
12922 PUBLIC_CONFIG_HEADER=./public_config.h
12924 for ac_header in inttypes.h
12926 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
12927 if test "x$ac_cv_header_inttypes_h" = xyes; then :
12928 cat >>confdefs.h <<_ACEOF
12929 #define HAVE_INTTYPES_H 1
12936 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
12937 if test "x$ac_cv_type_intptr_t" = xyes; then :
12939 cat >>confdefs.h <<_ACEOF
12940 #define HAVE_INTPTR_T 1
12946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat has a st_flags field" >&5
12947 $as_echo_n "checking whether struct stat has a st_flags field... " >&6; }
12948 if ${e2fsprogs_cv_struct_st_flags+:} false; then :
12949 $as_echo_n "(cached) " >&6
12951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12952 /* end confdefs.h. */
12953 #include <sys/stat.h>
12957 struct stat stat; stat.st_flags = 0;
12962 if ac_fn_c_try_compile "$LINENO"; then :
12963 e2fsprogs_cv_struct_st_flags=yes
12965 e2fsprogs_cv_struct_st_flags=no
12967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags" >&5
12971 $as_echo "$e2fsprogs_cv_struct_st_flags" >&6; }
12972 if test "$e2fsprogs_cv_struct_st_flags" = yes; then
12973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether st_flags field is useful" >&5
12974 $as_echo_n "checking whether st_flags field is useful... " >&6; }
12975 if ${e2fsprogs_cv_struct_st_flags_immut+:} false; then :
12976 $as_echo_n "(cached) " >&6
12978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12979 /* end confdefs.h. */
12980 #include <sys/stat.h>
12984 struct stat stat; stat.st_flags |= UF_IMMUTABLE;
12989 if ac_fn_c_try_compile "$LINENO"; then :
12990 e2fsprogs_cv_struct_st_flags_immut=yes
12992 e2fsprogs_cv_struct_st_flags_immut=no
12994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags_immut" >&5
12998 $as_echo "$e2fsprogs_cv_struct_st_flags_immut" >&6; }
12999 if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
13001 $as_echo "#define HAVE_STAT_FLAGS 1" >>confdefs.h
13005 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h>
13006 #include <sys/socket.h>
13008 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
13010 cat >>confdefs.h <<_ACEOF
13011 #define HAVE_SA_LEN 1
13016 if test -n "$BLKID_CMT"; then
13017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing blkid_probe_all" >&5
13018 $as_echo_n "checking for library containing blkid_probe_all... " >&6; }
13019 if ${ac_cv_search_blkid_probe_all+:} false; then :
13020 $as_echo_n "(cached) " >&6
13022 ac_func_search_save_LIBS=$LIBS
13023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13024 /* end confdefs.h. */
13026 /* Override any GCC internal prototype to avoid an error.
13027 Use char because int might match the return type of a GCC
13028 builtin and then its argument prototype would still apply. */
13032 char blkid_probe_all ();
13036 return blkid_probe_all ();
13041 for ac_lib in '' blkid; do
13042 if test -z "$ac_lib"; then
13043 ac_res="none required"
13046 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13048 if ac_fn_c_try_link "$LINENO"; then :
13049 ac_cv_search_blkid_probe_all=$ac_res
13051 rm -f core conftest.err conftest.$ac_objext \
13053 if ${ac_cv_search_blkid_probe_all+:} false; then :
13057 if ${ac_cv_search_blkid_probe_all+:} false; then :
13060 ac_cv_search_blkid_probe_all=no
13062 rm conftest.$ac_ext
13063 LIBS=$ac_func_search_save_LIBS
13065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_blkid_probe_all" >&5
13066 $as_echo "$ac_cv_search_blkid_probe_all" >&6; }
13067 ac_res=$ac_cv_search_blkid_probe_all
13068 if test "$ac_res" != no; then :
13069 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13074 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 llistxattr llseek lseek64 mallinfo mbstowcs memalign mempcpy mmap msync nanosleep open64 pathconf posix_fadvise posix_fadvise64 posix_memalign prctl pread pwrite pread64 pwrite64 secure_getenv setmntent setresgid setresuid snprintf srandom stpcpy strcasecmp strdup strnlen strptime strtoull sync_file_range sysconf usleep utime valloc
13076 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13077 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13078 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13079 cat >>confdefs.h <<_ACEOF
13080 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
13088 $as_echo_n "checking for socket in -lsocket... " >&6; }
13089 if ${ac_cv_lib_socket_socket+:} false; then :
13090 $as_echo_n "(cached) " >&6
13092 ac_check_lib_save_LIBS=$LIBS
13093 LIBS="-lsocket $LIBS"
13094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13095 /* end confdefs.h. */
13097 /* Override any GCC internal prototype to avoid an error.
13098 Use char because int might match the return type of a GCC
13099 builtin and then its argument prototype would still apply. */
13112 if ac_fn_c_try_link "$LINENO"; then :
13113 ac_cv_lib_socket_socket=yes
13115 ac_cv_lib_socket_socket=no
13117 rm -f core conftest.err conftest.$ac_objext \
13118 conftest$ac_exeext conftest.$ac_ext
13119 LIBS=$ac_check_lib_save_LIBS
13121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
13122 $as_echo "$ac_cv_lib_socket_socket" >&6; }
13123 if test "x$ac_cv_lib_socket_socket" = xyes; then :
13124 SOCKET_LIB=-lsocket
13128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for optreset" >&5
13129 $as_echo_n "checking for optreset... " >&6; }
13130 if ${ac_cv_have_optreset+:} false; then :
13131 $as_echo_n "(cached) " >&6
13133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13134 /* end confdefs.h. */
13135 #include <unistd.h>
13138 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13139 $EGREP "optreset" >/dev/null 2>&1; then :
13140 ac_cv_have_optreset=yes
13142 ac_cv_have_optreset=no
13147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_optreset" >&5
13148 $as_echo "$ac_cv_have_optreset" >&6; }
13149 if test $ac_cv_have_optreset = yes; then
13151 $as_echo "#define HAVE_OPTRESET 1" >>confdefs.h
13156 ac_fn_c_check_func "$LINENO" "sem_init" "ac_cv_func_sem_init"
13157 if test "x$ac_cv_func_sem_init" = xyes; then :
13160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lpthread" >&5
13161 $as_echo_n "checking for sem_init in -lpthread... " >&6; }
13162 if ${ac_cv_lib_pthread_sem_init+:} false; then :
13163 $as_echo_n "(cached) " >&6
13165 ac_check_lib_save_LIBS=$LIBS
13166 LIBS="-lpthread $LIBS"
13167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13168 /* end confdefs.h. */
13170 /* Override any GCC internal prototype to avoid an error.
13171 Use char because int might match the return type of a GCC
13172 builtin and then its argument prototype would still apply. */
13180 return sem_init ();
13185 if ac_fn_c_try_link "$LINENO"; then :
13186 ac_cv_lib_pthread_sem_init=yes
13188 ac_cv_lib_pthread_sem_init=no
13190 rm -f core conftest.err conftest.$ac_objext \
13191 conftest$ac_exeext conftest.$ac_ext
13192 LIBS=$ac_check_lib_save_LIBS
13194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_sem_init" >&5
13195 $as_echo "$ac_cv_lib_pthread_sem_init" >&6; }
13196 if test "x$ac_cv_lib_pthread_sem_init" = xyes; then :
13197 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
13199 SEM_INIT_LIB=-lpthread
13201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lrt" >&5
13202 $as_echo_n "checking for sem_init in -lrt... " >&6; }
13203 if ${ac_cv_lib_rt_sem_init+:} false; then :
13204 $as_echo_n "(cached) " >&6
13206 ac_check_lib_save_LIBS=$LIBS
13208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13209 /* end confdefs.h. */
13211 /* Override any GCC internal prototype to avoid an error.
13212 Use char because int might match the return type of a GCC
13213 builtin and then its argument prototype would still apply. */
13221 return sem_init ();
13226 if ac_fn_c_try_link "$LINENO"; then :
13227 ac_cv_lib_rt_sem_init=yes
13229 ac_cv_lib_rt_sem_init=no
13231 rm -f core conftest.err conftest.$ac_objext \
13232 conftest$ac_exeext conftest.$ac_ext
13233 LIBS=$ac_check_lib_save_LIBS
13235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sem_init" >&5
13236 $as_echo "$ac_cv_lib_rt_sem_init" >&6; }
13237 if test "x$ac_cv_lib_rt_sem_init" = xyes; then :
13238 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
13242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lposix4" >&5
13243 $as_echo_n "checking for sem_init in -lposix4... " >&6; }
13244 if ${ac_cv_lib_posix4_sem_init+:} false; then :
13245 $as_echo_n "(cached) " >&6
13247 ac_check_lib_save_LIBS=$LIBS
13248 LIBS="-lposix4 $LIBS"
13249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13250 /* end confdefs.h. */
13252 /* Override any GCC internal prototype to avoid an error.
13253 Use char because int might match the return type of a GCC
13254 builtin and then its argument prototype would still apply. */
13262 return sem_init ();
13267 if ac_fn_c_try_link "$LINENO"; then :
13268 ac_cv_lib_posix4_sem_init=yes
13270 ac_cv_lib_posix4_sem_init=no
13272 rm -f core conftest.err conftest.$ac_objext \
13273 conftest$ac_exeext conftest.$ac_ext
13274 LIBS=$ac_check_lib_save_LIBS
13276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sem_init" >&5
13277 $as_echo "$ac_cv_lib_posix4_sem_init" >&6; }
13278 if test "x$ac_cv_lib_posix4_sem_init" = xyes; then :
13279 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
13281 SEM_INIT_LIB=-lposix4
13290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unified diff option" >&5
13291 $as_echo_n "checking for unified diff option... " >&6; }
13292 if diff -u $0 $0 > /dev/null 2>&1 ; then
13297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNI_DIFF_OPTS" >&5
13298 $as_echo "$UNI_DIFF_OPTS" >&6; }
13303 $as_echo "#define HAVE_EXT2_IOCTLS 1" >>confdefs.h
13323 linux* | gnu* | k*bsd*-gnu)
13324 if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
13326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, root_prefix defaults to ''" >&5
13327 $as_echo "On $host_os systems, root_prefix defaults to ''" >&6; }
13332 linux* | gnu* | k*bsd*-gnu)
13333 if test "$prefix" = NONE ; then
13335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, prefix defaults to /usr" >&5
13336 $as_echo "On $host_os systems, prefix defaults to /usr" >&6; }
13337 if test "$mandir" = '${prefix}/man' ; then
13338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ...and mandir defaults to /usr/share/man" >&5
13339 $as_echo "...and mandir defaults to /usr/share/man" >&6; }
13340 mandir=/usr/share/man
13345 if test "$root_prefix" = NONE ; then
13346 if test "$prefix" = NONE ; then
13347 root_prefix="$ac_default_prefix"
13349 root_prefix="$prefix"
13351 root_bindir=$bindir
13352 root_sbindir=$sbindir
13353 root_libdir=$libdir
13354 root_sysconfdir=$sysconfdir
13356 root_bindir='${root_prefix}/bin'
13357 root_sbindir='${root_prefix}/sbin'
13358 root_libdir='${root_prefix}/lib'
13359 root_sysconfdir='${root_prefix}/etc'
13361 if test "$bindir" != '${exec_prefix}/bin'; then
13362 root_bindir=$bindir
13363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_bindir to $root_bindir" >&5
13364 $as_echo "Setting root_bindir to $root_bindir" >&6; }
13366 if test "$sbindir" != '${exec_prefix}/sbin'; then
13367 root_sbindir=$sbindir
13368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sbindir to $root_sbindir" >&5
13369 $as_echo "Setting root_sbindir to $root_sbindir" >&6; }
13371 if test "$libdir" != '${exec_prefix}/lib'; then
13372 root_libdir=$libdir
13373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_libdir to $root_libdir" >&5
13374 $as_echo "Setting root_libdir to $root_libdir" >&6; }
13376 if test "$sysconfdir" != '${prefix}/etc'; then
13377 root_sysconfdir=$sysconfdir
13378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sysconfdir to $root_sysconfdir" >&5
13379 $as_echo "Setting root_sysconfdir to $root_sysconfdir" >&6; }
13387 # Check whether --with-multiarch was given.
13388 if test "${with_multiarch+set}" = set; then :
13389 withval=$with_multiarch; if test "$withval" = "lib64"; then
13393 libdir=$libdir/$withval
13394 root_libdir=$root_libdir/$withval
13398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can link with -static" >&5
13399 $as_echo_n "checking whether we can link with -static... " >&6; }
13400 if ${ac_cv_e2fsprogs_use_static+:} false; then :
13401 $as_echo_n "(cached) " >&6
13403 SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static"
13404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13405 /* end confdefs.h. */
13415 if ac_fn_c_try_link "$LINENO"; then :
13416 ac_cv_e2fsprogs_use_static=yes
13418 ac_cv_e2fsprogs_use_static=no
13420 rm -f core conftest.err conftest.$ac_objext \
13421 conftest$ac_exeext conftest.$ac_ext
13422 LDFLAGS=$SAVE_LDFLAGS
13427 ac_cv_e2fsprogs_use_static=no
13430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_e2fsprogs_use_static" >&5
13431 $as_echo "$ac_cv_e2fsprogs_use_static" >&6; }
13433 if test $ac_cv_e2fsprogs_use_static = yes; then
13434 LDFLAG_STATIC=-static
13439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using Apple Darwin / GNU libintl workaround" >&5
13440 $as_echo "Using Apple Darwin / GNU libintl workaround" >&6; }
13442 $as_echo "#define _INTL_REDIRECT_MACROS 1" >>confdefs.h
13446 SS_DIR=`cd ${srcdir}/lib/ss; pwd`
13447 ET_DIR=`cd ${srcdir}/lib/et; pwd`
13450 if test "$cross_compiling" = yes ; then
13453 DO_TEST_SUITE=check
13456 INCLUDES='-I. -I$(top_builddir)/lib -I$(top_srcdir)/lib'
13457 if test -n "$CPPFLAGS" ; then
13458 INCLUDES="$INCLUDES $CPPFLAGS"
13460 if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
13461 INCLUDES=$INCLUDES' -I$(top_builddir)/intl -I$(top_srcdir)/intl'
13463 if test -n "$WITH_DIET_LIBC" ; then
13464 INCLUDES="$INCLUDES -D_REENTRANT"
13469 if test -n "$ac_aux_dir"; then
13470 case "$ac_aux_dir" in
13471 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
13472 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
13475 if test -z "$MKINSTALLDIRS"; then
13476 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
13480 if test $cross_compiling = no; then
13481 BUILD_CFLAGS="$CFLAGS $CPPFLAGS $INCLUDES -DHAVE_CONFIG_H"
13482 BUILD_LDFLAGS="$LDFLAGS"
13489 test -d lib || mkdir lib
13490 test -d include || mkdir include
13491 test -d include/linux || mkdir include/linux
13492 test -d include/asm || mkdir include/asm
13493 for i in MCONFIG Makefile e2fsprogs.spec \
13494 util/Makefile util/subst.conf util/gen-tarball util/install-symlink \
13495 lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \
13496 lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \
13497 lib/uuid/Makefile lib/uuid/uuid_types.h \
13498 lib/blkid/Makefile lib/blkid/blkid_types.h lib/quota/Makefile \
13499 lib/ss/ss.pc lib/uuid/uuid.pc lib/et/com_err.pc \
13500 lib/e2p/e2p.pc lib/blkid/blkid.pc lib/ext2fs/ext2fs.pc \
13501 misc/Makefile ext2ed/Makefile e2fsck/Makefile \
13502 debugfs/Makefile tests/Makefile tests/progs/Makefile \
13503 resize/Makefile doc/Makefile intl/Makefile \
13504 intl/libgnuintl.h po/Makefile.in ; do
13505 if test -d `dirname ${srcdir}/$i` ; then
13506 outlist="$outlist $i"
13509 ac_config_files="$ac_config_files $outlist"
13511 cat >confcache <<\_ACEOF
13512 # This file is a shell script that caches the results of configure
13513 # tests run on this system so they can be shared between configure
13514 # scripts and configure runs, see configure's option --config-cache.
13515 # It is not useful on other systems. If it contains results you don't
13516 # want to keep, you may remove or edit it.
13518 # config.status only pays attention to the cache file if you give it
13519 # the --recheck option to rerun configure.
13521 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13522 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13523 # following values.
13527 # The following way of writing the cache mishandles newlines in values,
13528 # but we know of no workaround that is simple, portable, and efficient.
13529 # So, we kill variables containing newlines.
13530 # Ultrix sh set writes to stderr and can't be redirected directly,
13531 # and sets the high bit in the cache file unless we assign to the vars.
13533 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13534 eval ac_val=\$$ac_var
13538 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13539 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13542 _ | IFS | as_nl) ;; #(
13543 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13544 *) { eval $ac_var=; unset $ac_var;} ;;
13550 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13551 *${as_nl}ac_space=\ *)
13552 # `set' does not quote correctly, so add quotes: double-quote
13553 # substitution turns \\\\ into \\, and sed turns \\ into \.
13556 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13559 # `set' quotes correctly as required by POSIX, so do not add quotes.
13560 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13569 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13571 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13573 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13574 if test -w "$cache_file"; then
13575 if test "x$cache_file" != "x/dev/null"; then
13576 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13577 $as_echo "$as_me: updating cache $cache_file" >&6;}
13578 if test ! -f "$cache_file" || test -h "$cache_file"; then
13579 cat confcache >"$cache_file"
13581 case $cache_file in #(
13583 mv -f confcache "$cache_file"$$ &&
13584 mv -f "$cache_file"$$ "$cache_file" ;; #(
13586 mv -f confcache "$cache_file" ;;
13591 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13592 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13597 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13598 # Let make expand exec_prefix.
13599 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13601 DEFS=-DHAVE_CONFIG_H
13606 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13607 # 1. Remove the extension, and $U if already installed.
13608 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13609 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13610 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13611 # will be set to the directory where LIBOBJS objects are built.
13612 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13613 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13615 LIBOBJS=$ac_libobjs
13617 LTLIBOBJS=$ac_ltlibobjs
13622 : "${CONFIG_STATUS=./config.status}"
13624 ac_clean_files_save=$ac_clean_files
13625 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13626 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13627 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13629 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13631 # Generated by $as_me.
13632 # Run this file to recreate the current configuration.
13633 # Compiler output produced by configure, useful for debugging
13634 # configure, is in config.log if it exists.
13637 ac_cs_recheck=false
13640 SHELL=\${CONFIG_SHELL-$SHELL}
13643 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13644 ## -------------------- ##
13645 ## M4sh Initialization. ##
13646 ## -------------------- ##
13648 # Be more Bourne compatible
13649 DUALCASE=1; export DUALCASE # for MKS sh
13650 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13653 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13654 # is contrary to our usage. Disable this feature.
13655 alias -g '${1+"$@"}'='"$@"'
13656 setopt NO_GLOB_SUBST
13658 case `(set -o) 2>/dev/null` in #(
13670 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13671 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13672 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13673 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13674 # Prefer a ksh shell builtin over an external printf program on Solaris,
13675 # but without wasting forks for bash or zsh.
13676 if test -z "$BASH_VERSION$ZSH_VERSION" \
13677 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13678 as_echo='print -r --'
13679 as_echo_n='print -rn --'
13680 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13681 as_echo='printf %s\n'
13682 as_echo_n='printf %s'
13684 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13685 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13686 as_echo_n='/usr/ucb/echo -n'
13688 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13689 as_echo_n_body='eval
13693 expr "X$arg" : "X\\(.*\\)$as_nl";
13694 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13696 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13698 export as_echo_n_body
13699 as_echo_n='sh -c $as_echo_n_body as_echo'
13701 export as_echo_body
13702 as_echo='sh -c $as_echo_body as_echo'
13705 # The user is always right.
13706 if test "${PATH_SEPARATOR+set}" != set; then
13708 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13709 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13716 # We need space, tab and new line, in precisely that order. Quoting is
13717 # there to prevent editors from complaining about space-tab.
13718 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13719 # splitting by setting IFS to empty value.)
13722 # Find who we are. Look in the path if we contain no directory separator.
13725 *[\\/]* ) as_myself=$0 ;;
13726 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13727 for as_dir in $PATH
13730 test -z "$as_dir" && as_dir=.
13731 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13737 # We did not find ourselves, most probably we were run as `sh COMMAND'
13738 # in which case we are not to be found in the path.
13739 if test "x$as_myself" = x; then
13742 if test ! -f "$as_myself"; then
13743 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13747 # Unset variables that we do not need and which cause bugs (e.g. in
13748 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13749 # suppresses any "Segmentation fault" message there. '((' could
13750 # trigger a bug in pdksh 5.2.14.
13751 for as_var in BASH_ENV ENV MAIL MAILPATH
13752 do eval test x\${$as_var+set} = xset \
13753 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13766 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13769 # as_fn_error STATUS ERROR [LINENO LOG_FD]
13770 # ----------------------------------------
13771 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13772 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13773 # script with STATUS, using 1 if that was 0.
13776 as_status=$1; test $as_status -eq 0 && as_status=1
13778 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13779 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13781 $as_echo "$as_me: error: $2" >&2
13782 as_fn_exit $as_status
13786 # as_fn_set_status STATUS
13787 # -----------------------
13788 # Set $? to STATUS, without forking.
13789 as_fn_set_status ()
13792 } # as_fn_set_status
13794 # as_fn_exit STATUS
13795 # -----------------
13796 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13800 as_fn_set_status $1
13806 # Portably unset VAR.
13809 { eval $1=; unset $1;}
13811 as_unset=as_fn_unset
13812 # as_fn_append VAR VALUE
13813 # ----------------------
13814 # Append the text in VALUE to the end of the definition contained in VAR. Take
13815 # advantage of any shell optimizations that allow amortized linear growth over
13816 # repeated appends, instead of the typical quadratic growth present in naive
13818 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13819 eval 'as_fn_append ()
13830 # as_fn_arith ARG...
13831 # ------------------
13832 # Perform arithmetic evaluation on the ARGs, and store the result in the
13833 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13834 # must be portable across $(()) and expr.
13835 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13836 eval 'as_fn_arith ()
13843 as_val=`expr "$@" || test $? -eq 1`
13848 if expr a : '\(a\)' >/dev/null 2>&1 &&
13849 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13855 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13856 as_basename=basename
13861 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13867 as_me=`$as_basename -- "$0" ||
13868 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13869 X"$0" : 'X\(//\)$' \| \
13870 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13872 sed '/^.*\/\([^/][^/]*\)\/*$/{
13886 # Avoid depending upon Character Ranges.
13887 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13888 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13889 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13890 as_cr_digits='0123456789'
13891 as_cr_alnum=$as_cr_Letters$as_cr_digits
13893 ECHO_C= ECHO_N= ECHO_T=
13894 case `echo -n x` in #(((((
13896 case `echo 'xy\c'` in
13897 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13899 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13906 rm -f conf$$ conf$$.exe conf$$.file
13907 if test -d conf$$.dir; then
13908 rm -f conf$$.dir/conf$$.file
13911 mkdir conf$$.dir 2>/dev/null
13913 if (echo >conf$$.file) 2>/dev/null; then
13914 if ln -s conf$$.file conf$$ 2>/dev/null; then
13916 # ... but there are two gotchas:
13917 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13918 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13919 # In both cases, we have to default to `cp -pR'.
13920 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13922 elif ln conf$$.file conf$$ 2>/dev/null; then
13930 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13931 rmdir conf$$.dir 2>/dev/null
13936 # Create "$as_dir" as a directory, including parents if necessary.
13941 -*) as_dir=./$as_dir;;
13943 test -d "$as_dir" || eval $as_mkdir_p || {
13947 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13948 *) as_qdir=$as_dir;;
13950 as_dirs="'$as_qdir' $as_dirs"
13951 as_dir=`$as_dirname -- "$as_dir" ||
13952 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13953 X"$as_dir" : 'X\(//\)[^/]' \| \
13954 X"$as_dir" : 'X\(//\)$' \| \
13955 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13956 $as_echo X"$as_dir" |
13957 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13961 /^X\(\/\/\)[^/].*/{
13974 test -d "$as_dir" && break
13976 test -z "$as_dirs" || eval "mkdir $as_dirs"
13977 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13981 if mkdir -p . 2>/dev/null; then
13982 as_mkdir_p='mkdir -p "$as_dir"'
13984 test -d ./-p && rmdir ./-p
13989 # as_fn_executable_p FILE
13990 # -----------------------
13991 # Test if FILE is an executable regular file.
13992 as_fn_executable_p ()
13994 test -f "$1" && test -x "$1"
13995 } # as_fn_executable_p
13996 as_test_x='test -x'
13997 as_executable_p=as_fn_executable_p
13999 # Sed expression to map a string onto a valid CPP name.
14000 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14002 # Sed expression to map a string onto a valid variable name.
14003 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14007 ## ----------------------------------- ##
14008 ## Main body of $CONFIG_STATUS script. ##
14009 ## ----------------------------------- ##
14011 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14013 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14014 # Save the log message, to keep $0 and so on meaningful, and to
14015 # report actual input values of CONFIG_FILES etc. instead of their
14016 # values after options handling.
14018 This file was extended by $as_me, which was
14019 generated by GNU Autoconf 2.69. Invocation command line was
14021 CONFIG_FILES = $CONFIG_FILES
14022 CONFIG_HEADERS = $CONFIG_HEADERS
14023 CONFIG_LINKS = $CONFIG_LINKS
14024 CONFIG_COMMANDS = $CONFIG_COMMANDS
14027 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14032 case $ac_config_files in *"
14033 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14036 case $ac_config_headers in *"
14037 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14041 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14042 # Files that config.status was made for.
14043 config_files="$ac_config_files"
14044 config_headers="$ac_config_headers"
14045 config_commands="$ac_config_commands"
14049 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14051 \`$as_me' instantiates files and other configuration actions
14052 from templates according to the current configuration. Unless the files
14053 and actions are specified as TAGs, all are instantiated by default.
14055 Usage: $0 [OPTION]... [TAG]...
14057 -h, --help print this help, then exit
14058 -V, --version print version number and configuration settings, then exit
14059 --config print configuration, then exit
14060 -q, --quiet, --silent
14061 do not print progress messages
14062 -d, --debug don't remove temporary files
14063 --recheck update $as_me by reconfiguring in the same conditions
14064 --file=FILE[:TEMPLATE]
14065 instantiate the configuration file FILE
14066 --header=FILE[:TEMPLATE]
14067 instantiate the configuration header FILE
14069 Configuration files:
14072 Configuration headers:
14075 Configuration commands:
14078 Report bugs to the package provider."
14081 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14082 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14085 configured by $0, generated by GNU Autoconf 2.69,
14086 with options \\"\$ac_cs_config\\"
14088 Copyright (C) 2012 Free Software Foundation, Inc.
14089 This config.status script is free software; the Free Software Foundation
14090 gives unlimited permission to copy, distribute and modify it."
14097 test -n "\$AWK" || AWK=awk
14100 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14101 # The default lists apply if the user does not specify any file.
14107 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14108 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14112 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14124 # Handling of the options.
14125 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14127 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14128 $as_echo "$ac_cs_version"; exit ;;
14129 --config | --confi | --conf | --con | --co | --c )
14130 $as_echo "$ac_cs_config"; exit ;;
14131 --debug | --debu | --deb | --de | --d | -d )
14133 --file | --fil | --fi | --f )
14136 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14137 '') as_fn_error $? "missing file argument" ;;
14139 as_fn_append CONFIG_FILES " '$ac_optarg'"
14140 ac_need_defaults=false;;
14141 --header | --heade | --head | --hea )
14144 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14146 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14147 ac_need_defaults=false;;
14149 # Conflict between --help and --header
14150 as_fn_error $? "ambiguous option: \`$1'
14151 Try \`$0 --help' for more information.";;
14152 --help | --hel | -h )
14153 $as_echo "$ac_cs_usage"; exit ;;
14154 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14155 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14158 # This is an error.
14159 -*) as_fn_error $? "unrecognized option: \`$1'
14160 Try \`$0 --help' for more information." ;;
14162 *) as_fn_append ac_config_targets " $1"
14163 ac_need_defaults=false ;;
14169 ac_configure_extra_args=
14171 if $ac_cs_silent; then
14173 ac_configure_extra_args="$ac_configure_extra_args --silent"
14177 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14178 if \$ac_cs_recheck; then
14179 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14181 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14182 CONFIG_SHELL='$SHELL'
14183 export CONFIG_SHELL
14188 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14192 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14193 ## Running $as_me. ##
14199 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14203 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
14204 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
14205 # from automake < 1.5.
14206 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
14207 # Capture the value of LINGUAS because we need it to compute CATALOGS.
14208 LINGUAS="${LINGUAS-%UNSET%}"
14213 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14215 # Handling of arguments.
14216 for ac_config_target in $ac_config_targets
14218 case $ac_config_target in
14219 "lib/config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/config.h" ;;
14220 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
14221 "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;;
14223 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14228 # If the user did not use the arguments to specify the items to instantiate,
14229 # then the envvar interface is used. Set only those that are not.
14230 # We use the long form for the default assignment because of an extremely
14231 # bizarre bug on SunOS 4.1.3.
14232 if $ac_need_defaults; then
14233 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14234 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14235 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14238 # Have a temporary directory for convenience. Make it in the build tree
14239 # simply because there is no reason against having it here, and in addition,
14240 # creating and moving files from /tmp can sometimes cause problems.
14241 # Hook for its removal unless debugging.
14242 # Note that there is a small window in which the directory will not be cleaned:
14243 # after its creation but before its name has been assigned to `$tmp'.
14247 trap 'exit_status=$?
14248 : "${ac_tmp:=$tmp}"
14249 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
14251 trap 'as_fn_exit 1' 1 2 13 15
14253 # Create a (secure) tmp directory for tmp files.
14256 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14260 tmp=./conf$$-$RANDOM
14261 (umask 077 && mkdir "$tmp")
14262 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14265 # Set up the scripts for CONFIG_FILES section.
14266 # No need to generate them if there are no CONFIG_FILES.
14267 # This happens for instance with `./config.status config.h'.
14268 if test -n "$CONFIG_FILES"; then
14270 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
14271 ac_cs_awk_getline=:
14272 ac_cs_awk_pipe_init=
14273 ac_cs_awk_read_file='
14274 while ((getline aline < (F[key])) > 0)
14277 ac_cs_awk_pipe_fini=
14279 ac_cs_awk_getline=false
14280 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
14281 ac_cs_awk_read_file='
14283 print "cat " F[key] " &&"
14284 '$ac_cs_awk_pipe_init
14285 # The final `:' finishes the AND list.
14286 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
14288 ac_cr=`echo X | tr X '\015'`
14289 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14290 # But we know of no other shell where ac_cr would be empty at this
14291 # point, so we can use a bashism as a fallback.
14292 if test "x$ac_cr" = x; then
14293 eval ac_cr=\$\'\\r\'
14295 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14296 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14299 ac_cs_awk_cr=$ac_cr
14302 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
14305 # Create commands to substitute file output variables.
14307 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
14308 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
14309 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
14312 } >conf$$files.sh &&
14313 . ./conf$$files.sh ||
14314 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14315 rm -f conf$$files.sh
14318 echo "cat >conf$$subs.awk <<_ACEOF" &&
14319 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14321 } >conf$$subs.sh ||
14322 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14323 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14325 for ac_last_try in false false false false false :; do
14326 . ./conf$$subs.sh ||
14327 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14329 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14330 if test $ac_delim_n = $ac_delim_num; then
14332 elif $ac_last_try; then
14333 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14335 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14338 rm -f conf$$subs.sh
14340 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14341 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14345 s/^/S["/; s/!.*/"]=/
14355 s/\(.\{148\}\)..*/\1/
14357 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14362 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14369 s/\(.\{148\}\)..*/\1/
14371 s/["\\]/\\&/g; s/^/"/; s/$/"/
14375 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14380 ' <conf$$subs.awk | sed '
14385 ' >>$CONFIG_STATUS || ac_write_fail=1
14386 rm -f conf$$subs.awk
14387 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14389 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14390 for (key in S) S_is_set[key] = 1
14392 \$ac_cs_awk_pipe_init
14396 nfields = split(line, field, "@")
14398 len = length(field[1])
14399 for (i = 2; i < nfields; i++) {
14401 keylen = length(key)
14402 if (S_is_set[key]) {
14404 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14405 len += length(value) + length(field[++i])
14410 if (nfields == 3 && !substed) {
14412 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
14413 \$ac_cs_awk_read_file
14419 \$ac_cs_awk_pipe_fini
14422 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14423 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14424 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14427 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14428 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14431 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14432 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14433 # trailing colons and then remove the whole line if VPATH becomes empty
14434 # (actually we leave an empty line to preserve line numbers).
14435 if test "x$srcdir" = x.; then
14436 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
14454 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14455 fi # test -n "$CONFIG_FILES"
14457 # Set up the scripts for CONFIG_HEADERS section.
14458 # No need to generate them if there are no CONFIG_HEADERS.
14459 # This happens for instance with `./config.status Makefile'.
14460 if test -n "$CONFIG_HEADERS"; then
14461 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
14465 # Transform confdefs.h into an awk script `defines.awk', embedded as
14466 # here-document in config.status, that substitutes the proper values into
14467 # config.h.in to produce config.h.
14469 # Create a delimiter string that does not exist in confdefs.h, to ease
14470 # handling of long lines.
14472 for ac_last_try in false false :; do
14473 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14474 if test -z "$ac_tt"; then
14476 elif $ac_last_try; then
14477 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14479 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14483 # For the awk script, D is an array of macro values keyed by name,
14484 # likewise P contains macro parameters if any. Preserve backslash
14485 # newline sequences.
14487 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14489 s/.\{148\}/&'"$ac_delim"'/g
14492 s/^[ ]*#[ ]*define[ ][ ]*/ /
14499 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14501 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14505 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14506 D["\1"]=" \3\\\\\\n"\\/p
14508 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14513 s/.\{148\}/&'"$ac_delim"'/g
14518 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14521 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14523 ' <confdefs.h | sed '
14524 s/'"$ac_delim"'/"\\\
14525 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14527 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14528 for (key in D) D_is_set[key] = 1
14531 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14533 split(line, arg, " ")
14534 if (arg[1] == "#") {
14538 defundef = substr(arg[1], 2)
14541 split(mac1, mac2, "(") #)
14543 prefix = substr(line, 1, index(line, defundef) - 1)
14544 if (D_is_set[macro]) {
14545 # Preserve the white space surrounding the "#".
14546 print prefix "define", macro P[macro] D[macro]
14549 # Replace #undef with comments. This is necessary, for example,
14550 # in the case of _POSIX_SOURCE, which is predefined and required
14551 # on some systems where configure will not decide to define it.
14552 if (defundef == "undef") {
14553 print "/*", prefix defundef, macro, "*/"
14561 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14562 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14563 fi # test -n "$CONFIG_HEADERS"
14566 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14571 :[FHLC]) ac_mode=$ac_tag; continue;;
14573 case $ac_mode$ac_tag in
14575 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14576 :[FH]-) ac_tag=-:-;;
14577 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14594 -) ac_f="$ac_tmp/stdin";;
14595 *) # Look for the file first in the build tree, then in the source tree
14596 # (if the path is not absolute). The absolute path cannot be DOS-style,
14597 # because $ac_f cannot contain `:'.
14601 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14603 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14605 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14606 as_fn_append ac_file_inputs " '$ac_f'"
14609 # Let's still pretend it is `configure' which instantiates (i.e., don't
14610 # use $as_me), people would be surprised to read:
14611 # /* config.h. Generated by config.status. */
14612 configure_input='Generated from '`
14613 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14615 if test x"$ac_file" != x-; then
14616 configure_input="$ac_file. $configure_input"
14617 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14618 $as_echo "$as_me: creating $ac_file" >&6;}
14620 # Neutralize special characters interpreted by sed in replacement strings.
14621 case $configure_input in #(
14622 *\&* | *\|* | *\\* )
14623 ac_sed_conf_input=`$as_echo "$configure_input" |
14624 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14625 *) ac_sed_conf_input=$configure_input;;
14629 *:-:* | *:-) cat >"$ac_tmp/stdin" \
14630 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14635 ac_dir=`$as_dirname -- "$ac_file" ||
14636 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14637 X"$ac_file" : 'X\(//\)[^/]' \| \
14638 X"$ac_file" : 'X\(//\)$' \| \
14639 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14640 $as_echo X"$ac_file" |
14641 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14645 /^X\(\/\/\)[^/].*/{
14658 as_dir="$ac_dir"; as_fn_mkdir_p
14662 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14664 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14665 # A ".." for each directory in $ac_dir_suffix.
14666 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14667 case $ac_top_builddir_sub in
14668 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14669 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14672 ac_abs_top_builddir=$ac_pwd
14673 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14674 # for backward compatibility:
14675 ac_top_builddir=$ac_top_build_prefix
14678 .) # We are building in place.
14680 ac_top_srcdir=$ac_top_builddir_sub
14681 ac_abs_top_srcdir=$ac_pwd ;;
14682 [\\/]* | ?:[\\/]* ) # Absolute name.
14683 ac_srcdir=$srcdir$ac_dir_suffix;
14684 ac_top_srcdir=$srcdir
14685 ac_abs_top_srcdir=$srcdir ;;
14686 *) # Relative name.
14687 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14688 ac_top_srcdir=$ac_top_build_prefix$srcdir
14689 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14691 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14701 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14702 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14704 ac_MKDIR_P=$MKDIR_P
14706 [\\/$]* | ?:[\\/]* ) ;;
14707 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14711 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14712 # If the template does not know about datarootdir, expand it.
14713 # FIXME: This hack should be removed a few years after 2.60.
14714 ac_datarootdir_hack=; ac_datarootdir_seen=
14725 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14726 *datarootdir*) ac_datarootdir_seen=yes;;
14727 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14728 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14729 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14731 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14732 ac_datarootdir_hack='
14733 s&@datadir@&$datadir&g
14734 s&@docdir@&$docdir&g
14735 s&@infodir@&$infodir&g
14736 s&@localedir@&$localedir&g
14737 s&@mandir@&$mandir&g
14738 s&\\\${datarootdir}&$datarootdir&g' ;;
14742 # Neutralize VPATH when `$srcdir' = `.'.
14743 # Shell code in configure.ac might set extrasub.
14744 # FIXME: do we really want to maintain this feature?
14745 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14746 ac_sed_extra="$ac_vpsub
14749 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14751 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14752 s|@configure_input@|$ac_sed_conf_input|;t t
14753 s&@top_builddir@&$ac_top_builddir_sub&;t t
14754 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14755 s&@srcdir@&$ac_srcdir&;t t
14756 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14757 s&@top_srcdir@&$ac_top_srcdir&;t t
14758 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14759 s&@builddir@&$ac_builddir&;t t
14760 s&@abs_builddir@&$ac_abs_builddir&;t t
14761 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14762 s&@INSTALL@&$ac_INSTALL&;t t
14763 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14764 $ac_datarootdir_hack
14766 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
14767 if $ac_cs_awk_getline; then
14768 $AWK -f "$ac_tmp/subs.awk"
14770 $AWK -f "$ac_tmp/subs.awk" | $SHELL
14772 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14774 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14775 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14776 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
14777 "$ac_tmp/out"`; test -z "$ac_out"; } &&
14778 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14779 which seems to be undefined. Please make sure it is defined" >&5
14780 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14781 which seems to be undefined. Please make sure it is defined" >&2;}
14783 rm -f "$ac_tmp/stdin"
14785 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14786 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14788 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14794 if test x"$ac_file" != x-; then
14796 $as_echo "/* $configure_input */" \
14797 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14798 } >"$ac_tmp/config.h" \
14799 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14800 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14801 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14802 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14805 mv "$ac_tmp/config.h" "$ac_file" \
14806 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14809 $as_echo "/* $configure_input */" \
14810 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14811 || as_fn_error $? "could not create -" "$LINENO" 5
14815 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14816 $as_echo "$as_me: executing $ac_file commands" >&6;}
14821 case $ac_file$ac_mode in
14822 "po-directories":C)
14823 for ac_file in $CONFIG_FILES; do
14824 # Support "outfile[:infile[:infile...]]"
14826 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
14828 # PO directories have a Makefile.in generated from Makefile.in.in.
14829 case "$ac_file" in */Makefile.in)
14830 # Adjust a relative srcdir.
14831 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
14832 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
14833 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
14834 # In autoconf-2.13 it is called $ac_given_srcdir.
14835 # In autoconf-2.50 it is called $srcdir.
14836 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
14837 case "$ac_given_srcdir" in
14838 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
14839 /*) top_srcdir="$ac_given_srcdir" ;;
14840 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
14842 # Treat a directory as a PO directory if and only if it has a
14843 # POTFILES.in file. This allows packages to have multiple PO
14844 # directories under different names or in different locations.
14845 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
14846 rm -f "$ac_dir/POTFILES"
14847 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
14848 gt_tab=`printf '\t'`
14849 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"
14850 POMAKEFILEDEPS="POTFILES.in"
14851 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
14852 # on $ac_dir but don't depend on user-specified configuration
14854 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
14855 # The LINGUAS file contains the set of available languages.
14856 if test -n "$OBSOLETE_ALL_LINGUAS"; then
14857 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
14859 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
14860 # Hide the ALL_LINGUAS assignment from automake < 1.5.
14861 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
14862 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
14864 # The set of available languages was given in configure.in.
14865 # Hide the ALL_LINGUAS assignment from automake < 1.5.
14866 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
14869 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
14870 # Compute UPDATEPOFILES
14871 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
14872 # Compute DUMMYPOFILES
14873 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
14875 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
14876 case "$ac_given_srcdir" in
14878 *) srcdirpre='$(srcdir)/' ;;
14884 for lang in $ALL_LINGUAS; do
14885 POFILES="$POFILES $srcdirpre$lang.po"
14886 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
14887 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
14888 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
14890 # CATALOGS depends on both $ac_dir and the user's LINGUAS
14891 # environment variable.
14893 if test -n "$ALL_LINGUAS"; then
14894 for presentlang in $ALL_LINGUAS; do
14896 if test "%UNSET%" != "$LINGUAS"; then
14897 desiredlanguages="$LINGUAS"
14899 desiredlanguages="$ALL_LINGUAS"
14901 for desiredlang in $desiredlanguages; do
14902 # Use the presentlang catalog if desiredlang is
14903 # a. equal to presentlang, or
14904 # b. a variant of presentlang (because in this case,
14905 # presentlang can be used as a fallback for messages
14906 # which are not translated in the desiredlang catalog).
14907 case "$desiredlang" in
14908 "$presentlang"*) useit=yes;;
14911 if test $useit = yes; then
14912 INST_LINGUAS="$INST_LINGUAS $presentlang"
14917 if test -n "$INST_LINGUAS"; then
14918 for lang in $INST_LINGUAS; do
14919 CATALOGS="$CATALOGS $lang.gmo"
14922 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
14923 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"
14924 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
14925 if test -f "$f"; then
14927 *.orig | *.bak | *~) ;;
14928 *) cat "$f" >> "$ac_dir/Makefile" ;;
14943 ac_clean_files=$ac_clean_files_save
14945 test $ac_write_fail = 0 ||
14946 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
14949 # configure is writing to config.log, and then calls config.status.
14950 # config.status does its own redirection, appending to config.log.
14951 # Unfortunately, on DOS this fails, as config.log is still kept open
14952 # by configure, so config.status won't be able to write to it; its
14953 # output is simply discarded. So we exec the FD to /dev/null,
14954 # effectively closing config.log, so it can be properly (re)opened and
14955 # appended to by config.status. When coming back to configure, we
14956 # need to make the FD available again.
14957 if test "$no_create" != yes; then
14959 ac_config_status_args=
14960 test "$silent" = yes &&
14961 ac_config_status_args="$ac_config_status_args --quiet"
14963 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14965 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14966 # would make configure fail if this is the last instruction.
14967 $ac_cs_success || as_fn_exit 1
14969 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14970 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14971 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14974 if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi