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
628 systemd_system_unit_dir
703 INTL_LIBTOOL_SUFFIX_PREFIX
710 BUILD_INCLUDED_LIBINTL
720 INTL_DEFAULT_VERBOSITY
739 XGETTEXT_EXTRA_OPTIONS
747 GETTEXT_MACRO_VERSION
858 program_transform_name
869 ac_subst_files='MCONFIG
875 PUBLIC_CONFIG_HEADER'
877 enable_option_checking
883 enable_maintainer_mode
884 enable_symlink_install
885 enable_relative_symlinks
886 enable_symlink_relative_symlinks
888 enable_verbose_makecmds
906 enable_e2initrd_helper
912 enable_bmap_stats_ops
920 with_included_gettext
930 with_systemd_unit_dir
932 ac_precious_vars='build_alias
950 # Initialize some variables set by options.
952 ac_init_version=false
953 ac_unrecognized_opts=
955 # The variables have the same names as the options, with
956 # dashes changed to underlines.
964 program_transform_name=s,x,x,
972 # Installation directory options.
973 # These are left unexpanded so users can "make install exec_prefix=/foo"
974 # and all the variables that are supposed to be based on exec_prefix
975 # by default will actually change.
976 # Use braces instead of parens because sh, perl, etc. also accept them.
977 # (The list follows the same order as the GNU Coding Standards.)
978 bindir='${exec_prefix}/bin'
979 sbindir='${exec_prefix}/sbin'
980 libexecdir='${exec_prefix}/libexec'
981 datarootdir='${prefix}/share'
982 datadir='${datarootdir}'
983 sysconfdir='${prefix}/etc'
984 sharedstatedir='${prefix}/com'
985 localstatedir='${prefix}/var'
986 includedir='${prefix}/include'
987 oldincludedir='/usr/include'
988 docdir='${datarootdir}/doc/${PACKAGE}'
989 infodir='${datarootdir}/info'
994 libdir='${exec_prefix}/lib'
995 localedir='${datarootdir}/locale'
996 mandir='${datarootdir}/man'
1002 # If the previous option needs an argument, assign it.
1003 if test -n "$ac_prev"; then
1004 eval $ac_prev=\$ac_option
1010 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1015 # Accept the important Cygnus configure options, so we can diagnose typos.
1017 case $ac_dashdash$ac_option in
1021 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1023 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1024 bindir=$ac_optarg ;;
1026 -build | --build | --buil | --bui | --bu)
1027 ac_prev=build_alias ;;
1028 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1029 build_alias=$ac_optarg ;;
1031 -cache-file | --cache-file | --cache-fil | --cache-fi \
1032 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1033 ac_prev=cache_file ;;
1034 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1035 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1036 cache_file=$ac_optarg ;;
1038 --config-cache | -C)
1039 cache_file=config.cache ;;
1041 -datadir | --datadir | --datadi | --datad)
1043 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1044 datadir=$ac_optarg ;;
1046 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1047 | --dataroo | --dataro | --datar)
1048 ac_prev=datarootdir ;;
1049 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1050 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1051 datarootdir=$ac_optarg ;;
1053 -disable-* | --disable-*)
1054 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1055 # Reject names that are not valid shell variable names.
1056 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1057 as_fn_error $? "invalid feature name: $ac_useropt"
1058 ac_useropt_orig=$ac_useropt
1059 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1060 case $ac_user_opts in
1062 "enable_$ac_useropt"
1064 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1065 ac_unrecognized_sep=', ';;
1067 eval enable_$ac_useropt=no ;;
1069 -docdir | --docdir | --docdi | --doc | --do)
1071 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1072 docdir=$ac_optarg ;;
1074 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1076 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1077 dvidir=$ac_optarg ;;
1079 -enable-* | --enable-*)
1080 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1081 # Reject names that are not valid shell variable names.
1082 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1083 as_fn_error $? "invalid feature name: $ac_useropt"
1084 ac_useropt_orig=$ac_useropt
1085 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1086 case $ac_user_opts in
1088 "enable_$ac_useropt"
1090 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1091 ac_unrecognized_sep=', ';;
1093 eval enable_$ac_useropt=\$ac_optarg ;;
1095 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1096 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1097 | --exec | --exe | --ex)
1098 ac_prev=exec_prefix ;;
1099 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1100 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1101 | --exec=* | --exe=* | --ex=*)
1102 exec_prefix=$ac_optarg ;;
1104 -gas | --gas | --ga | --g)
1105 # Obsolete; use --with-gas.
1108 -help | --help | --hel | --he | -h)
1109 ac_init_help=long ;;
1110 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1111 ac_init_help=recursive ;;
1112 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1113 ac_init_help=short ;;
1115 -host | --host | --hos | --ho)
1116 ac_prev=host_alias ;;
1117 -host=* | --host=* | --hos=* | --ho=*)
1118 host_alias=$ac_optarg ;;
1120 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1122 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1124 htmldir=$ac_optarg ;;
1126 -includedir | --includedir | --includedi | --included | --include \
1127 | --includ | --inclu | --incl | --inc)
1128 ac_prev=includedir ;;
1129 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1130 | --includ=* | --inclu=* | --incl=* | --inc=*)
1131 includedir=$ac_optarg ;;
1133 -infodir | --infodir | --infodi | --infod | --info | --inf)
1135 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1136 infodir=$ac_optarg ;;
1138 -libdir | --libdir | --libdi | --libd)
1140 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1141 libdir=$ac_optarg ;;
1143 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1144 | --libexe | --libex | --libe)
1145 ac_prev=libexecdir ;;
1146 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1147 | --libexe=* | --libex=* | --libe=*)
1148 libexecdir=$ac_optarg ;;
1150 -localedir | --localedir | --localedi | --localed | --locale)
1151 ac_prev=localedir ;;
1152 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1153 localedir=$ac_optarg ;;
1155 -localstatedir | --localstatedir | --localstatedi | --localstated \
1156 | --localstate | --localstat | --localsta | --localst | --locals)
1157 ac_prev=localstatedir ;;
1158 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1159 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1160 localstatedir=$ac_optarg ;;
1162 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1164 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1165 mandir=$ac_optarg ;;
1167 -nfp | --nfp | --nf)
1168 # Obsolete; use --without-fp.
1171 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1172 | --no-cr | --no-c | -n)
1175 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1176 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1179 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1180 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1181 | --oldin | --oldi | --old | --ol | --o)
1182 ac_prev=oldincludedir ;;
1183 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1184 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1185 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1186 oldincludedir=$ac_optarg ;;
1188 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1190 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1191 prefix=$ac_optarg ;;
1193 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1194 | --program-pre | --program-pr | --program-p)
1195 ac_prev=program_prefix ;;
1196 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1197 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1198 program_prefix=$ac_optarg ;;
1200 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1201 | --program-suf | --program-su | --program-s)
1202 ac_prev=program_suffix ;;
1203 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1204 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1205 program_suffix=$ac_optarg ;;
1207 -program-transform-name | --program-transform-name \
1208 | --program-transform-nam | --program-transform-na \
1209 | --program-transform-n | --program-transform- \
1210 | --program-transform | --program-transfor \
1211 | --program-transfo | --program-transf \
1212 | --program-trans | --program-tran \
1213 | --progr-tra | --program-tr | --program-t)
1214 ac_prev=program_transform_name ;;
1215 -program-transform-name=* | --program-transform-name=* \
1216 | --program-transform-nam=* | --program-transform-na=* \
1217 | --program-transform-n=* | --program-transform-=* \
1218 | --program-transform=* | --program-transfor=* \
1219 | --program-transfo=* | --program-transf=* \
1220 | --program-trans=* | --program-tran=* \
1221 | --progr-tra=* | --program-tr=* | --program-t=*)
1222 program_transform_name=$ac_optarg ;;
1224 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1226 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1227 pdfdir=$ac_optarg ;;
1229 -psdir | --psdir | --psdi | --psd | --ps)
1231 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1234 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1235 | -silent | --silent | --silen | --sile | --sil)
1238 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1240 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1242 sbindir=$ac_optarg ;;
1244 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1245 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1246 | --sharedst | --shareds | --shared | --share | --shar \
1248 ac_prev=sharedstatedir ;;
1249 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1250 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1251 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1253 sharedstatedir=$ac_optarg ;;
1255 -site | --site | --sit)
1257 -site=* | --site=* | --sit=*)
1260 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1262 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1263 srcdir=$ac_optarg ;;
1265 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1266 | --syscon | --sysco | --sysc | --sys | --sy)
1267 ac_prev=sysconfdir ;;
1268 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1269 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1270 sysconfdir=$ac_optarg ;;
1272 -target | --target | --targe | --targ | --tar | --ta | --t)
1273 ac_prev=target_alias ;;
1274 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1275 target_alias=$ac_optarg ;;
1277 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1280 -version | --version | --versio | --versi | --vers | -V)
1281 ac_init_version=: ;;
1284 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1285 # Reject names that are not valid shell variable names.
1286 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1287 as_fn_error $? "invalid package name: $ac_useropt"
1288 ac_useropt_orig=$ac_useropt
1289 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1290 case $ac_user_opts in
1294 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1295 ac_unrecognized_sep=', ';;
1297 eval with_$ac_useropt=\$ac_optarg ;;
1299 -without-* | --without-*)
1300 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1301 # Reject names that are not valid shell variable names.
1302 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1303 as_fn_error $? "invalid package name: $ac_useropt"
1304 ac_useropt_orig=$ac_useropt
1305 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1306 case $ac_user_opts in
1310 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1311 ac_unrecognized_sep=', ';;
1313 eval with_$ac_useropt=no ;;
1316 # Obsolete; use --with-x.
1319 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1320 | --x-incl | --x-inc | --x-in | --x-i)
1321 ac_prev=x_includes ;;
1322 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1323 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1324 x_includes=$ac_optarg ;;
1326 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1327 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1328 ac_prev=x_libraries ;;
1329 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1330 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1331 x_libraries=$ac_optarg ;;
1333 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1334 Try \`$0 --help' for more information"
1338 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1339 # Reject names that are not valid shell variable names.
1340 case $ac_envvar in #(
1341 '' | [0-9]* | *[!_$as_cr_alnum]* )
1342 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1344 eval $ac_envvar=\$ac_optarg
1345 export $ac_envvar ;;
1348 # FIXME: should be removed in autoconf 3.0.
1349 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1350 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1351 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1352 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1358 if test -n "$ac_prev"; then
1359 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1360 as_fn_error $? "missing argument to $ac_option"
1363 if test -n "$ac_unrecognized_opts"; then
1364 case $enable_option_checking in
1366 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1367 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1371 # Check all directory arguments for consistency.
1372 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1373 datadir sysconfdir sharedstatedir localstatedir includedir \
1374 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1375 libdir localedir mandir
1377 eval ac_val=\$$ac_var
1378 # Remove trailing slashes.
1381 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1382 eval $ac_var=\$ac_val;;
1384 # Be sure to have absolute directory names.
1386 [\\/$]* | ?:[\\/]* ) continue;;
1387 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1389 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1392 # There might be people who depend on the old broken behavior: `$host'
1393 # used to hold the argument of --host etc.
1394 # FIXME: To remove some day.
1397 target=$target_alias
1399 # FIXME: To remove some day.
1400 if test "x$host_alias" != x; then
1401 if test "x$build_alias" = x; then
1402 cross_compiling=maybe
1403 elif test "x$build_alias" != "x$host_alias"; then
1409 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1411 test "$silent" = yes && exec 6>/dev/null
1414 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1415 ac_ls_di=`ls -di .` &&
1416 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1417 as_fn_error $? "working directory cannot be determined"
1418 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1419 as_fn_error $? "pwd does not report name of working directory"
1422 # Find the source files, if location was not specified.
1423 if test -z "$srcdir"; then
1424 ac_srcdir_defaulted=yes
1425 # Try the directory containing this script, then the parent directory.
1426 ac_confdir=`$as_dirname -- "$as_myself" ||
1427 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1428 X"$as_myself" : 'X\(//\)[^/]' \| \
1429 X"$as_myself" : 'X\(//\)$' \| \
1430 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1431 $as_echo X"$as_myself" |
1432 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1450 if test ! -r "$srcdir/$ac_unique_file"; then
1454 ac_srcdir_defaulted=no
1456 if test ! -r "$srcdir/$ac_unique_file"; then
1457 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1458 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1460 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1462 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1464 # When building in place, set srcdir=.
1465 if test "$ac_abs_confdir" = "$ac_pwd"; then
1468 # Remove unnecessary trailing slashes from srcdir.
1469 # Double slashes in file names in object file debugging info
1470 # mess up M-x gdb in Emacs.
1472 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1474 for ac_var in $ac_precious_vars; do
1475 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1476 eval ac_env_${ac_var}_value=\$${ac_var}
1477 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1478 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1482 # Report the --help message.
1484 if test "$ac_init_help" = "long"; then
1485 # Omit some internal or obsolete options to make the list less imposing.
1486 # This message is too long to be a string in the A/UX 3.1 sh.
1488 \`configure' configures this package to adapt to many kinds of systems.
1490 Usage: $0 [OPTION]... [VAR=VALUE]...
1492 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1493 VAR=VALUE. See below for descriptions of some of the useful variables.
1495 Defaults for the options are specified in brackets.
1498 -h, --help display this help and exit
1499 --help=short display options specific to this package
1500 --help=recursive display the short help of all the included packages
1501 -V, --version display version information and exit
1502 -q, --quiet, --silent do not print \`checking ...' messages
1503 --cache-file=FILE cache test results in FILE [disabled]
1504 -C, --config-cache alias for \`--cache-file=config.cache'
1505 -n, --no-create do not create output files
1506 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1508 Installation directories:
1509 --prefix=PREFIX install architecture-independent files in PREFIX
1510 [$ac_default_prefix]
1511 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1514 By default, \`make install' will install all the files in
1515 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1516 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1517 for instance \`--prefix=\$HOME'.
1519 For better control, use the options below.
1521 Fine tuning of the installation directories:
1522 --bindir=DIR user executables [EPREFIX/bin]
1523 --sbindir=DIR system admin executables [EPREFIX/sbin]
1524 --libexecdir=DIR program executables [EPREFIX/libexec]
1525 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1526 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1527 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1528 --libdir=DIR object code libraries [EPREFIX/lib]
1529 --includedir=DIR C header files [PREFIX/include]
1530 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1531 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1532 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1533 --infodir=DIR info documentation [DATAROOTDIR/info]
1534 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1535 --mandir=DIR man documentation [DATAROOTDIR/man]
1536 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1537 --htmldir=DIR html documentation [DOCDIR]
1538 --dvidir=DIR dvi documentation [DOCDIR]
1539 --pdfdir=DIR pdf documentation [DOCDIR]
1540 --psdir=DIR ps documentation [DOCDIR]
1546 --build=BUILD configure for building on BUILD [guessed]
1547 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1551 if test -n "$ac_init_help"; then
1556 --disable-option-checking ignore unrecognized --enable/--with options
1557 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1558 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1559 --enable-maintainer-mode enable makefile rules useful for maintainers
1560 --enable-symlink-install use symlinks when installing instead of hard links
1561 --enable-relative-symlinks use relative symlinks when installing
1563 --enable-symlink-build use symlinks while building instead of hard links
1564 --enable-verbose-makecmds enable verbose make command output
1565 --enable-elf-shlibs select ELF shared libraries
1566 --enable-bsd-shlibs select BSD shared libraries
1567 --enable-profile build profiling libraries
1568 --enable-gcov build for coverage testing using gcov
1569 --enable-hardening build for coverage testing using gcov
1570 --enable-jbd-debug enable journal debugging
1571 --enable-blkid-debug enable blkid debugging
1572 --disable-testio-debug disable the use of the test I/O manager for debugging
1573 --enable-libuuid build and use private uuid library
1574 --enable-libblkid build and use private blkid library
1575 --enable-subset enable subset-only build
1576 --disable-backtrace disable use backtrace
1577 --disable-debugfs disable support of debugfs program
1578 --disable-imager disable support of e2image program
1579 --disable-resizer disable support of e2resize program
1580 --disable-defrag disable support of e4defrag program
1581 --enable-fsck build fsck wrapper program
1582 --enable-e2initrd-helper build e2initrd-helper program
1583 --disable-tls disable use of thread local support
1584 --disable-uuidd disable building the uuid daemon
1585 --disable-mmp disable support mmp, Multi Mount Protection
1586 --disable-tdb disable tdb support
1587 --disable-bmap-stats disable collection of bitmap stats.
1588 --enable-bmap-stats-ops enable collection of additional bitmap stats
1589 --disable-pfsck disable parallel e2fsck
1590 --disable-nls do not use Native Language Support
1591 --enable-threads={posix|solaris|pth|windows}
1592 specify multithreading API
1593 --disable-threads build without multithread safety
1594 --disable-rpath do not hardcode runtime library paths
1595 --disable-fuse2fs do not build fuse2fs
1596 --enable-lto enable link time optimization
1597 --enable-ubsan enable undefined behavior sanitizer
1598 --enable-addrsan enable address sanitizer
1599 --enable-threadsan enable thread sanitizer
1602 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1603 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1604 --with-diet-libc use diet libc
1605 --with-cc no longer supported, use CC= instead
1606 --with-ccopts no longer supported, use CFLAGS= instead
1607 --with-ldopts no longer supported, use LDFLAGS= instead
1608 --with-root-prefix=PREFIX override prefix variable for files to be placed in the root
1609 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1610 --with-libpth-prefix[=DIR] search for libpth in DIR/include and DIR/lib
1611 --without-libpth-prefix don't search for libpth in includedir and libdir
1612 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1613 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1614 --with-included-gettext use the GNU gettext library included here
1615 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1616 --without-libintl-prefix don't search for libintl in includedir and libdir
1617 --with-multiarch=ARCH specify the multiarch triplet
1618 --with-udev-rules-dir[=DIR]
1619 Install udev rules into DIR.
1620 --with-crond-dir[=DIR] Install system crontabs into DIR.
1621 --with-systemd-unit-dir[=DIR]
1622 Install systemd system units into DIR.
1624 Some influential environment variables:
1625 CC C compiler command
1626 CFLAGS C compiler flags
1627 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1628 nonstandard directory <lib dir>
1629 LIBS libraries to pass to the linker, e.g. -l<library>
1630 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1631 you have headers in a nonstandard directory <include dir>
1633 PKG_CONFIG path to pkg-config utility
1635 directories to add to pkg-config's search path
1637 path overriding pkg-config's built-in search path
1638 udev_CFLAGS C compiler flags for udev, overriding pkg-config
1639 udev_LIBS linker flags for udev, overriding pkg-config
1641 C compiler flags for systemd, overriding pkg-config
1643 linker flags for systemd, overriding pkg-config
1645 Use these variables to override the choices made by `configure' or to help
1646 it to find libraries and programs with nonstandard names/locations.
1648 Report bugs to the package provider.
1653 if test "$ac_init_help" = "recursive"; then
1654 # If there are subdirs, report their specific --help.
1655 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1656 test -d "$ac_dir" ||
1657 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1662 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1664 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1665 # A ".." for each directory in $ac_dir_suffix.
1666 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1667 case $ac_top_builddir_sub in
1668 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1669 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1672 ac_abs_top_builddir=$ac_pwd
1673 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1674 # for backward compatibility:
1675 ac_top_builddir=$ac_top_build_prefix
1678 .) # We are building in place.
1680 ac_top_srcdir=$ac_top_builddir_sub
1681 ac_abs_top_srcdir=$ac_pwd ;;
1682 [\\/]* | ?:[\\/]* ) # Absolute name.
1683 ac_srcdir=$srcdir$ac_dir_suffix;
1684 ac_top_srcdir=$srcdir
1685 ac_abs_top_srcdir=$srcdir ;;
1687 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1688 ac_top_srcdir=$ac_top_build_prefix$srcdir
1689 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1691 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1693 cd "$ac_dir" || { ac_status=$?; continue; }
1694 # Check for guested configure.
1695 if test -f "$ac_srcdir/configure.gnu"; then
1697 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1698 elif test -f "$ac_srcdir/configure"; then
1700 $SHELL "$ac_srcdir/configure" --help=recursive
1702 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1704 cd "$ac_pwd" || { ac_status=$?; break; }
1708 test -n "$ac_init_help" && exit $ac_status
1709 if $ac_init_version; then
1712 generated by GNU Autoconf 2.69
1714 Copyright (C) 2012 Free Software Foundation, Inc.
1715 This configure script is free software; the Free Software Foundation
1716 gives unlimited permission to copy, distribute and modify it.
1721 ## ------------------------ ##
1722 ## Autoconf initialization. ##
1723 ## ------------------------ ##
1725 # ac_fn_c_try_compile LINENO
1726 # --------------------------
1727 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1728 ac_fn_c_try_compile ()
1730 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1731 rm -f conftest.$ac_objext
1732 if { { ac_try="$ac_compile"
1734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1735 *) ac_try_echo=$ac_try;;
1737 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1738 $as_echo "$ac_try_echo"; } >&5
1739 (eval "$ac_compile") 2>conftest.err
1741 if test -s conftest.err; then
1742 grep -v '^ *+' conftest.err >conftest.er1
1743 cat conftest.er1 >&5
1744 mv -f conftest.er1 conftest.err
1746 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1747 test $ac_status = 0; } && {
1748 test -z "$ac_c_werror_flag" ||
1749 test ! -s conftest.err
1750 } && test -s conftest.$ac_objext; then :
1753 $as_echo "$as_me: failed program was:" >&5
1754 sed 's/^/| /' conftest.$ac_ext >&5
1758 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1759 as_fn_set_status $ac_retval
1761 } # ac_fn_c_try_compile
1763 # ac_fn_c_try_link LINENO
1764 # -----------------------
1765 # Try to link conftest.$ac_ext, and return whether this succeeded.
1768 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1769 rm -f conftest.$ac_objext conftest$ac_exeext
1770 if { { ac_try="$ac_link"
1772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1773 *) ac_try_echo=$ac_try;;
1775 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1776 $as_echo "$ac_try_echo"; } >&5
1777 (eval "$ac_link") 2>conftest.err
1779 if test -s conftest.err; then
1780 grep -v '^ *+' conftest.err >conftest.er1
1781 cat conftest.er1 >&5
1782 mv -f conftest.er1 conftest.err
1784 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1785 test $ac_status = 0; } && {
1786 test -z "$ac_c_werror_flag" ||
1787 test ! -s conftest.err
1788 } && test -s conftest$ac_exeext && {
1789 test "$cross_compiling" = yes ||
1790 test -x conftest$ac_exeext
1794 $as_echo "$as_me: failed program was:" >&5
1795 sed 's/^/| /' conftest.$ac_ext >&5
1799 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1800 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1801 # interfere with the next link command; also delete a directory that is
1802 # left behind by Apple's compiler. We do this before executing the actions.
1803 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1804 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1805 as_fn_set_status $ac_retval
1807 } # ac_fn_c_try_link
1809 # ac_fn_c_try_cpp LINENO
1810 # ----------------------
1811 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1814 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1815 if { { ac_try="$ac_cpp conftest.$ac_ext"
1817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1818 *) ac_try_echo=$ac_try;;
1820 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1821 $as_echo "$ac_try_echo"; } >&5
1822 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1824 if test -s conftest.err; then
1825 grep -v '^ *+' conftest.err >conftest.er1
1826 cat conftest.er1 >&5
1827 mv -f conftest.er1 conftest.err
1829 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1830 test $ac_status = 0; } > conftest.i && {
1831 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1832 test ! -s conftest.err
1836 $as_echo "$as_me: failed program was:" >&5
1837 sed 's/^/| /' conftest.$ac_ext >&5
1841 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1842 as_fn_set_status $ac_retval
1846 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1847 # -------------------------------------------------------
1848 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1849 # the include files in INCLUDES and setting the cache variable VAR
1851 ac_fn_c_check_header_mongrel ()
1853 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1854 if eval \${$3+:} false; then :
1855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1856 $as_echo_n "checking for $2... " >&6; }
1857 if eval \${$3+:} false; then :
1858 $as_echo_n "(cached) " >&6
1861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1862 $as_echo "$ac_res" >&6; }
1864 # Is the header compilable?
1865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1866 $as_echo_n "checking $2 usability... " >&6; }
1867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1868 /* end confdefs.h. */
1872 if ac_fn_c_try_compile "$LINENO"; then :
1873 ac_header_compiler=yes
1875 ac_header_compiler=no
1877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1879 $as_echo "$ac_header_compiler" >&6; }
1881 # Is the header present?
1882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1883 $as_echo_n "checking $2 presence... " >&6; }
1884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1885 /* end confdefs.h. */
1888 if ac_fn_c_try_cpp "$LINENO"; then :
1889 ac_header_preproc=yes
1891 ac_header_preproc=no
1893 rm -f conftest.err conftest.i conftest.$ac_ext
1894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1895 $as_echo "$ac_header_preproc" >&6; }
1897 # So? What about this header?
1898 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1900 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1901 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1902 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1903 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1906 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1907 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1908 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1909 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1910 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1911 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1912 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1913 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1914 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1915 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1919 $as_echo_n "checking for $2... " >&6; }
1920 if eval \${$3+:} false; then :
1921 $as_echo_n "(cached) " >&6
1923 eval "$3=\$ac_header_compiler"
1926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1927 $as_echo "$ac_res" >&6; }
1929 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1931 } # ac_fn_c_check_header_mongrel
1933 # ac_fn_c_try_run LINENO
1934 # ----------------------
1935 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1936 # that executables *can* be run.
1939 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1940 if { { ac_try="$ac_link"
1942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1943 *) ac_try_echo=$ac_try;;
1945 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1946 $as_echo "$ac_try_echo"; } >&5
1947 (eval "$ac_link") 2>&5
1949 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1950 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1951 { { case "(($ac_try" in
1952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1953 *) ac_try_echo=$ac_try;;
1955 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1956 $as_echo "$ac_try_echo"; } >&5
1957 (eval "$ac_try") 2>&5
1959 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1960 test $ac_status = 0; }; }; then :
1963 $as_echo "$as_me: program exited with status $ac_status" >&5
1964 $as_echo "$as_me: failed program was:" >&5
1965 sed 's/^/| /' conftest.$ac_ext >&5
1967 ac_retval=$ac_status
1969 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1970 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1971 as_fn_set_status $ac_retval
1975 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1976 # -------------------------------------------------------
1977 # Tests whether HEADER exists and can be compiled using the include files in
1978 # INCLUDES, setting the cache variable VAR accordingly.
1979 ac_fn_c_check_header_compile ()
1981 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1983 $as_echo_n "checking for $2... " >&6; }
1984 if eval \${$3+:} false; then :
1985 $as_echo_n "(cached) " >&6
1987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1988 /* end confdefs.h. */
1992 if ac_fn_c_try_compile "$LINENO"; then :
1997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2001 $as_echo "$ac_res" >&6; }
2002 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2004 } # ac_fn_c_check_header_compile
2006 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2007 # -------------------------------------------
2008 # Tests whether TYPE exists after having included INCLUDES, setting cache
2009 # variable VAR accordingly.
2010 ac_fn_c_check_type ()
2012 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2014 $as_echo_n "checking for $2... " >&6; }
2015 if eval \${$3+:} false; then :
2016 $as_echo_n "(cached) " >&6
2019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2020 /* end confdefs.h. */
2031 if ac_fn_c_try_compile "$LINENO"; then :
2032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2033 /* end confdefs.h. */
2044 if ac_fn_c_try_compile "$LINENO"; then :
2049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2055 $as_echo "$ac_res" >&6; }
2056 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2058 } # ac_fn_c_check_type
2060 # ac_fn_c_check_func LINENO FUNC VAR
2061 # ----------------------------------
2062 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2063 ac_fn_c_check_func ()
2065 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2067 $as_echo_n "checking for $2... " >&6; }
2068 if eval \${$3+:} false; then :
2069 $as_echo_n "(cached) " >&6
2071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2072 /* end confdefs.h. */
2073 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2074 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2075 #define $2 innocuous_$2
2077 /* System header to define __stub macros and hopefully few prototypes,
2078 which can conflict with char $2 (); below.
2079 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2080 <limits.h> exists even on freestanding compilers. */
2083 # include <limits.h>
2085 # include <assert.h>
2090 /* Override any GCC internal prototype to avoid an error.
2091 Use char because int might match the return type of a GCC
2092 builtin and then its argument prototype would still apply. */
2097 /* The GNU C library defines this for functions which it implements
2098 to always fail with ENOSYS. Some functions are actually named
2099 something starting with __ and the normal name is an alias. */
2100 #if defined __stub_$2 || defined __stub___$2
2112 if ac_fn_c_try_link "$LINENO"; then :
2117 rm -f core conftest.err conftest.$ac_objext \
2118 conftest$ac_exeext conftest.$ac_ext
2121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2122 $as_echo "$ac_res" >&6; }
2123 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2125 } # ac_fn_c_check_func
2127 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2128 # ---------------------------------------------
2129 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2131 ac_fn_c_check_decl ()
2133 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2134 as_decl_name=`echo $2|sed 's/ *(.*//'`
2135 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2137 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2138 if eval \${$3+:} false; then :
2139 $as_echo_n "(cached) " >&6
2141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2142 /* end confdefs.h. */
2147 #ifndef $as_decl_name
2149 (void) $as_decl_use;
2151 (void) $as_decl_name;
2159 if ac_fn_c_try_compile "$LINENO"; then :
2164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2168 $as_echo "$ac_res" >&6; }
2169 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2171 } # ac_fn_c_check_decl
2173 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2174 # --------------------------------------------
2175 # Tries to find the compile-time value of EXPR in a program that includes
2176 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2178 ac_fn_c_compute_int ()
2180 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2181 if test "$cross_compiling" = yes; then
2182 # Depending upon the size, compute the lo and hi bounds.
2183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2184 /* end confdefs.h. */
2189 static int test_array [1 - 2 * !(($2) >= 0)];
2191 return test_array [0];
2197 if ac_fn_c_try_compile "$LINENO"; then :
2200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2201 /* end confdefs.h. */
2206 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2208 return test_array [0];
2214 if ac_fn_c_try_compile "$LINENO"; then :
2215 ac_hi=$ac_mid; break
2217 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2218 if test $ac_lo -le $ac_mid; then
2222 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2228 /* end confdefs.h. */
2233 static int test_array [1 - 2 * !(($2) < 0)];
2235 return test_array [0];
2241 if ac_fn_c_try_compile "$LINENO"; then :
2244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2245 /* end confdefs.h. */
2250 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2252 return test_array [0];
2258 if ac_fn_c_try_compile "$LINENO"; then :
2259 ac_lo=$ac_mid; break
2261 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2262 if test $ac_mid -le $ac_hi; then
2266 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2276 # Binary search between lo and hi bounds.
2277 while test "x$ac_lo" != "x$ac_hi"; do
2278 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2280 /* end confdefs.h. */
2285 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2287 return test_array [0];
2293 if ac_fn_c_try_compile "$LINENO"; then :
2296 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2301 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2306 /* end confdefs.h. */
2308 static long int longval () { return $2; }
2309 static unsigned long int ulongval () { return $2; }
2316 FILE *f = fopen ("conftest.val", "w");
2321 long int i = longval ();
2324 fprintf (f, "%ld", i);
2328 unsigned long int i = ulongval ();
2331 fprintf (f, "%lu", i);
2333 /* Do not output a trailing newline, as this causes \r\n confusion
2334 on some platforms. */
2335 return ferror (f) || fclose (f) != 0;
2341 if ac_fn_c_try_run "$LINENO"; then :
2342 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2346 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2347 conftest.$ac_objext conftest.beam conftest.$ac_ext
2351 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2352 as_fn_set_status $ac_retval
2354 } # ac_fn_c_compute_int
2356 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2357 # ----------------------------------------------------
2358 # Tries to find if the field MEMBER exists in type AGGR, after including
2359 # INCLUDES, setting cache variable VAR accordingly.
2360 ac_fn_c_check_member ()
2362 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2364 $as_echo_n "checking for $2.$3... " >&6; }
2365 if eval \${$4+:} false; then :
2366 $as_echo_n "(cached) " >&6
2368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2369 /* end confdefs.h. */
2381 if ac_fn_c_try_compile "$LINENO"; then :
2384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2385 /* end confdefs.h. */
2391 if (sizeof ac_aggr.$3)
2397 if ac_fn_c_try_compile "$LINENO"; then :
2402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2408 $as_echo "$ac_res" >&6; }
2409 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2411 } # ac_fn_c_check_member
2412 cat >config.log <<_ACEOF
2413 This file contains any messages produced by compilers while
2414 running configure, to aid debugging if configure makes a mistake.
2416 It was created by $as_me, which was
2417 generated by GNU Autoconf 2.69. Invocation command line was
2429 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2430 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2431 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2432 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2433 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2435 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2436 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2438 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2439 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2440 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2441 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2442 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2443 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2444 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2452 test -z "$as_dir" && as_dir=.
2453 $as_echo "PATH: $as_dir"
2469 # Keep a trace of the command line.
2470 # Strip out --no-create and --no-recursion so they do not pile up.
2471 # Strip out --silent because we don't want to record it for future runs.
2472 # Also quote any args containing shell meta-characters.
2473 # Make two passes to allow for proper duplicate-argument suppression.
2477 ac_must_keep_next=false
2483 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2484 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2485 | -silent | --silent | --silen | --sile | --sil)
2488 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2491 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2493 as_fn_append ac_configure_args1 " '$ac_arg'"
2494 if test $ac_must_keep_next = true; then
2495 ac_must_keep_next=false # Got value, back to normal.
2498 *=* | --config-cache | -C | -disable-* | --disable-* \
2499 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2500 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2501 | -with-* | --with-* | -without-* | --without-* | --x)
2502 case "$ac_configure_args0 " in
2503 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2506 -* ) ac_must_keep_next=true ;;
2509 as_fn_append ac_configure_args " '$ac_arg'"
2514 { ac_configure_args0=; unset ac_configure_args0;}
2515 { ac_configure_args1=; unset ac_configure_args1;}
2517 # When interrupted or exit'd, cleanup temporary files, and complete
2518 # config.log. We remove comments because anyway the quotes in there
2519 # would cause problems or look ugly.
2520 # WARNING: Use '\'' to represent an apostrophe within the trap.
2521 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2522 trap 'exit_status=$?
2523 # Save into config.log some information that might help in debugging.
2527 $as_echo "## ---------------- ##
2528 ## Cache variables. ##
2529 ## ---------------- ##"
2531 # The following way of writing the cache mishandles newlines in values,
2533 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2534 eval ac_val=\$$ac_var
2538 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2539 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2542 _ | IFS | as_nl) ;; #(
2543 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2544 *) { eval $ac_var=; unset $ac_var;} ;;
2549 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2550 *${as_nl}ac_space=\ *)
2552 "s/'\''/'\''\\\\'\'''\''/g;
2553 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2556 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2563 $as_echo "## ----------------- ##
2564 ## Output variables. ##
2565 ## ----------------- ##"
2567 for ac_var in $ac_subst_vars
2569 eval ac_val=\$$ac_var
2571 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2573 $as_echo "$ac_var='\''$ac_val'\''"
2577 if test -n "$ac_subst_files"; then
2578 $as_echo "## ------------------- ##
2579 ## File substitutions. ##
2580 ## ------------------- ##"
2582 for ac_var in $ac_subst_files
2584 eval ac_val=\$$ac_var
2586 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2588 $as_echo "$ac_var='\''$ac_val'\''"
2593 if test -s confdefs.h; then
2594 $as_echo "## ----------- ##
2601 test "$ac_signal" != 0 &&
2602 $as_echo "$as_me: caught signal $ac_signal"
2603 $as_echo "$as_me: exit $exit_status"
2605 rm -f core *.core core.conftest.* &&
2606 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2609 for ac_signal in 1 2 13 15; do
2610 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2614 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2615 rm -f -r conftest* confdefs.h
2617 $as_echo "/* confdefs.h */" > confdefs.h
2619 # Predefined preprocessor variables.
2621 cat >>confdefs.h <<_ACEOF
2622 #define PACKAGE_NAME "$PACKAGE_NAME"
2625 cat >>confdefs.h <<_ACEOF
2626 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2629 cat >>confdefs.h <<_ACEOF
2630 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2633 cat >>confdefs.h <<_ACEOF
2634 #define PACKAGE_STRING "$PACKAGE_STRING"
2637 cat >>confdefs.h <<_ACEOF
2638 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2641 cat >>confdefs.h <<_ACEOF
2642 #define PACKAGE_URL "$PACKAGE_URL"
2646 # Let the site file select an alternate cache file if it wants to.
2647 # Prefer an explicitly selected file to automatically selected ones.
2650 if test -n "$CONFIG_SITE"; then
2651 # We do not want a PATH search for config.site.
2652 case $CONFIG_SITE in #((
2653 -*) ac_site_file1=./$CONFIG_SITE;;
2654 */*) ac_site_file1=$CONFIG_SITE;;
2655 *) ac_site_file1=./$CONFIG_SITE;;
2657 elif test "x$prefix" != xNONE; then
2658 ac_site_file1=$prefix/share/config.site
2659 ac_site_file2=$prefix/etc/config.site
2661 ac_site_file1=$ac_default_prefix/share/config.site
2662 ac_site_file2=$ac_default_prefix/etc/config.site
2664 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2666 test "x$ac_site_file" = xNONE && continue
2667 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2668 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2669 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2670 sed 's/^/| /' "$ac_site_file" >&5
2672 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2673 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2674 as_fn_error $? "failed to load site script $ac_site_file
2675 See \`config.log' for more details" "$LINENO" 5; }
2679 if test -r "$cache_file"; then
2680 # Some versions of bash will fail to source /dev/null (special files
2681 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2682 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2683 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2684 $as_echo "$as_me: loading cache $cache_file" >&6;}
2686 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2687 *) . "./$cache_file";;
2691 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2692 $as_echo "$as_me: creating cache $cache_file" >&6;}
2696 gt_needs="$gt_needs "
2697 as_fn_append ac_header_list " stdlib.h"
2698 as_fn_append ac_header_list " unistd.h"
2699 as_fn_append ac_header_list " sys/param.h"
2700 as_fn_append ac_func_list " symlink"
2701 # Check that the precious variables saved in the cache have kept the same
2703 ac_cache_corrupted=false
2704 for ac_var in $ac_precious_vars; do
2705 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2706 eval ac_new_set=\$ac_env_${ac_var}_set
2707 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2708 eval ac_new_val=\$ac_env_${ac_var}_value
2709 case $ac_old_set,$ac_new_set in
2711 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2712 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2713 ac_cache_corrupted=: ;;
2715 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2716 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2717 ac_cache_corrupted=: ;;
2720 if test "x$ac_old_val" != "x$ac_new_val"; then
2721 # differences in whitespace do not lead to failure.
2722 ac_old_val_w=`echo x $ac_old_val`
2723 ac_new_val_w=`echo x $ac_new_val`
2724 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2725 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2726 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2727 ac_cache_corrupted=:
2729 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2730 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2731 eval $ac_var=\$ac_old_val
2733 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2734 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2735 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2736 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2739 # Pass precious variables to config.status.
2740 if test "$ac_new_set" = set; then
2742 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2743 *) ac_arg=$ac_var=$ac_new_val ;;
2745 case " $ac_configure_args " in
2746 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2747 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2751 if $ac_cache_corrupted; then
2752 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2753 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2754 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2755 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2756 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2758 ## -------------------- ##
2759 ## Main body of script. ##
2760 ## -------------------- ##
2763 ac_cpp='$CPP $CPPFLAGS'
2764 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2765 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2766 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2771 for ac_dir in config "$srcdir"/config; do
2772 if test -f "$ac_dir/install-sh"; then
2774 ac_install_sh="$ac_aux_dir/install-sh -c"
2776 elif test -f "$ac_dir/install.sh"; then
2778 ac_install_sh="$ac_aux_dir/install.sh -c"
2780 elif test -f "$ac_dir/shtool"; then
2782 ac_install_sh="$ac_aux_dir/shtool install -c"
2786 if test -z "$ac_aux_dir"; then
2787 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2790 # These three variables are undocumented and unsupported,
2791 # and are intended to be withdrawn in a future Autoconf release.
2792 # They can cause serious problems if a builder's source tree is in a directory
2793 # whose full name contains unusual characters.
2794 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2795 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2796 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2799 ac_config_headers="$ac_config_headers lib/config.h"
2805 E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \
2806 | awk '{print $3}' | tr \" " " | awk '{print $1}'`
2807 E2FSPROGS_DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
2808 | tr \" " " | awk '{print $1}'`
2809 E2FSPROGS_DAY=$(echo $E2FSPROGS_DATE | awk -F- '{print $1}' | sed -e '/^[1-9]$/s/^/0/')
2810 MONTH=`echo $E2FSPROGS_DATE | awk -F- '{print $2}'`
2811 YEAR=`echo $E2FSPROGS_DATE | awk -F- '{print $3}'`
2813 if expr $YEAR ">" 1900 > /dev/null ; then
2814 E2FSPROGS_YEAR=$YEAR
2815 elif expr $YEAR ">" 90 >/dev/null ; then
2816 E2FSPROGS_YEAR=19$YEAR
2818 E2FSPROGS_YEAR=20$YEAR
2822 Jan) MONTH_NUM=01; E2FSPROGS_MONTH="January" ;;
2823 Feb) MONTH_NUM=02; E2FSPROGS_MONTH="February" ;;
2824 Mar) MONTH_NUM=03; E2FSPROGS_MONTH="March" ;;
2825 Apr) MONTH_NUM=04; E2FSPROGS_MONTH="April" ;;
2826 May) MONTH_NUM=05; E2FSPROGS_MONTH="May" ;;
2827 Jun) MONTH_NUM=06; E2FSPROGS_MONTH="June" ;;
2828 Jul) MONTH_NUM=07; E2FSPROGS_MONTH="July" ;;
2829 Aug) MONTH_NUM=08; E2FSPROGS_MONTH="August" ;;
2830 Sep) MONTH_NUM=09; E2FSPROGS_MONTH="September" ;;
2831 Oct) MONTH_NUM=10; E2FSPROGS_MONTH="October" ;;
2832 Nov) MONTH_NUM=11; E2FSPROGS_MONTH="November" ;;
2833 Dec) MONTH_NUM=12; E2FSPROGS_MONTH="December" ;;
2834 *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unknown month $MONTH??" >&5
2835 $as_echo "$as_me: WARNING: Unknown month $MONTH??" >&2;} ;;
2838 base_ver=`echo $E2FSPROGS_VERSION | \
2839 sed -e 's/-WIP//' -e 's/pre-//' -e 's/-PLUS//'`
2841 date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY}
2843 case $E2FSPROGS_VERSION in
2845 E2FSPROGS_PKGVER="$base_ver~WIP.$date_spec"
2848 E2FSPROGS_PKGVER="$base_ver"
2852 unset DATE MONTH YEAR base_ver pre_vers date_spec
2853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&5
2854 $as_echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&6; }
2855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&5
2856 $as_echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&6; }
2865 # Check whether --with-diet-libc was given.
2866 if test "${with_diet_libc+set}" = set; then :
2867 withval=$with_diet_libc; CC="diet cc -nostdinc"
2873 LIBS="$LIBS -lcompat"
2875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: CC=$CC" >&5
2876 $as_echo "CC=$CC" >&6; }
2878 # Make sure we can run config.sub.
2879 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2880 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2883 $as_echo_n "checking build system type... " >&6; }
2884 if ${ac_cv_build+:} false; then :
2885 $as_echo_n "(cached) " >&6
2887 ac_build_alias=$build_alias
2888 test "x$ac_build_alias" = x &&
2889 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2890 test "x$ac_build_alias" = x &&
2891 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2892 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2893 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2897 $as_echo "$ac_cv_build" >&6; }
2898 case $ac_cv_build in
2900 *) as_fn_error $? "invalid value of canonical build" "$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 $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2917 $as_echo_n "checking host system type... " >&6; }
2918 if ${ac_cv_host+:} false; then :
2919 $as_echo_n "(cached) " >&6
2921 if test "x$host_alias" = x; then
2922 ac_cv_host=$ac_cv_build
2924 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2925 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2930 $as_echo "$ac_cv_host" >&6; }
2933 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2936 ac_save_IFS=$IFS; IFS='-'
2942 # Remember, the first character of IFS is used to create $*,
2943 # except with old shells:
2946 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2951 ac_cpp='$CPP $CPPFLAGS'
2952 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2953 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2954 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2955 if test -n "$ac_tool_prefix"; then
2956 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2957 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2959 $as_echo_n "checking for $ac_word... " >&6; }
2960 if ${ac_cv_prog_CC+:} false; then :
2961 $as_echo_n "(cached) " >&6
2963 if test -n "$CC"; then
2964 ac_cv_prog_CC="$CC" # Let the user override the test.
2966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2970 test -z "$as_dir" && as_dir=.
2971 for ac_exec_ext in '' $ac_executable_extensions; do
2972 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2973 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2984 if test -n "$CC"; then
2985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2986 $as_echo "$CC" >&6; }
2988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2989 $as_echo "no" >&6; }
2994 if test -z "$ac_cv_prog_CC"; then
2996 # Extract the first word of "gcc", so it can be a program name with args.
2997 set dummy gcc; ac_word=$2
2998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2999 $as_echo_n "checking for $ac_word... " >&6; }
3000 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3001 $as_echo_n "(cached) " >&6
3003 if test -n "$ac_ct_CC"; then
3004 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3010 test -z "$as_dir" && as_dir=.
3011 for ac_exec_ext in '' $ac_executable_extensions; do
3012 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3013 ac_cv_prog_ac_ct_CC="gcc"
3014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3023 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3024 if test -n "$ac_ct_CC"; then
3025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3026 $as_echo "$ac_ct_CC" >&6; }
3028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3029 $as_echo "no" >&6; }
3032 if test "x$ac_ct_CC" = x; then
3035 case $cross_compiling:$ac_tool_warned in
3037 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3038 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3039 ac_tool_warned=yes ;;
3047 if test -z "$CC"; then
3048 if test -n "$ac_tool_prefix"; then
3049 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3050 set dummy ${ac_tool_prefix}cc; ac_word=$2
3051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3052 $as_echo_n "checking for $ac_word... " >&6; }
3053 if ${ac_cv_prog_CC+:} false; then :
3054 $as_echo_n "(cached) " >&6
3056 if test -n "$CC"; then
3057 ac_cv_prog_CC="$CC" # Let the user override the test.
3059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3063 test -z "$as_dir" && as_dir=.
3064 for ac_exec_ext in '' $ac_executable_extensions; do
3065 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3066 ac_cv_prog_CC="${ac_tool_prefix}cc"
3067 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3077 if test -n "$CC"; then
3078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3079 $as_echo "$CC" >&6; }
3081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3082 $as_echo "no" >&6; }
3088 if test -z "$CC"; then
3089 # Extract the first word of "cc", so it can be a program name with args.
3090 set dummy cc; ac_word=$2
3091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3092 $as_echo_n "checking for $ac_word... " >&6; }
3093 if ${ac_cv_prog_CC+:} false; then :
3094 $as_echo_n "(cached) " >&6
3096 if test -n "$CC"; then
3097 ac_cv_prog_CC="$CC" # Let the user override the test.
3100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3104 test -z "$as_dir" && as_dir=.
3105 for ac_exec_ext in '' $ac_executable_extensions; do
3106 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3107 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3108 ac_prog_rejected=yes
3112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3119 if test $ac_prog_rejected = yes; then
3120 # We found a bogon in the path, so make sure we never use it.
3121 set dummy $ac_cv_prog_CC
3123 if test $# != 0; then
3124 # We chose a different compiler from the bogus one.
3125 # However, it has the same basename, so the bogon will be chosen
3126 # first if we set CC to just the basename; use the full file name.
3128 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3134 if test -n "$CC"; then
3135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3136 $as_echo "$CC" >&6; }
3138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3139 $as_echo "no" >&6; }
3144 if test -z "$CC"; then
3145 if test -n "$ac_tool_prefix"; then
3146 for ac_prog in cl.exe
3148 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3149 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3151 $as_echo_n "checking for $ac_word... " >&6; }
3152 if ${ac_cv_prog_CC+:} false; then :
3153 $as_echo_n "(cached) " >&6
3155 if test -n "$CC"; then
3156 ac_cv_prog_CC="$CC" # Let the user override the test.
3158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3162 test -z "$as_dir" && as_dir=.
3163 for ac_exec_ext in '' $ac_executable_extensions; do
3164 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3165 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3166 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3176 if test -n "$CC"; then
3177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3178 $as_echo "$CC" >&6; }
3180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3181 $as_echo "no" >&6; }
3185 test -n "$CC" && break
3188 if test -z "$CC"; then
3190 for ac_prog in cl.exe
3192 # Extract the first word of "$ac_prog", so it can be a program name with args.
3193 set dummy $ac_prog; ac_word=$2
3194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3195 $as_echo_n "checking for $ac_word... " >&6; }
3196 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3197 $as_echo_n "(cached) " >&6
3199 if test -n "$ac_ct_CC"; then
3200 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3206 test -z "$as_dir" && as_dir=.
3207 for ac_exec_ext in '' $ac_executable_extensions; do
3208 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3209 ac_cv_prog_ac_ct_CC="$ac_prog"
3210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3219 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3220 if test -n "$ac_ct_CC"; then
3221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3222 $as_echo "$ac_ct_CC" >&6; }
3224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3225 $as_echo "no" >&6; }
3229 test -n "$ac_ct_CC" && break
3232 if test "x$ac_ct_CC" = x; then
3235 case $cross_compiling:$ac_tool_warned in
3237 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3238 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3239 ac_tool_warned=yes ;;
3248 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3249 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3250 as_fn_error $? "no acceptable C compiler found in \$PATH
3251 See \`config.log' for more details" "$LINENO" 5; }
3253 # Provide some information about the compiler.
3254 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3257 for ac_option in --version -v -V -qversion; do
3258 { { ac_try="$ac_compiler $ac_option >&5"
3260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3261 *) ac_try_echo=$ac_try;;
3263 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3264 $as_echo "$ac_try_echo"; } >&5
3265 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3267 if test -s conftest.err; then
3269 ... rest of stderr output deleted ...
3270 10q' conftest.err >conftest.er1
3271 cat conftest.er1 >&5
3273 rm -f conftest.er1 conftest.err
3274 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3275 test $ac_status = 0; }
3278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3279 /* end confdefs.h. */
3289 ac_clean_files_save=$ac_clean_files
3290 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3291 # Try to create an executable without -o first, disregard a.out.
3292 # It will help us diagnose broken compilers, and finding out an intuition
3294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3295 $as_echo_n "checking whether the C compiler works... " >&6; }
3296 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3298 # The possible output files:
3299 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3302 for ac_file in $ac_files
3305 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3306 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3311 if { { ac_try="$ac_link_default"
3313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3314 *) ac_try_echo=$ac_try;;
3316 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3317 $as_echo "$ac_try_echo"; } >&5
3318 (eval "$ac_link_default") 2>&5
3320 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3321 test $ac_status = 0; }; then :
3322 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3323 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3324 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3325 # so that the user can short-circuit this test for compilers unknown to
3327 for ac_file in $ac_files ''
3329 test -f "$ac_file" || continue
3331 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3334 # We found the default executable, but exeext='' is most
3338 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3340 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3342 # We set ac_cv_exeext here because the later test for it is not
3343 # safe: cross compilers may not add the suffix if given an `-o'
3344 # argument, so we may need to know it at that point already.
3345 # Even if this section looks crufty: it has the advantage of
3352 test "$ac_cv_exeext" = no && ac_cv_exeext=
3357 if test -z "$ac_file"; then :
3358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3359 $as_echo "no" >&6; }
3360 $as_echo "$as_me: failed program was:" >&5
3361 sed 's/^/| /' conftest.$ac_ext >&5
3363 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3364 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3365 as_fn_error 77 "C compiler cannot create executables
3366 See \`config.log' for more details" "$LINENO" 5; }
3368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3369 $as_echo "yes" >&6; }
3371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3372 $as_echo_n "checking for C compiler default output file name... " >&6; }
3373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3374 $as_echo "$ac_file" >&6; }
3375 ac_exeext=$ac_cv_exeext
3377 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3378 ac_clean_files=$ac_clean_files_save
3379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3380 $as_echo_n "checking for suffix of executables... " >&6; }
3381 if { { ac_try="$ac_link"
3383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3384 *) ac_try_echo=$ac_try;;
3386 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3387 $as_echo "$ac_try_echo"; } >&5
3388 (eval "$ac_link") 2>&5
3390 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3391 test $ac_status = 0; }; then :
3392 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3393 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3394 # work properly (i.e., refer to `conftest.exe'), while it won't with
3396 for ac_file in conftest.exe conftest conftest.*; do
3397 test -f "$ac_file" || continue
3399 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3400 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3406 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3407 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3408 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3409 See \`config.log' for more details" "$LINENO" 5; }
3411 rm -f conftest conftest$ac_cv_exeext
3412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3413 $as_echo "$ac_cv_exeext" >&6; }
3415 rm -f conftest.$ac_ext
3416 EXEEXT=$ac_cv_exeext
3418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3419 /* end confdefs.h. */
3424 FILE *f = fopen ("conftest.out", "w");
3425 return ferror (f) || fclose (f) != 0;
3431 ac_clean_files="$ac_clean_files conftest.out"
3432 # Check that the compiler produces executables we can run. If not, either
3433 # the compiler is broken, or we cross compile.
3434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3435 $as_echo_n "checking whether we are cross compiling... " >&6; }
3436 if test "$cross_compiling" != yes; then
3437 { { ac_try="$ac_link"
3439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3440 *) ac_try_echo=$ac_try;;
3442 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3443 $as_echo "$ac_try_echo"; } >&5
3444 (eval "$ac_link") 2>&5
3446 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3447 test $ac_status = 0; }
3448 if { ac_try='./conftest$ac_cv_exeext'
3449 { { case "(($ac_try" in
3450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3451 *) ac_try_echo=$ac_try;;
3453 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3454 $as_echo "$ac_try_echo"; } >&5
3455 (eval "$ac_try") 2>&5
3457 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3458 test $ac_status = 0; }; }; then
3461 if test "$cross_compiling" = maybe; then
3464 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3465 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3466 as_fn_error $? "cannot run C compiled programs.
3467 If you meant to cross compile, use \`--host'.
3468 See \`config.log' for more details" "$LINENO" 5; }
3472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3473 $as_echo "$cross_compiling" >&6; }
3475 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3476 ac_clean_files=$ac_clean_files_save
3477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3478 $as_echo_n "checking for suffix of object files... " >&6; }
3479 if ${ac_cv_objext+:} false; then :
3480 $as_echo_n "(cached) " >&6
3482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3483 /* end confdefs.h. */
3493 rm -f conftest.o conftest.obj
3494 if { { ac_try="$ac_compile"
3496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3497 *) ac_try_echo=$ac_try;;
3499 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3500 $as_echo "$ac_try_echo"; } >&5
3501 (eval "$ac_compile") 2>&5
3503 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3504 test $ac_status = 0; }; then :
3505 for ac_file in conftest.o conftest.obj conftest.*; do
3506 test -f "$ac_file" || continue;
3508 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3509 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3514 $as_echo "$as_me: failed program was:" >&5
3515 sed 's/^/| /' conftest.$ac_ext >&5
3517 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3518 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3519 as_fn_error $? "cannot compute suffix of object files: cannot compile
3520 See \`config.log' for more details" "$LINENO" 5; }
3522 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3525 $as_echo "$ac_cv_objext" >&6; }
3526 OBJEXT=$ac_cv_objext
3528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3529 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3530 if ${ac_cv_c_compiler_gnu+:} false; then :
3531 $as_echo_n "(cached) " >&6
3533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3534 /* end confdefs.h. */
3547 if ac_fn_c_try_compile "$LINENO"; then :
3552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3553 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3557 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3558 if test $ac_compiler_gnu = yes; then
3563 ac_test_CFLAGS=${CFLAGS+set}
3564 ac_save_CFLAGS=$CFLAGS
3565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3566 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3567 if ${ac_cv_prog_cc_g+:} false; then :
3568 $as_echo_n "(cached) " >&6
3570 ac_save_c_werror_flag=$ac_c_werror_flag
3571 ac_c_werror_flag=yes
3574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3575 /* end confdefs.h. */
3585 if ac_fn_c_try_compile "$LINENO"; then :
3589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3590 /* end confdefs.h. */
3600 if ac_fn_c_try_compile "$LINENO"; then :
3603 ac_c_werror_flag=$ac_save_c_werror_flag
3605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3606 /* end confdefs.h. */
3616 if ac_fn_c_try_compile "$LINENO"; then :
3619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3624 ac_c_werror_flag=$ac_save_c_werror_flag
3626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3627 $as_echo "$ac_cv_prog_cc_g" >&6; }
3628 if test "$ac_test_CFLAGS" = set; then
3629 CFLAGS=$ac_save_CFLAGS
3630 elif test $ac_cv_prog_cc_g = yes; then
3631 if test "$GCC" = yes; then
3637 if test "$GCC" = yes; then
3643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3644 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3645 if ${ac_cv_prog_cc_c89+:} false; then :
3646 $as_echo_n "(cached) " >&6
3648 ac_cv_prog_cc_c89=no
3650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3651 /* end confdefs.h. */
3655 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3656 struct buf { int x; };
3657 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3658 static char *e (p, i)
3664 static char *f (char * (*g) (char **, int), char **p, ...)
3669 s = g (p, va_arg (v,int));
3674 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3675 function prototypes and stuff, but not '\xHH' hex character constants.
3676 These don't provoke an error unfortunately, instead are silently treated
3677 as 'x'. The following induces an error, until -std is added to get
3678 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3679 array size at least. It's necessary to write '\x00'==0 to get something
3680 that's true only with -std. */
3681 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3683 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3684 inside strings and character constants. */
3686 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3688 int test (int i, double x);
3689 struct s1 {int (*f) (int a);};
3690 struct s2 {int (*f) (double a);};
3691 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3697 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3702 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3703 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3705 CC="$ac_save_CC $ac_arg"
3706 if ac_fn_c_try_compile "$LINENO"; then :
3707 ac_cv_prog_cc_c89=$ac_arg
3709 rm -f core conftest.err conftest.$ac_objext
3710 test "x$ac_cv_prog_cc_c89" != "xno" && break
3712 rm -f conftest.$ac_ext
3717 case "x$ac_cv_prog_cc_c89" in
3719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3720 $as_echo "none needed" >&6; } ;;
3722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3723 $as_echo "unsupported" >&6; } ;;
3725 CC="$CC $ac_cv_prog_cc_c89"
3726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3727 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3729 if test "x$ac_cv_prog_cc_c89" != xno; then :
3734 ac_cpp='$CPP $CPPFLAGS'
3735 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3736 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3737 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
3741 $as_echo_n "checking for dlopen in -ldl... " >&6; }
3742 if ${ac_cv_lib_dl_dlopen+:} false; then :
3743 $as_echo_n "(cached) " >&6
3745 ac_check_lib_save_LIBS=$LIBS
3747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3748 /* end confdefs.h. */
3750 /* Override any GCC internal prototype to avoid an error.
3751 Use char because int might match the return type of a GCC
3752 builtin and then its argument prototype would still apply. */
3765 if ac_fn_c_try_link "$LINENO"; then :
3766 ac_cv_lib_dl_dlopen=yes
3768 ac_cv_lib_dl_dlopen=no
3770 rm -f core conftest.err conftest.$ac_objext \
3771 conftest$ac_exeext conftest.$ac_ext
3772 LIBS=$ac_check_lib_save_LIBS
3774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
3775 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
3776 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
3782 # Check whether --with-cc was given.
3783 if test "${with_cc+set}" = set; then :
3784 withval=$with_cc; as_fn_error $? "--with-cc no longer supported; use CC= instead" "$LINENO" 5
3788 # Check whether --with-ccopts was given.
3789 if test "${with_ccopts+set}" = set; then :
3790 withval=$with_ccopts; as_fn_error $? "--with-ccopts no longer supported; use CFLAGS= instead" "$LINENO" 5
3794 # Check whether --with-ldopts was given.
3795 if test "${with_ldopts+set}" = set; then :
3796 withval=$with_ldopts; as_fn_error $? "--with-ldopts no longer supported; use LDFLAGS= instead" "$LINENO" 5
3800 ac_cpp='$CPP $CPPFLAGS'
3801 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3802 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3803 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3804 if test -n "$ac_tool_prefix"; then
3805 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3806 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3808 $as_echo_n "checking for $ac_word... " >&6; }
3809 if ${ac_cv_prog_CC+:} false; then :
3810 $as_echo_n "(cached) " >&6
3812 if test -n "$CC"; then
3813 ac_cv_prog_CC="$CC" # Let the user override the test.
3815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3819 test -z "$as_dir" && as_dir=.
3820 for ac_exec_ext in '' $ac_executable_extensions; do
3821 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3822 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3833 if test -n "$CC"; then
3834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3835 $as_echo "$CC" >&6; }
3837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3838 $as_echo "no" >&6; }
3843 if test -z "$ac_cv_prog_CC"; then
3845 # Extract the first word of "gcc", so it can be a program name with args.
3846 set dummy gcc; ac_word=$2
3847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3848 $as_echo_n "checking for $ac_word... " >&6; }
3849 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3850 $as_echo_n "(cached) " >&6
3852 if test -n "$ac_ct_CC"; then
3853 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3859 test -z "$as_dir" && as_dir=.
3860 for ac_exec_ext in '' $ac_executable_extensions; do
3861 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3862 ac_cv_prog_ac_ct_CC="gcc"
3863 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3872 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3873 if test -n "$ac_ct_CC"; then
3874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3875 $as_echo "$ac_ct_CC" >&6; }
3877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3878 $as_echo "no" >&6; }
3881 if test "x$ac_ct_CC" = x; then
3884 case $cross_compiling:$ac_tool_warned in
3886 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3887 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3888 ac_tool_warned=yes ;;
3896 if test -z "$CC"; then
3897 if test -n "$ac_tool_prefix"; then
3898 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3899 set dummy ${ac_tool_prefix}cc; ac_word=$2
3900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3901 $as_echo_n "checking for $ac_word... " >&6; }
3902 if ${ac_cv_prog_CC+:} false; then :
3903 $as_echo_n "(cached) " >&6
3905 if test -n "$CC"; then
3906 ac_cv_prog_CC="$CC" # Let the user override the test.
3908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3912 test -z "$as_dir" && as_dir=.
3913 for ac_exec_ext in '' $ac_executable_extensions; do
3914 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3915 ac_cv_prog_CC="${ac_tool_prefix}cc"
3916 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3926 if test -n "$CC"; then
3927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3928 $as_echo "$CC" >&6; }
3930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3931 $as_echo "no" >&6; }
3937 if test -z "$CC"; then
3938 # Extract the first word of "cc", so it can be a program name with args.
3939 set dummy cc; ac_word=$2
3940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3941 $as_echo_n "checking for $ac_word... " >&6; }
3942 if ${ac_cv_prog_CC+:} false; then :
3943 $as_echo_n "(cached) " >&6
3945 if test -n "$CC"; then
3946 ac_cv_prog_CC="$CC" # Let the user override the test.
3949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3953 test -z "$as_dir" && as_dir=.
3954 for ac_exec_ext in '' $ac_executable_extensions; do
3955 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3956 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3957 ac_prog_rejected=yes
3961 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3968 if test $ac_prog_rejected = yes; then
3969 # We found a bogon in the path, so make sure we never use it.
3970 set dummy $ac_cv_prog_CC
3972 if test $# != 0; then
3973 # We chose a different compiler from the bogus one.
3974 # However, it has the same basename, so the bogon will be chosen
3975 # first if we set CC to just the basename; use the full file name.
3977 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3983 if test -n "$CC"; then
3984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3985 $as_echo "$CC" >&6; }
3987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3988 $as_echo "no" >&6; }
3993 if test -z "$CC"; then
3994 if test -n "$ac_tool_prefix"; then
3995 for ac_prog in cl.exe
3997 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3998 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4000 $as_echo_n "checking for $ac_word... " >&6; }
4001 if ${ac_cv_prog_CC+:} false; then :
4002 $as_echo_n "(cached) " >&6
4004 if test -n "$CC"; then
4005 ac_cv_prog_CC="$CC" # Let the user override the test.
4007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4011 test -z "$as_dir" && as_dir=.
4012 for ac_exec_ext in '' $ac_executable_extensions; do
4013 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4014 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4015 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4025 if test -n "$CC"; then
4026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4027 $as_echo "$CC" >&6; }
4029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4030 $as_echo "no" >&6; }
4034 test -n "$CC" && break
4037 if test -z "$CC"; then
4039 for ac_prog in cl.exe
4041 # Extract the first word of "$ac_prog", so it can be a program name with args.
4042 set dummy $ac_prog; ac_word=$2
4043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4044 $as_echo_n "checking for $ac_word... " >&6; }
4045 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4046 $as_echo_n "(cached) " >&6
4048 if test -n "$ac_ct_CC"; then
4049 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4055 test -z "$as_dir" && as_dir=.
4056 for ac_exec_ext in '' $ac_executable_extensions; do
4057 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4058 ac_cv_prog_ac_ct_CC="$ac_prog"
4059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4068 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4069 if test -n "$ac_ct_CC"; then
4070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4071 $as_echo "$ac_ct_CC" >&6; }
4073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4074 $as_echo "no" >&6; }
4078 test -n "$ac_ct_CC" && break
4081 if test "x$ac_ct_CC" = x; then
4084 case $cross_compiling:$ac_tool_warned in
4086 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4087 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4088 ac_tool_warned=yes ;;
4097 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4098 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4099 as_fn_error $? "no acceptable C compiler found in \$PATH
4100 See \`config.log' for more details" "$LINENO" 5; }
4102 # Provide some information about the compiler.
4103 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4106 for ac_option in --version -v -V -qversion; do
4107 { { ac_try="$ac_compiler $ac_option >&5"
4109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4110 *) ac_try_echo=$ac_try;;
4112 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4113 $as_echo "$ac_try_echo"; } >&5
4114 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4116 if test -s conftest.err; then
4118 ... rest of stderr output deleted ...
4119 10q' conftest.err >conftest.er1
4120 cat conftest.er1 >&5
4122 rm -f conftest.er1 conftest.err
4123 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4124 test $ac_status = 0; }
4127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4128 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4129 if ${ac_cv_c_compiler_gnu+:} false; then :
4130 $as_echo_n "(cached) " >&6
4132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4133 /* end confdefs.h. */
4146 if ac_fn_c_try_compile "$LINENO"; then :
4151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4152 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4156 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4157 if test $ac_compiler_gnu = yes; then
4162 ac_test_CFLAGS=${CFLAGS+set}
4163 ac_save_CFLAGS=$CFLAGS
4164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4165 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4166 if ${ac_cv_prog_cc_g+:} false; then :
4167 $as_echo_n "(cached) " >&6
4169 ac_save_c_werror_flag=$ac_c_werror_flag
4170 ac_c_werror_flag=yes
4173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4174 /* end confdefs.h. */
4184 if ac_fn_c_try_compile "$LINENO"; then :
4188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4189 /* end confdefs.h. */
4199 if ac_fn_c_try_compile "$LINENO"; then :
4202 ac_c_werror_flag=$ac_save_c_werror_flag
4204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4205 /* end confdefs.h. */
4215 if ac_fn_c_try_compile "$LINENO"; then :
4218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4223 ac_c_werror_flag=$ac_save_c_werror_flag
4225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4226 $as_echo "$ac_cv_prog_cc_g" >&6; }
4227 if test "$ac_test_CFLAGS" = set; then
4228 CFLAGS=$ac_save_CFLAGS
4229 elif test $ac_cv_prog_cc_g = yes; then
4230 if test "$GCC" = yes; then
4236 if test "$GCC" = yes; then
4242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4243 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4244 if ${ac_cv_prog_cc_c89+:} false; then :
4245 $as_echo_n "(cached) " >&6
4247 ac_cv_prog_cc_c89=no
4249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4250 /* end confdefs.h. */
4254 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4255 struct buf { int x; };
4256 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4257 static char *e (p, i)
4263 static char *f (char * (*g) (char **, int), char **p, ...)
4268 s = g (p, va_arg (v,int));
4273 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4274 function prototypes and stuff, but not '\xHH' hex character constants.
4275 These don't provoke an error unfortunately, instead are silently treated
4276 as 'x'. The following induces an error, until -std is added to get
4277 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4278 array size at least. It's necessary to write '\x00'==0 to get something
4279 that's true only with -std. */
4280 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4282 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4283 inside strings and character constants. */
4285 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4287 int test (int i, double x);
4288 struct s1 {int (*f) (int a);};
4289 struct s2 {int (*f) (double a);};
4290 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4296 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4301 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4302 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4304 CC="$ac_save_CC $ac_arg"
4305 if ac_fn_c_try_compile "$LINENO"; then :
4306 ac_cv_prog_cc_c89=$ac_arg
4308 rm -f core conftest.err conftest.$ac_objext
4309 test "x$ac_cv_prog_cc_c89" != "xno" && break
4311 rm -f conftest.$ac_ext
4316 case "x$ac_cv_prog_cc_c89" in
4318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4319 $as_echo "none needed" >&6; } ;;
4321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4322 $as_echo "unsupported" >&6; } ;;
4324 CC="$CC $ac_cv_prog_cc_c89"
4325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4326 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4328 if test "x$ac_cv_prog_cc_c89" != xno; then :
4333 ac_cpp='$CPP $CPPFLAGS'
4334 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4335 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4336 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4338 if test "$GCC" = yes; then
4339 RDYNAMIC="-rdynamic"
4343 ac_cpp='$CPP $CPPFLAGS'
4344 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4345 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4346 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4348 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4349 # On Suns, sometimes $CPP names a directory.
4350 if test -n "$CPP" && test -d "$CPP"; then
4353 if test -z "$CPP"; then
4354 if ${ac_cv_prog_CPP+:} false; then :
4355 $as_echo_n "(cached) " >&6
4357 # Double quotes because CPP needs to be expanded
4358 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4361 for ac_c_preproc_warn_flag in '' yes
4363 # Use a header file that comes with gcc, so configuring glibc
4364 # with a fresh cross-compiler works.
4365 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4366 # <limits.h> exists even on freestanding compilers.
4367 # On the NeXT, cc -E runs the code through the compiler's parser,
4368 # not just through cpp. "Syntax error" is here to catch this case.
4369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4370 /* end confdefs.h. */
4372 # include <limits.h>
4374 # include <assert.h>
4378 if ac_fn_c_try_cpp "$LINENO"; then :
4381 # Broken: fails on valid input.
4384 rm -f conftest.err conftest.i conftest.$ac_ext
4386 # OK, works on sane cases. Now check whether nonexistent headers
4387 # can be detected and how.
4388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4389 /* end confdefs.h. */
4390 #include <ac_nonexistent.h>
4392 if ac_fn_c_try_cpp "$LINENO"; then :
4393 # Broken: success on invalid input.
4396 # Passes both tests.
4400 rm -f conftest.err conftest.i conftest.$ac_ext
4403 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4404 rm -f conftest.i conftest.err conftest.$ac_ext
4405 if $ac_preproc_ok; then :
4417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4418 $as_echo "$CPP" >&6; }
4420 for ac_c_preproc_warn_flag in '' yes
4422 # Use a header file that comes with gcc, so configuring glibc
4423 # with a fresh cross-compiler works.
4424 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4425 # <limits.h> exists even on freestanding compilers.
4426 # On the NeXT, cc -E runs the code through the compiler's parser,
4427 # not just through cpp. "Syntax error" is here to catch this case.
4428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4429 /* end confdefs.h. */
4431 # include <limits.h>
4433 # include <assert.h>
4437 if ac_fn_c_try_cpp "$LINENO"; then :
4440 # Broken: fails on valid input.
4443 rm -f conftest.err conftest.i conftest.$ac_ext
4445 # OK, works on sane cases. Now check whether nonexistent headers
4446 # can be detected and how.
4447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4448 /* end confdefs.h. */
4449 #include <ac_nonexistent.h>
4451 if ac_fn_c_try_cpp "$LINENO"; then :
4452 # Broken: success on invalid input.
4455 # Passes both tests.
4459 rm -f conftest.err conftest.i conftest.$ac_ext
4462 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4463 rm -f conftest.i conftest.err conftest.$ac_ext
4464 if $ac_preproc_ok; then :
4467 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4468 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4469 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4470 See \`config.log' for more details" "$LINENO" 5; }
4474 ac_cpp='$CPP $CPPFLAGS'
4475 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4476 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4477 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for additional special compiler flags" >&5
4480 $as_echo_n "checking for additional special compiler flags... " >&6; }
4481 if test "$GCC" = yes
4484 alpha) addcflags="-mieee" ;;
4487 if test "x$addcflags" != x
4489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $addcflags" >&5
4490 $as_echo "$addcflags" >&6; }
4491 CFLAGS="$addcflags $CFLAGS"
4493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (none)" >&5
4494 $as_echo "(none)" >&6; }
4497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4498 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4499 if ${ac_cv_path_GREP+:} false; then :
4500 $as_echo_n "(cached) " >&6
4502 if test -z "$GREP"; then
4503 ac_path_GREP_found=false
4504 # Loop through the user's path and test for each of PROGNAME-LIST
4505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4506 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4509 test -z "$as_dir" && as_dir=.
4510 for ac_prog in grep ggrep; do
4511 for ac_exec_ext in '' $ac_executable_extensions; do
4512 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4513 as_fn_executable_p "$ac_path_GREP" || continue
4514 # Check for GNU ac_path_GREP and select it if it is found.
4515 # Check for GNU $ac_path_GREP
4516 case `"$ac_path_GREP" --version 2>&1` in
4518 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4521 $as_echo_n 0123456789 >"conftest.in"
4524 cat "conftest.in" "conftest.in" >"conftest.tmp"
4525 mv "conftest.tmp" "conftest.in"
4526 cp "conftest.in" "conftest.nl"
4527 $as_echo 'GREP' >> "conftest.nl"
4528 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4529 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4530 as_fn_arith $ac_count + 1 && ac_count=$as_val
4531 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4532 # Best one so far, save it but keep looking for a better one
4533 ac_cv_path_GREP="$ac_path_GREP"
4534 ac_path_GREP_max=$ac_count
4536 # 10*(2^10) chars as input seems more than enough
4537 test $ac_count -gt 10 && break
4539 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4542 $ac_path_GREP_found && break 3
4547 if test -z "$ac_cv_path_GREP"; then
4548 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4551 ac_cv_path_GREP=$GREP
4555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4556 $as_echo "$ac_cv_path_GREP" >&6; }
4557 GREP="$ac_cv_path_GREP"
4560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4561 $as_echo_n "checking for egrep... " >&6; }
4562 if ${ac_cv_path_EGREP+:} false; then :
4563 $as_echo_n "(cached) " >&6
4565 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4566 then ac_cv_path_EGREP="$GREP -E"
4568 if test -z "$EGREP"; then
4569 ac_path_EGREP_found=false
4570 # Loop through the user's path and test for each of PROGNAME-LIST
4571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4572 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4575 test -z "$as_dir" && as_dir=.
4576 for ac_prog in egrep; do
4577 for ac_exec_ext in '' $ac_executable_extensions; do
4578 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4579 as_fn_executable_p "$ac_path_EGREP" || continue
4580 # Check for GNU ac_path_EGREP and select it if it is found.
4581 # Check for GNU $ac_path_EGREP
4582 case `"$ac_path_EGREP" --version 2>&1` in
4584 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4587 $as_echo_n 0123456789 >"conftest.in"
4590 cat "conftest.in" "conftest.in" >"conftest.tmp"
4591 mv "conftest.tmp" "conftest.in"
4592 cp "conftest.in" "conftest.nl"
4593 $as_echo 'EGREP' >> "conftest.nl"
4594 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4595 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4596 as_fn_arith $ac_count + 1 && ac_count=$as_val
4597 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4598 # Best one so far, save it but keep looking for a better one
4599 ac_cv_path_EGREP="$ac_path_EGREP"
4600 ac_path_EGREP_max=$ac_count
4602 # 10*(2^10) chars as input seems more than enough
4603 test $ac_count -gt 10 && break
4605 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4608 $ac_path_EGREP_found && break 3
4613 if test -z "$ac_cv_path_EGREP"; then
4614 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4617 ac_cv_path_EGREP=$EGREP
4622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4623 $as_echo "$ac_cv_path_EGREP" >&6; }
4624 EGREP="$ac_cv_path_EGREP"
4627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4628 $as_echo_n "checking for ANSI C header files... " >&6; }
4629 if ${ac_cv_header_stdc+:} false; then :
4630 $as_echo_n "(cached) " >&6
4632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4633 /* end confdefs.h. */
4647 if ac_fn_c_try_compile "$LINENO"; then :
4648 ac_cv_header_stdc=yes
4650 ac_cv_header_stdc=no
4652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4654 if test $ac_cv_header_stdc = yes; then
4655 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4657 /* end confdefs.h. */
4661 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4662 $EGREP "memchr" >/dev/null 2>&1; then :
4665 ac_cv_header_stdc=no
4671 if test $ac_cv_header_stdc = yes; then
4672 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4674 /* end confdefs.h. */
4678 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4679 $EGREP "free" >/dev/null 2>&1; then :
4682 ac_cv_header_stdc=no
4688 if test $ac_cv_header_stdc = yes; then
4689 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4690 if test "$cross_compiling" = yes; then :
4693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4694 /* end confdefs.h. */
4697 #if ((' ' & 0x0FF) == 0x020)
4698 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4699 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4701 # define ISLOWER(c) \
4702 (('a' <= (c) && (c) <= 'i') \
4703 || ('j' <= (c) && (c) <= 'r') \
4704 || ('s' <= (c) && (c) <= 'z'))
4705 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4708 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4713 for (i = 0; i < 256; i++)
4714 if (XOR (islower (i), ISLOWER (i))
4715 || toupper (i) != TOUPPER (i))
4720 if ac_fn_c_try_run "$LINENO"; then :
4723 ac_cv_header_stdc=no
4725 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4726 conftest.$ac_objext conftest.beam conftest.$ac_ext
4731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4732 $as_echo "$ac_cv_header_stdc" >&6; }
4733 if test $ac_cv_header_stdc = yes; then
4735 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4739 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4740 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4741 inttypes.h stdint.h unistd.h
4743 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4744 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4746 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4747 cat >>confdefs.h <<_ACEOF
4748 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4757 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4758 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4765 if test "$MINIX" = yes; then
4767 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4770 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4773 $as_echo "#define _MINIX 1" >>confdefs.h
4778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4779 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4780 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4781 $as_echo_n "(cached) " >&6
4783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4784 /* end confdefs.h. */
4786 # define __EXTENSIONS__ 1
4787 $ac_includes_default
4796 if ac_fn_c_try_compile "$LINENO"; then :
4797 ac_cv_safe_to_define___extensions__=yes
4799 ac_cv_safe_to_define___extensions__=no
4801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4804 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4805 test $ac_cv_safe_to_define___extensions__ = yes &&
4806 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4808 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4810 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4812 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4814 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4821 # Check whether --with-root-prefix was given.
4822 if test "${with_root_prefix+set}" = set; then :
4823 withval=$with_root_prefix; root_prefix=$withval
4827 # Check whether --enable-maintainer-mode was given.
4828 if test "${enable_maintainer_mode+set}" = set; then :
4829 enableval=$enable_maintainer_mode; if test "$enableval" = "no"
4832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode" >&5
4833 $as_echo "Disabling maintainer mode" >&6; }
4836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling maintainer mode" >&5
4837 $as_echo "Enabling maintainer mode" >&6; }
4842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode by default" >&5
4843 $as_echo "Disabling maintainer mode by default" >&6; }
4848 # Check whether --enable-symlink-install was given.
4849 if test "${enable_symlink_install+set}" = set; then :
4850 enableval=$enable_symlink_install; if test "$enableval" = "no"
4852 LINK_INSTALL_FLAGS=-f
4853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install" >&5
4854 $as_echo "Disabling symlinks for install" >&6; }
4856 LINK_INSTALL_FLAGS=-sf
4857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for install" >&5
4858 $as_echo "Enabling symlinks for install" >&6; }
4862 LINK_INSTALL_FLAGS=-f
4863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install by default" >&5
4864 $as_echo "Disabling symlinks for install by default" >&6; }
4869 relative_symlink_defined=
4870 # Check whether --enable-relative-symlinks was given.
4871 if test "${enable_relative_symlinks+set}" = set; then :
4872 enableval=$enable_relative_symlinks; if test "$enableval" = "no"
4875 relative_symlink_defined=yes
4876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
4877 $as_echo "Disabling relative symlinks for install" >&6; }
4879 SYMLINK_RELATIVE=--relative
4880 relative_symlink_defined=yes
4881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5
4882 $as_echo "Enabling relative symlinks for install" >&6; }
4886 # Check whether --enable-symlink-relative-symlinks was given.
4887 if test "${enable_symlink_relative_symlinks+set}" = set; then :
4888 enableval=$enable_symlink_relative_symlinks; if test "$enableval" = "no"
4890 SYMLINK_RELATIVE=yes
4891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
4892 $as_echo "Disabling relative symlinks for install" >&6; }
4894 SYMLINK_RELATIVE=--relative
4895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5
4896 $as_echo "Enabling relative symlinks for install" >&6; }
4900 if test -z "$relative_symlink_defined"
4903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install by default" >&5
4904 $as_echo "Disabling relative symlinks for install by default" >&6; }
4910 # Check whether --enable-symlink-build was given.
4911 if test "${enable_symlink_build+set}" = set; then :
4912 enableval=$enable_symlink_build; if test "$enableval" = "no"
4915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build" >&5
4916 $as_echo "Disabling symlinks for build" >&6; }
4919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for build" >&5
4920 $as_echo "Enabling symlinks for build" >&6; }
4925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build by default" >&5
4926 $as_echo "Disabling symlinks for build by default" >&6; }
4931 # Check whether --enable-verbose-makecmds was given.
4932 if test "${enable_verbose_makecmds+set}" = set; then :
4933 enableval=$enable_verbose_makecmds; if test "$enableval" = "no"
4935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
4936 $as_echo "Disabling verbose make commands" >&6; }
4941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling verbose make commands" >&5
4942 $as_echo "Enabling verbose make commands" >&6; }
4949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
4950 $as_echo "Disabling verbose make commands" >&6; }
4960 E2_PKG_CONFIG_STATIC=--static
4963 # Check whether --enable-elf-shlibs was given.
4964 if test "${enable_elf_shlibs+set}" = set; then :
4965 enableval=$enable_elf_shlibs; if test "$enableval" = "no"
4968 MAKEFILE_ELF=/dev/null
4969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries" >&5
4970 $as_echo "Disabling ELF shared libraries" >&6; }
4972 E2_PKG_CONFIG_STATIC=
4974 MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
4977 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
4983 LDFLAG_DYNAMIC='-Wl,-rpath-link,$(top_builddir)/lib'
4984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling ELF shared libraries" >&5
4985 $as_echo "Enabling ELF shared libraries" >&6; }
4989 MAKEFILE_ELF=/dev/null
4991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries by default" >&5
4992 $as_echo "Disabling ELF shared libraries by default" >&6; }
4998 # Check whether --enable-bsd-shlibs was given.
4999 if test "${enable_bsd_shlibs+set}" = set; then :
5000 enableval=$enable_bsd_shlibs; if test "$enableval" = "no"
5003 MAKEFILE_BSDLIB=/dev/null
5004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries" >&5
5005 $as_echo "Disabling BSD shared libraries" >&6; }
5007 E2_PKG_CONFIG_STATIC=
5009 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
5013 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib
5017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling BSD shared libraries" >&5
5018 $as_echo "Enabling BSD shared libraries" >&6; }
5022 MAKEFILE_BSDLIB=/dev/null
5024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries by default" >&5
5025 $as_echo "Disabling BSD shared libraries by default" >&6; }
5031 # Check whether --enable-profile was given.
5032 if test "${enable_profile+set}" = set; then :
5033 enableval=$enable_profile; if test "$enableval" = "no"
5036 MAKEFILE_PROFILE=/dev/null
5037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries" >&5
5038 $as_echo "Disabling profiling libraries" >&6; }
5041 MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
5042 PROFILED_LIB_EXT=_p.a
5043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building profiling libraries" >&5
5044 $as_echo "Building profiling libraries" >&6; }
5049 MAKEFILE_PROFILE=/dev/null
5050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries by default" >&5
5051 $as_echo "Disabling profiling libraries by default" >&6; }
5057 # Check whether --enable-gcov was given.
5058 if test "${enable_gcov+set}" = set; then :
5059 enableval=$enable_gcov; if test "$enableval" = "yes"
5061 CFLAGS="-g -fprofile-arcs -ftest-coverage"
5062 LDFLAGS="-fprofile-arcs -ftest-coverage"
5063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling gcov support" >&5
5064 $as_echo "Enabling gcov support" >&6; }
5069 CFLAGS_SHLIB="${CFLAGS_SHLIB:-$CFLAGS}"
5070 CFLAGS_STLIB="${CFLAGS_STLIB:-$CFLAGS}"
5071 LDFLAGS_SHLIB=${LDFLAGS_SHLIB:-$LDFLAGS}
5072 LDFLAGS_STATIC=${LDFLAGS_STATIC:-$LDFLAGS}
5073 # Check whether --enable-hardening was given.
5074 if test "${enable_hardening+set}" = set; then :
5075 enableval=$enable_hardening; if test "$enableval" = "yes"
5077 HARDEN_CFLAGS="-D_FORTIFY_SOURCE=2 -fstack-protector-strong"
5078 HARDEN_LDFLAGS="-Wl,-z,relro -Wl,-z,now"
5079 CFLAGS="$CFLAGS $HARDEN_CFLAGS -fPIE"
5080 CFLAGS_SHLIB="$CFLAGS_SHLIB $HARDEN_CFLAGS"
5081 CFLAGS_STLIB="$CFLAGS_STLIB $HARDEN_CFLAGS -fPIE"
5082 LDFLAGS="$LDFLAGS $HARDEN_LDFLAGS -fPIE -pie"
5083 LDFLAGS_STATIC="$LDFLAGS_STATIC $HARDEN_LDFLAGS"
5084 LDFLAGS_SHLIB="$LDFLAGS_SHLIB $HARDEN_LDFLAGS"
5085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling hardening support" >&5
5086 $as_echo "Enabling hardening support" >&6; }
5096 # Check whether --enable-jbd-debug was given.
5097 if test "${enable_jbd_debug+set}" = set; then :
5098 enableval=$enable_jbd_debug; if test "$enableval" = "no"
5100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging" >&5
5101 $as_echo "Disabling journal debugging" >&6; }
5104 $as_echo "#define CONFIG_JBD_DEBUG 1" >>confdefs.h
5106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling journal debugging" >&5
5107 $as_echo "Enabling journal debugging" >&6; }
5111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging by default" >&5
5112 $as_echo "Disabling journal debugging by default" >&6; }
5116 # Check whether --enable-blkid-debug was given.
5117 if test "${enable_blkid_debug+set}" = set; then :
5118 enableval=$enable_blkid_debug; if test "$enableval" = "no"
5120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging" >&5
5121 $as_echo "Disabling blkid debugging" >&6; }
5124 $as_echo "#define CONFIG_BLKID_DEBUG 1" >>confdefs.h
5126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling blkid debugging" >&5
5127 $as_echo "Enabling blkid debugging" >&6; }
5131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging by default" >&5
5132 $as_echo "Disabling blkid debugging by default" >&6; }
5136 # Check whether --enable-testio-debug was given.
5137 if test "${enable_testio_debug+set}" = set; then :
5138 enableval=$enable_testio_debug;
5139 if test "$enableval" = "no"
5141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling testio debugging" >&5
5142 $as_echo "Disabling testio debugging" >&6; }
5146 $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
5148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging" >&5
5149 $as_echo "Enabling testio debugging" >&6; }
5153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging by default" >&5
5154 $as_echo "Enabling testio debugging by default" >&6; }
5155 $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
5169 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5170 if test -n "$ac_tool_prefix"; then
5171 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5172 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5174 $as_echo_n "checking for $ac_word... " >&6; }
5175 if ${ac_cv_path_PKG_CONFIG+:} false; then :
5176 $as_echo_n "(cached) " >&6
5180 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5187 test -z "$as_dir" && as_dir=.
5188 for ac_exec_ext in '' $ac_executable_extensions; do
5189 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5190 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5201 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5202 if test -n "$PKG_CONFIG"; then
5203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5204 $as_echo "$PKG_CONFIG" >&6; }
5206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5207 $as_echo "no" >&6; }
5212 if test -z "$ac_cv_path_PKG_CONFIG"; then
5213 ac_pt_PKG_CONFIG=$PKG_CONFIG
5214 # Extract the first word of "pkg-config", so it can be a program name with args.
5215 set dummy pkg-config; ac_word=$2
5216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5217 $as_echo_n "checking for $ac_word... " >&6; }
5218 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
5219 $as_echo_n "(cached) " >&6
5221 case $ac_pt_PKG_CONFIG in
5223 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5230 test -z "$as_dir" && as_dir=.
5231 for ac_exec_ext in '' $ac_executable_extensions; do
5232 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5233 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5234 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5244 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5245 if test -n "$ac_pt_PKG_CONFIG"; then
5246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5247 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5250 $as_echo "no" >&6; }
5253 if test "x$ac_pt_PKG_CONFIG" = x; then
5256 case $cross_compiling:$ac_tool_warned in
5258 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5259 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5260 ac_tool_warned=yes ;;
5262 PKG_CONFIG=$ac_pt_PKG_CONFIG
5265 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5269 if test -n "$PKG_CONFIG"; then
5270 _pkg_min_version=0.9.0
5271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5272 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5273 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5275 $as_echo "yes" >&6; }
5277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5278 $as_echo "no" >&6; }
5287 DEPPROFILED_LIBUUID=
5289 # Check whether --enable-libuuid was given.
5290 if test "${enable_libuuid+set}" = set; then :
5291 enableval=$enable_libuuid; if test "$enableval" = "no"
5293 if test -z "$PKG_CONFIG"; then
5294 as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5
5297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
5298 $as_echo_n "checking for uuid_generate in -luuid... " >&6; }
5299 if ${ac_cv_lib_uuid_uuid_generate+:} false; then :
5300 $as_echo_n "(cached) " >&6
5302 ac_check_lib_save_LIBS=$LIBS
5304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5305 /* end confdefs.h. */
5307 /* Override any GCC internal prototype to avoid an error.
5308 Use char because int might match the return type of a GCC
5309 builtin and then its argument prototype would still apply. */
5313 char uuid_generate ();
5317 return uuid_generate ();
5322 if ac_fn_c_try_link "$LINENO"; then :
5323 ac_cv_lib_uuid_uuid_generate=yes
5325 ac_cv_lib_uuid_uuid_generate=no
5327 rm -f core conftest.err conftest.$ac_objext \
5328 conftest$ac_exeext conftest.$ac_ext
5329 LIBS=$ac_check_lib_save_LIBS
5331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
5332 $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
5333 if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then :
5334 LIBUUID=`$PKG_CONFIG --libs uuid`;
5335 STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid`
5337 as_fn_error $? "external uuid library not found" "$LINENO" 5
5340 PROFILED_LIBUUID=$LIBUUID
5342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private uuid library" >&5
5343 $as_echo "Disabling private uuid library" >&6; }
5345 LIBUUID='$(LIB)/libuuid'$LIB_EXT
5347 STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
5348 DEPSTATIC_LIBUUID=$STATIC_LIBUUID
5349 PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
5350 DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
5351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library" >&5
5352 $as_echo "Enabling private uuid library" >&6; }
5356 if test -n "$PKG_CONFIG"; then
5357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
5358 $as_echo_n "checking for uuid_generate in -luuid... " >&6; }
5359 if ${ac_cv_lib_uuid_uuid_generate+:} false; then :
5360 $as_echo_n "(cached) " >&6
5362 ac_check_lib_save_LIBS=$LIBS
5364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5365 /* end confdefs.h. */
5367 /* Override any GCC internal prototype to avoid an error.
5368 Use char because int might match the return type of a GCC
5369 builtin and then its argument prototype would still apply. */
5373 char uuid_generate ();
5377 return uuid_generate ();
5382 if ac_fn_c_try_link "$LINENO"; then :
5383 ac_cv_lib_uuid_uuid_generate=yes
5385 ac_cv_lib_uuid_uuid_generate=no
5387 rm -f core conftest.err conftest.$ac_objext \
5388 conftest$ac_exeext conftest.$ac_ext
5389 LIBS=$ac_check_lib_save_LIBS
5391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
5392 $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
5393 if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then :
5394 LIBUUID=`$PKG_CONFIG --libs uuid`;
5395 STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid`
5399 if test -n "$LIBUUID"; then
5400 PROFILED_LIBUUID=$LIBUUID
5402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using system uuid by default" >&5
5403 $as_echo "Using system uuid by default" >&6; }
5405 LIBUUID='$(LIB)/libuuid'$LIB_EXT
5407 STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
5408 DEPSTATIC_LIBUUID=$STATIC_LIBUUID
5409 PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
5410 DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
5411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library by default" >&5
5412 $as_echo "Enabling private uuid library by default" >&6; }
5431 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5432 if test -n "$ac_tool_prefix"; then
5433 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5434 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5436 $as_echo_n "checking for $ac_word... " >&6; }
5437 if ${ac_cv_path_PKG_CONFIG+:} false; then :
5438 $as_echo_n "(cached) " >&6
5442 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5449 test -z "$as_dir" && as_dir=.
5450 for ac_exec_ext in '' $ac_executable_extensions; do
5451 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5452 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5453 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5463 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5464 if test -n "$PKG_CONFIG"; then
5465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5466 $as_echo "$PKG_CONFIG" >&6; }
5468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5469 $as_echo "no" >&6; }
5474 if test -z "$ac_cv_path_PKG_CONFIG"; then
5475 ac_pt_PKG_CONFIG=$PKG_CONFIG
5476 # Extract the first word of "pkg-config", so it can be a program name with args.
5477 set dummy pkg-config; ac_word=$2
5478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5479 $as_echo_n "checking for $ac_word... " >&6; }
5480 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
5481 $as_echo_n "(cached) " >&6
5483 case $ac_pt_PKG_CONFIG in
5485 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5492 test -z "$as_dir" && as_dir=.
5493 for ac_exec_ext in '' $ac_executable_extensions; do
5494 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5495 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5496 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5506 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5507 if test -n "$ac_pt_PKG_CONFIG"; then
5508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5509 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5512 $as_echo "no" >&6; }
5515 if test "x$ac_pt_PKG_CONFIG" = x; then
5518 case $cross_compiling:$ac_tool_warned in
5520 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5521 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5522 ac_tool_warned=yes ;;
5524 PKG_CONFIG=$ac_pt_PKG_CONFIG
5527 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5531 if test -n "$PKG_CONFIG"; then
5532 _pkg_min_version=0.9.0
5533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5534 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5535 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5537 $as_echo "yes" >&6; }
5539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5540 $as_echo "no" >&6; }
5549 DEPPROFILED_LIBBLKID=
5552 # Check whether --enable-libblkid was given.
5553 if test "${enable_libblkid+set}" = set; then :
5554 enableval=$enable_libblkid; if test "$enableval" = "no"
5556 if test -z "$PKG_CONFIG"; then
5557 as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5
5560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
5561 $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
5562 if ${ac_cv_lib_blkid_blkid_get_cache+:} false; then :
5563 $as_echo_n "(cached) " >&6
5565 ac_check_lib_save_LIBS=$LIBS
5566 LIBS="-lblkid -luuid $LIBS"
5567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5568 /* end confdefs.h. */
5570 /* Override any GCC internal prototype to avoid an error.
5571 Use char because int might match the return type of a GCC
5572 builtin and then its argument prototype would still apply. */
5576 char blkid_get_cache ();
5580 return blkid_get_cache ();
5585 if ac_fn_c_try_link "$LINENO"; then :
5586 ac_cv_lib_blkid_blkid_get_cache=yes
5588 ac_cv_lib_blkid_blkid_get_cache=no
5590 rm -f core conftest.err conftest.$ac_objext \
5591 conftest$ac_exeext conftest.$ac_ext
5592 LIBS=$ac_check_lib_save_LIBS
5594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
5595 $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
5596 if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes; then :
5597 LIBBLKID=`$PKG_CONFIG --libs blkid`;
5598 STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid`
5600 as_fn_error $? "external blkid library not found" "$LINENO" 5
5604 PROFILED_LIBBLKID=$LIBBLKID
5605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private blkid library" >&5
5606 $as_echo "Disabling private blkid library" >&6; }
5608 LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5609 DEPLIBBLKID=$LIBBLKID
5610 STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5611 DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5612 PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5613 DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
5614 $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
5616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library" >&5
5617 $as_echo "Enabling private blkid library" >&6; }
5621 if test -n "$PKG_CONFIG"; then
5622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
5623 $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
5624 if ${ac_cv_lib_blkid_blkid_get_cache+:} false; then :
5625 $as_echo_n "(cached) " >&6
5627 ac_check_lib_save_LIBS=$LIBS
5628 LIBS="-lblkid $LIBS"
5629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5630 /* end confdefs.h. */
5632 /* Override any GCC internal prototype to avoid an error.
5633 Use char because int might match the return type of a GCC
5634 builtin and then its argument prototype would still apply. */
5638 char blkid_get_cache ();
5642 return blkid_get_cache ();
5647 if ac_fn_c_try_link "$LINENO"; then :
5648 ac_cv_lib_blkid_blkid_get_cache=yes
5650 ac_cv_lib_blkid_blkid_get_cache=no
5652 rm -f core conftest.err conftest.$ac_objext \
5653 conftest$ac_exeext conftest.$ac_ext
5654 LIBS=$ac_check_lib_save_LIBS
5656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
5657 $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
5658 if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes; then :
5659 LIBBLKID=`$PKG_CONFIG --libs blkid`;
5660 STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid`
5664 if test -n "$LIBBLKID"; then
5666 PROFILED_LIBBLKID=$LIBBLKID
5667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using system blkid library by default" >&5
5668 $as_echo "Using system blkid library by default" >&6; }
5670 LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5671 DEPLIBBLKID=$LIBBLKID
5672 STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5673 DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5674 PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5675 DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
5676 $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
5678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library by default" >&5
5679 $as_echo "Enabling private blkid library by default" >&6; }
5693 # Check whether --enable-subset was given.
5694 if test "${enable_subset+set}" = set; then :
5695 enableval=$enable_subset; if test "$enableval" = "no"
5698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling subset-only build" >&5
5699 $as_echo "Disabling subset-only build" >&6; }
5702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling subset-only-build" >&5
5703 $as_echo "Enabling subset-only-build" >&6; }
5711 # Check whether --enable-backtrace was given.
5712 if test "${enable_backtrace+set}" = set; then :
5713 enableval=$enable_backtrace; if test "$enableval" = "no"
5715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling use of backtrace" >&5
5716 $as_echo "Disabling use of backtrace" >&6; }
5717 $as_echo "#define DISABLE_BACKTRACE 1" >>confdefs.h
5720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace" >&5
5721 $as_echo "Enabling use of backtrace" >&6; }
5725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace by default" >&5
5726 $as_echo "Enabling use of backtrace by default" >&6; }
5730 # Check whether --enable-debugfs was given.
5731 if test "${enable_debugfs+set}" = set; then :
5732 enableval=$enable_debugfs; if test "$enableval" = "no"
5734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling debugfs support" >&5
5735 $as_echo "Disabling debugfs support" >&6; }
5739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support" >&5
5740 $as_echo "Enabling debugfs support" >&6; }
5744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support by default" >&5
5745 $as_echo "Enabling debugfs support by default" >&6; }
5751 # Check whether --enable-imager was given.
5752 if test "${enable_imager+set}" = set; then :
5753 enableval=$enable_imager; if test "$enableval" = "no"
5755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2image support" >&5
5756 $as_echo "Disabling e2image support" >&6; }
5760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support" >&5
5761 $as_echo "Enabling e2image support" >&6; }
5765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support by default" >&5
5766 $as_echo "Enabling e2image support by default" >&6; }
5772 # Check whether --enable-resizer was given.
5773 if test "${enable_resizer+set}" = set; then :
5774 enableval=$enable_resizer; if test "$enableval" = "no"
5776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2resize support" >&5
5777 $as_echo "Disabling e2resize support" >&6; }
5781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support" >&5
5782 $as_echo "Enabling e2resize support" >&6; }
5786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support by default" >&5
5787 $as_echo "Enabling e2resize support by default" >&6; }
5793 # Check whether --enable-defrag was given.
5794 if test "${enable_defrag+set}" = set; then :
5795 enableval=$enable_defrag; if test "$enableval" = "no"
5797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support" >&5
5798 $as_echo "Disabling e4defrag support" >&6; }
5802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support" >&5
5803 $as_echo "Enabling e4defrag support" >&6; }
5807 if test -z "$WITH_DIET_LIBC"
5809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support by default" >&5
5810 $as_echo "Enabling e4defrag support by default" >&6; }
5813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support by default" >&5
5814 $as_echo "Disabling e4defrag support by default" >&6; }
5821 # Check whether --enable-fsck was given.
5822 if test "${enable_fsck+set}" = set; then :
5823 enableval=$enable_fsck; if test "$enableval" = "no"
5825 FSCK_PROG='' FSCK_MAN=''
5826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper" >&5
5827 $as_echo "Not building fsck wrapper" >&6; }
5829 FSCK_PROG=fsck FSCK_MAN=fsck.8
5830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper" >&5
5831 $as_echo "Building fsck wrapper" >&6; }
5837 FSCK_PROG='' FSCK_MAN=''
5838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper by default" >&5
5839 $as_echo "Not building fsck wrapper by default" >&6; }
5842 FSCK_PROG=fsck FSCK_MAN=fsck.8
5843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper by default" >&5
5844 $as_echo "Building fsck wrapper by default" >&6; }
5851 # Check whether --enable-e2initrd-helper was given.
5852 if test "${enable_e2initrd_helper+set}" = set; then :
5853 enableval=$enable_e2initrd_helper; if test "$enableval" = "no"
5855 E2INITRD_PROG='' E2INITRD_MAN=''
5856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building e2initrd helper" >&5
5857 $as_echo "Not building e2initrd helper" >&6; }
5859 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
5860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper" >&5
5861 $as_echo "Building e2initrd helper" >&6; }
5865 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
5866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper by default" >&5
5867 $as_echo "Building e2initrd helper by default" >&6; }
5873 # Check whether --enable-tls was given.
5874 if test "${enable_tls+set}" = set; then :
5875 enableval=$enable_tls; if test "$enableval" = "no"
5878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling thread local support" >&5
5879 $as_echo "Disabling thread local support" >&6; }
5882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling thread local support" >&5
5883 $as_echo "Enabling thread local support" >&6; }
5887 if test -n "$WITH_DIET_LIBC"
5890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Diet libc does not support thread local support" >&5
5891 $as_echo "Diet libc does not support thread local support" >&6; }
5894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Try using thread local support by default" >&5
5895 $as_echo "Try using thread local support by default" >&6; }
5900 if test "$try_tls" = "yes"
5903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread local storage (TLS) class" >&5
5904 $as_echo_n "checking for thread local storage (TLS) class... " >&6; }
5905 if ${ac_cv_tls+:} false; then :
5906 $as_echo_n "(cached) " >&6
5909 ax_tls_keywords="__thread __declspec(thread) none"
5910 for ax_tls_keyword in $ax_tls_keywords; do
5911 case $ax_tls_keyword in
5912 none) ac_cv_tls=none ; break ;;
5914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5915 /* end confdefs.h. */
5919 static $ax_tls_keyword int bar;
5930 if ac_fn_c_try_compile "$LINENO"; then :
5931 ac_cv_tls=$ax_tls_keyword ; break
5936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5943 if test "$ac_cv_tls" != "none"; then
5945 cat >>confdefs.h <<_ACEOF
5946 #define TLS $ac_cv_tls
5950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tls" >&5
5951 $as_echo "$ac_cv_tls" >&6; }
5955 # Check whether --enable-uuidd was given.
5956 if test "${enable_uuidd+set}" = set; then :
5957 enableval=$enable_uuidd; if test "$enableval" = "no"
5959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building uuidd" >&5
5960 $as_echo "Not building uuidd" >&6; }
5963 $as_echo "#define USE_UUIDD 1" >>confdefs.h
5966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd" >&5
5967 $as_echo "Building uuidd" >&6; }
5971 $as_echo "#define USE_UUIDD 1" >>confdefs.h
5973 if test -z "$UUID_CMT"
5976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd by default" >&5
5977 $as_echo "Building uuidd by default" >&6; }
5980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling uuidd by default" >&5
5981 $as_echo "Disabling uuidd by default" >&6; }
5988 # Check whether --enable-mmp was given.
5989 if test "${enable_mmp+set}" = set; then :
5990 enableval=$enable_mmp; if test "$enableval" = "no"
5992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling mmp support" >&5
5993 $as_echo "Disabling mmp support" >&6; }
5995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support" >&5
5996 $as_echo "Enabling mmp support" >&6; }
5997 $as_echo "#define CONFIG_MMP 1" >>confdefs.h
6002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support by default" >&5
6003 $as_echo "Enabling mmp support by default" >&6; }
6004 $as_echo "#define CONFIG_MMP 1" >>confdefs.h
6010 # Check whether --enable-tdb was given.
6011 if test "${enable_tdb+set}" = set; then :
6012 enableval=$enable_tdb; if test "$enableval" = "no"
6014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling tdb support" >&5
6015 $as_echo "Disabling tdb support" >&6; }
6017 TDB_MAN_COMMENT='.\"'
6019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling tdb support" >&5
6020 $as_echo "Enabling tdb support" >&6; }
6021 $as_echo "#define CONFIG_TDB 1" >>confdefs.h
6028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support by default" >&5
6029 $as_echo "Enabling mmp support by default" >&6; }
6030 $as_echo "#define CONFIG_TDB 1" >>confdefs.h
6040 # Check whether --enable-bmap-stats was given.
6041 if test "${enable_bmap_stats+set}" = set; then :
6042 enableval=$enable_bmap_stats; if test "$enableval" = "no"
6044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling bitmap statistics support" >&5
6045 $as_echo "Disabling bitmap statistics support" >&6; }
6047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling bitmap statistics support" >&5
6048 $as_echo "Enabling bitmap statistics support" >&6; }
6049 $as_echo "#define ENABLE_BMAP_STATS 1" >>confdefs.h
6054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling bitmap statistics support by default" >&5
6055 $as_echo "Enabling bitmap statistics support by default" >&6; }
6056 $as_echo "#define ENABLE_BMAP_STATS 1" >>confdefs.h
6062 # Check whether --enable-bmap-stats-ops was given.
6063 if test "${enable_bmap_stats_ops+set}" = set; then :
6064 enableval=$enable_bmap_stats_ops; if test "$enableval" = "no"
6066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling additional bitmap statistics" >&5
6067 $as_echo "Disabling additional bitmap statistics" >&6; }
6069 if test "x${enable_bmap_stats}" = "xno"; then :
6070 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6071 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6072 as_fn_error $? "Error --enable-bmap-stats-ops requires bmap-stats
6073 See \`config.log' for more details" "$LINENO" 5; }
6076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling additional bitmap statistics" >&5
6077 $as_echo "Enabling additional bitmap statistics" >&6; }
6078 $as_echo "#define ENABLE_BMAP_STATS_OPS 1" >>confdefs.h
6083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling additional bitmap statistics by default" >&5
6084 $as_echo "Disabling additional bitmap statistics by default" >&6; }
6089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in -lpthread" >&5
6090 $as_echo_n "checking for pthread_join in -lpthread... " >&6; }
6091 if ${ac_cv_lib_pthread_pthread_join+:} false; then :
6092 $as_echo_n "(cached) " >&6
6094 ac_check_lib_save_LIBS=$LIBS
6095 LIBS="-lpthread $LIBS"
6096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6097 /* end confdefs.h. */
6099 /* Override any GCC internal prototype to avoid an error.
6100 Use char because int might match the return type of a GCC
6101 builtin and then its argument prototype would still apply. */
6105 char pthread_join ();
6109 return pthread_join ();
6114 if ac_fn_c_try_link "$LINENO"; then :
6115 ac_cv_lib_pthread_pthread_join=yes
6117 ac_cv_lib_pthread_pthread_join=no
6119 rm -f core conftest.err conftest.$ac_objext \
6120 conftest$ac_exeext conftest.$ac_ext
6121 LIBS=$ac_check_lib_save_LIBS
6123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_join" >&5
6124 $as_echo "$ac_cv_lib_pthread_pthread_join" >&6; }
6125 if test "x$ac_cv_lib_pthread_pthread_join" = xyes; then :
6126 PTHREAD_LIB=-pthread
6130 # Check whether --enable-pfsck was given.
6131 if test "${enable_pfsck+set}" = set; then :
6132 enableval=$enable_pfsck; if test "$enableval" = "no" || test -z "PTHREAD_LIB"
6134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling parallel e2fsck" >&5
6135 $as_echo "Disabling parallel e2fsck" >&6; }
6138 $as_echo "#define CONFIG_PFSCK 1" >>confdefs.h
6140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling parallel e2fsck" >&5
6141 $as_echo "Enabling parallel e2fsck" >&6; }
6145 if test -z "PTHREAD_LIB"
6147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling parallel e2fsck" >&5
6148 $as_echo "Disabling parallel e2fsck" >&6; }
6151 $as_echo "#define CONFIG_PFSCK 1" >>confdefs.h
6153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling parallel e2fsck by default" >&5
6154 $as_echo "Enabling parallel e2fsck by default" >&6; }
6159 MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
6161 GETTEXT_PACKAGE=e2fsprogs
6163 VERSION="$E2FSPROGS_VERSION"
6166 cat >>confdefs.h <<_ACEOF
6167 #define PACKAGE "$PACKAGE"
6171 cat >>confdefs.h <<_ACEOF
6172 #define VERSION "$VERSION"
6179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6180 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6182 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6183 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
6184 $as_echo_n "(cached) " >&6
6186 cat >conftest.make <<\_ACEOF
6189 @echo '@@@%%%=$(MAKE)=@@@%%%'
6191 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
6192 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6194 eval ac_cv_prog_make_${ac_make}_set=yes;;
6196 eval ac_cv_prog_make_${ac_make}_set=no;;
6200 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6202 $as_echo "yes" >&6; }
6205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6206 $as_echo "no" >&6; }
6207 SET_MAKE="MAKE=${MAKE-make}"
6210 # Find a good install program. We prefer a C program (faster),
6211 # so one script is as good as another. But avoid the broken or
6212 # incompatible versions:
6213 # SysV /etc/install, /usr/sbin/install
6214 # SunOS /usr/etc/install
6215 # IRIX /sbin/install
6217 # AmigaOS /C/install, which installs bootblocks on floppy discs
6218 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6219 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6220 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6221 # OS/2's system install, which has a completely different semantic
6222 # ./install, which can be erroneously created by make from ./install.sh.
6223 # Reject install programs that cannot install multiple files.
6224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
6225 $as_echo_n "checking for a BSD-compatible install... " >&6; }
6226 if test -z "$INSTALL"; then
6227 if ${ac_cv_path_install+:} false; then :
6228 $as_echo_n "(cached) " >&6
6230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6234 test -z "$as_dir" && as_dir=.
6235 # Account for people who put trailing slashes in PATH elements.
6236 case $as_dir/ in #((
6237 ./ | .// | /[cC]/* | \
6238 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6239 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
6242 # OSF1 and SCO ODT 3.0 have their own names for install.
6243 # Don't use installbsd from OSF since it installs stuff as root
6245 for ac_prog in ginstall scoinst install; do
6246 for ac_exec_ext in '' $ac_executable_extensions; do
6247 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
6248 if test $ac_prog = install &&
6249 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6250 # AIX install. It has an incompatible calling convention.
6252 elif test $ac_prog = install &&
6253 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6254 # program-specific install script used by HP pwplus--don't use.
6257 rm -rf conftest.one conftest.two conftest.dir
6258 echo one > conftest.one
6259 echo two > conftest.two
6261 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
6262 test -s conftest.one && test -s conftest.two &&
6263 test -s conftest.dir/conftest.one &&
6264 test -s conftest.dir/conftest.two
6266 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6279 rm -rf conftest.one conftest.two conftest.dir
6282 if test "${ac_cv_path_install+set}" = set; then
6283 INSTALL=$ac_cv_path_install
6285 # As a last resort, use the slow shell script. Don't cache a
6286 # value for INSTALL within a source directory, because that will
6287 # break other packages using the cache if that directory is
6288 # removed, or if the value is a relative name.
6289 INSTALL=$ac_install_sh
6292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
6293 $as_echo "$INSTALL" >&6; }
6295 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6296 # It thinks the first close brace ends the variable substitution.
6297 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6299 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6301 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
6304 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
6305 if test -z "$MKDIR_P"; then
6306 if ${ac_cv_path_mkdir+:} false; then :
6307 $as_echo_n "(cached) " >&6
6309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6310 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
6313 test -z "$as_dir" && as_dir=.
6314 for ac_prog in mkdir gmkdir; do
6315 for ac_exec_ext in '' $ac_executable_extensions; do
6316 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
6317 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
6318 'mkdir (GNU coreutils) '* | \
6319 'mkdir (coreutils) '* | \
6320 'mkdir (fileutils) '4.1*)
6321 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
6331 test -d ./--version && rmdir ./--version
6332 if test "${ac_cv_path_mkdir+set}" = set; then
6333 MKDIR_P="$ac_cv_path_mkdir -p"
6335 # As a last resort, use the slow shell script. Don't cache a
6336 # value for MKDIR_P within a source directory, because that will
6337 # break other packages using the cache if that directory is
6338 # removed, or if the value is a relative name.
6339 MKDIR_P="$ac_install_sh -d"
6342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
6343 $as_echo "$MKDIR_P" >&6; }
6345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6346 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6347 if ${ac_cv_path_SED+:} false; then :
6348 $as_echo_n "(cached) " >&6
6350 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6351 for ac_i in 1 2 3 4 5 6 7; do
6352 ac_script="$ac_script$as_nl$ac_script"
6354 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6355 { ac_script=; unset ac_script;}
6356 if test -z "$SED"; then
6357 ac_path_SED_found=false
6358 # Loop through the user's path and test for each of PROGNAME-LIST
6359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6363 test -z "$as_dir" && as_dir=.
6364 for ac_prog in sed gsed; do
6365 for ac_exec_ext in '' $ac_executable_extensions; do
6366 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6367 as_fn_executable_p "$ac_path_SED" || continue
6368 # Check for GNU ac_path_SED and select it if it is found.
6369 # Check for GNU $ac_path_SED
6370 case `"$ac_path_SED" --version 2>&1` in
6372 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6375 $as_echo_n 0123456789 >"conftest.in"
6378 cat "conftest.in" "conftest.in" >"conftest.tmp"
6379 mv "conftest.tmp" "conftest.in"
6380 cp "conftest.in" "conftest.nl"
6381 $as_echo '' >> "conftest.nl"
6382 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6383 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6384 as_fn_arith $ac_count + 1 && ac_count=$as_val
6385 if test $ac_count -gt ${ac_path_SED_max-0}; then
6386 # Best one so far, save it but keep looking for a better one
6387 ac_cv_path_SED="$ac_path_SED"
6388 ac_path_SED_max=$ac_count
6390 # 10*(2^10) chars as input seems more than enough
6391 test $ac_count -gt 10 && break
6393 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6396 $ac_path_SED_found && break 3
6401 if test -z "$ac_cv_path_SED"; then
6402 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6410 $as_echo "$ac_cv_path_SED" >&6; }
6411 SED="$ac_cv_path_SED"
6415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
6416 $as_echo_n "checking whether NLS is requested... " >&6; }
6417 # Check whether --enable-nls was given.
6418 if test "${enable_nls+set}" = set; then :
6419 enableval=$enable_nls; USE_NLS=$enableval
6424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
6425 $as_echo "$USE_NLS" >&6; }
6430 GETTEXT_MACRO_VERSION=0.18
6435 # Prepare PATH_SEPARATOR.
6436 # The user is always right.
6437 if test "${PATH_SEPARATOR+set}" != set; then
6438 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
6439 # contains only /bin. Note that ksh looks also at the FPATH variable,
6440 # so we have to set that as well for the test.
6442 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6443 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6444 || PATH_SEPARATOR=';'
6448 # Find out how to test for executable files. Don't use a zero-byte file,
6449 # as systems may use methods other than mode bits to determine executability.
6450 cat >conf$$.file <<_ASEOF
6454 chmod +x conf$$.file
6455 if test -x conf$$.file >/dev/null 2>&1; then
6456 ac_executable_p="test -x"
6458 ac_executable_p="test -f"
6462 # Extract the first word of "msgfmt", so it can be a program name with args.
6463 set dummy msgfmt; ac_word=$2
6464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6465 $as_echo_n "checking for $ac_word... " >&6; }
6466 if ${ac_cv_path_MSGFMT+:} false; then :
6467 $as_echo_n "(cached) " >&6
6471 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
6474 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6475 for ac_dir in $PATH; do
6477 test -z "$ac_dir" && ac_dir=.
6478 for ac_exec_ext in '' $ac_executable_extensions; do
6479 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6480 echo "$as_me: trying $ac_dir/$ac_word..." >&5
6481 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
6482 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6483 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
6490 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
6494 MSGFMT="$ac_cv_path_MSGFMT"
6495 if test "$MSGFMT" != ":"; then
6496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
6497 $as_echo "$MSGFMT" >&6; }
6499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6500 $as_echo "no" >&6; }
6503 # Extract the first word of "gmsgfmt", so it can be a program name with args.
6504 set dummy gmsgfmt; ac_word=$2
6505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6506 $as_echo_n "checking for $ac_word... " >&6; }
6507 if ${ac_cv_path_GMSGFMT+:} false; then :
6508 $as_echo_n "(cached) " >&6
6512 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
6515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6519 test -z "$as_dir" && as_dir=.
6520 for ac_exec_ext in '' $ac_executable_extensions; do
6521 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6522 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
6523 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6530 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
6534 GMSGFMT=$ac_cv_path_GMSGFMT
6535 if test -n "$GMSGFMT"; then
6536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
6537 $as_echo "$GMSGFMT" >&6; }
6539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6540 $as_echo "no" >&6; }
6545 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6546 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
6547 *) MSGFMT_015=$MSGFMT ;;
6550 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6551 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
6552 *) GMSGFMT_015=$GMSGFMT ;;
6557 # Prepare PATH_SEPARATOR.
6558 # The user is always right.
6559 if test "${PATH_SEPARATOR+set}" != set; then
6560 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
6561 # contains only /bin. Note that ksh looks also at the FPATH variable,
6562 # so we have to set that as well for the test.
6564 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6565 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6566 || PATH_SEPARATOR=';'
6570 # Find out how to test for executable files. Don't use a zero-byte file,
6571 # as systems may use methods other than mode bits to determine executability.
6572 cat >conf$$.file <<_ASEOF
6576 chmod +x conf$$.file
6577 if test -x conf$$.file >/dev/null 2>&1; then
6578 ac_executable_p="test -x"
6580 ac_executable_p="test -f"
6584 # Extract the first word of "xgettext", so it can be a program name with args.
6585 set dummy xgettext; ac_word=$2
6586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6587 $as_echo_n "checking for $ac_word... " >&6; }
6588 if ${ac_cv_path_XGETTEXT+:} false; then :
6589 $as_echo_n "(cached) " >&6
6593 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
6596 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6597 for ac_dir in $PATH; do
6599 test -z "$ac_dir" && ac_dir=.
6600 for ac_exec_ext in '' $ac_executable_extensions; do
6601 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6602 echo "$as_me: trying $ac_dir/$ac_word..." >&5
6603 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
6604 (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
6605 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
6612 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
6616 XGETTEXT="$ac_cv_path_XGETTEXT"
6617 if test "$XGETTEXT" != ":"; then
6618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
6619 $as_echo "$XGETTEXT" >&6; }
6621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6622 $as_echo "no" >&6; }
6627 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6628 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
6629 *) XGETTEXT_015=$XGETTEXT ;;
6634 # Prepare PATH_SEPARATOR.
6635 # The user is always right.
6636 if test "${PATH_SEPARATOR+set}" != set; then
6637 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
6638 # contains only /bin. Note that ksh looks also at the FPATH variable,
6639 # so we have to set that as well for the test.
6641 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6642 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6643 || PATH_SEPARATOR=';'
6647 # Find out how to test for executable files. Don't use a zero-byte file,
6648 # as systems may use methods other than mode bits to determine executability.
6649 cat >conf$$.file <<_ASEOF
6653 chmod +x conf$$.file
6654 if test -x conf$$.file >/dev/null 2>&1; then
6655 ac_executable_p="test -x"
6657 ac_executable_p="test -f"
6661 # Extract the first word of "msgmerge", so it can be a program name with args.
6662 set dummy msgmerge; ac_word=$2
6663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6664 $as_echo_n "checking for $ac_word... " >&6; }
6665 if ${ac_cv_path_MSGMERGE+:} false; then :
6666 $as_echo_n "(cached) " >&6
6670 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
6673 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6674 for ac_dir in $PATH; do
6676 test -z "$ac_dir" && ac_dir=.
6677 for ac_exec_ext in '' $ac_executable_extensions; do
6678 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6679 echo "$as_me: trying $ac_dir/$ac_word..." >&5
6680 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
6681 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
6688 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
6692 MSGMERGE="$ac_cv_path_MSGMERGE"
6693 if test "$MSGMERGE" != ":"; then
6694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
6695 $as_echo "$MSGMERGE" >&6; }
6697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6698 $as_echo "no" >&6; }
6702 test -n "$localedir" || localedir='${datadir}/locale'
6705 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
6708 ac_config_commands="$ac_config_commands po-directories"
6712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2 or newer" >&5
6713 $as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; }
6714 if ${ac_cv_gnu_library_2+:} false; then :
6715 $as_echo_n "(cached) " >&6
6717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6718 /* end confdefs.h. */
6720 #include <features.h>
6721 #ifdef __GNU_LIBRARY__
6722 #if (__GLIBC__ >= 2) && !defined __UCLIBC__
6728 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6729 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
6730 ac_cv_gnu_library_2=yes
6732 ac_cv_gnu_library_2=no
6739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2" >&5
6740 $as_echo "$ac_cv_gnu_library_2" >&6; }
6742 GLIBC2="$ac_cv_gnu_library_2"
6745 if test -n "$ac_tool_prefix"; then
6746 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6747 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6749 $as_echo_n "checking for $ac_word... " >&6; }
6750 if ${ac_cv_prog_RANLIB+:} false; then :
6751 $as_echo_n "(cached) " >&6
6753 if test -n "$RANLIB"; then
6754 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6760 test -z "$as_dir" && as_dir=.
6761 for ac_exec_ext in '' $ac_executable_extensions; do
6762 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6763 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6764 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6773 RANLIB=$ac_cv_prog_RANLIB
6774 if test -n "$RANLIB"; then
6775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6776 $as_echo "$RANLIB" >&6; }
6778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6779 $as_echo "no" >&6; }
6784 if test -z "$ac_cv_prog_RANLIB"; then
6785 ac_ct_RANLIB=$RANLIB
6786 # Extract the first word of "ranlib", so it can be a program name with args.
6787 set dummy ranlib; ac_word=$2
6788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6789 $as_echo_n "checking for $ac_word... " >&6; }
6790 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6791 $as_echo_n "(cached) " >&6
6793 if test -n "$ac_ct_RANLIB"; then
6794 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6800 test -z "$as_dir" && as_dir=.
6801 for ac_exec_ext in '' $ac_executable_extensions; do
6802 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6803 ac_cv_prog_ac_ct_RANLIB="ranlib"
6804 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6813 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6814 if test -n "$ac_ct_RANLIB"; then
6815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6816 $as_echo "$ac_ct_RANLIB" >&6; }
6818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6819 $as_echo "no" >&6; }
6822 if test "x$ac_ct_RANLIB" = x; then
6825 case $cross_compiling:$ac_tool_warned in
6827 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6828 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6829 ac_tool_warned=yes ;;
6831 RANLIB=$ac_ct_RANLIB
6834 RANLIB="$ac_cv_prog_RANLIB"
6841 if test -n "$GCC"; then
6842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the -Werror option is usable" >&5
6843 $as_echo_n "checking whether the -Werror option is usable... " >&6; }
6844 if ${gl_cv_cc_vis_werror+:} false; then :
6845 $as_echo_n "(cached) " >&6
6848 gl_save_CFLAGS="$CFLAGS"
6849 CFLAGS="$CFLAGS -Werror"
6850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6851 /* end confdefs.h. */
6861 if ac_fn_c_try_compile "$LINENO"; then :
6862 gl_cv_cc_vis_werror=yes
6864 gl_cv_cc_vis_werror=no
6866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6867 CFLAGS="$gl_save_CFLAGS"
6870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_vis_werror" >&5
6871 $as_echo "$gl_cv_cc_vis_werror" >&6; }
6872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5
6873 $as_echo_n "checking for simple visibility declarations... " >&6; }
6874 if ${gl_cv_cc_visibility+:} false; then :
6875 $as_echo_n "(cached) " >&6
6878 gl_save_CFLAGS="$CFLAGS"
6879 CFLAGS="$CFLAGS -fvisibility=hidden"
6880 if test $gl_cv_cc_vis_werror = yes; then
6881 CFLAGS="$CFLAGS -Werror"
6883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6884 /* end confdefs.h. */
6885 extern __attribute__((__visibility__("hidden"))) int hiddenvar;
6886 extern __attribute__((__visibility__("default"))) int exportedvar;
6887 extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
6888 extern __attribute__((__visibility__("default"))) int exportedfunc (void);
6889 void dummyfunc (void) {}
6899 if ac_fn_c_try_compile "$LINENO"; then :
6900 gl_cv_cc_visibility=yes
6902 gl_cv_cc_visibility=no
6904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6905 CFLAGS="$gl_save_CFLAGS"
6908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5
6909 $as_echo "$gl_cv_cc_visibility" >&6; }
6910 if test $gl_cv_cc_visibility = yes; then
6911 CFLAG_VISIBILITY="-fvisibility=hidden"
6918 cat >>confdefs.h <<_ACEOF
6919 #define HAVE_VISIBILITY $HAVE_VISIBILITY
6923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
6924 $as_echo_n "checking for inline... " >&6; }
6925 if ${ac_cv_c_inline+:} false; then :
6926 $as_echo_n "(cached) " >&6
6929 for ac_kw in inline __inline__ __inline; do
6930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6931 /* end confdefs.h. */
6934 static $ac_kw foo_t static_foo () {return 0; }
6935 $ac_kw foo_t foo () {return 0; }
6939 if ac_fn_c_try_compile "$LINENO"; then :
6940 ac_cv_c_inline=$ac_kw
6942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6943 test "$ac_cv_c_inline" != no && break
6947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
6948 $as_echo "$ac_cv_c_inline" >&6; }
6950 case $ac_cv_c_inline in
6953 case $ac_cv_c_inline in
6955 *) ac_val=$ac_cv_c_inline;;
6957 cat >>confdefs.h <<_ACEOF
6959 #define inline $ac_val
6965 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6966 if test "x$ac_cv_type_size_t" = xyes; then :
6970 cat >>confdefs.h <<_ACEOF
6971 #define size_t unsigned int
6977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
6978 $as_echo_n "checking for stdint.h... " >&6; }
6979 if ${gl_cv_header_stdint_h+:} false; then :
6980 $as_echo_n "(cached) " >&6
6982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6983 /* end confdefs.h. */
6984 #include <sys/types.h>
6989 uintmax_t i = (uintmax_t) -1; return !i;
6994 if ac_fn_c_try_compile "$LINENO"; then :
6995 gl_cv_header_stdint_h=yes
6997 gl_cv_header_stdint_h=no
6999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
7002 $as_echo "$gl_cv_header_stdint_h" >&6; }
7003 if test $gl_cv_header_stdint_h = yes; then
7005 cat >>confdefs.h <<_ACEOF
7006 #define HAVE_STDINT_H_WITH_UINTMAX 1
7011 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
7012 # for constant arguments. Useless!
7013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
7014 $as_echo_n "checking for working alloca.h... " >&6; }
7015 if ${ac_cv_working_alloca_h+:} false; then :
7016 $as_echo_n "(cached) " >&6
7018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7019 /* end confdefs.h. */
7024 char *p = (char *) alloca (2 * sizeof (int));
7030 if ac_fn_c_try_link "$LINENO"; then :
7031 ac_cv_working_alloca_h=yes
7033 ac_cv_working_alloca_h=no
7035 rm -f core conftest.err conftest.$ac_objext \
7036 conftest$ac_exeext conftest.$ac_ext
7038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
7039 $as_echo "$ac_cv_working_alloca_h" >&6; }
7040 if test $ac_cv_working_alloca_h = yes; then
7042 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
7046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
7047 $as_echo_n "checking for alloca... " >&6; }
7048 if ${ac_cv_func_alloca_works+:} false; then :
7049 $as_echo_n "(cached) " >&6
7051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7052 /* end confdefs.h. */
7054 # define alloca __builtin_alloca
7057 # include <malloc.h>
7058 # define alloca _alloca
7060 # ifdef HAVE_ALLOCA_H
7061 # include <alloca.h>
7066 # ifndef alloca /* predefined by HP cc +Olibcalls */
7067 void *alloca (size_t);
7077 char *p = (char *) alloca (1);
7083 if ac_fn_c_try_link "$LINENO"; then :
7084 ac_cv_func_alloca_works=yes
7086 ac_cv_func_alloca_works=no
7088 rm -f core conftest.err conftest.$ac_objext \
7089 conftest$ac_exeext conftest.$ac_ext
7091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
7092 $as_echo "$ac_cv_func_alloca_works" >&6; }
7094 if test $ac_cv_func_alloca_works = yes; then
7096 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
7099 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
7100 # that cause trouble. Some versions do not even contain alloca or
7101 # contain a buggy version. If you still want to use their alloca,
7102 # use ar to extract alloca.o from them instead of compiling alloca.c.
7104 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
7106 $as_echo "#define C_ALLOCA 1" >>confdefs.h
7109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
7110 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
7111 if ${ac_cv_os_cray+:} false; then :
7112 $as_echo_n "(cached) " >&6
7114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7115 /* end confdefs.h. */
7116 #if defined CRAY && ! defined CRAY2
7123 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7124 $EGREP "webecray" >/dev/null 2>&1; then :
7132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
7133 $as_echo "$ac_cv_os_cray" >&6; }
7134 if test $ac_cv_os_cray = yes; then
7135 for ac_func in _getb67 GETB67 getb67; do
7136 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7137 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7138 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7140 cat >>confdefs.h <<_ACEOF
7141 #define CRAY_STACKSEG_END $ac_func
7150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
7151 $as_echo_n "checking stack direction for C alloca... " >&6; }
7152 if ${ac_cv_c_stack_direction+:} false; then :
7153 $as_echo_n "(cached) " >&6
7155 if test "$cross_compiling" = yes; then :
7156 ac_cv_c_stack_direction=0
7158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7159 /* end confdefs.h. */
7160 $ac_includes_default
7162 find_stack_direction (int *addr, int depth)
7167 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
7168 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
7173 main (int argc, char **argv)
7175 return find_stack_direction (0, argc + !argv + 20) < 0;
7178 if ac_fn_c_try_run "$LINENO"; then :
7179 ac_cv_c_stack_direction=1
7181 ac_cv_c_stack_direction=-1
7183 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7184 conftest.$ac_objext conftest.beam conftest.$ac_ext
7188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
7189 $as_echo "$ac_cv_c_stack_direction" >&6; }
7190 cat >>confdefs.h <<_ACEOF
7191 #define STACK_DIRECTION $ac_cv_c_stack_direction
7200 for ac_header in $ac_header_list
7202 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7203 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7205 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7206 cat >>confdefs.h <<_ACEOF
7207 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7221 for ac_func in getpagesize
7223 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
7224 if test "x$ac_cv_func_getpagesize" = xyes; then :
7225 cat >>confdefs.h <<_ACEOF
7226 #define HAVE_GETPAGESIZE 1
7232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
7233 $as_echo_n "checking for working mmap... " >&6; }
7234 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
7235 $as_echo_n "(cached) " >&6
7237 if test "$cross_compiling" = yes; then :
7238 ac_cv_func_mmap_fixed_mapped=no
7240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7241 /* end confdefs.h. */
7242 $ac_includes_default
7243 /* malloc might have been renamed as rpl_malloc. */
7246 /* Thanks to Mike Haertel and Jim Avera for this test.
7247 Here is a matrix of mmap possibilities:
7248 mmap private not fixed
7249 mmap private fixed at somewhere currently unmapped
7250 mmap private fixed at somewhere already mapped
7251 mmap shared not fixed
7252 mmap shared fixed at somewhere currently unmapped
7253 mmap shared fixed at somewhere already mapped
7254 For private mappings, we should verify that changes cannot be read()
7255 back from the file, nor mmap's back from the file at a different
7256 address. (There have been systems where private was not correctly
7257 implemented like the infamous i386 svr4.0, and systems where the
7258 VM page cache was not coherent with the file system buffer cache
7259 like early versions of FreeBSD and possibly contemporary NetBSD.)
7260 For shared mappings, we should conversely verify that changes get
7261 propagated back to all the places they're supposed to be.
7263 Grep wants private fixed already mapped.
7264 The main things grep needs to know about mmap are:
7265 * does it exist and is it safe to write into the mmap'd area
7266 * how to use it (BSD variants) */
7269 #include <sys/mman.h>
7271 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7275 /* This mess was copied from the GNU getpagesize.h. */
7276 #ifndef HAVE_GETPAGESIZE
7277 # ifdef _SC_PAGESIZE
7278 # define getpagesize() sysconf(_SC_PAGESIZE)
7279 # else /* no _SC_PAGESIZE */
7280 # ifdef HAVE_SYS_PARAM_H
7281 # include <sys/param.h>
7282 # ifdef EXEC_PAGESIZE
7283 # define getpagesize() EXEC_PAGESIZE
7284 # else /* no EXEC_PAGESIZE */
7286 # define getpagesize() NBPG * CLSIZE
7289 # endif /* no CLSIZE */
7290 # else /* no NBPG */
7292 # define getpagesize() NBPC
7293 # else /* no NBPC */
7295 # define getpagesize() PAGESIZE
7296 # endif /* PAGESIZE */
7297 # endif /* no NBPC */
7298 # endif /* no NBPG */
7299 # endif /* no EXEC_PAGESIZE */
7300 # else /* no HAVE_SYS_PARAM_H */
7301 # define getpagesize() 8192 /* punt totally */
7302 # endif /* no HAVE_SYS_PARAM_H */
7303 # endif /* no _SC_PAGESIZE */
7305 #endif /* no HAVE_GETPAGESIZE */
7310 char *data, *data2, *data3;
7315 pagesize = getpagesize ();
7317 /* First, make a file with some known garbage in it. */
7318 data = (char *) malloc (pagesize);
7321 for (i = 0; i < pagesize; ++i)
7322 *(data + i) = rand ();
7324 fd = creat ("conftest.mmap", 0600);
7327 if (write (fd, data, pagesize) != pagesize)
7331 /* Next, check that the tail of a page is zero-filled. File must have
7332 non-zero length, otherwise we risk SIGBUS for entire page. */
7333 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7337 if (write (fd2, cdata2, 1) != 1)
7339 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7340 if (data2 == MAP_FAILED)
7342 for (i = 0; i < pagesize; ++i)
7346 if (munmap (data2, pagesize))
7349 /* Next, try to mmap the file at a fixed address which already has
7350 something else allocated at it. If we can, also make sure that
7351 we see the same garbage. */
7352 fd = open ("conftest.mmap", O_RDWR);
7355 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7356 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7358 for (i = 0; i < pagesize; ++i)
7359 if (*(data + i) != *(data2 + i))
7362 /* Finally, make sure that changes to the mapped area do not
7363 percolate back to the file as seen by read(). (This is a bug on
7364 some variants of i386 svr4.0.) */
7365 for (i = 0; i < pagesize; ++i)
7366 *(data2 + i) = *(data2 + i) + 1;
7367 data3 = (char *) malloc (pagesize);
7370 if (read (fd, data3, pagesize) != pagesize)
7372 for (i = 0; i < pagesize; ++i)
7373 if (*(data + i) != *(data3 + i))
7379 if ac_fn_c_try_run "$LINENO"; then :
7380 ac_cv_func_mmap_fixed_mapped=yes
7382 ac_cv_func_mmap_fixed_mapped=no
7384 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7385 conftest.$ac_objext conftest.beam conftest.$ac_ext
7389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
7390 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
7391 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7393 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
7396 rm -f conftest.mmap conftest.txt
7400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
7401 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
7402 if ${gt_cv_int_divbyzero_sigfpe+:} false; then :
7403 $as_echo_n "(cached) " >&6
7406 gt_cv_int_divbyzero_sigfpe=
7408 macos* | darwin[6-9]* | darwin[1-9][0-9]*)
7409 # On Mac OS X 10.2 or newer, just assume the same as when cross-
7410 # compiling. If we were to perform the real test, 1 Crash Report
7411 # dialog window would pop up.
7413 i[34567]86 | x86_64)
7414 gt_cv_int_divbyzero_sigfpe="guessing yes" ;;
7418 if test -z "$gt_cv_int_divbyzero_sigfpe"; then
7419 if test "$cross_compiling" = yes; then :
7421 # Guess based on the CPU.
7423 alpha* | i[34567]86 | x86_64 | m68k | s390*)
7424 gt_cv_int_divbyzero_sigfpe="guessing yes";;
7426 gt_cv_int_divbyzero_sigfpe="guessing no";;
7430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7431 /* end confdefs.h. */
7437 sigfpe_handler (int sig)
7439 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
7440 exit (sig != SIGFPE);
7450 signal (SIGFPE, sigfpe_handler);
7451 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
7452 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
7453 signal (SIGTRAP, sigfpe_handler);
7455 /* Linux/SPARC yields signal SIGILL. */
7456 #if defined (__sparc__) && defined (__linux__)
7457 signal (SIGILL, sigfpe_handler);
7466 if ac_fn_c_try_run "$LINENO"; then :
7467 gt_cv_int_divbyzero_sigfpe=yes
7469 gt_cv_int_divbyzero_sigfpe=no
7471 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7472 conftest.$ac_objext conftest.beam conftest.$ac_ext
7478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
7479 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
7480 case "$gt_cv_int_divbyzero_sigfpe" in
7485 cat >>confdefs.h <<_ACEOF
7486 #define INTDIV0_RAISES_SIGFPE $value
7491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
7492 $as_echo_n "checking for inttypes.h... " >&6; }
7493 if ${gl_cv_header_inttypes_h+:} false; then :
7494 $as_echo_n "(cached) " >&6
7496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7497 /* end confdefs.h. */
7499 #include <sys/types.h>
7500 #include <inttypes.h>
7505 uintmax_t i = (uintmax_t) -1; return !i;
7510 if ac_fn_c_try_compile "$LINENO"; then :
7511 gl_cv_header_inttypes_h=yes
7513 gl_cv_header_inttypes_h=no
7515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
7518 $as_echo "$gl_cv_header_inttypes_h" >&6; }
7519 if test $gl_cv_header_inttypes_h = yes; then
7521 cat >>confdefs.h <<_ACEOF
7522 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
7528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
7529 $as_echo_n "checking for unsigned long long int... " >&6; }
7530 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
7531 $as_echo_n "(cached) " >&6
7533 ac_cv_type_unsigned_long_long_int=yes
7534 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
7535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7536 /* end confdefs.h. */
7538 /* For now, do not test the preprocessor; as of 2007 there are too many
7539 implementations with broken preprocessors. Perhaps this can
7540 be revisited in 2012. In the meantime, code should not expect
7541 #if to work with literals wider than 32 bits. */
7542 /* Test literals. */
7543 long long int ll = 9223372036854775807ll;
7544 long long int nll = -9223372036854775807LL;
7545 unsigned long long int ull = 18446744073709551615ULL;
7546 /* Test constant expressions. */
7547 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
7549 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
7555 /* Test availability of runtime routines for shift and division. */
7556 long long int llmax = 9223372036854775807ll;
7557 unsigned long long int ullmax = 18446744073709551615ull;
7558 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
7559 | (llmax / ll) | (llmax % ll)
7560 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
7561 | (ullmax / ull) | (ullmax % ull));
7567 if ac_fn_c_try_link "$LINENO"; then :
7570 ac_cv_type_unsigned_long_long_int=no
7572 rm -f core conftest.err conftest.$ac_objext \
7573 conftest$ac_exeext conftest.$ac_ext
7576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
7577 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
7578 if test $ac_cv_type_unsigned_long_long_int = yes; then
7580 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
7587 if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
7589 test $ac_cv_type_unsigned_long_long_int = yes \
7590 && ac_type='unsigned long long' \
7591 || ac_type='unsigned long'
7593 cat >>confdefs.h <<_ACEOF
7594 #define uintmax_t $ac_type
7599 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
7604 for ac_header in inttypes.h
7606 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
7607 if test "x$ac_cv_header_inttypes_h" = xyes; then :
7608 cat >>confdefs.h <<_ACEOF
7609 #define HAVE_INTTYPES_H 1
7616 if test $ac_cv_header_inttypes_h = yes; then
7617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
7618 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
7619 if ${gt_cv_inttypes_pri_broken+:} false; then :
7620 $as_echo_n "(cached) " >&6
7623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7624 /* end confdefs.h. */
7626 #include <inttypes.h>
7639 if ac_fn_c_try_compile "$LINENO"; then :
7640 gt_cv_inttypes_pri_broken=no
7642 gt_cv_inttypes_pri_broken=yes
7644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
7648 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
7650 if test "$gt_cv_inttypes_pri_broken" = yes; then
7652 cat >>confdefs.h <<_ACEOF
7653 #define PRI_MACROS_BROKEN 1
7667 # Check whether --enable-threads was given.
7668 if test "${enable_threads+set}" = set; then :
7669 enableval=$enable_threads; gl_use_threads=$enableval
7671 if test -n "$gl_use_threads_default"; then
7672 gl_use_threads="$gl_use_threads_default"
7675 osf*) gl_use_threads=no ;;
7678 1.[0-5].*) gl_use_threads=no ;;
7679 *) gl_use_threads=yes ;;
7682 *) gl_use_threads=yes ;;
7688 if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
7689 # For using <pthread.h>:
7692 # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
7693 # groks <pthread.h>. cc also understands the flag -pthread, but
7694 # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
7695 # 2. putting a flag into CPPFLAGS that has an effect on the linker
7696 # causes the AC_LINK_IFELSE test below to succeed unexpectedly,
7697 # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
7698 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
7701 # Some systems optimize for single-threaded programs by default, and
7702 # need special flags to disable these optimizations. For example, the
7703 # definition of 'errno' in <errno.h>.
7705 aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;;
7706 solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;;
7714 if test "X$prefix" = "XNONE"; then
7715 acl_final_prefix="$ac_default_prefix"
7717 acl_final_prefix="$prefix"
7719 if test "X$exec_prefix" = "XNONE"; then
7720 acl_final_exec_prefix='${prefix}'
7722 acl_final_exec_prefix="$exec_prefix"
7724 acl_save_prefix="$prefix"
7725 prefix="$acl_final_prefix"
7726 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7727 prefix="$acl_save_prefix"
7731 # Check whether --with-gnu-ld was given.
7732 if test "${with_gnu_ld+set}" = set; then :
7733 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7738 # Prepare PATH_SEPARATOR.
7739 # The user is always right.
7740 if test "${PATH_SEPARATOR+set}" != set; then
7741 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
7742 # contains only /bin. Note that ksh looks also at the FPATH variable,
7743 # so we have to set that as well for the test.
7745 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7746 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7747 || PATH_SEPARATOR=';'
7752 if test "$GCC" = yes; then
7753 # Check if gcc -print-prog-name=ld gives a path.
7754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7755 $as_echo_n "checking for ld used by $CC... " >&6; }
7758 # gcc leaves a trailing carriage return which upsets mingw
7759 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7761 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7764 # Accept absolute paths.
7766 re_direlt='/[^/][^/]*/\.\./'
7767 # Canonicalize the pathname of ld
7768 ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'`
7769 while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do
7770 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
7772 test -z "$LD" && LD="$ac_prog"
7775 # If it fails, then pretend we aren't using GCC.
7779 # If it is relative, then search for the first ld in PATH.
7783 elif test "$with_gnu_ld" = yes; then
7784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7785 $as_echo_n "checking for GNU ld... " >&6; }
7787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7788 $as_echo_n "checking for non-GNU ld... " >&6; }
7790 if ${acl_cv_path_LD+:} false; then :
7791 $as_echo_n "(cached) " >&6
7793 if test -z "$LD"; then
7794 acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7795 for ac_dir in $PATH; do
7797 test -z "$ac_dir" && ac_dir=.
7798 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7799 acl_cv_path_LD="$ac_dir/$ac_prog"
7800 # Check to see if the program is GNU ld. I'd rather use --version,
7801 # but apparently some variants of GNU ld only accept -v.
7802 # Break only if it was the GNU/non-GNU ld that we prefer.
7803 case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
7804 *GNU* | *'with BFD'*)
7805 test "$with_gnu_ld" != no && break
7808 test "$with_gnu_ld" != yes && break
7815 acl_cv_path_LD="$LD" # Let the user override the test with a path.
7819 LD="$acl_cv_path_LD"
7820 if test -n "$LD"; then
7821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7822 $as_echo "$LD" >&6; }
7824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7825 $as_echo "no" >&6; }
7827 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7829 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7830 if ${acl_cv_prog_gnu_ld+:} false; then :
7831 $as_echo_n "(cached) " >&6
7833 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7834 case `$LD -v 2>&1 </dev/null` in
7835 *GNU* | *'with BFD'*)
7836 acl_cv_prog_gnu_ld=yes
7839 acl_cv_prog_gnu_ld=no
7843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
7844 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
7845 with_gnu_ld=$acl_cv_prog_gnu_ld
7850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
7851 $as_echo_n "checking for shared library run path origin... " >&6; }
7852 if ${acl_cv_rpath+:} false; then :
7853 $as_echo_n "(cached) " >&6
7856 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
7857 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
7864 $as_echo "$acl_cv_rpath" >&6; }
7866 acl_libext="$acl_cv_libext"
7867 acl_shlibext="$acl_cv_shlibext"
7868 acl_libname_spec="$acl_cv_libname_spec"
7869 acl_library_names_spec="$acl_cv_library_names_spec"
7870 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
7871 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
7872 acl_hardcode_direct="$acl_cv_hardcode_direct"
7873 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
7874 # Check whether --enable-rpath was given.
7875 if test "${enable_rpath+set}" = set; then :
7876 enableval=$enable_rpath; :
7888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
7889 $as_echo_n "checking for 64-bit host... " >&6; }
7890 if ${gl_cv_solaris_64bit+:} false; then :
7891 $as_echo_n "(cached) " >&6
7893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7894 /* end confdefs.h. */
7901 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7902 $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
7903 gl_cv_solaris_64bit=yes
7905 gl_cv_solaris_64bit=no
7911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
7912 $as_echo "$gl_cv_solaris_64bit" >&6; }
7913 if test $gl_cv_solaris_64bit = yes; then
7914 acl_libdirstem=lib/64
7916 sparc*) acl_libdirstem2=lib/sparcv9 ;;
7917 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
7922 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
7923 if test -n "$searchpath"; then
7924 acl_save_IFS="${IFS= }"; IFS=":"
7925 for searchdir in $searchpath; do
7926 if test -d "$searchdir"; then
7927 case "$searchdir" in
7928 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
7930 # Better ignore directories of this form. They are misleading.
7932 *) searchdir=`cd "$searchdir" && pwd`
7933 case "$searchdir" in
7934 */lib64 ) acl_libdirstem=lib64 ;;
7943 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
7952 if test "$gl_use_threads" != no; then
7953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5
7954 $as_echo_n "checking whether imported symbols can be declared weak... " >&6; }
7955 if ${gl_cv_have_weak+:} false; then :
7956 $as_echo_n "(cached) " >&6
7959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7960 /* end confdefs.h. */
7961 extern void xyzzy ();
7971 if ac_fn_c_try_link "$LINENO"; then :
7972 gl_cv_have_weak=maybe
7974 rm -f core conftest.err conftest.$ac_objext \
7975 conftest$ac_exeext conftest.$ac_ext
7976 if test $gl_cv_have_weak = maybe; then
7977 if test "$cross_compiling" = yes; then :
7978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7979 /* end confdefs.h. */
7981 Extensible Linking Format
7985 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7986 $EGREP "Extensible Linking Format" >/dev/null 2>&1; then :
7987 gl_cv_have_weak="guessing yes"
7989 gl_cv_have_weak="guessing no"
7995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7996 /* end confdefs.h. */
8002 return (fputs == NULL);
8005 if ac_fn_c_try_run "$LINENO"; then :
8010 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8011 conftest.$ac_objext conftest.beam conftest.$ac_ext
8017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5
8018 $as_echo "$gl_cv_have_weak" >&6; }
8019 if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
8020 # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
8021 # it groks <pthread.h>. It's added above, in gl_THREADLIB_EARLY_BODY.
8022 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
8023 if test "x$ac_cv_header_pthread_h" = xyes; then :
8024 gl_have_pthread_h=yes
8026 gl_have_pthread_h=no
8030 if test "$gl_have_pthread_h" = yes; then
8031 # Other possible tests:
8032 # -lpthreads (FSU threads, PCthreads)
8035 # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
8036 # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
8037 # the second one only in libpthread, and lock.c needs it.
8038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8039 /* end confdefs.h. */
8040 #include <pthread.h>
8044 pthread_mutex_lock((pthread_mutex_t*)0);
8045 pthread_mutexattr_init((pthread_mutexattr_t*)0);
8050 if ac_fn_c_try_link "$LINENO"; then :
8053 rm -f core conftest.err conftest.$ac_objext \
8054 conftest$ac_exeext conftest.$ac_ext
8055 # Test for libpthread by looking for pthread_kill. (Not pthread_self,
8056 # since it is defined as a macro on OSF/1.)
8057 if test -n "$gl_have_pthread"; then
8058 # The program links fine without libpthread. But it may actually
8059 # need to link with libpthread in order to create multiple threads.
8060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
8061 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
8062 if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
8063 $as_echo_n "(cached) " >&6
8065 ac_check_lib_save_LIBS=$LIBS
8066 LIBS="-lpthread $LIBS"
8067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8068 /* end confdefs.h. */
8070 /* Override any GCC internal prototype to avoid an error.
8071 Use char because int might match the return type of a GCC
8072 builtin and then its argument prototype would still apply. */
8076 char pthread_kill ();
8080 return pthread_kill ();
8085 if ac_fn_c_try_link "$LINENO"; then :
8086 ac_cv_lib_pthread_pthread_kill=yes
8088 ac_cv_lib_pthread_pthread_kill=no
8090 rm -f core conftest.err conftest.$ac_objext \
8091 conftest$ac_exeext conftest.$ac_ext
8092 LIBS=$ac_check_lib_save_LIBS
8094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
8095 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
8096 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
8097 LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
8098 # On Solaris and HP-UX, most pthread functions exist also in libc.
8099 # Therefore pthread_in_use() needs to actually try to create a
8100 # thread: pthread_create from libc will fail, whereas
8101 # pthread_create will actually create a thread.
8105 $as_echo "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h
8112 # Some library is needed. Try libpthread and libc_r.
8113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
8114 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
8115 if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
8116 $as_echo_n "(cached) " >&6
8118 ac_check_lib_save_LIBS=$LIBS
8119 LIBS="-lpthread $LIBS"
8120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8121 /* end confdefs.h. */
8123 /* Override any GCC internal prototype to avoid an error.
8124 Use char because int might match the return type of a GCC
8125 builtin and then its argument prototype would still apply. */
8129 char pthread_kill ();
8133 return pthread_kill ();
8138 if ac_fn_c_try_link "$LINENO"; then :
8139 ac_cv_lib_pthread_pthread_kill=yes
8141 ac_cv_lib_pthread_pthread_kill=no
8143 rm -f core conftest.err conftest.$ac_objext \
8144 conftest$ac_exeext conftest.$ac_ext
8145 LIBS=$ac_check_lib_save_LIBS
8147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
8148 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
8149 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
8151 LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread
8152 LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
8155 if test -z "$gl_have_pthread"; then
8157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5
8158 $as_echo_n "checking for pthread_kill in -lc_r... " >&6; }
8159 if ${ac_cv_lib_c_r_pthread_kill+:} false; then :
8160 $as_echo_n "(cached) " >&6
8162 ac_check_lib_save_LIBS=$LIBS
8164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8165 /* end confdefs.h. */
8167 /* Override any GCC internal prototype to avoid an error.
8168 Use char because int might match the return type of a GCC
8169 builtin and then its argument prototype would still apply. */
8173 char pthread_kill ();
8177 return pthread_kill ();
8182 if ac_fn_c_try_link "$LINENO"; then :
8183 ac_cv_lib_c_r_pthread_kill=yes
8185 ac_cv_lib_c_r_pthread_kill=no
8187 rm -f core conftest.err conftest.$ac_objext \
8188 conftest$ac_exeext conftest.$ac_ext
8189 LIBS=$ac_check_lib_save_LIBS
8191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5
8192 $as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; }
8193 if test "x$ac_cv_lib_c_r_pthread_kill" = xyes; then :
8195 LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r
8196 LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r
8201 if test -n "$gl_have_pthread"; then
8202 gl_threads_api=posix
8204 $as_echo "#define USE_POSIX_THREADS 1" >>confdefs.h
8206 if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
8207 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
8209 $as_echo "#define USE_POSIX_THREADS_WEAK 1" >>confdefs.h
8218 if test -z "$gl_have_pthread"; then
8219 if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then
8220 gl_have_solaristhread=
8221 gl_save_LIBS="$LIBS"
8222 LIBS="$LIBS -lthread"
8223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8224 /* end confdefs.h. */
8237 if ac_fn_c_try_link "$LINENO"; then :
8238 gl_have_solaristhread=yes
8240 rm -f core conftest.err conftest.$ac_objext \
8241 conftest$ac_exeext conftest.$ac_ext
8242 LIBS="$gl_save_LIBS"
8243 if test -n "$gl_have_solaristhread"; then
8244 gl_threads_api=solaris
8246 LTLIBTHREAD=-lthread
8247 LIBMULTITHREAD="$LIBTHREAD"
8248 LTLIBMULTITHREAD="$LTLIBTHREAD"
8250 $as_echo "#define USE_SOLARIS_THREADS 1" >>confdefs.h
8252 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
8254 $as_echo "#define USE_SOLARIS_THREADS_WEAK 1" >>confdefs.h
8262 if test "$gl_use_threads" = pth; then
8263 gl_save_CPPFLAGS="$CPPFLAGS"
8269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libpth" >&5
8270 $as_echo_n "checking how to link with libpth... " >&6; }
8271 if ${ac_cv_libpth_libs+:} false; then :
8272 $as_echo_n "(cached) " >&6
8284 acl_save_prefix="$prefix"
8285 prefix="$acl_final_prefix"
8286 acl_save_exec_prefix="$exec_prefix"
8287 exec_prefix="$acl_final_exec_prefix"
8289 eval additional_includedir=\"$includedir\"
8290 eval additional_libdir=\"$libdir\"
8292 exec_prefix="$acl_save_exec_prefix"
8293 prefix="$acl_save_prefix"
8296 # Check whether --with-libpth-prefix was given.
8297 if test "${with_libpth_prefix+set}" = set; then :
8298 withval=$with_libpth_prefix;
8299 if test "X$withval" = "Xno"; then
8302 if test "X$withval" = "X"; then
8304 acl_save_prefix="$prefix"
8305 prefix="$acl_final_prefix"
8306 acl_save_exec_prefix="$exec_prefix"
8307 exec_prefix="$acl_final_exec_prefix"
8309 eval additional_includedir=\"$includedir\"
8310 eval additional_libdir=\"$libdir\"
8312 exec_prefix="$acl_save_exec_prefix"
8313 prefix="$acl_save_prefix"
8316 additional_includedir="$withval/include"
8317 additional_libdir="$withval/$acl_libdirstem"
8318 if test "$acl_libdirstem2" != "$acl_libdirstem" \
8319 && ! test -d "$withval/$acl_libdirstem"; then
8320 additional_libdir="$withval/$acl_libdirstem2"
8334 names_already_handled=
8335 names_next_round='pth '
8336 while test -n "$names_next_round"; do
8337 names_this_round="$names_next_round"
8339 for name in $names_this_round; do
8341 for n in $names_already_handled; do
8342 if test "$n" = "$name"; then
8347 if test -z "$already_handled"; then
8348 names_already_handled="$names_already_handled $name"
8349 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
8350 eval value=\"\$HAVE_LIB$uppername\"
8351 if test -n "$value"; then
8352 if test "$value" = yes; then
8353 eval value=\"\$LIB$uppername\"
8354 test -z "$value" || LIBPTH="${LIBPTH}${LIBPTH:+ }$value"
8355 eval value=\"\$LTLIB$uppername\"
8356 test -z "$value" || LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$value"
8365 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
8366 if test -n "$acl_shlibext"; then
8367 shrext=".$acl_shlibext" # typically: shrext=.so
8371 if test $use_additional = yes; then
8372 dir="$additional_libdir"
8373 if test -n "$acl_shlibext"; then
8374 if test -f "$dir/$libname$shrext"; then
8376 found_so="$dir/$libname$shrext"
8378 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8379 ver=`(cd "$dir" && \
8380 for f in "$libname$shrext".*; do echo "$f"; done \
8381 | sed -e "s,^$libname$shrext\\\\.,," \
8382 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8383 | sed 1q ) 2>/dev/null`
8384 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8386 found_so="$dir/$libname$shrext.$ver"
8389 eval library_names=\"$acl_library_names_spec\"
8390 for f in $library_names; do
8391 if test -f "$dir/$f"; then
8400 if test "X$found_dir" = "X"; then
8401 if test -f "$dir/$libname.$acl_libext"; then
8403 found_a="$dir/$libname.$acl_libext"
8406 if test "X$found_dir" != "X"; then
8407 if test -f "$dir/$libname.la"; then
8408 found_la="$dir/$libname.la"
8412 if test "X$found_dir" = "X"; then
8413 for x in $LDFLAGS $LTLIBPTH; do
8415 acl_save_prefix="$prefix"
8416 prefix="$acl_final_prefix"
8417 acl_save_exec_prefix="$exec_prefix"
8418 exec_prefix="$acl_final_exec_prefix"
8420 exec_prefix="$acl_save_exec_prefix"
8421 prefix="$acl_save_prefix"
8425 dir=`echo "X$x" | sed -e 's/^X-L//'`
8426 if test -n "$acl_shlibext"; then
8427 if test -f "$dir/$libname$shrext"; then
8429 found_so="$dir/$libname$shrext"
8431 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8432 ver=`(cd "$dir" && \
8433 for f in "$libname$shrext".*; do echo "$f"; done \
8434 | sed -e "s,^$libname$shrext\\\\.,," \
8435 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8436 | sed 1q ) 2>/dev/null`
8437 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8439 found_so="$dir/$libname$shrext.$ver"
8442 eval library_names=\"$acl_library_names_spec\"
8443 for f in $library_names; do
8444 if test -f "$dir/$f"; then
8453 if test "X$found_dir" = "X"; then
8454 if test -f "$dir/$libname.$acl_libext"; then
8456 found_a="$dir/$libname.$acl_libext"
8459 if test "X$found_dir" != "X"; then
8460 if test -f "$dir/$libname.la"; then
8461 found_la="$dir/$libname.la"
8466 if test "X$found_dir" != "X"; then
8471 if test "X$found_dir" != "X"; then
8472 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name"
8473 if test "X$found_so" != "X"; then
8474 if test "$enable_rpath" = no \
8475 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
8476 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
8477 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
8480 for x in $ltrpathdirs; do
8481 if test "X$x" = "X$found_dir"; then
8486 if test -z "$haveit"; then
8487 ltrpathdirs="$ltrpathdirs $found_dir"
8489 if test "$acl_hardcode_direct" = yes; then
8490 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
8492 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
8493 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
8495 for x in $rpathdirs; do
8496 if test "X$x" = "X$found_dir"; then
8501 if test -z "$haveit"; then
8502 rpathdirs="$rpathdirs $found_dir"
8506 for x in $LDFLAGS $LIBPTH; do
8508 acl_save_prefix="$prefix"
8509 prefix="$acl_final_prefix"
8510 acl_save_exec_prefix="$exec_prefix"
8511 exec_prefix="$acl_final_exec_prefix"
8513 exec_prefix="$acl_save_exec_prefix"
8514 prefix="$acl_save_prefix"
8516 if test "X$x" = "X-L$found_dir"; then
8521 if test -z "$haveit"; then
8522 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir"
8524 if test "$acl_hardcode_minus_L" != no; then
8525 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
8527 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
8533 if test "X$found_a" != "X"; then
8534 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_a"
8536 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name"
8539 additional_includedir=
8540 case "$found_dir" in
8541 */$acl_libdirstem | */$acl_libdirstem/)
8542 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
8543 if test "$name" = 'pth'; then
8544 LIBPTH_PREFIX="$basedir"
8546 additional_includedir="$basedir/include"
8548 */$acl_libdirstem2 | */$acl_libdirstem2/)
8549 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
8550 if test "$name" = 'pth'; then
8551 LIBPTH_PREFIX="$basedir"
8553 additional_includedir="$basedir/include"
8556 if test "X$additional_includedir" != "X"; then
8557 if test "X$additional_includedir" != "X/usr/include"; then
8559 if test "X$additional_includedir" = "X/usr/local/include"; then
8560 if test -n "$GCC"; then
8562 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
8566 if test -z "$haveit"; then
8567 for x in $CPPFLAGS $INCPTH; do
8569 acl_save_prefix="$prefix"
8570 prefix="$acl_final_prefix"
8571 acl_save_exec_prefix="$exec_prefix"
8572 exec_prefix="$acl_final_exec_prefix"
8574 exec_prefix="$acl_save_exec_prefix"
8575 prefix="$acl_save_prefix"
8577 if test "X$x" = "X-I$additional_includedir"; then
8582 if test -z "$haveit"; then
8583 if test -d "$additional_includedir"; then
8584 INCPTH="${INCPTH}${INCPTH:+ }-I$additional_includedir"
8590 if test -n "$found_la"; then
8591 save_libdir="$libdir"
8593 */* | *\\*) . "$found_la" ;;
8594 *) . "./$found_la" ;;
8596 libdir="$save_libdir"
8597 for dep in $dependency_libs; do
8600 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8601 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
8602 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
8604 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
8605 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
8606 if test -n "$GCC"; then
8608 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
8612 if test -z "$haveit"; then
8614 for x in $LDFLAGS $LIBPTH; do
8616 acl_save_prefix="$prefix"
8617 prefix="$acl_final_prefix"
8618 acl_save_exec_prefix="$exec_prefix"
8619 exec_prefix="$acl_final_exec_prefix"
8621 exec_prefix="$acl_save_exec_prefix"
8622 prefix="$acl_save_prefix"
8624 if test "X$x" = "X-L$additional_libdir"; then
8629 if test -z "$haveit"; then
8630 if test -d "$additional_libdir"; then
8631 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$additional_libdir"
8635 for x in $LDFLAGS $LTLIBPTH; do
8637 acl_save_prefix="$prefix"
8638 prefix="$acl_final_prefix"
8639 acl_save_exec_prefix="$exec_prefix"
8640 exec_prefix="$acl_final_exec_prefix"
8642 exec_prefix="$acl_save_exec_prefix"
8643 prefix="$acl_save_prefix"
8645 if test "X$x" = "X-L$additional_libdir"; then
8650 if test -z "$haveit"; then
8651 if test -d "$additional_libdir"; then
8652 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir"
8659 dir=`echo "X$dep" | sed -e 's/^X-R//'`
8660 if test "$enable_rpath" != no; then
8662 for x in $rpathdirs; do
8663 if test "X$x" = "X$dir"; then
8668 if test -z "$haveit"; then
8669 rpathdirs="$rpathdirs $dir"
8672 for x in $ltrpathdirs; do
8673 if test "X$x" = "X$dir"; then
8678 if test -z "$haveit"; then
8679 ltrpathdirs="$ltrpathdirs $dir"
8684 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8687 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8690 LIBPTH="${LIBPTH}${LIBPTH:+ }$dep"
8691 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$dep"
8697 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
8698 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-l$name"
8704 if test "X$rpathdirs" != "X"; then
8705 if test -n "$acl_hardcode_libdir_separator"; then
8707 for found_dir in $rpathdirs; do
8708 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
8710 acl_save_libdir="$libdir"
8712 eval flag=\"$acl_hardcode_libdir_flag_spec\"
8713 libdir="$acl_save_libdir"
8714 LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
8716 for found_dir in $rpathdirs; do
8717 acl_save_libdir="$libdir"
8719 eval flag=\"$acl_hardcode_libdir_flag_spec\"
8720 libdir="$acl_save_libdir"
8721 LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
8725 if test "X$ltrpathdirs" != "X"; then
8726 for found_dir in $ltrpathdirs; do
8727 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir"
8736 ac_cv_libpth_libs="$LIBPTH"
8737 ac_cv_libpth_ltlibs="$LTLIBPTH"
8738 ac_cv_libpth_cppflags="$INCPTH"
8739 ac_cv_libpth_prefix="$LIBPTH_PREFIX"
8742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libpth_libs" >&5
8743 $as_echo "$ac_cv_libpth_libs" >&6; }
8744 LIBPTH="$ac_cv_libpth_libs"
8745 LTLIBPTH="$ac_cv_libpth_ltlibs"
8746 INCPTH="$ac_cv_libpth_cppflags"
8747 LIBPTH_PREFIX="$ac_cv_libpth_prefix"
8749 for element in $INCPTH; do
8751 for x in $CPPFLAGS; do
8753 acl_save_prefix="$prefix"
8754 prefix="$acl_final_prefix"
8755 acl_save_exec_prefix="$exec_prefix"
8756 exec_prefix="$acl_final_exec_prefix"
8758 exec_prefix="$acl_save_exec_prefix"
8759 prefix="$acl_save_prefix"
8761 if test "X$x" = "X$element"; then
8766 if test -z "$haveit"; then
8767 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8779 gl_save_LIBS="$LIBS"
8780 LIBS="$LIBS $LIBPTH"
8781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8782 /* end confdefs.h. */
8792 if ac_fn_c_try_link "$LINENO"; then :
8795 rm -f core conftest.err conftest.$ac_objext \
8796 conftest$ac_exeext conftest.$ac_ext
8797 LIBS="$gl_save_LIBS"
8798 if test -n "$gl_have_pth"; then
8801 LTLIBTHREAD="$LTLIBPTH"
8802 LIBMULTITHREAD="$LIBTHREAD"
8803 LTLIBMULTITHREAD="$LTLIBTHREAD"
8805 $as_echo "#define USE_PTH_THREADS 1" >>confdefs.h
8807 if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
8808 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
8810 $as_echo "#define USE_PTH_THREADS_WEAK 1" >>confdefs.h
8817 CPPFLAGS="$gl_save_CPPFLAGS"
8820 if test -z "$gl_have_pthread"; then
8821 case "$gl_use_threads" in
8822 yes | windows | win32) # The 'win32' is for backward compatibility.
8823 if { case "$host_os" in
8828 gl_threads_api=windows
8830 $as_echo "#define USE_WINDOWS_THREADS 1" >>confdefs.h
8837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multithread API to use" >&5
8838 $as_echo_n "checking for multithread API to use... " >&6; }
8839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_threads_api" >&5
8840 $as_echo "$gl_threads_api" >&6; }
8852 if test "$gl_threads_api" = posix; then
8853 # OSF/1 4.0 and Mac OS X 10.1 lack the pthread_rwlock_t type and the
8854 # pthread_rwlock_* functions.
8855 ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h>
8857 if test "x$ac_cv_type_pthread_rwlock_t" = xyes; then :
8859 $as_echo "#define HAVE_PTHREAD_RWLOCK 1" >>confdefs.h
8863 # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
8864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8865 /* end confdefs.h. */
8867 #include <pthread.h>
8872 #if __FreeBSD__ == 4
8873 error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
8874 #elif (defined __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ \
8875 && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 1070)
8876 error "No, in Mac OS X < 10.7 recursive mutexes actually don't work."
8878 int x = (int)PTHREAD_MUTEX_RECURSIVE;
8886 if ac_fn_c_try_compile "$LINENO"; then :
8888 $as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h
8891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8908 acl_save_prefix="$prefix"
8909 prefix="$acl_final_prefix"
8910 acl_save_exec_prefix="$exec_prefix"
8911 exec_prefix="$acl_final_exec_prefix"
8913 eval additional_includedir=\"$includedir\"
8914 eval additional_libdir=\"$libdir\"
8916 exec_prefix="$acl_save_exec_prefix"
8917 prefix="$acl_save_prefix"
8920 # Check whether --with-libiconv-prefix was given.
8921 if test "${with_libiconv_prefix+set}" = set; then :
8922 withval=$with_libiconv_prefix;
8923 if test "X$withval" = "Xno"; then
8926 if test "X$withval" = "X"; then
8928 acl_save_prefix="$prefix"
8929 prefix="$acl_final_prefix"
8930 acl_save_exec_prefix="$exec_prefix"
8931 exec_prefix="$acl_final_exec_prefix"
8933 eval additional_includedir=\"$includedir\"
8934 eval additional_libdir=\"$libdir\"
8936 exec_prefix="$acl_save_exec_prefix"
8937 prefix="$acl_save_prefix"
8940 additional_includedir="$withval/include"
8941 additional_libdir="$withval/$acl_libdirstem"
8942 if test "$acl_libdirstem2" != "$acl_libdirstem" \
8943 && ! test -d "$withval/$acl_libdirstem"; then
8944 additional_libdir="$withval/$acl_libdirstem2"
8958 names_already_handled=
8959 names_next_round='iconv '
8960 while test -n "$names_next_round"; do
8961 names_this_round="$names_next_round"
8963 for name in $names_this_round; do
8965 for n in $names_already_handled; do
8966 if test "$n" = "$name"; then
8971 if test -z "$already_handled"; then
8972 names_already_handled="$names_already_handled $name"
8973 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
8974 eval value=\"\$HAVE_LIB$uppername\"
8975 if test -n "$value"; then
8976 if test "$value" = yes; then
8977 eval value=\"\$LIB$uppername\"
8978 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
8979 eval value=\"\$LTLIB$uppername\"
8980 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
8989 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
8990 if test -n "$acl_shlibext"; then
8991 shrext=".$acl_shlibext" # typically: shrext=.so
8995 if test $use_additional = yes; then
8996 dir="$additional_libdir"
8997 if test -n "$acl_shlibext"; then
8998 if test -f "$dir/$libname$shrext"; then
9000 found_so="$dir/$libname$shrext"
9002 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
9003 ver=`(cd "$dir" && \
9004 for f in "$libname$shrext".*; do echo "$f"; done \
9005 | sed -e "s,^$libname$shrext\\\\.,," \
9006 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
9007 | sed 1q ) 2>/dev/null`
9008 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
9010 found_so="$dir/$libname$shrext.$ver"
9013 eval library_names=\"$acl_library_names_spec\"
9014 for f in $library_names; do
9015 if test -f "$dir/$f"; then
9024 if test "X$found_dir" = "X"; then
9025 if test -f "$dir/$libname.$acl_libext"; then
9027 found_a="$dir/$libname.$acl_libext"
9030 if test "X$found_dir" != "X"; then
9031 if test -f "$dir/$libname.la"; then
9032 found_la="$dir/$libname.la"
9036 if test "X$found_dir" = "X"; then
9037 for x in $LDFLAGS $LTLIBICONV; do
9039 acl_save_prefix="$prefix"
9040 prefix="$acl_final_prefix"
9041 acl_save_exec_prefix="$exec_prefix"
9042 exec_prefix="$acl_final_exec_prefix"
9044 exec_prefix="$acl_save_exec_prefix"
9045 prefix="$acl_save_prefix"
9049 dir=`echo "X$x" | sed -e 's/^X-L//'`
9050 if test -n "$acl_shlibext"; then
9051 if test -f "$dir/$libname$shrext"; then
9053 found_so="$dir/$libname$shrext"
9055 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
9056 ver=`(cd "$dir" && \
9057 for f in "$libname$shrext".*; do echo "$f"; done \
9058 | sed -e "s,^$libname$shrext\\\\.,," \
9059 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
9060 | sed 1q ) 2>/dev/null`
9061 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
9063 found_so="$dir/$libname$shrext.$ver"
9066 eval library_names=\"$acl_library_names_spec\"
9067 for f in $library_names; do
9068 if test -f "$dir/$f"; then
9077 if test "X$found_dir" = "X"; then
9078 if test -f "$dir/$libname.$acl_libext"; then
9080 found_a="$dir/$libname.$acl_libext"
9083 if test "X$found_dir" != "X"; then
9084 if test -f "$dir/$libname.la"; then
9085 found_la="$dir/$libname.la"
9090 if test "X$found_dir" != "X"; then
9095 if test "X$found_dir" != "X"; then
9096 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9097 if test "X$found_so" != "X"; then
9098 if test "$enable_rpath" = no \
9099 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
9100 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
9101 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9104 for x in $ltrpathdirs; do
9105 if test "X$x" = "X$found_dir"; then
9110 if test -z "$haveit"; then
9111 ltrpathdirs="$ltrpathdirs $found_dir"
9113 if test "$acl_hardcode_direct" = yes; then
9114 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9116 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
9117 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9119 for x in $rpathdirs; do
9120 if test "X$x" = "X$found_dir"; then
9125 if test -z "$haveit"; then
9126 rpathdirs="$rpathdirs $found_dir"
9130 for x in $LDFLAGS $LIBICONV; do
9132 acl_save_prefix="$prefix"
9133 prefix="$acl_final_prefix"
9134 acl_save_exec_prefix="$exec_prefix"
9135 exec_prefix="$acl_final_exec_prefix"
9137 exec_prefix="$acl_save_exec_prefix"
9138 prefix="$acl_save_prefix"
9140 if test "X$x" = "X-L$found_dir"; then
9145 if test -z "$haveit"; then
9146 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9148 if test "$acl_hardcode_minus_L" != no; then
9149 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9151 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9157 if test "X$found_a" != "X"; then
9158 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
9160 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9163 additional_includedir=
9164 case "$found_dir" in
9165 */$acl_libdirstem | */$acl_libdirstem/)
9166 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
9167 if test "$name" = 'iconv'; then
9168 LIBICONV_PREFIX="$basedir"
9170 additional_includedir="$basedir/include"
9172 */$acl_libdirstem2 | */$acl_libdirstem2/)
9173 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
9174 if test "$name" = 'iconv'; then
9175 LIBICONV_PREFIX="$basedir"
9177 additional_includedir="$basedir/include"
9180 if test "X$additional_includedir" != "X"; then
9181 if test "X$additional_includedir" != "X/usr/include"; then
9183 if test "X$additional_includedir" = "X/usr/local/include"; then
9184 if test -n "$GCC"; then
9186 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
9190 if test -z "$haveit"; then
9191 for x in $CPPFLAGS $INCICONV; do
9193 acl_save_prefix="$prefix"
9194 prefix="$acl_final_prefix"
9195 acl_save_exec_prefix="$exec_prefix"
9196 exec_prefix="$acl_final_exec_prefix"
9198 exec_prefix="$acl_save_exec_prefix"
9199 prefix="$acl_save_prefix"
9201 if test "X$x" = "X-I$additional_includedir"; then
9206 if test -z "$haveit"; then
9207 if test -d "$additional_includedir"; then
9208 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9214 if test -n "$found_la"; then
9215 save_libdir="$libdir"
9217 */* | *\\*) . "$found_la" ;;
9218 *) . "./$found_la" ;;
9220 libdir="$save_libdir"
9221 for dep in $dependency_libs; do
9224 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9225 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
9226 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
9228 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
9229 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
9230 if test -n "$GCC"; then
9232 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
9236 if test -z "$haveit"; then
9238 for x in $LDFLAGS $LIBICONV; do
9240 acl_save_prefix="$prefix"
9241 prefix="$acl_final_prefix"
9242 acl_save_exec_prefix="$exec_prefix"
9243 exec_prefix="$acl_final_exec_prefix"
9245 exec_prefix="$acl_save_exec_prefix"
9246 prefix="$acl_save_prefix"
9248 if test "X$x" = "X-L$additional_libdir"; then
9253 if test -z "$haveit"; then
9254 if test -d "$additional_libdir"; then
9255 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9259 for x in $LDFLAGS $LTLIBICONV; do
9261 acl_save_prefix="$prefix"
9262 prefix="$acl_final_prefix"
9263 acl_save_exec_prefix="$exec_prefix"
9264 exec_prefix="$acl_final_exec_prefix"
9266 exec_prefix="$acl_save_exec_prefix"
9267 prefix="$acl_save_prefix"
9269 if test "X$x" = "X-L$additional_libdir"; then
9274 if test -z "$haveit"; then
9275 if test -d "$additional_libdir"; then
9276 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
9283 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9284 if test "$enable_rpath" != no; then
9286 for x in $rpathdirs; do
9287 if test "X$x" = "X$dir"; then
9292 if test -z "$haveit"; then
9293 rpathdirs="$rpathdirs $dir"
9296 for x in $ltrpathdirs; do
9297 if test "X$x" = "X$dir"; then
9302 if test -z "$haveit"; then
9303 ltrpathdirs="$ltrpathdirs $dir"
9308 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9311 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9314 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
9315 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
9321 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9322 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
9328 if test "X$rpathdirs" != "X"; then
9329 if test -n "$acl_hardcode_libdir_separator"; then
9331 for found_dir in $rpathdirs; do
9332 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
9334 acl_save_libdir="$libdir"
9336 eval flag=\"$acl_hardcode_libdir_flag_spec\"
9337 libdir="$acl_save_libdir"
9338 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9340 for found_dir in $rpathdirs; do
9341 acl_save_libdir="$libdir"
9343 eval flag=\"$acl_hardcode_libdir_flag_spec\"
9344 libdir="$acl_save_libdir"
9345 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9349 if test "X$ltrpathdirs" != "X"; then
9350 for found_dir in $ltrpathdirs; do
9351 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
9366 am_save_CPPFLAGS="$CPPFLAGS"
9368 for element in $INCICONV; do
9370 for x in $CPPFLAGS; do
9372 acl_save_prefix="$prefix"
9373 prefix="$acl_final_prefix"
9374 acl_save_exec_prefix="$exec_prefix"
9375 exec_prefix="$acl_final_exec_prefix"
9377 exec_prefix="$acl_save_exec_prefix"
9378 prefix="$acl_save_prefix"
9380 if test "X$x" = "X$element"; then
9385 if test -z "$haveit"; then
9386 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
9392 $as_echo_n "checking for iconv... " >&6; }
9393 if ${am_cv_func_iconv+:} false; then :
9394 $as_echo_n "(cached) " >&6
9397 am_cv_func_iconv="no, consider installing GNU libiconv"
9399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9400 /* end confdefs.h. */
9408 iconv_t cd = iconv_open("","");
9409 iconv(cd,NULL,NULL,NULL,NULL);
9415 if ac_fn_c_try_link "$LINENO"; then :
9416 am_cv_func_iconv=yes
9418 rm -f core conftest.err conftest.$ac_objext \
9419 conftest$ac_exeext conftest.$ac_ext
9420 if test "$am_cv_func_iconv" != yes; then
9421 am_save_LIBS="$LIBS"
9422 LIBS="$LIBS $LIBICONV"
9423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9424 /* end confdefs.h. */
9432 iconv_t cd = iconv_open("","");
9433 iconv(cd,NULL,NULL,NULL,NULL);
9439 if ac_fn_c_try_link "$LINENO"; then :
9441 am_cv_func_iconv=yes
9443 rm -f core conftest.err conftest.$ac_objext \
9444 conftest$ac_exeext conftest.$ac_ext
9445 LIBS="$am_save_LIBS"
9449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
9450 $as_echo "$am_cv_func_iconv" >&6; }
9451 if test "$am_cv_func_iconv" = yes; then
9452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
9453 $as_echo_n "checking for working iconv... " >&6; }
9454 if ${am_cv_func_iconv_works+:} false; then :
9455 $as_echo_n "(cached) " >&6
9458 am_save_LIBS="$LIBS"
9459 if test $am_cv_lib_iconv = yes; then
9460 LIBS="$LIBS $LIBICONV"
9462 if test "$cross_compiling" = yes; then :
9465 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
9466 *) am_cv_func_iconv_works="guessing yes" ;;
9470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9471 /* end confdefs.h. */
9478 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
9481 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
9482 if (cd_utf8_to_88591 != (iconv_t)(-1))
9484 static const char input[] = "\342\202\254"; /* EURO SIGN */
9486 const char *inptr = input;
9487 size_t inbytesleft = strlen (input);
9489 size_t outbytesleft = sizeof (buf);
9490 size_t res = iconv (cd_utf8_to_88591,
9491 (char **) &inptr, &inbytesleft,
9492 &outptr, &outbytesleft);
9495 iconv_close (cd_utf8_to_88591);
9498 /* Test against Solaris 10 bug: Failures are not distinguishable from
9499 successful returns. */
9501 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
9502 if (cd_ascii_to_88591 != (iconv_t)(-1))
9504 static const char input[] = "\263";
9506 const char *inptr = input;
9507 size_t inbytesleft = strlen (input);
9509 size_t outbytesleft = sizeof (buf);
9510 size_t res = iconv (cd_ascii_to_88591,
9511 (char **) &inptr, &inbytesleft,
9512 &outptr, &outbytesleft);
9515 iconv_close (cd_ascii_to_88591);
9518 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
9520 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
9521 if (cd_88591_to_utf8 != (iconv_t)(-1))
9523 static const char input[] = "\304";
9524 static char buf[2] = { (char)0xDE, (char)0xAD };
9525 const char *inptr = input;
9526 size_t inbytesleft = 1;
9528 size_t outbytesleft = 1;
9529 size_t res = iconv (cd_88591_to_utf8,
9530 (char **) &inptr, &inbytesleft,
9531 &outptr, &outbytesleft);
9532 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
9534 iconv_close (cd_88591_to_utf8);
9537 #if 0 /* This bug could be worked around by the caller. */
9538 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
9540 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
9541 if (cd_88591_to_utf8 != (iconv_t)(-1))
9543 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
9545 const char *inptr = input;
9546 size_t inbytesleft = strlen (input);
9548 size_t outbytesleft = sizeof (buf);
9549 size_t res = iconv (cd_88591_to_utf8,
9550 (char **) &inptr, &inbytesleft,
9551 &outptr, &outbytesleft);
9554 iconv_close (cd_88591_to_utf8);
9558 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
9560 if (/* Try standardized names. */
9561 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
9562 /* Try IRIX, OSF/1 names. */
9563 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
9564 /* Try AIX names. */
9565 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
9566 /* Try HP-UX names. */
9567 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
9572 if ac_fn_c_try_run "$LINENO"; then :
9573 am_cv_func_iconv_works=yes
9575 am_cv_func_iconv_works=no
9577 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9578 conftest.$ac_objext conftest.beam conftest.$ac_ext
9581 LIBS="$am_save_LIBS"
9584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
9585 $as_echo "$am_cv_func_iconv_works" >&6; }
9586 case "$am_cv_func_iconv_works" in
9587 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
9588 *) am_func_iconv=yes ;;
9591 am_func_iconv=no am_cv_lib_iconv=no
9593 if test "$am_func_iconv" = yes; then
9595 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
9598 if test "$am_cv_lib_iconv" = yes; then
9599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
9600 $as_echo_n "checking how to link with libiconv... " >&6; }
9601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
9602 $as_echo "$LIBICONV" >&6; }
9604 CPPFLAGS="$am_save_CPPFLAGS"
9611 if test "$am_cv_func_iconv" = yes; then
9612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
9613 $as_echo_n "checking for iconv declaration... " >&6; }
9614 if ${am_cv_proto_iconv+:} false; then :
9615 $as_echo_n "(cached) " >&6
9618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9619 /* end confdefs.h. */
9627 #if defined(__STDC__) || defined(_MSC_VER) || defined(__cplusplus)
9628 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9641 if ac_fn_c_try_compile "$LINENO"; then :
9642 am_cv_proto_iconv_arg1=""
9644 am_cv_proto_iconv_arg1="const"
9646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9647 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);"
9650 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
9651 { $as_echo "$as_me:${as_lineno-$LINENO}: result:
9652 $am_cv_proto_iconv" >&5
9654 $am_cv_proto_iconv" >&6; }
9656 cat >>confdefs.h <<_ACEOF
9657 #define ICONV_CONST $am_cv_proto_iconv_arg1
9666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9667 /* end confdefs.h. */
9668 int foo (int a) { a = __builtin_expect (a, 10); return a == 10 ? 0 : 1; }
9677 if ac_fn_c_try_link "$LINENO"; then :
9679 $as_echo "#define HAVE_BUILTIN_EXPECT 1" >>confdefs.h
9682 rm -f core conftest.err conftest.$ac_objext \
9683 conftest$ac_exeext conftest.$ac_ext
9685 for ac_header in argz.h inttypes.h limits.h unistd.h sys/param.h
9687 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9688 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9689 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9690 cat >>confdefs.h <<_ACEOF
9691 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9698 for ac_func in getcwd getegid geteuid getgid getuid mempcpy munmap \
9699 stpcpy strcasecmp strdup strtoul tsearch uselocale argz_count \
9700 argz_stringify argz_next __fsetlocking
9702 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9703 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9704 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9705 cat >>confdefs.h <<_ACEOF
9706 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9713 ac_fn_c_check_decl "$LINENO" "feof_unlocked" "ac_cv_have_decl_feof_unlocked" "#include <stdio.h>
9715 if test "x$ac_cv_have_decl_feof_unlocked" = xyes; then :
9721 cat >>confdefs.h <<_ACEOF
9722 #define HAVE_DECL_FEOF_UNLOCKED $ac_have_decl
9724 ac_fn_c_check_decl "$LINENO" "fgets_unlocked" "ac_cv_have_decl_fgets_unlocked" "#include <stdio.h>
9726 if test "x$ac_cv_have_decl_fgets_unlocked" = xyes; then :
9732 cat >>confdefs.h <<_ACEOF
9733 #define HAVE_DECL_FGETS_UNLOCKED $ac_have_decl
9739 for ac_prog in bison
9741 # Extract the first word of "$ac_prog", so it can be a program name with args.
9742 set dummy $ac_prog; ac_word=$2
9743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9744 $as_echo_n "checking for $ac_word... " >&6; }
9745 if ${ac_cv_prog_INTLBISON+:} false; then :
9746 $as_echo_n "(cached) " >&6
9748 if test -n "$INTLBISON"; then
9749 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
9751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9755 test -z "$as_dir" && as_dir=.
9756 for ac_exec_ext in '' $ac_executable_extensions; do
9757 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9758 ac_cv_prog_INTLBISON="$ac_prog"
9759 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9768 INTLBISON=$ac_cv_prog_INTLBISON
9769 if test -n "$INTLBISON"; then
9770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
9771 $as_echo "$INTLBISON" >&6; }
9773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9774 $as_echo "no" >&6; }
9778 test -n "$INTLBISON" && break
9781 if test -z "$INTLBISON"; then
9784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
9785 $as_echo_n "checking version of bison... " >&6; }
9786 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
9787 case $ac_prog_version in
9788 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
9789 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
9790 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
9791 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
9793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
9794 $as_echo "$ac_prog_version" >&6; }
9796 if test $ac_verc_fail = yes; then
9802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
9803 $as_echo_n "checking for long long int... " >&6; }
9804 if ${ac_cv_type_long_long_int+:} false; then :
9805 $as_echo_n "(cached) " >&6
9807 ac_cv_type_long_long_int=yes
9808 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
9809 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
9810 if test $ac_cv_type_long_long_int = yes; then
9811 if test "$cross_compiling" = yes; then :
9814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9815 /* end confdefs.h. */
9819 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
9820 # define LLONG_MAX (HALF - 1 + HALF)
9825 long long int n = 1;
9829 long long int m = n << i;
9832 if (LLONG_MAX / 2 < m)
9840 if ac_fn_c_try_run "$LINENO"; then :
9843 ac_cv_type_long_long_int=no
9845 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9846 conftest.$ac_objext conftest.beam conftest.$ac_ext
9852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
9853 $as_echo "$ac_cv_type_long_long_int" >&6; }
9854 if test $ac_cv_type_long_long_int = yes; then
9856 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
9861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
9862 $as_echo_n "checking for wchar_t... " >&6; }
9863 if ${gt_cv_c_wchar_t+:} false; then :
9864 $as_echo_n "(cached) " >&6
9866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9867 /* end confdefs.h. */
9869 wchar_t foo = (wchar_t)'\0';
9878 if ac_fn_c_try_compile "$LINENO"; then :
9883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
9886 $as_echo "$gt_cv_c_wchar_t" >&6; }
9887 if test $gt_cv_c_wchar_t = yes; then
9889 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
9894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
9895 $as_echo_n "checking for wint_t... " >&6; }
9896 if ${gt_cv_c_wint_t+:} false; then :
9897 $as_echo_n "(cached) " >&6
9899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9900 /* end confdefs.h. */
9902 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
9904 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
9905 before <wchar.h>. */
9910 wint_t foo = (wchar_t)'\0';
9919 if ac_fn_c_try_compile "$LINENO"; then :
9924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
9927 $as_echo "$gt_cv_c_wint_t" >&6; }
9928 if test $gt_cv_c_wint_t = yes; then
9930 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
9937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
9938 $as_echo_n "checking for intmax_t... " >&6; }
9939 if ${gt_cv_c_intmax_t+:} false; then :
9940 $as_echo_n "(cached) " >&6
9942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9943 /* end confdefs.h. */
9947 #if HAVE_STDINT_H_WITH_UINTMAX
9950 #if HAVE_INTTYPES_H_WITH_UINTMAX
9951 #include <inttypes.h>
9963 if ac_fn_c_try_compile "$LINENO"; then :
9964 gt_cv_c_intmax_t=yes
9968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
9971 $as_echo "$gt_cv_c_intmax_t" >&6; }
9972 if test $gt_cv_c_intmax_t = yes; then
9974 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
9980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
9981 $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
9982 if ${gt_cv_func_printf_posix+:} false; then :
9983 $as_echo_n "(cached) " >&6
9986 if test "$cross_compiling" = yes; then :
9988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9989 /* end confdefs.h. */
9991 #if defined __NetBSD__ || defined __BEOS__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
9996 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9997 $EGREP "notposix" >/dev/null 2>&1; then :
9998 gt_cv_func_printf_posix="guessing no"
10000 gt_cv_func_printf_posix="guessing yes"
10006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10007 /* end confdefs.h. */
10010 #include <string.h>
10011 /* The string "%2$d %1$d", with dollar characters protected from the shell's
10012 dollar expansion (possibly an autoconf bug). */
10013 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
10014 static char buf[100];
10017 sprintf (buf, format, 33, 55);
10018 return (strcmp (buf, "55 33") != 0);
10021 if ac_fn_c_try_run "$LINENO"; then :
10022 gt_cv_func_printf_posix=yes
10024 gt_cv_func_printf_posix=no
10026 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10027 conftest.$ac_objext conftest.beam conftest.$ac_ext
10032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
10033 $as_echo "$gt_cv_func_printf_posix" >&6; }
10034 case $gt_cv_func_printf_posix in
10037 $as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
10043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library >= 2.1 or uClibc" >&5
10044 $as_echo_n "checking whether we are using the GNU C Library >= 2.1 or uClibc... " >&6; }
10045 if ${ac_cv_gnu_library_2_1+:} false; then :
10046 $as_echo_n "(cached) " >&6
10048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10049 /* end confdefs.h. */
10051 #include <features.h>
10052 #ifdef __GNU_LIBRARY__
10053 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
10062 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10063 $EGREP "Lucky" >/dev/null 2>&1; then :
10064 ac_cv_gnu_library_2_1=yes
10066 ac_cv_gnu_library_2_1=no
10073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
10074 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
10076 GLIBC21="$ac_cv_gnu_library_2_1"
10080 for ac_header in stdint.h
10082 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
10083 if test "x$ac_cv_header_stdint_h" = xyes; then :
10084 cat >>confdefs.h <<_ACEOF
10085 #define HAVE_STDINT_H 1
10092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
10093 $as_echo_n "checking for SIZE_MAX... " >&6; }
10094 if ${gl_cv_size_max+:} false; then :
10095 $as_echo_n "(cached) " >&6
10099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10100 /* end confdefs.h. */
10102 #include <limits.h>
10104 #include <stdint.h>
10111 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10112 $EGREP "Found it" >/dev/null 2>&1; then :
10117 if test -z "$gl_cv_size_max"; then
10118 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1" "#include <stddef.h>
10119 #include <limits.h>"; then :
10122 size_t_bits_minus_1=
10125 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then :
10131 if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
10132 if test $fits_in_uint = 1; then
10133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10134 /* end confdefs.h. */
10135 #include <stddef.h>
10137 extern unsigned long foo;
10147 if ac_fn_c_try_compile "$LINENO"; then :
10150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10152 if test $fits_in_uint = 1; then
10153 gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
10155 gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
10158 gl_cv_size_max='((size_t)~(size_t)0)'
10163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5
10164 $as_echo "$gl_cv_size_max" >&6; }
10165 if test "$gl_cv_size_max" != yes; then
10167 cat >>confdefs.h <<_ACEOF
10168 #define SIZE_MAX $gl_cv_size_max
10176 for ac_header in stdint.h
10178 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
10179 if test "x$ac_cv_header_stdint_h" = xyes; then :
10180 cat >>confdefs.h <<_ACEOF
10181 #define HAVE_STDINT_H 1
10192 for ac_func in $ac_func_list
10194 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10195 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10196 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10197 cat >>confdefs.h <<_ACEOF
10198 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
10212 $as_echo_n "checking for working fcntl.h... " >&6; }
10213 if ${gl_cv_header_working_fcntl_h+:} false; then :
10214 $as_echo_n "(cached) " >&6
10216 if test "$cross_compiling" = yes; then :
10217 gl_cv_header_working_fcntl_h=cross-compiling
10219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10220 /* end confdefs.h. */
10221 #include <sys/types.h>
10222 #include <sys/stat.h>
10224 # include <unistd.h>
10225 #else /* on Windows with MSVC */
10227 # include <stdlib.h>
10228 # defined sleep(n) _sleep ((n) * 1000)
10232 #define O_NOATIME 0
10235 #define O_NOFOLLOW 0
10237 static int const constants[] =
10239 O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
10240 O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
10247 int result = !constants;
10250 static char const sym[] = "conftest.sym";
10251 if (symlink ("/dev/null", sym) != 0)
10255 int fd = open (sym, O_WRONLY | O_NOFOLLOW | O_CREAT, 0);
10262 if (unlink (sym) != 0 || symlink (".", sym) != 0)
10266 int fd = open (sym, O_RDONLY | O_NOFOLLOW);
10277 static char const file[] = "confdefs.h";
10278 int fd = open (file, O_RDONLY | O_NOATIME);
10284 if (fstat (fd, &st0) != 0)
10290 if (read (fd, &c, 1) != 1)
10294 if (close (fd) != 0)
10299 if (stat (file, &st1) != 0)
10302 if (st0.st_atime != st1.st_atime)
10314 if ac_fn_c_try_run "$LINENO"; then :
10315 gl_cv_header_working_fcntl_h=yes
10318 4) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
10319 64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
10320 68) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
10321 *) gl_cv_header_working_fcntl_h='no';;
10324 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10325 conftest.$ac_objext conftest.beam conftest.$ac_ext
10329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
10330 $as_echo "$gl_cv_header_working_fcntl_h" >&6; }
10332 case $gl_cv_header_working_fcntl_h in #(
10333 *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
10337 cat >>confdefs.h <<_ACEOF
10338 #define HAVE_WORKING_O_NOATIME $ac_val
10342 case $gl_cv_header_working_fcntl_h in #(
10343 *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
10347 cat >>confdefs.h <<_ACEOF
10348 #define HAVE_WORKING_O_NOFOLLOW $ac_val
10353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
10354 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
10355 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
10356 $as_echo_n "(cached) " >&6
10358 gt_save_LIBS="$LIBS"
10359 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10361 /* end confdefs.h. */
10362 #include <CoreFoundation/CFPreferences.h>
10366 CFPreferencesCopyAppValue(NULL, NULL)
10371 if ac_fn_c_try_link "$LINENO"; then :
10372 gt_cv_func_CFPreferencesCopyAppValue=yes
10374 gt_cv_func_CFPreferencesCopyAppValue=no
10376 rm -f core conftest.err conftest.$ac_objext \
10377 conftest$ac_exeext conftest.$ac_ext
10378 LIBS="$gt_save_LIBS"
10380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
10381 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
10382 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
10384 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
10387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
10388 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
10389 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
10390 $as_echo_n "(cached) " >&6
10392 gt_save_LIBS="$LIBS"
10393 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10395 /* end confdefs.h. */
10396 #include <CoreFoundation/CFLocale.h>
10400 CFLocaleCopyCurrent();
10405 if ac_fn_c_try_link "$LINENO"; then :
10406 gt_cv_func_CFLocaleCopyCurrent=yes
10408 gt_cv_func_CFLocaleCopyCurrent=no
10410 rm -f core conftest.err conftest.$ac_objext \
10411 conftest$ac_exeext conftest.$ac_ext
10412 LIBS="$gt_save_LIBS"
10414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
10415 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
10416 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10418 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
10422 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10423 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
10435 case "$enable_silent_rules" in
10436 yes) INTL_DEFAULT_VERBOSITY=0;;
10437 no) INTL_DEFAULT_VERBOSITY=1;;
10438 *) INTL_DEFAULT_VERBOSITY=1;;
10442 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
10443 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
10447 $as_echo "#define ptrdiff_t long" >>confdefs.h
10452 for ac_header in features.h stddef.h stdlib.h string.h
10454 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10455 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10456 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10457 cat >>confdefs.h <<_ACEOF
10458 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10465 for ac_func in asprintf fwprintf newlocale putenv setenv setlocale \
10466 snprintf strnlen wcslen wcsnlen mbrtowc wcrtomb
10468 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10469 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10470 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10471 cat >>confdefs.h <<_ACEOF
10472 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10479 ac_fn_c_check_decl "$LINENO" "_snprintf" "ac_cv_have_decl__snprintf" "#include <stdio.h>
10481 if test "x$ac_cv_have_decl__snprintf" = xyes; then :
10487 cat >>confdefs.h <<_ACEOF
10488 #define HAVE_DECL__SNPRINTF $ac_have_decl
10490 ac_fn_c_check_decl "$LINENO" "_snwprintf" "ac_cv_have_decl__snwprintf" "#include <stdio.h>
10492 if test "x$ac_cv_have_decl__snwprintf" = xyes; then :
10498 cat >>confdefs.h <<_ACEOF
10499 #define HAVE_DECL__SNWPRINTF $ac_have_decl
10503 ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "#include <stdio.h>
10505 if test "x$ac_cv_have_decl_getc_unlocked" = xyes; then :
10511 cat >>confdefs.h <<_ACEOF
10512 #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
10516 case $gt_cv_func_printf_posix in
10517 *yes) HAVE_POSIX_PRINTF=1 ;;
10518 *) HAVE_POSIX_PRINTF=0 ;;
10521 if test "$ac_cv_func_asprintf" = yes; then
10527 if test "$ac_cv_func_snprintf" = yes; then
10533 if test "$ac_cv_func_newlocale" = yes; then
10539 if test "$ac_cv_func_wprintf" = yes; then
10547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10548 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10549 if ${am_cv_langinfo_codeset+:} false; then :
10550 $as_echo_n "(cached) " >&6
10552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10553 /* end confdefs.h. */
10554 #include <langinfo.h>
10558 char* cs = nl_langinfo(CODESET); return !cs;
10563 if ac_fn_c_try_link "$LINENO"; then :
10564 am_cv_langinfo_codeset=yes
10566 am_cv_langinfo_codeset=no
10568 rm -f core conftest.err conftest.$ac_objext \
10569 conftest$ac_exeext conftest.$ac_ext
10572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10573 $as_echo "$am_cv_langinfo_codeset" >&6; }
10574 if test $am_cv_langinfo_codeset = yes; then
10576 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10582 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10583 if ${gt_cv_val_LC_MESSAGES+:} false; then :
10584 $as_echo_n "(cached) " >&6
10586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10587 /* end confdefs.h. */
10588 #include <locale.h>
10597 if ac_fn_c_try_link "$LINENO"; then :
10598 gt_cv_val_LC_MESSAGES=yes
10600 gt_cv_val_LC_MESSAGES=no
10602 rm -f core conftest.err conftest.$ac_objext \
10603 conftest$ac_exeext conftest.$ac_ext
10605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5
10606 $as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
10607 if test $gt_cv_val_LC_MESSAGES = yes; then
10609 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10614 if test "$enable_shared" = yes; then
10616 mingw* | cygwin*) is_woe32dll=yes ;;
10617 *) is_woe32dll=no ;;
10622 WOE32DLL=$is_woe32dll
10626 mingw* | cygwin*) is_woe32=yes ;;
10631 if test $WOE32 = yes; then
10632 if test -n "$ac_tool_prefix"; then
10633 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
10634 set dummy ${ac_tool_prefix}windres; ac_word=$2
10635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10636 $as_echo_n "checking for $ac_word... " >&6; }
10637 if ${ac_cv_prog_WINDRES+:} false; then :
10638 $as_echo_n "(cached) " >&6
10640 if test -n "$WINDRES"; then
10641 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
10643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10644 for as_dir in $PATH
10647 test -z "$as_dir" && as_dir=.
10648 for ac_exec_ext in '' $ac_executable_extensions; do
10649 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10650 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
10651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10660 WINDRES=$ac_cv_prog_WINDRES
10661 if test -n "$WINDRES"; then
10662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
10663 $as_echo "$WINDRES" >&6; }
10665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10666 $as_echo "no" >&6; }
10671 if test -z "$ac_cv_prog_WINDRES"; then
10672 ac_ct_WINDRES=$WINDRES
10673 # Extract the first word of "windres", so it can be a program name with args.
10674 set dummy windres; ac_word=$2
10675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10676 $as_echo_n "checking for $ac_word... " >&6; }
10677 if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
10678 $as_echo_n "(cached) " >&6
10680 if test -n "$ac_ct_WINDRES"; then
10681 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
10683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10684 for as_dir in $PATH
10687 test -z "$as_dir" && as_dir=.
10688 for ac_exec_ext in '' $ac_executable_extensions; do
10689 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10690 ac_cv_prog_ac_ct_WINDRES="windres"
10691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10700 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
10701 if test -n "$ac_ct_WINDRES"; then
10702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
10703 $as_echo "$ac_ct_WINDRES" >&6; }
10705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10706 $as_echo "no" >&6; }
10709 if test "x$ac_ct_WINDRES" = x; then
10712 case $cross_compiling:$ac_tool_warned in
10714 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10715 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10716 ac_tool_warned=yes ;;
10718 WINDRES=$ac_ct_WINDRES
10721 WINDRES="$ac_cv_prog_WINDRES"
10727 hpux*) LTLIBC="" ;;
10757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
10758 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
10759 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
10760 $as_echo_n "(cached) " >&6
10762 gt_save_LIBS="$LIBS"
10763 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10765 /* end confdefs.h. */
10766 #include <CoreFoundation/CFPreferences.h>
10770 CFPreferencesCopyAppValue(NULL, NULL)
10775 if ac_fn_c_try_link "$LINENO"; then :
10776 gt_cv_func_CFPreferencesCopyAppValue=yes
10778 gt_cv_func_CFPreferencesCopyAppValue=no
10780 rm -f core conftest.err conftest.$ac_objext \
10781 conftest$ac_exeext conftest.$ac_ext
10782 LIBS="$gt_save_LIBS"
10784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
10785 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
10786 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
10788 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
10791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
10792 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
10793 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
10794 $as_echo_n "(cached) " >&6
10796 gt_save_LIBS="$LIBS"
10797 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10799 /* end confdefs.h. */
10800 #include <CoreFoundation/CFLocale.h>
10804 CFLocaleCopyCurrent();
10809 if ac_fn_c_try_link "$LINENO"; then :
10810 gt_cv_func_CFLocaleCopyCurrent=yes
10812 gt_cv_func_CFLocaleCopyCurrent=no
10814 rm -f core conftest.err conftest.$ac_objext \
10815 conftest$ac_exeext conftest.$ac_ext
10816 LIBS="$gt_save_LIBS"
10818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
10819 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
10820 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10822 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
10826 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10827 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
10835 BUILD_INCLUDED_LIBINTL=no
10836 USE_INCLUDED_LIBINTL=no
10842 case " $gt_needs " in
10843 *" need-formatstring-macros "*) gt_api_version=3 ;;
10844 *" need-ngettext "*) gt_api_version=2 ;;
10845 *) gt_api_version=1 ;;
10847 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
10848 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
10850 if test "$USE_NLS" = "yes"; then
10851 gt_use_preinstalled_gnugettext=no
10853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
10854 $as_echo_n "checking whether included gettext is requested... " >&6; }
10856 # Check whether --with-included-gettext was given.
10857 if test "${with_included_gettext+set}" = set; then :
10858 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
10860 nls_cv_force_use_gnu_gettext=no
10863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
10864 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
10866 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
10867 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
10870 if test $gt_api_version -ge 3; then
10871 gt_revision_test_code='
10872 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
10873 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
10875 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
10878 gt_revision_test_code=
10880 if test $gt_api_version -ge 2; then
10881 gt_expression_test_code=' + * ngettext ("", "", 0)'
10883 gt_expression_test_code=
10886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
10887 $as_echo_n "checking for GNU gettext in libc... " >&6; }
10888 if eval \${$gt_func_gnugettext_libc+:} false; then :
10889 $as_echo_n "(cached) " >&6
10891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10892 /* end confdefs.h. */
10894 #include <libintl.h>
10895 $gt_revision_test_code
10896 extern int _nl_msg_cat_cntr;
10897 extern int *_nl_domain_bindings;
10903 bindtextdomain ("", "");
10904 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
10910 if ac_fn_c_try_link "$LINENO"; then :
10911 eval "$gt_func_gnugettext_libc=yes"
10913 eval "$gt_func_gnugettext_libc=no"
10915 rm -f core conftest.err conftest.$ac_objext \
10916 conftest$ac_exeext conftest.$ac_ext
10918 eval ac_res=\$$gt_func_gnugettext_libc
10919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10920 $as_echo "$ac_res" >&6; }
10922 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
10933 acl_save_prefix="$prefix"
10934 prefix="$acl_final_prefix"
10935 acl_save_exec_prefix="$exec_prefix"
10936 exec_prefix="$acl_final_exec_prefix"
10938 eval additional_includedir=\"$includedir\"
10939 eval additional_libdir=\"$libdir\"
10941 exec_prefix="$acl_save_exec_prefix"
10942 prefix="$acl_save_prefix"
10945 # Check whether --with-libintl-prefix was given.
10946 if test "${with_libintl_prefix+set}" = set; then :
10947 withval=$with_libintl_prefix;
10948 if test "X$withval" = "Xno"; then
10951 if test "X$withval" = "X"; then
10953 acl_save_prefix="$prefix"
10954 prefix="$acl_final_prefix"
10955 acl_save_exec_prefix="$exec_prefix"
10956 exec_prefix="$acl_final_exec_prefix"
10958 eval additional_includedir=\"$includedir\"
10959 eval additional_libdir=\"$libdir\"
10961 exec_prefix="$acl_save_exec_prefix"
10962 prefix="$acl_save_prefix"
10965 additional_includedir="$withval/include"
10966 additional_libdir="$withval/$acl_libdirstem"
10967 if test "$acl_libdirstem2" != "$acl_libdirstem" \
10968 && ! test -d "$withval/$acl_libdirstem"; then
10969 additional_libdir="$withval/$acl_libdirstem2"
10983 names_already_handled=
10984 names_next_round='intl '
10985 while test -n "$names_next_round"; do
10986 names_this_round="$names_next_round"
10988 for name in $names_this_round; do
10990 for n in $names_already_handled; do
10991 if test "$n" = "$name"; then
10992 already_handled=yes
10996 if test -z "$already_handled"; then
10997 names_already_handled="$names_already_handled $name"
10998 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
10999 eval value=\"\$HAVE_LIB$uppername\"
11000 if test -n "$value"; then
11001 if test "$value" = yes; then
11002 eval value=\"\$LIB$uppername\"
11003 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
11004 eval value=\"\$LTLIB$uppername\"
11005 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
11014 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
11015 if test -n "$acl_shlibext"; then
11016 shrext=".$acl_shlibext" # typically: shrext=.so
11020 if test $use_additional = yes; then
11021 dir="$additional_libdir"
11022 if test -n "$acl_shlibext"; then
11023 if test -f "$dir/$libname$shrext"; then
11025 found_so="$dir/$libname$shrext"
11027 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
11028 ver=`(cd "$dir" && \
11029 for f in "$libname$shrext".*; do echo "$f"; done \
11030 | sed -e "s,^$libname$shrext\\\\.,," \
11031 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
11032 | sed 1q ) 2>/dev/null`
11033 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
11035 found_so="$dir/$libname$shrext.$ver"
11038 eval library_names=\"$acl_library_names_spec\"
11039 for f in $library_names; do
11040 if test -f "$dir/$f"; then
11049 if test "X$found_dir" = "X"; then
11050 if test -f "$dir/$libname.$acl_libext"; then
11052 found_a="$dir/$libname.$acl_libext"
11055 if test "X$found_dir" != "X"; then
11056 if test -f "$dir/$libname.la"; then
11057 found_la="$dir/$libname.la"
11061 if test "X$found_dir" = "X"; then
11062 for x in $LDFLAGS $LTLIBINTL; do
11064 acl_save_prefix="$prefix"
11065 prefix="$acl_final_prefix"
11066 acl_save_exec_prefix="$exec_prefix"
11067 exec_prefix="$acl_final_exec_prefix"
11069 exec_prefix="$acl_save_exec_prefix"
11070 prefix="$acl_save_prefix"
11074 dir=`echo "X$x" | sed -e 's/^X-L//'`
11075 if test -n "$acl_shlibext"; then
11076 if test -f "$dir/$libname$shrext"; then
11078 found_so="$dir/$libname$shrext"
11080 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
11081 ver=`(cd "$dir" && \
11082 for f in "$libname$shrext".*; do echo "$f"; done \
11083 | sed -e "s,^$libname$shrext\\\\.,," \
11084 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
11085 | sed 1q ) 2>/dev/null`
11086 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
11088 found_so="$dir/$libname$shrext.$ver"
11091 eval library_names=\"$acl_library_names_spec\"
11092 for f in $library_names; do
11093 if test -f "$dir/$f"; then
11102 if test "X$found_dir" = "X"; then
11103 if test -f "$dir/$libname.$acl_libext"; then
11105 found_a="$dir/$libname.$acl_libext"
11108 if test "X$found_dir" != "X"; then
11109 if test -f "$dir/$libname.la"; then
11110 found_la="$dir/$libname.la"
11115 if test "X$found_dir" != "X"; then
11120 if test "X$found_dir" != "X"; then
11121 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
11122 if test "X$found_so" != "X"; then
11123 if test "$enable_rpath" = no \
11124 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
11125 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
11126 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11129 for x in $ltrpathdirs; do
11130 if test "X$x" = "X$found_dir"; then
11135 if test -z "$haveit"; then
11136 ltrpathdirs="$ltrpathdirs $found_dir"
11138 if test "$acl_hardcode_direct" = yes; then
11139 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11141 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
11142 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11144 for x in $rpathdirs; do
11145 if test "X$x" = "X$found_dir"; then
11150 if test -z "$haveit"; then
11151 rpathdirs="$rpathdirs $found_dir"
11155 for x in $LDFLAGS $LIBINTL; do
11157 acl_save_prefix="$prefix"
11158 prefix="$acl_final_prefix"
11159 acl_save_exec_prefix="$exec_prefix"
11160 exec_prefix="$acl_final_exec_prefix"
11162 exec_prefix="$acl_save_exec_prefix"
11163 prefix="$acl_save_prefix"
11165 if test "X$x" = "X-L$found_dir"; then
11170 if test -z "$haveit"; then
11171 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
11173 if test "$acl_hardcode_minus_L" != no; then
11174 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11176 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
11182 if test "X$found_a" != "X"; then
11183 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
11185 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
11188 additional_includedir=
11189 case "$found_dir" in
11190 */$acl_libdirstem | */$acl_libdirstem/)
11191 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
11192 if test "$name" = 'intl'; then
11193 LIBINTL_PREFIX="$basedir"
11195 additional_includedir="$basedir/include"
11197 */$acl_libdirstem2 | */$acl_libdirstem2/)
11198 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
11199 if test "$name" = 'intl'; then
11200 LIBINTL_PREFIX="$basedir"
11202 additional_includedir="$basedir/include"
11205 if test "X$additional_includedir" != "X"; then
11206 if test "X$additional_includedir" != "X/usr/include"; then
11208 if test "X$additional_includedir" = "X/usr/local/include"; then
11209 if test -n "$GCC"; then
11211 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
11215 if test -z "$haveit"; then
11216 for x in $CPPFLAGS $INCINTL; do
11218 acl_save_prefix="$prefix"
11219 prefix="$acl_final_prefix"
11220 acl_save_exec_prefix="$exec_prefix"
11221 exec_prefix="$acl_final_exec_prefix"
11223 exec_prefix="$acl_save_exec_prefix"
11224 prefix="$acl_save_prefix"
11226 if test "X$x" = "X-I$additional_includedir"; then
11231 if test -z "$haveit"; then
11232 if test -d "$additional_includedir"; then
11233 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
11239 if test -n "$found_la"; then
11240 save_libdir="$libdir"
11241 case "$found_la" in
11242 */* | *\\*) . "$found_la" ;;
11243 *) . "./$found_la" ;;
11245 libdir="$save_libdir"
11246 for dep in $dependency_libs; do
11249 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
11250 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
11251 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
11253 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
11254 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
11255 if test -n "$GCC"; then
11257 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
11261 if test -z "$haveit"; then
11263 for x in $LDFLAGS $LIBINTL; do
11265 acl_save_prefix="$prefix"
11266 prefix="$acl_final_prefix"
11267 acl_save_exec_prefix="$exec_prefix"
11268 exec_prefix="$acl_final_exec_prefix"
11270 exec_prefix="$acl_save_exec_prefix"
11271 prefix="$acl_save_prefix"
11273 if test "X$x" = "X-L$additional_libdir"; then
11278 if test -z "$haveit"; then
11279 if test -d "$additional_libdir"; then
11280 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
11284 for x in $LDFLAGS $LTLIBINTL; do
11286 acl_save_prefix="$prefix"
11287 prefix="$acl_final_prefix"
11288 acl_save_exec_prefix="$exec_prefix"
11289 exec_prefix="$acl_final_exec_prefix"
11291 exec_prefix="$acl_save_exec_prefix"
11292 prefix="$acl_save_prefix"
11294 if test "X$x" = "X-L$additional_libdir"; then
11299 if test -z "$haveit"; then
11300 if test -d "$additional_libdir"; then
11301 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
11308 dir=`echo "X$dep" | sed -e 's/^X-R//'`
11309 if test "$enable_rpath" != no; then
11311 for x in $rpathdirs; do
11312 if test "X$x" = "X$dir"; then
11317 if test -z "$haveit"; then
11318 rpathdirs="$rpathdirs $dir"
11321 for x in $ltrpathdirs; do
11322 if test "X$x" = "X$dir"; then
11327 if test -z "$haveit"; then
11328 ltrpathdirs="$ltrpathdirs $dir"
11333 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11336 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11339 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
11340 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
11346 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
11347 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
11353 if test "X$rpathdirs" != "X"; then
11354 if test -n "$acl_hardcode_libdir_separator"; then
11356 for found_dir in $rpathdirs; do
11357 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
11359 acl_save_libdir="$libdir"
11361 eval flag=\"$acl_hardcode_libdir_flag_spec\"
11362 libdir="$acl_save_libdir"
11363 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
11365 for found_dir in $rpathdirs; do
11366 acl_save_libdir="$libdir"
11367 libdir="$found_dir"
11368 eval flag=\"$acl_hardcode_libdir_flag_spec\"
11369 libdir="$acl_save_libdir"
11370 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
11374 if test "X$ltrpathdirs" != "X"; then
11375 for found_dir in $ltrpathdirs; do
11376 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
11385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
11386 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
11387 if eval \${$gt_func_gnugettext_libintl+:} false; then :
11388 $as_echo_n "(cached) " >&6
11390 gt_save_CPPFLAGS="$CPPFLAGS"
11391 CPPFLAGS="$CPPFLAGS $INCINTL"
11392 gt_save_LIBS="$LIBS"
11393 LIBS="$LIBS $LIBINTL"
11394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11395 /* end confdefs.h. */
11397 #include <libintl.h>
11398 $gt_revision_test_code
11399 extern int _nl_msg_cat_cntr;
11404 const char *_nl_expand_alias (const char *);
11410 bindtextdomain ("", "");
11411 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
11417 if ac_fn_c_try_link "$LINENO"; then :
11418 eval "$gt_func_gnugettext_libintl=yes"
11420 eval "$gt_func_gnugettext_libintl=no"
11422 rm -f core conftest.err conftest.$ac_objext \
11423 conftest$ac_exeext conftest.$ac_ext
11424 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
11425 LIBS="$LIBS $LIBICONV"
11426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11427 /* end confdefs.h. */
11429 #include <libintl.h>
11430 $gt_revision_test_code
11431 extern int _nl_msg_cat_cntr;
11436 const char *_nl_expand_alias (const char *);
11442 bindtextdomain ("", "");
11443 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
11449 if ac_fn_c_try_link "$LINENO"; then :
11450 LIBINTL="$LIBINTL $LIBICONV"
11451 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
11452 eval "$gt_func_gnugettext_libintl=yes"
11455 rm -f core conftest.err conftest.$ac_objext \
11456 conftest$ac_exeext conftest.$ac_ext
11458 CPPFLAGS="$gt_save_CPPFLAGS"
11459 LIBS="$gt_save_LIBS"
11461 eval ac_res=\$$gt_func_gnugettext_libintl
11462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11463 $as_echo "$ac_res" >&6; }
11466 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
11467 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
11468 && test "$PACKAGE" != gettext-runtime \
11469 && test "$PACKAGE" != gettext-tools; }; then
11470 gt_use_preinstalled_gnugettext=yes
11478 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
11479 nls_cv_use_gnu_gettext=yes
11483 if test "$nls_cv_use_gnu_gettext" = "yes"; then
11484 BUILD_INCLUDED_LIBINTL=yes
11485 USE_INCLUDED_LIBINTL=yes
11486 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV $LIBTHREAD"
11487 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV $LTLIBTHREAD"
11488 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
11492 if test "$gt_use_preinstalled_gnugettext" = "yes" \
11493 || test "$nls_cv_use_gnu_gettext" = "yes"; then
11498 if test -n "$INTL_MACOSX_LIBS"; then
11499 if test "$gt_use_preinstalled_gnugettext" = "yes" \
11500 || test "$nls_cv_use_gnu_gettext" = "yes"; then
11501 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
11502 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
11506 if test "$gt_use_preinstalled_gnugettext" = "yes" \
11507 || test "$nls_cv_use_gnu_gettext" = "yes"; then
11509 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
11517 $as_echo_n "checking whether to use NLS... " >&6; }
11518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
11519 $as_echo "$USE_NLS" >&6; }
11520 if test "$USE_NLS" = "yes"; then
11521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
11522 $as_echo_n "checking where the gettext function comes from... " >&6; }
11523 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
11524 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
11525 gt_source="external libintl"
11530 gt_source="included intl directory"
11532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
11533 $as_echo "$gt_source" >&6; }
11536 if test "$USE_NLS" = "yes"; then
11538 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
11539 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
11540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
11541 $as_echo_n "checking how to link with libintl... " >&6; }
11542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
11543 $as_echo "$LIBINTL" >&6; }
11545 for element in $INCINTL; do
11547 for x in $CPPFLAGS; do
11549 acl_save_prefix="$prefix"
11550 prefix="$acl_final_prefix"
11551 acl_save_exec_prefix="$exec_prefix"
11552 exec_prefix="$acl_final_exec_prefix"
11554 exec_prefix="$acl_save_exec_prefix"
11555 prefix="$acl_save_prefix"
11557 if test "X$x" = "X$element"; then
11562 if test -z "$haveit"; then
11563 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11570 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
11573 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
11581 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
11582 BUILD_INCLUDED_LIBINTL=yes
11589 nls_cv_header_intl=
11590 nls_cv_header_libgt=
11602 if test "$USE_INCLUDED_LIBINTL" = yes; then
11603 INTLOBJS="\$(GETTOBJS)"
11607 INTL_LIBTOOL_SUFFIX_PREFIX=
11611 INTLLIBS="$LIBINTL"
11619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
11620 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
11622 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
11623 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
11624 $as_echo_n "(cached) " >&6
11626 cat >conftest.make <<\_ACEOF
11629 @echo '@@@%%%=$(MAKE)=@@@%%%'
11631 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
11632 case `${MAKE-make} -f conftest.make 2>/dev/null` in
11633 *@@@%%%=?*=@@@%%%*)
11634 eval ac_cv_prog_make_${ac_make}_set=yes;;
11636 eval ac_cv_prog_make_${ac_make}_set=no;;
11638 rm -f conftest.make
11640 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
11641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11642 $as_echo "yes" >&6; }
11645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11646 $as_echo "no" >&6; }
11647 SET_MAKE="MAKE=${MAKE-make}"
11650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5
11651 $as_echo_n "checking for GNU make... " >&6; }
11652 if ${_cv_gnu_make_command+:} false; then :
11653 $as_echo_n "(cached) " >&6
11655 _cv_gnu_make_command='' ;
11656 if test -n "$FORCE_NATIVE_MAKE" ; then
11659 MAKES="make gmake gnumake"
11661 for a in "$MAKE" $MAKES ; do
11662 if test -z "$a" ; then continue ; fi ;
11663 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
11664 _cv_gnu_make_command=$a ;
11670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_cv_gnu_make_command" >&5
11671 $as_echo "$_cv_gnu_make_command" >&6; } ;
11672 if test "x$_cv_gnu_make_command" != "x" ; then
11678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"Not found\"" >&5
11679 $as_echo "\"Not found\"" >&6; };
11684 # Extract the first word of "ln", so it can be a program name with args.
11685 set dummy ln; ac_word=$2
11686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11687 $as_echo_n "checking for $ac_word... " >&6; }
11688 if ${ac_cv_path_LN+:} false; then :
11689 $as_echo_n "(cached) " >&6
11693 ac_cv_path_LN="$LN" # Let the user override the test with a path.
11696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11697 for as_dir in $PATH
11700 test -z "$as_dir" && as_dir=.
11701 for ac_exec_ext in '' $ac_executable_extensions; do
11702 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11703 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
11704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11711 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
11716 if test -n "$LN"; then
11717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
11718 $as_echo "$LN" >&6; }
11720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11721 $as_echo "no" >&6; }
11726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
11727 $as_echo_n "checking whether ln -s works... " >&6; }
11729 if test "$LN_S" = "ln -s"; then
11730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11731 $as_echo "yes" >&6; }
11733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
11734 $as_echo "no, using $LN_S" >&6; }
11737 # Extract the first word of "mv", so it can be a program name with args.
11738 set dummy mv; ac_word=$2
11739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11740 $as_echo_n "checking for $ac_word... " >&6; }
11741 if ${ac_cv_path_MV+:} false; then :
11742 $as_echo_n "(cached) " >&6
11746 ac_cv_path_MV="$MV" # Let the user override the test with a path.
11749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11750 for as_dir in $PATH
11753 test -z "$as_dir" && as_dir=.
11754 for ac_exec_ext in '' $ac_executable_extensions; do
11755 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11756 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
11757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11764 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
11769 if test -n "$MV"; then
11770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
11771 $as_echo "$MV" >&6; }
11773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11774 $as_echo "no" >&6; }
11778 # Extract the first word of "cp", so it can be a program name with args.
11779 set dummy cp; ac_word=$2
11780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11781 $as_echo_n "checking for $ac_word... " >&6; }
11782 if ${ac_cv_path_CP+:} false; then :
11783 $as_echo_n "(cached) " >&6
11787 ac_cv_path_CP="$CP" # Let the user override the test with a path.
11790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11791 for as_dir in $PATH
11794 test -z "$as_dir" && as_dir=.
11795 for ac_exec_ext in '' $ac_executable_extensions; do
11796 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11797 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
11798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11805 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
11810 if test -n "$CP"; then
11811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
11812 $as_echo "$CP" >&6; }
11814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11815 $as_echo "no" >&6; }
11819 # Extract the first word of "rm", so it can be a program name with args.
11820 set dummy rm; ac_word=$2
11821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11822 $as_echo_n "checking for $ac_word... " >&6; }
11823 if ${ac_cv_path_RM+:} false; then :
11824 $as_echo_n "(cached) " >&6
11828 ac_cv_path_RM="$RM" # Let the user override the test with a path.
11831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11832 for as_dir in $PATH
11835 test -z "$as_dir" && as_dir=.
11836 for ac_exec_ext in '' $ac_executable_extensions; do
11837 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11838 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
11839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11846 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
11851 if test -n "$RM"; then
11852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
11853 $as_echo "$RM" >&6; }
11855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11856 $as_echo "no" >&6; }
11860 # Extract the first word of "chmod", so it can be a program name with args.
11861 set dummy chmod; ac_word=$2
11862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11863 $as_echo_n "checking for $ac_word... " >&6; }
11864 if ${ac_cv_path_CHMOD+:} false; then :
11865 $as_echo_n "(cached) " >&6
11869 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
11872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11873 for as_dir in $PATH
11876 test -z "$as_dir" && as_dir=.
11877 for ac_exec_ext in '' $ac_executable_extensions; do
11878 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11879 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
11880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11887 test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
11891 CHMOD=$ac_cv_path_CHMOD
11892 if test -n "$CHMOD"; then
11893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
11894 $as_echo "$CHMOD" >&6; }
11896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11897 $as_echo "no" >&6; }
11901 for ac_prog in gawk mawk nawk awk
11903 # Extract the first word of "$ac_prog", so it can be a program name with args.
11904 set dummy $ac_prog; ac_word=$2
11905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11906 $as_echo_n "checking for $ac_word... " >&6; }
11907 if ${ac_cv_prog_AWK+:} false; then :
11908 $as_echo_n "(cached) " >&6
11910 if test -n "$AWK"; then
11911 ac_cv_prog_AWK="$AWK" # Let the user override the test.
11913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11914 for as_dir in $PATH
11917 test -z "$as_dir" && as_dir=.
11918 for ac_exec_ext in '' $ac_executable_extensions; do
11919 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11920 ac_cv_prog_AWK="$ac_prog"
11921 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11930 AWK=$ac_cv_prog_AWK
11931 if test -n "$AWK"; then
11932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
11933 $as_echo "$AWK" >&6; }
11935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11936 $as_echo "no" >&6; }
11940 test -n "$AWK" && break
11943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
11944 $as_echo_n "checking for egrep... " >&6; }
11945 if ${ac_cv_path_EGREP+:} false; then :
11946 $as_echo_n "(cached) " >&6
11948 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
11949 then ac_cv_path_EGREP="$GREP -E"
11951 if test -z "$EGREP"; then
11952 ac_path_EGREP_found=false
11953 # Loop through the user's path and test for each of PROGNAME-LIST
11954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11955 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11958 test -z "$as_dir" && as_dir=.
11959 for ac_prog in egrep; do
11960 for ac_exec_ext in '' $ac_executable_extensions; do
11961 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
11962 as_fn_executable_p "$ac_path_EGREP" || continue
11963 # Check for GNU ac_path_EGREP and select it if it is found.
11964 # Check for GNU $ac_path_EGREP
11965 case `"$ac_path_EGREP" --version 2>&1` in
11967 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
11970 $as_echo_n 0123456789 >"conftest.in"
11973 cat "conftest.in" "conftest.in" >"conftest.tmp"
11974 mv "conftest.tmp" "conftest.in"
11975 cp "conftest.in" "conftest.nl"
11976 $as_echo 'EGREP' >> "conftest.nl"
11977 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11978 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11979 as_fn_arith $ac_count + 1 && ac_count=$as_val
11980 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
11981 # Best one so far, save it but keep looking for a better one
11982 ac_cv_path_EGREP="$ac_path_EGREP"
11983 ac_path_EGREP_max=$ac_count
11985 # 10*(2^10) chars as input seems more than enough
11986 test $ac_count -gt 10 && break
11988 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11991 $ac_path_EGREP_found && break 3
11996 if test -z "$ac_cv_path_EGREP"; then
11997 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12000 ac_cv_path_EGREP=$EGREP
12005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
12006 $as_echo "$ac_cv_path_EGREP" >&6; }
12007 EGREP="$ac_cv_path_EGREP"
12010 # Extract the first word of "sed", so it can be a program name with args.
12011 set dummy sed; 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_path_SED+:} false; then :
12015 $as_echo_n "(cached) " >&6
12019 ac_cv_path_SED="$SED" # Let the user override the test with a path.
12022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12023 for as_dir in $PATH
12026 test -z "$as_dir" && as_dir=.
12027 for ac_exec_ext in '' $ac_executable_extensions; do
12028 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12029 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
12030 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12037 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
12041 SED=$ac_cv_path_SED
12042 if test -n "$SED"; then
12043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
12044 $as_echo "$SED" >&6; }
12046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12047 $as_echo "no" >&6; }
12051 # Extract the first word of "perl", so it can be a program name with args.
12052 set dummy perl; ac_word=$2
12053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12054 $as_echo_n "checking for $ac_word... " >&6; }
12055 if ${ac_cv_path_PERL+:} false; then :
12056 $as_echo_n "(cached) " >&6
12060 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
12063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12064 for as_dir in $PATH
12067 test -z "$as_dir" && as_dir=.
12068 for ac_exec_ext in '' $ac_executable_extensions; do
12069 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12070 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
12071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12078 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
12082 PERL=$ac_cv_path_PERL
12083 if test -n "$PERL"; then
12084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
12085 $as_echo "$PERL" >&6; }
12087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12088 $as_echo "no" >&6; }
12092 # Extract the first word of "ldconfig", so it can be a program name with args.
12093 set dummy ldconfig; ac_word=$2
12094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12095 $as_echo_n "checking for $ac_word... " >&6; }
12096 if ${ac_cv_path_LDCONFIG+:} false; then :
12097 $as_echo_n "(cached) " >&6
12101 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
12104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12105 for as_dir in $PATH
12108 test -z "$as_dir" && as_dir=.
12109 for ac_exec_ext in '' $ac_executable_extensions; do
12110 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12111 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
12112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12119 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
12123 LDCONFIG=$ac_cv_path_LDCONFIG
12124 if test -n "$LDCONFIG"; then
12125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
12126 $as_echo "$LDCONFIG" >&6; }
12128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12129 $as_echo "no" >&6; }
12133 if test -n "$ac_tool_prefix"; then
12134 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
12135 set dummy ${ac_tool_prefix}ar; ac_word=$2
12136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12137 $as_echo_n "checking for $ac_word... " >&6; }
12138 if ${ac_cv_prog_AR+:} false; then :
12139 $as_echo_n "(cached) " >&6
12141 if test -n "$AR"; then
12142 ac_cv_prog_AR="$AR" # Let the user override the test.
12144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12145 for as_dir in $PATH
12148 test -z "$as_dir" && as_dir=.
12149 for ac_exec_ext in '' $ac_executable_extensions; do
12150 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12151 ac_cv_prog_AR="${ac_tool_prefix}ar"
12152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12162 if test -n "$AR"; then
12163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12164 $as_echo "$AR" >&6; }
12166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12167 $as_echo "no" >&6; }
12172 if test -z "$ac_cv_prog_AR"; then
12174 # Extract the first word of "ar", so it can be a program name with args.
12175 set dummy ar; ac_word=$2
12176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12177 $as_echo_n "checking for $ac_word... " >&6; }
12178 if ${ac_cv_prog_ac_ct_AR+:} false; then :
12179 $as_echo_n "(cached) " >&6
12181 if test -n "$ac_ct_AR"; then
12182 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12185 for as_dir in $PATH
12188 test -z "$as_dir" && as_dir=.
12189 for ac_exec_ext in '' $ac_executable_extensions; do
12190 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12191 ac_cv_prog_ac_ct_AR="ar"
12192 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12201 ac_ct_AR=$ac_cv_prog_ac_ct_AR
12202 if test -n "$ac_ct_AR"; then
12203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
12204 $as_echo "$ac_ct_AR" >&6; }
12206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12207 $as_echo "no" >&6; }
12210 if test "x$ac_ct_AR" = x; then
12213 case $cross_compiling:$ac_tool_warned in
12215 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12216 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12217 ac_tool_warned=yes ;;
12222 AR="$ac_cv_prog_AR"
12225 if test -n "$ac_tool_prefix"; then
12226 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12227 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12229 $as_echo_n "checking for $ac_word... " >&6; }
12230 if ${ac_cv_prog_RANLIB+:} false; then :
12231 $as_echo_n "(cached) " >&6
12233 if test -n "$RANLIB"; then
12234 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12237 for as_dir in $PATH
12240 test -z "$as_dir" && as_dir=.
12241 for ac_exec_ext in '' $ac_executable_extensions; do
12242 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12243 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12253 RANLIB=$ac_cv_prog_RANLIB
12254 if test -n "$RANLIB"; then
12255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12256 $as_echo "$RANLIB" >&6; }
12258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12259 $as_echo "no" >&6; }
12264 if test -z "$ac_cv_prog_RANLIB"; then
12265 ac_ct_RANLIB=$RANLIB
12266 # Extract the first word of "ranlib", so it can be a program name with args.
12267 set dummy ranlib; ac_word=$2
12268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12269 $as_echo_n "checking for $ac_word... " >&6; }
12270 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
12271 $as_echo_n "(cached) " >&6
12273 if test -n "$ac_ct_RANLIB"; then
12274 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12277 for as_dir in $PATH
12280 test -z "$as_dir" && as_dir=.
12281 for ac_exec_ext in '' $ac_executable_extensions; do
12282 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12283 ac_cv_prog_ac_ct_RANLIB="ranlib"
12284 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12293 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12294 if test -n "$ac_ct_RANLIB"; then
12295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12296 $as_echo "$ac_ct_RANLIB" >&6; }
12298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12299 $as_echo "no" >&6; }
12302 if test "x$ac_ct_RANLIB" = x; then
12305 case $cross_compiling:$ac_tool_warned in
12307 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12308 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12309 ac_tool_warned=yes ;;
12311 RANLIB=$ac_ct_RANLIB
12314 RANLIB="$ac_cv_prog_RANLIB"
12317 if test -n "$ac_tool_prefix"; then
12318 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12319 set dummy ${ac_tool_prefix}strip; ac_word=$2
12320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12321 $as_echo_n "checking for $ac_word... " >&6; }
12322 if ${ac_cv_prog_STRIP+:} false; then :
12323 $as_echo_n "(cached) " >&6
12325 if test -n "$STRIP"; then
12326 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12329 for as_dir in $PATH
12332 test -z "$as_dir" && as_dir=.
12333 for ac_exec_ext in '' $ac_executable_extensions; do
12334 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12335 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12345 STRIP=$ac_cv_prog_STRIP
12346 if test -n "$STRIP"; then
12347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12348 $as_echo "$STRIP" >&6; }
12350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12351 $as_echo "no" >&6; }
12356 if test -z "$ac_cv_prog_STRIP"; then
12358 # Extract the first word of "strip", so it can be a program name with args.
12359 set dummy strip; ac_word=$2
12360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12361 $as_echo_n "checking for $ac_word... " >&6; }
12362 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
12363 $as_echo_n "(cached) " >&6
12365 if test -n "$ac_ct_STRIP"; then
12366 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12369 for as_dir in $PATH
12372 test -z "$as_dir" && as_dir=.
12373 for ac_exec_ext in '' $ac_executable_extensions; do
12374 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12375 ac_cv_prog_ac_ct_STRIP="strip"
12376 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12385 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12386 if test -n "$ac_ct_STRIP"; then
12387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
12388 $as_echo "$ac_ct_STRIP" >&6; }
12390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12391 $as_echo "no" >&6; }
12394 if test "x$ac_ct_STRIP" = x; then
12397 case $cross_compiling:$ac_tool_warned in
12399 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12400 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12401 ac_tool_warned=yes ;;
12406 STRIP="$ac_cv_prog_STRIP"
12409 # Extract the first word of "makeinfo", so it can be a program name with args.
12410 set dummy makeinfo; ac_word=$2
12411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12412 $as_echo_n "checking for $ac_word... " >&6; }
12413 if ${ac_cv_prog_MAKEINFO+:} false; then :
12414 $as_echo_n "(cached) " >&6
12416 if test -n "$MAKEINFO"; then
12417 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
12419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12420 for as_dir in $PATH
12423 test -z "$as_dir" && as_dir=.
12424 for ac_exec_ext in '' $ac_executable_extensions; do
12425 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12426 ac_cv_prog_MAKEINFO="makeinfo"
12427 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12436 MAKEINFO=$ac_cv_prog_MAKEINFO
12437 if test -n "$MAKEINFO"; then
12438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
12439 $as_echo "$MAKEINFO" >&6; }
12441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12442 $as_echo "no" >&6; }
12446 if test "_$MAKEINFO" = "_"; then
12447 MAKEINFO="echo Makeinfo is missing. Info documentation will not be built."
12449 case "$MAKEINFO" in
12451 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
12452 *** Makeinfo is missing. Info documentation will not be built." >&5
12453 $as_echo "$as_me: WARNING:
12454 *** Makeinfo is missing. Info documentation will not be built." >&2;}
12462 # See if we need a separate native compiler.
12463 if test $cross_compiling = no; then
12467 for ac_prog in gcc cc
12469 # Extract the first word of "$ac_prog", so it can be a program name with args.
12470 set dummy $ac_prog; ac_word=$2
12471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12472 $as_echo_n "checking for $ac_word... " >&6; }
12473 if ${ac_cv_prog_BUILD_CC+:} false; then :
12474 $as_echo_n "(cached) " >&6
12476 if test -n "$BUILD_CC"; then
12477 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
12479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12480 for as_dir in $PATH
12483 test -z "$as_dir" && as_dir=.
12484 for ac_exec_ext in '' $ac_executable_extensions; do
12485 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12486 ac_cv_prog_BUILD_CC="$ac_prog"
12487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12496 BUILD_CC=$ac_cv_prog_BUILD_CC
12497 if test -n "$BUILD_CC"; then
12498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
12499 $as_echo "$BUILD_CC" >&6; }
12501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12502 $as_echo "no" >&6; }
12506 test -n "$BUILD_CC" && break
12510 for ac_header in attr/xattr.h 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
12512 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12513 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12514 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12515 cat >>confdefs.h <<_ACEOF
12516 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a dd(1) program that supports iflag=fullblock" >&5
12524 $as_echo_n "checking for a dd(1) program that supports iflag=fullblock... " >&6; }
12526 for i in dd gdd ; do
12527 if "$i" if=/dev/null of=/dev/null count=1 bs=10k 2>/dev/null iflag=fullblock oflag=append ; then
12532 if test -n "$DD" ; then
12533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DD" >&5
12534 $as_echo "$DD" >&6; }
12536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found, using dd" >&5
12537 $as_echo "not found, using dd" >&6; }
12539 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No GNU-compatible dd(1) program found, expect some self-test failures." >&5
12540 $as_echo "$as_me: WARNING: No GNU-compatible dd(1) program found, expect some self-test failures." >&2;}
12544 for ac_header in net/if.h
12546 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
12547 #if HAVE_SYS_TYPES_H
12548 #include <sys/types.h>
12550 #if HAVE_SYS_SOCKET
12551 #include <sys/socket.h>
12555 if test "x$ac_cv_header_net_if_h" = xyes; then :
12556 cat >>confdefs.h <<_ACEOF
12557 #define HAVE_NET_IF_H 1
12564 for ac_func in vprintf
12566 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
12567 if test "x$ac_cv_func_vprintf" = xyes; then :
12568 cat >>confdefs.h <<_ACEOF
12569 #define HAVE_VPRINTF 1
12572 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
12573 if test "x$ac_cv_func__doprnt" = xyes; then :
12575 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
12583 ac_fn_c_check_member "$LINENO" "struct dirent" "d_reclen" "ac_cv_member_struct_dirent_d_reclen" "#include <dirent.h>
12585 if test "x$ac_cv_member_struct_dirent_d_reclen" = xyes; then :
12587 $as_echo "#define HAVE_RECLEN_DIRENT 1" >>confdefs.h
12591 ac_fn_c_check_member "$LINENO" "struct stat" "st_atim" "ac_cv_member_struct_stat_st_atim" "$ac_includes_default"
12592 if test "x$ac_cv_member_struct_stat_st_atim" = xyes; then :
12594 cat >>confdefs.h <<_ACEOF
12595 #define HAVE_STRUCT_STAT_ST_ATIM 1
12601 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "#include <sys/types.h>
12603 if test "x$ac_cv_type_ssize_t" = xyes; then :
12605 $as_echo "#define HAVE_TYPE_SSIZE_T 1" >>confdefs.h
12609 ac_fn_c_check_decl "$LINENO" "llseek" "ac_cv_have_decl_llseek" "#include <unistd.h>
12611 if test "x$ac_cv_have_decl_llseek" = xyes; then :
12613 $as_echo "#define HAVE_LLSEEK_PROTOTYPE 1" >>confdefs.h
12617 ac_fn_c_check_decl "$LINENO" "lseek64" "ac_cv_have_decl_lseek64" "#define _LARGEFILE_SOURCE
12618 #define _LARGEFILE64_SOURCE
12619 #include <unistd.h>
12621 if test "x$ac_cv_have_decl_lseek64" = xyes; then :
12623 $as_echo "#define HAVE_LSEEK64_PROTOTYPE 1" >>confdefs.h
12627 # The cast to long int works around a bug in the HP C Compiler
12628 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12629 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12630 # This bug is HP SR number 8606223364.
12631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
12632 $as_echo_n "checking size of short... " >&6; }
12633 if ${ac_cv_sizeof_short+:} false; then :
12634 $as_echo_n "(cached) " >&6
12636 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
12639 if test "$ac_cv_type_short" = yes; then
12640 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12641 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12642 as_fn_error 77 "cannot compute sizeof (short)
12643 See \`config.log' for more details" "$LINENO" 5; }
12645 ac_cv_sizeof_short=0
12650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
12651 $as_echo "$ac_cv_sizeof_short" >&6; }
12655 cat >>confdefs.h <<_ACEOF
12656 #define SIZEOF_SHORT $ac_cv_sizeof_short
12660 # The cast to long int works around a bug in the HP C Compiler
12661 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12662 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12663 # This bug is HP SR number 8606223364.
12664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
12665 $as_echo_n "checking size of int... " >&6; }
12666 if ${ac_cv_sizeof_int+:} false; then :
12667 $as_echo_n "(cached) " >&6
12669 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
12672 if test "$ac_cv_type_int" = yes; then
12673 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12674 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12675 as_fn_error 77 "cannot compute sizeof (int)
12676 See \`config.log' for more details" "$LINENO" 5; }
12683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
12684 $as_echo "$ac_cv_sizeof_int" >&6; }
12688 cat >>confdefs.h <<_ACEOF
12689 #define SIZEOF_INT $ac_cv_sizeof_int
12693 # The cast to long int works around a bug in the HP C Compiler
12694 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12695 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12696 # This bug is HP SR number 8606223364.
12697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
12698 $as_echo_n "checking size of long... " >&6; }
12699 if ${ac_cv_sizeof_long+:} false; then :
12700 $as_echo_n "(cached) " >&6
12702 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
12705 if test "$ac_cv_type_long" = yes; then
12706 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12707 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12708 as_fn_error 77 "cannot compute sizeof (long)
12709 See \`config.log' for more details" "$LINENO" 5; }
12711 ac_cv_sizeof_long=0
12716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
12717 $as_echo "$ac_cv_sizeof_long" >&6; }
12721 cat >>confdefs.h <<_ACEOF
12722 #define SIZEOF_LONG $ac_cv_sizeof_long
12726 # The cast to long int works around a bug in the HP C Compiler
12727 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12728 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12729 # This bug is HP SR number 8606223364.
12730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
12731 $as_echo_n "checking size of long long... " >&6; }
12732 if ${ac_cv_sizeof_long_long+:} false; then :
12733 $as_echo_n "(cached) " >&6
12735 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
12738 if test "$ac_cv_type_long_long" = yes; then
12739 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12740 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12741 as_fn_error 77 "cannot compute sizeof (long long)
12742 See \`config.log' for more details" "$LINENO" 5; }
12744 ac_cv_sizeof_long_long=0
12749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
12750 $as_echo "$ac_cv_sizeof_long_long" >&6; }
12754 cat >>confdefs.h <<_ACEOF
12755 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
12759 # The cast to long int works around a bug in the HP C Compiler
12760 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12761 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12762 # This bug is HP SR number 8606223364.
12763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
12764 $as_echo_n "checking size of off_t... " >&6; }
12765 if ${ac_cv_sizeof_off_t+:} false; then :
12766 $as_echo_n "(cached) " >&6
12768 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
12771 if test "$ac_cv_type_off_t" = yes; then
12772 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12773 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12774 as_fn_error 77 "cannot compute sizeof (off_t)
12775 See \`config.log' for more details" "$LINENO" 5; }
12777 ac_cv_sizeof_off_t=0
12782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
12783 $as_echo "$ac_cv_sizeof_off_t" >&6; }
12787 cat >>confdefs.h <<_ACEOF
12788 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
12792 # The cast to long int works around a bug in the HP C Compiler
12793 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12794 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12795 # This bug is HP SR number 8606223364.
12796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
12797 $as_echo_n "checking size of time_t... " >&6; }
12798 if ${ac_cv_sizeof_time_t+:} false; then :
12799 $as_echo_n "(cached) " >&6
12801 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" "$ac_includes_default"; then :
12804 if test "$ac_cv_type_time_t" = yes; then
12805 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12806 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12807 as_fn_error 77 "cannot compute sizeof (time_t)
12808 See \`config.log' for more details" "$LINENO" 5; }
12810 ac_cv_sizeof_time_t=0
12815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
12816 $as_echo "$ac_cv_sizeof_time_t" >&6; }
12820 cat >>confdefs.h <<_ACEOF
12821 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
12825 SIZEOF_SHORT=$ac_cv_sizeof_short
12826 SIZEOF_INT=$ac_cv_sizeof_int
12827 SIZEOF_LONG=$ac_cv_sizeof_long
12828 SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
12829 SIZEOF_OFF_T=$ac_cv_sizeof_off_t
12830 SIZEOF_TIME_T=$ac_cv_sizeof_time_t
12837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
12838 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
12839 if ${ac_cv_c_bigendian+:} false; then :
12840 $as_echo_n "(cached) " >&6
12842 ac_cv_c_bigendian=unknown
12843 # See if we're dealing with a universal compiler.
12844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12845 /* end confdefs.h. */
12846 #ifndef __APPLE_CC__
12847 not a universal capable compiler
12852 if ac_fn_c_try_compile "$LINENO"; then :
12854 # Check for potential -arch flags. It is not universal unless
12855 # there are at least two -arch flags with different values.
12858 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
12859 if test -n "$ac_prev"; then
12861 i?86 | x86_64 | ppc | ppc64)
12862 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
12865 ac_cv_c_bigendian=universal
12871 elif test "x$ac_word" = "x-arch"; then
12876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12877 if test $ac_cv_c_bigendian = unknown; then
12878 # See if sys/param.h defines the BYTE_ORDER macro.
12879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12880 /* end confdefs.h. */
12881 #include <sys/types.h>
12882 #include <sys/param.h>
12887 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
12888 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
12890 bogus endian macros
12897 if ac_fn_c_try_compile "$LINENO"; then :
12898 # It does; now see whether it defined to BIG_ENDIAN or not.
12899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12900 /* end confdefs.h. */
12901 #include <sys/types.h>
12902 #include <sys/param.h>
12907 #if BYTE_ORDER != BIG_ENDIAN
12915 if ac_fn_c_try_compile "$LINENO"; then :
12916 ac_cv_c_bigendian=yes
12918 ac_cv_c_bigendian=no
12920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12924 if test $ac_cv_c_bigendian = unknown; then
12925 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
12926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12927 /* end confdefs.h. */
12928 #include <limits.h>
12933 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
12934 bogus endian macros
12941 if ac_fn_c_try_compile "$LINENO"; then :
12942 # It does; now see whether it defined to _BIG_ENDIAN or not.
12943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12944 /* end confdefs.h. */
12945 #include <limits.h>
12950 #ifndef _BIG_ENDIAN
12958 if ac_fn_c_try_compile "$LINENO"; then :
12959 ac_cv_c_bigendian=yes
12961 ac_cv_c_bigendian=no
12963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12967 if test $ac_cv_c_bigendian = unknown; then
12968 # Compile a test program.
12969 if test "$cross_compiling" = yes; then :
12970 # Try to guess by grepping values from an object file.
12971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12972 /* end confdefs.h. */
12973 short int ascii_mm[] =
12974 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12975 short int ascii_ii[] =
12976 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12977 int use_ascii (int i) {
12978 return ascii_mm[i] + ascii_ii[i];
12980 short int ebcdic_ii[] =
12981 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12982 short int ebcdic_mm[] =
12983 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12984 int use_ebcdic (int i) {
12985 return ebcdic_mm[i] + ebcdic_ii[i];
12992 return use_ascii (foo) == use_ebcdic (foo);
12997 if ac_fn_c_try_compile "$LINENO"; then :
12998 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
12999 ac_cv_c_bigendian=yes
13001 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
13002 if test "$ac_cv_c_bigendian" = unknown; then
13003 ac_cv_c_bigendian=no
13005 # finding both strings is unlikely to happen, but who knows?
13006 ac_cv_c_bigendian=unknown
13010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13013 /* end confdefs.h. */
13014 $ac_includes_default
13019 /* Are we little or big endian? From Harbison&Steele. */
13023 char c[sizeof (long int)];
13026 return u.c[sizeof (long int) - 1] == 1;
13032 if ac_fn_c_try_run "$LINENO"; then :
13033 ac_cv_c_bigendian=no
13035 ac_cv_c_bigendian=yes
13037 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13038 conftest.$ac_objext conftest.beam conftest.$ac_ext
13043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
13044 $as_echo "$ac_cv_c_bigendian" >&6; }
13045 case $ac_cv_c_bigendian in #(
13047 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
13053 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
13057 as_fn_error $? "unknown endianness
13058 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
13061 if test $cross_compiling = no; then
13062 BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
13064 CROSS_COMPILE="1" BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
13066 ASM_TYPES_HEADER=./asm_types.h
13068 echo "/* These defines are needed for the public ext2fs.h header file */" \
13070 if grep HAVE_SYS_TYPES_H confdefs.h > tmp_config.$$; then
13071 uniq tmp_config.$$ >> public_config.h
13073 echo "#undef HAVE_SYS_TYPES_H" >> public_config.h
13075 if grep WORDS_BIGENDIAN confdefs.h > tmp_config.$$; then
13076 uniq tmp_config.$$ >> public_config.h
13078 echo "#undef WORDS_BIGENDIAN" >> public_config.h
13080 rm -f tmp_config.$$
13081 PUBLIC_CONFIG_HEADER=./public_config.h
13083 for ac_header in inttypes.h
13085 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
13086 if test "x$ac_cv_header_inttypes_h" = xyes; then :
13087 cat >>confdefs.h <<_ACEOF
13088 #define HAVE_INTTYPES_H 1
13095 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
13096 if test "x$ac_cv_type_intptr_t" = xyes; then :
13098 cat >>confdefs.h <<_ACEOF
13099 #define HAVE_INTPTR_T 1
13105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat has a st_flags field" >&5
13106 $as_echo_n "checking whether struct stat has a st_flags field... " >&6; }
13107 if ${e2fsprogs_cv_struct_st_flags+:} false; then :
13108 $as_echo_n "(cached) " >&6
13110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13111 /* end confdefs.h. */
13112 #include <sys/stat.h>
13116 struct stat stat; stat.st_flags = 0;
13121 if ac_fn_c_try_compile "$LINENO"; then :
13122 e2fsprogs_cv_struct_st_flags=yes
13124 e2fsprogs_cv_struct_st_flags=no
13126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags" >&5
13130 $as_echo "$e2fsprogs_cv_struct_st_flags" >&6; }
13131 if test "$e2fsprogs_cv_struct_st_flags" = yes; then
13132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether st_flags field is useful" >&5
13133 $as_echo_n "checking whether st_flags field is useful... " >&6; }
13134 if ${e2fsprogs_cv_struct_st_flags_immut+:} false; then :
13135 $as_echo_n "(cached) " >&6
13137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13138 /* end confdefs.h. */
13139 #include <sys/stat.h>
13143 struct stat stat; stat.st_flags |= UF_IMMUTABLE;
13148 if ac_fn_c_try_compile "$LINENO"; then :
13149 e2fsprogs_cv_struct_st_flags_immut=yes
13151 e2fsprogs_cv_struct_st_flags_immut=no
13153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags_immut" >&5
13157 $as_echo "$e2fsprogs_cv_struct_st_flags_immut" >&6; }
13158 if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
13160 $as_echo "#define HAVE_STAT_FLAGS 1" >>confdefs.h
13164 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h>
13165 #include <sys/socket.h>
13167 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
13169 cat >>confdefs.h <<_ACEOF
13170 #define HAVE_SA_LEN 1
13175 if test -n "$BLKID_CMT"; then
13176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_probe_get_topology in -lblkid" >&5
13177 $as_echo_n "checking for blkid_probe_get_topology in -lblkid... " >&6; }
13178 if ${ac_cv_lib_blkid_blkid_probe_get_topology+:} false; then :
13179 $as_echo_n "(cached) " >&6
13181 ac_check_lib_save_LIBS=$LIBS
13182 LIBS="-lblkid $LIBS"
13183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13184 /* end confdefs.h. */
13186 /* Override any GCC internal prototype to avoid an error.
13187 Use char because int might match the return type of a GCC
13188 builtin and then its argument prototype would still apply. */
13192 char blkid_probe_get_topology ();
13196 return blkid_probe_get_topology ();
13201 if ac_fn_c_try_link "$LINENO"; then :
13202 ac_cv_lib_blkid_blkid_probe_get_topology=yes
13204 ac_cv_lib_blkid_blkid_probe_get_topology=no
13206 rm -f core conftest.err conftest.$ac_objext \
13207 conftest$ac_exeext conftest.$ac_ext
13208 LIBS=$ac_check_lib_save_LIBS
13210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_probe_get_topology" >&5
13211 $as_echo "$ac_cv_lib_blkid_blkid_probe_get_topology" >&6; }
13212 if test "x$ac_cv_lib_blkid_blkid_probe_get_topology" = xyes; then :
13214 $as_echo "#define HAVE_BLKID_PROBE_GET_TOPOLOGY 1" >>confdefs.h
13218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_probe_enable_partitions in -lblkid" >&5
13219 $as_echo_n "checking for blkid_probe_enable_partitions in -lblkid... " >&6; }
13220 if ${ac_cv_lib_blkid_blkid_probe_enable_partitions+:} false; then :
13221 $as_echo_n "(cached) " >&6
13223 ac_check_lib_save_LIBS=$LIBS
13224 LIBS="-lblkid $LIBS"
13225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13226 /* end confdefs.h. */
13228 /* Override any GCC internal prototype to avoid an error.
13229 Use char because int might match the return type of a GCC
13230 builtin and then its argument prototype would still apply. */
13234 char blkid_probe_enable_partitions ();
13238 return blkid_probe_enable_partitions ();
13243 if ac_fn_c_try_link "$LINENO"; then :
13244 ac_cv_lib_blkid_blkid_probe_enable_partitions=yes
13246 ac_cv_lib_blkid_blkid_probe_enable_partitions=no
13248 rm -f core conftest.err conftest.$ac_objext \
13249 conftest$ac_exeext conftest.$ac_ext
13250 LIBS=$ac_check_lib_save_LIBS
13252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_probe_enable_partitions" >&5
13253 $as_echo "$ac_cv_lib_blkid_blkid_probe_enable_partitions" >&6; }
13254 if test "x$ac_cv_lib_blkid_blkid_probe_enable_partitions" = xyes; then :
13256 $as_echo "#define HAVE_BLKID_PROBE_ENABLE_PARTITIONS 1" >>confdefs.h
13261 if test -n "$DLOPEN_LIB" ; then
13262 ac_cv_func_dlopen=yes
13264 for ac_func in __secure_getenv add_key backtrace 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
13266 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13267 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13268 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13269 cat >>confdefs.h <<_ACEOF
13270 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
13278 $as_echo_n "checking for socket in -lsocket... " >&6; }
13279 if ${ac_cv_lib_socket_socket+:} false; then :
13280 $as_echo_n "(cached) " >&6
13282 ac_check_lib_save_LIBS=$LIBS
13283 LIBS="-lsocket $LIBS"
13284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13285 /* end confdefs.h. */
13287 /* Override any GCC internal prototype to avoid an error.
13288 Use char because int might match the return type of a GCC
13289 builtin and then its argument prototype would still apply. */
13302 if ac_fn_c_try_link "$LINENO"; then :
13303 ac_cv_lib_socket_socket=yes
13305 ac_cv_lib_socket_socket=no
13307 rm -f core conftest.err conftest.$ac_objext \
13308 conftest$ac_exeext conftest.$ac_ext
13309 LIBS=$ac_check_lib_save_LIBS
13311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
13312 $as_echo "$ac_cv_lib_socket_socket" >&6; }
13313 if test "x$ac_cv_lib_socket_socket" = xyes; then :
13314 SOCKET_LIB=-lsocket
13318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for magic_file in -lmagic" >&5
13319 $as_echo_n "checking for magic_file in -lmagic... " >&6; }
13320 if ${ac_cv_lib_magic_magic_file+:} false; then :
13321 $as_echo_n "(cached) " >&6
13323 ac_check_lib_save_LIBS=$LIBS
13324 LIBS="-lmagic $LIBS"
13325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13326 /* end confdefs.h. */
13328 /* Override any GCC internal prototype to avoid an error.
13329 Use char because int might match the return type of a GCC
13330 builtin and then its argument prototype would still apply. */
13334 char magic_file ();
13338 return magic_file ();
13343 if ac_fn_c_try_link "$LINENO"; then :
13344 ac_cv_lib_magic_magic_file=yes
13346 ac_cv_lib_magic_magic_file=no
13348 rm -f core conftest.err conftest.$ac_objext \
13349 conftest$ac_exeext conftest.$ac_ext
13350 LIBS=$ac_check_lib_save_LIBS
13352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_magic_magic_file" >&5
13353 $as_echo "$ac_cv_lib_magic_magic_file" >&6; }
13354 if test "x$ac_cv_lib_magic_magic_file" = xyes; then :
13356 for ac_header in magic.h
13358 ac_fn_c_check_header_mongrel "$LINENO" "magic.h" "ac_cv_header_magic_h" "$ac_includes_default"
13359 if test "x$ac_cv_header_magic_h" = xyes; then :
13360 cat >>confdefs.h <<_ACEOF
13361 #define HAVE_MAGIC_H 1
13370 if test "$ac_cv_func_dlopen" = yes ; then
13371 MAGIC_LIB=$DLOPEN_LIB
13374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
13375 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
13376 if ${ac_cv_lib_rt_clock_gettime+:} false; then :
13377 $as_echo_n "(cached) " >&6
13379 ac_check_lib_save_LIBS=$LIBS
13381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13382 /* end confdefs.h. */
13384 /* Override any GCC internal prototype to avoid an error.
13385 Use char because int might match the return type of a GCC
13386 builtin and then its argument prototype would still apply. */
13390 char clock_gettime ();
13394 return clock_gettime ();
13399 if ac_fn_c_try_link "$LINENO"; then :
13400 ac_cv_lib_rt_clock_gettime=yes
13402 ac_cv_lib_rt_clock_gettime=no
13404 rm -f core conftest.err conftest.$ac_objext \
13405 conftest$ac_exeext conftest.$ac_ext
13406 LIBS=$ac_check_lib_save_LIBS
13408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
13409 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
13410 if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
13411 CLOCK_GETTIME_LIB=-lrt
13417 # Check whether --enable-fuse2fs was given.
13418 if test "${enable_fuse2fs+set}" = set; then :
13419 enableval=$enable_fuse2fs; if test "$enableval" = "no"
13422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling fuse2fs" >&5
13423 $as_echo "Disabling fuse2fs" >&6; }
13425 for ac_header in pthread.h fuse.h
13427 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13428 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#define _FILE_OFFSET_BITS 64
13429 #define FUSE_USE_VERSION 29
13431 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13432 cat >>confdefs.h <<_ACEOF
13433 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13437 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13438 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13439 as_fn_error $? "Cannot find fuse2fs headers.
13440 See \`config.log' for more details" "$LINENO" 5; }
13446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13447 /* end confdefs.h. */
13448 #define FUSE_USE_VERSION 29
13450 #include <linux/fs.h>
13451 #include <linux/falloc.h>
13452 #include <linux/xattr.h>
13463 if ac_fn_c_try_cpp "$LINENO"; then :
13466 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13467 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13468 as_fn_error $? "Cannot find fuse2fs Linux headers.
13469 See \`config.log' for more details" "$LINENO" 5; }
13471 rm -f conftest.err conftest.i conftest.$ac_ext
13473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -losxfuse" >&5
13474 $as_echo_n "checking for fuse_main in -losxfuse... " >&6; }
13475 if ${ac_cv_lib_osxfuse_fuse_main+:} false; then :
13476 $as_echo_n "(cached) " >&6
13478 ac_check_lib_save_LIBS=$LIBS
13479 LIBS="-losxfuse $LIBS"
13480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13481 /* end confdefs.h. */
13483 /* Override any GCC internal prototype to avoid an error.
13484 Use char because int might match the return type of a GCC
13485 builtin and then its argument prototype would still apply. */
13493 return fuse_main ();
13498 if ac_fn_c_try_link "$LINENO"; then :
13499 ac_cv_lib_osxfuse_fuse_main=yes
13501 ac_cv_lib_osxfuse_fuse_main=no
13503 rm -f core conftest.err conftest.$ac_objext \
13504 conftest$ac_exeext conftest.$ac_ext
13505 LIBS=$ac_check_lib_save_LIBS
13507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_osxfuse_fuse_main" >&5
13508 $as_echo "$ac_cv_lib_osxfuse_fuse_main" >&6; }
13509 if test "x$ac_cv_lib_osxfuse_fuse_main" = xyes; then :
13512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -lfuse" >&5
13513 $as_echo_n "checking for fuse_main in -lfuse... " >&6; }
13514 if ${ac_cv_lib_fuse_fuse_main+:} false; then :
13515 $as_echo_n "(cached) " >&6
13517 ac_check_lib_save_LIBS=$LIBS
13518 LIBS="-lfuse $LIBS"
13519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13520 /* end confdefs.h. */
13522 /* Override any GCC internal prototype to avoid an error.
13523 Use char because int might match the return type of a GCC
13524 builtin and then its argument prototype would still apply. */
13532 return fuse_main ();
13537 if ac_fn_c_try_link "$LINENO"; then :
13538 ac_cv_lib_fuse_fuse_main=yes
13540 ac_cv_lib_fuse_fuse_main=no
13542 rm -f core conftest.err conftest.$ac_objext \
13543 conftest$ac_exeext conftest.$ac_ext
13544 LIBS=$ac_check_lib_save_LIBS
13546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fuse_fuse_main" >&5
13547 $as_echo "$ac_cv_lib_fuse_fuse_main" >&6; }
13548 if test "x$ac_cv_lib_fuse_fuse_main" = xyes; then :
13551 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13552 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13553 as_fn_error $? "Cannot find fuse library.
13554 See \`config.log' for more details" "$LINENO" 5; }
13559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling fuse2fs" >&5
13560 $as_echo "Enabling fuse2fs" >&6; }
13564 for ac_header in pthread.h fuse.h
13566 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13567 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#define _FILE_OFFSET_BITS 64
13568 #define FUSE_USE_VERSION 29
13570 # include <linux/fs.h>
13571 # include <linux/falloc.h>
13572 # include <linux/xattr.h>
13575 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13576 cat >>confdefs.h <<_ACEOF
13577 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13586 if test -z "$FUSE_CMT"
13588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -losxfuse" >&5
13589 $as_echo_n "checking for fuse_main in -losxfuse... " >&6; }
13590 if ${ac_cv_lib_osxfuse_fuse_main+:} false; then :
13591 $as_echo_n "(cached) " >&6
13593 ac_check_lib_save_LIBS=$LIBS
13594 LIBS="-losxfuse $LIBS"
13595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13596 /* end confdefs.h. */
13598 /* Override any GCC internal prototype to avoid an error.
13599 Use char because int might match the return type of a GCC
13600 builtin and then its argument prototype would still apply. */
13608 return fuse_main ();
13613 if ac_fn_c_try_link "$LINENO"; then :
13614 ac_cv_lib_osxfuse_fuse_main=yes
13616 ac_cv_lib_osxfuse_fuse_main=no
13618 rm -f core conftest.err conftest.$ac_objext \
13619 conftest$ac_exeext conftest.$ac_ext
13620 LIBS=$ac_check_lib_save_LIBS
13622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_osxfuse_fuse_main" >&5
13623 $as_echo "$ac_cv_lib_osxfuse_fuse_main" >&6; }
13624 if test "x$ac_cv_lib_osxfuse_fuse_main" = xyes; then :
13627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -lfuse" >&5
13628 $as_echo_n "checking for fuse_main in -lfuse... " >&6; }
13629 if ${ac_cv_lib_fuse_fuse_main+:} false; then :
13630 $as_echo_n "(cached) " >&6
13632 ac_check_lib_save_LIBS=$LIBS
13633 LIBS="-lfuse $LIBS"
13634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13635 /* end confdefs.h. */
13637 /* Override any GCC internal prototype to avoid an error.
13638 Use char because int might match the return type of a GCC
13639 builtin and then its argument prototype would still apply. */
13647 return fuse_main ();
13652 if ac_fn_c_try_link "$LINENO"; then :
13653 ac_cv_lib_fuse_fuse_main=yes
13655 ac_cv_lib_fuse_fuse_main=no
13657 rm -f core conftest.err conftest.$ac_objext \
13658 conftest$ac_exeext conftest.$ac_ext
13659 LIBS=$ac_check_lib_save_LIBS
13661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fuse_fuse_main" >&5
13662 $as_echo "$ac_cv_lib_fuse_fuse_main" >&6; }
13663 if test "x$ac_cv_lib_fuse_fuse_main" = xyes; then :
13672 if test -z "$FUSE_CMT"
13674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling fuse2fs by default." >&5
13675 $as_echo "Enabling fuse2fs by default." >&6; }
13682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for optreset" >&5
13683 $as_echo_n "checking for optreset... " >&6; }
13684 if ${ac_cv_have_optreset+:} false; then :
13685 $as_echo_n "(cached) " >&6
13687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13688 /* end confdefs.h. */
13689 #include <unistd.h>
13692 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13693 $EGREP "optreset" >/dev/null 2>&1; then :
13694 ac_cv_have_optreset=yes
13696 ac_cv_have_optreset=no
13701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_optreset" >&5
13702 $as_echo "$ac_cv_have_optreset" >&6; }
13703 if test $ac_cv_have_optreset = yes; then
13705 $as_echo "#define HAVE_OPTRESET 1" >>confdefs.h
13710 echo GL_THREADS_API: ${gl_threads_api}
13711 if test "${gl_threads_api}" != none
13713 ac_fn_c_check_func "$LINENO" "sem_init" "ac_cv_func_sem_init"
13714 if test "x$ac_cv_func_sem_init" = xyes; then :
13717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lpthread" >&5
13718 $as_echo_n "checking for sem_init in -lpthread... " >&6; }
13719 if ${ac_cv_lib_pthread_sem_init+:} false; then :
13720 $as_echo_n "(cached) " >&6
13722 ac_check_lib_save_LIBS=$LIBS
13723 LIBS="-lpthread $LIBS"
13724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13725 /* end confdefs.h. */
13727 /* Override any GCC internal prototype to avoid an error.
13728 Use char because int might match the return type of a GCC
13729 builtin and then its argument prototype would still apply. */
13737 return sem_init ();
13742 if ac_fn_c_try_link "$LINENO"; then :
13743 ac_cv_lib_pthread_sem_init=yes
13745 ac_cv_lib_pthread_sem_init=no
13747 rm -f core conftest.err conftest.$ac_objext \
13748 conftest$ac_exeext conftest.$ac_ext
13749 LIBS=$ac_check_lib_save_LIBS
13751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_sem_init" >&5
13752 $as_echo "$ac_cv_lib_pthread_sem_init" >&6; }
13753 if test "x$ac_cv_lib_pthread_sem_init" = xyes; then :
13754 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
13756 SEM_INIT_LIB=-lpthread
13758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lrt" >&5
13759 $as_echo_n "checking for sem_init in -lrt... " >&6; }
13760 if ${ac_cv_lib_rt_sem_init+:} false; then :
13761 $as_echo_n "(cached) " >&6
13763 ac_check_lib_save_LIBS=$LIBS
13765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13766 /* end confdefs.h. */
13768 /* Override any GCC internal prototype to avoid an error.
13769 Use char because int might match the return type of a GCC
13770 builtin and then its argument prototype would still apply. */
13778 return sem_init ();
13783 if ac_fn_c_try_link "$LINENO"; then :
13784 ac_cv_lib_rt_sem_init=yes
13786 ac_cv_lib_rt_sem_init=no
13788 rm -f core conftest.err conftest.$ac_objext \
13789 conftest$ac_exeext conftest.$ac_ext
13790 LIBS=$ac_check_lib_save_LIBS
13792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sem_init" >&5
13793 $as_echo "$ac_cv_lib_rt_sem_init" >&6; }
13794 if test "x$ac_cv_lib_rt_sem_init" = xyes; then :
13795 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
13799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lposix4" >&5
13800 $as_echo_n "checking for sem_init in -lposix4... " >&6; }
13801 if ${ac_cv_lib_posix4_sem_init+:} false; then :
13802 $as_echo_n "(cached) " >&6
13804 ac_check_lib_save_LIBS=$LIBS
13805 LIBS="-lposix4 $LIBS"
13806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13807 /* end confdefs.h. */
13809 /* Override any GCC internal prototype to avoid an error.
13810 Use char because int might match the return type of a GCC
13811 builtin and then its argument prototype would still apply. */
13819 return sem_init ();
13824 if ac_fn_c_try_link "$LINENO"; then :
13825 ac_cv_lib_posix4_sem_init=yes
13827 ac_cv_lib_posix4_sem_init=no
13829 rm -f core conftest.err conftest.$ac_objext \
13830 conftest$ac_exeext conftest.$ac_ext
13831 LIBS=$ac_check_lib_save_LIBS
13833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sem_init" >&5
13834 $as_echo "$ac_cv_lib_posix4_sem_init" >&6; }
13835 if test "x$ac_cv_lib_posix4_sem_init" = xyes; then :
13836 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
13838 SEM_INIT_LIB=-lposix4
13848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unified diff option" >&5
13849 $as_echo_n "checking for unified diff option... " >&6; }
13850 if diff -u $0 $0 > /dev/null 2>&1 ; then
13855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNI_DIFF_OPTS" >&5
13856 $as_echo "$UNI_DIFF_OPTS" >&6; }
13861 $as_echo "#define HAVE_EXT2_IOCTLS 1" >>confdefs.h
13866 $as_echo_n "checking for mount 'nosuid' option... "
13867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13868 /* end confdefs.h. */
13869 #include <sys/mount.h>
13873 void *temp = (void *)(MS_NOSUID); (void) temp;
13878 if ac_fn_c_try_compile "$LINENO"; then :
13880 $as_echo "#define HAVE_MOUNT_NOSUID 1" >>confdefs.h
13882 ac_cv_mount_nosuid=yes
13885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13886 /* end confdefs.h. */
13887 #include <sys/mount.h>
13891 void *temp = (void *)(MNT_NOSUID); (void) temp;
13896 if ac_fn_c_try_compile "$LINENO"; then :
13898 $as_echo "#define HAVE_MOUNT_NOSUID 1" >>confdefs.h
13900 ac_cv_mount_nosuid=yes
13903 ac_cv_mount_nosuid=no
13907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13913 $as_echo_n "checking for mount 'nodev' option... "
13914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13915 /* end confdefs.h. */
13916 #include <sys/mount.h>
13920 void *temp = (void *)(MS_NODEV); (void) temp;
13925 if ac_fn_c_try_compile "$LINENO"; then :
13927 $as_echo "#define HAVE_MOUNT_NODEV 1" >>confdefs.h
13929 ac_cv_mount_nodev=yes
13932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13933 /* end confdefs.h. */
13934 #include <sys/mount.h>
13938 void *temp = (void *)(MNT_NODEV); (void) temp;
13943 if ac_fn_c_try_compile "$LINENO"; then :
13945 $as_echo "#define HAVE_MOUNT_NODEV 1" >>confdefs.h
13947 ac_cv_mount_nodev=yes
13950 ac_cv_mount_nodev=no
13954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13959 # Check whether --enable-lto was given.
13960 if test "${enable_lto+set}" = set; then :
13961 enableval=$enable_lto;
13966 if test "$enable_lto" = "yes" || test "$enable_lto" = "probe"; then
13967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C compiler supports LTO" >&5
13968 $as_echo_n "checking if C compiler supports LTO... " >&6; }
13969 OLD_CFLAGS="$CFLAGS"
13970 OLD_LDFLAGS="$LDFLAGS"
13971 LTO_FLAGS="-g -flto -ffat-lto-objects"
13972 CFLAGS="$CFLAGS $LTO_FLAGS"
13973 LDFLAGS="$LDFLAGS $LTO_FLAGS"
13974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13975 /* end confdefs.h. */
13985 if ac_fn_c_try_link "$LINENO"; then :
13986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13987 $as_echo "yes" >&6; }
13988 lto_cflags=$LTO_FLAGS
13989 lto_ldflags=$LTO_FLAGS
13990 # Extract the first word of "gcc-ar", so it can be a program name with args.
13991 set dummy gcc-ar; ac_word=$2
13992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13993 $as_echo_n "checking for $ac_word... " >&6; }
13994 if ${ac_cv_path_gcc_ar+:} false; then :
13995 $as_echo_n "(cached) " >&6
13999 ac_cv_path_gcc_ar="$gcc_ar" # Let the user override the test with a path.
14002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14003 for as_dir in $PATH
14006 test -z "$as_dir" && as_dir=.
14007 for ac_exec_ext in '' $ac_executable_extensions; do
14008 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14009 ac_cv_path_gcc_ar="$as_dir/$ac_word$ac_exec_ext"
14010 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14020 gcc_ar=$ac_cv_path_gcc_ar
14021 if test -n "$gcc_ar"; then
14022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_ar" >&5
14023 $as_echo "$gcc_ar" >&6; }
14025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14026 $as_echo "no" >&6; }
14030 # Extract the first word of "gcc-ranlib", so it can be a program name with args.
14031 set dummy gcc-ranlib; ac_word=$2
14032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14033 $as_echo_n "checking for $ac_word... " >&6; }
14034 if ${ac_cv_path_gcc_ranlib+:} false; then :
14035 $as_echo_n "(cached) " >&6
14037 case $gcc_ranlib in
14039 ac_cv_path_gcc_ranlib="$gcc_ranlib" # Let the user override the test with a path.
14042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14043 for as_dir in $PATH
14046 test -z "$as_dir" && as_dir=.
14047 for ac_exec_ext in '' $ac_executable_extensions; do
14048 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14049 ac_cv_path_gcc_ranlib="$as_dir/$ac_word$ac_exec_ext"
14050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14060 gcc_ranlib=$ac_cv_path_gcc_ranlib
14061 if test -n "$gcc_ranlib"; then
14062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_ranlib" >&5
14063 $as_echo "$gcc_ranlib" >&6; }
14065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14066 $as_echo "no" >&6; }
14071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14072 $as_echo "no" >&6; }
14074 rm -f core conftest.err conftest.$ac_objext \
14075 conftest$ac_exeext conftest.$ac_ext
14076 if test -x "$gcc_ar" && test -x "$gcc_ranlib"; then
14079 RANLIB="${gcc_ranlib}"
14081 CFLAGS="${OLD_CFLAGS}"
14082 LDFLAGS="${OLD_LDFLAGS}"
14087 if test "$enable_lto" = "yes" && test "$have_lto" != "yes"; then
14088 as_fn_error $? "LTO not supported by compiler." "$LINENO" 5
14090 # Check whether --enable-ubsan was given.
14091 if test "${enable_ubsan+set}" = set; then :
14092 enableval=$enable_ubsan;
14097 if test "$enable_ubsan" = "yes" || test "$enable_ubsan" = "probe"; then
14098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C compiler supports UBSAN" >&5
14099 $as_echo_n "checking if C compiler supports UBSAN... " >&6; }
14100 OLD_CFLAGS="$CFLAGS"
14101 OLD_LDFLAGS="$LDFLAGS"
14102 UBSAN_FLAGS="-fsanitize=undefined"
14103 CFLAGS="$CFLAGS $UBSAN_FLAGS"
14104 LDFLAGS="$LDFLAGS $UBSAN_FLAGS"
14105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14106 /* end confdefs.h. */
14116 if ac_fn_c_try_link "$LINENO"; then :
14117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14118 $as_echo "yes" >&6; }
14119 ubsan_cflags=$UBSAN_FLAGS
14120 ubsan_ldflags=$UBSAN_FLAGS
14123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14124 $as_echo "no" >&6; }
14126 rm -f core conftest.err conftest.$ac_objext \
14127 conftest$ac_exeext conftest.$ac_ext
14128 CFLAGS="${OLD_CFLAGS}"
14129 LDFLAGS="${OLD_LDFLAGS}"
14134 if test "$enable_ubsan" = "yes" && test "$have_ubsan" != "yes"; then
14135 as_fn_error $? "UBSAN not supported by compiler." "$LINENO" 5
14137 # Check whether --enable-addrsan was given.
14138 if test "${enable_addrsan+set}" = set; then :
14139 enableval=$enable_addrsan;
14144 if test "$enable_addrsan" = "yes" || test "$enable_addrsan" = "probe"; then
14145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C compiler supports ADDRSAN" >&5
14146 $as_echo_n "checking if C compiler supports ADDRSAN... " >&6; }
14147 OLD_CFLAGS="$CFLAGS"
14148 OLD_LDFLAGS="$LDFLAGS"
14149 ADDRSAN_FLAGS="-fsanitize=address"
14150 CFLAGS="$CFLAGS $ADDRSAN_FLAGS"
14151 LDFLAGS="$LDFLAGS $ADDRSAN_FLAGS"
14152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14153 /* end confdefs.h. */
14163 if ac_fn_c_try_link "$LINENO"; then :
14164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14165 $as_echo "yes" >&6; }
14166 addrsan_cflags=$ADDRSAN_FLAGS
14167 addrsan_ldflags=$ADDRSAN_FLAGS
14170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14171 $as_echo "no" >&6; }
14173 rm -f core conftest.err conftest.$ac_objext \
14174 conftest$ac_exeext conftest.$ac_ext
14175 CFLAGS="${OLD_CFLAGS}"
14176 LDFLAGS="${OLD_LDFLAGS}"
14181 if test "$enable_addrsan" = "yes" && test "$have_addrsan" != "yes"; then
14182 as_fn_error $? "ADDRSAN not supported by compiler." "$LINENO" 5
14184 # Check whether --enable-threadsan was given.
14185 if test "${enable_threadsan+set}" = set; then :
14186 enableval=$enable_threadsan;
14188 enable_threadsan=no
14191 if test "$enable_threadsan" = "yes" || test "$enable_threadsan" = "probe"; then
14192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C compiler supports THREADSAN" >&5
14193 $as_echo_n "checking if C compiler supports THREADSAN... " >&6; }
14194 OLD_CFLAGS="$CFLAGS"
14195 OLD_LDFLAGS="$LDFLAGS"
14196 THREADSAN_FLAGS="-fsanitize=thread"
14197 CFLAGS="$CFLAGS $THREADSAN_FLAGS"
14198 LDFLAGS="$LDFLAGS $THREADSAN_FLAGS"
14199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14200 /* end confdefs.h. */
14210 if ac_fn_c_try_link "$LINENO"; then :
14211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14212 $as_echo "yes" >&6; }
14213 threadsan_cflags=$THREADSAN_FLAGS
14214 threadsan_ldflags=$THREADSAN_FLAGS
14217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14218 $as_echo "no" >&6; }
14220 rm -f core conftest.err conftest.$ac_objext \
14221 conftest$ac_exeext conftest.$ac_ext
14222 CFLAGS="${OLD_CFLAGS}"
14223 LDFLAGS="${OLD_LDFLAGS}"
14228 if test "$enable_threadsan" = "yes" && test "$have_threadsan" != "yes"; then
14229 as_fn_error $? "THREADSAN not supported by compiler." "$LINENO" 5
14231 if test "$have_threadsan" = "yes" && test "$have_addrsan" = "yes"; then
14232 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ADDRSAN and THREADSAN are not known to work together." >&5
14233 $as_echo "$as_me: WARNING: ADDRSAN and THREADSAN are not known to work together." >&2;}
14250 E2SCRUB_CMT="$LINUX_CMT"
14253 linux* | gnu* | k*bsd*-gnu)
14254 if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
14256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, root_prefix defaults to ''" >&5
14257 $as_echo "On $host_os systems, root_prefix defaults to ''" >&6; }
14262 linux* | gnu* | k*bsd*-gnu)
14263 if test "$prefix" = NONE ; then
14265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, prefix defaults to /usr" >&5
14266 $as_echo "On $host_os systems, prefix defaults to /usr" >&6; }
14267 if test "$mandir" = '${prefix}/man' ; then
14268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ...and mandir defaults to /usr/share/man" >&5
14269 $as_echo "...and mandir defaults to /usr/share/man" >&6; }
14270 mandir=/usr/share/man
14275 if test "$root_prefix" = NONE ; then
14276 if test "$prefix" = NONE ; then
14277 root_prefix="$ac_default_prefix"
14279 root_prefix="$prefix"
14281 root_bindir=$bindir
14282 root_sbindir=$sbindir
14283 root_libdir=$libdir
14284 root_sysconfdir=$sysconfdir
14286 root_bindir='${root_prefix}/bin'
14287 root_sbindir='${root_prefix}/sbin'
14288 root_libdir='${root_prefix}/lib'
14289 root_sysconfdir='${root_prefix}/etc'
14291 if test "$bindir" != '${exec_prefix}/bin'; then
14292 root_bindir=$bindir
14293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_bindir to $root_bindir" >&5
14294 $as_echo "Setting root_bindir to $root_bindir" >&6; }
14296 if test "$sbindir" != '${exec_prefix}/sbin'; then
14297 root_sbindir=$sbindir
14298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sbindir to $root_sbindir" >&5
14299 $as_echo "Setting root_sbindir to $root_sbindir" >&6; }
14301 if test "$libdir" != '${exec_prefix}/lib'; then
14302 root_libdir=$libdir
14303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_libdir to $root_libdir" >&5
14304 $as_echo "Setting root_libdir to $root_libdir" >&6; }
14306 if test "$sysconfdir" != '${prefix}/etc'; then
14307 root_sysconfdir=$sysconfdir
14308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sysconfdir to $root_sysconfdir" >&5
14309 $as_echo "Setting root_sysconfdir to $root_sysconfdir" >&6; }
14317 # Check whether --with-multiarch was given.
14318 if test "${with_multiarch+set}" = set; then :
14319 withval=$with_multiarch; if test "$withval" = "lib64"; then
14323 libdir=$libdir/$withval
14324 root_libdir=$root_libdir/$withval
14329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can link with -static" >&5
14330 $as_echo_n "checking whether we can link with -static... " >&6; }
14331 if ${ac_cv_e2fsprogs_use_static+:} false; then :
14332 $as_echo_n "(cached) " >&6
14334 SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS_STATIC -static"
14335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14336 /* end confdefs.h. */
14346 if ac_fn_c_try_link "$LINENO"; then :
14347 ac_cv_e2fsprogs_use_static=yes
14349 ac_cv_e2fsprogs_use_static=no
14351 rm -f core conftest.err conftest.$ac_objext \
14352 conftest$ac_exeext conftest.$ac_ext
14353 LDFLAGS=$SAVE_LDFLAGS
14358 ac_cv_e2fsprogs_use_static=no
14361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_e2fsprogs_use_static" >&5
14362 $as_echo "$ac_cv_e2fsprogs_use_static" >&6; }
14363 if test $ac_cv_e2fsprogs_use_static = yes; then
14364 LDFLAGS_STATIC="$LDFLAGS_STATIC -static"
14369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using Apple Darwin / GNU libintl workaround" >&5
14370 $as_echo "Using Apple Darwin / GNU libintl workaround" >&6; }
14372 $as_echo "#define _INTL_REDIRECT_MACROS 1" >>confdefs.h
14376 if test "$cross_compiling" = yes ; then
14379 DO_TEST_SUITE=check
14382 INCLUDES='-I. -I$(top_builddir)/lib -I$(top_srcdir)/lib'
14383 if test -n "$CPPFLAGS" ; then
14384 INCLUDES="$INCLUDES $CPPFLAGS"
14386 if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
14387 INCLUDES=$INCLUDES' -I$(top_builddir)/intl -I$(top_srcdir)/intl'
14389 if test -n "$WITH_DIET_LIBC" ; then
14390 INCLUDES="$INCLUDES -D_REENTRANT"
14393 if test $cross_compiling = no; then
14394 BUILD_CFLAGS="$CFLAGS $CPPFLAGS $INCLUDES -DHAVE_CONFIG_H"
14395 BUILD_LDFLAGS="$LDFLAGS"
14399 CFLAGS_SHLIB=${CFLAGS_SHLIB:-$CFLAGS}
14400 CFLAGS_STLIB=${CFLAGS_STLIB:-$CFLAGS}
14401 LDFLAGS_SHLIB=${LDFLAGS_SHLIB:-$LDFLAGS}
14407 # Check whether --with-udev_rules_dir was given.
14408 if test "${with_udev_rules_dir+set}" = set; then :
14409 withval=$with_udev_rules_dir;
14411 with_udev_rules_dir=yes
14414 if test "x${with_udev_rules_dir}" != "xno"; then :
14416 if test "x${with_udev_rules_dir}" = "xyes"; then :
14420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for udev" >&5
14421 $as_echo_n "checking for udev... " >&6; }
14423 if test -n "$udev_CFLAGS"; then
14424 pkg_cv_udev_CFLAGS="$udev_CFLAGS"
14425 elif test -n "$PKG_CONFIG"; then
14426 if test -n "$PKG_CONFIG" && \
14427 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"udev\""; } >&5
14428 ($PKG_CONFIG --exists --print-errors "udev") 2>&5
14430 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14431 test $ac_status = 0; }; then
14432 pkg_cv_udev_CFLAGS=`$PKG_CONFIG --cflags "udev" 2>/dev/null`
14433 test "x$?" != "x0" && pkg_failed=yes
14440 if test -n "$udev_LIBS"; then
14441 pkg_cv_udev_LIBS="$udev_LIBS"
14442 elif test -n "$PKG_CONFIG"; then
14443 if test -n "$PKG_CONFIG" && \
14444 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"udev\""; } >&5
14445 ($PKG_CONFIG --exists --print-errors "udev") 2>&5
14447 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14448 test $ac_status = 0; }; then
14449 pkg_cv_udev_LIBS=`$PKG_CONFIG --libs "udev" 2>/dev/null`
14450 test "x$?" != "x0" && pkg_failed=yes
14460 if test $pkg_failed = yes; then
14461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14462 $as_echo "no" >&6; }
14464 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14465 _pkg_short_errors_supported=yes
14467 _pkg_short_errors_supported=no
14469 if test $_pkg_short_errors_supported = yes; then
14470 udev_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "udev" 2>&1`
14472 udev_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "udev" 2>&1`
14474 # Put the nasty error message in config.log where it belongs
14475 echo "$udev_PKG_ERRORS" >&5
14478 with_udev_rules_dir=""
14480 elif test $pkg_failed = untried; then
14481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14482 $as_echo "no" >&6; }
14484 with_udev_rules_dir=""
14487 udev_CFLAGS=$pkg_cv_udev_CFLAGS
14488 udev_LIBS=$pkg_cv_udev_LIBS
14489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14490 $as_echo "yes" >&6; }
14492 with_udev_rules_dir="$($PKG_CONFIG --variable=udevdir udev)/rules.d"
14497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for udev rules dir" >&5
14498 $as_echo_n "checking for udev rules dir... " >&6; }
14499 pkg_udev_rules_dir="${with_udev_rules_dir}"
14500 if test -n "${pkg_udev_rules_dir}"; then :
14502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${pkg_udev_rules_dir}" >&5
14503 $as_echo "${pkg_udev_rules_dir}" >&6; }
14508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14509 $as_echo "no" >&6; }
14516 have_udev="disabled"
14523 # Check whether --with-crond_dir was given.
14524 if test "${with_crond_dir+set}" = set; then :
14525 withval=$with_crond_dir;
14530 if test "x${with_crond_dir}" != "xno"; then :
14532 if test "x${with_crond_dir}" = "xyes"; then :
14534 if test -d "/etc/cron.d"; then :
14535 with_crond_dir="/etc/cron.d"
14537 have_crond="no"; with_crond_dir=""
14541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for system crontab dir" >&5
14542 $as_echo_n "checking for system crontab dir... " >&6; }
14543 crond_dir="${with_crond_dir}"
14544 if test -n "${crond_dir}"; then :
14546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${crond_dir}" >&5
14547 $as_echo "${crond_dir}" >&6; }
14552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14553 $as_echo "no" >&6; }
14560 have_crond="disabled"
14567 # Check whether --with-systemd_unit_dir was given.
14568 if test "${with_systemd_unit_dir+set}" = set; then :
14569 withval=$with_systemd_unit_dir;
14571 with_systemd_unit_dir=yes
14574 if test "x${with_systemd_unit_dir}" != "xno"; then :
14576 if test "x${with_systemd_unit_dir}" = "xyes"; then :
14580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for systemd" >&5
14581 $as_echo_n "checking for systemd... " >&6; }
14583 if test -n "$systemd_CFLAGS"; then
14584 pkg_cv_systemd_CFLAGS="$systemd_CFLAGS"
14585 elif test -n "$PKG_CONFIG"; then
14586 if test -n "$PKG_CONFIG" && \
14587 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"systemd\""; } >&5
14588 ($PKG_CONFIG --exists --print-errors "systemd") 2>&5
14590 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14591 test $ac_status = 0; }; then
14592 pkg_cv_systemd_CFLAGS=`$PKG_CONFIG --cflags "systemd" 2>/dev/null`
14593 test "x$?" != "x0" && pkg_failed=yes
14600 if test -n "$systemd_LIBS"; then
14601 pkg_cv_systemd_LIBS="$systemd_LIBS"
14602 elif test -n "$PKG_CONFIG"; then
14603 if test -n "$PKG_CONFIG" && \
14604 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"systemd\""; } >&5
14605 ($PKG_CONFIG --exists --print-errors "systemd") 2>&5
14607 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14608 test $ac_status = 0; }; then
14609 pkg_cv_systemd_LIBS=`$PKG_CONFIG --libs "systemd" 2>/dev/null`
14610 test "x$?" != "x0" && pkg_failed=yes
14620 if test $pkg_failed = yes; then
14621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14622 $as_echo "no" >&6; }
14624 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14625 _pkg_short_errors_supported=yes
14627 _pkg_short_errors_supported=no
14629 if test $_pkg_short_errors_supported = yes; then
14630 systemd_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "systemd" 2>&1`
14632 systemd_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "systemd" 2>&1`
14634 # Put the nasty error message in config.log where it belongs
14635 echo "$systemd_PKG_ERRORS" >&5
14638 with_systemd_unit_dir=""
14640 elif test $pkg_failed = untried; then
14641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14642 $as_echo "no" >&6; }
14644 with_systemd_unit_dir=""
14647 systemd_CFLAGS=$pkg_cv_systemd_CFLAGS
14648 systemd_LIBS=$pkg_cv_systemd_LIBS
14649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14650 $as_echo "yes" >&6; }
14652 with_systemd_unit_dir="$($PKG_CONFIG --variable=systemdsystemunitdir systemd)"
14658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for systemd system unit dir" >&5
14659 $as_echo_n "checking for systemd system unit dir... " >&6; }
14660 systemd_system_unit_dir="${with_systemd_unit_dir}"
14661 if test -n "${systemd_system_unit_dir}"; then :
14663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${systemd_system_unit_dir}" >&5
14664 $as_echo "${systemd_system_unit_dir}" >&6; }
14669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14670 $as_echo "no" >&6; }
14677 have_systemd="disabled"
14683 test -d lib || mkdir lib
14684 test -d include || mkdir include
14685 test -d include/linux || mkdir include/linux
14686 test -d include/asm || mkdir include/asm
14687 if test -z "$UUID_CMT" ; then
14688 uuid_out_list="lib/uuid/Makefile lib/uuid/uuid.pc \
14689 lib/uuid/uuid_types.h"
14691 if test -z "$BLKID_CMT" ; then
14692 blkid_out_list="lib/blkid/Makefile lib/blkid/blkid.pc \
14693 lib/blkid/blkid_types.h"
14695 for i in MCONFIG Makefile \
14696 e2fsprogs-RHEL-6.spec \
14697 e2fsprogs-SUSE_LINUX-11+12+15.spec \
14698 e2fsprogs-RHEL-7+8.spec \
14699 util/Makefile util/subst.conf util/gen-tarball util/install-symlink \
14700 lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \
14701 lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \
14702 $uuid_out_list $blkid_out_list lib/support/Makefile \
14703 lib/ss/ss.pc lib/et/com_err.pc lib/e2p/e2p.pc lib/ext2fs/ext2fs.pc \
14704 misc/Makefile ext2ed/Makefile e2fsck/Makefile \
14705 debugfs/Makefile tests/Makefile tests/progs/Makefile \
14706 resize/Makefile doc/Makefile intl/Makefile \
14707 intl/libgnuintl.h po/Makefile.in scrub/Makefile; do
14708 if test -d `dirname ${srcdir}/$i` ; then
14709 outlist="$outlist $i"
14712 ac_config_files="$ac_config_files $outlist"
14714 cat >confcache <<\_ACEOF
14715 # This file is a shell script that caches the results of configure
14716 # tests run on this system so they can be shared between configure
14717 # scripts and configure runs, see configure's option --config-cache.
14718 # It is not useful on other systems. If it contains results you don't
14719 # want to keep, you may remove or edit it.
14721 # config.status only pays attention to the cache file if you give it
14722 # the --recheck option to rerun configure.
14724 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14725 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14726 # following values.
14730 # The following way of writing the cache mishandles newlines in values,
14731 # but we know of no workaround that is simple, portable, and efficient.
14732 # So, we kill variables containing newlines.
14733 # Ultrix sh set writes to stderr and can't be redirected directly,
14734 # and sets the high bit in the cache file unless we assign to the vars.
14736 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14737 eval ac_val=\$$ac_var
14741 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14742 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14745 _ | IFS | as_nl) ;; #(
14746 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14747 *) { eval $ac_var=; unset $ac_var;} ;;
14753 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14754 *${as_nl}ac_space=\ *)
14755 # `set' does not quote correctly, so add quotes: double-quote
14756 # substitution turns \\\\ into \\, and sed turns \\ into \.
14759 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14762 # `set' quotes correctly as required by POSIX, so do not add quotes.
14763 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14772 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14774 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14776 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14777 if test -w "$cache_file"; then
14778 if test "x$cache_file" != "x/dev/null"; then
14779 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14780 $as_echo "$as_me: updating cache $cache_file" >&6;}
14781 if test ! -f "$cache_file" || test -h "$cache_file"; then
14782 cat confcache >"$cache_file"
14784 case $cache_file in #(
14786 mv -f confcache "$cache_file"$$ &&
14787 mv -f "$cache_file"$$ "$cache_file" ;; #(
14789 mv -f confcache "$cache_file" ;;
14794 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14795 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14800 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14801 # Let make expand exec_prefix.
14802 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14804 DEFS=-DHAVE_CONFIG_H
14809 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14810 # 1. Remove the extension, and $U if already installed.
14811 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14812 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14813 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14814 # will be set to the directory where LIBOBJS objects are built.
14815 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14816 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14818 LIBOBJS=$ac_libobjs
14820 LTLIBOBJS=$ac_ltlibobjs
14825 : "${CONFIG_STATUS=./config.status}"
14827 ac_clean_files_save=$ac_clean_files
14828 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14829 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14830 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14832 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14834 # Generated by $as_me.
14835 # Run this file to recreate the current configuration.
14836 # Compiler output produced by configure, useful for debugging
14837 # configure, is in config.log if it exists.
14840 ac_cs_recheck=false
14843 SHELL=\${CONFIG_SHELL-$SHELL}
14846 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14847 ## -------------------- ##
14848 ## M4sh Initialization. ##
14849 ## -------------------- ##
14851 # Be more Bourne compatible
14852 DUALCASE=1; export DUALCASE # for MKS sh
14853 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14856 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14857 # is contrary to our usage. Disable this feature.
14858 alias -g '${1+"$@"}'='"$@"'
14859 setopt NO_GLOB_SUBST
14861 case `(set -o) 2>/dev/null` in #(
14873 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14874 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14875 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14876 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14877 # Prefer a ksh shell builtin over an external printf program on Solaris,
14878 # but without wasting forks for bash or zsh.
14879 if test -z "$BASH_VERSION$ZSH_VERSION" \
14880 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14881 as_echo='print -r --'
14882 as_echo_n='print -rn --'
14883 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14884 as_echo='printf %s\n'
14885 as_echo_n='printf %s'
14887 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14888 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14889 as_echo_n='/usr/ucb/echo -n'
14891 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14892 as_echo_n_body='eval
14896 expr "X$arg" : "X\\(.*\\)$as_nl";
14897 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14899 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14901 export as_echo_n_body
14902 as_echo_n='sh -c $as_echo_n_body as_echo'
14904 export as_echo_body
14905 as_echo='sh -c $as_echo_body as_echo'
14908 # The user is always right.
14909 if test "${PATH_SEPARATOR+set}" != set; then
14911 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14912 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14919 # We need space, tab and new line, in precisely that order. Quoting is
14920 # there to prevent editors from complaining about space-tab.
14921 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14922 # splitting by setting IFS to empty value.)
14925 # Find who we are. Look in the path if we contain no directory separator.
14928 *[\\/]* ) as_myself=$0 ;;
14929 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14930 for as_dir in $PATH
14933 test -z "$as_dir" && as_dir=.
14934 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14940 # We did not find ourselves, most probably we were run as `sh COMMAND'
14941 # in which case we are not to be found in the path.
14942 if test "x$as_myself" = x; then
14945 if test ! -f "$as_myself"; then
14946 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14950 # Unset variables that we do not need and which cause bugs (e.g. in
14951 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14952 # suppresses any "Segmentation fault" message there. '((' could
14953 # trigger a bug in pdksh 5.2.14.
14954 for as_var in BASH_ENV ENV MAIL MAILPATH
14955 do eval test x\${$as_var+set} = xset \
14956 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14969 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14972 # as_fn_error STATUS ERROR [LINENO LOG_FD]
14973 # ----------------------------------------
14974 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14975 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14976 # script with STATUS, using 1 if that was 0.
14979 as_status=$1; test $as_status -eq 0 && as_status=1
14981 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14982 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14984 $as_echo "$as_me: error: $2" >&2
14985 as_fn_exit $as_status
14989 # as_fn_set_status STATUS
14990 # -----------------------
14991 # Set $? to STATUS, without forking.
14992 as_fn_set_status ()
14995 } # as_fn_set_status
14997 # as_fn_exit STATUS
14998 # -----------------
14999 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15003 as_fn_set_status $1
15009 # Portably unset VAR.
15012 { eval $1=; unset $1;}
15014 as_unset=as_fn_unset
15015 # as_fn_append VAR VALUE
15016 # ----------------------
15017 # Append the text in VALUE to the end of the definition contained in VAR. Take
15018 # advantage of any shell optimizations that allow amortized linear growth over
15019 # repeated appends, instead of the typical quadratic growth present in naive
15021 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15022 eval 'as_fn_append ()
15033 # as_fn_arith ARG...
15034 # ------------------
15035 # Perform arithmetic evaluation on the ARGs, and store the result in the
15036 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15037 # must be portable across $(()) and expr.
15038 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15039 eval 'as_fn_arith ()
15046 as_val=`expr "$@" || test $? -eq 1`
15051 if expr a : '\(a\)' >/dev/null 2>&1 &&
15052 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15058 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15059 as_basename=basename
15064 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15070 as_me=`$as_basename -- "$0" ||
15071 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15072 X"$0" : 'X\(//\)$' \| \
15073 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15075 sed '/^.*\/\([^/][^/]*\)\/*$/{
15089 # Avoid depending upon Character Ranges.
15090 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15091 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15092 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15093 as_cr_digits='0123456789'
15094 as_cr_alnum=$as_cr_Letters$as_cr_digits
15096 ECHO_C= ECHO_N= ECHO_T=
15097 case `echo -n x` in #(((((
15099 case `echo 'xy\c'` in
15100 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15102 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15109 rm -f conf$$ conf$$.exe conf$$.file
15110 if test -d conf$$.dir; then
15111 rm -f conf$$.dir/conf$$.file
15114 mkdir conf$$.dir 2>/dev/null
15116 if (echo >conf$$.file) 2>/dev/null; then
15117 if ln -s conf$$.file conf$$ 2>/dev/null; then
15119 # ... but there are two gotchas:
15120 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15121 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15122 # In both cases, we have to default to `cp -pR'.
15123 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15125 elif ln conf$$.file conf$$ 2>/dev/null; then
15133 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15134 rmdir conf$$.dir 2>/dev/null
15139 # Create "$as_dir" as a directory, including parents if necessary.
15144 -*) as_dir=./$as_dir;;
15146 test -d "$as_dir" || eval $as_mkdir_p || {
15150 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15151 *) as_qdir=$as_dir;;
15153 as_dirs="'$as_qdir' $as_dirs"
15154 as_dir=`$as_dirname -- "$as_dir" ||
15155 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15156 X"$as_dir" : 'X\(//\)[^/]' \| \
15157 X"$as_dir" : 'X\(//\)$' \| \
15158 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15159 $as_echo X"$as_dir" |
15160 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15164 /^X\(\/\/\)[^/].*/{
15177 test -d "$as_dir" && break
15179 test -z "$as_dirs" || eval "mkdir $as_dirs"
15180 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15184 if mkdir -p . 2>/dev/null; then
15185 as_mkdir_p='mkdir -p "$as_dir"'
15187 test -d ./-p && rmdir ./-p
15192 # as_fn_executable_p FILE
15193 # -----------------------
15194 # Test if FILE is an executable regular file.
15195 as_fn_executable_p ()
15197 test -f "$1" && test -x "$1"
15198 } # as_fn_executable_p
15199 as_test_x='test -x'
15200 as_executable_p=as_fn_executable_p
15202 # Sed expression to map a string onto a valid CPP name.
15203 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15205 # Sed expression to map a string onto a valid variable name.
15206 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15210 ## ----------------------------------- ##
15211 ## Main body of $CONFIG_STATUS script. ##
15212 ## ----------------------------------- ##
15214 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15216 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15217 # Save the log message, to keep $0 and so on meaningful, and to
15218 # report actual input values of CONFIG_FILES etc. instead of their
15219 # values after options handling.
15221 This file was extended by $as_me, which was
15222 generated by GNU Autoconf 2.69. Invocation command line was
15224 CONFIG_FILES = $CONFIG_FILES
15225 CONFIG_HEADERS = $CONFIG_HEADERS
15226 CONFIG_LINKS = $CONFIG_LINKS
15227 CONFIG_COMMANDS = $CONFIG_COMMANDS
15230 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15235 case $ac_config_files in *"
15236 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15239 case $ac_config_headers in *"
15240 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15244 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15245 # Files that config.status was made for.
15246 config_files="$ac_config_files"
15247 config_headers="$ac_config_headers"
15248 config_commands="$ac_config_commands"
15252 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15254 \`$as_me' instantiates files and other configuration actions
15255 from templates according to the current configuration. Unless the files
15256 and actions are specified as TAGs, all are instantiated by default.
15258 Usage: $0 [OPTION]... [TAG]...
15260 -h, --help print this help, then exit
15261 -V, --version print version number and configuration settings, then exit
15262 --config print configuration, then exit
15263 -q, --quiet, --silent
15264 do not print progress messages
15265 -d, --debug don't remove temporary files
15266 --recheck update $as_me by reconfiguring in the same conditions
15267 --file=FILE[:TEMPLATE]
15268 instantiate the configuration file FILE
15269 --header=FILE[:TEMPLATE]
15270 instantiate the configuration header FILE
15272 Configuration files:
15275 Configuration headers:
15278 Configuration commands:
15281 Report bugs to the package provider."
15284 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15285 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15288 configured by $0, generated by GNU Autoconf 2.69,
15289 with options \\"\$ac_cs_config\\"
15291 Copyright (C) 2012 Free Software Foundation, Inc.
15292 This config.status script is free software; the Free Software Foundation
15293 gives unlimited permission to copy, distribute and modify it."
15300 test -n "\$AWK" || AWK=awk
15303 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15304 # The default lists apply if the user does not specify any file.
15310 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15311 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15315 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15327 # Handling of the options.
15328 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15330 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15331 $as_echo "$ac_cs_version"; exit ;;
15332 --config | --confi | --conf | --con | --co | --c )
15333 $as_echo "$ac_cs_config"; exit ;;
15334 --debug | --debu | --deb | --de | --d | -d )
15336 --file | --fil | --fi | --f )
15339 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15340 '') as_fn_error $? "missing file argument" ;;
15342 as_fn_append CONFIG_FILES " '$ac_optarg'"
15343 ac_need_defaults=false;;
15344 --header | --heade | --head | --hea )
15347 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15349 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15350 ac_need_defaults=false;;
15352 # Conflict between --help and --header
15353 as_fn_error $? "ambiguous option: \`$1'
15354 Try \`$0 --help' for more information.";;
15355 --help | --hel | -h )
15356 $as_echo "$ac_cs_usage"; exit ;;
15357 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15358 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15361 # This is an error.
15362 -*) as_fn_error $? "unrecognized option: \`$1'
15363 Try \`$0 --help' for more information." ;;
15365 *) as_fn_append ac_config_targets " $1"
15366 ac_need_defaults=false ;;
15372 ac_configure_extra_args=
15374 if $ac_cs_silent; then
15376 ac_configure_extra_args="$ac_configure_extra_args --silent"
15380 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15381 if \$ac_cs_recheck; then
15382 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15384 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15385 CONFIG_SHELL='$SHELL'
15386 export CONFIG_SHELL
15391 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15395 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15396 ## Running $as_me. ##
15402 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15406 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
15407 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
15408 # from automake < 1.5.
15409 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
15410 # Capture the value of LINGUAS because we need it to compute CATALOGS.
15411 LINGUAS="${LINGUAS-%UNSET%}"
15416 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15418 # Handling of arguments.
15419 for ac_config_target in $ac_config_targets
15421 case $ac_config_target in
15422 "lib/config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/config.h" ;;
15423 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
15424 "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;;
15426 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15431 # If the user did not use the arguments to specify the items to instantiate,
15432 # then the envvar interface is used. Set only those that are not.
15433 # We use the long form for the default assignment because of an extremely
15434 # bizarre bug on SunOS 4.1.3.
15435 if $ac_need_defaults; then
15436 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15437 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15438 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15441 # Have a temporary directory for convenience. Make it in the build tree
15442 # simply because there is no reason against having it here, and in addition,
15443 # creating and moving files from /tmp can sometimes cause problems.
15444 # Hook for its removal unless debugging.
15445 # Note that there is a small window in which the directory will not be cleaned:
15446 # after its creation but before its name has been assigned to `$tmp'.
15450 trap 'exit_status=$?
15451 : "${ac_tmp:=$tmp}"
15452 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15454 trap 'as_fn_exit 1' 1 2 13 15
15456 # Create a (secure) tmp directory for tmp files.
15459 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15463 tmp=./conf$$-$RANDOM
15464 (umask 077 && mkdir "$tmp")
15465 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15468 # Set up the scripts for CONFIG_FILES section.
15469 # No need to generate them if there are no CONFIG_FILES.
15470 # This happens for instance with `./config.status config.h'.
15471 if test -n "$CONFIG_FILES"; then
15473 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
15474 ac_cs_awk_getline=:
15475 ac_cs_awk_pipe_init=
15476 ac_cs_awk_read_file='
15477 while ((getline aline < (F[key])) > 0)
15480 ac_cs_awk_pipe_fini=
15482 ac_cs_awk_getline=false
15483 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
15484 ac_cs_awk_read_file='
15486 print "cat " F[key] " &&"
15487 '$ac_cs_awk_pipe_init
15488 # The final `:' finishes the AND list.
15489 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
15491 ac_cr=`echo X | tr X '\015'`
15492 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15493 # But we know of no other shell where ac_cr would be empty at this
15494 # point, so we can use a bashism as a fallback.
15495 if test "x$ac_cr" = x; then
15496 eval ac_cr=\$\'\\r\'
15498 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15499 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15502 ac_cs_awk_cr=$ac_cr
15505 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15508 # Create commands to substitute file output variables.
15510 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
15511 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
15512 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
15515 } >conf$$files.sh &&
15516 . ./conf$$files.sh ||
15517 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15518 rm -f conf$$files.sh
15521 echo "cat >conf$$subs.awk <<_ACEOF" &&
15522 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15524 } >conf$$subs.sh ||
15525 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15526 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15528 for ac_last_try in false false false false false :; do
15529 . ./conf$$subs.sh ||
15530 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15532 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15533 if test $ac_delim_n = $ac_delim_num; then
15535 elif $ac_last_try; then
15536 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15538 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15541 rm -f conf$$subs.sh
15543 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15544 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15548 s/^/S["/; s/!.*/"]=/
15558 s/\(.\{148\}\)..*/\1/
15560 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15565 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15572 s/\(.\{148\}\)..*/\1/
15574 s/["\\]/\\&/g; s/^/"/; s/$/"/
15578 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15583 ' <conf$$subs.awk | sed '
15588 ' >>$CONFIG_STATUS || ac_write_fail=1
15589 rm -f conf$$subs.awk
15590 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15592 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15593 for (key in S) S_is_set[key] = 1
15595 \$ac_cs_awk_pipe_init
15599 nfields = split(line, field, "@")
15601 len = length(field[1])
15602 for (i = 2; i < nfields; i++) {
15604 keylen = length(key)
15605 if (S_is_set[key]) {
15607 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15608 len += length(value) + length(field[++i])
15613 if (nfields == 3 && !substed) {
15615 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
15616 \$ac_cs_awk_read_file
15622 \$ac_cs_awk_pipe_fini
15625 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15626 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15627 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15630 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15631 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15634 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15635 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15636 # trailing colons and then remove the whole line if VPATH becomes empty
15637 # (actually we leave an empty line to preserve line numbers).
15638 if test "x$srcdir" = x.; then
15639 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
15657 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15658 fi # test -n "$CONFIG_FILES"
15660 # Set up the scripts for CONFIG_HEADERS section.
15661 # No need to generate them if there are no CONFIG_HEADERS.
15662 # This happens for instance with `./config.status Makefile'.
15663 if test -n "$CONFIG_HEADERS"; then
15664 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
15668 # Transform confdefs.h into an awk script `defines.awk', embedded as
15669 # here-document in config.status, that substitutes the proper values into
15670 # config.h.in to produce config.h.
15672 # Create a delimiter string that does not exist in confdefs.h, to ease
15673 # handling of long lines.
15675 for ac_last_try in false false :; do
15676 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
15677 if test -z "$ac_tt"; then
15679 elif $ac_last_try; then
15680 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
15682 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15686 # For the awk script, D is an array of macro values keyed by name,
15687 # likewise P contains macro parameters if any. Preserve backslash
15688 # newline sequences.
15690 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15692 s/.\{148\}/&'"$ac_delim"'/g
15695 s/^[ ]*#[ ]*define[ ][ ]*/ /
15702 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15704 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15708 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15709 D["\1"]=" \3\\\\\\n"\\/p
15711 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15716 s/.\{148\}/&'"$ac_delim"'/g
15721 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15724 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15726 ' <confdefs.h | sed '
15727 s/'"$ac_delim"'/"\\\
15728 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15730 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15731 for (key in D) D_is_set[key] = 1
15734 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15736 split(line, arg, " ")
15737 if (arg[1] == "#") {
15741 defundef = substr(arg[1], 2)
15744 split(mac1, mac2, "(") #)
15746 prefix = substr(line, 1, index(line, defundef) - 1)
15747 if (D_is_set[macro]) {
15748 # Preserve the white space surrounding the "#".
15749 print prefix "define", macro P[macro] D[macro]
15752 # Replace #undef with comments. This is necessary, for example,
15753 # in the case of _POSIX_SOURCE, which is predefined and required
15754 # on some systems where configure will not decide to define it.
15755 if (defundef == "undef") {
15756 print "/*", prefix defundef, macro, "*/"
15764 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15765 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
15766 fi # test -n "$CONFIG_HEADERS"
15769 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15774 :[FHLC]) ac_mode=$ac_tag; continue;;
15776 case $ac_mode$ac_tag in
15778 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
15779 :[FH]-) ac_tag=-:-;;
15780 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15797 -) ac_f="$ac_tmp/stdin";;
15798 *) # Look for the file first in the build tree, then in the source tree
15799 # (if the path is not absolute). The absolute path cannot be DOS-style,
15800 # because $ac_f cannot contain `:'.
15804 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15806 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15808 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15809 as_fn_append ac_file_inputs " '$ac_f'"
15812 # Let's still pretend it is `configure' which instantiates (i.e., don't
15813 # use $as_me), people would be surprised to read:
15814 # /* config.h. Generated by config.status. */
15815 configure_input='Generated from '`
15816 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15818 if test x"$ac_file" != x-; then
15819 configure_input="$ac_file. $configure_input"
15820 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15821 $as_echo "$as_me: creating $ac_file" >&6;}
15823 # Neutralize special characters interpreted by sed in replacement strings.
15824 case $configure_input in #(
15825 *\&* | *\|* | *\\* )
15826 ac_sed_conf_input=`$as_echo "$configure_input" |
15827 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15828 *) ac_sed_conf_input=$configure_input;;
15832 *:-:* | *:-) cat >"$ac_tmp/stdin" \
15833 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15838 ac_dir=`$as_dirname -- "$ac_file" ||
15839 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15840 X"$ac_file" : 'X\(//\)[^/]' \| \
15841 X"$ac_file" : 'X\(//\)$' \| \
15842 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15843 $as_echo X"$ac_file" |
15844 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15848 /^X\(\/\/\)[^/].*/{
15861 as_dir="$ac_dir"; as_fn_mkdir_p
15865 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15867 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15868 # A ".." for each directory in $ac_dir_suffix.
15869 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15870 case $ac_top_builddir_sub in
15871 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15872 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15875 ac_abs_top_builddir=$ac_pwd
15876 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15877 # for backward compatibility:
15878 ac_top_builddir=$ac_top_build_prefix
15881 .) # We are building in place.
15883 ac_top_srcdir=$ac_top_builddir_sub
15884 ac_abs_top_srcdir=$ac_pwd ;;
15885 [\\/]* | ?:[\\/]* ) # Absolute name.
15886 ac_srcdir=$srcdir$ac_dir_suffix;
15887 ac_top_srcdir=$srcdir
15888 ac_abs_top_srcdir=$srcdir ;;
15889 *) # Relative name.
15890 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15891 ac_top_srcdir=$ac_top_build_prefix$srcdir
15892 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15894 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15904 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15905 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15907 ac_MKDIR_P=$MKDIR_P
15909 [\\/$]* | ?:[\\/]* ) ;;
15910 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15914 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15915 # If the template does not know about datarootdir, expand it.
15916 # FIXME: This hack should be removed a few years after 2.60.
15917 ac_datarootdir_hack=; ac_datarootdir_seen=
15928 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15929 *datarootdir*) ac_datarootdir_seen=yes;;
15930 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15931 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15932 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15934 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15935 ac_datarootdir_hack='
15936 s&@datadir@&$datadir&g
15937 s&@docdir@&$docdir&g
15938 s&@infodir@&$infodir&g
15939 s&@localedir@&$localedir&g
15940 s&@mandir@&$mandir&g
15941 s&\\\${datarootdir}&$datarootdir&g' ;;
15945 # Neutralize VPATH when `$srcdir' = `.'.
15946 # Shell code in configure.ac might set extrasub.
15947 # FIXME: do we really want to maintain this feature?
15948 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15949 ac_sed_extra="$ac_vpsub
15952 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15954 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15955 s|@configure_input@|$ac_sed_conf_input|;t t
15956 s&@top_builddir@&$ac_top_builddir_sub&;t t
15957 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15958 s&@srcdir@&$ac_srcdir&;t t
15959 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15960 s&@top_srcdir@&$ac_top_srcdir&;t t
15961 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15962 s&@builddir@&$ac_builddir&;t t
15963 s&@abs_builddir@&$ac_abs_builddir&;t t
15964 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15965 s&@INSTALL@&$ac_INSTALL&;t t
15966 s&@MKDIR_P@&$ac_MKDIR_P&;t t
15967 $ac_datarootdir_hack
15969 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
15970 if $ac_cs_awk_getline; then
15971 $AWK -f "$ac_tmp/subs.awk"
15973 $AWK -f "$ac_tmp/subs.awk" | $SHELL
15975 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15977 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15978 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15979 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
15980 "$ac_tmp/out"`; test -z "$ac_out"; } &&
15981 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15982 which seems to be undefined. Please make sure it is defined" >&5
15983 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15984 which seems to be undefined. Please make sure it is defined" >&2;}
15986 rm -f "$ac_tmp/stdin"
15988 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15989 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15991 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15997 if test x"$ac_file" != x-; then
15999 $as_echo "/* $configure_input */" \
16000 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16001 } >"$ac_tmp/config.h" \
16002 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16003 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16004 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16005 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16008 mv "$ac_tmp/config.h" "$ac_file" \
16009 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16012 $as_echo "/* $configure_input */" \
16013 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16014 || as_fn_error $? "could not create -" "$LINENO" 5
16018 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16019 $as_echo "$as_me: executing $ac_file commands" >&6;}
16024 case $ac_file$ac_mode in
16025 "po-directories":C)
16026 for ac_file in $CONFIG_FILES; do
16027 # Support "outfile[:infile[:infile...]]"
16029 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16031 # PO directories have a Makefile.in generated from Makefile.in.in.
16032 case "$ac_file" in */Makefile.in)
16033 # Adjust a relative srcdir.
16034 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
16035 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
16036 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
16037 # In autoconf-2.13 it is called $ac_given_srcdir.
16038 # In autoconf-2.50 it is called $srcdir.
16039 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
16040 case "$ac_given_srcdir" in
16041 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
16042 /*) top_srcdir="$ac_given_srcdir" ;;
16043 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
16045 # Treat a directory as a PO directory if and only if it has a
16046 # POTFILES.in file. This allows packages to have multiple PO
16047 # directories under different names or in different locations.
16048 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
16049 rm -f "$ac_dir/POTFILES"
16050 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
16051 gt_tab=`printf '\t'`
16052 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"
16053 POMAKEFILEDEPS="POTFILES.in"
16054 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
16055 # on $ac_dir but don't depend on user-specified configuration
16057 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
16058 # The LINGUAS file contains the set of available languages.
16059 if test -n "$OBSOLETE_ALL_LINGUAS"; then
16060 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
16062 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
16063 # Hide the ALL_LINGUAS assignment from automake < 1.5.
16064 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
16065 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
16067 # The set of available languages was given in configure.in.
16068 # Hide the ALL_LINGUAS assignment from automake < 1.5.
16069 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
16072 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
16073 # Compute UPDATEPOFILES
16074 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
16075 # Compute DUMMYPOFILES
16076 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
16078 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
16079 case "$ac_given_srcdir" in
16081 *) srcdirpre='$(srcdir)/' ;;
16087 for lang in $ALL_LINGUAS; do
16088 POFILES="$POFILES $srcdirpre$lang.po"
16089 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
16090 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
16091 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
16093 # CATALOGS depends on both $ac_dir and the user's LINGUAS
16094 # environment variable.
16096 if test -n "$ALL_LINGUAS"; then
16097 for presentlang in $ALL_LINGUAS; do
16099 if test "%UNSET%" != "$LINGUAS"; then
16100 desiredlanguages="$LINGUAS"
16102 desiredlanguages="$ALL_LINGUAS"
16104 for desiredlang in $desiredlanguages; do
16105 # Use the presentlang catalog if desiredlang is
16106 # a. equal to presentlang, or
16107 # b. a variant of presentlang (because in this case,
16108 # presentlang can be used as a fallback for messages
16109 # which are not translated in the desiredlang catalog).
16110 case "$desiredlang" in
16111 "$presentlang"*) useit=yes;;
16114 if test $useit = yes; then
16115 INST_LINGUAS="$INST_LINGUAS $presentlang"
16120 if test -n "$INST_LINGUAS"; then
16121 for lang in $INST_LINGUAS; do
16122 CATALOGS="$CATALOGS $lang.gmo"
16125 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
16126 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"
16127 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
16128 if test -f "$f"; then
16130 *.orig | *.bak | *~) ;;
16131 *) cat "$f" >> "$ac_dir/Makefile" ;;
16146 ac_clean_files=$ac_clean_files_save
16148 test $ac_write_fail = 0 ||
16149 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16152 # configure is writing to config.log, and then calls config.status.
16153 # config.status does its own redirection, appending to config.log.
16154 # Unfortunately, on DOS this fails, as config.log is still kept open
16155 # by configure, so config.status won't be able to write to it; its
16156 # output is simply discarded. So we exec the FD to /dev/null,
16157 # effectively closing config.log, so it can be properly (re)opened and
16158 # appended to by config.status. When coming back to configure, we
16159 # need to make the FD available again.
16160 if test "$no_create" != yes; then
16162 ac_config_status_args=
16163 test "$silent" = yes &&
16164 ac_config_status_args="$ac_config_status_args --quiet"
16166 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16168 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16169 # would make configure fail if this is the last instruction.
16170 $ac_cs_success || as_fn_exit 1
16172 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16173 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16174 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16177 if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi