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
684 INTL_LIBTOOL_SUFFIX_PREFIX
691 BUILD_INCLUDED_LIBINTL
701 INTL_DEFAULT_VERBOSITY
720 XGETTEXT_EXTRA_OPTIONS
728 GETTEXT_MACRO_VERSION
837 program_transform_name
848 ac_subst_files='MCONFIG
854 PUBLIC_CONFIG_HEADER'
856 enable_option_checking
862 enable_maintainer_mode
863 enable_symlink_install
864 enable_relative_symlinks
865 enable_symlink_relative_symlinks
867 enable_verbose_makecmds
884 enable_e2initrd_helper
890 enable_bmap_stats_ops
897 with_included_gettext
903 ac_precious_vars='build_alias
919 # Initialize some variables set by options.
921 ac_init_version=false
922 ac_unrecognized_opts=
924 # The variables have the same names as the options, with
925 # dashes changed to underlines.
933 program_transform_name=s,x,x,
941 # Installation directory options.
942 # These are left unexpanded so users can "make install exec_prefix=/foo"
943 # and all the variables that are supposed to be based on exec_prefix
944 # by default will actually change.
945 # Use braces instead of parens because sh, perl, etc. also accept them.
946 # (The list follows the same order as the GNU Coding Standards.)
947 bindir='${exec_prefix}/bin'
948 sbindir='${exec_prefix}/sbin'
949 libexecdir='${exec_prefix}/libexec'
950 datarootdir='${prefix}/share'
951 datadir='${datarootdir}'
952 sysconfdir='${prefix}/etc'
953 sharedstatedir='${prefix}/com'
954 localstatedir='${prefix}/var'
955 runstatedir='${localstatedir}/run'
956 includedir='${prefix}/include'
957 oldincludedir='/usr/include'
958 docdir='${datarootdir}/doc/${PACKAGE}'
959 infodir='${datarootdir}/info'
964 libdir='${exec_prefix}/lib'
965 localedir='${datarootdir}/locale'
966 mandir='${datarootdir}/man'
972 # If the previous option needs an argument, assign it.
973 if test -n "$ac_prev"; then
974 eval $ac_prev=\$ac_option
980 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
985 # Accept the important Cygnus configure options, so we can diagnose typos.
987 case $ac_dashdash$ac_option in
991 -bindir | --bindir | --bindi | --bind | --bin | --bi)
993 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
996 -build | --build | --buil | --bui | --bu)
997 ac_prev=build_alias ;;
998 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
999 build_alias=$ac_optarg ;;
1001 -cache-file | --cache-file | --cache-fil | --cache-fi \
1002 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1003 ac_prev=cache_file ;;
1004 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1005 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1006 cache_file=$ac_optarg ;;
1008 --config-cache | -C)
1009 cache_file=config.cache ;;
1011 -datadir | --datadir | --datadi | --datad)
1013 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1014 datadir=$ac_optarg ;;
1016 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1017 | --dataroo | --dataro | --datar)
1018 ac_prev=datarootdir ;;
1019 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1020 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1021 datarootdir=$ac_optarg ;;
1023 -disable-* | --disable-*)
1024 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1025 # Reject names that are not valid shell variable names.
1026 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1027 as_fn_error $? "invalid feature name: $ac_useropt"
1028 ac_useropt_orig=$ac_useropt
1029 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1030 case $ac_user_opts in
1032 "enable_$ac_useropt"
1034 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1035 ac_unrecognized_sep=', ';;
1037 eval enable_$ac_useropt=no ;;
1039 -docdir | --docdir | --docdi | --doc | --do)
1041 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1042 docdir=$ac_optarg ;;
1044 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1046 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1047 dvidir=$ac_optarg ;;
1049 -enable-* | --enable-*)
1050 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1051 # Reject names that are not valid shell variable names.
1052 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1053 as_fn_error $? "invalid feature name: $ac_useropt"
1054 ac_useropt_orig=$ac_useropt
1055 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1056 case $ac_user_opts in
1058 "enable_$ac_useropt"
1060 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1061 ac_unrecognized_sep=', ';;
1063 eval enable_$ac_useropt=\$ac_optarg ;;
1065 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1066 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1067 | --exec | --exe | --ex)
1068 ac_prev=exec_prefix ;;
1069 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1070 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1071 | --exec=* | --exe=* | --ex=*)
1072 exec_prefix=$ac_optarg ;;
1074 -gas | --gas | --ga | --g)
1075 # Obsolete; use --with-gas.
1078 -help | --help | --hel | --he | -h)
1079 ac_init_help=long ;;
1080 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1081 ac_init_help=recursive ;;
1082 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1083 ac_init_help=short ;;
1085 -host | --host | --hos | --ho)
1086 ac_prev=host_alias ;;
1087 -host=* | --host=* | --hos=* | --ho=*)
1088 host_alias=$ac_optarg ;;
1090 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1092 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1094 htmldir=$ac_optarg ;;
1096 -includedir | --includedir | --includedi | --included | --include \
1097 | --includ | --inclu | --incl | --inc)
1098 ac_prev=includedir ;;
1099 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1100 | --includ=* | --inclu=* | --incl=* | --inc=*)
1101 includedir=$ac_optarg ;;
1103 -infodir | --infodir | --infodi | --infod | --info | --inf)
1105 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1106 infodir=$ac_optarg ;;
1108 -libdir | --libdir | --libdi | --libd)
1110 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1111 libdir=$ac_optarg ;;
1113 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1114 | --libexe | --libex | --libe)
1115 ac_prev=libexecdir ;;
1116 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1117 | --libexe=* | --libex=* | --libe=*)
1118 libexecdir=$ac_optarg ;;
1120 -localedir | --localedir | --localedi | --localed | --locale)
1121 ac_prev=localedir ;;
1122 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1123 localedir=$ac_optarg ;;
1125 -localstatedir | --localstatedir | --localstatedi | --localstated \
1126 | --localstate | --localstat | --localsta | --localst | --locals)
1127 ac_prev=localstatedir ;;
1128 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1129 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1130 localstatedir=$ac_optarg ;;
1132 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1134 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1135 mandir=$ac_optarg ;;
1137 -nfp | --nfp | --nf)
1138 # Obsolete; use --without-fp.
1141 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1142 | --no-cr | --no-c | -n)
1145 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1146 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1149 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1150 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1151 | --oldin | --oldi | --old | --ol | --o)
1152 ac_prev=oldincludedir ;;
1153 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1154 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1155 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1156 oldincludedir=$ac_optarg ;;
1158 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1160 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1161 prefix=$ac_optarg ;;
1163 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1164 | --program-pre | --program-pr | --program-p)
1165 ac_prev=program_prefix ;;
1166 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1167 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1168 program_prefix=$ac_optarg ;;
1170 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1171 | --program-suf | --program-su | --program-s)
1172 ac_prev=program_suffix ;;
1173 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1174 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1175 program_suffix=$ac_optarg ;;
1177 -program-transform-name | --program-transform-name \
1178 | --program-transform-nam | --program-transform-na \
1179 | --program-transform-n | --program-transform- \
1180 | --program-transform | --program-transfor \
1181 | --program-transfo | --program-transf \
1182 | --program-trans | --program-tran \
1183 | --progr-tra | --program-tr | --program-t)
1184 ac_prev=program_transform_name ;;
1185 -program-transform-name=* | --program-transform-name=* \
1186 | --program-transform-nam=* | --program-transform-na=* \
1187 | --program-transform-n=* | --program-transform-=* \
1188 | --program-transform=* | --program-transfor=* \
1189 | --program-transfo=* | --program-transf=* \
1190 | --program-trans=* | --program-tran=* \
1191 | --progr-tra=* | --program-tr=* | --program-t=*)
1192 program_transform_name=$ac_optarg ;;
1194 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1196 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1197 pdfdir=$ac_optarg ;;
1199 -psdir | --psdir | --psdi | --psd | --ps)
1201 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1204 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1205 | -silent | --silent | --silen | --sile | --sil)
1208 -runstatedir | --runstatedir | --runstatedi | --runstated \
1209 | --runstate | --runstat | --runsta | --runst | --runs \
1210 | --run | --ru | --r)
1211 ac_prev=runstatedir ;;
1212 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1213 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1214 | --run=* | --ru=* | --r=*)
1215 runstatedir=$ac_optarg ;;
1217 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1219 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1221 sbindir=$ac_optarg ;;
1223 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1224 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1225 | --sharedst | --shareds | --shared | --share | --shar \
1227 ac_prev=sharedstatedir ;;
1228 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1229 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1230 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1232 sharedstatedir=$ac_optarg ;;
1234 -site | --site | --sit)
1236 -site=* | --site=* | --sit=*)
1239 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1241 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1242 srcdir=$ac_optarg ;;
1244 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1245 | --syscon | --sysco | --sysc | --sys | --sy)
1246 ac_prev=sysconfdir ;;
1247 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1248 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1249 sysconfdir=$ac_optarg ;;
1251 -target | --target | --targe | --targ | --tar | --ta | --t)
1252 ac_prev=target_alias ;;
1253 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1254 target_alias=$ac_optarg ;;
1256 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1259 -version | --version | --versio | --versi | --vers | -V)
1260 ac_init_version=: ;;
1263 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1264 # Reject names that are not valid shell variable names.
1265 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1266 as_fn_error $? "invalid package name: $ac_useropt"
1267 ac_useropt_orig=$ac_useropt
1268 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1269 case $ac_user_opts in
1273 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1274 ac_unrecognized_sep=', ';;
1276 eval with_$ac_useropt=\$ac_optarg ;;
1278 -without-* | --without-*)
1279 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1280 # Reject names that are not valid shell variable names.
1281 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1282 as_fn_error $? "invalid package name: $ac_useropt"
1283 ac_useropt_orig=$ac_useropt
1284 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1285 case $ac_user_opts in
1289 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1290 ac_unrecognized_sep=', ';;
1292 eval with_$ac_useropt=no ;;
1295 # Obsolete; use --with-x.
1298 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1299 | --x-incl | --x-inc | --x-in | --x-i)
1300 ac_prev=x_includes ;;
1301 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1302 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1303 x_includes=$ac_optarg ;;
1305 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1306 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1307 ac_prev=x_libraries ;;
1308 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1309 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1310 x_libraries=$ac_optarg ;;
1312 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1313 Try \`$0 --help' for more information"
1317 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1318 # Reject names that are not valid shell variable names.
1319 case $ac_envvar in #(
1320 '' | [0-9]* | *[!_$as_cr_alnum]* )
1321 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1323 eval $ac_envvar=\$ac_optarg
1324 export $ac_envvar ;;
1327 # FIXME: should be removed in autoconf 3.0.
1328 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1329 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1330 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1331 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1337 if test -n "$ac_prev"; then
1338 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1339 as_fn_error $? "missing argument to $ac_option"
1342 if test -n "$ac_unrecognized_opts"; then
1343 case $enable_option_checking in
1345 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1346 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1350 # Check all directory arguments for consistency.
1351 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1352 datadir sysconfdir sharedstatedir localstatedir includedir \
1353 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1354 libdir localedir mandir runstatedir
1356 eval ac_val=\$$ac_var
1357 # Remove trailing slashes.
1360 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1361 eval $ac_var=\$ac_val;;
1363 # Be sure to have absolute directory names.
1365 [\\/$]* | ?:[\\/]* ) continue;;
1366 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1368 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1371 # There might be people who depend on the old broken behavior: `$host'
1372 # used to hold the argument of --host etc.
1373 # FIXME: To remove some day.
1376 target=$target_alias
1378 # FIXME: To remove some day.
1379 if test "x$host_alias" != x; then
1380 if test "x$build_alias" = x; then
1381 cross_compiling=maybe
1382 elif test "x$build_alias" != "x$host_alias"; then
1388 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1390 test "$silent" = yes && exec 6>/dev/null
1393 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1394 ac_ls_di=`ls -di .` &&
1395 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1396 as_fn_error $? "working directory cannot be determined"
1397 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1398 as_fn_error $? "pwd does not report name of working directory"
1401 # Find the source files, if location was not specified.
1402 if test -z "$srcdir"; then
1403 ac_srcdir_defaulted=yes
1404 # Try the directory containing this script, then the parent directory.
1405 ac_confdir=`$as_dirname -- "$as_myself" ||
1406 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1407 X"$as_myself" : 'X\(//\)[^/]' \| \
1408 X"$as_myself" : 'X\(//\)$' \| \
1409 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1410 $as_echo X"$as_myself" |
1411 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1429 if test ! -r "$srcdir/$ac_unique_file"; then
1433 ac_srcdir_defaulted=no
1435 if test ! -r "$srcdir/$ac_unique_file"; then
1436 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1437 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1439 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1441 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1443 # When building in place, set srcdir=.
1444 if test "$ac_abs_confdir" = "$ac_pwd"; then
1447 # Remove unnecessary trailing slashes from srcdir.
1448 # Double slashes in file names in object file debugging info
1449 # mess up M-x gdb in Emacs.
1451 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1453 for ac_var in $ac_precious_vars; do
1454 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1455 eval ac_env_${ac_var}_value=\$${ac_var}
1456 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1457 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1461 # Report the --help message.
1463 if test "$ac_init_help" = "long"; then
1464 # Omit some internal or obsolete options to make the list less imposing.
1465 # This message is too long to be a string in the A/UX 3.1 sh.
1467 \`configure' configures this package to adapt to many kinds of systems.
1469 Usage: $0 [OPTION]... [VAR=VALUE]...
1471 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1472 VAR=VALUE. See below for descriptions of some of the useful variables.
1474 Defaults for the options are specified in brackets.
1477 -h, --help display this help and exit
1478 --help=short display options specific to this package
1479 --help=recursive display the short help of all the included packages
1480 -V, --version display version information and exit
1481 -q, --quiet, --silent do not print \`checking ...' messages
1482 --cache-file=FILE cache test results in FILE [disabled]
1483 -C, --config-cache alias for \`--cache-file=config.cache'
1484 -n, --no-create do not create output files
1485 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1487 Installation directories:
1488 --prefix=PREFIX install architecture-independent files in PREFIX
1489 [$ac_default_prefix]
1490 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1493 By default, \`make install' will install all the files in
1494 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1495 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1496 for instance \`--prefix=\$HOME'.
1498 For better control, use the options below.
1500 Fine tuning of the installation directories:
1501 --bindir=DIR user executables [EPREFIX/bin]
1502 --sbindir=DIR system admin executables [EPREFIX/sbin]
1503 --libexecdir=DIR program executables [EPREFIX/libexec]
1504 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1505 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1506 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1507 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1508 --libdir=DIR object code libraries [EPREFIX/lib]
1509 --includedir=DIR C header files [PREFIX/include]
1510 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1511 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1512 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1513 --infodir=DIR info documentation [DATAROOTDIR/info]
1514 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1515 --mandir=DIR man documentation [DATAROOTDIR/man]
1516 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1517 --htmldir=DIR html documentation [DOCDIR]
1518 --dvidir=DIR dvi documentation [DOCDIR]
1519 --pdfdir=DIR pdf documentation [DOCDIR]
1520 --psdir=DIR ps documentation [DOCDIR]
1526 --build=BUILD configure for building on BUILD [guessed]
1527 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1531 if test -n "$ac_init_help"; then
1536 --disable-option-checking ignore unrecognized --enable/--with options
1537 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1538 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1539 --enable-maintainer-mode enable makefile rules useful for maintainers
1540 --enable-symlink-install use symlinks when installing instead of hard links
1541 --enable-relative-symlinks use relative symlinks when installing
1543 --enable-symlink-build use symlinks while building instead of hard links
1544 --enable-verbose-makecmds enable verbose make command output
1545 --enable-elf-shlibs select ELF shared libraries
1546 --enable-bsd-shlibs select BSD shared libraries
1547 --enable-profile build profiling libraries
1548 --enable-gcov build for coverage testing using gcov
1549 --enable-hardening build for coverage testing using gcov
1550 --enable-jbd-debug enable journal debugging
1551 --enable-blkid-debug enable blkid debugging
1552 --disable-testio-debug disable the use of the test I/O manager for debugging
1553 --enable-libuuid build and use private uuid library
1554 --enable-libblkid build and use private blkid library
1555 --disable-backtrace disable use backtrace
1556 --disable-debugfs disable support of debugfs program
1557 --disable-imager disable support of e2image program
1558 --disable-resizer disable support of e2resize program
1559 --disable-defrag disable support of e4defrag program
1560 --enable-fsck build fsck wrapper program
1561 --enable-e2initrd-helper build e2initrd-helper program
1562 --disable-tls disable use of thread local support
1563 --disable-uuidd disable building the uuid daemon
1564 --disable-mmp disable support mmp, Multi Mount Protection
1565 --disable-tdb disable tdb support
1566 --disable-bmap-stats disable collection of bitmap stats.
1567 --enable-bmap-stats-ops enable collection of additional bitmap stats
1568 --disable-nls do not use Native Language Support
1569 --enable-threads={posix|solaris|pth|windows}
1570 specify multithreading API
1571 --disable-threads build without multithread safety
1572 --disable-rpath do not hardcode runtime library paths
1573 --disable-fuse2fs do not build fuse2fs
1576 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1577 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1578 --with-diet-libc use diet libc
1579 --with-cc no longer supported, use CC= instead
1580 --with-ccopts no longer supported, use CFLAGS= instead
1581 --with-ldopts no longer supported, use LDFLAGS= instead
1582 --with-root-prefix=PREFIX override prefix variable for files to be placed in the root
1583 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1584 --with-libpth-prefix[=DIR] search for libpth in DIR/include and DIR/lib
1585 --without-libpth-prefix don't search for libpth in includedir and libdir
1586 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1587 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1588 --with-included-gettext use the GNU gettext library included here
1589 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1590 --without-libintl-prefix don't search for libintl in includedir and libdir
1591 --with-multiarch=ARCH specify the multiarch triplet
1592 --with-udev-rules-dir[=DIR]
1593 Install udev rules into DIR.
1595 Some influential environment variables:
1596 CC C compiler command
1597 CFLAGS C compiler flags
1598 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1599 nonstandard directory <lib dir>
1600 LIBS libraries to pass to the linker, e.g. -l<library>
1601 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1602 you have headers in a nonstandard directory <include dir>
1604 PKG_CONFIG path to pkg-config utility
1606 directories to add to pkg-config's search path
1608 path overriding pkg-config's built-in search path
1609 udev_CFLAGS C compiler flags for udev, overriding pkg-config
1610 udev_LIBS linker flags for udev, overriding pkg-config
1612 Use these variables to override the choices made by `configure' or to help
1613 it to find libraries and programs with nonstandard names/locations.
1615 Report bugs to the package provider.
1620 if test "$ac_init_help" = "recursive"; then
1621 # If there are subdirs, report their specific --help.
1622 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1623 test -d "$ac_dir" ||
1624 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1629 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1631 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1632 # A ".." for each directory in $ac_dir_suffix.
1633 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1634 case $ac_top_builddir_sub in
1635 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1636 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1639 ac_abs_top_builddir=$ac_pwd
1640 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1641 # for backward compatibility:
1642 ac_top_builddir=$ac_top_build_prefix
1645 .) # We are building in place.
1647 ac_top_srcdir=$ac_top_builddir_sub
1648 ac_abs_top_srcdir=$ac_pwd ;;
1649 [\\/]* | ?:[\\/]* ) # Absolute name.
1650 ac_srcdir=$srcdir$ac_dir_suffix;
1651 ac_top_srcdir=$srcdir
1652 ac_abs_top_srcdir=$srcdir ;;
1654 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1655 ac_top_srcdir=$ac_top_build_prefix$srcdir
1656 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1658 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1660 cd "$ac_dir" || { ac_status=$?; continue; }
1661 # Check for guested configure.
1662 if test -f "$ac_srcdir/configure.gnu"; then
1664 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1665 elif test -f "$ac_srcdir/configure"; then
1667 $SHELL "$ac_srcdir/configure" --help=recursive
1669 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1671 cd "$ac_pwd" || { ac_status=$?; break; }
1675 test -n "$ac_init_help" && exit $ac_status
1676 if $ac_init_version; then
1679 generated by GNU Autoconf 2.69
1681 Copyright (C) 2012 Free Software Foundation, Inc.
1682 This configure script is free software; the Free Software Foundation
1683 gives unlimited permission to copy, distribute and modify it.
1688 ## ------------------------ ##
1689 ## Autoconf initialization. ##
1690 ## ------------------------ ##
1692 # ac_fn_c_try_compile LINENO
1693 # --------------------------
1694 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1695 ac_fn_c_try_compile ()
1697 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1698 rm -f conftest.$ac_objext
1699 if { { ac_try="$ac_compile"
1701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1702 *) ac_try_echo=$ac_try;;
1704 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1705 $as_echo "$ac_try_echo"; } >&5
1706 (eval "$ac_compile") 2>conftest.err
1708 if test -s conftest.err; then
1709 grep -v '^ *+' conftest.err >conftest.er1
1710 cat conftest.er1 >&5
1711 mv -f conftest.er1 conftest.err
1713 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1714 test $ac_status = 0; } && {
1715 test -z "$ac_c_werror_flag" ||
1716 test ! -s conftest.err
1717 } && test -s conftest.$ac_objext; then :
1720 $as_echo "$as_me: failed program was:" >&5
1721 sed 's/^/| /' conftest.$ac_ext >&5
1725 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1726 as_fn_set_status $ac_retval
1728 } # ac_fn_c_try_compile
1730 # ac_fn_c_try_link LINENO
1731 # -----------------------
1732 # Try to link conftest.$ac_ext, and return whether this succeeded.
1735 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1736 rm -f conftest.$ac_objext conftest$ac_exeext
1737 if { { ac_try="$ac_link"
1739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1740 *) ac_try_echo=$ac_try;;
1742 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1743 $as_echo "$ac_try_echo"; } >&5
1744 (eval "$ac_link") 2>conftest.err
1746 if test -s conftest.err; then
1747 grep -v '^ *+' conftest.err >conftest.er1
1748 cat conftest.er1 >&5
1749 mv -f conftest.er1 conftest.err
1751 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1752 test $ac_status = 0; } && {
1753 test -z "$ac_c_werror_flag" ||
1754 test ! -s conftest.err
1755 } && test -s conftest$ac_exeext && {
1756 test "$cross_compiling" = yes ||
1757 test -x conftest$ac_exeext
1761 $as_echo "$as_me: failed program was:" >&5
1762 sed 's/^/| /' conftest.$ac_ext >&5
1766 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1767 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1768 # interfere with the next link command; also delete a directory that is
1769 # left behind by Apple's compiler. We do this before executing the actions.
1770 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1771 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1772 as_fn_set_status $ac_retval
1774 } # ac_fn_c_try_link
1776 # ac_fn_c_try_cpp LINENO
1777 # ----------------------
1778 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1781 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1782 if { { ac_try="$ac_cpp conftest.$ac_ext"
1784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1785 *) ac_try_echo=$ac_try;;
1787 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1788 $as_echo "$ac_try_echo"; } >&5
1789 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1791 if test -s conftest.err; then
1792 grep -v '^ *+' conftest.err >conftest.er1
1793 cat conftest.er1 >&5
1794 mv -f conftest.er1 conftest.err
1796 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1797 test $ac_status = 0; } > conftest.i && {
1798 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1799 test ! -s conftest.err
1803 $as_echo "$as_me: failed program was:" >&5
1804 sed 's/^/| /' conftest.$ac_ext >&5
1808 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1809 as_fn_set_status $ac_retval
1813 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1814 # -------------------------------------------------------
1815 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1816 # the include files in INCLUDES and setting the cache variable VAR
1818 ac_fn_c_check_header_mongrel ()
1820 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1821 if eval \${$3+:} false; then :
1822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1823 $as_echo_n "checking for $2... " >&6; }
1824 if eval \${$3+:} false; then :
1825 $as_echo_n "(cached) " >&6
1828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1829 $as_echo "$ac_res" >&6; }
1831 # Is the header compilable?
1832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1833 $as_echo_n "checking $2 usability... " >&6; }
1834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1835 /* end confdefs.h. */
1839 if ac_fn_c_try_compile "$LINENO"; then :
1840 ac_header_compiler=yes
1842 ac_header_compiler=no
1844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1846 $as_echo "$ac_header_compiler" >&6; }
1848 # Is the header present?
1849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1850 $as_echo_n "checking $2 presence... " >&6; }
1851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1852 /* end confdefs.h. */
1855 if ac_fn_c_try_cpp "$LINENO"; then :
1856 ac_header_preproc=yes
1858 ac_header_preproc=no
1860 rm -f conftest.err conftest.i conftest.$ac_ext
1861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1862 $as_echo "$ac_header_preproc" >&6; }
1864 # So? What about this header?
1865 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1867 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1868 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1869 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1870 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1873 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1874 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1875 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1876 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1877 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1878 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1879 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1880 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1881 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1882 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1886 $as_echo_n "checking for $2... " >&6; }
1887 if eval \${$3+:} false; then :
1888 $as_echo_n "(cached) " >&6
1890 eval "$3=\$ac_header_compiler"
1893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1894 $as_echo "$ac_res" >&6; }
1896 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1898 } # ac_fn_c_check_header_mongrel
1900 # ac_fn_c_try_run LINENO
1901 # ----------------------
1902 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1903 # that executables *can* be run.
1906 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1907 if { { ac_try="$ac_link"
1909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1910 *) ac_try_echo=$ac_try;;
1912 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1913 $as_echo "$ac_try_echo"; } >&5
1914 (eval "$ac_link") 2>&5
1916 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1917 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1918 { { case "(($ac_try" in
1919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1920 *) ac_try_echo=$ac_try;;
1922 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1923 $as_echo "$ac_try_echo"; } >&5
1924 (eval "$ac_try") 2>&5
1926 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1927 test $ac_status = 0; }; }; then :
1930 $as_echo "$as_me: program exited with status $ac_status" >&5
1931 $as_echo "$as_me: failed program was:" >&5
1932 sed 's/^/| /' conftest.$ac_ext >&5
1934 ac_retval=$ac_status
1936 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1937 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1938 as_fn_set_status $ac_retval
1942 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1943 # -------------------------------------------------------
1944 # Tests whether HEADER exists and can be compiled using the include files in
1945 # INCLUDES, setting the cache variable VAR accordingly.
1946 ac_fn_c_check_header_compile ()
1948 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1950 $as_echo_n "checking for $2... " >&6; }
1951 if eval \${$3+:} false; then :
1952 $as_echo_n "(cached) " >&6
1954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1955 /* end confdefs.h. */
1959 if ac_fn_c_try_compile "$LINENO"; then :
1964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1968 $as_echo "$ac_res" >&6; }
1969 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1971 } # ac_fn_c_check_header_compile
1973 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1974 # -------------------------------------------
1975 # Tests whether TYPE exists after having included INCLUDES, setting cache
1976 # variable VAR accordingly.
1977 ac_fn_c_check_type ()
1979 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1981 $as_echo_n "checking for $2... " >&6; }
1982 if eval \${$3+:} false; then :
1983 $as_echo_n "(cached) " >&6
1986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1987 /* end confdefs.h. */
1998 if ac_fn_c_try_compile "$LINENO"; then :
1999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2000 /* end confdefs.h. */
2011 if ac_fn_c_try_compile "$LINENO"; then :
2016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2022 $as_echo "$ac_res" >&6; }
2023 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2025 } # ac_fn_c_check_type
2027 # ac_fn_c_check_func LINENO FUNC VAR
2028 # ----------------------------------
2029 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2030 ac_fn_c_check_func ()
2032 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2034 $as_echo_n "checking for $2... " >&6; }
2035 if eval \${$3+:} false; then :
2036 $as_echo_n "(cached) " >&6
2038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2039 /* end confdefs.h. */
2040 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2041 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2042 #define $2 innocuous_$2
2044 /* System header to define __stub macros and hopefully few prototypes,
2045 which can conflict with char $2 (); below.
2046 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2047 <limits.h> exists even on freestanding compilers. */
2050 # include <limits.h>
2052 # include <assert.h>
2057 /* Override any GCC internal prototype to avoid an error.
2058 Use char because int might match the return type of a GCC
2059 builtin and then its argument prototype would still apply. */
2064 /* The GNU C library defines this for functions which it implements
2065 to always fail with ENOSYS. Some functions are actually named
2066 something starting with __ and the normal name is an alias. */
2067 #if defined __stub_$2 || defined __stub___$2
2079 if ac_fn_c_try_link "$LINENO"; then :
2084 rm -f core conftest.err conftest.$ac_objext \
2085 conftest$ac_exeext conftest.$ac_ext
2088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2089 $as_echo "$ac_res" >&6; }
2090 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2092 } # ac_fn_c_check_func
2094 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2095 # ---------------------------------------------
2096 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2098 ac_fn_c_check_decl ()
2100 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2101 as_decl_name=`echo $2|sed 's/ *(.*//'`
2102 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2104 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2105 if eval \${$3+:} false; then :
2106 $as_echo_n "(cached) " >&6
2108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2109 /* end confdefs.h. */
2114 #ifndef $as_decl_name
2116 (void) $as_decl_use;
2118 (void) $as_decl_name;
2126 if ac_fn_c_try_compile "$LINENO"; then :
2131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2135 $as_echo "$ac_res" >&6; }
2136 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2138 } # ac_fn_c_check_decl
2140 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2141 # --------------------------------------------
2142 # Tries to find the compile-time value of EXPR in a program that includes
2143 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2145 ac_fn_c_compute_int ()
2147 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2148 if test "$cross_compiling" = yes; then
2149 # Depending upon the size, compute the lo and hi bounds.
2150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2151 /* end confdefs.h. */
2156 static int test_array [1 - 2 * !(($2) >= 0)];
2158 return test_array [0];
2164 if ac_fn_c_try_compile "$LINENO"; then :
2167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2168 /* end confdefs.h. */
2173 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2175 return test_array [0];
2181 if ac_fn_c_try_compile "$LINENO"; then :
2182 ac_hi=$ac_mid; break
2184 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2185 if test $ac_lo -le $ac_mid; then
2189 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2195 /* end confdefs.h. */
2200 static int test_array [1 - 2 * !(($2) < 0)];
2202 return test_array [0];
2208 if ac_fn_c_try_compile "$LINENO"; then :
2211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2212 /* end confdefs.h. */
2217 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2219 return test_array [0];
2225 if ac_fn_c_try_compile "$LINENO"; then :
2226 ac_lo=$ac_mid; break
2228 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2229 if test $ac_mid -le $ac_hi; then
2233 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2243 # Binary search between lo and hi bounds.
2244 while test "x$ac_lo" != "x$ac_hi"; do
2245 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2247 /* end confdefs.h. */
2252 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2254 return test_array [0];
2260 if ac_fn_c_try_compile "$LINENO"; then :
2263 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2268 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2273 /* end confdefs.h. */
2275 static long int longval () { return $2; }
2276 static unsigned long int ulongval () { return $2; }
2283 FILE *f = fopen ("conftest.val", "w");
2288 long int i = longval ();
2291 fprintf (f, "%ld", i);
2295 unsigned long int i = ulongval ();
2298 fprintf (f, "%lu", i);
2300 /* Do not output a trailing newline, as this causes \r\n confusion
2301 on some platforms. */
2302 return ferror (f) || fclose (f) != 0;
2308 if ac_fn_c_try_run "$LINENO"; then :
2309 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2313 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2314 conftest.$ac_objext conftest.beam conftest.$ac_ext
2318 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2319 as_fn_set_status $ac_retval
2321 } # ac_fn_c_compute_int
2323 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2324 # ----------------------------------------------------
2325 # Tries to find if the field MEMBER exists in type AGGR, after including
2326 # INCLUDES, setting cache variable VAR accordingly.
2327 ac_fn_c_check_member ()
2329 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2331 $as_echo_n "checking for $2.$3... " >&6; }
2332 if eval \${$4+:} false; then :
2333 $as_echo_n "(cached) " >&6
2335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2336 /* end confdefs.h. */
2348 if ac_fn_c_try_compile "$LINENO"; then :
2351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2352 /* end confdefs.h. */
2358 if (sizeof ac_aggr.$3)
2364 if ac_fn_c_try_compile "$LINENO"; then :
2369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2375 $as_echo "$ac_res" >&6; }
2376 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2378 } # ac_fn_c_check_member
2379 cat >config.log <<_ACEOF
2380 This file contains any messages produced by compilers while
2381 running configure, to aid debugging if configure makes a mistake.
2383 It was created by $as_me, which was
2384 generated by GNU Autoconf 2.69. Invocation command line was
2396 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2397 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2398 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2399 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2400 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2402 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2403 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2405 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2406 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2407 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2408 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2409 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2410 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2411 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2419 test -z "$as_dir" && as_dir=.
2420 $as_echo "PATH: $as_dir"
2436 # Keep a trace of the command line.
2437 # Strip out --no-create and --no-recursion so they do not pile up.
2438 # Strip out --silent because we don't want to record it for future runs.
2439 # Also quote any args containing shell meta-characters.
2440 # Make two passes to allow for proper duplicate-argument suppression.
2444 ac_must_keep_next=false
2450 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2451 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2452 | -silent | --silent | --silen | --sile | --sil)
2455 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2458 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2460 as_fn_append ac_configure_args1 " '$ac_arg'"
2461 if test $ac_must_keep_next = true; then
2462 ac_must_keep_next=false # Got value, back to normal.
2465 *=* | --config-cache | -C | -disable-* | --disable-* \
2466 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2467 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2468 | -with-* | --with-* | -without-* | --without-* | --x)
2469 case "$ac_configure_args0 " in
2470 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2473 -* ) ac_must_keep_next=true ;;
2476 as_fn_append ac_configure_args " '$ac_arg'"
2481 { ac_configure_args0=; unset ac_configure_args0;}
2482 { ac_configure_args1=; unset ac_configure_args1;}
2484 # When interrupted or exit'd, cleanup temporary files, and complete
2485 # config.log. We remove comments because anyway the quotes in there
2486 # would cause problems or look ugly.
2487 # WARNING: Use '\'' to represent an apostrophe within the trap.
2488 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2489 trap 'exit_status=$?
2490 # Save into config.log some information that might help in debugging.
2494 $as_echo "## ---------------- ##
2495 ## Cache variables. ##
2496 ## ---------------- ##"
2498 # The following way of writing the cache mishandles newlines in values,
2500 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2501 eval ac_val=\$$ac_var
2505 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2506 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2509 _ | IFS | as_nl) ;; #(
2510 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2511 *) { eval $ac_var=; unset $ac_var;} ;;
2516 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2517 *${as_nl}ac_space=\ *)
2519 "s/'\''/'\''\\\\'\'''\''/g;
2520 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2523 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2530 $as_echo "## ----------------- ##
2531 ## Output variables. ##
2532 ## ----------------- ##"
2534 for ac_var in $ac_subst_vars
2536 eval ac_val=\$$ac_var
2538 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2540 $as_echo "$ac_var='\''$ac_val'\''"
2544 if test -n "$ac_subst_files"; then
2545 $as_echo "## ------------------- ##
2546 ## File substitutions. ##
2547 ## ------------------- ##"
2549 for ac_var in $ac_subst_files
2551 eval ac_val=\$$ac_var
2553 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2555 $as_echo "$ac_var='\''$ac_val'\''"
2560 if test -s confdefs.h; then
2561 $as_echo "## ----------- ##
2568 test "$ac_signal" != 0 &&
2569 $as_echo "$as_me: caught signal $ac_signal"
2570 $as_echo "$as_me: exit $exit_status"
2572 rm -f core *.core core.conftest.* &&
2573 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2576 for ac_signal in 1 2 13 15; do
2577 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2581 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2582 rm -f -r conftest* confdefs.h
2584 $as_echo "/* confdefs.h */" > confdefs.h
2586 # Predefined preprocessor variables.
2588 cat >>confdefs.h <<_ACEOF
2589 #define PACKAGE_NAME "$PACKAGE_NAME"
2592 cat >>confdefs.h <<_ACEOF
2593 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2596 cat >>confdefs.h <<_ACEOF
2597 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2600 cat >>confdefs.h <<_ACEOF
2601 #define PACKAGE_STRING "$PACKAGE_STRING"
2604 cat >>confdefs.h <<_ACEOF
2605 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2608 cat >>confdefs.h <<_ACEOF
2609 #define PACKAGE_URL "$PACKAGE_URL"
2613 # Let the site file select an alternate cache file if it wants to.
2614 # Prefer an explicitly selected file to automatically selected ones.
2617 if test -n "$CONFIG_SITE"; then
2618 # We do not want a PATH search for config.site.
2619 case $CONFIG_SITE in #((
2620 -*) ac_site_file1=./$CONFIG_SITE;;
2621 */*) ac_site_file1=$CONFIG_SITE;;
2622 *) ac_site_file1=./$CONFIG_SITE;;
2624 elif test "x$prefix" != xNONE; then
2625 ac_site_file1=$prefix/share/config.site
2626 ac_site_file2=$prefix/etc/config.site
2628 ac_site_file1=$ac_default_prefix/share/config.site
2629 ac_site_file2=$ac_default_prefix/etc/config.site
2631 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2633 test "x$ac_site_file" = xNONE && continue
2634 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2635 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2636 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2637 sed 's/^/| /' "$ac_site_file" >&5
2639 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2640 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2641 as_fn_error $? "failed to load site script $ac_site_file
2642 See \`config.log' for more details" "$LINENO" 5; }
2646 if test -r "$cache_file"; then
2647 # Some versions of bash will fail to source /dev/null (special files
2648 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2649 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2650 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2651 $as_echo "$as_me: loading cache $cache_file" >&6;}
2653 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2654 *) . "./$cache_file";;
2658 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2659 $as_echo "$as_me: creating cache $cache_file" >&6;}
2663 gt_needs="$gt_needs "
2664 as_fn_append ac_header_list " stdlib.h"
2665 as_fn_append ac_header_list " unistd.h"
2666 as_fn_append ac_header_list " sys/param.h"
2667 as_fn_append ac_func_list " symlink"
2668 # Check that the precious variables saved in the cache have kept the same
2670 ac_cache_corrupted=false
2671 for ac_var in $ac_precious_vars; do
2672 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2673 eval ac_new_set=\$ac_env_${ac_var}_set
2674 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2675 eval ac_new_val=\$ac_env_${ac_var}_value
2676 case $ac_old_set,$ac_new_set in
2678 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2679 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2680 ac_cache_corrupted=: ;;
2682 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2683 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2684 ac_cache_corrupted=: ;;
2687 if test "x$ac_old_val" != "x$ac_new_val"; then
2688 # differences in whitespace do not lead to failure.
2689 ac_old_val_w=`echo x $ac_old_val`
2690 ac_new_val_w=`echo x $ac_new_val`
2691 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2692 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2693 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2694 ac_cache_corrupted=:
2696 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2697 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2698 eval $ac_var=\$ac_old_val
2700 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2701 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2702 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2703 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2706 # Pass precious variables to config.status.
2707 if test "$ac_new_set" = set; then
2709 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2710 *) ac_arg=$ac_var=$ac_new_val ;;
2712 case " $ac_configure_args " in
2713 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2714 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2718 if $ac_cache_corrupted; then
2719 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2720 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2721 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2722 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2723 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2725 ## -------------------- ##
2726 ## Main body of script. ##
2727 ## -------------------- ##
2730 ac_cpp='$CPP $CPPFLAGS'
2731 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2732 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2733 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2738 for ac_dir in config "$srcdir"/config; do
2739 if test -f "$ac_dir/install-sh"; then
2741 ac_install_sh="$ac_aux_dir/install-sh -c"
2743 elif test -f "$ac_dir/install.sh"; then
2745 ac_install_sh="$ac_aux_dir/install.sh -c"
2747 elif test -f "$ac_dir/shtool"; then
2749 ac_install_sh="$ac_aux_dir/shtool install -c"
2753 if test -z "$ac_aux_dir"; then
2754 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2757 # These three variables are undocumented and unsupported,
2758 # and are intended to be withdrawn in a future Autoconf release.
2759 # They can cause serious problems if a builder's source tree is in a directory
2760 # whose full name contains unusual characters.
2761 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2762 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2763 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2766 ac_config_headers="$ac_config_headers lib/config.h"
2772 E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \
2773 | awk '{print $3}' | tr \" " " | awk '{print $1}'`
2774 E2FSPROGS_DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
2775 | tr \" " " | awk '{print $1}'`
2776 E2FSPROGS_DAY=$(echo $E2FSPROGS_DATE | awk -F- '{print $1}' | sed -e '/^[1-9]$/s/^/0/')
2777 MONTH=`echo $E2FSPROGS_DATE | awk -F- '{print $2}'`
2778 YEAR=`echo $E2FSPROGS_DATE | awk -F- '{print $3}'`
2780 if expr $YEAR ">" 1900 > /dev/null ; then
2781 E2FSPROGS_YEAR=$YEAR
2782 elif expr $YEAR ">" 90 >/dev/null ; then
2783 E2FSPROGS_YEAR=19$YEAR
2785 E2FSPROGS_YEAR=20$YEAR
2789 Jan) MONTH_NUM=01; E2FSPROGS_MONTH="January" ;;
2790 Feb) MONTH_NUM=02; E2FSPROGS_MONTH="February" ;;
2791 Mar) MONTH_NUM=03; E2FSPROGS_MONTH="March" ;;
2792 Apr) MONTH_NUM=04; E2FSPROGS_MONTH="April" ;;
2793 May) MONTH_NUM=05; E2FSPROGS_MONTH="May" ;;
2794 Jun) MONTH_NUM=06; E2FSPROGS_MONTH="June" ;;
2795 Jul) MONTH_NUM=07; E2FSPROGS_MONTH="July" ;;
2796 Aug) MONTH_NUM=08; E2FSPROGS_MONTH="August" ;;
2797 Sep) MONTH_NUM=09; E2FSPROGS_MONTH="September" ;;
2798 Oct) MONTH_NUM=10; E2FSPROGS_MONTH="October" ;;
2799 Nov) MONTH_NUM=11; E2FSPROGS_MONTH="November" ;;
2800 Dec) MONTH_NUM=12; E2FSPROGS_MONTH="December" ;;
2801 *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unknown month $MONTH??" >&5
2802 $as_echo "$as_me: WARNING: Unknown month $MONTH??" >&2;} ;;
2805 base_ver=`echo $E2FSPROGS_VERSION | \
2806 sed -e 's/-WIP//' -e 's/pre-//' -e 's/-PLUS//'`
2808 date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY}
2810 case $E2FSPROGS_VERSION in
2812 E2FSPROGS_PKGVER="$base_ver~WIP.$date_spec"
2815 E2FSPROGS_PKGVER="$base_ver"
2819 unset DATE MONTH YEAR base_ver pre_vers date_spec
2820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&5
2821 $as_echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&6; }
2822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&5
2823 $as_echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&6; }
2832 # Check whether --with-diet-libc was given.
2833 if test "${with_diet_libc+set}" = set; then :
2834 withval=$with_diet_libc; CC="diet cc -nostdinc"
2840 LIBS="$LIBS -lcompat"
2842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: CC=$CC" >&5
2843 $as_echo "CC=$CC" >&6; }
2845 # Make sure we can run config.sub.
2846 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2847 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2850 $as_echo_n "checking build system type... " >&6; }
2851 if ${ac_cv_build+:} false; then :
2852 $as_echo_n "(cached) " >&6
2854 ac_build_alias=$build_alias
2855 test "x$ac_build_alias" = x &&
2856 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2857 test "x$ac_build_alias" = x &&
2858 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2859 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2860 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2864 $as_echo "$ac_cv_build" >&6; }
2865 case $ac_cv_build in
2867 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2870 ac_save_IFS=$IFS; IFS='-'
2876 # Remember, the first character of IFS is used to create $*,
2877 # except with old shells:
2880 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2884 $as_echo_n "checking host system type... " >&6; }
2885 if ${ac_cv_host+:} false; then :
2886 $as_echo_n "(cached) " >&6
2888 if test "x$host_alias" = x; then
2889 ac_cv_host=$ac_cv_build
2891 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2892 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2897 $as_echo "$ac_cv_host" >&6; }
2900 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2903 ac_save_IFS=$IFS; IFS='-'
2909 # Remember, the first character of IFS is used to create $*,
2910 # except with old shells:
2913 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2918 ac_cpp='$CPP $CPPFLAGS'
2919 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2920 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2921 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2922 if test -n "$ac_tool_prefix"; then
2923 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2924 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2926 $as_echo_n "checking for $ac_word... " >&6; }
2927 if ${ac_cv_prog_CC+:} false; then :
2928 $as_echo_n "(cached) " >&6
2930 if test -n "$CC"; then
2931 ac_cv_prog_CC="$CC" # Let the user override the test.
2933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2937 test -z "$as_dir" && as_dir=.
2938 for ac_exec_ext in '' $ac_executable_extensions; do
2939 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2940 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2951 if test -n "$CC"; then
2952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2953 $as_echo "$CC" >&6; }
2955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2956 $as_echo "no" >&6; }
2961 if test -z "$ac_cv_prog_CC"; then
2963 # Extract the first word of "gcc", so it can be a program name with args.
2964 set dummy gcc; ac_word=$2
2965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2966 $as_echo_n "checking for $ac_word... " >&6; }
2967 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2968 $as_echo_n "(cached) " >&6
2970 if test -n "$ac_ct_CC"; then
2971 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2977 test -z "$as_dir" && as_dir=.
2978 for ac_exec_ext in '' $ac_executable_extensions; do
2979 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2980 ac_cv_prog_ac_ct_CC="gcc"
2981 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2990 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2991 if test -n "$ac_ct_CC"; then
2992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2993 $as_echo "$ac_ct_CC" >&6; }
2995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2996 $as_echo "no" >&6; }
2999 if test "x$ac_ct_CC" = x; then
3002 case $cross_compiling:$ac_tool_warned in
3004 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3005 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3006 ac_tool_warned=yes ;;
3014 if test -z "$CC"; then
3015 if test -n "$ac_tool_prefix"; then
3016 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3017 set dummy ${ac_tool_prefix}cc; ac_word=$2
3018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3019 $as_echo_n "checking for $ac_word... " >&6; }
3020 if ${ac_cv_prog_CC+:} false; then :
3021 $as_echo_n "(cached) " >&6
3023 if test -n "$CC"; then
3024 ac_cv_prog_CC="$CC" # Let the user override the test.
3026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3030 test -z "$as_dir" && as_dir=.
3031 for ac_exec_ext in '' $ac_executable_extensions; do
3032 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3033 ac_cv_prog_CC="${ac_tool_prefix}cc"
3034 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3044 if test -n "$CC"; then
3045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3046 $as_echo "$CC" >&6; }
3048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3049 $as_echo "no" >&6; }
3055 if test -z "$CC"; then
3056 # Extract the first word of "cc", so it can be a program name with args.
3057 set dummy cc; ac_word=$2
3058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3059 $as_echo_n "checking for $ac_word... " >&6; }
3060 if ${ac_cv_prog_CC+:} false; then :
3061 $as_echo_n "(cached) " >&6
3063 if test -n "$CC"; then
3064 ac_cv_prog_CC="$CC" # Let the user override the test.
3067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3071 test -z "$as_dir" && as_dir=.
3072 for ac_exec_ext in '' $ac_executable_extensions; do
3073 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3074 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3075 ac_prog_rejected=yes
3079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3086 if test $ac_prog_rejected = yes; then
3087 # We found a bogon in the path, so make sure we never use it.
3088 set dummy $ac_cv_prog_CC
3090 if test $# != 0; then
3091 # We chose a different compiler from the bogus one.
3092 # However, it has the same basename, so the bogon will be chosen
3093 # first if we set CC to just the basename; use the full file name.
3095 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3101 if test -n "$CC"; then
3102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3103 $as_echo "$CC" >&6; }
3105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3106 $as_echo "no" >&6; }
3111 if test -z "$CC"; then
3112 if test -n "$ac_tool_prefix"; then
3113 for ac_prog in cl.exe
3115 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3116 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3118 $as_echo_n "checking for $ac_word... " >&6; }
3119 if ${ac_cv_prog_CC+:} false; then :
3120 $as_echo_n "(cached) " >&6
3122 if test -n "$CC"; then
3123 ac_cv_prog_CC="$CC" # Let the user override the test.
3125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3129 test -z "$as_dir" && as_dir=.
3130 for ac_exec_ext in '' $ac_executable_extensions; do
3131 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3132 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3133 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3143 if test -n "$CC"; then
3144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3145 $as_echo "$CC" >&6; }
3147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3148 $as_echo "no" >&6; }
3152 test -n "$CC" && break
3155 if test -z "$CC"; then
3157 for ac_prog in cl.exe
3159 # Extract the first word of "$ac_prog", so it can be a program name with args.
3160 set dummy $ac_prog; ac_word=$2
3161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3162 $as_echo_n "checking for $ac_word... " >&6; }
3163 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3164 $as_echo_n "(cached) " >&6
3166 if test -n "$ac_ct_CC"; then
3167 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3173 test -z "$as_dir" && as_dir=.
3174 for ac_exec_ext in '' $ac_executable_extensions; do
3175 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3176 ac_cv_prog_ac_ct_CC="$ac_prog"
3177 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3186 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3187 if test -n "$ac_ct_CC"; then
3188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3189 $as_echo "$ac_ct_CC" >&6; }
3191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3192 $as_echo "no" >&6; }
3196 test -n "$ac_ct_CC" && break
3199 if test "x$ac_ct_CC" = x; then
3202 case $cross_compiling:$ac_tool_warned in
3204 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3205 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3206 ac_tool_warned=yes ;;
3215 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3216 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3217 as_fn_error $? "no acceptable C compiler found in \$PATH
3218 See \`config.log' for more details" "$LINENO" 5; }
3220 # Provide some information about the compiler.
3221 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3224 for ac_option in --version -v -V -qversion; do
3225 { { ac_try="$ac_compiler $ac_option >&5"
3227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3228 *) ac_try_echo=$ac_try;;
3230 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3231 $as_echo "$ac_try_echo"; } >&5
3232 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3234 if test -s conftest.err; then
3236 ... rest of stderr output deleted ...
3237 10q' conftest.err >conftest.er1
3238 cat conftest.er1 >&5
3240 rm -f conftest.er1 conftest.err
3241 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3242 test $ac_status = 0; }
3245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3246 /* end confdefs.h. */
3256 ac_clean_files_save=$ac_clean_files
3257 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3258 # Try to create an executable without -o first, disregard a.out.
3259 # It will help us diagnose broken compilers, and finding out an intuition
3261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3262 $as_echo_n "checking whether the C compiler works... " >&6; }
3263 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3265 # The possible output files:
3266 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3269 for ac_file in $ac_files
3272 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3273 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3278 if { { ac_try="$ac_link_default"
3280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3281 *) ac_try_echo=$ac_try;;
3283 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3284 $as_echo "$ac_try_echo"; } >&5
3285 (eval "$ac_link_default") 2>&5
3287 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3288 test $ac_status = 0; }; then :
3289 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3290 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3291 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3292 # so that the user can short-circuit this test for compilers unknown to
3294 for ac_file in $ac_files ''
3296 test -f "$ac_file" || continue
3298 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3301 # We found the default executable, but exeext='' is most
3305 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3307 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3309 # We set ac_cv_exeext here because the later test for it is not
3310 # safe: cross compilers may not add the suffix if given an `-o'
3311 # argument, so we may need to know it at that point already.
3312 # Even if this section looks crufty: it has the advantage of
3319 test "$ac_cv_exeext" = no && ac_cv_exeext=
3324 if test -z "$ac_file"; then :
3325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3326 $as_echo "no" >&6; }
3327 $as_echo "$as_me: failed program was:" >&5
3328 sed 's/^/| /' conftest.$ac_ext >&5
3330 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3331 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3332 as_fn_error 77 "C compiler cannot create executables
3333 See \`config.log' for more details" "$LINENO" 5; }
3335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3336 $as_echo "yes" >&6; }
3338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3339 $as_echo_n "checking for C compiler default output file name... " >&6; }
3340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3341 $as_echo "$ac_file" >&6; }
3342 ac_exeext=$ac_cv_exeext
3344 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3345 ac_clean_files=$ac_clean_files_save
3346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3347 $as_echo_n "checking for suffix of executables... " >&6; }
3348 if { { ac_try="$ac_link"
3350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3351 *) ac_try_echo=$ac_try;;
3353 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3354 $as_echo "$ac_try_echo"; } >&5
3355 (eval "$ac_link") 2>&5
3357 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3358 test $ac_status = 0; }; then :
3359 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3360 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3361 # work properly (i.e., refer to `conftest.exe'), while it won't with
3363 for ac_file in conftest.exe conftest conftest.*; do
3364 test -f "$ac_file" || continue
3366 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3367 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3373 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3374 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3375 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3376 See \`config.log' for more details" "$LINENO" 5; }
3378 rm -f conftest conftest$ac_cv_exeext
3379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3380 $as_echo "$ac_cv_exeext" >&6; }
3382 rm -f conftest.$ac_ext
3383 EXEEXT=$ac_cv_exeext
3385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3386 /* end confdefs.h. */
3391 FILE *f = fopen ("conftest.out", "w");
3392 return ferror (f) || fclose (f) != 0;
3398 ac_clean_files="$ac_clean_files conftest.out"
3399 # Check that the compiler produces executables we can run. If not, either
3400 # the compiler is broken, or we cross compile.
3401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3402 $as_echo_n "checking whether we are cross compiling... " >&6; }
3403 if test "$cross_compiling" != yes; then
3404 { { ac_try="$ac_link"
3406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3407 *) ac_try_echo=$ac_try;;
3409 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3410 $as_echo "$ac_try_echo"; } >&5
3411 (eval "$ac_link") 2>&5
3413 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3414 test $ac_status = 0; }
3415 if { ac_try='./conftest$ac_cv_exeext'
3416 { { case "(($ac_try" in
3417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3418 *) ac_try_echo=$ac_try;;
3420 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3421 $as_echo "$ac_try_echo"; } >&5
3422 (eval "$ac_try") 2>&5
3424 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3425 test $ac_status = 0; }; }; then
3428 if test "$cross_compiling" = maybe; then
3431 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3432 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3433 as_fn_error $? "cannot run C compiled programs.
3434 If you meant to cross compile, use \`--host'.
3435 See \`config.log' for more details" "$LINENO" 5; }
3439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3440 $as_echo "$cross_compiling" >&6; }
3442 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3443 ac_clean_files=$ac_clean_files_save
3444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3445 $as_echo_n "checking for suffix of object files... " >&6; }
3446 if ${ac_cv_objext+:} false; then :
3447 $as_echo_n "(cached) " >&6
3449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3450 /* end confdefs.h. */
3460 rm -f conftest.o conftest.obj
3461 if { { ac_try="$ac_compile"
3463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3464 *) ac_try_echo=$ac_try;;
3466 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3467 $as_echo "$ac_try_echo"; } >&5
3468 (eval "$ac_compile") 2>&5
3470 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3471 test $ac_status = 0; }; then :
3472 for ac_file in conftest.o conftest.obj conftest.*; do
3473 test -f "$ac_file" || continue;
3475 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3476 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3481 $as_echo "$as_me: failed program was:" >&5
3482 sed 's/^/| /' conftest.$ac_ext >&5
3484 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3485 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3486 as_fn_error $? "cannot compute suffix of object files: cannot compile
3487 See \`config.log' for more details" "$LINENO" 5; }
3489 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3492 $as_echo "$ac_cv_objext" >&6; }
3493 OBJEXT=$ac_cv_objext
3495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3496 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3497 if ${ac_cv_c_compiler_gnu+:} false; then :
3498 $as_echo_n "(cached) " >&6
3500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3501 /* end confdefs.h. */
3514 if ac_fn_c_try_compile "$LINENO"; then :
3519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3520 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3524 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3525 if test $ac_compiler_gnu = yes; then
3530 ac_test_CFLAGS=${CFLAGS+set}
3531 ac_save_CFLAGS=$CFLAGS
3532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3533 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3534 if ${ac_cv_prog_cc_g+:} false; then :
3535 $as_echo_n "(cached) " >&6
3537 ac_save_c_werror_flag=$ac_c_werror_flag
3538 ac_c_werror_flag=yes
3541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3542 /* end confdefs.h. */
3552 if ac_fn_c_try_compile "$LINENO"; then :
3556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3557 /* end confdefs.h. */
3567 if ac_fn_c_try_compile "$LINENO"; then :
3570 ac_c_werror_flag=$ac_save_c_werror_flag
3572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3573 /* end confdefs.h. */
3583 if ac_fn_c_try_compile "$LINENO"; then :
3586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3591 ac_c_werror_flag=$ac_save_c_werror_flag
3593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3594 $as_echo "$ac_cv_prog_cc_g" >&6; }
3595 if test "$ac_test_CFLAGS" = set; then
3596 CFLAGS=$ac_save_CFLAGS
3597 elif test $ac_cv_prog_cc_g = yes; then
3598 if test "$GCC" = yes; then
3604 if test "$GCC" = yes; then
3610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3611 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3612 if ${ac_cv_prog_cc_c89+:} false; then :
3613 $as_echo_n "(cached) " >&6
3615 ac_cv_prog_cc_c89=no
3617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3618 /* end confdefs.h. */
3622 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3623 struct buf { int x; };
3624 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3625 static char *e (p, i)
3631 static char *f (char * (*g) (char **, int), char **p, ...)
3636 s = g (p, va_arg (v,int));
3641 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3642 function prototypes and stuff, but not '\xHH' hex character constants.
3643 These don't provoke an error unfortunately, instead are silently treated
3644 as 'x'. The following induces an error, until -std is added to get
3645 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3646 array size at least. It's necessary to write '\x00'==0 to get something
3647 that's true only with -std. */
3648 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3650 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3651 inside strings and character constants. */
3653 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3655 int test (int i, double x);
3656 struct s1 {int (*f) (int a);};
3657 struct s2 {int (*f) (double a);};
3658 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3664 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3669 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3670 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3672 CC="$ac_save_CC $ac_arg"
3673 if ac_fn_c_try_compile "$LINENO"; then :
3674 ac_cv_prog_cc_c89=$ac_arg
3676 rm -f core conftest.err conftest.$ac_objext
3677 test "x$ac_cv_prog_cc_c89" != "xno" && break
3679 rm -f conftest.$ac_ext
3684 case "x$ac_cv_prog_cc_c89" in
3686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3687 $as_echo "none needed" >&6; } ;;
3689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3690 $as_echo "unsupported" >&6; } ;;
3692 CC="$CC $ac_cv_prog_cc_c89"
3693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3694 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3696 if test "x$ac_cv_prog_cc_c89" != xno; then :
3701 ac_cpp='$CPP $CPPFLAGS'
3702 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3703 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3704 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
3708 $as_echo_n "checking for dlopen in -ldl... " >&6; }
3709 if ${ac_cv_lib_dl_dlopen+:} false; then :
3710 $as_echo_n "(cached) " >&6
3712 ac_check_lib_save_LIBS=$LIBS
3714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3715 /* end confdefs.h. */
3717 /* Override any GCC internal prototype to avoid an error.
3718 Use char because int might match the return type of a GCC
3719 builtin and then its argument prototype would still apply. */
3732 if ac_fn_c_try_link "$LINENO"; then :
3733 ac_cv_lib_dl_dlopen=yes
3735 ac_cv_lib_dl_dlopen=no
3737 rm -f core conftest.err conftest.$ac_objext \
3738 conftest$ac_exeext conftest.$ac_ext
3739 LIBS=$ac_check_lib_save_LIBS
3741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
3742 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
3743 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
3749 # Check whether --with-cc was given.
3750 if test "${with_cc+set}" = set; then :
3751 withval=$with_cc; as_fn_error $? "--with-cc no longer supported; use CC= instead" "$LINENO" 5
3755 # Check whether --with-ccopts was given.
3756 if test "${with_ccopts+set}" = set; then :
3757 withval=$with_ccopts; as_fn_error $? "--with-ccopts no longer supported; use CFLAGS= instead" "$LINENO" 5
3761 # Check whether --with-ldopts was given.
3762 if test "${with_ldopts+set}" = set; then :
3763 withval=$with_ldopts; as_fn_error $? "--with-ldopts no longer supported; use LDFLAGS= instead" "$LINENO" 5
3767 ac_cpp='$CPP $CPPFLAGS'
3768 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3769 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3770 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3771 if test -n "$ac_tool_prefix"; then
3772 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3773 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3775 $as_echo_n "checking for $ac_word... " >&6; }
3776 if ${ac_cv_prog_CC+:} false; then :
3777 $as_echo_n "(cached) " >&6
3779 if test -n "$CC"; then
3780 ac_cv_prog_CC="$CC" # Let the user override the test.
3782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3786 test -z "$as_dir" && as_dir=.
3787 for ac_exec_ext in '' $ac_executable_extensions; do
3788 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3789 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3800 if test -n "$CC"; then
3801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3802 $as_echo "$CC" >&6; }
3804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3805 $as_echo "no" >&6; }
3810 if test -z "$ac_cv_prog_CC"; then
3812 # Extract the first word of "gcc", so it can be a program name with args.
3813 set dummy gcc; ac_word=$2
3814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3815 $as_echo_n "checking for $ac_word... " >&6; }
3816 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3817 $as_echo_n "(cached) " >&6
3819 if test -n "$ac_ct_CC"; then
3820 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3826 test -z "$as_dir" && as_dir=.
3827 for ac_exec_ext in '' $ac_executable_extensions; do
3828 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3829 ac_cv_prog_ac_ct_CC="gcc"
3830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3839 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3840 if test -n "$ac_ct_CC"; then
3841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3842 $as_echo "$ac_ct_CC" >&6; }
3844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3845 $as_echo "no" >&6; }
3848 if test "x$ac_ct_CC" = x; then
3851 case $cross_compiling:$ac_tool_warned in
3853 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3854 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3855 ac_tool_warned=yes ;;
3863 if test -z "$CC"; then
3864 if test -n "$ac_tool_prefix"; then
3865 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3866 set dummy ${ac_tool_prefix}cc; ac_word=$2
3867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3868 $as_echo_n "checking for $ac_word... " >&6; }
3869 if ${ac_cv_prog_CC+:} false; then :
3870 $as_echo_n "(cached) " >&6
3872 if test -n "$CC"; then
3873 ac_cv_prog_CC="$CC" # Let the user override the test.
3875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3879 test -z "$as_dir" && as_dir=.
3880 for ac_exec_ext in '' $ac_executable_extensions; do
3881 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3882 ac_cv_prog_CC="${ac_tool_prefix}cc"
3883 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3893 if test -n "$CC"; then
3894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3895 $as_echo "$CC" >&6; }
3897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3898 $as_echo "no" >&6; }
3904 if test -z "$CC"; then
3905 # Extract the first word of "cc", so it can be a program name with args.
3906 set dummy cc; ac_word=$2
3907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3908 $as_echo_n "checking for $ac_word... " >&6; }
3909 if ${ac_cv_prog_CC+:} false; then :
3910 $as_echo_n "(cached) " >&6
3912 if test -n "$CC"; then
3913 ac_cv_prog_CC="$CC" # Let the user override the test.
3916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3920 test -z "$as_dir" && as_dir=.
3921 for ac_exec_ext in '' $ac_executable_extensions; do
3922 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3923 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3924 ac_prog_rejected=yes
3928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3935 if test $ac_prog_rejected = yes; then
3936 # We found a bogon in the path, so make sure we never use it.
3937 set dummy $ac_cv_prog_CC
3939 if test $# != 0; then
3940 # We chose a different compiler from the bogus one.
3941 # However, it has the same basename, so the bogon will be chosen
3942 # first if we set CC to just the basename; use the full file name.
3944 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3950 if test -n "$CC"; then
3951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3952 $as_echo "$CC" >&6; }
3954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3955 $as_echo "no" >&6; }
3960 if test -z "$CC"; then
3961 if test -n "$ac_tool_prefix"; then
3962 for ac_prog in cl.exe
3964 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3965 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3967 $as_echo_n "checking for $ac_word... " >&6; }
3968 if ${ac_cv_prog_CC+:} false; then :
3969 $as_echo_n "(cached) " >&6
3971 if test -n "$CC"; then
3972 ac_cv_prog_CC="$CC" # Let the user override the test.
3974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3978 test -z "$as_dir" && as_dir=.
3979 for ac_exec_ext in '' $ac_executable_extensions; do
3980 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3981 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3982 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3992 if test -n "$CC"; then
3993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3994 $as_echo "$CC" >&6; }
3996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3997 $as_echo "no" >&6; }
4001 test -n "$CC" && break
4004 if test -z "$CC"; then
4006 for ac_prog in cl.exe
4008 # Extract the first word of "$ac_prog", so it can be a program name with args.
4009 set dummy $ac_prog; ac_word=$2
4010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4011 $as_echo_n "checking for $ac_word... " >&6; }
4012 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4013 $as_echo_n "(cached) " >&6
4015 if test -n "$ac_ct_CC"; then
4016 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4022 test -z "$as_dir" && as_dir=.
4023 for ac_exec_ext in '' $ac_executable_extensions; do
4024 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4025 ac_cv_prog_ac_ct_CC="$ac_prog"
4026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4035 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4036 if test -n "$ac_ct_CC"; then
4037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4038 $as_echo "$ac_ct_CC" >&6; }
4040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4041 $as_echo "no" >&6; }
4045 test -n "$ac_ct_CC" && break
4048 if test "x$ac_ct_CC" = x; then
4051 case $cross_compiling:$ac_tool_warned in
4053 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4054 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4055 ac_tool_warned=yes ;;
4064 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4065 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4066 as_fn_error $? "no acceptable C compiler found in \$PATH
4067 See \`config.log' for more details" "$LINENO" 5; }
4069 # Provide some information about the compiler.
4070 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4073 for ac_option in --version -v -V -qversion; do
4074 { { ac_try="$ac_compiler $ac_option >&5"
4076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4077 *) ac_try_echo=$ac_try;;
4079 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4080 $as_echo "$ac_try_echo"; } >&5
4081 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4083 if test -s conftest.err; then
4085 ... rest of stderr output deleted ...
4086 10q' conftest.err >conftest.er1
4087 cat conftest.er1 >&5
4089 rm -f conftest.er1 conftest.err
4090 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4091 test $ac_status = 0; }
4094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4095 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4096 if ${ac_cv_c_compiler_gnu+:} false; then :
4097 $as_echo_n "(cached) " >&6
4099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4100 /* end confdefs.h. */
4113 if ac_fn_c_try_compile "$LINENO"; then :
4118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4119 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4123 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4124 if test $ac_compiler_gnu = yes; then
4129 ac_test_CFLAGS=${CFLAGS+set}
4130 ac_save_CFLAGS=$CFLAGS
4131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4132 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4133 if ${ac_cv_prog_cc_g+:} false; then :
4134 $as_echo_n "(cached) " >&6
4136 ac_save_c_werror_flag=$ac_c_werror_flag
4137 ac_c_werror_flag=yes
4140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4141 /* end confdefs.h. */
4151 if ac_fn_c_try_compile "$LINENO"; then :
4155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4156 /* end confdefs.h. */
4166 if ac_fn_c_try_compile "$LINENO"; then :
4169 ac_c_werror_flag=$ac_save_c_werror_flag
4171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4172 /* end confdefs.h. */
4182 if ac_fn_c_try_compile "$LINENO"; then :
4185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4190 ac_c_werror_flag=$ac_save_c_werror_flag
4192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4193 $as_echo "$ac_cv_prog_cc_g" >&6; }
4194 if test "$ac_test_CFLAGS" = set; then
4195 CFLAGS=$ac_save_CFLAGS
4196 elif test $ac_cv_prog_cc_g = yes; then
4197 if test "$GCC" = yes; then
4203 if test "$GCC" = yes; then
4209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4210 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4211 if ${ac_cv_prog_cc_c89+:} false; then :
4212 $as_echo_n "(cached) " >&6
4214 ac_cv_prog_cc_c89=no
4216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4217 /* end confdefs.h. */
4221 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4222 struct buf { int x; };
4223 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4224 static char *e (p, i)
4230 static char *f (char * (*g) (char **, int), char **p, ...)
4235 s = g (p, va_arg (v,int));
4240 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4241 function prototypes and stuff, but not '\xHH' hex character constants.
4242 These don't provoke an error unfortunately, instead are silently treated
4243 as 'x'. The following induces an error, until -std is added to get
4244 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4245 array size at least. It's necessary to write '\x00'==0 to get something
4246 that's true only with -std. */
4247 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4249 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4250 inside strings and character constants. */
4252 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4254 int test (int i, double x);
4255 struct s1 {int (*f) (int a);};
4256 struct s2 {int (*f) (double a);};
4257 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4263 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4268 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4269 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4271 CC="$ac_save_CC $ac_arg"
4272 if ac_fn_c_try_compile "$LINENO"; then :
4273 ac_cv_prog_cc_c89=$ac_arg
4275 rm -f core conftest.err conftest.$ac_objext
4276 test "x$ac_cv_prog_cc_c89" != "xno" && break
4278 rm -f conftest.$ac_ext
4283 case "x$ac_cv_prog_cc_c89" in
4285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4286 $as_echo "none needed" >&6; } ;;
4288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4289 $as_echo "unsupported" >&6; } ;;
4291 CC="$CC $ac_cv_prog_cc_c89"
4292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4293 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4295 if test "x$ac_cv_prog_cc_c89" != xno; then :
4300 ac_cpp='$CPP $CPPFLAGS'
4301 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4302 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4303 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4305 if test "$GCC" = yes; then
4306 RDYNAMIC="-rdynamic"
4310 ac_cpp='$CPP $CPPFLAGS'
4311 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4312 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4313 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4315 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4316 # On Suns, sometimes $CPP names a directory.
4317 if test -n "$CPP" && test -d "$CPP"; then
4320 if test -z "$CPP"; then
4321 if ${ac_cv_prog_CPP+:} false; then :
4322 $as_echo_n "(cached) " >&6
4324 # Double quotes because CPP needs to be expanded
4325 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4328 for ac_c_preproc_warn_flag in '' yes
4330 # Use a header file that comes with gcc, so configuring glibc
4331 # with a fresh cross-compiler works.
4332 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4333 # <limits.h> exists even on freestanding compilers.
4334 # On the NeXT, cc -E runs the code through the compiler's parser,
4335 # not just through cpp. "Syntax error" is here to catch this case.
4336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4337 /* end confdefs.h. */
4339 # include <limits.h>
4341 # include <assert.h>
4345 if ac_fn_c_try_cpp "$LINENO"; then :
4348 # Broken: fails on valid input.
4351 rm -f conftest.err conftest.i conftest.$ac_ext
4353 # OK, works on sane cases. Now check whether nonexistent headers
4354 # can be detected and how.
4355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4356 /* end confdefs.h. */
4357 #include <ac_nonexistent.h>
4359 if ac_fn_c_try_cpp "$LINENO"; then :
4360 # Broken: success on invalid input.
4363 # Passes both tests.
4367 rm -f conftest.err conftest.i conftest.$ac_ext
4370 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4371 rm -f conftest.i conftest.err conftest.$ac_ext
4372 if $ac_preproc_ok; then :
4384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4385 $as_echo "$CPP" >&6; }
4387 for ac_c_preproc_warn_flag in '' yes
4389 # Use a header file that comes with gcc, so configuring glibc
4390 # with a fresh cross-compiler works.
4391 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4392 # <limits.h> exists even on freestanding compilers.
4393 # On the NeXT, cc -E runs the code through the compiler's parser,
4394 # not just through cpp. "Syntax error" is here to catch this case.
4395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4396 /* end confdefs.h. */
4398 # include <limits.h>
4400 # include <assert.h>
4404 if ac_fn_c_try_cpp "$LINENO"; then :
4407 # Broken: fails on valid input.
4410 rm -f conftest.err conftest.i conftest.$ac_ext
4412 # OK, works on sane cases. Now check whether nonexistent headers
4413 # can be detected and how.
4414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4415 /* end confdefs.h. */
4416 #include <ac_nonexistent.h>
4418 if ac_fn_c_try_cpp "$LINENO"; then :
4419 # Broken: success on invalid input.
4422 # Passes both tests.
4426 rm -f conftest.err conftest.i conftest.$ac_ext
4429 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4430 rm -f conftest.i conftest.err conftest.$ac_ext
4431 if $ac_preproc_ok; then :
4434 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4435 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4436 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4437 See \`config.log' for more details" "$LINENO" 5; }
4441 ac_cpp='$CPP $CPPFLAGS'
4442 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4443 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4444 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for additional special compiler flags" >&5
4447 $as_echo_n "checking for additional special compiler flags... " >&6; }
4448 if test "$GCC" = yes
4451 alpha) addcflags="-mieee" ;;
4454 if test "x$addcflags" != x
4456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $addcflags" >&5
4457 $as_echo "$addcflags" >&6; }
4458 CFLAGS="$addcflags $CFLAGS"
4460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (none)" >&5
4461 $as_echo "(none)" >&6; }
4464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4465 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4466 if ${ac_cv_path_GREP+:} false; then :
4467 $as_echo_n "(cached) " >&6
4469 if test -z "$GREP"; then
4470 ac_path_GREP_found=false
4471 # Loop through the user's path and test for each of PROGNAME-LIST
4472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4473 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4476 test -z "$as_dir" && as_dir=.
4477 for ac_prog in grep ggrep; do
4478 for ac_exec_ext in '' $ac_executable_extensions; do
4479 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4480 as_fn_executable_p "$ac_path_GREP" || continue
4481 # Check for GNU ac_path_GREP and select it if it is found.
4482 # Check for GNU $ac_path_GREP
4483 case `"$ac_path_GREP" --version 2>&1` in
4485 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4488 $as_echo_n 0123456789 >"conftest.in"
4491 cat "conftest.in" "conftest.in" >"conftest.tmp"
4492 mv "conftest.tmp" "conftest.in"
4493 cp "conftest.in" "conftest.nl"
4494 $as_echo 'GREP' >> "conftest.nl"
4495 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4496 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4497 as_fn_arith $ac_count + 1 && ac_count=$as_val
4498 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4499 # Best one so far, save it but keep looking for a better one
4500 ac_cv_path_GREP="$ac_path_GREP"
4501 ac_path_GREP_max=$ac_count
4503 # 10*(2^10) chars as input seems more than enough
4504 test $ac_count -gt 10 && break
4506 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4509 $ac_path_GREP_found && break 3
4514 if test -z "$ac_cv_path_GREP"; then
4515 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4518 ac_cv_path_GREP=$GREP
4522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4523 $as_echo "$ac_cv_path_GREP" >&6; }
4524 GREP="$ac_cv_path_GREP"
4527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4528 $as_echo_n "checking for egrep... " >&6; }
4529 if ${ac_cv_path_EGREP+:} false; then :
4530 $as_echo_n "(cached) " >&6
4532 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4533 then ac_cv_path_EGREP="$GREP -E"
4535 if test -z "$EGREP"; then
4536 ac_path_EGREP_found=false
4537 # Loop through the user's path and test for each of PROGNAME-LIST
4538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4539 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4542 test -z "$as_dir" && as_dir=.
4543 for ac_prog in egrep; do
4544 for ac_exec_ext in '' $ac_executable_extensions; do
4545 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4546 as_fn_executable_p "$ac_path_EGREP" || continue
4547 # Check for GNU ac_path_EGREP and select it if it is found.
4548 # Check for GNU $ac_path_EGREP
4549 case `"$ac_path_EGREP" --version 2>&1` in
4551 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4554 $as_echo_n 0123456789 >"conftest.in"
4557 cat "conftest.in" "conftest.in" >"conftest.tmp"
4558 mv "conftest.tmp" "conftest.in"
4559 cp "conftest.in" "conftest.nl"
4560 $as_echo 'EGREP' >> "conftest.nl"
4561 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4562 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4563 as_fn_arith $ac_count + 1 && ac_count=$as_val
4564 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4565 # Best one so far, save it but keep looking for a better one
4566 ac_cv_path_EGREP="$ac_path_EGREP"
4567 ac_path_EGREP_max=$ac_count
4569 # 10*(2^10) chars as input seems more than enough
4570 test $ac_count -gt 10 && break
4572 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4575 $ac_path_EGREP_found && break 3
4580 if test -z "$ac_cv_path_EGREP"; then
4581 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4584 ac_cv_path_EGREP=$EGREP
4589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4590 $as_echo "$ac_cv_path_EGREP" >&6; }
4591 EGREP="$ac_cv_path_EGREP"
4594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4595 $as_echo_n "checking for ANSI C header files... " >&6; }
4596 if ${ac_cv_header_stdc+:} false; then :
4597 $as_echo_n "(cached) " >&6
4599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4600 /* end confdefs.h. */
4614 if ac_fn_c_try_compile "$LINENO"; then :
4615 ac_cv_header_stdc=yes
4617 ac_cv_header_stdc=no
4619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4621 if test $ac_cv_header_stdc = yes; then
4622 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4624 /* end confdefs.h. */
4628 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4629 $EGREP "memchr" >/dev/null 2>&1; then :
4632 ac_cv_header_stdc=no
4638 if test $ac_cv_header_stdc = yes; then
4639 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4641 /* end confdefs.h. */
4645 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4646 $EGREP "free" >/dev/null 2>&1; then :
4649 ac_cv_header_stdc=no
4655 if test $ac_cv_header_stdc = yes; then
4656 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4657 if test "$cross_compiling" = yes; then :
4660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4661 /* end confdefs.h. */
4664 #if ((' ' & 0x0FF) == 0x020)
4665 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4666 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4668 # define ISLOWER(c) \
4669 (('a' <= (c) && (c) <= 'i') \
4670 || ('j' <= (c) && (c) <= 'r') \
4671 || ('s' <= (c) && (c) <= 'z'))
4672 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4675 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4680 for (i = 0; i < 256; i++)
4681 if (XOR (islower (i), ISLOWER (i))
4682 || toupper (i) != TOUPPER (i))
4687 if ac_fn_c_try_run "$LINENO"; then :
4690 ac_cv_header_stdc=no
4692 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4693 conftest.$ac_objext conftest.beam conftest.$ac_ext
4698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4699 $as_echo "$ac_cv_header_stdc" >&6; }
4700 if test $ac_cv_header_stdc = yes; then
4702 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4706 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4707 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4708 inttypes.h stdint.h unistd.h
4710 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4711 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4713 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4714 cat >>confdefs.h <<_ACEOF
4715 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4724 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4725 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4732 if test "$MINIX" = yes; then
4734 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4737 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4740 $as_echo "#define _MINIX 1" >>confdefs.h
4745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4746 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4747 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4748 $as_echo_n "(cached) " >&6
4750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4751 /* end confdefs.h. */
4753 # define __EXTENSIONS__ 1
4754 $ac_includes_default
4763 if ac_fn_c_try_compile "$LINENO"; then :
4764 ac_cv_safe_to_define___extensions__=yes
4766 ac_cv_safe_to_define___extensions__=no
4768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4771 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4772 test $ac_cv_safe_to_define___extensions__ = yes &&
4773 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4775 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4777 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4779 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4781 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4788 # Check whether --with-root-prefix was given.
4789 if test "${with_root_prefix+set}" = set; then :
4790 withval=$with_root_prefix; root_prefix=$withval
4794 # Check whether --enable-maintainer-mode was given.
4795 if test "${enable_maintainer_mode+set}" = set; then :
4796 enableval=$enable_maintainer_mode; if test "$enableval" = "no"
4799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode" >&5
4800 $as_echo "Disabling maintainer mode" >&6; }
4803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling maintainer mode" >&5
4804 $as_echo "Enabling maintainer mode" >&6; }
4809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode by default" >&5
4810 $as_echo "Disabling maintainer mode by default" >&6; }
4815 # Check whether --enable-symlink-install was given.
4816 if test "${enable_symlink_install+set}" = set; then :
4817 enableval=$enable_symlink_install; if test "$enableval" = "no"
4819 LINK_INSTALL_FLAGS=-f
4820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install" >&5
4821 $as_echo "Disabling symlinks for install" >&6; }
4823 LINK_INSTALL_FLAGS=-sf
4824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for install" >&5
4825 $as_echo "Enabling symlinks for install" >&6; }
4829 LINK_INSTALL_FLAGS=-f
4830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install by default" >&5
4831 $as_echo "Disabling symlinks for install by default" >&6; }
4836 relative_symlink_defined=
4837 # Check whether --enable-relative-symlinks was given.
4838 if test "${enable_relative_symlinks+set}" = set; then :
4839 enableval=$enable_relative_symlinks; if test "$enableval" = "no"
4842 relative_symlink_defined=yes
4843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
4844 $as_echo "Disabling relative symlinks for install" >&6; }
4846 SYMLINK_RELATIVE=--relative
4847 relative_symlink_defined=yes
4848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5
4849 $as_echo "Enabling relative symlinks for install" >&6; }
4853 # Check whether --enable-symlink-relative-symlinks was given.
4854 if test "${enable_symlink_relative_symlinks+set}" = set; then :
4855 enableval=$enable_symlink_relative_symlinks; if test "$enableval" = "no"
4857 SYMLINK_RELATIVE=yes
4858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
4859 $as_echo "Disabling relative symlinks for install" >&6; }
4861 SYMLINK_RELATIVE=--relative
4862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5
4863 $as_echo "Enabling relative symlinks for install" >&6; }
4867 if test -z "$relative_symlink_defined"
4870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install by default" >&5
4871 $as_echo "Disabling relative symlinks for install by default" >&6; }
4877 # Check whether --enable-symlink-build was given.
4878 if test "${enable_symlink_build+set}" = set; then :
4879 enableval=$enable_symlink_build; if test "$enableval" = "no"
4882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build" >&5
4883 $as_echo "Disabling symlinks for build" >&6; }
4886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for build" >&5
4887 $as_echo "Enabling symlinks for build" >&6; }
4892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build by default" >&5
4893 $as_echo "Disabling symlinks for build by default" >&6; }
4898 # Check whether --enable-verbose-makecmds was given.
4899 if test "${enable_verbose_makecmds+set}" = set; then :
4900 enableval=$enable_verbose_makecmds; if test "$enableval" = "no"
4902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
4903 $as_echo "Disabling verbose make commands" >&6; }
4908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling verbose make commands" >&5
4909 $as_echo "Enabling verbose make commands" >&6; }
4916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
4917 $as_echo "Disabling verbose make commands" >&6; }
4927 E2_PKG_CONFIG_STATIC=--static
4930 # Check whether --enable-elf-shlibs was given.
4931 if test "${enable_elf_shlibs+set}" = set; then :
4932 enableval=$enable_elf_shlibs; if test "$enableval" = "no"
4935 MAKEFILE_ELF=/dev/null
4936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries" >&5
4937 $as_echo "Disabling ELF shared libraries" >&6; }
4939 E2_PKG_CONFIG_STATIC=
4941 MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
4944 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
4950 LDFLAG_DYNAMIC='-Wl,-rpath-link,$(top_builddir)/lib'
4951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling ELF shared libraries" >&5
4952 $as_echo "Enabling ELF shared libraries" >&6; }
4956 MAKEFILE_ELF=/dev/null
4958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries by default" >&5
4959 $as_echo "Disabling ELF shared libraries by default" >&6; }
4965 # Check whether --enable-bsd-shlibs was given.
4966 if test "${enable_bsd_shlibs+set}" = set; then :
4967 enableval=$enable_bsd_shlibs; if test "$enableval" = "no"
4970 MAKEFILE_BSDLIB=/dev/null
4971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries" >&5
4972 $as_echo "Disabling BSD shared libraries" >&6; }
4974 E2_PKG_CONFIG_STATIC=
4976 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
4980 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib
4984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling BSD shared libraries" >&5
4985 $as_echo "Enabling BSD shared libraries" >&6; }
4989 MAKEFILE_BSDLIB=/dev/null
4991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries by default" >&5
4992 $as_echo "Disabling BSD shared libraries by default" >&6; }
4998 # Check whether --enable-profile was given.
4999 if test "${enable_profile+set}" = set; then :
5000 enableval=$enable_profile; if test "$enableval" = "no"
5003 MAKEFILE_PROFILE=/dev/null
5004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries" >&5
5005 $as_echo "Disabling profiling libraries" >&6; }
5008 MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
5009 PROFILED_LIB_EXT=_p.a
5010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building profiling libraries" >&5
5011 $as_echo "Building profiling libraries" >&6; }
5016 MAKEFILE_PROFILE=/dev/null
5017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries by default" >&5
5018 $as_echo "Disabling profiling libraries by default" >&6; }
5024 # Check whether --enable-gcov was given.
5025 if test "${enable_gcov+set}" = set; then :
5026 enableval=$enable_gcov; if test "$enableval" = "yes"
5028 CFLAGS="-g -fprofile-arcs -ftest-coverage"
5029 LDFLAGS="-fprofile-arcs -ftest-coverage"
5030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling gcov support" >&5
5031 $as_echo "Enabling gcov support" >&6; }
5036 CFLAGS_SHLIB="${CFLAGS_SHLIB:-$CFLAGS}"
5037 CFLAGS_STLIB="${CFLAGS_STLIB:-$CFLAGS}"
5038 LDFLAGS_SHLIB=${LDFLAGS_SHLIB:-$LDFLAGS}
5039 LDFLAGS_STATIC=${LDFLAGS_STATIC:-$LDFLAGS}
5040 # Check whether --enable-hardening was given.
5041 if test "${enable_hardening+set}" = set; then :
5042 enableval=$enable_hardening; if test "$enableval" = "yes"
5044 HARDEN_CFLAGS="-D_FORTIFY_SOURCE=2 -fstack-protector-strong"
5045 HARDEN_LDFLAGS="-Wl,-z,relro -Wl,-z,now"
5046 CFLAGS="$CFLAGS $HARDEN_CFLAGS -fPIE"
5047 CFLAGS_SHLIB="$CFLAGS_SHLIB $HARDEN_CFLAGS"
5048 CFLAGS_STLIB="$CFLAGS_STLIB $HARDEN_CFLAGS -fPIE"
5049 LDFLAGS="$LDFLAGS $HARDEN_LDFLAGS -fPIE -pie"
5050 LDFLAGS_STATIC="$LDFLAGS_STATIC $HARDEN_LDFLAGS"
5051 LDFLAGS_SHLIB="$LDFLAGS_SHLIB $HARDEN_LDFLAGS"
5052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling hardening support" >&5
5053 $as_echo "Enabling hardening support" >&6; }
5063 # Check whether --enable-jbd-debug was given.
5064 if test "${enable_jbd_debug+set}" = set; then :
5065 enableval=$enable_jbd_debug; if test "$enableval" = "no"
5067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging" >&5
5068 $as_echo "Disabling journal debugging" >&6; }
5071 $as_echo "#define CONFIG_JBD_DEBUG 1" >>confdefs.h
5073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling journal debugging" >&5
5074 $as_echo "Enabling journal debugging" >&6; }
5078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging by default" >&5
5079 $as_echo "Disabling journal debugging by default" >&6; }
5083 # Check whether --enable-blkid-debug was given.
5084 if test "${enable_blkid_debug+set}" = set; then :
5085 enableval=$enable_blkid_debug; if test "$enableval" = "no"
5087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging" >&5
5088 $as_echo "Disabling blkid debugging" >&6; }
5091 $as_echo "#define CONFIG_BLKID_DEBUG 1" >>confdefs.h
5093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling blkid debugging" >&5
5094 $as_echo "Enabling blkid debugging" >&6; }
5098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging by default" >&5
5099 $as_echo "Disabling blkid debugging by default" >&6; }
5103 # Check whether --enable-testio-debug was given.
5104 if test "${enable_testio_debug+set}" = set; then :
5105 enableval=$enable_testio_debug;
5106 if test "$enableval" = "no"
5108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling testio debugging" >&5
5109 $as_echo "Disabling testio debugging" >&6; }
5113 $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
5115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging" >&5
5116 $as_echo "Enabling testio debugging" >&6; }
5120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging by default" >&5
5121 $as_echo "Enabling testio debugging by default" >&6; }
5122 $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
5136 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5137 if test -n "$ac_tool_prefix"; then
5138 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5139 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5141 $as_echo_n "checking for $ac_word... " >&6; }
5142 if ${ac_cv_path_PKG_CONFIG+:} false; then :
5143 $as_echo_n "(cached) " >&6
5147 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5154 test -z "$as_dir" && as_dir=.
5155 for ac_exec_ext in '' $ac_executable_extensions; do
5156 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5157 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5168 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5169 if test -n "$PKG_CONFIG"; then
5170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5171 $as_echo "$PKG_CONFIG" >&6; }
5173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5174 $as_echo "no" >&6; }
5179 if test -z "$ac_cv_path_PKG_CONFIG"; then
5180 ac_pt_PKG_CONFIG=$PKG_CONFIG
5181 # Extract the first word of "pkg-config", so it can be a program name with args.
5182 set dummy pkg-config; ac_word=$2
5183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5184 $as_echo_n "checking for $ac_word... " >&6; }
5185 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
5186 $as_echo_n "(cached) " >&6
5188 case $ac_pt_PKG_CONFIG in
5190 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5197 test -z "$as_dir" && as_dir=.
5198 for ac_exec_ext in '' $ac_executable_extensions; do
5199 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5200 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5201 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5211 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5212 if test -n "$ac_pt_PKG_CONFIG"; then
5213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5214 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5217 $as_echo "no" >&6; }
5220 if test "x$ac_pt_PKG_CONFIG" = x; then
5223 case $cross_compiling:$ac_tool_warned in
5225 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5226 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5227 ac_tool_warned=yes ;;
5229 PKG_CONFIG=$ac_pt_PKG_CONFIG
5232 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5236 if test -n "$PKG_CONFIG"; then
5237 _pkg_min_version=0.9.0
5238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5239 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5240 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5242 $as_echo "yes" >&6; }
5244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5245 $as_echo "no" >&6; }
5254 DEPPROFILED_LIBUUID=
5256 # Check whether --enable-libuuid was given.
5257 if test "${enable_libuuid+set}" = set; then :
5258 enableval=$enable_libuuid; if test "$enableval" = "no"
5260 if test -z "$PKG_CONFIG"; then
5261 as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5
5264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
5265 $as_echo_n "checking for uuid_generate in -luuid... " >&6; }
5266 if ${ac_cv_lib_uuid_uuid_generate+:} false; then :
5267 $as_echo_n "(cached) " >&6
5269 ac_check_lib_save_LIBS=$LIBS
5271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5272 /* end confdefs.h. */
5274 /* Override any GCC internal prototype to avoid an error.
5275 Use char because int might match the return type of a GCC
5276 builtin and then its argument prototype would still apply. */
5280 char uuid_generate ();
5284 return uuid_generate ();
5289 if ac_fn_c_try_link "$LINENO"; then :
5290 ac_cv_lib_uuid_uuid_generate=yes
5292 ac_cv_lib_uuid_uuid_generate=no
5294 rm -f core conftest.err conftest.$ac_objext \
5295 conftest$ac_exeext conftest.$ac_ext
5296 LIBS=$ac_check_lib_save_LIBS
5298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
5299 $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
5300 if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then :
5301 LIBUUID=`$PKG_CONFIG --libs uuid`;
5302 STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid`
5304 as_fn_error $? "external uuid library not found" "$LINENO" 5
5307 PROFILED_LIBUUID=$LIBUUID
5309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private uuid library" >&5
5310 $as_echo "Disabling private uuid library" >&6; }
5312 LIBUUID='$(LIB)/libuuid'$LIB_EXT
5314 STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
5315 DEPSTATIC_LIBUUID=$STATIC_LIBUUID
5316 PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
5317 DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
5318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library" >&5
5319 $as_echo "Enabling private uuid library" >&6; }
5323 if test -n "$PKG_CONFIG"; then
5324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
5325 $as_echo_n "checking for uuid_generate in -luuid... " >&6; }
5326 if ${ac_cv_lib_uuid_uuid_generate+:} false; then :
5327 $as_echo_n "(cached) " >&6
5329 ac_check_lib_save_LIBS=$LIBS
5331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5332 /* end confdefs.h. */
5334 /* Override any GCC internal prototype to avoid an error.
5335 Use char because int might match the return type of a GCC
5336 builtin and then its argument prototype would still apply. */
5340 char uuid_generate ();
5344 return uuid_generate ();
5349 if ac_fn_c_try_link "$LINENO"; then :
5350 ac_cv_lib_uuid_uuid_generate=yes
5352 ac_cv_lib_uuid_uuid_generate=no
5354 rm -f core conftest.err conftest.$ac_objext \
5355 conftest$ac_exeext conftest.$ac_ext
5356 LIBS=$ac_check_lib_save_LIBS
5358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
5359 $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
5360 if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then :
5361 LIBUUID=`$PKG_CONFIG --libs uuid`;
5362 STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid`
5366 if test -n "$LIBUUID"; then
5367 PROFILED_LIBUUID=$LIBUUID
5369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using system uuid by default" >&5
5370 $as_echo "Using system uuid by default" >&6; }
5372 LIBUUID='$(LIB)/libuuid'$LIB_EXT
5374 STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
5375 DEPSTATIC_LIBUUID=$STATIC_LIBUUID
5376 PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
5377 DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
5378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library by default" >&5
5379 $as_echo "Enabling private uuid library by default" >&6; }
5398 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5399 if test -n "$ac_tool_prefix"; then
5400 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5401 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5403 $as_echo_n "checking for $ac_word... " >&6; }
5404 if ${ac_cv_path_PKG_CONFIG+:} false; then :
5405 $as_echo_n "(cached) " >&6
5409 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5416 test -z "$as_dir" && as_dir=.
5417 for ac_exec_ext in '' $ac_executable_extensions; do
5418 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5419 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5430 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5431 if test -n "$PKG_CONFIG"; then
5432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5433 $as_echo "$PKG_CONFIG" >&6; }
5435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5436 $as_echo "no" >&6; }
5441 if test -z "$ac_cv_path_PKG_CONFIG"; then
5442 ac_pt_PKG_CONFIG=$PKG_CONFIG
5443 # Extract the first word of "pkg-config", so it can be a program name with args.
5444 set dummy pkg-config; ac_word=$2
5445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5446 $as_echo_n "checking for $ac_word... " >&6; }
5447 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
5448 $as_echo_n "(cached) " >&6
5450 case $ac_pt_PKG_CONFIG in
5452 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5459 test -z "$as_dir" && as_dir=.
5460 for ac_exec_ext in '' $ac_executable_extensions; do
5461 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5462 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5463 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5473 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5474 if test -n "$ac_pt_PKG_CONFIG"; then
5475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5476 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5479 $as_echo "no" >&6; }
5482 if test "x$ac_pt_PKG_CONFIG" = x; then
5485 case $cross_compiling:$ac_tool_warned in
5487 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5488 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5489 ac_tool_warned=yes ;;
5491 PKG_CONFIG=$ac_pt_PKG_CONFIG
5494 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5498 if test -n "$PKG_CONFIG"; then
5499 _pkg_min_version=0.9.0
5500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5501 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5502 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5504 $as_echo "yes" >&6; }
5506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5507 $as_echo "no" >&6; }
5516 DEPPROFILED_LIBBLKID=
5519 # Check whether --enable-libblkid was given.
5520 if test "${enable_libblkid+set}" = set; then :
5521 enableval=$enable_libblkid; if test "$enableval" = "no"
5523 if test -z "$PKG_CONFIG"; then
5524 as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5
5527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
5528 $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
5529 if ${ac_cv_lib_blkid_blkid_get_cache+:} false; then :
5530 $as_echo_n "(cached) " >&6
5532 ac_check_lib_save_LIBS=$LIBS
5533 LIBS="-lblkid -luuid $LIBS"
5534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5535 /* end confdefs.h. */
5537 /* Override any GCC internal prototype to avoid an error.
5538 Use char because int might match the return type of a GCC
5539 builtin and then its argument prototype would still apply. */
5543 char blkid_get_cache ();
5547 return blkid_get_cache ();
5552 if ac_fn_c_try_link "$LINENO"; then :
5553 ac_cv_lib_blkid_blkid_get_cache=yes
5555 ac_cv_lib_blkid_blkid_get_cache=no
5557 rm -f core conftest.err conftest.$ac_objext \
5558 conftest$ac_exeext conftest.$ac_ext
5559 LIBS=$ac_check_lib_save_LIBS
5561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
5562 $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
5563 if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes; then :
5564 LIBBLKID=`$PKG_CONFIG --libs blkid`;
5565 STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid`
5567 as_fn_error $? "external blkid library not found" "$LINENO" 5
5571 PROFILED_LIBBLKID=$LIBBLKID
5572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private blkid library" >&5
5573 $as_echo "Disabling private blkid library" >&6; }
5575 LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5576 DEPLIBBLKID=$LIBBLKID
5577 STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5578 DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5579 PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5580 DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
5581 $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
5583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library" >&5
5584 $as_echo "Enabling private blkid library" >&6; }
5588 if test -n "$PKG_CONFIG"; then
5589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
5590 $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
5591 if ${ac_cv_lib_blkid_blkid_get_cache+:} false; then :
5592 $as_echo_n "(cached) " >&6
5594 ac_check_lib_save_LIBS=$LIBS
5595 LIBS="-lblkid $LIBS"
5596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5597 /* end confdefs.h. */
5599 /* Override any GCC internal prototype to avoid an error.
5600 Use char because int might match the return type of a GCC
5601 builtin and then its argument prototype would still apply. */
5605 char blkid_get_cache ();
5609 return blkid_get_cache ();
5614 if ac_fn_c_try_link "$LINENO"; then :
5615 ac_cv_lib_blkid_blkid_get_cache=yes
5617 ac_cv_lib_blkid_blkid_get_cache=no
5619 rm -f core conftest.err conftest.$ac_objext \
5620 conftest$ac_exeext conftest.$ac_ext
5621 LIBS=$ac_check_lib_save_LIBS
5623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
5624 $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
5625 if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes; then :
5626 LIBBLKID=`$PKG_CONFIG --libs blkid`;
5627 STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid`
5631 if test -n "$LIBBLKID"; then
5633 PROFILED_LIBBLKID=$LIBBLKID
5634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using system blkid library by default" >&5
5635 $as_echo "Using system blkid library by default" >&6; }
5637 LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5638 DEPLIBBLKID=$LIBBLKID
5639 STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5640 DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5641 PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5642 DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
5643 $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
5645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library by default" >&5
5646 $as_echo "Enabling private blkid library by default" >&6; }
5659 # Check whether --enable-backtrace was given.
5660 if test "${enable_backtrace+set}" = set; then :
5661 enableval=$enable_backtrace; if test "$enableval" = "no"
5663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling use of backtrace" >&5
5664 $as_echo "Disabling use of backtrace" >&6; }
5665 $as_echo "#define DISABLE_BACKTRACE 1" >>confdefs.h
5668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace" >&5
5669 $as_echo "Enabling use of backtrace" >&6; }
5673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace by default" >&5
5674 $as_echo "Enabling use of backtrace by default" >&6; }
5678 # Check whether --enable-debugfs was given.
5679 if test "${enable_debugfs+set}" = set; then :
5680 enableval=$enable_debugfs; if test "$enableval" = "no"
5682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling debugfs support" >&5
5683 $as_echo "Disabling debugfs support" >&6; }
5687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support" >&5
5688 $as_echo "Enabling debugfs support" >&6; }
5692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support by default" >&5
5693 $as_echo "Enabling debugfs support by default" >&6; }
5699 # Check whether --enable-imager was given.
5700 if test "${enable_imager+set}" = set; then :
5701 enableval=$enable_imager; if test "$enableval" = "no"
5703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2image support" >&5
5704 $as_echo "Disabling e2image support" >&6; }
5708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support" >&5
5709 $as_echo "Enabling e2image support" >&6; }
5713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support by default" >&5
5714 $as_echo "Enabling e2image support by default" >&6; }
5720 # Check whether --enable-resizer was given.
5721 if test "${enable_resizer+set}" = set; then :
5722 enableval=$enable_resizer; if test "$enableval" = "no"
5724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2resize support" >&5
5725 $as_echo "Disabling e2resize support" >&6; }
5729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support" >&5
5730 $as_echo "Enabling e2resize support" >&6; }
5734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support by default" >&5
5735 $as_echo "Enabling e2resize support by default" >&6; }
5741 # Check whether --enable-defrag was given.
5742 if test "${enable_defrag+set}" = set; then :
5743 enableval=$enable_defrag; if test "$enableval" = "no"
5745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support" >&5
5746 $as_echo "Disabling e4defrag support" >&6; }
5750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support" >&5
5751 $as_echo "Enabling e4defrag support" >&6; }
5755 if test -z "$WITH_DIET_LIBC"
5757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support by default" >&5
5758 $as_echo "Enabling e4defrag support by default" >&6; }
5761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support by default" >&5
5762 $as_echo "Disabling e4defrag support by default" >&6; }
5769 # Check whether --enable-fsck was given.
5770 if test "${enable_fsck+set}" = set; then :
5771 enableval=$enable_fsck; if test "$enableval" = "no"
5773 FSCK_PROG='' FSCK_MAN=''
5774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper" >&5
5775 $as_echo "Not building fsck wrapper" >&6; }
5777 FSCK_PROG=fsck FSCK_MAN=fsck.8
5778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper" >&5
5779 $as_echo "Building fsck wrapper" >&6; }
5785 FSCK_PROG='' FSCK_MAN=''
5786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper by default" >&5
5787 $as_echo "Not building fsck wrapper by default" >&6; }
5790 FSCK_PROG=fsck FSCK_MAN=fsck.8
5791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper by default" >&5
5792 $as_echo "Building fsck wrapper by default" >&6; }
5799 # Check whether --enable-e2initrd-helper was given.
5800 if test "${enable_e2initrd_helper+set}" = set; then :
5801 enableval=$enable_e2initrd_helper; if test "$enableval" = "no"
5803 E2INITRD_PROG='' E2INITRD_MAN=''
5804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building e2initrd helper" >&5
5805 $as_echo "Not building e2initrd helper" >&6; }
5807 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
5808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper" >&5
5809 $as_echo "Building e2initrd helper" >&6; }
5813 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
5814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper by default" >&5
5815 $as_echo "Building e2initrd helper by default" >&6; }
5821 # Check whether --enable-tls was given.
5822 if test "${enable_tls+set}" = set; then :
5823 enableval=$enable_tls; if test "$enableval" = "no"
5826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling thread local support" >&5
5827 $as_echo "Disabling thread local support" >&6; }
5830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling thread local support" >&5
5831 $as_echo "Enabling thread local support" >&6; }
5835 if test -n "$WITH_DIET_LIBC"
5838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Diet libc does not support thread local support" >&5
5839 $as_echo "Diet libc does not support thread local support" >&6; }
5842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Try using thread local support by default" >&5
5843 $as_echo "Try using thread local support by default" >&6; }
5848 if test "$try_tls" = "yes"
5851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread local storage (TLS) class" >&5
5852 $as_echo_n "checking for thread local storage (TLS) class... " >&6; }
5853 if ${ac_cv_tls+:} false; then :
5854 $as_echo_n "(cached) " >&6
5857 ax_tls_keywords="__thread __declspec(thread) none"
5858 for ax_tls_keyword in $ax_tls_keywords; do
5859 case $ax_tls_keyword in
5860 none) ac_cv_tls=none ; break ;;
5862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5863 /* end confdefs.h. */
5867 static $ax_tls_keyword int bar;
5878 if ac_fn_c_try_compile "$LINENO"; then :
5879 ac_cv_tls=$ax_tls_keyword ; break
5884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5891 if test "$ac_cv_tls" != "none"; then
5893 cat >>confdefs.h <<_ACEOF
5894 #define TLS $ac_cv_tls
5898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tls" >&5
5899 $as_echo "$ac_cv_tls" >&6; }
5903 # Check whether --enable-uuidd was given.
5904 if test "${enable_uuidd+set}" = set; then :
5905 enableval=$enable_uuidd; if test "$enableval" = "no"
5907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building uuidd" >&5
5908 $as_echo "Not building uuidd" >&6; }
5911 $as_echo "#define USE_UUIDD 1" >>confdefs.h
5914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd" >&5
5915 $as_echo "Building uuidd" >&6; }
5919 $as_echo "#define USE_UUIDD 1" >>confdefs.h
5921 if test -z "$UUID_CMT"
5924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd by default" >&5
5925 $as_echo "Building uuidd by default" >&6; }
5928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling uuidd by default" >&5
5929 $as_echo "Disabling uuidd by default" >&6; }
5936 # Check whether --enable-mmp was given.
5937 if test "${enable_mmp+set}" = set; then :
5938 enableval=$enable_mmp; if test "$enableval" = "no"
5940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling mmp support" >&5
5941 $as_echo "Disabling mmp support" >&6; }
5943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support" >&5
5944 $as_echo "Enabling mmp support" >&6; }
5945 $as_echo "#define CONFIG_MMP 1" >>confdefs.h
5950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support by default" >&5
5951 $as_echo "Enabling mmp support by default" >&6; }
5952 $as_echo "#define CONFIG_MMP 1" >>confdefs.h
5958 # Check whether --enable-tdb was given.
5959 if test "${enable_tdb+set}" = set; then :
5960 enableval=$enable_tdb; if test "$enableval" = "no"
5962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling tdb support" >&5
5963 $as_echo "Disabling tdb support" >&6; }
5965 TDB_MAN_COMMENT='.\"'
5967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling tdb support" >&5
5968 $as_echo "Enabling tdb support" >&6; }
5969 $as_echo "#define CONFIG_TDB 1" >>confdefs.h
5976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support by default" >&5
5977 $as_echo "Enabling mmp support by default" >&6; }
5978 $as_echo "#define CONFIG_TDB 1" >>confdefs.h
5988 # Check whether --enable-bmap-stats was given.
5989 if test "${enable_bmap_stats+set}" = set; then :
5990 enableval=$enable_bmap_stats; if test "$enableval" = "no"
5992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling bitmap statistics support" >&5
5993 $as_echo "Disabling bitmap statistics support" >&6; }
5995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling bitmap statistics support" >&5
5996 $as_echo "Enabling bitmap statistics support" >&6; }
5997 $as_echo "#define ENABLE_BMAP_STATS 1" >>confdefs.h
6002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling bitmap statistics support by default" >&5
6003 $as_echo "Enabling bitmap statistics support by default" >&6; }
6004 $as_echo "#define ENABLE_BMAP_STATS 1" >>confdefs.h
6010 # Check whether --enable-bmap-stats-ops was given.
6011 if test "${enable_bmap_stats_ops+set}" = set; then :
6012 enableval=$enable_bmap_stats_ops; if test "$enableval" = "no"
6014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling additional bitmap statistics" >&5
6015 $as_echo "Disabling additional bitmap statistics" >&6; }
6017 if test "x${enable_bmap_stats}" = "xno"; then :
6018 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6019 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6020 as_fn_error $? "Error --enable-bmap-stats-ops requires bmap-stats
6021 See \`config.log' for more details" "$LINENO" 5; }
6024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling additional bitmap statistics" >&5
6025 $as_echo "Enabling additional bitmap statistics" >&6; }
6026 $as_echo "#define ENABLE_BMAP_STATS_OPS 1" >>confdefs.h
6031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling additional bitmap statistics by default" >&5
6032 $as_echo "Disabling additional bitmap statistics by default" >&6; }
6036 MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
6038 GETTEXT_PACKAGE=e2fsprogs
6040 VERSION="$E2FSPROGS_VERSION"
6043 cat >>confdefs.h <<_ACEOF
6044 #define PACKAGE "$PACKAGE"
6048 cat >>confdefs.h <<_ACEOF
6049 #define VERSION "$VERSION"
6056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6057 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6059 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6060 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
6061 $as_echo_n "(cached) " >&6
6063 cat >conftest.make <<\_ACEOF
6066 @echo '@@@%%%=$(MAKE)=@@@%%%'
6068 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
6069 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6071 eval ac_cv_prog_make_${ac_make}_set=yes;;
6073 eval ac_cv_prog_make_${ac_make}_set=no;;
6077 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6079 $as_echo "yes" >&6; }
6082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6083 $as_echo "no" >&6; }
6084 SET_MAKE="MAKE=${MAKE-make}"
6087 # Find a good install program. We prefer a C program (faster),
6088 # so one script is as good as another. But avoid the broken or
6089 # incompatible versions:
6090 # SysV /etc/install, /usr/sbin/install
6091 # SunOS /usr/etc/install
6092 # IRIX /sbin/install
6094 # AmigaOS /C/install, which installs bootblocks on floppy discs
6095 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6096 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6097 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6098 # OS/2's system install, which has a completely different semantic
6099 # ./install, which can be erroneously created by make from ./install.sh.
6100 # Reject install programs that cannot install multiple files.
6101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
6102 $as_echo_n "checking for a BSD-compatible install... " >&6; }
6103 if test -z "$INSTALL"; then
6104 if ${ac_cv_path_install+:} false; then :
6105 $as_echo_n "(cached) " >&6
6107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6111 test -z "$as_dir" && as_dir=.
6112 # Account for people who put trailing slashes in PATH elements.
6113 case $as_dir/ in #((
6114 ./ | .// | /[cC]/* | \
6115 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6116 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
6119 # OSF1 and SCO ODT 3.0 have their own names for install.
6120 # Don't use installbsd from OSF since it installs stuff as root
6122 for ac_prog in ginstall scoinst install; do
6123 for ac_exec_ext in '' $ac_executable_extensions; do
6124 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
6125 if test $ac_prog = install &&
6126 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6127 # AIX install. It has an incompatible calling convention.
6129 elif test $ac_prog = install &&
6130 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6131 # program-specific install script used by HP pwplus--don't use.
6134 rm -rf conftest.one conftest.two conftest.dir
6135 echo one > conftest.one
6136 echo two > conftest.two
6138 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
6139 test -s conftest.one && test -s conftest.two &&
6140 test -s conftest.dir/conftest.one &&
6141 test -s conftest.dir/conftest.two
6143 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6156 rm -rf conftest.one conftest.two conftest.dir
6159 if test "${ac_cv_path_install+set}" = set; then
6160 INSTALL=$ac_cv_path_install
6162 # As a last resort, use the slow shell script. Don't cache a
6163 # value for INSTALL within a source directory, because that will
6164 # break other packages using the cache if that directory is
6165 # removed, or if the value is a relative name.
6166 INSTALL=$ac_install_sh
6169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
6170 $as_echo "$INSTALL" >&6; }
6172 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6173 # It thinks the first close brace ends the variable substitution.
6174 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6176 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6178 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
6181 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
6182 if test -z "$MKDIR_P"; then
6183 if ${ac_cv_path_mkdir+:} false; then :
6184 $as_echo_n "(cached) " >&6
6186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6187 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
6190 test -z "$as_dir" && as_dir=.
6191 for ac_prog in mkdir gmkdir; do
6192 for ac_exec_ext in '' $ac_executable_extensions; do
6193 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
6194 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
6195 'mkdir (GNU coreutils) '* | \
6196 'mkdir (coreutils) '* | \
6197 'mkdir (fileutils) '4.1*)
6198 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
6208 test -d ./--version && rmdir ./--version
6209 if test "${ac_cv_path_mkdir+set}" = set; then
6210 MKDIR_P="$ac_cv_path_mkdir -p"
6212 # As a last resort, use the slow shell script. Don't cache a
6213 # value for MKDIR_P within a source directory, because that will
6214 # break other packages using the cache if that directory is
6215 # removed, or if the value is a relative name.
6216 MKDIR_P="$ac_install_sh -d"
6219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
6220 $as_echo "$MKDIR_P" >&6; }
6222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6223 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6224 if ${ac_cv_path_SED+:} false; then :
6225 $as_echo_n "(cached) " >&6
6227 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6228 for ac_i in 1 2 3 4 5 6 7; do
6229 ac_script="$ac_script$as_nl$ac_script"
6231 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6232 { ac_script=; unset ac_script;}
6233 if test -z "$SED"; then
6234 ac_path_SED_found=false
6235 # Loop through the user's path and test for each of PROGNAME-LIST
6236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6240 test -z "$as_dir" && as_dir=.
6241 for ac_prog in sed gsed; do
6242 for ac_exec_ext in '' $ac_executable_extensions; do
6243 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6244 as_fn_executable_p "$ac_path_SED" || continue
6245 # Check for GNU ac_path_SED and select it if it is found.
6246 # Check for GNU $ac_path_SED
6247 case `"$ac_path_SED" --version 2>&1` in
6249 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6252 $as_echo_n 0123456789 >"conftest.in"
6255 cat "conftest.in" "conftest.in" >"conftest.tmp"
6256 mv "conftest.tmp" "conftest.in"
6257 cp "conftest.in" "conftest.nl"
6258 $as_echo '' >> "conftest.nl"
6259 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6260 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6261 as_fn_arith $ac_count + 1 && ac_count=$as_val
6262 if test $ac_count -gt ${ac_path_SED_max-0}; then
6263 # Best one so far, save it but keep looking for a better one
6264 ac_cv_path_SED="$ac_path_SED"
6265 ac_path_SED_max=$ac_count
6267 # 10*(2^10) chars as input seems more than enough
6268 test $ac_count -gt 10 && break
6270 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6273 $ac_path_SED_found && break 3
6278 if test -z "$ac_cv_path_SED"; then
6279 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6287 $as_echo "$ac_cv_path_SED" >&6; }
6288 SED="$ac_cv_path_SED"
6292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
6293 $as_echo_n "checking whether NLS is requested... " >&6; }
6294 # Check whether --enable-nls was given.
6295 if test "${enable_nls+set}" = set; then :
6296 enableval=$enable_nls; USE_NLS=$enableval
6301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
6302 $as_echo "$USE_NLS" >&6; }
6307 GETTEXT_MACRO_VERSION=0.18
6312 # Prepare PATH_SEPARATOR.
6313 # The user is always right.
6314 if test "${PATH_SEPARATOR+set}" != set; then
6315 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
6316 # contains only /bin. Note that ksh looks also at the FPATH variable,
6317 # so we have to set that as well for the test.
6319 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6320 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6321 || PATH_SEPARATOR=';'
6325 # Find out how to test for executable files. Don't use a zero-byte file,
6326 # as systems may use methods other than mode bits to determine executability.
6327 cat >conf$$.file <<_ASEOF
6331 chmod +x conf$$.file
6332 if test -x conf$$.file >/dev/null 2>&1; then
6333 ac_executable_p="test -x"
6335 ac_executable_p="test -f"
6339 # Extract the first word of "msgfmt", so it can be a program name with args.
6340 set dummy msgfmt; ac_word=$2
6341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6342 $as_echo_n "checking for $ac_word... " >&6; }
6343 if ${ac_cv_path_MSGFMT+:} false; then :
6344 $as_echo_n "(cached) " >&6
6348 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
6351 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6352 for ac_dir in $PATH; do
6354 test -z "$ac_dir" && ac_dir=.
6355 for ac_exec_ext in '' $ac_executable_extensions; do
6356 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6357 echo "$as_me: trying $ac_dir/$ac_word..." >&5
6358 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
6359 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6360 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
6367 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
6371 MSGFMT="$ac_cv_path_MSGFMT"
6372 if test "$MSGFMT" != ":"; then
6373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
6374 $as_echo "$MSGFMT" >&6; }
6376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6377 $as_echo "no" >&6; }
6380 # Extract the first word of "gmsgfmt", so it can be a program name with args.
6381 set dummy gmsgfmt; ac_word=$2
6382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6383 $as_echo_n "checking for $ac_word... " >&6; }
6384 if ${ac_cv_path_GMSGFMT+:} false; then :
6385 $as_echo_n "(cached) " >&6
6389 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
6392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6396 test -z "$as_dir" && as_dir=.
6397 for ac_exec_ext in '' $ac_executable_extensions; do
6398 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6399 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
6400 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6407 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
6411 GMSGFMT=$ac_cv_path_GMSGFMT
6412 if test -n "$GMSGFMT"; then
6413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
6414 $as_echo "$GMSGFMT" >&6; }
6416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6417 $as_echo "no" >&6; }
6422 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6423 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
6424 *) MSGFMT_015=$MSGFMT ;;
6427 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6428 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
6429 *) GMSGFMT_015=$GMSGFMT ;;
6434 # Prepare PATH_SEPARATOR.
6435 # The user is always right.
6436 if test "${PATH_SEPARATOR+set}" != set; then
6437 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
6438 # contains only /bin. Note that ksh looks also at the FPATH variable,
6439 # so we have to set that as well for the test.
6441 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6442 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6443 || PATH_SEPARATOR=';'
6447 # Find out how to test for executable files. Don't use a zero-byte file,
6448 # as systems may use methods other than mode bits to determine executability.
6449 cat >conf$$.file <<_ASEOF
6453 chmod +x conf$$.file
6454 if test -x conf$$.file >/dev/null 2>&1; then
6455 ac_executable_p="test -x"
6457 ac_executable_p="test -f"
6461 # Extract the first word of "xgettext", so it can be a program name with args.
6462 set dummy xgettext; ac_word=$2
6463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6464 $as_echo_n "checking for $ac_word... " >&6; }
6465 if ${ac_cv_path_XGETTEXT+:} false; then :
6466 $as_echo_n "(cached) " >&6
6470 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
6473 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6474 for ac_dir in $PATH; do
6476 test -z "$ac_dir" && ac_dir=.
6477 for ac_exec_ext in '' $ac_executable_extensions; do
6478 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6479 echo "$as_me: trying $ac_dir/$ac_word..." >&5
6480 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
6481 (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
6482 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
6489 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
6493 XGETTEXT="$ac_cv_path_XGETTEXT"
6494 if test "$XGETTEXT" != ":"; then
6495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
6496 $as_echo "$XGETTEXT" >&6; }
6498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6499 $as_echo "no" >&6; }
6504 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6505 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
6506 *) XGETTEXT_015=$XGETTEXT ;;
6511 # Prepare PATH_SEPARATOR.
6512 # The user is always right.
6513 if test "${PATH_SEPARATOR+set}" != set; then
6514 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
6515 # contains only /bin. Note that ksh looks also at the FPATH variable,
6516 # so we have to set that as well for the test.
6518 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6519 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6520 || PATH_SEPARATOR=';'
6524 # Find out how to test for executable files. Don't use a zero-byte file,
6525 # as systems may use methods other than mode bits to determine executability.
6526 cat >conf$$.file <<_ASEOF
6530 chmod +x conf$$.file
6531 if test -x conf$$.file >/dev/null 2>&1; then
6532 ac_executable_p="test -x"
6534 ac_executable_p="test -f"
6538 # Extract the first word of "msgmerge", so it can be a program name with args.
6539 set dummy msgmerge; ac_word=$2
6540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6541 $as_echo_n "checking for $ac_word... " >&6; }
6542 if ${ac_cv_path_MSGMERGE+:} false; then :
6543 $as_echo_n "(cached) " >&6
6547 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
6550 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6551 for ac_dir in $PATH; do
6553 test -z "$ac_dir" && ac_dir=.
6554 for ac_exec_ext in '' $ac_executable_extensions; do
6555 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6556 echo "$as_me: trying $ac_dir/$ac_word..." >&5
6557 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
6558 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
6565 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
6569 MSGMERGE="$ac_cv_path_MSGMERGE"
6570 if test "$MSGMERGE" != ":"; then
6571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
6572 $as_echo "$MSGMERGE" >&6; }
6574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6575 $as_echo "no" >&6; }
6579 test -n "$localedir" || localedir='${datadir}/locale'
6582 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
6585 ac_config_commands="$ac_config_commands po-directories"
6589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2 or newer" >&5
6590 $as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; }
6591 if ${ac_cv_gnu_library_2+:} false; then :
6592 $as_echo_n "(cached) " >&6
6594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6595 /* end confdefs.h. */
6597 #include <features.h>
6598 #ifdef __GNU_LIBRARY__
6599 #if (__GLIBC__ >= 2) && !defined __UCLIBC__
6605 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6606 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
6607 ac_cv_gnu_library_2=yes
6609 ac_cv_gnu_library_2=no
6616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2" >&5
6617 $as_echo "$ac_cv_gnu_library_2" >&6; }
6619 GLIBC2="$ac_cv_gnu_library_2"
6622 if test -n "$ac_tool_prefix"; then
6623 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6624 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6626 $as_echo_n "checking for $ac_word... " >&6; }
6627 if ${ac_cv_prog_RANLIB+:} false; then :
6628 $as_echo_n "(cached) " >&6
6630 if test -n "$RANLIB"; then
6631 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6637 test -z "$as_dir" && as_dir=.
6638 for ac_exec_ext in '' $ac_executable_extensions; do
6639 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6640 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6650 RANLIB=$ac_cv_prog_RANLIB
6651 if test -n "$RANLIB"; then
6652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6653 $as_echo "$RANLIB" >&6; }
6655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6656 $as_echo "no" >&6; }
6661 if test -z "$ac_cv_prog_RANLIB"; then
6662 ac_ct_RANLIB=$RANLIB
6663 # Extract the first word of "ranlib", so it can be a program name with args.
6664 set dummy ranlib; ac_word=$2
6665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6666 $as_echo_n "checking for $ac_word... " >&6; }
6667 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6668 $as_echo_n "(cached) " >&6
6670 if test -n "$ac_ct_RANLIB"; then
6671 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6677 test -z "$as_dir" && as_dir=.
6678 for ac_exec_ext in '' $ac_executable_extensions; do
6679 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6680 ac_cv_prog_ac_ct_RANLIB="ranlib"
6681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6690 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6691 if test -n "$ac_ct_RANLIB"; then
6692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6693 $as_echo "$ac_ct_RANLIB" >&6; }
6695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6696 $as_echo "no" >&6; }
6699 if test "x$ac_ct_RANLIB" = x; then
6702 case $cross_compiling:$ac_tool_warned in
6704 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6705 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6706 ac_tool_warned=yes ;;
6708 RANLIB=$ac_ct_RANLIB
6711 RANLIB="$ac_cv_prog_RANLIB"
6718 if test -n "$GCC"; then
6719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the -Werror option is usable" >&5
6720 $as_echo_n "checking whether the -Werror option is usable... " >&6; }
6721 if ${gl_cv_cc_vis_werror+:} false; then :
6722 $as_echo_n "(cached) " >&6
6725 gl_save_CFLAGS="$CFLAGS"
6726 CFLAGS="$CFLAGS -Werror"
6727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6728 /* end confdefs.h. */
6738 if ac_fn_c_try_compile "$LINENO"; then :
6739 gl_cv_cc_vis_werror=yes
6741 gl_cv_cc_vis_werror=no
6743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6744 CFLAGS="$gl_save_CFLAGS"
6747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_vis_werror" >&5
6748 $as_echo "$gl_cv_cc_vis_werror" >&6; }
6749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5
6750 $as_echo_n "checking for simple visibility declarations... " >&6; }
6751 if ${gl_cv_cc_visibility+:} false; then :
6752 $as_echo_n "(cached) " >&6
6755 gl_save_CFLAGS="$CFLAGS"
6756 CFLAGS="$CFLAGS -fvisibility=hidden"
6757 if test $gl_cv_cc_vis_werror = yes; then
6758 CFLAGS="$CFLAGS -Werror"
6760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6761 /* end confdefs.h. */
6762 extern __attribute__((__visibility__("hidden"))) int hiddenvar;
6763 extern __attribute__((__visibility__("default"))) int exportedvar;
6764 extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
6765 extern __attribute__((__visibility__("default"))) int exportedfunc (void);
6766 void dummyfunc (void) {}
6776 if ac_fn_c_try_compile "$LINENO"; then :
6777 gl_cv_cc_visibility=yes
6779 gl_cv_cc_visibility=no
6781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6782 CFLAGS="$gl_save_CFLAGS"
6785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5
6786 $as_echo "$gl_cv_cc_visibility" >&6; }
6787 if test $gl_cv_cc_visibility = yes; then
6788 CFLAG_VISIBILITY="-fvisibility=hidden"
6795 cat >>confdefs.h <<_ACEOF
6796 #define HAVE_VISIBILITY $HAVE_VISIBILITY
6800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
6801 $as_echo_n "checking for inline... " >&6; }
6802 if ${ac_cv_c_inline+:} false; then :
6803 $as_echo_n "(cached) " >&6
6806 for ac_kw in inline __inline__ __inline; do
6807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6808 /* end confdefs.h. */
6811 static $ac_kw foo_t static_foo () {return 0; }
6812 $ac_kw foo_t foo () {return 0; }
6816 if ac_fn_c_try_compile "$LINENO"; then :
6817 ac_cv_c_inline=$ac_kw
6819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6820 test "$ac_cv_c_inline" != no && break
6824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
6825 $as_echo "$ac_cv_c_inline" >&6; }
6827 case $ac_cv_c_inline in
6830 case $ac_cv_c_inline in
6832 *) ac_val=$ac_cv_c_inline;;
6834 cat >>confdefs.h <<_ACEOF
6836 #define inline $ac_val
6842 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6843 if test "x$ac_cv_type_size_t" = xyes; then :
6847 cat >>confdefs.h <<_ACEOF
6848 #define size_t unsigned int
6854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
6855 $as_echo_n "checking for stdint.h... " >&6; }
6856 if ${gl_cv_header_stdint_h+:} false; then :
6857 $as_echo_n "(cached) " >&6
6859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6860 /* end confdefs.h. */
6861 #include <sys/types.h>
6866 uintmax_t i = (uintmax_t) -1; return !i;
6871 if ac_fn_c_try_compile "$LINENO"; then :
6872 gl_cv_header_stdint_h=yes
6874 gl_cv_header_stdint_h=no
6876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
6879 $as_echo "$gl_cv_header_stdint_h" >&6; }
6880 if test $gl_cv_header_stdint_h = yes; then
6882 cat >>confdefs.h <<_ACEOF
6883 #define HAVE_STDINT_H_WITH_UINTMAX 1
6888 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6889 # for constant arguments. Useless!
6890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
6891 $as_echo_n "checking for working alloca.h... " >&6; }
6892 if ${ac_cv_working_alloca_h+:} false; then :
6893 $as_echo_n "(cached) " >&6
6895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6896 /* end confdefs.h. */
6901 char *p = (char *) alloca (2 * sizeof (int));
6907 if ac_fn_c_try_link "$LINENO"; then :
6908 ac_cv_working_alloca_h=yes
6910 ac_cv_working_alloca_h=no
6912 rm -f core conftest.err conftest.$ac_objext \
6913 conftest$ac_exeext conftest.$ac_ext
6915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
6916 $as_echo "$ac_cv_working_alloca_h" >&6; }
6917 if test $ac_cv_working_alloca_h = yes; then
6919 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
6923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
6924 $as_echo_n "checking for alloca... " >&6; }
6925 if ${ac_cv_func_alloca_works+:} false; then :
6926 $as_echo_n "(cached) " >&6
6928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6929 /* end confdefs.h. */
6931 # define alloca __builtin_alloca
6934 # include <malloc.h>
6935 # define alloca _alloca
6937 # ifdef HAVE_ALLOCA_H
6938 # include <alloca.h>
6943 # ifndef alloca /* predefined by HP cc +Olibcalls */
6944 void *alloca (size_t);
6954 char *p = (char *) alloca (1);
6960 if ac_fn_c_try_link "$LINENO"; then :
6961 ac_cv_func_alloca_works=yes
6963 ac_cv_func_alloca_works=no
6965 rm -f core conftest.err conftest.$ac_objext \
6966 conftest$ac_exeext conftest.$ac_ext
6968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
6969 $as_echo "$ac_cv_func_alloca_works" >&6; }
6971 if test $ac_cv_func_alloca_works = yes; then
6973 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
6976 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6977 # that cause trouble. Some versions do not even contain alloca or
6978 # contain a buggy version. If you still want to use their alloca,
6979 # use ar to extract alloca.o from them instead of compiling alloca.c.
6981 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
6983 $as_echo "#define C_ALLOCA 1" >>confdefs.h
6986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
6987 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
6988 if ${ac_cv_os_cray+:} false; then :
6989 $as_echo_n "(cached) " >&6
6991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6992 /* end confdefs.h. */
6993 #if defined CRAY && ! defined CRAY2
7000 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7001 $EGREP "webecray" >/dev/null 2>&1; then :
7009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
7010 $as_echo "$ac_cv_os_cray" >&6; }
7011 if test $ac_cv_os_cray = yes; then
7012 for ac_func in _getb67 GETB67 getb67; do
7013 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7014 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7015 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7017 cat >>confdefs.h <<_ACEOF
7018 #define CRAY_STACKSEG_END $ac_func
7027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
7028 $as_echo_n "checking stack direction for C alloca... " >&6; }
7029 if ${ac_cv_c_stack_direction+:} false; then :
7030 $as_echo_n "(cached) " >&6
7032 if test "$cross_compiling" = yes; then :
7033 ac_cv_c_stack_direction=0
7035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7036 /* end confdefs.h. */
7037 $ac_includes_default
7039 find_stack_direction (int *addr, int depth)
7044 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
7045 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
7050 main (int argc, char **argv)
7052 return find_stack_direction (0, argc + !argv + 20) < 0;
7055 if ac_fn_c_try_run "$LINENO"; then :
7056 ac_cv_c_stack_direction=1
7058 ac_cv_c_stack_direction=-1
7060 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7061 conftest.$ac_objext conftest.beam conftest.$ac_ext
7065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
7066 $as_echo "$ac_cv_c_stack_direction" >&6; }
7067 cat >>confdefs.h <<_ACEOF
7068 #define STACK_DIRECTION $ac_cv_c_stack_direction
7077 for ac_header in $ac_header_list
7079 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7080 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7082 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7083 cat >>confdefs.h <<_ACEOF
7084 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7098 for ac_func in getpagesize
7100 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
7101 if test "x$ac_cv_func_getpagesize" = xyes; then :
7102 cat >>confdefs.h <<_ACEOF
7103 #define HAVE_GETPAGESIZE 1
7109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
7110 $as_echo_n "checking for working mmap... " >&6; }
7111 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
7112 $as_echo_n "(cached) " >&6
7114 if test "$cross_compiling" = yes; then :
7115 ac_cv_func_mmap_fixed_mapped=no
7117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7118 /* end confdefs.h. */
7119 $ac_includes_default
7120 /* malloc might have been renamed as rpl_malloc. */
7123 /* Thanks to Mike Haertel and Jim Avera for this test.
7124 Here is a matrix of mmap possibilities:
7125 mmap private not fixed
7126 mmap private fixed at somewhere currently unmapped
7127 mmap private fixed at somewhere already mapped
7128 mmap shared not fixed
7129 mmap shared fixed at somewhere currently unmapped
7130 mmap shared fixed at somewhere already mapped
7131 For private mappings, we should verify that changes cannot be read()
7132 back from the file, nor mmap's back from the file at a different
7133 address. (There have been systems where private was not correctly
7134 implemented like the infamous i386 svr4.0, and systems where the
7135 VM page cache was not coherent with the file system buffer cache
7136 like early versions of FreeBSD and possibly contemporary NetBSD.)
7137 For shared mappings, we should conversely verify that changes get
7138 propagated back to all the places they're supposed to be.
7140 Grep wants private fixed already mapped.
7141 The main things grep needs to know about mmap are:
7142 * does it exist and is it safe to write into the mmap'd area
7143 * how to use it (BSD variants) */
7146 #include <sys/mman.h>
7148 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7152 /* This mess was copied from the GNU getpagesize.h. */
7153 #ifndef HAVE_GETPAGESIZE
7154 # ifdef _SC_PAGESIZE
7155 # define getpagesize() sysconf(_SC_PAGESIZE)
7156 # else /* no _SC_PAGESIZE */
7157 # ifdef HAVE_SYS_PARAM_H
7158 # include <sys/param.h>
7159 # ifdef EXEC_PAGESIZE
7160 # define getpagesize() EXEC_PAGESIZE
7161 # else /* no EXEC_PAGESIZE */
7163 # define getpagesize() NBPG * CLSIZE
7166 # endif /* no CLSIZE */
7167 # else /* no NBPG */
7169 # define getpagesize() NBPC
7170 # else /* no NBPC */
7172 # define getpagesize() PAGESIZE
7173 # endif /* PAGESIZE */
7174 # endif /* no NBPC */
7175 # endif /* no NBPG */
7176 # endif /* no EXEC_PAGESIZE */
7177 # else /* no HAVE_SYS_PARAM_H */
7178 # define getpagesize() 8192 /* punt totally */
7179 # endif /* no HAVE_SYS_PARAM_H */
7180 # endif /* no _SC_PAGESIZE */
7182 #endif /* no HAVE_GETPAGESIZE */
7187 char *data, *data2, *data3;
7192 pagesize = getpagesize ();
7194 /* First, make a file with some known garbage in it. */
7195 data = (char *) malloc (pagesize);
7198 for (i = 0; i < pagesize; ++i)
7199 *(data + i) = rand ();
7201 fd = creat ("conftest.mmap", 0600);
7204 if (write (fd, data, pagesize) != pagesize)
7208 /* Next, check that the tail of a page is zero-filled. File must have
7209 non-zero length, otherwise we risk SIGBUS for entire page. */
7210 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7214 if (write (fd2, cdata2, 1) != 1)
7216 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7217 if (data2 == MAP_FAILED)
7219 for (i = 0; i < pagesize; ++i)
7223 if (munmap (data2, pagesize))
7226 /* Next, try to mmap the file at a fixed address which already has
7227 something else allocated at it. If we can, also make sure that
7228 we see the same garbage. */
7229 fd = open ("conftest.mmap", O_RDWR);
7232 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7233 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7235 for (i = 0; i < pagesize; ++i)
7236 if (*(data + i) != *(data2 + i))
7239 /* Finally, make sure that changes to the mapped area do not
7240 percolate back to the file as seen by read(). (This is a bug on
7241 some variants of i386 svr4.0.) */
7242 for (i = 0; i < pagesize; ++i)
7243 *(data2 + i) = *(data2 + i) + 1;
7244 data3 = (char *) malloc (pagesize);
7247 if (read (fd, data3, pagesize) != pagesize)
7249 for (i = 0; i < pagesize; ++i)
7250 if (*(data + i) != *(data3 + i))
7256 if ac_fn_c_try_run "$LINENO"; then :
7257 ac_cv_func_mmap_fixed_mapped=yes
7259 ac_cv_func_mmap_fixed_mapped=no
7261 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7262 conftest.$ac_objext conftest.beam conftest.$ac_ext
7266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
7267 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
7268 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7270 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
7273 rm -f conftest.mmap conftest.txt
7277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
7278 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
7279 if ${gt_cv_int_divbyzero_sigfpe+:} false; then :
7280 $as_echo_n "(cached) " >&6
7283 gt_cv_int_divbyzero_sigfpe=
7285 macos* | darwin[6-9]* | darwin[1-9][0-9]*)
7286 # On Mac OS X 10.2 or newer, just assume the same as when cross-
7287 # compiling. If we were to perform the real test, 1 Crash Report
7288 # dialog window would pop up.
7290 i[34567]86 | x86_64)
7291 gt_cv_int_divbyzero_sigfpe="guessing yes" ;;
7295 if test -z "$gt_cv_int_divbyzero_sigfpe"; then
7296 if test "$cross_compiling" = yes; then :
7298 # Guess based on the CPU.
7300 alpha* | i[34567]86 | x86_64 | m68k | s390*)
7301 gt_cv_int_divbyzero_sigfpe="guessing yes";;
7303 gt_cv_int_divbyzero_sigfpe="guessing no";;
7307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7308 /* end confdefs.h. */
7314 sigfpe_handler (int sig)
7316 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
7317 exit (sig != SIGFPE);
7327 signal (SIGFPE, sigfpe_handler);
7328 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
7329 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
7330 signal (SIGTRAP, sigfpe_handler);
7332 /* Linux/SPARC yields signal SIGILL. */
7333 #if defined (__sparc__) && defined (__linux__)
7334 signal (SIGILL, sigfpe_handler);
7343 if ac_fn_c_try_run "$LINENO"; then :
7344 gt_cv_int_divbyzero_sigfpe=yes
7346 gt_cv_int_divbyzero_sigfpe=no
7348 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7349 conftest.$ac_objext conftest.beam conftest.$ac_ext
7355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
7356 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
7357 case "$gt_cv_int_divbyzero_sigfpe" in
7362 cat >>confdefs.h <<_ACEOF
7363 #define INTDIV0_RAISES_SIGFPE $value
7368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
7369 $as_echo_n "checking for inttypes.h... " >&6; }
7370 if ${gl_cv_header_inttypes_h+:} false; then :
7371 $as_echo_n "(cached) " >&6
7373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7374 /* end confdefs.h. */
7376 #include <sys/types.h>
7377 #include <inttypes.h>
7382 uintmax_t i = (uintmax_t) -1; return !i;
7387 if ac_fn_c_try_compile "$LINENO"; then :
7388 gl_cv_header_inttypes_h=yes
7390 gl_cv_header_inttypes_h=no
7392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
7395 $as_echo "$gl_cv_header_inttypes_h" >&6; }
7396 if test $gl_cv_header_inttypes_h = yes; then
7398 cat >>confdefs.h <<_ACEOF
7399 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
7405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
7406 $as_echo_n "checking for unsigned long long int... " >&6; }
7407 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
7408 $as_echo_n "(cached) " >&6
7410 ac_cv_type_unsigned_long_long_int=yes
7411 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
7412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7413 /* end confdefs.h. */
7415 /* For now, do not test the preprocessor; as of 2007 there are too many
7416 implementations with broken preprocessors. Perhaps this can
7417 be revisited in 2012. In the meantime, code should not expect
7418 #if to work with literals wider than 32 bits. */
7419 /* Test literals. */
7420 long long int ll = 9223372036854775807ll;
7421 long long int nll = -9223372036854775807LL;
7422 unsigned long long int ull = 18446744073709551615ULL;
7423 /* Test constant expressions. */
7424 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
7426 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
7432 /* Test availability of runtime routines for shift and division. */
7433 long long int llmax = 9223372036854775807ll;
7434 unsigned long long int ullmax = 18446744073709551615ull;
7435 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
7436 | (llmax / ll) | (llmax % ll)
7437 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
7438 | (ullmax / ull) | (ullmax % ull));
7444 if ac_fn_c_try_link "$LINENO"; then :
7447 ac_cv_type_unsigned_long_long_int=no
7449 rm -f core conftest.err conftest.$ac_objext \
7450 conftest$ac_exeext conftest.$ac_ext
7453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
7454 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
7455 if test $ac_cv_type_unsigned_long_long_int = yes; then
7457 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
7464 if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
7466 test $ac_cv_type_unsigned_long_long_int = yes \
7467 && ac_type='unsigned long long' \
7468 || ac_type='unsigned long'
7470 cat >>confdefs.h <<_ACEOF
7471 #define uintmax_t $ac_type
7476 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
7481 for ac_header in inttypes.h
7483 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
7484 if test "x$ac_cv_header_inttypes_h" = xyes; then :
7485 cat >>confdefs.h <<_ACEOF
7486 #define HAVE_INTTYPES_H 1
7493 if test $ac_cv_header_inttypes_h = yes; then
7494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
7495 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
7496 if ${gt_cv_inttypes_pri_broken+:} false; then :
7497 $as_echo_n "(cached) " >&6
7500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7501 /* end confdefs.h. */
7503 #include <inttypes.h>
7516 if ac_fn_c_try_compile "$LINENO"; then :
7517 gt_cv_inttypes_pri_broken=no
7519 gt_cv_inttypes_pri_broken=yes
7521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
7525 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
7527 if test "$gt_cv_inttypes_pri_broken" = yes; then
7529 cat >>confdefs.h <<_ACEOF
7530 #define PRI_MACROS_BROKEN 1
7544 # Check whether --enable-threads was given.
7545 if test "${enable_threads+set}" = set; then :
7546 enableval=$enable_threads; gl_use_threads=$enableval
7548 if test -n "$gl_use_threads_default"; then
7549 gl_use_threads="$gl_use_threads_default"
7552 osf*) gl_use_threads=no ;;
7555 1.[0-5].*) gl_use_threads=no ;;
7556 *) gl_use_threads=yes ;;
7559 *) gl_use_threads=yes ;;
7565 if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
7566 # For using <pthread.h>:
7569 # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
7570 # groks <pthread.h>. cc also understands the flag -pthread, but
7571 # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
7572 # 2. putting a flag into CPPFLAGS that has an effect on the linker
7573 # causes the AC_LINK_IFELSE test below to succeed unexpectedly,
7574 # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
7575 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
7578 # Some systems optimize for single-threaded programs by default, and
7579 # need special flags to disable these optimizations. For example, the
7580 # definition of 'errno' in <errno.h>.
7582 aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;;
7583 solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;;
7591 if test "X$prefix" = "XNONE"; then
7592 acl_final_prefix="$ac_default_prefix"
7594 acl_final_prefix="$prefix"
7596 if test "X$exec_prefix" = "XNONE"; then
7597 acl_final_exec_prefix='${prefix}'
7599 acl_final_exec_prefix="$exec_prefix"
7601 acl_save_prefix="$prefix"
7602 prefix="$acl_final_prefix"
7603 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7604 prefix="$acl_save_prefix"
7608 # Check whether --with-gnu-ld was given.
7609 if test "${with_gnu_ld+set}" = set; then :
7610 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7615 # Prepare PATH_SEPARATOR.
7616 # The user is always right.
7617 if test "${PATH_SEPARATOR+set}" != set; then
7618 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
7619 # contains only /bin. Note that ksh looks also at the FPATH variable,
7620 # so we have to set that as well for the test.
7622 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7623 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7624 || PATH_SEPARATOR=';'
7629 if test "$GCC" = yes; then
7630 # Check if gcc -print-prog-name=ld gives a path.
7631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7632 $as_echo_n "checking for ld used by $CC... " >&6; }
7635 # gcc leaves a trailing carriage return which upsets mingw
7636 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7638 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7641 # Accept absolute paths.
7643 re_direlt='/[^/][^/]*/\.\./'
7644 # Canonicalize the pathname of ld
7645 ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'`
7646 while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do
7647 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
7649 test -z "$LD" && LD="$ac_prog"
7652 # If it fails, then pretend we aren't using GCC.
7656 # If it is relative, then search for the first ld in PATH.
7660 elif test "$with_gnu_ld" = yes; then
7661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7662 $as_echo_n "checking for GNU ld... " >&6; }
7664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7665 $as_echo_n "checking for non-GNU ld... " >&6; }
7667 if ${acl_cv_path_LD+:} false; then :
7668 $as_echo_n "(cached) " >&6
7670 if test -z "$LD"; then
7671 acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7672 for ac_dir in $PATH; do
7674 test -z "$ac_dir" && ac_dir=.
7675 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7676 acl_cv_path_LD="$ac_dir/$ac_prog"
7677 # Check to see if the program is GNU ld. I'd rather use --version,
7678 # but apparently some variants of GNU ld only accept -v.
7679 # Break only if it was the GNU/non-GNU ld that we prefer.
7680 case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
7681 *GNU* | *'with BFD'*)
7682 test "$with_gnu_ld" != no && break
7685 test "$with_gnu_ld" != yes && break
7692 acl_cv_path_LD="$LD" # Let the user override the test with a path.
7696 LD="$acl_cv_path_LD"
7697 if test -n "$LD"; then
7698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7699 $as_echo "$LD" >&6; }
7701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7702 $as_echo "no" >&6; }
7704 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7706 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7707 if ${acl_cv_prog_gnu_ld+:} false; then :
7708 $as_echo_n "(cached) " >&6
7710 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7711 case `$LD -v 2>&1 </dev/null` in
7712 *GNU* | *'with BFD'*)
7713 acl_cv_prog_gnu_ld=yes
7716 acl_cv_prog_gnu_ld=no
7720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
7721 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
7722 with_gnu_ld=$acl_cv_prog_gnu_ld
7727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
7728 $as_echo_n "checking for shared library run path origin... " >&6; }
7729 if ${acl_cv_rpath+:} false; then :
7730 $as_echo_n "(cached) " >&6
7733 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
7734 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
7741 $as_echo "$acl_cv_rpath" >&6; }
7743 acl_libext="$acl_cv_libext"
7744 acl_shlibext="$acl_cv_shlibext"
7745 acl_libname_spec="$acl_cv_libname_spec"
7746 acl_library_names_spec="$acl_cv_library_names_spec"
7747 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
7748 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
7749 acl_hardcode_direct="$acl_cv_hardcode_direct"
7750 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
7751 # Check whether --enable-rpath was given.
7752 if test "${enable_rpath+set}" = set; then :
7753 enableval=$enable_rpath; :
7765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
7766 $as_echo_n "checking for 64-bit host... " >&6; }
7767 if ${gl_cv_solaris_64bit+:} false; then :
7768 $as_echo_n "(cached) " >&6
7770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7771 /* end confdefs.h. */
7778 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7779 $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
7780 gl_cv_solaris_64bit=yes
7782 gl_cv_solaris_64bit=no
7788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
7789 $as_echo "$gl_cv_solaris_64bit" >&6; }
7790 if test $gl_cv_solaris_64bit = yes; then
7791 acl_libdirstem=lib/64
7793 sparc*) acl_libdirstem2=lib/sparcv9 ;;
7794 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
7799 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
7800 if test -n "$searchpath"; then
7801 acl_save_IFS="${IFS= }"; IFS=":"
7802 for searchdir in $searchpath; do
7803 if test -d "$searchdir"; then
7804 case "$searchdir" in
7805 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
7807 # Better ignore directories of this form. They are misleading.
7809 *) searchdir=`cd "$searchdir" && pwd`
7810 case "$searchdir" in
7811 */lib64 ) acl_libdirstem=lib64 ;;
7820 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
7829 if test "$gl_use_threads" != no; then
7830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5
7831 $as_echo_n "checking whether imported symbols can be declared weak... " >&6; }
7832 if ${gl_cv_have_weak+:} false; then :
7833 $as_echo_n "(cached) " >&6
7836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7837 /* end confdefs.h. */
7838 extern void xyzzy ();
7848 if ac_fn_c_try_link "$LINENO"; then :
7849 gl_cv_have_weak=maybe
7851 rm -f core conftest.err conftest.$ac_objext \
7852 conftest$ac_exeext conftest.$ac_ext
7853 if test $gl_cv_have_weak = maybe; then
7854 if test "$cross_compiling" = yes; then :
7855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7856 /* end confdefs.h. */
7858 Extensible Linking Format
7862 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7863 $EGREP "Extensible Linking Format" >/dev/null 2>&1; then :
7864 gl_cv_have_weak="guessing yes"
7866 gl_cv_have_weak="guessing no"
7872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7873 /* end confdefs.h. */
7879 return (fputs == NULL);
7882 if ac_fn_c_try_run "$LINENO"; then :
7887 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7888 conftest.$ac_objext conftest.beam conftest.$ac_ext
7894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5
7895 $as_echo "$gl_cv_have_weak" >&6; }
7896 if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
7897 # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
7898 # it groks <pthread.h>. It's added above, in gl_THREADLIB_EARLY_BODY.
7899 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
7900 if test "x$ac_cv_header_pthread_h" = xyes; then :
7901 gl_have_pthread_h=yes
7903 gl_have_pthread_h=no
7907 if test "$gl_have_pthread_h" = yes; then
7908 # Other possible tests:
7909 # -lpthreads (FSU threads, PCthreads)
7912 # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
7913 # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
7914 # the second one only in libpthread, and lock.c needs it.
7915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7916 /* end confdefs.h. */
7917 #include <pthread.h>
7921 pthread_mutex_lock((pthread_mutex_t*)0);
7922 pthread_mutexattr_init((pthread_mutexattr_t*)0);
7927 if ac_fn_c_try_link "$LINENO"; then :
7930 rm -f core conftest.err conftest.$ac_objext \
7931 conftest$ac_exeext conftest.$ac_ext
7932 # Test for libpthread by looking for pthread_kill. (Not pthread_self,
7933 # since it is defined as a macro on OSF/1.)
7934 if test -n "$gl_have_pthread"; then
7935 # The program links fine without libpthread. But it may actually
7936 # need to link with libpthread in order to create multiple threads.
7937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
7938 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
7939 if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
7940 $as_echo_n "(cached) " >&6
7942 ac_check_lib_save_LIBS=$LIBS
7943 LIBS="-lpthread $LIBS"
7944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7945 /* end confdefs.h. */
7947 /* Override any GCC internal prototype to avoid an error.
7948 Use char because int might match the return type of a GCC
7949 builtin and then its argument prototype would still apply. */
7953 char pthread_kill ();
7957 return pthread_kill ();
7962 if ac_fn_c_try_link "$LINENO"; then :
7963 ac_cv_lib_pthread_pthread_kill=yes
7965 ac_cv_lib_pthread_pthread_kill=no
7967 rm -f core conftest.err conftest.$ac_objext \
7968 conftest$ac_exeext conftest.$ac_ext
7969 LIBS=$ac_check_lib_save_LIBS
7971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
7972 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
7973 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
7974 LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
7975 # On Solaris and HP-UX, most pthread functions exist also in libc.
7976 # Therefore pthread_in_use() needs to actually try to create a
7977 # thread: pthread_create from libc will fail, whereas
7978 # pthread_create will actually create a thread.
7982 $as_echo "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h
7989 # Some library is needed. Try libpthread and libc_r.
7990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
7991 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
7992 if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
7993 $as_echo_n "(cached) " >&6
7995 ac_check_lib_save_LIBS=$LIBS
7996 LIBS="-lpthread $LIBS"
7997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7998 /* end confdefs.h. */
8000 /* Override any GCC internal prototype to avoid an error.
8001 Use char because int might match the return type of a GCC
8002 builtin and then its argument prototype would still apply. */
8006 char pthread_kill ();
8010 return pthread_kill ();
8015 if ac_fn_c_try_link "$LINENO"; then :
8016 ac_cv_lib_pthread_pthread_kill=yes
8018 ac_cv_lib_pthread_pthread_kill=no
8020 rm -f core conftest.err conftest.$ac_objext \
8021 conftest$ac_exeext conftest.$ac_ext
8022 LIBS=$ac_check_lib_save_LIBS
8024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
8025 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
8026 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
8028 LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread
8029 LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
8032 if test -z "$gl_have_pthread"; then
8034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5
8035 $as_echo_n "checking for pthread_kill in -lc_r... " >&6; }
8036 if ${ac_cv_lib_c_r_pthread_kill+:} false; then :
8037 $as_echo_n "(cached) " >&6
8039 ac_check_lib_save_LIBS=$LIBS
8041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8042 /* end confdefs.h. */
8044 /* Override any GCC internal prototype to avoid an error.
8045 Use char because int might match the return type of a GCC
8046 builtin and then its argument prototype would still apply. */
8050 char pthread_kill ();
8054 return pthread_kill ();
8059 if ac_fn_c_try_link "$LINENO"; then :
8060 ac_cv_lib_c_r_pthread_kill=yes
8062 ac_cv_lib_c_r_pthread_kill=no
8064 rm -f core conftest.err conftest.$ac_objext \
8065 conftest$ac_exeext conftest.$ac_ext
8066 LIBS=$ac_check_lib_save_LIBS
8068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5
8069 $as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; }
8070 if test "x$ac_cv_lib_c_r_pthread_kill" = xyes; then :
8072 LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r
8073 LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r
8078 if test -n "$gl_have_pthread"; then
8079 gl_threads_api=posix
8081 $as_echo "#define USE_POSIX_THREADS 1" >>confdefs.h
8083 if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
8084 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
8086 $as_echo "#define USE_POSIX_THREADS_WEAK 1" >>confdefs.h
8095 if test -z "$gl_have_pthread"; then
8096 if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then
8097 gl_have_solaristhread=
8098 gl_save_LIBS="$LIBS"
8099 LIBS="$LIBS -lthread"
8100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8101 /* end confdefs.h. */
8114 if ac_fn_c_try_link "$LINENO"; then :
8115 gl_have_solaristhread=yes
8117 rm -f core conftest.err conftest.$ac_objext \
8118 conftest$ac_exeext conftest.$ac_ext
8119 LIBS="$gl_save_LIBS"
8120 if test -n "$gl_have_solaristhread"; then
8121 gl_threads_api=solaris
8123 LTLIBTHREAD=-lthread
8124 LIBMULTITHREAD="$LIBTHREAD"
8125 LTLIBMULTITHREAD="$LTLIBTHREAD"
8127 $as_echo "#define USE_SOLARIS_THREADS 1" >>confdefs.h
8129 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
8131 $as_echo "#define USE_SOLARIS_THREADS_WEAK 1" >>confdefs.h
8139 if test "$gl_use_threads" = pth; then
8140 gl_save_CPPFLAGS="$CPPFLAGS"
8146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libpth" >&5
8147 $as_echo_n "checking how to link with libpth... " >&6; }
8148 if ${ac_cv_libpth_libs+:} false; then :
8149 $as_echo_n "(cached) " >&6
8161 acl_save_prefix="$prefix"
8162 prefix="$acl_final_prefix"
8163 acl_save_exec_prefix="$exec_prefix"
8164 exec_prefix="$acl_final_exec_prefix"
8166 eval additional_includedir=\"$includedir\"
8167 eval additional_libdir=\"$libdir\"
8169 exec_prefix="$acl_save_exec_prefix"
8170 prefix="$acl_save_prefix"
8173 # Check whether --with-libpth-prefix was given.
8174 if test "${with_libpth_prefix+set}" = set; then :
8175 withval=$with_libpth_prefix;
8176 if test "X$withval" = "Xno"; then
8179 if test "X$withval" = "X"; then
8181 acl_save_prefix="$prefix"
8182 prefix="$acl_final_prefix"
8183 acl_save_exec_prefix="$exec_prefix"
8184 exec_prefix="$acl_final_exec_prefix"
8186 eval additional_includedir=\"$includedir\"
8187 eval additional_libdir=\"$libdir\"
8189 exec_prefix="$acl_save_exec_prefix"
8190 prefix="$acl_save_prefix"
8193 additional_includedir="$withval/include"
8194 additional_libdir="$withval/$acl_libdirstem"
8195 if test "$acl_libdirstem2" != "$acl_libdirstem" \
8196 && ! test -d "$withval/$acl_libdirstem"; then
8197 additional_libdir="$withval/$acl_libdirstem2"
8211 names_already_handled=
8212 names_next_round='pth '
8213 while test -n "$names_next_round"; do
8214 names_this_round="$names_next_round"
8216 for name in $names_this_round; do
8218 for n in $names_already_handled; do
8219 if test "$n" = "$name"; then
8224 if test -z "$already_handled"; then
8225 names_already_handled="$names_already_handled $name"
8226 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
8227 eval value=\"\$HAVE_LIB$uppername\"
8228 if test -n "$value"; then
8229 if test "$value" = yes; then
8230 eval value=\"\$LIB$uppername\"
8231 test -z "$value" || LIBPTH="${LIBPTH}${LIBPTH:+ }$value"
8232 eval value=\"\$LTLIB$uppername\"
8233 test -z "$value" || LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$value"
8242 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
8243 if test -n "$acl_shlibext"; then
8244 shrext=".$acl_shlibext" # typically: shrext=.so
8248 if test $use_additional = yes; then
8249 dir="$additional_libdir"
8250 if test -n "$acl_shlibext"; then
8251 if test -f "$dir/$libname$shrext"; then
8253 found_so="$dir/$libname$shrext"
8255 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8256 ver=`(cd "$dir" && \
8257 for f in "$libname$shrext".*; do echo "$f"; done \
8258 | sed -e "s,^$libname$shrext\\\\.,," \
8259 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8260 | sed 1q ) 2>/dev/null`
8261 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8263 found_so="$dir/$libname$shrext.$ver"
8266 eval library_names=\"$acl_library_names_spec\"
8267 for f in $library_names; do
8268 if test -f "$dir/$f"; then
8277 if test "X$found_dir" = "X"; then
8278 if test -f "$dir/$libname.$acl_libext"; then
8280 found_a="$dir/$libname.$acl_libext"
8283 if test "X$found_dir" != "X"; then
8284 if test -f "$dir/$libname.la"; then
8285 found_la="$dir/$libname.la"
8289 if test "X$found_dir" = "X"; then
8290 for x in $LDFLAGS $LTLIBPTH; do
8292 acl_save_prefix="$prefix"
8293 prefix="$acl_final_prefix"
8294 acl_save_exec_prefix="$exec_prefix"
8295 exec_prefix="$acl_final_exec_prefix"
8297 exec_prefix="$acl_save_exec_prefix"
8298 prefix="$acl_save_prefix"
8302 dir=`echo "X$x" | sed -e 's/^X-L//'`
8303 if test -n "$acl_shlibext"; then
8304 if test -f "$dir/$libname$shrext"; then
8306 found_so="$dir/$libname$shrext"
8308 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8309 ver=`(cd "$dir" && \
8310 for f in "$libname$shrext".*; do echo "$f"; done \
8311 | sed -e "s,^$libname$shrext\\\\.,," \
8312 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8313 | sed 1q ) 2>/dev/null`
8314 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8316 found_so="$dir/$libname$shrext.$ver"
8319 eval library_names=\"$acl_library_names_spec\"
8320 for f in $library_names; do
8321 if test -f "$dir/$f"; then
8330 if test "X$found_dir" = "X"; then
8331 if test -f "$dir/$libname.$acl_libext"; then
8333 found_a="$dir/$libname.$acl_libext"
8336 if test "X$found_dir" != "X"; then
8337 if test -f "$dir/$libname.la"; then
8338 found_la="$dir/$libname.la"
8343 if test "X$found_dir" != "X"; then
8348 if test "X$found_dir" != "X"; then
8349 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name"
8350 if test "X$found_so" != "X"; then
8351 if test "$enable_rpath" = no \
8352 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
8353 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
8354 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
8357 for x in $ltrpathdirs; do
8358 if test "X$x" = "X$found_dir"; then
8363 if test -z "$haveit"; then
8364 ltrpathdirs="$ltrpathdirs $found_dir"
8366 if test "$acl_hardcode_direct" = yes; then
8367 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
8369 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
8370 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
8372 for x in $rpathdirs; do
8373 if test "X$x" = "X$found_dir"; then
8378 if test -z "$haveit"; then
8379 rpathdirs="$rpathdirs $found_dir"
8383 for x in $LDFLAGS $LIBPTH; do
8385 acl_save_prefix="$prefix"
8386 prefix="$acl_final_prefix"
8387 acl_save_exec_prefix="$exec_prefix"
8388 exec_prefix="$acl_final_exec_prefix"
8390 exec_prefix="$acl_save_exec_prefix"
8391 prefix="$acl_save_prefix"
8393 if test "X$x" = "X-L$found_dir"; then
8398 if test -z "$haveit"; then
8399 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir"
8401 if test "$acl_hardcode_minus_L" != no; then
8402 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
8404 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
8410 if test "X$found_a" != "X"; then
8411 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_a"
8413 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name"
8416 additional_includedir=
8417 case "$found_dir" in
8418 */$acl_libdirstem | */$acl_libdirstem/)
8419 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
8420 if test "$name" = 'pth'; then
8421 LIBPTH_PREFIX="$basedir"
8423 additional_includedir="$basedir/include"
8425 */$acl_libdirstem2 | */$acl_libdirstem2/)
8426 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
8427 if test "$name" = 'pth'; then
8428 LIBPTH_PREFIX="$basedir"
8430 additional_includedir="$basedir/include"
8433 if test "X$additional_includedir" != "X"; then
8434 if test "X$additional_includedir" != "X/usr/include"; then
8436 if test "X$additional_includedir" = "X/usr/local/include"; then
8437 if test -n "$GCC"; then
8439 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
8443 if test -z "$haveit"; then
8444 for x in $CPPFLAGS $INCPTH; do
8446 acl_save_prefix="$prefix"
8447 prefix="$acl_final_prefix"
8448 acl_save_exec_prefix="$exec_prefix"
8449 exec_prefix="$acl_final_exec_prefix"
8451 exec_prefix="$acl_save_exec_prefix"
8452 prefix="$acl_save_prefix"
8454 if test "X$x" = "X-I$additional_includedir"; then
8459 if test -z "$haveit"; then
8460 if test -d "$additional_includedir"; then
8461 INCPTH="${INCPTH}${INCPTH:+ }-I$additional_includedir"
8467 if test -n "$found_la"; then
8468 save_libdir="$libdir"
8470 */* | *\\*) . "$found_la" ;;
8471 *) . "./$found_la" ;;
8473 libdir="$save_libdir"
8474 for dep in $dependency_libs; do
8477 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8478 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
8479 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
8481 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
8482 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
8483 if test -n "$GCC"; then
8485 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
8489 if test -z "$haveit"; then
8491 for x in $LDFLAGS $LIBPTH; do
8493 acl_save_prefix="$prefix"
8494 prefix="$acl_final_prefix"
8495 acl_save_exec_prefix="$exec_prefix"
8496 exec_prefix="$acl_final_exec_prefix"
8498 exec_prefix="$acl_save_exec_prefix"
8499 prefix="$acl_save_prefix"
8501 if test "X$x" = "X-L$additional_libdir"; then
8506 if test -z "$haveit"; then
8507 if test -d "$additional_libdir"; then
8508 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$additional_libdir"
8512 for x in $LDFLAGS $LTLIBPTH; do
8514 acl_save_prefix="$prefix"
8515 prefix="$acl_final_prefix"
8516 acl_save_exec_prefix="$exec_prefix"
8517 exec_prefix="$acl_final_exec_prefix"
8519 exec_prefix="$acl_save_exec_prefix"
8520 prefix="$acl_save_prefix"
8522 if test "X$x" = "X-L$additional_libdir"; then
8527 if test -z "$haveit"; then
8528 if test -d "$additional_libdir"; then
8529 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir"
8536 dir=`echo "X$dep" | sed -e 's/^X-R//'`
8537 if test "$enable_rpath" != no; then
8539 for x in $rpathdirs; do
8540 if test "X$x" = "X$dir"; then
8545 if test -z "$haveit"; then
8546 rpathdirs="$rpathdirs $dir"
8549 for x in $ltrpathdirs; do
8550 if test "X$x" = "X$dir"; then
8555 if test -z "$haveit"; then
8556 ltrpathdirs="$ltrpathdirs $dir"
8561 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8564 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8567 LIBPTH="${LIBPTH}${LIBPTH:+ }$dep"
8568 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$dep"
8574 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
8575 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-l$name"
8581 if test "X$rpathdirs" != "X"; then
8582 if test -n "$acl_hardcode_libdir_separator"; then
8584 for found_dir in $rpathdirs; do
8585 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
8587 acl_save_libdir="$libdir"
8589 eval flag=\"$acl_hardcode_libdir_flag_spec\"
8590 libdir="$acl_save_libdir"
8591 LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
8593 for found_dir in $rpathdirs; do
8594 acl_save_libdir="$libdir"
8596 eval flag=\"$acl_hardcode_libdir_flag_spec\"
8597 libdir="$acl_save_libdir"
8598 LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
8602 if test "X$ltrpathdirs" != "X"; then
8603 for found_dir in $ltrpathdirs; do
8604 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir"
8613 ac_cv_libpth_libs="$LIBPTH"
8614 ac_cv_libpth_ltlibs="$LTLIBPTH"
8615 ac_cv_libpth_cppflags="$INCPTH"
8616 ac_cv_libpth_prefix="$LIBPTH_PREFIX"
8619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libpth_libs" >&5
8620 $as_echo "$ac_cv_libpth_libs" >&6; }
8621 LIBPTH="$ac_cv_libpth_libs"
8622 LTLIBPTH="$ac_cv_libpth_ltlibs"
8623 INCPTH="$ac_cv_libpth_cppflags"
8624 LIBPTH_PREFIX="$ac_cv_libpth_prefix"
8626 for element in $INCPTH; do
8628 for x in $CPPFLAGS; do
8630 acl_save_prefix="$prefix"
8631 prefix="$acl_final_prefix"
8632 acl_save_exec_prefix="$exec_prefix"
8633 exec_prefix="$acl_final_exec_prefix"
8635 exec_prefix="$acl_save_exec_prefix"
8636 prefix="$acl_save_prefix"
8638 if test "X$x" = "X$element"; then
8643 if test -z "$haveit"; then
8644 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8656 gl_save_LIBS="$LIBS"
8657 LIBS="$LIBS $LIBPTH"
8658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8659 /* end confdefs.h. */
8669 if ac_fn_c_try_link "$LINENO"; then :
8672 rm -f core conftest.err conftest.$ac_objext \
8673 conftest$ac_exeext conftest.$ac_ext
8674 LIBS="$gl_save_LIBS"
8675 if test -n "$gl_have_pth"; then
8678 LTLIBTHREAD="$LTLIBPTH"
8679 LIBMULTITHREAD="$LIBTHREAD"
8680 LTLIBMULTITHREAD="$LTLIBTHREAD"
8682 $as_echo "#define USE_PTH_THREADS 1" >>confdefs.h
8684 if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
8685 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
8687 $as_echo "#define USE_PTH_THREADS_WEAK 1" >>confdefs.h
8694 CPPFLAGS="$gl_save_CPPFLAGS"
8697 if test -z "$gl_have_pthread"; then
8698 case "$gl_use_threads" in
8699 yes | windows | win32) # The 'win32' is for backward compatibility.
8700 if { case "$host_os" in
8705 gl_threads_api=windows
8707 $as_echo "#define USE_WINDOWS_THREADS 1" >>confdefs.h
8714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multithread API to use" >&5
8715 $as_echo_n "checking for multithread API to use... " >&6; }
8716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_threads_api" >&5
8717 $as_echo "$gl_threads_api" >&6; }
8729 if test "$gl_threads_api" = posix; then
8730 # OSF/1 4.0 and Mac OS X 10.1 lack the pthread_rwlock_t type and the
8731 # pthread_rwlock_* functions.
8732 ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h>
8734 if test "x$ac_cv_type_pthread_rwlock_t" = xyes; then :
8736 $as_echo "#define HAVE_PTHREAD_RWLOCK 1" >>confdefs.h
8740 # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
8741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8742 /* end confdefs.h. */
8744 #include <pthread.h>
8749 #if __FreeBSD__ == 4
8750 error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
8751 #elif (defined __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ \
8752 && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 1070)
8753 error "No, in Mac OS X < 10.7 recursive mutexes actually don't work."
8755 int x = (int)PTHREAD_MUTEX_RECURSIVE;
8763 if ac_fn_c_try_compile "$LINENO"; then :
8765 $as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h
8768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8785 acl_save_prefix="$prefix"
8786 prefix="$acl_final_prefix"
8787 acl_save_exec_prefix="$exec_prefix"
8788 exec_prefix="$acl_final_exec_prefix"
8790 eval additional_includedir=\"$includedir\"
8791 eval additional_libdir=\"$libdir\"
8793 exec_prefix="$acl_save_exec_prefix"
8794 prefix="$acl_save_prefix"
8797 # Check whether --with-libiconv-prefix was given.
8798 if test "${with_libiconv_prefix+set}" = set; then :
8799 withval=$with_libiconv_prefix;
8800 if test "X$withval" = "Xno"; then
8803 if test "X$withval" = "X"; then
8805 acl_save_prefix="$prefix"
8806 prefix="$acl_final_prefix"
8807 acl_save_exec_prefix="$exec_prefix"
8808 exec_prefix="$acl_final_exec_prefix"
8810 eval additional_includedir=\"$includedir\"
8811 eval additional_libdir=\"$libdir\"
8813 exec_prefix="$acl_save_exec_prefix"
8814 prefix="$acl_save_prefix"
8817 additional_includedir="$withval/include"
8818 additional_libdir="$withval/$acl_libdirstem"
8819 if test "$acl_libdirstem2" != "$acl_libdirstem" \
8820 && ! test -d "$withval/$acl_libdirstem"; then
8821 additional_libdir="$withval/$acl_libdirstem2"
8835 names_already_handled=
8836 names_next_round='iconv '
8837 while test -n "$names_next_round"; do
8838 names_this_round="$names_next_round"
8840 for name in $names_this_round; do
8842 for n in $names_already_handled; do
8843 if test "$n" = "$name"; then
8848 if test -z "$already_handled"; then
8849 names_already_handled="$names_already_handled $name"
8850 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
8851 eval value=\"\$HAVE_LIB$uppername\"
8852 if test -n "$value"; then
8853 if test "$value" = yes; then
8854 eval value=\"\$LIB$uppername\"
8855 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
8856 eval value=\"\$LTLIB$uppername\"
8857 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
8866 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
8867 if test -n "$acl_shlibext"; then
8868 shrext=".$acl_shlibext" # typically: shrext=.so
8872 if test $use_additional = yes; then
8873 dir="$additional_libdir"
8874 if test -n "$acl_shlibext"; then
8875 if test -f "$dir/$libname$shrext"; then
8877 found_so="$dir/$libname$shrext"
8879 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8880 ver=`(cd "$dir" && \
8881 for f in "$libname$shrext".*; do echo "$f"; done \
8882 | sed -e "s,^$libname$shrext\\\\.,," \
8883 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8884 | sed 1q ) 2>/dev/null`
8885 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8887 found_so="$dir/$libname$shrext.$ver"
8890 eval library_names=\"$acl_library_names_spec\"
8891 for f in $library_names; do
8892 if test -f "$dir/$f"; then
8901 if test "X$found_dir" = "X"; then
8902 if test -f "$dir/$libname.$acl_libext"; then
8904 found_a="$dir/$libname.$acl_libext"
8907 if test "X$found_dir" != "X"; then
8908 if test -f "$dir/$libname.la"; then
8909 found_la="$dir/$libname.la"
8913 if test "X$found_dir" = "X"; then
8914 for x in $LDFLAGS $LTLIBICONV; do
8916 acl_save_prefix="$prefix"
8917 prefix="$acl_final_prefix"
8918 acl_save_exec_prefix="$exec_prefix"
8919 exec_prefix="$acl_final_exec_prefix"
8921 exec_prefix="$acl_save_exec_prefix"
8922 prefix="$acl_save_prefix"
8926 dir=`echo "X$x" | sed -e 's/^X-L//'`
8927 if test -n "$acl_shlibext"; then
8928 if test -f "$dir/$libname$shrext"; then
8930 found_so="$dir/$libname$shrext"
8932 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8933 ver=`(cd "$dir" && \
8934 for f in "$libname$shrext".*; do echo "$f"; done \
8935 | sed -e "s,^$libname$shrext\\\\.,," \
8936 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8937 | sed 1q ) 2>/dev/null`
8938 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8940 found_so="$dir/$libname$shrext.$ver"
8943 eval library_names=\"$acl_library_names_spec\"
8944 for f in $library_names; do
8945 if test -f "$dir/$f"; then
8954 if test "X$found_dir" = "X"; then
8955 if test -f "$dir/$libname.$acl_libext"; then
8957 found_a="$dir/$libname.$acl_libext"
8960 if test "X$found_dir" != "X"; then
8961 if test -f "$dir/$libname.la"; then
8962 found_la="$dir/$libname.la"
8967 if test "X$found_dir" != "X"; then
8972 if test "X$found_dir" != "X"; then
8973 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
8974 if test "X$found_so" != "X"; then
8975 if test "$enable_rpath" = no \
8976 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
8977 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
8978 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8981 for x in $ltrpathdirs; do
8982 if test "X$x" = "X$found_dir"; then
8987 if test -z "$haveit"; then
8988 ltrpathdirs="$ltrpathdirs $found_dir"
8990 if test "$acl_hardcode_direct" = yes; then
8991 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8993 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
8994 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8996 for x in $rpathdirs; do
8997 if test "X$x" = "X$found_dir"; then
9002 if test -z "$haveit"; then
9003 rpathdirs="$rpathdirs $found_dir"
9007 for x in $LDFLAGS $LIBICONV; do
9009 acl_save_prefix="$prefix"
9010 prefix="$acl_final_prefix"
9011 acl_save_exec_prefix="$exec_prefix"
9012 exec_prefix="$acl_final_exec_prefix"
9014 exec_prefix="$acl_save_exec_prefix"
9015 prefix="$acl_save_prefix"
9017 if test "X$x" = "X-L$found_dir"; then
9022 if test -z "$haveit"; then
9023 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9025 if test "$acl_hardcode_minus_L" != no; then
9026 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9028 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9034 if test "X$found_a" != "X"; then
9035 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
9037 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9040 additional_includedir=
9041 case "$found_dir" in
9042 */$acl_libdirstem | */$acl_libdirstem/)
9043 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
9044 if test "$name" = 'iconv'; then
9045 LIBICONV_PREFIX="$basedir"
9047 additional_includedir="$basedir/include"
9049 */$acl_libdirstem2 | */$acl_libdirstem2/)
9050 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
9051 if test "$name" = 'iconv'; then
9052 LIBICONV_PREFIX="$basedir"
9054 additional_includedir="$basedir/include"
9057 if test "X$additional_includedir" != "X"; then
9058 if test "X$additional_includedir" != "X/usr/include"; then
9060 if test "X$additional_includedir" = "X/usr/local/include"; then
9061 if test -n "$GCC"; then
9063 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
9067 if test -z "$haveit"; then
9068 for x in $CPPFLAGS $INCICONV; do
9070 acl_save_prefix="$prefix"
9071 prefix="$acl_final_prefix"
9072 acl_save_exec_prefix="$exec_prefix"
9073 exec_prefix="$acl_final_exec_prefix"
9075 exec_prefix="$acl_save_exec_prefix"
9076 prefix="$acl_save_prefix"
9078 if test "X$x" = "X-I$additional_includedir"; then
9083 if test -z "$haveit"; then
9084 if test -d "$additional_includedir"; then
9085 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9091 if test -n "$found_la"; then
9092 save_libdir="$libdir"
9094 */* | *\\*) . "$found_la" ;;
9095 *) . "./$found_la" ;;
9097 libdir="$save_libdir"
9098 for dep in $dependency_libs; do
9101 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9102 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
9103 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
9105 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
9106 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
9107 if test -n "$GCC"; then
9109 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
9113 if test -z "$haveit"; then
9115 for x in $LDFLAGS $LIBICONV; do
9117 acl_save_prefix="$prefix"
9118 prefix="$acl_final_prefix"
9119 acl_save_exec_prefix="$exec_prefix"
9120 exec_prefix="$acl_final_exec_prefix"
9122 exec_prefix="$acl_save_exec_prefix"
9123 prefix="$acl_save_prefix"
9125 if test "X$x" = "X-L$additional_libdir"; then
9130 if test -z "$haveit"; then
9131 if test -d "$additional_libdir"; then
9132 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9136 for x in $LDFLAGS $LTLIBICONV; do
9138 acl_save_prefix="$prefix"
9139 prefix="$acl_final_prefix"
9140 acl_save_exec_prefix="$exec_prefix"
9141 exec_prefix="$acl_final_exec_prefix"
9143 exec_prefix="$acl_save_exec_prefix"
9144 prefix="$acl_save_prefix"
9146 if test "X$x" = "X-L$additional_libdir"; then
9151 if test -z "$haveit"; then
9152 if test -d "$additional_libdir"; then
9153 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
9160 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9161 if test "$enable_rpath" != no; then
9163 for x in $rpathdirs; do
9164 if test "X$x" = "X$dir"; then
9169 if test -z "$haveit"; then
9170 rpathdirs="$rpathdirs $dir"
9173 for x in $ltrpathdirs; do
9174 if test "X$x" = "X$dir"; then
9179 if test -z "$haveit"; then
9180 ltrpathdirs="$ltrpathdirs $dir"
9185 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9188 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9191 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
9192 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
9198 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9199 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
9205 if test "X$rpathdirs" != "X"; then
9206 if test -n "$acl_hardcode_libdir_separator"; then
9208 for found_dir in $rpathdirs; do
9209 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
9211 acl_save_libdir="$libdir"
9213 eval flag=\"$acl_hardcode_libdir_flag_spec\"
9214 libdir="$acl_save_libdir"
9215 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9217 for found_dir in $rpathdirs; do
9218 acl_save_libdir="$libdir"
9220 eval flag=\"$acl_hardcode_libdir_flag_spec\"
9221 libdir="$acl_save_libdir"
9222 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9226 if test "X$ltrpathdirs" != "X"; then
9227 for found_dir in $ltrpathdirs; do
9228 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
9243 am_save_CPPFLAGS="$CPPFLAGS"
9245 for element in $INCICONV; do
9247 for x in $CPPFLAGS; do
9249 acl_save_prefix="$prefix"
9250 prefix="$acl_final_prefix"
9251 acl_save_exec_prefix="$exec_prefix"
9252 exec_prefix="$acl_final_exec_prefix"
9254 exec_prefix="$acl_save_exec_prefix"
9255 prefix="$acl_save_prefix"
9257 if test "X$x" = "X$element"; then
9262 if test -z "$haveit"; then
9263 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
9269 $as_echo_n "checking for iconv... " >&6; }
9270 if ${am_cv_func_iconv+:} false; then :
9271 $as_echo_n "(cached) " >&6
9274 am_cv_func_iconv="no, consider installing GNU libiconv"
9276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9277 /* end confdefs.h. */
9285 iconv_t cd = iconv_open("","");
9286 iconv(cd,NULL,NULL,NULL,NULL);
9292 if ac_fn_c_try_link "$LINENO"; then :
9293 am_cv_func_iconv=yes
9295 rm -f core conftest.err conftest.$ac_objext \
9296 conftest$ac_exeext conftest.$ac_ext
9297 if test "$am_cv_func_iconv" != yes; then
9298 am_save_LIBS="$LIBS"
9299 LIBS="$LIBS $LIBICONV"
9300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9301 /* end confdefs.h. */
9309 iconv_t cd = iconv_open("","");
9310 iconv(cd,NULL,NULL,NULL,NULL);
9316 if ac_fn_c_try_link "$LINENO"; then :
9318 am_cv_func_iconv=yes
9320 rm -f core conftest.err conftest.$ac_objext \
9321 conftest$ac_exeext conftest.$ac_ext
9322 LIBS="$am_save_LIBS"
9326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
9327 $as_echo "$am_cv_func_iconv" >&6; }
9328 if test "$am_cv_func_iconv" = yes; then
9329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
9330 $as_echo_n "checking for working iconv... " >&6; }
9331 if ${am_cv_func_iconv_works+:} false; then :
9332 $as_echo_n "(cached) " >&6
9335 am_save_LIBS="$LIBS"
9336 if test $am_cv_lib_iconv = yes; then
9337 LIBS="$LIBS $LIBICONV"
9339 if test "$cross_compiling" = yes; then :
9342 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
9343 *) am_cv_func_iconv_works="guessing yes" ;;
9347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9348 /* end confdefs.h. */
9355 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
9358 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
9359 if (cd_utf8_to_88591 != (iconv_t)(-1))
9361 static const char input[] = "\342\202\254"; /* EURO SIGN */
9363 const char *inptr = input;
9364 size_t inbytesleft = strlen (input);
9366 size_t outbytesleft = sizeof (buf);
9367 size_t res = iconv (cd_utf8_to_88591,
9368 (char **) &inptr, &inbytesleft,
9369 &outptr, &outbytesleft);
9372 iconv_close (cd_utf8_to_88591);
9375 /* Test against Solaris 10 bug: Failures are not distinguishable from
9376 successful returns. */
9378 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
9379 if (cd_ascii_to_88591 != (iconv_t)(-1))
9381 static const char input[] = "\263";
9383 const char *inptr = input;
9384 size_t inbytesleft = strlen (input);
9386 size_t outbytesleft = sizeof (buf);
9387 size_t res = iconv (cd_ascii_to_88591,
9388 (char **) &inptr, &inbytesleft,
9389 &outptr, &outbytesleft);
9392 iconv_close (cd_ascii_to_88591);
9395 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
9397 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
9398 if (cd_88591_to_utf8 != (iconv_t)(-1))
9400 static const char input[] = "\304";
9401 static char buf[2] = { (char)0xDE, (char)0xAD };
9402 const char *inptr = input;
9403 size_t inbytesleft = 1;
9405 size_t outbytesleft = 1;
9406 size_t res = iconv (cd_88591_to_utf8,
9407 (char **) &inptr, &inbytesleft,
9408 &outptr, &outbytesleft);
9409 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
9411 iconv_close (cd_88591_to_utf8);
9414 #if 0 /* This bug could be worked around by the caller. */
9415 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
9417 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
9418 if (cd_88591_to_utf8 != (iconv_t)(-1))
9420 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
9422 const char *inptr = input;
9423 size_t inbytesleft = strlen (input);
9425 size_t outbytesleft = sizeof (buf);
9426 size_t res = iconv (cd_88591_to_utf8,
9427 (char **) &inptr, &inbytesleft,
9428 &outptr, &outbytesleft);
9431 iconv_close (cd_88591_to_utf8);
9435 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
9437 if (/* Try standardized names. */
9438 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
9439 /* Try IRIX, OSF/1 names. */
9440 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
9441 /* Try AIX names. */
9442 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
9443 /* Try HP-UX names. */
9444 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
9449 if ac_fn_c_try_run "$LINENO"; then :
9450 am_cv_func_iconv_works=yes
9452 am_cv_func_iconv_works=no
9454 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9455 conftest.$ac_objext conftest.beam conftest.$ac_ext
9458 LIBS="$am_save_LIBS"
9461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
9462 $as_echo "$am_cv_func_iconv_works" >&6; }
9463 case "$am_cv_func_iconv_works" in
9464 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
9465 *) am_func_iconv=yes ;;
9468 am_func_iconv=no am_cv_lib_iconv=no
9470 if test "$am_func_iconv" = yes; then
9472 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
9475 if test "$am_cv_lib_iconv" = yes; then
9476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
9477 $as_echo_n "checking how to link with libiconv... " >&6; }
9478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
9479 $as_echo "$LIBICONV" >&6; }
9481 CPPFLAGS="$am_save_CPPFLAGS"
9488 if test "$am_cv_func_iconv" = yes; then
9489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
9490 $as_echo_n "checking for iconv declaration... " >&6; }
9491 if ${am_cv_proto_iconv+:} false; then :
9492 $as_echo_n "(cached) " >&6
9495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9496 /* end confdefs.h. */
9504 #if defined(__STDC__) || defined(_MSC_VER) || defined(__cplusplus)
9505 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9518 if ac_fn_c_try_compile "$LINENO"; then :
9519 am_cv_proto_iconv_arg1=""
9521 am_cv_proto_iconv_arg1="const"
9523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9524 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);"
9527 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
9528 { $as_echo "$as_me:${as_lineno-$LINENO}: result:
9529 $am_cv_proto_iconv" >&5
9531 $am_cv_proto_iconv" >&6; }
9533 cat >>confdefs.h <<_ACEOF
9534 #define ICONV_CONST $am_cv_proto_iconv_arg1
9543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9544 /* end confdefs.h. */
9545 int foo (int a) { a = __builtin_expect (a, 10); return a == 10 ? 0 : 1; }
9554 if ac_fn_c_try_link "$LINENO"; then :
9556 $as_echo "#define HAVE_BUILTIN_EXPECT 1" >>confdefs.h
9559 rm -f core conftest.err conftest.$ac_objext \
9560 conftest$ac_exeext conftest.$ac_ext
9562 for ac_header in argz.h inttypes.h limits.h unistd.h sys/param.h
9564 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9565 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9566 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9567 cat >>confdefs.h <<_ACEOF
9568 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9575 for ac_func in getcwd getegid geteuid getgid getuid mempcpy munmap \
9576 stpcpy strcasecmp strdup strtoul tsearch uselocale argz_count \
9577 argz_stringify argz_next __fsetlocking
9579 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9580 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9581 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9582 cat >>confdefs.h <<_ACEOF
9583 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9590 ac_fn_c_check_decl "$LINENO" "feof_unlocked" "ac_cv_have_decl_feof_unlocked" "#include <stdio.h>
9592 if test "x$ac_cv_have_decl_feof_unlocked" = xyes; then :
9598 cat >>confdefs.h <<_ACEOF
9599 #define HAVE_DECL_FEOF_UNLOCKED $ac_have_decl
9601 ac_fn_c_check_decl "$LINENO" "fgets_unlocked" "ac_cv_have_decl_fgets_unlocked" "#include <stdio.h>
9603 if test "x$ac_cv_have_decl_fgets_unlocked" = xyes; then :
9609 cat >>confdefs.h <<_ACEOF
9610 #define HAVE_DECL_FGETS_UNLOCKED $ac_have_decl
9616 for ac_prog in bison
9618 # Extract the first word of "$ac_prog", so it can be a program name with args.
9619 set dummy $ac_prog; ac_word=$2
9620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9621 $as_echo_n "checking for $ac_word... " >&6; }
9622 if ${ac_cv_prog_INTLBISON+:} false; then :
9623 $as_echo_n "(cached) " >&6
9625 if test -n "$INTLBISON"; then
9626 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
9628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9632 test -z "$as_dir" && as_dir=.
9633 for ac_exec_ext in '' $ac_executable_extensions; do
9634 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9635 ac_cv_prog_INTLBISON="$ac_prog"
9636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9645 INTLBISON=$ac_cv_prog_INTLBISON
9646 if test -n "$INTLBISON"; then
9647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
9648 $as_echo "$INTLBISON" >&6; }
9650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9651 $as_echo "no" >&6; }
9655 test -n "$INTLBISON" && break
9658 if test -z "$INTLBISON"; then
9661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
9662 $as_echo_n "checking version of bison... " >&6; }
9663 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
9664 case $ac_prog_version in
9665 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
9666 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
9667 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
9668 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
9670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
9671 $as_echo "$ac_prog_version" >&6; }
9673 if test $ac_verc_fail = yes; then
9679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
9680 $as_echo_n "checking for long long int... " >&6; }
9681 if ${ac_cv_type_long_long_int+:} false; then :
9682 $as_echo_n "(cached) " >&6
9684 ac_cv_type_long_long_int=yes
9685 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
9686 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
9687 if test $ac_cv_type_long_long_int = yes; then
9688 if test "$cross_compiling" = yes; then :
9691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9692 /* end confdefs.h. */
9696 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
9697 # define LLONG_MAX (HALF - 1 + HALF)
9702 long long int n = 1;
9706 long long int m = n << i;
9709 if (LLONG_MAX / 2 < m)
9717 if ac_fn_c_try_run "$LINENO"; then :
9720 ac_cv_type_long_long_int=no
9722 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9723 conftest.$ac_objext conftest.beam conftest.$ac_ext
9729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
9730 $as_echo "$ac_cv_type_long_long_int" >&6; }
9731 if test $ac_cv_type_long_long_int = yes; then
9733 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
9738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
9739 $as_echo_n "checking for wchar_t... " >&6; }
9740 if ${gt_cv_c_wchar_t+:} false; then :
9741 $as_echo_n "(cached) " >&6
9743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9744 /* end confdefs.h. */
9746 wchar_t foo = (wchar_t)'\0';
9755 if ac_fn_c_try_compile "$LINENO"; then :
9760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
9763 $as_echo "$gt_cv_c_wchar_t" >&6; }
9764 if test $gt_cv_c_wchar_t = yes; then
9766 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
9771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
9772 $as_echo_n "checking for wint_t... " >&6; }
9773 if ${gt_cv_c_wint_t+:} false; then :
9774 $as_echo_n "(cached) " >&6
9776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9777 /* end confdefs.h. */
9779 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
9781 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
9782 before <wchar.h>. */
9787 wint_t foo = (wchar_t)'\0';
9796 if ac_fn_c_try_compile "$LINENO"; then :
9801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
9804 $as_echo "$gt_cv_c_wint_t" >&6; }
9805 if test $gt_cv_c_wint_t = yes; then
9807 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
9814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
9815 $as_echo_n "checking for intmax_t... " >&6; }
9816 if ${gt_cv_c_intmax_t+:} false; then :
9817 $as_echo_n "(cached) " >&6
9819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9820 /* end confdefs.h. */
9824 #if HAVE_STDINT_H_WITH_UINTMAX
9827 #if HAVE_INTTYPES_H_WITH_UINTMAX
9828 #include <inttypes.h>
9840 if ac_fn_c_try_compile "$LINENO"; then :
9841 gt_cv_c_intmax_t=yes
9845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
9848 $as_echo "$gt_cv_c_intmax_t" >&6; }
9849 if test $gt_cv_c_intmax_t = yes; then
9851 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
9857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
9858 $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
9859 if ${gt_cv_func_printf_posix+:} false; then :
9860 $as_echo_n "(cached) " >&6
9863 if test "$cross_compiling" = yes; then :
9865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9866 /* end confdefs.h. */
9868 #if defined __NetBSD__ || defined __BEOS__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
9873 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9874 $EGREP "notposix" >/dev/null 2>&1; then :
9875 gt_cv_func_printf_posix="guessing no"
9877 gt_cv_func_printf_posix="guessing yes"
9883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9884 /* end confdefs.h. */
9888 /* The string "%2$d %1$d", with dollar characters protected from the shell's
9889 dollar expansion (possibly an autoconf bug). */
9890 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
9891 static char buf[100];
9894 sprintf (buf, format, 33, 55);
9895 return (strcmp (buf, "55 33") != 0);
9898 if ac_fn_c_try_run "$LINENO"; then :
9899 gt_cv_func_printf_posix=yes
9901 gt_cv_func_printf_posix=no
9903 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9904 conftest.$ac_objext conftest.beam conftest.$ac_ext
9909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
9910 $as_echo "$gt_cv_func_printf_posix" >&6; }
9911 case $gt_cv_func_printf_posix in
9914 $as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
9920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library >= 2.1 or uClibc" >&5
9921 $as_echo_n "checking whether we are using the GNU C Library >= 2.1 or uClibc... " >&6; }
9922 if ${ac_cv_gnu_library_2_1+:} false; then :
9923 $as_echo_n "(cached) " >&6
9925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9926 /* end confdefs.h. */
9928 #include <features.h>
9929 #ifdef __GNU_LIBRARY__
9930 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
9939 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9940 $EGREP "Lucky" >/dev/null 2>&1; then :
9941 ac_cv_gnu_library_2_1=yes
9943 ac_cv_gnu_library_2_1=no
9950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
9951 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
9953 GLIBC21="$ac_cv_gnu_library_2_1"
9957 for ac_header in stdint.h
9959 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
9960 if test "x$ac_cv_header_stdint_h" = xyes; then :
9961 cat >>confdefs.h <<_ACEOF
9962 #define HAVE_STDINT_H 1
9969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
9970 $as_echo_n "checking for SIZE_MAX... " >&6; }
9971 if ${gl_cv_size_max+:} false; then :
9972 $as_echo_n "(cached) " >&6
9976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9977 /* end confdefs.h. */
9988 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9989 $EGREP "Found it" >/dev/null 2>&1; then :
9994 if test -z "$gl_cv_size_max"; then
9995 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1" "#include <stddef.h>
9996 #include <limits.h>"; then :
9999 size_t_bits_minus_1=
10002 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then :
10008 if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
10009 if test $fits_in_uint = 1; then
10010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10011 /* end confdefs.h. */
10012 #include <stddef.h>
10014 extern unsigned long foo;
10024 if ac_fn_c_try_compile "$LINENO"; then :
10027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10029 if test $fits_in_uint = 1; then
10030 gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
10032 gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
10035 gl_cv_size_max='((size_t)~(size_t)0)'
10040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5
10041 $as_echo "$gl_cv_size_max" >&6; }
10042 if test "$gl_cv_size_max" != yes; then
10044 cat >>confdefs.h <<_ACEOF
10045 #define SIZE_MAX $gl_cv_size_max
10053 for ac_header in stdint.h
10055 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
10056 if test "x$ac_cv_header_stdint_h" = xyes; then :
10057 cat >>confdefs.h <<_ACEOF
10058 #define HAVE_STDINT_H 1
10069 for ac_func in $ac_func_list
10071 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10072 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10073 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10074 cat >>confdefs.h <<_ACEOF
10075 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
10089 $as_echo_n "checking for working fcntl.h... " >&6; }
10090 if ${gl_cv_header_working_fcntl_h+:} false; then :
10091 $as_echo_n "(cached) " >&6
10093 if test "$cross_compiling" = yes; then :
10094 gl_cv_header_working_fcntl_h=cross-compiling
10096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10097 /* end confdefs.h. */
10098 #include <sys/types.h>
10099 #include <sys/stat.h>
10101 # include <unistd.h>
10102 #else /* on Windows with MSVC */
10104 # include <stdlib.h>
10105 # defined sleep(n) _sleep ((n) * 1000)
10109 #define O_NOATIME 0
10112 #define O_NOFOLLOW 0
10114 static int const constants[] =
10116 O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
10117 O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
10124 int result = !constants;
10127 static char const sym[] = "conftest.sym";
10128 if (symlink ("/dev/null", sym) != 0)
10132 int fd = open (sym, O_WRONLY | O_NOFOLLOW | O_CREAT, 0);
10139 if (unlink (sym) != 0 || symlink (".", sym) != 0)
10143 int fd = open (sym, O_RDONLY | O_NOFOLLOW);
10154 static char const file[] = "confdefs.h";
10155 int fd = open (file, O_RDONLY | O_NOATIME);
10161 if (fstat (fd, &st0) != 0)
10167 if (read (fd, &c, 1) != 1)
10171 if (close (fd) != 0)
10176 if (stat (file, &st1) != 0)
10179 if (st0.st_atime != st1.st_atime)
10191 if ac_fn_c_try_run "$LINENO"; then :
10192 gl_cv_header_working_fcntl_h=yes
10195 4) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
10196 64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
10197 68) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
10198 *) gl_cv_header_working_fcntl_h='no';;
10201 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10202 conftest.$ac_objext conftest.beam conftest.$ac_ext
10206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
10207 $as_echo "$gl_cv_header_working_fcntl_h" >&6; }
10209 case $gl_cv_header_working_fcntl_h in #(
10210 *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
10214 cat >>confdefs.h <<_ACEOF
10215 #define HAVE_WORKING_O_NOATIME $ac_val
10219 case $gl_cv_header_working_fcntl_h in #(
10220 *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
10224 cat >>confdefs.h <<_ACEOF
10225 #define HAVE_WORKING_O_NOFOLLOW $ac_val
10230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
10231 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
10232 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
10233 $as_echo_n "(cached) " >&6
10235 gt_save_LIBS="$LIBS"
10236 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10238 /* end confdefs.h. */
10239 #include <CoreFoundation/CFPreferences.h>
10243 CFPreferencesCopyAppValue(NULL, NULL)
10248 if ac_fn_c_try_link "$LINENO"; then :
10249 gt_cv_func_CFPreferencesCopyAppValue=yes
10251 gt_cv_func_CFPreferencesCopyAppValue=no
10253 rm -f core conftest.err conftest.$ac_objext \
10254 conftest$ac_exeext conftest.$ac_ext
10255 LIBS="$gt_save_LIBS"
10257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
10258 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
10259 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
10261 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
10264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
10265 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
10266 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
10267 $as_echo_n "(cached) " >&6
10269 gt_save_LIBS="$LIBS"
10270 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10272 /* end confdefs.h. */
10273 #include <CoreFoundation/CFLocale.h>
10277 CFLocaleCopyCurrent();
10282 if ac_fn_c_try_link "$LINENO"; then :
10283 gt_cv_func_CFLocaleCopyCurrent=yes
10285 gt_cv_func_CFLocaleCopyCurrent=no
10287 rm -f core conftest.err conftest.$ac_objext \
10288 conftest$ac_exeext conftest.$ac_ext
10289 LIBS="$gt_save_LIBS"
10291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
10292 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
10293 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10295 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
10299 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10300 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
10312 case "$enable_silent_rules" in
10313 yes) INTL_DEFAULT_VERBOSITY=0;;
10314 no) INTL_DEFAULT_VERBOSITY=1;;
10315 *) INTL_DEFAULT_VERBOSITY=1;;
10319 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
10320 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
10324 $as_echo "#define ptrdiff_t long" >>confdefs.h
10329 for ac_header in features.h stddef.h stdlib.h string.h
10331 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10332 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10333 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10334 cat >>confdefs.h <<_ACEOF
10335 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10342 for ac_func in asprintf fwprintf newlocale putenv setenv setlocale \
10343 snprintf strnlen wcslen wcsnlen mbrtowc wcrtomb
10345 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10346 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10347 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10348 cat >>confdefs.h <<_ACEOF
10349 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10356 ac_fn_c_check_decl "$LINENO" "_snprintf" "ac_cv_have_decl__snprintf" "#include <stdio.h>
10358 if test "x$ac_cv_have_decl__snprintf" = xyes; then :
10364 cat >>confdefs.h <<_ACEOF
10365 #define HAVE_DECL__SNPRINTF $ac_have_decl
10367 ac_fn_c_check_decl "$LINENO" "_snwprintf" "ac_cv_have_decl__snwprintf" "#include <stdio.h>
10369 if test "x$ac_cv_have_decl__snwprintf" = xyes; then :
10375 cat >>confdefs.h <<_ACEOF
10376 #define HAVE_DECL__SNWPRINTF $ac_have_decl
10380 ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "#include <stdio.h>
10382 if test "x$ac_cv_have_decl_getc_unlocked" = xyes; then :
10388 cat >>confdefs.h <<_ACEOF
10389 #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
10393 case $gt_cv_func_printf_posix in
10394 *yes) HAVE_POSIX_PRINTF=1 ;;
10395 *) HAVE_POSIX_PRINTF=0 ;;
10398 if test "$ac_cv_func_asprintf" = yes; then
10404 if test "$ac_cv_func_snprintf" = yes; then
10410 if test "$ac_cv_func_newlocale" = yes; then
10416 if test "$ac_cv_func_wprintf" = yes; then
10424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10425 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10426 if ${am_cv_langinfo_codeset+:} false; then :
10427 $as_echo_n "(cached) " >&6
10429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10430 /* end confdefs.h. */
10431 #include <langinfo.h>
10435 char* cs = nl_langinfo(CODESET); return !cs;
10440 if ac_fn_c_try_link "$LINENO"; then :
10441 am_cv_langinfo_codeset=yes
10443 am_cv_langinfo_codeset=no
10445 rm -f core conftest.err conftest.$ac_objext \
10446 conftest$ac_exeext conftest.$ac_ext
10449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10450 $as_echo "$am_cv_langinfo_codeset" >&6; }
10451 if test $am_cv_langinfo_codeset = yes; then
10453 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10459 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10460 if ${gt_cv_val_LC_MESSAGES+:} false; then :
10461 $as_echo_n "(cached) " >&6
10463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10464 /* end confdefs.h. */
10465 #include <locale.h>
10474 if ac_fn_c_try_link "$LINENO"; then :
10475 gt_cv_val_LC_MESSAGES=yes
10477 gt_cv_val_LC_MESSAGES=no
10479 rm -f core conftest.err conftest.$ac_objext \
10480 conftest$ac_exeext conftest.$ac_ext
10482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5
10483 $as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
10484 if test $gt_cv_val_LC_MESSAGES = yes; then
10486 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10491 if test "$enable_shared" = yes; then
10493 mingw* | cygwin*) is_woe32dll=yes ;;
10494 *) is_woe32dll=no ;;
10499 WOE32DLL=$is_woe32dll
10503 mingw* | cygwin*) is_woe32=yes ;;
10508 if test $WOE32 = yes; then
10509 if test -n "$ac_tool_prefix"; then
10510 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
10511 set dummy ${ac_tool_prefix}windres; ac_word=$2
10512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10513 $as_echo_n "checking for $ac_word... " >&6; }
10514 if ${ac_cv_prog_WINDRES+:} false; then :
10515 $as_echo_n "(cached) " >&6
10517 if test -n "$WINDRES"; then
10518 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
10520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10521 for as_dir in $PATH
10524 test -z "$as_dir" && as_dir=.
10525 for ac_exec_ext in '' $ac_executable_extensions; do
10526 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10527 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
10528 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10537 WINDRES=$ac_cv_prog_WINDRES
10538 if test -n "$WINDRES"; then
10539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
10540 $as_echo "$WINDRES" >&6; }
10542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10543 $as_echo "no" >&6; }
10548 if test -z "$ac_cv_prog_WINDRES"; then
10549 ac_ct_WINDRES=$WINDRES
10550 # Extract the first word of "windres", so it can be a program name with args.
10551 set dummy windres; ac_word=$2
10552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10553 $as_echo_n "checking for $ac_word... " >&6; }
10554 if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
10555 $as_echo_n "(cached) " >&6
10557 if test -n "$ac_ct_WINDRES"; then
10558 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
10560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10561 for as_dir in $PATH
10564 test -z "$as_dir" && as_dir=.
10565 for ac_exec_ext in '' $ac_executable_extensions; do
10566 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10567 ac_cv_prog_ac_ct_WINDRES="windres"
10568 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10577 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
10578 if test -n "$ac_ct_WINDRES"; then
10579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
10580 $as_echo "$ac_ct_WINDRES" >&6; }
10582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10583 $as_echo "no" >&6; }
10586 if test "x$ac_ct_WINDRES" = x; then
10589 case $cross_compiling:$ac_tool_warned in
10591 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10592 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10593 ac_tool_warned=yes ;;
10595 WINDRES=$ac_ct_WINDRES
10598 WINDRES="$ac_cv_prog_WINDRES"
10604 hpux*) LTLIBC="" ;;
10634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
10635 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
10636 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
10637 $as_echo_n "(cached) " >&6
10639 gt_save_LIBS="$LIBS"
10640 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10642 /* end confdefs.h. */
10643 #include <CoreFoundation/CFPreferences.h>
10647 CFPreferencesCopyAppValue(NULL, NULL)
10652 if ac_fn_c_try_link "$LINENO"; then :
10653 gt_cv_func_CFPreferencesCopyAppValue=yes
10655 gt_cv_func_CFPreferencesCopyAppValue=no
10657 rm -f core conftest.err conftest.$ac_objext \
10658 conftest$ac_exeext conftest.$ac_ext
10659 LIBS="$gt_save_LIBS"
10661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
10662 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
10663 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
10665 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
10668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
10669 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
10670 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
10671 $as_echo_n "(cached) " >&6
10673 gt_save_LIBS="$LIBS"
10674 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10676 /* end confdefs.h. */
10677 #include <CoreFoundation/CFLocale.h>
10681 CFLocaleCopyCurrent();
10686 if ac_fn_c_try_link "$LINENO"; then :
10687 gt_cv_func_CFLocaleCopyCurrent=yes
10689 gt_cv_func_CFLocaleCopyCurrent=no
10691 rm -f core conftest.err conftest.$ac_objext \
10692 conftest$ac_exeext conftest.$ac_ext
10693 LIBS="$gt_save_LIBS"
10695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
10696 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
10697 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10699 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
10703 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10704 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
10712 BUILD_INCLUDED_LIBINTL=no
10713 USE_INCLUDED_LIBINTL=no
10719 case " $gt_needs " in
10720 *" need-formatstring-macros "*) gt_api_version=3 ;;
10721 *" need-ngettext "*) gt_api_version=2 ;;
10722 *) gt_api_version=1 ;;
10724 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
10725 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
10727 if test "$USE_NLS" = "yes"; then
10728 gt_use_preinstalled_gnugettext=no
10730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
10731 $as_echo_n "checking whether included gettext is requested... " >&6; }
10733 # Check whether --with-included-gettext was given.
10734 if test "${with_included_gettext+set}" = set; then :
10735 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
10737 nls_cv_force_use_gnu_gettext=no
10740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
10741 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
10743 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
10744 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
10747 if test $gt_api_version -ge 3; then
10748 gt_revision_test_code='
10749 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
10750 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
10752 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
10755 gt_revision_test_code=
10757 if test $gt_api_version -ge 2; then
10758 gt_expression_test_code=' + * ngettext ("", "", 0)'
10760 gt_expression_test_code=
10763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
10764 $as_echo_n "checking for GNU gettext in libc... " >&6; }
10765 if eval \${$gt_func_gnugettext_libc+:} false; then :
10766 $as_echo_n "(cached) " >&6
10768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10769 /* end confdefs.h. */
10771 #include <libintl.h>
10772 $gt_revision_test_code
10773 extern int _nl_msg_cat_cntr;
10774 extern int *_nl_domain_bindings;
10780 bindtextdomain ("", "");
10781 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
10787 if ac_fn_c_try_link "$LINENO"; then :
10788 eval "$gt_func_gnugettext_libc=yes"
10790 eval "$gt_func_gnugettext_libc=no"
10792 rm -f core conftest.err conftest.$ac_objext \
10793 conftest$ac_exeext conftest.$ac_ext
10795 eval ac_res=\$$gt_func_gnugettext_libc
10796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10797 $as_echo "$ac_res" >&6; }
10799 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
10810 acl_save_prefix="$prefix"
10811 prefix="$acl_final_prefix"
10812 acl_save_exec_prefix="$exec_prefix"
10813 exec_prefix="$acl_final_exec_prefix"
10815 eval additional_includedir=\"$includedir\"
10816 eval additional_libdir=\"$libdir\"
10818 exec_prefix="$acl_save_exec_prefix"
10819 prefix="$acl_save_prefix"
10822 # Check whether --with-libintl-prefix was given.
10823 if test "${with_libintl_prefix+set}" = set; then :
10824 withval=$with_libintl_prefix;
10825 if test "X$withval" = "Xno"; then
10828 if test "X$withval" = "X"; then
10830 acl_save_prefix="$prefix"
10831 prefix="$acl_final_prefix"
10832 acl_save_exec_prefix="$exec_prefix"
10833 exec_prefix="$acl_final_exec_prefix"
10835 eval additional_includedir=\"$includedir\"
10836 eval additional_libdir=\"$libdir\"
10838 exec_prefix="$acl_save_exec_prefix"
10839 prefix="$acl_save_prefix"
10842 additional_includedir="$withval/include"
10843 additional_libdir="$withval/$acl_libdirstem"
10844 if test "$acl_libdirstem2" != "$acl_libdirstem" \
10845 && ! test -d "$withval/$acl_libdirstem"; then
10846 additional_libdir="$withval/$acl_libdirstem2"
10860 names_already_handled=
10861 names_next_round='intl '
10862 while test -n "$names_next_round"; do
10863 names_this_round="$names_next_round"
10865 for name in $names_this_round; do
10867 for n in $names_already_handled; do
10868 if test "$n" = "$name"; then
10869 already_handled=yes
10873 if test -z "$already_handled"; then
10874 names_already_handled="$names_already_handled $name"
10875 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
10876 eval value=\"\$HAVE_LIB$uppername\"
10877 if test -n "$value"; then
10878 if test "$value" = yes; then
10879 eval value=\"\$LIB$uppername\"
10880 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
10881 eval value=\"\$LTLIB$uppername\"
10882 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
10891 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
10892 if test -n "$acl_shlibext"; then
10893 shrext=".$acl_shlibext" # typically: shrext=.so
10897 if test $use_additional = yes; then
10898 dir="$additional_libdir"
10899 if test -n "$acl_shlibext"; then
10900 if test -f "$dir/$libname$shrext"; then
10902 found_so="$dir/$libname$shrext"
10904 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
10905 ver=`(cd "$dir" && \
10906 for f in "$libname$shrext".*; do echo "$f"; done \
10907 | sed -e "s,^$libname$shrext\\\\.,," \
10908 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
10909 | sed 1q ) 2>/dev/null`
10910 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
10912 found_so="$dir/$libname$shrext.$ver"
10915 eval library_names=\"$acl_library_names_spec\"
10916 for f in $library_names; do
10917 if test -f "$dir/$f"; then
10926 if test "X$found_dir" = "X"; then
10927 if test -f "$dir/$libname.$acl_libext"; then
10929 found_a="$dir/$libname.$acl_libext"
10932 if test "X$found_dir" != "X"; then
10933 if test -f "$dir/$libname.la"; then
10934 found_la="$dir/$libname.la"
10938 if test "X$found_dir" = "X"; then
10939 for x in $LDFLAGS $LTLIBINTL; do
10941 acl_save_prefix="$prefix"
10942 prefix="$acl_final_prefix"
10943 acl_save_exec_prefix="$exec_prefix"
10944 exec_prefix="$acl_final_exec_prefix"
10946 exec_prefix="$acl_save_exec_prefix"
10947 prefix="$acl_save_prefix"
10951 dir=`echo "X$x" | sed -e 's/^X-L//'`
10952 if test -n "$acl_shlibext"; then
10953 if test -f "$dir/$libname$shrext"; then
10955 found_so="$dir/$libname$shrext"
10957 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
10958 ver=`(cd "$dir" && \
10959 for f in "$libname$shrext".*; do echo "$f"; done \
10960 | sed -e "s,^$libname$shrext\\\\.,," \
10961 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
10962 | sed 1q ) 2>/dev/null`
10963 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
10965 found_so="$dir/$libname$shrext.$ver"
10968 eval library_names=\"$acl_library_names_spec\"
10969 for f in $library_names; do
10970 if test -f "$dir/$f"; then
10979 if test "X$found_dir" = "X"; then
10980 if test -f "$dir/$libname.$acl_libext"; then
10982 found_a="$dir/$libname.$acl_libext"
10985 if test "X$found_dir" != "X"; then
10986 if test -f "$dir/$libname.la"; then
10987 found_la="$dir/$libname.la"
10992 if test "X$found_dir" != "X"; then
10997 if test "X$found_dir" != "X"; then
10998 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
10999 if test "X$found_so" != "X"; then
11000 if test "$enable_rpath" = no \
11001 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
11002 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
11003 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11006 for x in $ltrpathdirs; do
11007 if test "X$x" = "X$found_dir"; then
11012 if test -z "$haveit"; then
11013 ltrpathdirs="$ltrpathdirs $found_dir"
11015 if test "$acl_hardcode_direct" = yes; then
11016 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11018 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
11019 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11021 for x in $rpathdirs; do
11022 if test "X$x" = "X$found_dir"; then
11027 if test -z "$haveit"; then
11028 rpathdirs="$rpathdirs $found_dir"
11032 for x in $LDFLAGS $LIBINTL; do
11034 acl_save_prefix="$prefix"
11035 prefix="$acl_final_prefix"
11036 acl_save_exec_prefix="$exec_prefix"
11037 exec_prefix="$acl_final_exec_prefix"
11039 exec_prefix="$acl_save_exec_prefix"
11040 prefix="$acl_save_prefix"
11042 if test "X$x" = "X-L$found_dir"; then
11047 if test -z "$haveit"; then
11048 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
11050 if test "$acl_hardcode_minus_L" != no; then
11051 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11053 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
11059 if test "X$found_a" != "X"; then
11060 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
11062 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
11065 additional_includedir=
11066 case "$found_dir" in
11067 */$acl_libdirstem | */$acl_libdirstem/)
11068 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
11069 if test "$name" = 'intl'; then
11070 LIBINTL_PREFIX="$basedir"
11072 additional_includedir="$basedir/include"
11074 */$acl_libdirstem2 | */$acl_libdirstem2/)
11075 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
11076 if test "$name" = 'intl'; then
11077 LIBINTL_PREFIX="$basedir"
11079 additional_includedir="$basedir/include"
11082 if test "X$additional_includedir" != "X"; then
11083 if test "X$additional_includedir" != "X/usr/include"; then
11085 if test "X$additional_includedir" = "X/usr/local/include"; then
11086 if test -n "$GCC"; then
11088 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
11092 if test -z "$haveit"; then
11093 for x in $CPPFLAGS $INCINTL; do
11095 acl_save_prefix="$prefix"
11096 prefix="$acl_final_prefix"
11097 acl_save_exec_prefix="$exec_prefix"
11098 exec_prefix="$acl_final_exec_prefix"
11100 exec_prefix="$acl_save_exec_prefix"
11101 prefix="$acl_save_prefix"
11103 if test "X$x" = "X-I$additional_includedir"; then
11108 if test -z "$haveit"; then
11109 if test -d "$additional_includedir"; then
11110 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
11116 if test -n "$found_la"; then
11117 save_libdir="$libdir"
11118 case "$found_la" in
11119 */* | *\\*) . "$found_la" ;;
11120 *) . "./$found_la" ;;
11122 libdir="$save_libdir"
11123 for dep in $dependency_libs; do
11126 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
11127 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
11128 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
11130 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
11131 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
11132 if test -n "$GCC"; then
11134 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
11138 if test -z "$haveit"; then
11140 for x in $LDFLAGS $LIBINTL; do
11142 acl_save_prefix="$prefix"
11143 prefix="$acl_final_prefix"
11144 acl_save_exec_prefix="$exec_prefix"
11145 exec_prefix="$acl_final_exec_prefix"
11147 exec_prefix="$acl_save_exec_prefix"
11148 prefix="$acl_save_prefix"
11150 if test "X$x" = "X-L$additional_libdir"; then
11155 if test -z "$haveit"; then
11156 if test -d "$additional_libdir"; then
11157 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
11161 for x in $LDFLAGS $LTLIBINTL; do
11163 acl_save_prefix="$prefix"
11164 prefix="$acl_final_prefix"
11165 acl_save_exec_prefix="$exec_prefix"
11166 exec_prefix="$acl_final_exec_prefix"
11168 exec_prefix="$acl_save_exec_prefix"
11169 prefix="$acl_save_prefix"
11171 if test "X$x" = "X-L$additional_libdir"; then
11176 if test -z "$haveit"; then
11177 if test -d "$additional_libdir"; then
11178 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
11185 dir=`echo "X$dep" | sed -e 's/^X-R//'`
11186 if test "$enable_rpath" != no; then
11188 for x in $rpathdirs; do
11189 if test "X$x" = "X$dir"; then
11194 if test -z "$haveit"; then
11195 rpathdirs="$rpathdirs $dir"
11198 for x in $ltrpathdirs; do
11199 if test "X$x" = "X$dir"; then
11204 if test -z "$haveit"; then
11205 ltrpathdirs="$ltrpathdirs $dir"
11210 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11213 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11216 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
11217 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
11223 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
11224 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
11230 if test "X$rpathdirs" != "X"; then
11231 if test -n "$acl_hardcode_libdir_separator"; then
11233 for found_dir in $rpathdirs; do
11234 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
11236 acl_save_libdir="$libdir"
11238 eval flag=\"$acl_hardcode_libdir_flag_spec\"
11239 libdir="$acl_save_libdir"
11240 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
11242 for found_dir in $rpathdirs; do
11243 acl_save_libdir="$libdir"
11244 libdir="$found_dir"
11245 eval flag=\"$acl_hardcode_libdir_flag_spec\"
11246 libdir="$acl_save_libdir"
11247 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
11251 if test "X$ltrpathdirs" != "X"; then
11252 for found_dir in $ltrpathdirs; do
11253 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
11262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
11263 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
11264 if eval \${$gt_func_gnugettext_libintl+:} false; then :
11265 $as_echo_n "(cached) " >&6
11267 gt_save_CPPFLAGS="$CPPFLAGS"
11268 CPPFLAGS="$CPPFLAGS $INCINTL"
11269 gt_save_LIBS="$LIBS"
11270 LIBS="$LIBS $LIBINTL"
11271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11272 /* end confdefs.h. */
11274 #include <libintl.h>
11275 $gt_revision_test_code
11276 extern int _nl_msg_cat_cntr;
11281 const char *_nl_expand_alias (const char *);
11287 bindtextdomain ("", "");
11288 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
11294 if ac_fn_c_try_link "$LINENO"; then :
11295 eval "$gt_func_gnugettext_libintl=yes"
11297 eval "$gt_func_gnugettext_libintl=no"
11299 rm -f core conftest.err conftest.$ac_objext \
11300 conftest$ac_exeext conftest.$ac_ext
11301 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
11302 LIBS="$LIBS $LIBICONV"
11303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11304 /* end confdefs.h. */
11306 #include <libintl.h>
11307 $gt_revision_test_code
11308 extern int _nl_msg_cat_cntr;
11313 const char *_nl_expand_alias (const char *);
11319 bindtextdomain ("", "");
11320 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
11326 if ac_fn_c_try_link "$LINENO"; then :
11327 LIBINTL="$LIBINTL $LIBICONV"
11328 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
11329 eval "$gt_func_gnugettext_libintl=yes"
11332 rm -f core conftest.err conftest.$ac_objext \
11333 conftest$ac_exeext conftest.$ac_ext
11335 CPPFLAGS="$gt_save_CPPFLAGS"
11336 LIBS="$gt_save_LIBS"
11338 eval ac_res=\$$gt_func_gnugettext_libintl
11339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11340 $as_echo "$ac_res" >&6; }
11343 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
11344 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
11345 && test "$PACKAGE" != gettext-runtime \
11346 && test "$PACKAGE" != gettext-tools; }; then
11347 gt_use_preinstalled_gnugettext=yes
11355 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
11356 nls_cv_use_gnu_gettext=yes
11360 if test "$nls_cv_use_gnu_gettext" = "yes"; then
11361 BUILD_INCLUDED_LIBINTL=yes
11362 USE_INCLUDED_LIBINTL=yes
11363 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV $LIBTHREAD"
11364 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV $LTLIBTHREAD"
11365 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
11369 if test "$gt_use_preinstalled_gnugettext" = "yes" \
11370 || test "$nls_cv_use_gnu_gettext" = "yes"; then
11375 if test -n "$INTL_MACOSX_LIBS"; then
11376 if test "$gt_use_preinstalled_gnugettext" = "yes" \
11377 || test "$nls_cv_use_gnu_gettext" = "yes"; then
11378 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
11379 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
11383 if test "$gt_use_preinstalled_gnugettext" = "yes" \
11384 || test "$nls_cv_use_gnu_gettext" = "yes"; then
11386 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
11394 $as_echo_n "checking whether to use NLS... " >&6; }
11395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
11396 $as_echo "$USE_NLS" >&6; }
11397 if test "$USE_NLS" = "yes"; then
11398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
11399 $as_echo_n "checking where the gettext function comes from... " >&6; }
11400 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
11401 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
11402 gt_source="external libintl"
11407 gt_source="included intl directory"
11409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
11410 $as_echo "$gt_source" >&6; }
11413 if test "$USE_NLS" = "yes"; then
11415 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
11416 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
11417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
11418 $as_echo_n "checking how to link with libintl... " >&6; }
11419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
11420 $as_echo "$LIBINTL" >&6; }
11422 for element in $INCINTL; do
11424 for x in $CPPFLAGS; do
11426 acl_save_prefix="$prefix"
11427 prefix="$acl_final_prefix"
11428 acl_save_exec_prefix="$exec_prefix"
11429 exec_prefix="$acl_final_exec_prefix"
11431 exec_prefix="$acl_save_exec_prefix"
11432 prefix="$acl_save_prefix"
11434 if test "X$x" = "X$element"; then
11439 if test -z "$haveit"; then
11440 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11447 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
11450 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
11458 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
11459 BUILD_INCLUDED_LIBINTL=yes
11466 nls_cv_header_intl=
11467 nls_cv_header_libgt=
11479 if test "$USE_INCLUDED_LIBINTL" = yes; then
11480 INTLOBJS="\$(GETTOBJS)"
11484 INTL_LIBTOOL_SUFFIX_PREFIX=
11488 INTLLIBS="$LIBINTL"
11496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
11497 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
11499 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
11500 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
11501 $as_echo_n "(cached) " >&6
11503 cat >conftest.make <<\_ACEOF
11506 @echo '@@@%%%=$(MAKE)=@@@%%%'
11508 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
11509 case `${MAKE-make} -f conftest.make 2>/dev/null` in
11510 *@@@%%%=?*=@@@%%%*)
11511 eval ac_cv_prog_make_${ac_make}_set=yes;;
11513 eval ac_cv_prog_make_${ac_make}_set=no;;
11515 rm -f conftest.make
11517 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
11518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11519 $as_echo "yes" >&6; }
11522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11523 $as_echo "no" >&6; }
11524 SET_MAKE="MAKE=${MAKE-make}"
11527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5
11528 $as_echo_n "checking for GNU make... " >&6; }
11529 if ${_cv_gnu_make_command+:} false; then :
11530 $as_echo_n "(cached) " >&6
11532 _cv_gnu_make_command='' ;
11533 if test -n "$FORCE_NATIVE_MAKE" ; then
11536 MAKES="make gmake gnumake"
11538 for a in "$MAKE" $MAKES ; do
11539 if test -z "$a" ; then continue ; fi ;
11540 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
11541 _cv_gnu_make_command=$a ;
11547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_cv_gnu_make_command" >&5
11548 $as_echo "$_cv_gnu_make_command" >&6; } ;
11549 if test "x$_cv_gnu_make_command" != "x" ; then
11555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"Not found\"" >&5
11556 $as_echo "\"Not found\"" >&6; };
11561 # Extract the first word of "ln", so it can be a program name with args.
11562 set dummy ln; ac_word=$2
11563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11564 $as_echo_n "checking for $ac_word... " >&6; }
11565 if ${ac_cv_path_LN+:} false; then :
11566 $as_echo_n "(cached) " >&6
11570 ac_cv_path_LN="$LN" # Let the user override the test with a path.
11573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11574 for as_dir in $PATH
11577 test -z "$as_dir" && as_dir=.
11578 for ac_exec_ext in '' $ac_executable_extensions; do
11579 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11580 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
11581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11588 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
11593 if test -n "$LN"; then
11594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
11595 $as_echo "$LN" >&6; }
11597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11598 $as_echo "no" >&6; }
11602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
11603 $as_echo_n "checking whether ln -s works... " >&6; }
11605 if test "$LN_S" = "ln -s"; then
11606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11607 $as_echo "yes" >&6; }
11609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
11610 $as_echo "no, using $LN_S" >&6; }
11613 # Extract the first word of "mv", so it can be a program name with args.
11614 set dummy mv; ac_word=$2
11615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11616 $as_echo_n "checking for $ac_word... " >&6; }
11617 if ${ac_cv_path_MV+:} false; then :
11618 $as_echo_n "(cached) " >&6
11622 ac_cv_path_MV="$MV" # Let the user override the test with a path.
11625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11626 for as_dir in $PATH
11629 test -z "$as_dir" && as_dir=.
11630 for ac_exec_ext in '' $ac_executable_extensions; do
11631 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11632 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
11633 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11640 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
11645 if test -n "$MV"; then
11646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
11647 $as_echo "$MV" >&6; }
11649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11650 $as_echo "no" >&6; }
11654 # Extract the first word of "cp", so it can be a program name with args.
11655 set dummy cp; ac_word=$2
11656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11657 $as_echo_n "checking for $ac_word... " >&6; }
11658 if ${ac_cv_path_CP+:} false; then :
11659 $as_echo_n "(cached) " >&6
11663 ac_cv_path_CP="$CP" # Let the user override the test with a path.
11666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11667 for as_dir in $PATH
11670 test -z "$as_dir" && as_dir=.
11671 for ac_exec_ext in '' $ac_executable_extensions; do
11672 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11673 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
11674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11681 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
11686 if test -n "$CP"; then
11687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
11688 $as_echo "$CP" >&6; }
11690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11691 $as_echo "no" >&6; }
11695 # Extract the first word of "rm", so it can be a program name with args.
11696 set dummy rm; ac_word=$2
11697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11698 $as_echo_n "checking for $ac_word... " >&6; }
11699 if ${ac_cv_path_RM+:} false; then :
11700 $as_echo_n "(cached) " >&6
11704 ac_cv_path_RM="$RM" # Let the user override the test with a path.
11707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11708 for as_dir in $PATH
11711 test -z "$as_dir" && as_dir=.
11712 for ac_exec_ext in '' $ac_executable_extensions; do
11713 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11714 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
11715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11722 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
11727 if test -n "$RM"; then
11728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
11729 $as_echo "$RM" >&6; }
11731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11732 $as_echo "no" >&6; }
11736 # Extract the first word of "chmod", so it can be a program name with args.
11737 set dummy chmod; ac_word=$2
11738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11739 $as_echo_n "checking for $ac_word... " >&6; }
11740 if ${ac_cv_path_CHMOD+:} false; then :
11741 $as_echo_n "(cached) " >&6
11745 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
11748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11749 for as_dir in $PATH
11752 test -z "$as_dir" && as_dir=.
11753 for ac_exec_ext in '' $ac_executable_extensions; do
11754 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11755 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
11756 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11763 test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
11767 CHMOD=$ac_cv_path_CHMOD
11768 if test -n "$CHMOD"; then
11769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
11770 $as_echo "$CHMOD" >&6; }
11772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11773 $as_echo "no" >&6; }
11777 for ac_prog in gawk mawk nawk awk
11779 # Extract the first word of "$ac_prog", so it can be a program name with args.
11780 set dummy $ac_prog; ac_word=$2
11781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11782 $as_echo_n "checking for $ac_word... " >&6; }
11783 if ${ac_cv_prog_AWK+:} false; then :
11784 $as_echo_n "(cached) " >&6
11786 if test -n "$AWK"; then
11787 ac_cv_prog_AWK="$AWK" # Let the user override the test.
11789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11790 for as_dir in $PATH
11793 test -z "$as_dir" && as_dir=.
11794 for ac_exec_ext in '' $ac_executable_extensions; do
11795 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11796 ac_cv_prog_AWK="$ac_prog"
11797 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11806 AWK=$ac_cv_prog_AWK
11807 if test -n "$AWK"; then
11808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
11809 $as_echo "$AWK" >&6; }
11811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11812 $as_echo "no" >&6; }
11816 test -n "$AWK" && break
11819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
11820 $as_echo_n "checking for egrep... " >&6; }
11821 if ${ac_cv_path_EGREP+:} false; then :
11822 $as_echo_n "(cached) " >&6
11824 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
11825 then ac_cv_path_EGREP="$GREP -E"
11827 if test -z "$EGREP"; then
11828 ac_path_EGREP_found=false
11829 # Loop through the user's path and test for each of PROGNAME-LIST
11830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11831 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11834 test -z "$as_dir" && as_dir=.
11835 for ac_prog in egrep; do
11836 for ac_exec_ext in '' $ac_executable_extensions; do
11837 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
11838 as_fn_executable_p "$ac_path_EGREP" || continue
11839 # Check for GNU ac_path_EGREP and select it if it is found.
11840 # Check for GNU $ac_path_EGREP
11841 case `"$ac_path_EGREP" --version 2>&1` in
11843 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
11846 $as_echo_n 0123456789 >"conftest.in"
11849 cat "conftest.in" "conftest.in" >"conftest.tmp"
11850 mv "conftest.tmp" "conftest.in"
11851 cp "conftest.in" "conftest.nl"
11852 $as_echo 'EGREP' >> "conftest.nl"
11853 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11854 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11855 as_fn_arith $ac_count + 1 && ac_count=$as_val
11856 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
11857 # Best one so far, save it but keep looking for a better one
11858 ac_cv_path_EGREP="$ac_path_EGREP"
11859 ac_path_EGREP_max=$ac_count
11861 # 10*(2^10) chars as input seems more than enough
11862 test $ac_count -gt 10 && break
11864 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11867 $ac_path_EGREP_found && break 3
11872 if test -z "$ac_cv_path_EGREP"; then
11873 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11876 ac_cv_path_EGREP=$EGREP
11881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
11882 $as_echo "$ac_cv_path_EGREP" >&6; }
11883 EGREP="$ac_cv_path_EGREP"
11886 # Extract the first word of "sed", so it can be a program name with args.
11887 set dummy sed; ac_word=$2
11888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11889 $as_echo_n "checking for $ac_word... " >&6; }
11890 if ${ac_cv_path_SED+:} false; then :
11891 $as_echo_n "(cached) " >&6
11895 ac_cv_path_SED="$SED" # Let the user override the test with a path.
11898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11899 for as_dir in $PATH
11902 test -z "$as_dir" && as_dir=.
11903 for ac_exec_ext in '' $ac_executable_extensions; do
11904 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11905 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
11906 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11913 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
11917 SED=$ac_cv_path_SED
11918 if test -n "$SED"; then
11919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
11920 $as_echo "$SED" >&6; }
11922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11923 $as_echo "no" >&6; }
11927 # Extract the first word of "perl", so it can be a program name with args.
11928 set dummy perl; ac_word=$2
11929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11930 $as_echo_n "checking for $ac_word... " >&6; }
11931 if ${ac_cv_path_PERL+:} false; then :
11932 $as_echo_n "(cached) " >&6
11936 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
11939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11940 for as_dir in $PATH
11943 test -z "$as_dir" && as_dir=.
11944 for ac_exec_ext in '' $ac_executable_extensions; do
11945 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11946 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
11947 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11954 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
11958 PERL=$ac_cv_path_PERL
11959 if test -n "$PERL"; then
11960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
11961 $as_echo "$PERL" >&6; }
11963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11964 $as_echo "no" >&6; }
11968 # Extract the first word of "ldconfig", so it can be a program name with args.
11969 set dummy ldconfig; ac_word=$2
11970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11971 $as_echo_n "checking for $ac_word... " >&6; }
11972 if ${ac_cv_path_LDCONFIG+:} false; then :
11973 $as_echo_n "(cached) " >&6
11977 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
11980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11981 for as_dir in $PATH
11984 test -z "$as_dir" && as_dir=.
11985 for ac_exec_ext in '' $ac_executable_extensions; do
11986 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11987 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
11988 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11995 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
11999 LDCONFIG=$ac_cv_path_LDCONFIG
12000 if test -n "$LDCONFIG"; then
12001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
12002 $as_echo "$LDCONFIG" >&6; }
12004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12005 $as_echo "no" >&6; }
12009 if test -n "$ac_tool_prefix"; then
12010 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
12011 set dummy ${ac_tool_prefix}ar; ac_word=$2
12012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12013 $as_echo_n "checking for $ac_word... " >&6; }
12014 if ${ac_cv_prog_AR+:} false; then :
12015 $as_echo_n "(cached) " >&6
12017 if test -n "$AR"; then
12018 ac_cv_prog_AR="$AR" # Let the user override the test.
12020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12021 for as_dir in $PATH
12024 test -z "$as_dir" && as_dir=.
12025 for ac_exec_ext in '' $ac_executable_extensions; do
12026 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12027 ac_cv_prog_AR="${ac_tool_prefix}ar"
12028 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12038 if test -n "$AR"; then
12039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12040 $as_echo "$AR" >&6; }
12042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12043 $as_echo "no" >&6; }
12048 if test -z "$ac_cv_prog_AR"; then
12050 # Extract the first word of "ar", so it can be a program name with args.
12051 set dummy ar; ac_word=$2
12052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12053 $as_echo_n "checking for $ac_word... " >&6; }
12054 if ${ac_cv_prog_ac_ct_AR+:} false; then :
12055 $as_echo_n "(cached) " >&6
12057 if test -n "$ac_ct_AR"; then
12058 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12061 for as_dir in $PATH
12064 test -z "$as_dir" && as_dir=.
12065 for ac_exec_ext in '' $ac_executable_extensions; do
12066 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12067 ac_cv_prog_ac_ct_AR="ar"
12068 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12077 ac_ct_AR=$ac_cv_prog_ac_ct_AR
12078 if test -n "$ac_ct_AR"; then
12079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
12080 $as_echo "$ac_ct_AR" >&6; }
12082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12083 $as_echo "no" >&6; }
12086 if test "x$ac_ct_AR" = x; then
12089 case $cross_compiling:$ac_tool_warned in
12091 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12092 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12093 ac_tool_warned=yes ;;
12098 AR="$ac_cv_prog_AR"
12101 if test -n "$ac_tool_prefix"; then
12102 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12103 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12105 $as_echo_n "checking for $ac_word... " >&6; }
12106 if ${ac_cv_prog_RANLIB+:} false; then :
12107 $as_echo_n "(cached) " >&6
12109 if test -n "$RANLIB"; then
12110 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12113 for as_dir in $PATH
12116 test -z "$as_dir" && as_dir=.
12117 for ac_exec_ext in '' $ac_executable_extensions; do
12118 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12119 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12120 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12129 RANLIB=$ac_cv_prog_RANLIB
12130 if test -n "$RANLIB"; then
12131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12132 $as_echo "$RANLIB" >&6; }
12134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12135 $as_echo "no" >&6; }
12140 if test -z "$ac_cv_prog_RANLIB"; then
12141 ac_ct_RANLIB=$RANLIB
12142 # Extract the first word of "ranlib", so it can be a program name with args.
12143 set dummy ranlib; ac_word=$2
12144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12145 $as_echo_n "checking for $ac_word... " >&6; }
12146 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
12147 $as_echo_n "(cached) " >&6
12149 if test -n "$ac_ct_RANLIB"; then
12150 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12153 for as_dir in $PATH
12156 test -z "$as_dir" && as_dir=.
12157 for ac_exec_ext in '' $ac_executable_extensions; do
12158 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12159 ac_cv_prog_ac_ct_RANLIB="ranlib"
12160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12169 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12170 if test -n "$ac_ct_RANLIB"; then
12171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12172 $as_echo "$ac_ct_RANLIB" >&6; }
12174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12175 $as_echo "no" >&6; }
12178 if test "x$ac_ct_RANLIB" = x; then
12181 case $cross_compiling:$ac_tool_warned in
12183 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12184 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12185 ac_tool_warned=yes ;;
12187 RANLIB=$ac_ct_RANLIB
12190 RANLIB="$ac_cv_prog_RANLIB"
12193 if test -n "$ac_tool_prefix"; then
12194 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12195 set dummy ${ac_tool_prefix}strip; ac_word=$2
12196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12197 $as_echo_n "checking for $ac_word... " >&6; }
12198 if ${ac_cv_prog_STRIP+:} false; then :
12199 $as_echo_n "(cached) " >&6
12201 if test -n "$STRIP"; then
12202 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12205 for as_dir in $PATH
12208 test -z "$as_dir" && as_dir=.
12209 for ac_exec_ext in '' $ac_executable_extensions; do
12210 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12211 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12221 STRIP=$ac_cv_prog_STRIP
12222 if test -n "$STRIP"; then
12223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12224 $as_echo "$STRIP" >&6; }
12226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12227 $as_echo "no" >&6; }
12232 if test -z "$ac_cv_prog_STRIP"; then
12234 # Extract the first word of "strip", so it can be a program name with args.
12235 set dummy strip; ac_word=$2
12236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12237 $as_echo_n "checking for $ac_word... " >&6; }
12238 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
12239 $as_echo_n "(cached) " >&6
12241 if test -n "$ac_ct_STRIP"; then
12242 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12245 for as_dir in $PATH
12248 test -z "$as_dir" && as_dir=.
12249 for ac_exec_ext in '' $ac_executable_extensions; do
12250 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12251 ac_cv_prog_ac_ct_STRIP="strip"
12252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12261 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12262 if test -n "$ac_ct_STRIP"; then
12263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
12264 $as_echo "$ac_ct_STRIP" >&6; }
12266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12267 $as_echo "no" >&6; }
12270 if test "x$ac_ct_STRIP" = x; then
12273 case $cross_compiling:$ac_tool_warned in
12275 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12276 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12277 ac_tool_warned=yes ;;
12282 STRIP="$ac_cv_prog_STRIP"
12285 # Extract the first word of "makeinfo", so it can be a program name with args.
12286 set dummy makeinfo; ac_word=$2
12287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12288 $as_echo_n "checking for $ac_word... " >&6; }
12289 if ${ac_cv_prog_MAKEINFO+:} false; then :
12290 $as_echo_n "(cached) " >&6
12292 if test -n "$MAKEINFO"; then
12293 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
12295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12296 for as_dir in $PATH
12299 test -z "$as_dir" && as_dir=.
12300 for ac_exec_ext in '' $ac_executable_extensions; do
12301 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12302 ac_cv_prog_MAKEINFO="makeinfo"
12303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12312 MAKEINFO=$ac_cv_prog_MAKEINFO
12313 if test -n "$MAKEINFO"; then
12314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
12315 $as_echo "$MAKEINFO" >&6; }
12317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12318 $as_echo "no" >&6; }
12322 if test "_$MAKEINFO" = "_"; then
12323 MAKEINFO="echo Makeinfo is missing. Info documentation will not be built."
12325 case "$MAKEINFO" in
12327 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
12328 *** Makeinfo is missing. Info documentation will not be built." >&5
12329 $as_echo "$as_me: WARNING:
12330 *** Makeinfo is missing. Info documentation will not be built." >&2;}
12338 # See if we need a separate native compiler.
12339 if test $cross_compiling = no; then
12343 for ac_prog in gcc cc
12345 # Extract the first word of "$ac_prog", so it can be a program name with args.
12346 set dummy $ac_prog; ac_word=$2
12347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12348 $as_echo_n "checking for $ac_word... " >&6; }
12349 if ${ac_cv_prog_BUILD_CC+:} false; then :
12350 $as_echo_n "(cached) " >&6
12352 if test -n "$BUILD_CC"; then
12353 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
12355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12356 for as_dir in $PATH
12359 test -z "$as_dir" && as_dir=.
12360 for ac_exec_ext in '' $ac_executable_extensions; do
12361 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12362 ac_cv_prog_BUILD_CC="$ac_prog"
12363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12372 BUILD_CC=$ac_cv_prog_BUILD_CC
12373 if test -n "$BUILD_CC"; then
12374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
12375 $as_echo "$BUILD_CC" >&6; }
12377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12378 $as_echo "no" >&6; }
12382 test -n "$BUILD_CC" && break
12386 for ac_header in dirent.h errno.h execinfo.h getopt.h malloc.h mntent.h paths.h semaphore.h setjmp.h signal.h stdarg.h stdint.h stdlib.h termios.h termio.h unistd.h utime.h attr/xattr.h linux/falloc.h linux/fd.h linux/fsmap.h linux/major.h linux/loop.h linux/types.h net/if_dl.h netinet/in.h sys/acl.h sys/disklabel.h sys/disk.h sys/file.h sys/ioctl.h sys/key.h sys/mkdev.h sys/mman.h sys/mount.h sys/prctl.h sys/resource.h sys/select.h sys/socket.h sys/sockio.h sys/stat.h sys/syscall.h sys/sysctl.h sys/sysmacros.h sys/time.h sys/types.h sys/un.h sys/wait.h sys/xattr.h
12388 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12389 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12390 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12391 cat >>confdefs.h <<_ACEOF
12392 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a dd(1) program that supports iflag=fullblock" >&5
12400 $as_echo_n "checking for a dd(1) program that supports iflag=fullblock... " >&6; }
12402 for i in dd gdd ; do
12403 if "$i" if=/dev/null of=/dev/null count=1 bs=10k 2>/dev/null iflag=fullblock oflag=append ; then
12408 if test -n "$DD" ; then
12409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DD" >&5
12410 $as_echo "$DD" >&6; }
12412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found, using dd" >&5
12413 $as_echo "not found, using dd" >&6; }
12415 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No GNU-compatible dd(1) program found, expect some self-test failures." >&5
12416 $as_echo "$as_me: WARNING: No GNU-compatible dd(1) program found, expect some self-test failures." >&2;}
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 # The cast to long int works around a bug in the HP C Compiler
12669 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12670 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12671 # This bug is HP SR number 8606223364.
12672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
12673 $as_echo_n "checking size of time_t... " >&6; }
12674 if ${ac_cv_sizeof_time_t+:} false; then :
12675 $as_echo_n "(cached) " >&6
12677 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" "$ac_includes_default"; then :
12680 if test "$ac_cv_type_time_t" = yes; then
12681 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12682 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12683 as_fn_error 77 "cannot compute sizeof (time_t)
12684 See \`config.log' for more details" "$LINENO" 5; }
12686 ac_cv_sizeof_time_t=0
12691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
12692 $as_echo "$ac_cv_sizeof_time_t" >&6; }
12696 cat >>confdefs.h <<_ACEOF
12697 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
12701 SIZEOF_SHORT=$ac_cv_sizeof_short
12702 SIZEOF_INT=$ac_cv_sizeof_int
12703 SIZEOF_LONG=$ac_cv_sizeof_long
12704 SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
12705 SIZEOF_OFF_T=$ac_cv_sizeof_off_t
12706 SIZEOF_TIME_T=$ac_cv_sizeof_time_t
12713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
12714 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
12715 if ${ac_cv_c_bigendian+:} false; then :
12716 $as_echo_n "(cached) " >&6
12718 ac_cv_c_bigendian=unknown
12719 # See if we're dealing with a universal compiler.
12720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12721 /* end confdefs.h. */
12722 #ifndef __APPLE_CC__
12723 not a universal capable compiler
12728 if ac_fn_c_try_compile "$LINENO"; then :
12730 # Check for potential -arch flags. It is not universal unless
12731 # there are at least two -arch flags with different values.
12734 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
12735 if test -n "$ac_prev"; then
12737 i?86 | x86_64 | ppc | ppc64)
12738 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
12741 ac_cv_c_bigendian=universal
12747 elif test "x$ac_word" = "x-arch"; then
12752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12753 if test $ac_cv_c_bigendian = unknown; then
12754 # See if sys/param.h defines the BYTE_ORDER macro.
12755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12756 /* end confdefs.h. */
12757 #include <sys/types.h>
12758 #include <sys/param.h>
12763 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
12764 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
12766 bogus endian macros
12773 if ac_fn_c_try_compile "$LINENO"; then :
12774 # It does; now see whether it defined to BIG_ENDIAN or not.
12775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12776 /* end confdefs.h. */
12777 #include <sys/types.h>
12778 #include <sys/param.h>
12783 #if BYTE_ORDER != BIG_ENDIAN
12791 if ac_fn_c_try_compile "$LINENO"; then :
12792 ac_cv_c_bigendian=yes
12794 ac_cv_c_bigendian=no
12796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12800 if test $ac_cv_c_bigendian = unknown; then
12801 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
12802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12803 /* end confdefs.h. */
12804 #include <limits.h>
12809 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
12810 bogus endian macros
12817 if ac_fn_c_try_compile "$LINENO"; then :
12818 # It does; now see whether it defined to _BIG_ENDIAN or not.
12819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12820 /* end confdefs.h. */
12821 #include <limits.h>
12826 #ifndef _BIG_ENDIAN
12834 if ac_fn_c_try_compile "$LINENO"; then :
12835 ac_cv_c_bigendian=yes
12837 ac_cv_c_bigendian=no
12839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12843 if test $ac_cv_c_bigendian = unknown; then
12844 # Compile a test program.
12845 if test "$cross_compiling" = yes; then :
12846 # Try to guess by grepping values from an object file.
12847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12848 /* end confdefs.h. */
12849 short int ascii_mm[] =
12850 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12851 short int ascii_ii[] =
12852 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12853 int use_ascii (int i) {
12854 return ascii_mm[i] + ascii_ii[i];
12856 short int ebcdic_ii[] =
12857 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12858 short int ebcdic_mm[] =
12859 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12860 int use_ebcdic (int i) {
12861 return ebcdic_mm[i] + ebcdic_ii[i];
12868 return use_ascii (foo) == use_ebcdic (foo);
12873 if ac_fn_c_try_compile "$LINENO"; then :
12874 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
12875 ac_cv_c_bigendian=yes
12877 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
12878 if test "$ac_cv_c_bigendian" = unknown; then
12879 ac_cv_c_bigendian=no
12881 # finding both strings is unlikely to happen, but who knows?
12882 ac_cv_c_bigendian=unknown
12886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12889 /* end confdefs.h. */
12890 $ac_includes_default
12895 /* Are we little or big endian? From Harbison&Steele. */
12899 char c[sizeof (long int)];
12902 return u.c[sizeof (long int) - 1] == 1;
12908 if ac_fn_c_try_run "$LINENO"; then :
12909 ac_cv_c_bigendian=no
12911 ac_cv_c_bigendian=yes
12913 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12914 conftest.$ac_objext conftest.beam conftest.$ac_ext
12919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
12920 $as_echo "$ac_cv_c_bigendian" >&6; }
12921 case $ac_cv_c_bigendian in #(
12923 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
12929 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
12933 as_fn_error $? "unknown endianness
12934 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
12937 if test $cross_compiling = no; then
12938 BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
12940 CROSS_COMPILE="1" BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
12942 ASM_TYPES_HEADER=./asm_types.h
12944 echo "/* These defines are needed for the public ext2fs.h header file */" \
12946 if grep HAVE_SYS_TYPES_H confdefs.h > tmp_config.$$; then
12947 uniq tmp_config.$$ >> public_config.h
12949 echo "#undef HAVE_SYS_TYPES_H" >> public_config.h
12951 if grep WORDS_BIGENDIAN confdefs.h > tmp_config.$$; then
12952 uniq tmp_config.$$ >> public_config.h
12954 echo "#undef WORDS_BIGENDIAN" >> public_config.h
12956 rm -f tmp_config.$$
12957 PUBLIC_CONFIG_HEADER=./public_config.h
12959 for ac_header in inttypes.h
12961 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
12962 if test "x$ac_cv_header_inttypes_h" = xyes; then :
12963 cat >>confdefs.h <<_ACEOF
12964 #define HAVE_INTTYPES_H 1
12971 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
12972 if test "x$ac_cv_type_intptr_t" = xyes; then :
12974 cat >>confdefs.h <<_ACEOF
12975 #define HAVE_INTPTR_T 1
12981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat has a st_flags field" >&5
12982 $as_echo_n "checking whether struct stat has a st_flags field... " >&6; }
12983 if ${e2fsprogs_cv_struct_st_flags+:} false; then :
12984 $as_echo_n "(cached) " >&6
12986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12987 /* end confdefs.h. */
12988 #include <sys/stat.h>
12992 struct stat stat; stat.st_flags = 0;
12997 if ac_fn_c_try_compile "$LINENO"; then :
12998 e2fsprogs_cv_struct_st_flags=yes
13000 e2fsprogs_cv_struct_st_flags=no
13002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags" >&5
13006 $as_echo "$e2fsprogs_cv_struct_st_flags" >&6; }
13007 if test "$e2fsprogs_cv_struct_st_flags" = yes; then
13008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether st_flags field is useful" >&5
13009 $as_echo_n "checking whether st_flags field is useful... " >&6; }
13010 if ${e2fsprogs_cv_struct_st_flags_immut+:} false; then :
13011 $as_echo_n "(cached) " >&6
13013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13014 /* end confdefs.h. */
13015 #include <sys/stat.h>
13019 struct stat stat; stat.st_flags |= UF_IMMUTABLE;
13024 if ac_fn_c_try_compile "$LINENO"; then :
13025 e2fsprogs_cv_struct_st_flags_immut=yes
13027 e2fsprogs_cv_struct_st_flags_immut=no
13029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags_immut" >&5
13033 $as_echo "$e2fsprogs_cv_struct_st_flags_immut" >&6; }
13034 if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
13036 $as_echo "#define HAVE_STAT_FLAGS 1" >>confdefs.h
13040 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h>
13041 #include <sys/socket.h>
13043 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
13045 cat >>confdefs.h <<_ACEOF
13046 #define HAVE_SA_LEN 1
13051 if test -n "$BLKID_CMT"; then
13052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing blkid_probe_all" >&5
13053 $as_echo_n "checking for library containing blkid_probe_all... " >&6; }
13054 if ${ac_cv_search_blkid_probe_all+:} false; then :
13055 $as_echo_n "(cached) " >&6
13057 ac_func_search_save_LIBS=$LIBS
13058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13059 /* end confdefs.h. */
13061 /* Override any GCC internal prototype to avoid an error.
13062 Use char because int might match the return type of a GCC
13063 builtin and then its argument prototype would still apply. */
13067 char blkid_probe_all ();
13071 return blkid_probe_all ();
13076 for ac_lib in '' blkid; do
13077 if test -z "$ac_lib"; then
13078 ac_res="none required"
13081 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13083 if ac_fn_c_try_link "$LINENO"; then :
13084 ac_cv_search_blkid_probe_all=$ac_res
13086 rm -f core conftest.err conftest.$ac_objext \
13088 if ${ac_cv_search_blkid_probe_all+:} false; then :
13092 if ${ac_cv_search_blkid_probe_all+:} false; then :
13095 ac_cv_search_blkid_probe_all=no
13097 rm conftest.$ac_ext
13098 LIBS=$ac_func_search_save_LIBS
13100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_blkid_probe_all" >&5
13101 $as_echo "$ac_cv_search_blkid_probe_all" >&6; }
13102 ac_res=$ac_cv_search_blkid_probe_all
13103 if test "$ac_res" != no; then :
13104 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13109 if test -n "$DLOPEN_LIB" ; then
13110 ac_cv_func_dlopen=yes
13112 for ac_func in __secure_getenv add_key backtrace blkid_probe_get_topology blkid_probe_enable_partitions chflags dlopen fadvise64 fallocate fallocate64 fchown fcntl fdatasync fstat64 fsync ftruncate64 futimes getcwd getdtablesize gethostname getmntinfo getpwuid_r getrlimit getrusage jrand48 keyctl llistxattr llseek lseek64 mallinfo mbstowcs memalign mempcpy mmap msync nanosleep open64 pathconf posix_fadvise posix_fadvise64 posix_memalign prctl pread pwrite pread64 pwrite64 secure_getenv setmntent setresgid setresuid snprintf srandom stpcpy strcasecmp strdup strnlen strptime strtoull sync_file_range sysconf usleep utime utimes valloc
13114 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13115 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13116 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13117 cat >>confdefs.h <<_ACEOF
13118 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
13126 $as_echo_n "checking for socket in -lsocket... " >&6; }
13127 if ${ac_cv_lib_socket_socket+:} false; then :
13128 $as_echo_n "(cached) " >&6
13130 ac_check_lib_save_LIBS=$LIBS
13131 LIBS="-lsocket $LIBS"
13132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13133 /* end confdefs.h. */
13135 /* Override any GCC internal prototype to avoid an error.
13136 Use char because int might match the return type of a GCC
13137 builtin and then its argument prototype would still apply. */
13150 if ac_fn_c_try_link "$LINENO"; then :
13151 ac_cv_lib_socket_socket=yes
13153 ac_cv_lib_socket_socket=no
13155 rm -f core conftest.err conftest.$ac_objext \
13156 conftest$ac_exeext conftest.$ac_ext
13157 LIBS=$ac_check_lib_save_LIBS
13159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
13160 $as_echo "$ac_cv_lib_socket_socket" >&6; }
13161 if test "x$ac_cv_lib_socket_socket" = xyes; then :
13162 SOCKET_LIB=-lsocket
13166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for magic_file in -lmagic" >&5
13167 $as_echo_n "checking for magic_file in -lmagic... " >&6; }
13168 if ${ac_cv_lib_magic_magic_file+:} false; then :
13169 $as_echo_n "(cached) " >&6
13171 ac_check_lib_save_LIBS=$LIBS
13172 LIBS="-lmagic $LIBS"
13173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13174 /* end confdefs.h. */
13176 /* Override any GCC internal prototype to avoid an error.
13177 Use char because int might match the return type of a GCC
13178 builtin and then its argument prototype would still apply. */
13182 char magic_file ();
13186 return magic_file ();
13191 if ac_fn_c_try_link "$LINENO"; then :
13192 ac_cv_lib_magic_magic_file=yes
13194 ac_cv_lib_magic_magic_file=no
13196 rm -f core conftest.err conftest.$ac_objext \
13197 conftest$ac_exeext conftest.$ac_ext
13198 LIBS=$ac_check_lib_save_LIBS
13200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_magic_magic_file" >&5
13201 $as_echo "$ac_cv_lib_magic_magic_file" >&6; }
13202 if test "x$ac_cv_lib_magic_magic_file" = xyes; then :
13204 for ac_header in magic.h
13206 ac_fn_c_check_header_mongrel "$LINENO" "magic.h" "ac_cv_header_magic_h" "$ac_includes_default"
13207 if test "x$ac_cv_header_magic_h" = xyes; then :
13208 cat >>confdefs.h <<_ACEOF
13209 #define HAVE_MAGIC_H 1
13218 if test "$ac_cv_func_dlopen" = yes ; then
13219 MAGIC_LIB=$DLOPEN_LIB
13222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
13223 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
13224 if ${ac_cv_lib_rt_clock_gettime+:} false; then :
13225 $as_echo_n "(cached) " >&6
13227 ac_check_lib_save_LIBS=$LIBS
13229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13230 /* end confdefs.h. */
13232 /* Override any GCC internal prototype to avoid an error.
13233 Use char because int might match the return type of a GCC
13234 builtin and then its argument prototype would still apply. */
13238 char clock_gettime ();
13242 return clock_gettime ();
13247 if ac_fn_c_try_link "$LINENO"; then :
13248 ac_cv_lib_rt_clock_gettime=yes
13250 ac_cv_lib_rt_clock_gettime=no
13252 rm -f core conftest.err conftest.$ac_objext \
13253 conftest$ac_exeext conftest.$ac_ext
13254 LIBS=$ac_check_lib_save_LIBS
13256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
13257 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
13258 if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
13259 CLOCK_GETTIME_LIB=-lrt
13265 # Check whether --enable-fuse2fs was given.
13266 if test "${enable_fuse2fs+set}" = set; then :
13267 enableval=$enable_fuse2fs; if test "$enableval" = "no"
13270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling fuse2fs" >&5
13271 $as_echo "Disabling fuse2fs" >&6; }
13273 for ac_header in pthread.h fuse.h
13275 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13276 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#define _FILE_OFFSET_BITS 64
13277 #define FUSE_USE_VERSION 29
13279 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13280 cat >>confdefs.h <<_ACEOF
13281 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13285 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13286 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13287 as_fn_error $? "Cannot find fuse2fs headers.
13288 See \`config.log' for more details" "$LINENO" 5; }
13294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13295 /* end confdefs.h. */
13296 #define FUSE_USE_VERSION 29
13298 #include <linux/fs.h>
13299 #include <linux/falloc.h>
13300 #include <linux/xattr.h>
13311 if ac_fn_c_try_cpp "$LINENO"; then :
13314 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13315 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13316 as_fn_error $? "Cannot find fuse2fs Linux headers.
13317 See \`config.log' for more details" "$LINENO" 5; }
13319 rm -f conftest.err conftest.i conftest.$ac_ext
13321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -losxfuse" >&5
13322 $as_echo_n "checking for fuse_main in -losxfuse... " >&6; }
13323 if ${ac_cv_lib_osxfuse_fuse_main+:} false; then :
13324 $as_echo_n "(cached) " >&6
13326 ac_check_lib_save_LIBS=$LIBS
13327 LIBS="-losxfuse $LIBS"
13328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13329 /* end confdefs.h. */
13331 /* Override any GCC internal prototype to avoid an error.
13332 Use char because int might match the return type of a GCC
13333 builtin and then its argument prototype would still apply. */
13341 return fuse_main ();
13346 if ac_fn_c_try_link "$LINENO"; then :
13347 ac_cv_lib_osxfuse_fuse_main=yes
13349 ac_cv_lib_osxfuse_fuse_main=no
13351 rm -f core conftest.err conftest.$ac_objext \
13352 conftest$ac_exeext conftest.$ac_ext
13353 LIBS=$ac_check_lib_save_LIBS
13355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_osxfuse_fuse_main" >&5
13356 $as_echo "$ac_cv_lib_osxfuse_fuse_main" >&6; }
13357 if test "x$ac_cv_lib_osxfuse_fuse_main" = xyes; then :
13360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -lfuse" >&5
13361 $as_echo_n "checking for fuse_main in -lfuse... " >&6; }
13362 if ${ac_cv_lib_fuse_fuse_main+:} false; then :
13363 $as_echo_n "(cached) " >&6
13365 ac_check_lib_save_LIBS=$LIBS
13366 LIBS="-lfuse $LIBS"
13367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13368 /* end confdefs.h. */
13370 /* Override any GCC internal prototype to avoid an error.
13371 Use char because int might match the return type of a GCC
13372 builtin and then its argument prototype would still apply. */
13380 return fuse_main ();
13385 if ac_fn_c_try_link "$LINENO"; then :
13386 ac_cv_lib_fuse_fuse_main=yes
13388 ac_cv_lib_fuse_fuse_main=no
13390 rm -f core conftest.err conftest.$ac_objext \
13391 conftest$ac_exeext conftest.$ac_ext
13392 LIBS=$ac_check_lib_save_LIBS
13394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fuse_fuse_main" >&5
13395 $as_echo "$ac_cv_lib_fuse_fuse_main" >&6; }
13396 if test "x$ac_cv_lib_fuse_fuse_main" = xyes; then :
13399 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13400 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13401 as_fn_error $? "Cannot find fuse library.
13402 See \`config.log' for more details" "$LINENO" 5; }
13407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling fuse2fs" >&5
13408 $as_echo "Enabling fuse2fs" >&6; }
13412 for ac_header in pthread.h fuse.h
13414 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13415 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#define _FILE_OFFSET_BITS 64
13416 #define FUSE_USE_VERSION 29
13418 # include <linux/fs.h>
13419 # include <linux/falloc.h>
13420 # include <linux/xattr.h>
13423 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13424 cat >>confdefs.h <<_ACEOF
13425 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13434 if test -z "$FUSE_CMT"
13436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -losxfuse" >&5
13437 $as_echo_n "checking for fuse_main in -losxfuse... " >&6; }
13438 if ${ac_cv_lib_osxfuse_fuse_main+:} false; then :
13439 $as_echo_n "(cached) " >&6
13441 ac_check_lib_save_LIBS=$LIBS
13442 LIBS="-losxfuse $LIBS"
13443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13444 /* end confdefs.h. */
13446 /* Override any GCC internal prototype to avoid an error.
13447 Use char because int might match the return type of a GCC
13448 builtin and then its argument prototype would still apply. */
13456 return fuse_main ();
13461 if ac_fn_c_try_link "$LINENO"; then :
13462 ac_cv_lib_osxfuse_fuse_main=yes
13464 ac_cv_lib_osxfuse_fuse_main=no
13466 rm -f core conftest.err conftest.$ac_objext \
13467 conftest$ac_exeext conftest.$ac_ext
13468 LIBS=$ac_check_lib_save_LIBS
13470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_osxfuse_fuse_main" >&5
13471 $as_echo "$ac_cv_lib_osxfuse_fuse_main" >&6; }
13472 if test "x$ac_cv_lib_osxfuse_fuse_main" = xyes; then :
13475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -lfuse" >&5
13476 $as_echo_n "checking for fuse_main in -lfuse... " >&6; }
13477 if ${ac_cv_lib_fuse_fuse_main+:} false; then :
13478 $as_echo_n "(cached) " >&6
13480 ac_check_lib_save_LIBS=$LIBS
13481 LIBS="-lfuse $LIBS"
13482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13483 /* end confdefs.h. */
13485 /* Override any GCC internal prototype to avoid an error.
13486 Use char because int might match the return type of a GCC
13487 builtin and then its argument prototype would still apply. */
13495 return fuse_main ();
13500 if ac_fn_c_try_link "$LINENO"; then :
13501 ac_cv_lib_fuse_fuse_main=yes
13503 ac_cv_lib_fuse_fuse_main=no
13505 rm -f core conftest.err conftest.$ac_objext \
13506 conftest$ac_exeext conftest.$ac_ext
13507 LIBS=$ac_check_lib_save_LIBS
13509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fuse_fuse_main" >&5
13510 $as_echo "$ac_cv_lib_fuse_fuse_main" >&6; }
13511 if test "x$ac_cv_lib_fuse_fuse_main" = xyes; then :
13520 if test -z "$FUSE_CMT"
13522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling fuse2fs by default." >&5
13523 $as_echo "Enabling fuse2fs by default." >&6; }
13530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for optreset" >&5
13531 $as_echo_n "checking for optreset... " >&6; }
13532 if ${ac_cv_have_optreset+:} false; then :
13533 $as_echo_n "(cached) " >&6
13535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13536 /* end confdefs.h. */
13537 #include <unistd.h>
13540 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13541 $EGREP "optreset" >/dev/null 2>&1; then :
13542 ac_cv_have_optreset=yes
13544 ac_cv_have_optreset=no
13549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_optreset" >&5
13550 $as_echo "$ac_cv_have_optreset" >&6; }
13551 if test $ac_cv_have_optreset = yes; then
13553 $as_echo "#define HAVE_OPTRESET 1" >>confdefs.h
13558 echo GL_THREADS_API: ${gl_threads_api}
13559 if test "${gl_threads_api}" != none
13561 ac_fn_c_check_func "$LINENO" "sem_init" "ac_cv_func_sem_init"
13562 if test "x$ac_cv_func_sem_init" = xyes; then :
13565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lpthread" >&5
13566 $as_echo_n "checking for sem_init in -lpthread... " >&6; }
13567 if ${ac_cv_lib_pthread_sem_init+:} false; then :
13568 $as_echo_n "(cached) " >&6
13570 ac_check_lib_save_LIBS=$LIBS
13571 LIBS="-lpthread $LIBS"
13572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13573 /* end confdefs.h. */
13575 /* Override any GCC internal prototype to avoid an error.
13576 Use char because int might match the return type of a GCC
13577 builtin and then its argument prototype would still apply. */
13585 return sem_init ();
13590 if ac_fn_c_try_link "$LINENO"; then :
13591 ac_cv_lib_pthread_sem_init=yes
13593 ac_cv_lib_pthread_sem_init=no
13595 rm -f core conftest.err conftest.$ac_objext \
13596 conftest$ac_exeext conftest.$ac_ext
13597 LIBS=$ac_check_lib_save_LIBS
13599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_sem_init" >&5
13600 $as_echo "$ac_cv_lib_pthread_sem_init" >&6; }
13601 if test "x$ac_cv_lib_pthread_sem_init" = xyes; then :
13602 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
13604 SEM_INIT_LIB=-lpthread
13606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lrt" >&5
13607 $as_echo_n "checking for sem_init in -lrt... " >&6; }
13608 if ${ac_cv_lib_rt_sem_init+:} false; then :
13609 $as_echo_n "(cached) " >&6
13611 ac_check_lib_save_LIBS=$LIBS
13613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13614 /* end confdefs.h. */
13616 /* Override any GCC internal prototype to avoid an error.
13617 Use char because int might match the return type of a GCC
13618 builtin and then its argument prototype would still apply. */
13626 return sem_init ();
13631 if ac_fn_c_try_link "$LINENO"; then :
13632 ac_cv_lib_rt_sem_init=yes
13634 ac_cv_lib_rt_sem_init=no
13636 rm -f core conftest.err conftest.$ac_objext \
13637 conftest$ac_exeext conftest.$ac_ext
13638 LIBS=$ac_check_lib_save_LIBS
13640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sem_init" >&5
13641 $as_echo "$ac_cv_lib_rt_sem_init" >&6; }
13642 if test "x$ac_cv_lib_rt_sem_init" = xyes; then :
13643 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
13647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lposix4" >&5
13648 $as_echo_n "checking for sem_init in -lposix4... " >&6; }
13649 if ${ac_cv_lib_posix4_sem_init+:} false; then :
13650 $as_echo_n "(cached) " >&6
13652 ac_check_lib_save_LIBS=$LIBS
13653 LIBS="-lposix4 $LIBS"
13654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13655 /* end confdefs.h. */
13657 /* Override any GCC internal prototype to avoid an error.
13658 Use char because int might match the return type of a GCC
13659 builtin and then its argument prototype would still apply. */
13667 return sem_init ();
13672 if ac_fn_c_try_link "$LINENO"; then :
13673 ac_cv_lib_posix4_sem_init=yes
13675 ac_cv_lib_posix4_sem_init=no
13677 rm -f core conftest.err conftest.$ac_objext \
13678 conftest$ac_exeext conftest.$ac_ext
13679 LIBS=$ac_check_lib_save_LIBS
13681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sem_init" >&5
13682 $as_echo "$ac_cv_lib_posix4_sem_init" >&6; }
13683 if test "x$ac_cv_lib_posix4_sem_init" = xyes; then :
13684 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
13686 SEM_INIT_LIB=-lposix4
13696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unified diff option" >&5
13697 $as_echo_n "checking for unified diff option... " >&6; }
13698 if diff -u $0 $0 > /dev/null 2>&1 ; then
13703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNI_DIFF_OPTS" >&5
13704 $as_echo "$UNI_DIFF_OPTS" >&6; }
13709 $as_echo "#define HAVE_EXT2_IOCTLS 1" >>confdefs.h
13728 E2SCRUB_CMT="$LINUX_CMT"
13731 linux* | gnu* | k*bsd*-gnu)
13732 if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
13734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, root_prefix defaults to ''" >&5
13735 $as_echo "On $host_os systems, root_prefix defaults to ''" >&6; }
13740 linux* | gnu* | k*bsd*-gnu)
13741 if test "$prefix" = NONE ; then
13743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, prefix defaults to /usr" >&5
13744 $as_echo "On $host_os systems, prefix defaults to /usr" >&6; }
13745 if test "$mandir" = '${prefix}/man' ; then
13746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ...and mandir defaults to /usr/share/man" >&5
13747 $as_echo "...and mandir defaults to /usr/share/man" >&6; }
13748 mandir=/usr/share/man
13753 if test "$root_prefix" = NONE ; then
13754 if test "$prefix" = NONE ; then
13755 root_prefix="$ac_default_prefix"
13757 root_prefix="$prefix"
13759 root_bindir=$bindir
13760 root_sbindir=$sbindir
13761 root_libdir=$libdir
13762 root_sysconfdir=$sysconfdir
13764 root_bindir='${root_prefix}/bin'
13765 root_sbindir='${root_prefix}/sbin'
13766 root_libdir='${root_prefix}/lib'
13767 root_sysconfdir='${root_prefix}/etc'
13769 if test "$bindir" != '${exec_prefix}/bin'; then
13770 root_bindir=$bindir
13771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_bindir to $root_bindir" >&5
13772 $as_echo "Setting root_bindir to $root_bindir" >&6; }
13774 if test "$sbindir" != '${exec_prefix}/sbin'; then
13775 root_sbindir=$sbindir
13776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sbindir to $root_sbindir" >&5
13777 $as_echo "Setting root_sbindir to $root_sbindir" >&6; }
13779 if test "$libdir" != '${exec_prefix}/lib'; then
13780 root_libdir=$libdir
13781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_libdir to $root_libdir" >&5
13782 $as_echo "Setting root_libdir to $root_libdir" >&6; }
13784 if test "$sysconfdir" != '${prefix}/etc'; then
13785 root_sysconfdir=$sysconfdir
13786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sysconfdir to $root_sysconfdir" >&5
13787 $as_echo "Setting root_sysconfdir to $root_sysconfdir" >&6; }
13795 # Check whether --with-multiarch was given.
13796 if test "${with_multiarch+set}" = set; then :
13797 withval=$with_multiarch; if test "$withval" = "lib64"; then
13801 libdir=$libdir/$withval
13802 root_libdir=$root_libdir/$withval
13806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can link with -static" >&5
13807 $as_echo_n "checking whether we can link with -static... " >&6; }
13808 if ${ac_cv_e2fsprogs_use_static+:} false; then :
13809 $as_echo_n "(cached) " >&6
13811 SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS_STATIC -static"
13812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13813 /* end confdefs.h. */
13823 if ac_fn_c_try_link "$LINENO"; then :
13824 ac_cv_e2fsprogs_use_static=yes
13826 ac_cv_e2fsprogs_use_static=no
13828 rm -f core conftest.err conftest.$ac_objext \
13829 conftest$ac_exeext conftest.$ac_ext
13830 LDFLAGS=$SAVE_LDFLAGS
13835 ac_cv_e2fsprogs_use_static=no
13838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_e2fsprogs_use_static" >&5
13839 $as_echo "$ac_cv_e2fsprogs_use_static" >&6; }
13840 if test $ac_cv_e2fsprogs_use_static = yes; then
13841 LDFLAGS_STATIC="$LDFLAGS_STATIC -static"
13846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using Apple Darwin / GNU libintl workaround" >&5
13847 $as_echo "Using Apple Darwin / GNU libintl workaround" >&6; }
13849 $as_echo "#define _INTL_REDIRECT_MACROS 1" >>confdefs.h
13853 if test "$cross_compiling" = yes ; then
13856 DO_TEST_SUITE=check
13859 INCLUDES='-I. -I$(top_builddir)/lib -I$(top_srcdir)/lib'
13860 if test -n "$CPPFLAGS" ; then
13861 INCLUDES="$INCLUDES $CPPFLAGS"
13863 if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
13864 INCLUDES=$INCLUDES' -I$(top_builddir)/intl -I$(top_srcdir)/intl'
13866 if test -n "$WITH_DIET_LIBC" ; then
13867 INCLUDES="$INCLUDES -D_REENTRANT"
13872 if test -n "$ac_aux_dir"; then
13873 case "$ac_aux_dir" in
13874 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
13875 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
13878 if test -z "$MKINSTALLDIRS"; then
13879 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
13883 if test $cross_compiling = no; then
13884 BUILD_CFLAGS="$CFLAGS $CPPFLAGS $INCLUDES -DHAVE_CONFIG_H"
13885 BUILD_LDFLAGS="$LDFLAGS"
13889 CFLAGS_SHLIB=${CFLAGS_SHLIB:-$CFLAGS}
13890 CFLAGS_STLIB=${CFLAGS_STLIB:-$CFLAGS}
13891 LDFLAGS_SHLIB=${LDFLAGS_SHLIB:-$LDFLAGS}
13897 # Check whether --with-udev_rules_dir was given.
13898 if test "${with_udev_rules_dir+set}" = set; then :
13899 withval=$with_udev_rules_dir;
13901 with_udev_rules_dir=yes
13904 if test "x${with_udev_rules_dir}" != "xno"; then :
13906 if test "x${with_udev_rules_dir}" = "xyes"; then :
13910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for udev" >&5
13911 $as_echo_n "checking for udev... " >&6; }
13913 if test -n "$udev_CFLAGS"; then
13914 pkg_cv_udev_CFLAGS="$udev_CFLAGS"
13915 elif test -n "$PKG_CONFIG"; then
13916 if test -n "$PKG_CONFIG" && \
13917 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"udev\""; } >&5
13918 ($PKG_CONFIG --exists --print-errors "udev") 2>&5
13920 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13921 test $ac_status = 0; }; then
13922 pkg_cv_udev_CFLAGS=`$PKG_CONFIG --cflags "udev" 2>/dev/null`
13923 test "x$?" != "x0" && pkg_failed=yes
13930 if test -n "$udev_LIBS"; then
13931 pkg_cv_udev_LIBS="$udev_LIBS"
13932 elif test -n "$PKG_CONFIG"; then
13933 if test -n "$PKG_CONFIG" && \
13934 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"udev\""; } >&5
13935 ($PKG_CONFIG --exists --print-errors "udev") 2>&5
13937 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13938 test $ac_status = 0; }; then
13939 pkg_cv_udev_LIBS=`$PKG_CONFIG --libs "udev" 2>/dev/null`
13940 test "x$?" != "x0" && pkg_failed=yes
13950 if test $pkg_failed = yes; then
13951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13952 $as_echo "no" >&6; }
13954 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13955 _pkg_short_errors_supported=yes
13957 _pkg_short_errors_supported=no
13959 if test $_pkg_short_errors_supported = yes; then
13960 udev_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "udev" 2>&1`
13962 udev_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "udev" 2>&1`
13964 # Put the nasty error message in config.log where it belongs
13965 echo "$udev_PKG_ERRORS" >&5
13968 with_udev_rules_dir=""
13970 elif test $pkg_failed = untried; then
13971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13972 $as_echo "no" >&6; }
13974 with_udev_rules_dir=""
13977 udev_CFLAGS=$pkg_cv_udev_CFLAGS
13978 udev_LIBS=$pkg_cv_udev_LIBS
13979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13980 $as_echo "yes" >&6; }
13982 with_udev_rules_dir="$($PKG_CONFIG --variable=udevdir udev)/rules.d"
13987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for udev rules dir" >&5
13988 $as_echo_n "checking for udev rules dir... " >&6; }
13989 pkg_udev_rules_dir="${with_udev_rules_dir}"
13990 if test -n "${pkg_udev_rules_dir}"; then :
13992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${pkg_udev_rules_dir}" >&5
13993 $as_echo "${pkg_udev_rules_dir}" >&6; }
13998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13999 $as_echo "no" >&6; }
14006 have_udev="disabled"
14012 test -d lib || mkdir lib
14013 test -d include || mkdir include
14014 test -d include/linux || mkdir include/linux
14015 test -d include/asm || mkdir include/asm
14016 if test -z "$UUID_CMT" ; then
14017 uuid_out_list="lib/uuid/Makefile lib/uuid/uuid.pc \
14018 lib/uuid/uuid_types.h"
14020 if test -z "$BLKID_CMT" ; then
14021 blkid_out_list="lib/blkid/Makefile lib/blkid/blkid.pc \
14022 lib/blkid/blkid_types.h"
14024 for i in MCONFIG Makefile e2fsprogs.spec \
14025 util/Makefile util/subst.conf util/gen-tarball util/install-symlink \
14026 lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \
14027 lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \
14028 $uuid_out_list $blkid_out_list lib/support/Makefile \
14029 lib/ss/ss.pc lib/et/com_err.pc lib/e2p/e2p.pc lib/ext2fs/ext2fs.pc \
14030 misc/Makefile ext2ed/Makefile e2fsck/Makefile \
14031 debugfs/Makefile tests/Makefile tests/progs/Makefile \
14032 resize/Makefile doc/Makefile intl/Makefile \
14033 intl/libgnuintl.h po/Makefile.in scrub/Makefile; do
14034 if test -d `dirname ${srcdir}/$i` ; then
14035 outlist="$outlist $i"
14038 ac_config_files="$ac_config_files $outlist"
14040 cat >confcache <<\_ACEOF
14041 # This file is a shell script that caches the results of configure
14042 # tests run on this system so they can be shared between configure
14043 # scripts and configure runs, see configure's option --config-cache.
14044 # It is not useful on other systems. If it contains results you don't
14045 # want to keep, you may remove or edit it.
14047 # config.status only pays attention to the cache file if you give it
14048 # the --recheck option to rerun configure.
14050 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14051 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14052 # following values.
14056 # The following way of writing the cache mishandles newlines in values,
14057 # but we know of no workaround that is simple, portable, and efficient.
14058 # So, we kill variables containing newlines.
14059 # Ultrix sh set writes to stderr and can't be redirected directly,
14060 # and sets the high bit in the cache file unless we assign to the vars.
14062 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14063 eval ac_val=\$$ac_var
14067 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14068 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14071 _ | IFS | as_nl) ;; #(
14072 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14073 *) { eval $ac_var=; unset $ac_var;} ;;
14079 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14080 *${as_nl}ac_space=\ *)
14081 # `set' does not quote correctly, so add quotes: double-quote
14082 # substitution turns \\\\ into \\, and sed turns \\ into \.
14085 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14088 # `set' quotes correctly as required by POSIX, so do not add quotes.
14089 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14098 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14100 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14102 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14103 if test -w "$cache_file"; then
14104 if test "x$cache_file" != "x/dev/null"; then
14105 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14106 $as_echo "$as_me: updating cache $cache_file" >&6;}
14107 if test ! -f "$cache_file" || test -h "$cache_file"; then
14108 cat confcache >"$cache_file"
14110 case $cache_file in #(
14112 mv -f confcache "$cache_file"$$ &&
14113 mv -f "$cache_file"$$ "$cache_file" ;; #(
14115 mv -f confcache "$cache_file" ;;
14120 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14121 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14126 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14127 # Let make expand exec_prefix.
14128 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14130 DEFS=-DHAVE_CONFIG_H
14135 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14136 # 1. Remove the extension, and $U if already installed.
14137 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14138 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14139 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14140 # will be set to the directory where LIBOBJS objects are built.
14141 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14142 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14144 LIBOBJS=$ac_libobjs
14146 LTLIBOBJS=$ac_ltlibobjs
14151 : "${CONFIG_STATUS=./config.status}"
14153 ac_clean_files_save=$ac_clean_files
14154 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14155 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14156 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14158 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14160 # Generated by $as_me.
14161 # Run this file to recreate the current configuration.
14162 # Compiler output produced by configure, useful for debugging
14163 # configure, is in config.log if it exists.
14166 ac_cs_recheck=false
14169 SHELL=\${CONFIG_SHELL-$SHELL}
14172 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14173 ## -------------------- ##
14174 ## M4sh Initialization. ##
14175 ## -------------------- ##
14177 # Be more Bourne compatible
14178 DUALCASE=1; export DUALCASE # for MKS sh
14179 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14182 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14183 # is contrary to our usage. Disable this feature.
14184 alias -g '${1+"$@"}'='"$@"'
14185 setopt NO_GLOB_SUBST
14187 case `(set -o) 2>/dev/null` in #(
14199 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14200 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14201 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14202 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14203 # Prefer a ksh shell builtin over an external printf program on Solaris,
14204 # but without wasting forks for bash or zsh.
14205 if test -z "$BASH_VERSION$ZSH_VERSION" \
14206 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14207 as_echo='print -r --'
14208 as_echo_n='print -rn --'
14209 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14210 as_echo='printf %s\n'
14211 as_echo_n='printf %s'
14213 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14214 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14215 as_echo_n='/usr/ucb/echo -n'
14217 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14218 as_echo_n_body='eval
14222 expr "X$arg" : "X\\(.*\\)$as_nl";
14223 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14225 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14227 export as_echo_n_body
14228 as_echo_n='sh -c $as_echo_n_body as_echo'
14230 export as_echo_body
14231 as_echo='sh -c $as_echo_body as_echo'
14234 # The user is always right.
14235 if test "${PATH_SEPARATOR+set}" != set; then
14237 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14238 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14245 # We need space, tab and new line, in precisely that order. Quoting is
14246 # there to prevent editors from complaining about space-tab.
14247 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14248 # splitting by setting IFS to empty value.)
14251 # Find who we are. Look in the path if we contain no directory separator.
14254 *[\\/]* ) as_myself=$0 ;;
14255 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14256 for as_dir in $PATH
14259 test -z "$as_dir" && as_dir=.
14260 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14266 # We did not find ourselves, most probably we were run as `sh COMMAND'
14267 # in which case we are not to be found in the path.
14268 if test "x$as_myself" = x; then
14271 if test ! -f "$as_myself"; then
14272 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14276 # Unset variables that we do not need and which cause bugs (e.g. in
14277 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14278 # suppresses any "Segmentation fault" message there. '((' could
14279 # trigger a bug in pdksh 5.2.14.
14280 for as_var in BASH_ENV ENV MAIL MAILPATH
14281 do eval test x\${$as_var+set} = xset \
14282 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14295 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14298 # as_fn_error STATUS ERROR [LINENO LOG_FD]
14299 # ----------------------------------------
14300 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14301 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14302 # script with STATUS, using 1 if that was 0.
14305 as_status=$1; test $as_status -eq 0 && as_status=1
14307 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14308 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14310 $as_echo "$as_me: error: $2" >&2
14311 as_fn_exit $as_status
14315 # as_fn_set_status STATUS
14316 # -----------------------
14317 # Set $? to STATUS, without forking.
14318 as_fn_set_status ()
14321 } # as_fn_set_status
14323 # as_fn_exit STATUS
14324 # -----------------
14325 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14329 as_fn_set_status $1
14335 # Portably unset VAR.
14338 { eval $1=; unset $1;}
14340 as_unset=as_fn_unset
14341 # as_fn_append VAR VALUE
14342 # ----------------------
14343 # Append the text in VALUE to the end of the definition contained in VAR. Take
14344 # advantage of any shell optimizations that allow amortized linear growth over
14345 # repeated appends, instead of the typical quadratic growth present in naive
14347 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14348 eval 'as_fn_append ()
14359 # as_fn_arith ARG...
14360 # ------------------
14361 # Perform arithmetic evaluation on the ARGs, and store the result in the
14362 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14363 # must be portable across $(()) and expr.
14364 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14365 eval 'as_fn_arith ()
14372 as_val=`expr "$@" || test $? -eq 1`
14377 if expr a : '\(a\)' >/dev/null 2>&1 &&
14378 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14384 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14385 as_basename=basename
14390 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14396 as_me=`$as_basename -- "$0" ||
14397 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14398 X"$0" : 'X\(//\)$' \| \
14399 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14401 sed '/^.*\/\([^/][^/]*\)\/*$/{
14415 # Avoid depending upon Character Ranges.
14416 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14417 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14418 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14419 as_cr_digits='0123456789'
14420 as_cr_alnum=$as_cr_Letters$as_cr_digits
14422 ECHO_C= ECHO_N= ECHO_T=
14423 case `echo -n x` in #(((((
14425 case `echo 'xy\c'` in
14426 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14428 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14435 rm -f conf$$ conf$$.exe conf$$.file
14436 if test -d conf$$.dir; then
14437 rm -f conf$$.dir/conf$$.file
14440 mkdir conf$$.dir 2>/dev/null
14442 if (echo >conf$$.file) 2>/dev/null; then
14443 if ln -s conf$$.file conf$$ 2>/dev/null; then
14445 # ... but there are two gotchas:
14446 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14447 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14448 # In both cases, we have to default to `cp -pR'.
14449 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14451 elif ln conf$$.file conf$$ 2>/dev/null; then
14459 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14460 rmdir conf$$.dir 2>/dev/null
14465 # Create "$as_dir" as a directory, including parents if necessary.
14470 -*) as_dir=./$as_dir;;
14472 test -d "$as_dir" || eval $as_mkdir_p || {
14476 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14477 *) as_qdir=$as_dir;;
14479 as_dirs="'$as_qdir' $as_dirs"
14480 as_dir=`$as_dirname -- "$as_dir" ||
14481 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14482 X"$as_dir" : 'X\(//\)[^/]' \| \
14483 X"$as_dir" : 'X\(//\)$' \| \
14484 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14485 $as_echo X"$as_dir" |
14486 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14490 /^X\(\/\/\)[^/].*/{
14503 test -d "$as_dir" && break
14505 test -z "$as_dirs" || eval "mkdir $as_dirs"
14506 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
14510 if mkdir -p . 2>/dev/null; then
14511 as_mkdir_p='mkdir -p "$as_dir"'
14513 test -d ./-p && rmdir ./-p
14518 # as_fn_executable_p FILE
14519 # -----------------------
14520 # Test if FILE is an executable regular file.
14521 as_fn_executable_p ()
14523 test -f "$1" && test -x "$1"
14524 } # as_fn_executable_p
14525 as_test_x='test -x'
14526 as_executable_p=as_fn_executable_p
14528 # Sed expression to map a string onto a valid CPP name.
14529 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14531 # Sed expression to map a string onto a valid variable name.
14532 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14536 ## ----------------------------------- ##
14537 ## Main body of $CONFIG_STATUS script. ##
14538 ## ----------------------------------- ##
14540 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14542 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14543 # Save the log message, to keep $0 and so on meaningful, and to
14544 # report actual input values of CONFIG_FILES etc. instead of their
14545 # values after options handling.
14547 This file was extended by $as_me, which was
14548 generated by GNU Autoconf 2.69. Invocation command line was
14550 CONFIG_FILES = $CONFIG_FILES
14551 CONFIG_HEADERS = $CONFIG_HEADERS
14552 CONFIG_LINKS = $CONFIG_LINKS
14553 CONFIG_COMMANDS = $CONFIG_COMMANDS
14556 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14561 case $ac_config_files in *"
14562 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14565 case $ac_config_headers in *"
14566 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14570 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14571 # Files that config.status was made for.
14572 config_files="$ac_config_files"
14573 config_headers="$ac_config_headers"
14574 config_commands="$ac_config_commands"
14578 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14580 \`$as_me' instantiates files and other configuration actions
14581 from templates according to the current configuration. Unless the files
14582 and actions are specified as TAGs, all are instantiated by default.
14584 Usage: $0 [OPTION]... [TAG]...
14586 -h, --help print this help, then exit
14587 -V, --version print version number and configuration settings, then exit
14588 --config print configuration, then exit
14589 -q, --quiet, --silent
14590 do not print progress messages
14591 -d, --debug don't remove temporary files
14592 --recheck update $as_me by reconfiguring in the same conditions
14593 --file=FILE[:TEMPLATE]
14594 instantiate the configuration file FILE
14595 --header=FILE[:TEMPLATE]
14596 instantiate the configuration header FILE
14598 Configuration files:
14601 Configuration headers:
14604 Configuration commands:
14607 Report bugs to the package provider."
14610 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14611 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14614 configured by $0, generated by GNU Autoconf 2.69,
14615 with options \\"\$ac_cs_config\\"
14617 Copyright (C) 2012 Free Software Foundation, Inc.
14618 This config.status script is free software; the Free Software Foundation
14619 gives unlimited permission to copy, distribute and modify it."
14626 test -n "\$AWK" || AWK=awk
14629 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14630 # The default lists apply if the user does not specify any file.
14636 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14637 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14641 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14653 # Handling of the options.
14654 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14656 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14657 $as_echo "$ac_cs_version"; exit ;;
14658 --config | --confi | --conf | --con | --co | --c )
14659 $as_echo "$ac_cs_config"; exit ;;
14660 --debug | --debu | --deb | --de | --d | -d )
14662 --file | --fil | --fi | --f )
14665 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14666 '') as_fn_error $? "missing file argument" ;;
14668 as_fn_append CONFIG_FILES " '$ac_optarg'"
14669 ac_need_defaults=false;;
14670 --header | --heade | --head | --hea )
14673 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14675 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14676 ac_need_defaults=false;;
14678 # Conflict between --help and --header
14679 as_fn_error $? "ambiguous option: \`$1'
14680 Try \`$0 --help' for more information.";;
14681 --help | --hel | -h )
14682 $as_echo "$ac_cs_usage"; exit ;;
14683 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14684 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14687 # This is an error.
14688 -*) as_fn_error $? "unrecognized option: \`$1'
14689 Try \`$0 --help' for more information." ;;
14691 *) as_fn_append ac_config_targets " $1"
14692 ac_need_defaults=false ;;
14698 ac_configure_extra_args=
14700 if $ac_cs_silent; then
14702 ac_configure_extra_args="$ac_configure_extra_args --silent"
14706 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14707 if \$ac_cs_recheck; then
14708 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14710 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14711 CONFIG_SHELL='$SHELL'
14712 export CONFIG_SHELL
14717 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14721 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14722 ## Running $as_me. ##
14728 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14732 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
14733 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
14734 # from automake < 1.5.
14735 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
14736 # Capture the value of LINGUAS because we need it to compute CATALOGS.
14737 LINGUAS="${LINGUAS-%UNSET%}"
14742 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14744 # Handling of arguments.
14745 for ac_config_target in $ac_config_targets
14747 case $ac_config_target in
14748 "lib/config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/config.h" ;;
14749 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
14750 "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;;
14752 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14757 # If the user did not use the arguments to specify the items to instantiate,
14758 # then the envvar interface is used. Set only those that are not.
14759 # We use the long form for the default assignment because of an extremely
14760 # bizarre bug on SunOS 4.1.3.
14761 if $ac_need_defaults; then
14762 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14763 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14764 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14767 # Have a temporary directory for convenience. Make it in the build tree
14768 # simply because there is no reason against having it here, and in addition,
14769 # creating and moving files from /tmp can sometimes cause problems.
14770 # Hook for its removal unless debugging.
14771 # Note that there is a small window in which the directory will not be cleaned:
14772 # after its creation but before its name has been assigned to `$tmp'.
14776 trap 'exit_status=$?
14777 : "${ac_tmp:=$tmp}"
14778 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
14780 trap 'as_fn_exit 1' 1 2 13 15
14782 # Create a (secure) tmp directory for tmp files.
14785 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14789 tmp=./conf$$-$RANDOM
14790 (umask 077 && mkdir "$tmp")
14791 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14794 # Set up the scripts for CONFIG_FILES section.
14795 # No need to generate them if there are no CONFIG_FILES.
14796 # This happens for instance with `./config.status config.h'.
14797 if test -n "$CONFIG_FILES"; then
14799 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
14800 ac_cs_awk_getline=:
14801 ac_cs_awk_pipe_init=
14802 ac_cs_awk_read_file='
14803 while ((getline aline < (F[key])) > 0)
14806 ac_cs_awk_pipe_fini=
14808 ac_cs_awk_getline=false
14809 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
14810 ac_cs_awk_read_file='
14812 print "cat " F[key] " &&"
14813 '$ac_cs_awk_pipe_init
14814 # The final `:' finishes the AND list.
14815 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
14817 ac_cr=`echo X | tr X '\015'`
14818 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14819 # But we know of no other shell where ac_cr would be empty at this
14820 # point, so we can use a bashism as a fallback.
14821 if test "x$ac_cr" = x; then
14822 eval ac_cr=\$\'\\r\'
14824 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14825 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14828 ac_cs_awk_cr=$ac_cr
14831 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
14834 # Create commands to substitute file output variables.
14836 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
14837 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
14838 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
14841 } >conf$$files.sh &&
14842 . ./conf$$files.sh ||
14843 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14844 rm -f conf$$files.sh
14847 echo "cat >conf$$subs.awk <<_ACEOF" &&
14848 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14850 } >conf$$subs.sh ||
14851 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14852 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14854 for ac_last_try in false false false false false :; do
14855 . ./conf$$subs.sh ||
14856 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14858 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14859 if test $ac_delim_n = $ac_delim_num; then
14861 elif $ac_last_try; then
14862 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14864 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14867 rm -f conf$$subs.sh
14869 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14870 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14874 s/^/S["/; s/!.*/"]=/
14884 s/\(.\{148\}\)..*/\1/
14886 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14891 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14898 s/\(.\{148\}\)..*/\1/
14900 s/["\\]/\\&/g; s/^/"/; s/$/"/
14904 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14909 ' <conf$$subs.awk | sed '
14914 ' >>$CONFIG_STATUS || ac_write_fail=1
14915 rm -f conf$$subs.awk
14916 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14918 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14919 for (key in S) S_is_set[key] = 1
14921 \$ac_cs_awk_pipe_init
14925 nfields = split(line, field, "@")
14927 len = length(field[1])
14928 for (i = 2; i < nfields; i++) {
14930 keylen = length(key)
14931 if (S_is_set[key]) {
14933 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14934 len += length(value) + length(field[++i])
14939 if (nfields == 3 && !substed) {
14941 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
14942 \$ac_cs_awk_read_file
14948 \$ac_cs_awk_pipe_fini
14951 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14952 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14953 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14956 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14957 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14960 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14961 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14962 # trailing colons and then remove the whole line if VPATH becomes empty
14963 # (actually we leave an empty line to preserve line numbers).
14964 if test "x$srcdir" = x.; then
14965 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
14983 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14984 fi # test -n "$CONFIG_FILES"
14986 # Set up the scripts for CONFIG_HEADERS section.
14987 # No need to generate them if there are no CONFIG_HEADERS.
14988 # This happens for instance with `./config.status Makefile'.
14989 if test -n "$CONFIG_HEADERS"; then
14990 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
14994 # Transform confdefs.h into an awk script `defines.awk', embedded as
14995 # here-document in config.status, that substitutes the proper values into
14996 # config.h.in to produce config.h.
14998 # Create a delimiter string that does not exist in confdefs.h, to ease
14999 # handling of long lines.
15001 for ac_last_try in false false :; do
15002 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
15003 if test -z "$ac_tt"; then
15005 elif $ac_last_try; then
15006 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
15008 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15012 # For the awk script, D is an array of macro values keyed by name,
15013 # likewise P contains macro parameters if any. Preserve backslash
15014 # newline sequences.
15016 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15018 s/.\{148\}/&'"$ac_delim"'/g
15021 s/^[ ]*#[ ]*define[ ][ ]*/ /
15028 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15030 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15034 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15035 D["\1"]=" \3\\\\\\n"\\/p
15037 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15042 s/.\{148\}/&'"$ac_delim"'/g
15047 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15050 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15052 ' <confdefs.h | sed '
15053 s/'"$ac_delim"'/"\\\
15054 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15056 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15057 for (key in D) D_is_set[key] = 1
15060 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15062 split(line, arg, " ")
15063 if (arg[1] == "#") {
15067 defundef = substr(arg[1], 2)
15070 split(mac1, mac2, "(") #)
15072 prefix = substr(line, 1, index(line, defundef) - 1)
15073 if (D_is_set[macro]) {
15074 # Preserve the white space surrounding the "#".
15075 print prefix "define", macro P[macro] D[macro]
15078 # Replace #undef with comments. This is necessary, for example,
15079 # in the case of _POSIX_SOURCE, which is predefined and required
15080 # on some systems where configure will not decide to define it.
15081 if (defundef == "undef") {
15082 print "/*", prefix defundef, macro, "*/"
15090 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15091 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
15092 fi # test -n "$CONFIG_HEADERS"
15095 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15100 :[FHLC]) ac_mode=$ac_tag; continue;;
15102 case $ac_mode$ac_tag in
15104 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
15105 :[FH]-) ac_tag=-:-;;
15106 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15123 -) ac_f="$ac_tmp/stdin";;
15124 *) # Look for the file first in the build tree, then in the source tree
15125 # (if the path is not absolute). The absolute path cannot be DOS-style,
15126 # because $ac_f cannot contain `:'.
15130 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15132 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15134 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15135 as_fn_append ac_file_inputs " '$ac_f'"
15138 # Let's still pretend it is `configure' which instantiates (i.e., don't
15139 # use $as_me), people would be surprised to read:
15140 # /* config.h. Generated by config.status. */
15141 configure_input='Generated from '`
15142 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15144 if test x"$ac_file" != x-; then
15145 configure_input="$ac_file. $configure_input"
15146 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15147 $as_echo "$as_me: creating $ac_file" >&6;}
15149 # Neutralize special characters interpreted by sed in replacement strings.
15150 case $configure_input in #(
15151 *\&* | *\|* | *\\* )
15152 ac_sed_conf_input=`$as_echo "$configure_input" |
15153 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15154 *) ac_sed_conf_input=$configure_input;;
15158 *:-:* | *:-) cat >"$ac_tmp/stdin" \
15159 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15164 ac_dir=`$as_dirname -- "$ac_file" ||
15165 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15166 X"$ac_file" : 'X\(//\)[^/]' \| \
15167 X"$ac_file" : 'X\(//\)$' \| \
15168 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15169 $as_echo X"$ac_file" |
15170 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15174 /^X\(\/\/\)[^/].*/{
15187 as_dir="$ac_dir"; as_fn_mkdir_p
15191 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15193 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15194 # A ".." for each directory in $ac_dir_suffix.
15195 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15196 case $ac_top_builddir_sub in
15197 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15198 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15201 ac_abs_top_builddir=$ac_pwd
15202 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15203 # for backward compatibility:
15204 ac_top_builddir=$ac_top_build_prefix
15207 .) # We are building in place.
15209 ac_top_srcdir=$ac_top_builddir_sub
15210 ac_abs_top_srcdir=$ac_pwd ;;
15211 [\\/]* | ?:[\\/]* ) # Absolute name.
15212 ac_srcdir=$srcdir$ac_dir_suffix;
15213 ac_top_srcdir=$srcdir
15214 ac_abs_top_srcdir=$srcdir ;;
15215 *) # Relative name.
15216 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15217 ac_top_srcdir=$ac_top_build_prefix$srcdir
15218 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15220 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15230 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15231 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15233 ac_MKDIR_P=$MKDIR_P
15235 [\\/$]* | ?:[\\/]* ) ;;
15236 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15240 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15241 # If the template does not know about datarootdir, expand it.
15242 # FIXME: This hack should be removed a few years after 2.60.
15243 ac_datarootdir_hack=; ac_datarootdir_seen=
15254 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15255 *datarootdir*) ac_datarootdir_seen=yes;;
15256 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15257 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15258 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15260 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15261 ac_datarootdir_hack='
15262 s&@datadir@&$datadir&g
15263 s&@docdir@&$docdir&g
15264 s&@infodir@&$infodir&g
15265 s&@localedir@&$localedir&g
15266 s&@mandir@&$mandir&g
15267 s&\\\${datarootdir}&$datarootdir&g' ;;
15271 # Neutralize VPATH when `$srcdir' = `.'.
15272 # Shell code in configure.ac might set extrasub.
15273 # FIXME: do we really want to maintain this feature?
15274 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15275 ac_sed_extra="$ac_vpsub
15278 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15280 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15281 s|@configure_input@|$ac_sed_conf_input|;t t
15282 s&@top_builddir@&$ac_top_builddir_sub&;t t
15283 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15284 s&@srcdir@&$ac_srcdir&;t t
15285 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15286 s&@top_srcdir@&$ac_top_srcdir&;t t
15287 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15288 s&@builddir@&$ac_builddir&;t t
15289 s&@abs_builddir@&$ac_abs_builddir&;t t
15290 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15291 s&@INSTALL@&$ac_INSTALL&;t t
15292 s&@MKDIR_P@&$ac_MKDIR_P&;t t
15293 $ac_datarootdir_hack
15295 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
15296 if $ac_cs_awk_getline; then
15297 $AWK -f "$ac_tmp/subs.awk"
15299 $AWK -f "$ac_tmp/subs.awk" | $SHELL
15301 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15303 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15304 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15305 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
15306 "$ac_tmp/out"`; test -z "$ac_out"; } &&
15307 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15308 which seems to be undefined. Please make sure it is defined" >&5
15309 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15310 which seems to be undefined. Please make sure it is defined" >&2;}
15312 rm -f "$ac_tmp/stdin"
15314 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15315 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15317 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15323 if test x"$ac_file" != x-; then
15325 $as_echo "/* $configure_input */" \
15326 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15327 } >"$ac_tmp/config.h" \
15328 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15329 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
15330 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15331 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15334 mv "$ac_tmp/config.h" "$ac_file" \
15335 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15338 $as_echo "/* $configure_input */" \
15339 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15340 || as_fn_error $? "could not create -" "$LINENO" 5
15344 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15345 $as_echo "$as_me: executing $ac_file commands" >&6;}
15350 case $ac_file$ac_mode in
15351 "po-directories":C)
15352 for ac_file in $CONFIG_FILES; do
15353 # Support "outfile[:infile[:infile...]]"
15355 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
15357 # PO directories have a Makefile.in generated from Makefile.in.in.
15358 case "$ac_file" in */Makefile.in)
15359 # Adjust a relative srcdir.
15360 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
15361 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
15362 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
15363 # In autoconf-2.13 it is called $ac_given_srcdir.
15364 # In autoconf-2.50 it is called $srcdir.
15365 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
15366 case "$ac_given_srcdir" in
15367 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
15368 /*) top_srcdir="$ac_given_srcdir" ;;
15369 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
15371 # Treat a directory as a PO directory if and only if it has a
15372 # POTFILES.in file. This allows packages to have multiple PO
15373 # directories under different names or in different locations.
15374 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
15375 rm -f "$ac_dir/POTFILES"
15376 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
15377 gt_tab=`printf '\t'`
15378 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"
15379 POMAKEFILEDEPS="POTFILES.in"
15380 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
15381 # on $ac_dir but don't depend on user-specified configuration
15383 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
15384 # The LINGUAS file contains the set of available languages.
15385 if test -n "$OBSOLETE_ALL_LINGUAS"; then
15386 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
15388 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
15389 # Hide the ALL_LINGUAS assignment from automake < 1.5.
15390 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
15391 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
15393 # The set of available languages was given in configure.in.
15394 # Hide the ALL_LINGUAS assignment from automake < 1.5.
15395 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
15398 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
15399 # Compute UPDATEPOFILES
15400 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
15401 # Compute DUMMYPOFILES
15402 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
15404 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
15405 case "$ac_given_srcdir" in
15407 *) srcdirpre='$(srcdir)/' ;;
15413 for lang in $ALL_LINGUAS; do
15414 POFILES="$POFILES $srcdirpre$lang.po"
15415 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
15416 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
15417 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
15419 # CATALOGS depends on both $ac_dir and the user's LINGUAS
15420 # environment variable.
15422 if test -n "$ALL_LINGUAS"; then
15423 for presentlang in $ALL_LINGUAS; do
15425 if test "%UNSET%" != "$LINGUAS"; then
15426 desiredlanguages="$LINGUAS"
15428 desiredlanguages="$ALL_LINGUAS"
15430 for desiredlang in $desiredlanguages; do
15431 # Use the presentlang catalog if desiredlang is
15432 # a. equal to presentlang, or
15433 # b. a variant of presentlang (because in this case,
15434 # presentlang can be used as a fallback for messages
15435 # which are not translated in the desiredlang catalog).
15436 case "$desiredlang" in
15437 "$presentlang"*) useit=yes;;
15440 if test $useit = yes; then
15441 INST_LINGUAS="$INST_LINGUAS $presentlang"
15446 if test -n "$INST_LINGUAS"; then
15447 for lang in $INST_LINGUAS; do
15448 CATALOGS="$CATALOGS $lang.gmo"
15451 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
15452 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"
15453 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
15454 if test -f "$f"; then
15456 *.orig | *.bak | *~) ;;
15457 *) cat "$f" >> "$ac_dir/Makefile" ;;
15472 ac_clean_files=$ac_clean_files_save
15474 test $ac_write_fail = 0 ||
15475 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15478 # configure is writing to config.log, and then calls config.status.
15479 # config.status does its own redirection, appending to config.log.
15480 # Unfortunately, on DOS this fails, as config.log is still kept open
15481 # by configure, so config.status won't be able to write to it; its
15482 # output is simply discarded. So we exec the FD to /dev/null,
15483 # effectively closing config.log, so it can be properly (re)opened and
15484 # appended to by config.status. When coming back to configure, we
15485 # need to make the FD available again.
15486 if test "$no_create" != yes; then
15488 ac_config_status_args=
15489 test "$silent" = yes &&
15490 ac_config_status_args="$ac_config_status_args --quiet"
15492 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15494 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15495 # would make configure fail if this is the last instruction.
15496 $ac_cs_success || as_fn_exit 1
15498 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15499 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15500 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15503 if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi