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
698 INTL_LIBTOOL_SUFFIX_PREFIX
705 BUILD_INCLUDED_LIBINTL
715 INTL_DEFAULT_VERBOSITY
734 XGETTEXT_EXTRA_OPTIONS
742 GETTEXT_MACRO_VERSION
851 program_transform_name
862 ac_subst_files='MCONFIG
868 PUBLIC_CONFIG_HEADER'
870 enable_option_checking
876 enable_maintainer_mode
877 enable_symlink_install
878 enable_relative_symlinks
879 enable_symlink_relative_symlinks
881 enable_verbose_makecmds
898 enable_e2initrd_helper
904 enable_bmap_stats_ops
911 with_included_gettext
919 with_systemd_unit_dir
921 ac_precious_vars='build_alias
939 # Initialize some variables set by options.
941 ac_init_version=false
942 ac_unrecognized_opts=
944 # The variables have the same names as the options, with
945 # dashes changed to underlines.
953 program_transform_name=s,x,x,
961 # Installation directory options.
962 # These are left unexpanded so users can "make install exec_prefix=/foo"
963 # and all the variables that are supposed to be based on exec_prefix
964 # by default will actually change.
965 # Use braces instead of parens because sh, perl, etc. also accept them.
966 # (The list follows the same order as the GNU Coding Standards.)
967 bindir='${exec_prefix}/bin'
968 sbindir='${exec_prefix}/sbin'
969 libexecdir='${exec_prefix}/libexec'
970 datarootdir='${prefix}/share'
971 datadir='${datarootdir}'
972 sysconfdir='${prefix}/etc'
973 sharedstatedir='${prefix}/com'
974 localstatedir='${prefix}/var'
975 runstatedir='${localstatedir}/run'
976 includedir='${prefix}/include'
977 oldincludedir='/usr/include'
978 docdir='${datarootdir}/doc/${PACKAGE}'
979 infodir='${datarootdir}/info'
984 libdir='${exec_prefix}/lib'
985 localedir='${datarootdir}/locale'
986 mandir='${datarootdir}/man'
992 # If the previous option needs an argument, assign it.
993 if test -n "$ac_prev"; then
994 eval $ac_prev=\$ac_option
1000 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1005 # Accept the important Cygnus configure options, so we can diagnose typos.
1007 case $ac_dashdash$ac_option in
1011 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1013 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1014 bindir=$ac_optarg ;;
1016 -build | --build | --buil | --bui | --bu)
1017 ac_prev=build_alias ;;
1018 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1019 build_alias=$ac_optarg ;;
1021 -cache-file | --cache-file | --cache-fil | --cache-fi \
1022 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1023 ac_prev=cache_file ;;
1024 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1025 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1026 cache_file=$ac_optarg ;;
1028 --config-cache | -C)
1029 cache_file=config.cache ;;
1031 -datadir | --datadir | --datadi | --datad)
1033 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1034 datadir=$ac_optarg ;;
1036 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1037 | --dataroo | --dataro | --datar)
1038 ac_prev=datarootdir ;;
1039 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1040 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1041 datarootdir=$ac_optarg ;;
1043 -disable-* | --disable-*)
1044 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1045 # Reject names that are not valid shell variable names.
1046 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1047 as_fn_error $? "invalid feature name: $ac_useropt"
1048 ac_useropt_orig=$ac_useropt
1049 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1050 case $ac_user_opts in
1052 "enable_$ac_useropt"
1054 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1055 ac_unrecognized_sep=', ';;
1057 eval enable_$ac_useropt=no ;;
1059 -docdir | --docdir | --docdi | --doc | --do)
1061 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1062 docdir=$ac_optarg ;;
1064 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1066 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1067 dvidir=$ac_optarg ;;
1069 -enable-* | --enable-*)
1070 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1071 # Reject names that are not valid shell variable names.
1072 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1073 as_fn_error $? "invalid feature name: $ac_useropt"
1074 ac_useropt_orig=$ac_useropt
1075 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1076 case $ac_user_opts in
1078 "enable_$ac_useropt"
1080 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1081 ac_unrecognized_sep=', ';;
1083 eval enable_$ac_useropt=\$ac_optarg ;;
1085 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1086 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1087 | --exec | --exe | --ex)
1088 ac_prev=exec_prefix ;;
1089 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1090 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1091 | --exec=* | --exe=* | --ex=*)
1092 exec_prefix=$ac_optarg ;;
1094 -gas | --gas | --ga | --g)
1095 # Obsolete; use --with-gas.
1098 -help | --help | --hel | --he | -h)
1099 ac_init_help=long ;;
1100 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1101 ac_init_help=recursive ;;
1102 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1103 ac_init_help=short ;;
1105 -host | --host | --hos | --ho)
1106 ac_prev=host_alias ;;
1107 -host=* | --host=* | --hos=* | --ho=*)
1108 host_alias=$ac_optarg ;;
1110 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1112 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1114 htmldir=$ac_optarg ;;
1116 -includedir | --includedir | --includedi | --included | --include \
1117 | --includ | --inclu | --incl | --inc)
1118 ac_prev=includedir ;;
1119 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1120 | --includ=* | --inclu=* | --incl=* | --inc=*)
1121 includedir=$ac_optarg ;;
1123 -infodir | --infodir | --infodi | --infod | --info | --inf)
1125 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1126 infodir=$ac_optarg ;;
1128 -libdir | --libdir | --libdi | --libd)
1130 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1131 libdir=$ac_optarg ;;
1133 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1134 | --libexe | --libex | --libe)
1135 ac_prev=libexecdir ;;
1136 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1137 | --libexe=* | --libex=* | --libe=*)
1138 libexecdir=$ac_optarg ;;
1140 -localedir | --localedir | --localedi | --localed | --locale)
1141 ac_prev=localedir ;;
1142 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1143 localedir=$ac_optarg ;;
1145 -localstatedir | --localstatedir | --localstatedi | --localstated \
1146 | --localstate | --localstat | --localsta | --localst | --locals)
1147 ac_prev=localstatedir ;;
1148 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1149 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1150 localstatedir=$ac_optarg ;;
1152 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1154 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1155 mandir=$ac_optarg ;;
1157 -nfp | --nfp | --nf)
1158 # Obsolete; use --without-fp.
1161 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1162 | --no-cr | --no-c | -n)
1165 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1166 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1169 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1170 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1171 | --oldin | --oldi | --old | --ol | --o)
1172 ac_prev=oldincludedir ;;
1173 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1174 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1175 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1176 oldincludedir=$ac_optarg ;;
1178 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1180 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1181 prefix=$ac_optarg ;;
1183 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1184 | --program-pre | --program-pr | --program-p)
1185 ac_prev=program_prefix ;;
1186 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1187 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1188 program_prefix=$ac_optarg ;;
1190 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1191 | --program-suf | --program-su | --program-s)
1192 ac_prev=program_suffix ;;
1193 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1194 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1195 program_suffix=$ac_optarg ;;
1197 -program-transform-name | --program-transform-name \
1198 | --program-transform-nam | --program-transform-na \
1199 | --program-transform-n | --program-transform- \
1200 | --program-transform | --program-transfor \
1201 | --program-transfo | --program-transf \
1202 | --program-trans | --program-tran \
1203 | --progr-tra | --program-tr | --program-t)
1204 ac_prev=program_transform_name ;;
1205 -program-transform-name=* | --program-transform-name=* \
1206 | --program-transform-nam=* | --program-transform-na=* \
1207 | --program-transform-n=* | --program-transform-=* \
1208 | --program-transform=* | --program-transfor=* \
1209 | --program-transfo=* | --program-transf=* \
1210 | --program-trans=* | --program-tran=* \
1211 | --progr-tra=* | --program-tr=* | --program-t=*)
1212 program_transform_name=$ac_optarg ;;
1214 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1216 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1217 pdfdir=$ac_optarg ;;
1219 -psdir | --psdir | --psdi | --psd | --ps)
1221 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1224 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1225 | -silent | --silent | --silen | --sile | --sil)
1228 -runstatedir | --runstatedir | --runstatedi | --runstated \
1229 | --runstate | --runstat | --runsta | --runst | --runs \
1230 | --run | --ru | --r)
1231 ac_prev=runstatedir ;;
1232 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1233 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1234 | --run=* | --ru=* | --r=*)
1235 runstatedir=$ac_optarg ;;
1237 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1239 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1241 sbindir=$ac_optarg ;;
1243 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1244 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1245 | --sharedst | --shareds | --shared | --share | --shar \
1247 ac_prev=sharedstatedir ;;
1248 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1249 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1250 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1252 sharedstatedir=$ac_optarg ;;
1254 -site | --site | --sit)
1256 -site=* | --site=* | --sit=*)
1259 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1261 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1262 srcdir=$ac_optarg ;;
1264 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1265 | --syscon | --sysco | --sysc | --sys | --sy)
1266 ac_prev=sysconfdir ;;
1267 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1268 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1269 sysconfdir=$ac_optarg ;;
1271 -target | --target | --targe | --targ | --tar | --ta | --t)
1272 ac_prev=target_alias ;;
1273 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1274 target_alias=$ac_optarg ;;
1276 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1279 -version | --version | --versio | --versi | --vers | -V)
1280 ac_init_version=: ;;
1283 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1284 # Reject names that are not valid shell variable names.
1285 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1286 as_fn_error $? "invalid package name: $ac_useropt"
1287 ac_useropt_orig=$ac_useropt
1288 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1289 case $ac_user_opts in
1293 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1294 ac_unrecognized_sep=', ';;
1296 eval with_$ac_useropt=\$ac_optarg ;;
1298 -without-* | --without-*)
1299 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1300 # Reject names that are not valid shell variable names.
1301 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1302 as_fn_error $? "invalid package name: $ac_useropt"
1303 ac_useropt_orig=$ac_useropt
1304 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1305 case $ac_user_opts in
1309 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1310 ac_unrecognized_sep=', ';;
1312 eval with_$ac_useropt=no ;;
1315 # Obsolete; use --with-x.
1318 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1319 | --x-incl | --x-inc | --x-in | --x-i)
1320 ac_prev=x_includes ;;
1321 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1322 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1323 x_includes=$ac_optarg ;;
1325 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1326 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1327 ac_prev=x_libraries ;;
1328 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1329 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1330 x_libraries=$ac_optarg ;;
1332 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1333 Try \`$0 --help' for more information"
1337 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1338 # Reject names that are not valid shell variable names.
1339 case $ac_envvar in #(
1340 '' | [0-9]* | *[!_$as_cr_alnum]* )
1341 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1343 eval $ac_envvar=\$ac_optarg
1344 export $ac_envvar ;;
1347 # FIXME: should be removed in autoconf 3.0.
1348 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1349 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1350 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1351 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1357 if test -n "$ac_prev"; then
1358 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1359 as_fn_error $? "missing argument to $ac_option"
1362 if test -n "$ac_unrecognized_opts"; then
1363 case $enable_option_checking in
1365 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1366 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1370 # Check all directory arguments for consistency.
1371 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1372 datadir sysconfdir sharedstatedir localstatedir includedir \
1373 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1374 libdir localedir mandir runstatedir
1376 eval ac_val=\$$ac_var
1377 # Remove trailing slashes.
1380 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1381 eval $ac_var=\$ac_val;;
1383 # Be sure to have absolute directory names.
1385 [\\/$]* | ?:[\\/]* ) continue;;
1386 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1388 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1391 # There might be people who depend on the old broken behavior: `$host'
1392 # used to hold the argument of --host etc.
1393 # FIXME: To remove some day.
1396 target=$target_alias
1398 # FIXME: To remove some day.
1399 if test "x$host_alias" != x; then
1400 if test "x$build_alias" = x; then
1401 cross_compiling=maybe
1402 elif test "x$build_alias" != "x$host_alias"; then
1408 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1410 test "$silent" = yes && exec 6>/dev/null
1413 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1414 ac_ls_di=`ls -di .` &&
1415 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1416 as_fn_error $? "working directory cannot be determined"
1417 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1418 as_fn_error $? "pwd does not report name of working directory"
1421 # Find the source files, if location was not specified.
1422 if test -z "$srcdir"; then
1423 ac_srcdir_defaulted=yes
1424 # Try the directory containing this script, then the parent directory.
1425 ac_confdir=`$as_dirname -- "$as_myself" ||
1426 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1427 X"$as_myself" : 'X\(//\)[^/]' \| \
1428 X"$as_myself" : 'X\(//\)$' \| \
1429 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1430 $as_echo X"$as_myself" |
1431 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1449 if test ! -r "$srcdir/$ac_unique_file"; then
1453 ac_srcdir_defaulted=no
1455 if test ! -r "$srcdir/$ac_unique_file"; then
1456 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1457 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1459 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1461 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1463 # When building in place, set srcdir=.
1464 if test "$ac_abs_confdir" = "$ac_pwd"; then
1467 # Remove unnecessary trailing slashes from srcdir.
1468 # Double slashes in file names in object file debugging info
1469 # mess up M-x gdb in Emacs.
1471 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1473 for ac_var in $ac_precious_vars; do
1474 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1475 eval ac_env_${ac_var}_value=\$${ac_var}
1476 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1477 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1481 # Report the --help message.
1483 if test "$ac_init_help" = "long"; then
1484 # Omit some internal or obsolete options to make the list less imposing.
1485 # This message is too long to be a string in the A/UX 3.1 sh.
1487 \`configure' configures this package to adapt to many kinds of systems.
1489 Usage: $0 [OPTION]... [VAR=VALUE]...
1491 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1492 VAR=VALUE. See below for descriptions of some of the useful variables.
1494 Defaults for the options are specified in brackets.
1497 -h, --help display this help and exit
1498 --help=short display options specific to this package
1499 --help=recursive display the short help of all the included packages
1500 -V, --version display version information and exit
1501 -q, --quiet, --silent do not print \`checking ...' messages
1502 --cache-file=FILE cache test results in FILE [disabled]
1503 -C, --config-cache alias for \`--cache-file=config.cache'
1504 -n, --no-create do not create output files
1505 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1507 Installation directories:
1508 --prefix=PREFIX install architecture-independent files in PREFIX
1509 [$ac_default_prefix]
1510 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1513 By default, \`make install' will install all the files in
1514 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1515 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1516 for instance \`--prefix=\$HOME'.
1518 For better control, use the options below.
1520 Fine tuning of the installation directories:
1521 --bindir=DIR user executables [EPREFIX/bin]
1522 --sbindir=DIR system admin executables [EPREFIX/sbin]
1523 --libexecdir=DIR program executables [EPREFIX/libexec]
1524 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1525 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1526 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1527 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
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 --disable-backtrace disable use backtrace
1576 --disable-debugfs disable support of debugfs program
1577 --disable-imager disable support of e2image program
1578 --disable-resizer disable support of e2resize program
1579 --disable-defrag disable support of e4defrag program
1580 --enable-fsck build fsck wrapper program
1581 --enable-e2initrd-helper build e2initrd-helper program
1582 --disable-tls disable use of thread local support
1583 --disable-uuidd disable building the uuid daemon
1584 --disable-mmp disable support mmp, Multi Mount Protection
1585 --disable-tdb disable tdb support
1586 --disable-bmap-stats disable collection of bitmap stats.
1587 --enable-bmap-stats-ops enable collection of additional bitmap stats
1588 --disable-nls do not use Native Language Support
1589 --enable-threads={posix|solaris|pth|windows}
1590 specify multithreading API
1591 --disable-threads build without multithread safety
1592 --disable-rpath do not hardcode runtime library paths
1593 --disable-fuse2fs do not build fuse2fs
1594 --enable-lto enable link time optimization
1595 --enable-ubsan enable undefined behavior sanitizer
1598 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1599 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1600 --with-diet-libc use diet libc
1601 --with-cc no longer supported, use CC= instead
1602 --with-ccopts no longer supported, use CFLAGS= instead
1603 --with-ldopts no longer supported, use LDFLAGS= instead
1604 --with-root-prefix=PREFIX override prefix variable for files to be placed in the root
1605 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1606 --with-libpth-prefix[=DIR] search for libpth in DIR/include and DIR/lib
1607 --without-libpth-prefix don't search for libpth in includedir and libdir
1608 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1609 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1610 --with-included-gettext use the GNU gettext library included here
1611 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1612 --without-libintl-prefix don't search for libintl in includedir and libdir
1613 --with-multiarch=ARCH specify the multiarch triplet
1614 --with-udev-rules-dir[=DIR]
1615 Install udev rules into DIR.
1616 --with-crond-dir[=DIR] Install system crontabs into DIR.
1617 --with-systemd-unit-dir[=DIR]
1618 Install systemd system units into DIR.
1620 Some influential environment variables:
1621 CC C compiler command
1622 CFLAGS C compiler flags
1623 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1624 nonstandard directory <lib dir>
1625 LIBS libraries to pass to the linker, e.g. -l<library>
1626 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1627 you have headers in a nonstandard directory <include dir>
1629 PKG_CONFIG path to pkg-config utility
1631 directories to add to pkg-config's search path
1633 path overriding pkg-config's built-in search path
1634 udev_CFLAGS C compiler flags for udev, overriding pkg-config
1635 udev_LIBS linker flags for udev, overriding pkg-config
1637 C compiler flags for systemd, overriding pkg-config
1639 linker flags for systemd, overriding pkg-config
1641 Use these variables to override the choices made by `configure' or to help
1642 it to find libraries and programs with nonstandard names/locations.
1644 Report bugs to the package provider.
1649 if test "$ac_init_help" = "recursive"; then
1650 # If there are subdirs, report their specific --help.
1651 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1652 test -d "$ac_dir" ||
1653 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1658 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1660 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1661 # A ".." for each directory in $ac_dir_suffix.
1662 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1663 case $ac_top_builddir_sub in
1664 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1665 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1668 ac_abs_top_builddir=$ac_pwd
1669 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1670 # for backward compatibility:
1671 ac_top_builddir=$ac_top_build_prefix
1674 .) # We are building in place.
1676 ac_top_srcdir=$ac_top_builddir_sub
1677 ac_abs_top_srcdir=$ac_pwd ;;
1678 [\\/]* | ?:[\\/]* ) # Absolute name.
1679 ac_srcdir=$srcdir$ac_dir_suffix;
1680 ac_top_srcdir=$srcdir
1681 ac_abs_top_srcdir=$srcdir ;;
1683 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1684 ac_top_srcdir=$ac_top_build_prefix$srcdir
1685 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1687 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1689 cd "$ac_dir" || { ac_status=$?; continue; }
1690 # Check for guested configure.
1691 if test -f "$ac_srcdir/configure.gnu"; then
1693 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1694 elif test -f "$ac_srcdir/configure"; then
1696 $SHELL "$ac_srcdir/configure" --help=recursive
1698 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1700 cd "$ac_pwd" || { ac_status=$?; break; }
1704 test -n "$ac_init_help" && exit $ac_status
1705 if $ac_init_version; then
1708 generated by GNU Autoconf 2.69
1710 Copyright (C) 2012 Free Software Foundation, Inc.
1711 This configure script is free software; the Free Software Foundation
1712 gives unlimited permission to copy, distribute and modify it.
1717 ## ------------------------ ##
1718 ## Autoconf initialization. ##
1719 ## ------------------------ ##
1721 # ac_fn_c_try_compile LINENO
1722 # --------------------------
1723 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1724 ac_fn_c_try_compile ()
1726 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1727 rm -f conftest.$ac_objext
1728 if { { ac_try="$ac_compile"
1730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1731 *) ac_try_echo=$ac_try;;
1733 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1734 $as_echo "$ac_try_echo"; } >&5
1735 (eval "$ac_compile") 2>conftest.err
1737 if test -s conftest.err; then
1738 grep -v '^ *+' conftest.err >conftest.er1
1739 cat conftest.er1 >&5
1740 mv -f conftest.er1 conftest.err
1742 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1743 test $ac_status = 0; } && {
1744 test -z "$ac_c_werror_flag" ||
1745 test ! -s conftest.err
1746 } && test -s conftest.$ac_objext; then :
1749 $as_echo "$as_me: failed program was:" >&5
1750 sed 's/^/| /' conftest.$ac_ext >&5
1754 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1755 as_fn_set_status $ac_retval
1757 } # ac_fn_c_try_compile
1759 # ac_fn_c_try_link LINENO
1760 # -----------------------
1761 # Try to link conftest.$ac_ext, and return whether this succeeded.
1764 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1765 rm -f conftest.$ac_objext conftest$ac_exeext
1766 if { { ac_try="$ac_link"
1768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1769 *) ac_try_echo=$ac_try;;
1771 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1772 $as_echo "$ac_try_echo"; } >&5
1773 (eval "$ac_link") 2>conftest.err
1775 if test -s conftest.err; then
1776 grep -v '^ *+' conftest.err >conftest.er1
1777 cat conftest.er1 >&5
1778 mv -f conftest.er1 conftest.err
1780 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1781 test $ac_status = 0; } && {
1782 test -z "$ac_c_werror_flag" ||
1783 test ! -s conftest.err
1784 } && test -s conftest$ac_exeext && {
1785 test "$cross_compiling" = yes ||
1786 test -x conftest$ac_exeext
1790 $as_echo "$as_me: failed program was:" >&5
1791 sed 's/^/| /' conftest.$ac_ext >&5
1795 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1796 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1797 # interfere with the next link command; also delete a directory that is
1798 # left behind by Apple's compiler. We do this before executing the actions.
1799 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1800 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1801 as_fn_set_status $ac_retval
1803 } # ac_fn_c_try_link
1805 # ac_fn_c_try_cpp LINENO
1806 # ----------------------
1807 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1810 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1811 if { { ac_try="$ac_cpp conftest.$ac_ext"
1813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1814 *) ac_try_echo=$ac_try;;
1816 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1817 $as_echo "$ac_try_echo"; } >&5
1818 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1820 if test -s conftest.err; then
1821 grep -v '^ *+' conftest.err >conftest.er1
1822 cat conftest.er1 >&5
1823 mv -f conftest.er1 conftest.err
1825 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1826 test $ac_status = 0; } > conftest.i && {
1827 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1828 test ! -s conftest.err
1832 $as_echo "$as_me: failed program was:" >&5
1833 sed 's/^/| /' conftest.$ac_ext >&5
1837 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1838 as_fn_set_status $ac_retval
1842 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1843 # -------------------------------------------------------
1844 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1845 # the include files in INCLUDES and setting the cache variable VAR
1847 ac_fn_c_check_header_mongrel ()
1849 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1850 if eval \${$3+:} false; then :
1851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1852 $as_echo_n "checking for $2... " >&6; }
1853 if eval \${$3+:} false; then :
1854 $as_echo_n "(cached) " >&6
1857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1858 $as_echo "$ac_res" >&6; }
1860 # Is the header compilable?
1861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1862 $as_echo_n "checking $2 usability... " >&6; }
1863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1864 /* end confdefs.h. */
1868 if ac_fn_c_try_compile "$LINENO"; then :
1869 ac_header_compiler=yes
1871 ac_header_compiler=no
1873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1875 $as_echo "$ac_header_compiler" >&6; }
1877 # Is the header present?
1878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1879 $as_echo_n "checking $2 presence... " >&6; }
1880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1881 /* end confdefs.h. */
1884 if ac_fn_c_try_cpp "$LINENO"; then :
1885 ac_header_preproc=yes
1887 ac_header_preproc=no
1889 rm -f conftest.err conftest.i conftest.$ac_ext
1890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1891 $as_echo "$ac_header_preproc" >&6; }
1893 # So? What about this header?
1894 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1896 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1897 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1898 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1899 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1902 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1903 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1904 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1905 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1906 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1907 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1908 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1909 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1910 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1911 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1915 $as_echo_n "checking for $2... " >&6; }
1916 if eval \${$3+:} false; then :
1917 $as_echo_n "(cached) " >&6
1919 eval "$3=\$ac_header_compiler"
1922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1923 $as_echo "$ac_res" >&6; }
1925 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1927 } # ac_fn_c_check_header_mongrel
1929 # ac_fn_c_try_run LINENO
1930 # ----------------------
1931 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1932 # that executables *can* be run.
1935 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1936 if { { ac_try="$ac_link"
1938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1939 *) ac_try_echo=$ac_try;;
1941 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1942 $as_echo "$ac_try_echo"; } >&5
1943 (eval "$ac_link") 2>&5
1945 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1946 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1947 { { case "(($ac_try" in
1948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1949 *) ac_try_echo=$ac_try;;
1951 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1952 $as_echo "$ac_try_echo"; } >&5
1953 (eval "$ac_try") 2>&5
1955 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1956 test $ac_status = 0; }; }; then :
1959 $as_echo "$as_me: program exited with status $ac_status" >&5
1960 $as_echo "$as_me: failed program was:" >&5
1961 sed 's/^/| /' conftest.$ac_ext >&5
1963 ac_retval=$ac_status
1965 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1966 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1967 as_fn_set_status $ac_retval
1971 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1972 # -------------------------------------------------------
1973 # Tests whether HEADER exists and can be compiled using the include files in
1974 # INCLUDES, setting the cache variable VAR accordingly.
1975 ac_fn_c_check_header_compile ()
1977 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1979 $as_echo_n "checking for $2... " >&6; }
1980 if eval \${$3+:} false; then :
1981 $as_echo_n "(cached) " >&6
1983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1984 /* end confdefs.h. */
1988 if ac_fn_c_try_compile "$LINENO"; then :
1993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1997 $as_echo "$ac_res" >&6; }
1998 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2000 } # ac_fn_c_check_header_compile
2002 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2003 # -------------------------------------------
2004 # Tests whether TYPE exists after having included INCLUDES, setting cache
2005 # variable VAR accordingly.
2006 ac_fn_c_check_type ()
2008 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2010 $as_echo_n "checking for $2... " >&6; }
2011 if eval \${$3+:} false; then :
2012 $as_echo_n "(cached) " >&6
2015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2016 /* end confdefs.h. */
2027 if ac_fn_c_try_compile "$LINENO"; then :
2028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2029 /* end confdefs.h. */
2040 if ac_fn_c_try_compile "$LINENO"; then :
2045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2051 $as_echo "$ac_res" >&6; }
2052 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2054 } # ac_fn_c_check_type
2056 # ac_fn_c_check_func LINENO FUNC VAR
2057 # ----------------------------------
2058 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2059 ac_fn_c_check_func ()
2061 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2063 $as_echo_n "checking for $2... " >&6; }
2064 if eval \${$3+:} false; then :
2065 $as_echo_n "(cached) " >&6
2067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2068 /* end confdefs.h. */
2069 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2070 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2071 #define $2 innocuous_$2
2073 /* System header to define __stub macros and hopefully few prototypes,
2074 which can conflict with char $2 (); below.
2075 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2076 <limits.h> exists even on freestanding compilers. */
2079 # include <limits.h>
2081 # include <assert.h>
2086 /* Override any GCC internal prototype to avoid an error.
2087 Use char because int might match the return type of a GCC
2088 builtin and then its argument prototype would still apply. */
2093 /* The GNU C library defines this for functions which it implements
2094 to always fail with ENOSYS. Some functions are actually named
2095 something starting with __ and the normal name is an alias. */
2096 #if defined __stub_$2 || defined __stub___$2
2108 if ac_fn_c_try_link "$LINENO"; then :
2113 rm -f core conftest.err conftest.$ac_objext \
2114 conftest$ac_exeext conftest.$ac_ext
2117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2118 $as_echo "$ac_res" >&6; }
2119 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2121 } # ac_fn_c_check_func
2123 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2124 # ---------------------------------------------
2125 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2127 ac_fn_c_check_decl ()
2129 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2130 as_decl_name=`echo $2|sed 's/ *(.*//'`
2131 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2133 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2134 if eval \${$3+:} false; then :
2135 $as_echo_n "(cached) " >&6
2137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2138 /* end confdefs.h. */
2143 #ifndef $as_decl_name
2145 (void) $as_decl_use;
2147 (void) $as_decl_name;
2155 if ac_fn_c_try_compile "$LINENO"; then :
2160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2164 $as_echo "$ac_res" >&6; }
2165 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2167 } # ac_fn_c_check_decl
2169 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2170 # --------------------------------------------
2171 # Tries to find the compile-time value of EXPR in a program that includes
2172 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2174 ac_fn_c_compute_int ()
2176 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2177 if test "$cross_compiling" = yes; then
2178 # Depending upon the size, compute the lo and hi bounds.
2179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2180 /* end confdefs.h. */
2185 static int test_array [1 - 2 * !(($2) >= 0)];
2187 return test_array [0];
2193 if ac_fn_c_try_compile "$LINENO"; then :
2196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2197 /* end confdefs.h. */
2202 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2204 return test_array [0];
2210 if ac_fn_c_try_compile "$LINENO"; then :
2211 ac_hi=$ac_mid; break
2213 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2214 if test $ac_lo -le $ac_mid; then
2218 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2224 /* end confdefs.h. */
2229 static int test_array [1 - 2 * !(($2) < 0)];
2231 return test_array [0];
2237 if ac_fn_c_try_compile "$LINENO"; then :
2240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2241 /* end confdefs.h. */
2246 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2248 return test_array [0];
2254 if ac_fn_c_try_compile "$LINENO"; then :
2255 ac_lo=$ac_mid; break
2257 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2258 if test $ac_mid -le $ac_hi; then
2262 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2272 # Binary search between lo and hi bounds.
2273 while test "x$ac_lo" != "x$ac_hi"; do
2274 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2276 /* end confdefs.h. */
2281 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2283 return test_array [0];
2289 if ac_fn_c_try_compile "$LINENO"; then :
2292 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2297 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2302 /* end confdefs.h. */
2304 static long int longval () { return $2; }
2305 static unsigned long int ulongval () { return $2; }
2312 FILE *f = fopen ("conftest.val", "w");
2317 long int i = longval ();
2320 fprintf (f, "%ld", i);
2324 unsigned long int i = ulongval ();
2327 fprintf (f, "%lu", i);
2329 /* Do not output a trailing newline, as this causes \r\n confusion
2330 on some platforms. */
2331 return ferror (f) || fclose (f) != 0;
2337 if ac_fn_c_try_run "$LINENO"; then :
2338 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2342 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2343 conftest.$ac_objext conftest.beam conftest.$ac_ext
2347 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2348 as_fn_set_status $ac_retval
2350 } # ac_fn_c_compute_int
2352 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2353 # ----------------------------------------------------
2354 # Tries to find if the field MEMBER exists in type AGGR, after including
2355 # INCLUDES, setting cache variable VAR accordingly.
2356 ac_fn_c_check_member ()
2358 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2360 $as_echo_n "checking for $2.$3... " >&6; }
2361 if eval \${$4+:} false; then :
2362 $as_echo_n "(cached) " >&6
2364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2365 /* end confdefs.h. */
2377 if ac_fn_c_try_compile "$LINENO"; then :
2380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2381 /* end confdefs.h. */
2387 if (sizeof ac_aggr.$3)
2393 if ac_fn_c_try_compile "$LINENO"; then :
2398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2404 $as_echo "$ac_res" >&6; }
2405 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2407 } # ac_fn_c_check_member
2408 cat >config.log <<_ACEOF
2409 This file contains any messages produced by compilers while
2410 running configure, to aid debugging if configure makes a mistake.
2412 It was created by $as_me, which was
2413 generated by GNU Autoconf 2.69. Invocation command line was
2425 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2426 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2427 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2428 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2429 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2431 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2432 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2434 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2435 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2436 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2437 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2438 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2439 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2440 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2448 test -z "$as_dir" && as_dir=.
2449 $as_echo "PATH: $as_dir"
2465 # Keep a trace of the command line.
2466 # Strip out --no-create and --no-recursion so they do not pile up.
2467 # Strip out --silent because we don't want to record it for future runs.
2468 # Also quote any args containing shell meta-characters.
2469 # Make two passes to allow for proper duplicate-argument suppression.
2473 ac_must_keep_next=false
2479 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2480 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2481 | -silent | --silent | --silen | --sile | --sil)
2484 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2487 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2489 as_fn_append ac_configure_args1 " '$ac_arg'"
2490 if test $ac_must_keep_next = true; then
2491 ac_must_keep_next=false # Got value, back to normal.
2494 *=* | --config-cache | -C | -disable-* | --disable-* \
2495 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2496 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2497 | -with-* | --with-* | -without-* | --without-* | --x)
2498 case "$ac_configure_args0 " in
2499 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2502 -* ) ac_must_keep_next=true ;;
2505 as_fn_append ac_configure_args " '$ac_arg'"
2510 { ac_configure_args0=; unset ac_configure_args0;}
2511 { ac_configure_args1=; unset ac_configure_args1;}
2513 # When interrupted or exit'd, cleanup temporary files, and complete
2514 # config.log. We remove comments because anyway the quotes in there
2515 # would cause problems or look ugly.
2516 # WARNING: Use '\'' to represent an apostrophe within the trap.
2517 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2518 trap 'exit_status=$?
2519 # Save into config.log some information that might help in debugging.
2523 $as_echo "## ---------------- ##
2524 ## Cache variables. ##
2525 ## ---------------- ##"
2527 # The following way of writing the cache mishandles newlines in values,
2529 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2530 eval ac_val=\$$ac_var
2534 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2535 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2538 _ | IFS | as_nl) ;; #(
2539 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2540 *) { eval $ac_var=; unset $ac_var;} ;;
2545 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2546 *${as_nl}ac_space=\ *)
2548 "s/'\''/'\''\\\\'\'''\''/g;
2549 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2552 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2559 $as_echo "## ----------------- ##
2560 ## Output variables. ##
2561 ## ----------------- ##"
2563 for ac_var in $ac_subst_vars
2565 eval ac_val=\$$ac_var
2567 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2569 $as_echo "$ac_var='\''$ac_val'\''"
2573 if test -n "$ac_subst_files"; then
2574 $as_echo "## ------------------- ##
2575 ## File substitutions. ##
2576 ## ------------------- ##"
2578 for ac_var in $ac_subst_files
2580 eval ac_val=\$$ac_var
2582 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2584 $as_echo "$ac_var='\''$ac_val'\''"
2589 if test -s confdefs.h; then
2590 $as_echo "## ----------- ##
2597 test "$ac_signal" != 0 &&
2598 $as_echo "$as_me: caught signal $ac_signal"
2599 $as_echo "$as_me: exit $exit_status"
2601 rm -f core *.core core.conftest.* &&
2602 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2605 for ac_signal in 1 2 13 15; do
2606 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2610 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2611 rm -f -r conftest* confdefs.h
2613 $as_echo "/* confdefs.h */" > confdefs.h
2615 # Predefined preprocessor variables.
2617 cat >>confdefs.h <<_ACEOF
2618 #define PACKAGE_NAME "$PACKAGE_NAME"
2621 cat >>confdefs.h <<_ACEOF
2622 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2625 cat >>confdefs.h <<_ACEOF
2626 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2629 cat >>confdefs.h <<_ACEOF
2630 #define PACKAGE_STRING "$PACKAGE_STRING"
2633 cat >>confdefs.h <<_ACEOF
2634 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2637 cat >>confdefs.h <<_ACEOF
2638 #define PACKAGE_URL "$PACKAGE_URL"
2642 # Let the site file select an alternate cache file if it wants to.
2643 # Prefer an explicitly selected file to automatically selected ones.
2646 if test -n "$CONFIG_SITE"; then
2647 # We do not want a PATH search for config.site.
2648 case $CONFIG_SITE in #((
2649 -*) ac_site_file1=./$CONFIG_SITE;;
2650 */*) ac_site_file1=$CONFIG_SITE;;
2651 *) ac_site_file1=./$CONFIG_SITE;;
2653 elif test "x$prefix" != xNONE; then
2654 ac_site_file1=$prefix/share/config.site
2655 ac_site_file2=$prefix/etc/config.site
2657 ac_site_file1=$ac_default_prefix/share/config.site
2658 ac_site_file2=$ac_default_prefix/etc/config.site
2660 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2662 test "x$ac_site_file" = xNONE && continue
2663 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2664 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2665 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2666 sed 's/^/| /' "$ac_site_file" >&5
2668 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2669 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2670 as_fn_error $? "failed to load site script $ac_site_file
2671 See \`config.log' for more details" "$LINENO" 5; }
2675 if test -r "$cache_file"; then
2676 # Some versions of bash will fail to source /dev/null (special files
2677 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2678 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2679 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2680 $as_echo "$as_me: loading cache $cache_file" >&6;}
2682 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2683 *) . "./$cache_file";;
2687 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2688 $as_echo "$as_me: creating cache $cache_file" >&6;}
2692 gt_needs="$gt_needs "
2693 as_fn_append ac_header_list " stdlib.h"
2694 as_fn_append ac_header_list " unistd.h"
2695 as_fn_append ac_header_list " sys/param.h"
2696 as_fn_append ac_func_list " symlink"
2697 # Check that the precious variables saved in the cache have kept the same
2699 ac_cache_corrupted=false
2700 for ac_var in $ac_precious_vars; do
2701 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2702 eval ac_new_set=\$ac_env_${ac_var}_set
2703 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2704 eval ac_new_val=\$ac_env_${ac_var}_value
2705 case $ac_old_set,$ac_new_set in
2707 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2708 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2709 ac_cache_corrupted=: ;;
2711 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2712 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2713 ac_cache_corrupted=: ;;
2716 if test "x$ac_old_val" != "x$ac_new_val"; then
2717 # differences in whitespace do not lead to failure.
2718 ac_old_val_w=`echo x $ac_old_val`
2719 ac_new_val_w=`echo x $ac_new_val`
2720 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2721 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2722 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2723 ac_cache_corrupted=:
2725 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2726 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2727 eval $ac_var=\$ac_old_val
2729 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2730 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2731 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2732 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2735 # Pass precious variables to config.status.
2736 if test "$ac_new_set" = set; then
2738 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2739 *) ac_arg=$ac_var=$ac_new_val ;;
2741 case " $ac_configure_args " in
2742 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2743 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2747 if $ac_cache_corrupted; then
2748 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2749 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2750 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2751 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2752 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2754 ## -------------------- ##
2755 ## Main body of script. ##
2756 ## -------------------- ##
2759 ac_cpp='$CPP $CPPFLAGS'
2760 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2761 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2762 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2767 for ac_dir in config "$srcdir"/config; do
2768 if test -f "$ac_dir/install-sh"; then
2770 ac_install_sh="$ac_aux_dir/install-sh -c"
2772 elif test -f "$ac_dir/install.sh"; then
2774 ac_install_sh="$ac_aux_dir/install.sh -c"
2776 elif test -f "$ac_dir/shtool"; then
2778 ac_install_sh="$ac_aux_dir/shtool install -c"
2782 if test -z "$ac_aux_dir"; then
2783 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2786 # These three variables are undocumented and unsupported,
2787 # and are intended to be withdrawn in a future Autoconf release.
2788 # They can cause serious problems if a builder's source tree is in a directory
2789 # whose full name contains unusual characters.
2790 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2791 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2792 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2795 ac_config_headers="$ac_config_headers lib/config.h"
2801 E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \
2802 | awk '{print $3}' | tr \" " " | awk '{print $1}'`
2803 E2FSPROGS_DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
2804 | tr \" " " | awk '{print $1}'`
2805 E2FSPROGS_DAY=$(echo $E2FSPROGS_DATE | awk -F- '{print $1}' | sed -e '/^[1-9]$/s/^/0/')
2806 MONTH=`echo $E2FSPROGS_DATE | awk -F- '{print $2}'`
2807 YEAR=`echo $E2FSPROGS_DATE | awk -F- '{print $3}'`
2809 if expr $YEAR ">" 1900 > /dev/null ; then
2810 E2FSPROGS_YEAR=$YEAR
2811 elif expr $YEAR ">" 90 >/dev/null ; then
2812 E2FSPROGS_YEAR=19$YEAR
2814 E2FSPROGS_YEAR=20$YEAR
2818 Jan) MONTH_NUM=01; E2FSPROGS_MONTH="January" ;;
2819 Feb) MONTH_NUM=02; E2FSPROGS_MONTH="February" ;;
2820 Mar) MONTH_NUM=03; E2FSPROGS_MONTH="March" ;;
2821 Apr) MONTH_NUM=04; E2FSPROGS_MONTH="April" ;;
2822 May) MONTH_NUM=05; E2FSPROGS_MONTH="May" ;;
2823 Jun) MONTH_NUM=06; E2FSPROGS_MONTH="June" ;;
2824 Jul) MONTH_NUM=07; E2FSPROGS_MONTH="July" ;;
2825 Aug) MONTH_NUM=08; E2FSPROGS_MONTH="August" ;;
2826 Sep) MONTH_NUM=09; E2FSPROGS_MONTH="September" ;;
2827 Oct) MONTH_NUM=10; E2FSPROGS_MONTH="October" ;;
2828 Nov) MONTH_NUM=11; E2FSPROGS_MONTH="November" ;;
2829 Dec) MONTH_NUM=12; E2FSPROGS_MONTH="December" ;;
2830 *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unknown month $MONTH??" >&5
2831 $as_echo "$as_me: WARNING: Unknown month $MONTH??" >&2;} ;;
2834 base_ver=`echo $E2FSPROGS_VERSION | \
2835 sed -e 's/-WIP//' -e 's/pre-//' -e 's/-PLUS//'`
2837 date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY}
2839 case $E2FSPROGS_VERSION in
2841 E2FSPROGS_PKGVER="$base_ver~WIP.$date_spec"
2844 E2FSPROGS_PKGVER="$base_ver"
2848 unset DATE MONTH YEAR base_ver pre_vers date_spec
2849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&5
2850 $as_echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&6; }
2851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&5
2852 $as_echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&6; }
2861 # Check whether --with-diet-libc was given.
2862 if test "${with_diet_libc+set}" = set; then :
2863 withval=$with_diet_libc; CC="diet cc -nostdinc"
2869 LIBS="$LIBS -lcompat"
2871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: CC=$CC" >&5
2872 $as_echo "CC=$CC" >&6; }
2874 # Make sure we can run config.sub.
2875 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2876 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2879 $as_echo_n "checking build system type... " >&6; }
2880 if ${ac_cv_build+:} false; then :
2881 $as_echo_n "(cached) " >&6
2883 ac_build_alias=$build_alias
2884 test "x$ac_build_alias" = x &&
2885 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2886 test "x$ac_build_alias" = x &&
2887 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2888 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2889 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2893 $as_echo "$ac_cv_build" >&6; }
2894 case $ac_cv_build in
2896 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2899 ac_save_IFS=$IFS; IFS='-'
2905 # Remember, the first character of IFS is used to create $*,
2906 # except with old shells:
2909 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2913 $as_echo_n "checking host system type... " >&6; }
2914 if ${ac_cv_host+:} false; then :
2915 $as_echo_n "(cached) " >&6
2917 if test "x$host_alias" = x; then
2918 ac_cv_host=$ac_cv_build
2920 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2921 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2926 $as_echo "$ac_cv_host" >&6; }
2929 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2932 ac_save_IFS=$IFS; IFS='-'
2938 # Remember, the first character of IFS is used to create $*,
2939 # except with old shells:
2942 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2947 ac_cpp='$CPP $CPPFLAGS'
2948 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2949 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2950 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2951 if test -n "$ac_tool_prefix"; then
2952 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2953 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2955 $as_echo_n "checking for $ac_word... " >&6; }
2956 if ${ac_cv_prog_CC+:} false; then :
2957 $as_echo_n "(cached) " >&6
2959 if test -n "$CC"; then
2960 ac_cv_prog_CC="$CC" # Let the user override the test.
2962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2966 test -z "$as_dir" && as_dir=.
2967 for ac_exec_ext in '' $ac_executable_extensions; do
2968 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2969 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2970 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2980 if test -n "$CC"; then
2981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2982 $as_echo "$CC" >&6; }
2984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2985 $as_echo "no" >&6; }
2990 if test -z "$ac_cv_prog_CC"; then
2992 # Extract the first word of "gcc", so it can be a program name with args.
2993 set dummy gcc; ac_word=$2
2994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2995 $as_echo_n "checking for $ac_word... " >&6; }
2996 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2997 $as_echo_n "(cached) " >&6
2999 if test -n "$ac_ct_CC"; then
3000 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3006 test -z "$as_dir" && as_dir=.
3007 for ac_exec_ext in '' $ac_executable_extensions; do
3008 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3009 ac_cv_prog_ac_ct_CC="gcc"
3010 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3019 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3020 if test -n "$ac_ct_CC"; then
3021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3022 $as_echo "$ac_ct_CC" >&6; }
3024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3025 $as_echo "no" >&6; }
3028 if test "x$ac_ct_CC" = x; then
3031 case $cross_compiling:$ac_tool_warned in
3033 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3034 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3035 ac_tool_warned=yes ;;
3043 if test -z "$CC"; then
3044 if test -n "$ac_tool_prefix"; then
3045 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3046 set dummy ${ac_tool_prefix}cc; ac_word=$2
3047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3048 $as_echo_n "checking for $ac_word... " >&6; }
3049 if ${ac_cv_prog_CC+:} false; then :
3050 $as_echo_n "(cached) " >&6
3052 if test -n "$CC"; then
3053 ac_cv_prog_CC="$CC" # Let the user override the test.
3055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3059 test -z "$as_dir" && as_dir=.
3060 for ac_exec_ext in '' $ac_executable_extensions; do
3061 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3062 ac_cv_prog_CC="${ac_tool_prefix}cc"
3063 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3073 if test -n "$CC"; then
3074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3075 $as_echo "$CC" >&6; }
3077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3078 $as_echo "no" >&6; }
3084 if test -z "$CC"; then
3085 # Extract the first word of "cc", so it can be a program name with args.
3086 set dummy cc; ac_word=$2
3087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3088 $as_echo_n "checking for $ac_word... " >&6; }
3089 if ${ac_cv_prog_CC+:} false; then :
3090 $as_echo_n "(cached) " >&6
3092 if test -n "$CC"; then
3093 ac_cv_prog_CC="$CC" # Let the user override the test.
3096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3100 test -z "$as_dir" && as_dir=.
3101 for ac_exec_ext in '' $ac_executable_extensions; do
3102 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3103 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3104 ac_prog_rejected=yes
3108 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3115 if test $ac_prog_rejected = yes; then
3116 # We found a bogon in the path, so make sure we never use it.
3117 set dummy $ac_cv_prog_CC
3119 if test $# != 0; then
3120 # We chose a different compiler from the bogus one.
3121 # However, it has the same basename, so the bogon will be chosen
3122 # first if we set CC to just the basename; use the full file name.
3124 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3130 if test -n "$CC"; then
3131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3132 $as_echo "$CC" >&6; }
3134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3135 $as_echo "no" >&6; }
3140 if test -z "$CC"; then
3141 if test -n "$ac_tool_prefix"; then
3142 for ac_prog in cl.exe
3144 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3145 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3147 $as_echo_n "checking for $ac_word... " >&6; }
3148 if ${ac_cv_prog_CC+:} false; then :
3149 $as_echo_n "(cached) " >&6
3151 if test -n "$CC"; then
3152 ac_cv_prog_CC="$CC" # Let the user override the test.
3154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3158 test -z "$as_dir" && as_dir=.
3159 for ac_exec_ext in '' $ac_executable_extensions; do
3160 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3161 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3162 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3172 if test -n "$CC"; then
3173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3174 $as_echo "$CC" >&6; }
3176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3177 $as_echo "no" >&6; }
3181 test -n "$CC" && break
3184 if test -z "$CC"; then
3186 for ac_prog in cl.exe
3188 # Extract the first word of "$ac_prog", so it can be a program name with args.
3189 set dummy $ac_prog; ac_word=$2
3190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3191 $as_echo_n "checking for $ac_word... " >&6; }
3192 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3193 $as_echo_n "(cached) " >&6
3195 if test -n "$ac_ct_CC"; then
3196 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3202 test -z "$as_dir" && as_dir=.
3203 for ac_exec_ext in '' $ac_executable_extensions; do
3204 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3205 ac_cv_prog_ac_ct_CC="$ac_prog"
3206 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3215 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3216 if test -n "$ac_ct_CC"; then
3217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3218 $as_echo "$ac_ct_CC" >&6; }
3220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3221 $as_echo "no" >&6; }
3225 test -n "$ac_ct_CC" && break
3228 if test "x$ac_ct_CC" = x; then
3231 case $cross_compiling:$ac_tool_warned in
3233 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3234 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3235 ac_tool_warned=yes ;;
3244 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3245 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3246 as_fn_error $? "no acceptable C compiler found in \$PATH
3247 See \`config.log' for more details" "$LINENO" 5; }
3249 # Provide some information about the compiler.
3250 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3253 for ac_option in --version -v -V -qversion; do
3254 { { ac_try="$ac_compiler $ac_option >&5"
3256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3257 *) ac_try_echo=$ac_try;;
3259 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3260 $as_echo "$ac_try_echo"; } >&5
3261 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3263 if test -s conftest.err; then
3265 ... rest of stderr output deleted ...
3266 10q' conftest.err >conftest.er1
3267 cat conftest.er1 >&5
3269 rm -f conftest.er1 conftest.err
3270 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3271 test $ac_status = 0; }
3274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3275 /* end confdefs.h. */
3285 ac_clean_files_save=$ac_clean_files
3286 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3287 # Try to create an executable without -o first, disregard a.out.
3288 # It will help us diagnose broken compilers, and finding out an intuition
3290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3291 $as_echo_n "checking whether the C compiler works... " >&6; }
3292 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3294 # The possible output files:
3295 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3298 for ac_file in $ac_files
3301 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3302 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3307 if { { ac_try="$ac_link_default"
3309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3310 *) ac_try_echo=$ac_try;;
3312 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3313 $as_echo "$ac_try_echo"; } >&5
3314 (eval "$ac_link_default") 2>&5
3316 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3317 test $ac_status = 0; }; then :
3318 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3319 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3320 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3321 # so that the user can short-circuit this test for compilers unknown to
3323 for ac_file in $ac_files ''
3325 test -f "$ac_file" || continue
3327 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3330 # We found the default executable, but exeext='' is most
3334 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3336 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3338 # We set ac_cv_exeext here because the later test for it is not
3339 # safe: cross compilers may not add the suffix if given an `-o'
3340 # argument, so we may need to know it at that point already.
3341 # Even if this section looks crufty: it has the advantage of
3348 test "$ac_cv_exeext" = no && ac_cv_exeext=
3353 if test -z "$ac_file"; then :
3354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3355 $as_echo "no" >&6; }
3356 $as_echo "$as_me: failed program was:" >&5
3357 sed 's/^/| /' conftest.$ac_ext >&5
3359 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3360 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3361 as_fn_error 77 "C compiler cannot create executables
3362 See \`config.log' for more details" "$LINENO" 5; }
3364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3365 $as_echo "yes" >&6; }
3367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3368 $as_echo_n "checking for C compiler default output file name... " >&6; }
3369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3370 $as_echo "$ac_file" >&6; }
3371 ac_exeext=$ac_cv_exeext
3373 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3374 ac_clean_files=$ac_clean_files_save
3375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3376 $as_echo_n "checking for suffix of executables... " >&6; }
3377 if { { ac_try="$ac_link"
3379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3380 *) ac_try_echo=$ac_try;;
3382 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3383 $as_echo "$ac_try_echo"; } >&5
3384 (eval "$ac_link") 2>&5
3386 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3387 test $ac_status = 0; }; then :
3388 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3389 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3390 # work properly (i.e., refer to `conftest.exe'), while it won't with
3392 for ac_file in conftest.exe conftest conftest.*; do
3393 test -f "$ac_file" || continue
3395 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3396 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3402 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3403 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3404 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3405 See \`config.log' for more details" "$LINENO" 5; }
3407 rm -f conftest conftest$ac_cv_exeext
3408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3409 $as_echo "$ac_cv_exeext" >&6; }
3411 rm -f conftest.$ac_ext
3412 EXEEXT=$ac_cv_exeext
3414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3415 /* end confdefs.h. */
3420 FILE *f = fopen ("conftest.out", "w");
3421 return ferror (f) || fclose (f) != 0;
3427 ac_clean_files="$ac_clean_files conftest.out"
3428 # Check that the compiler produces executables we can run. If not, either
3429 # the compiler is broken, or we cross compile.
3430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3431 $as_echo_n "checking whether we are cross compiling... " >&6; }
3432 if test "$cross_compiling" != yes; then
3433 { { ac_try="$ac_link"
3435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3436 *) ac_try_echo=$ac_try;;
3438 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3439 $as_echo "$ac_try_echo"; } >&5
3440 (eval "$ac_link") 2>&5
3442 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3443 test $ac_status = 0; }
3444 if { ac_try='./conftest$ac_cv_exeext'
3445 { { case "(($ac_try" in
3446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3447 *) ac_try_echo=$ac_try;;
3449 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3450 $as_echo "$ac_try_echo"; } >&5
3451 (eval "$ac_try") 2>&5
3453 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3454 test $ac_status = 0; }; }; then
3457 if test "$cross_compiling" = maybe; then
3460 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3461 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3462 as_fn_error $? "cannot run C compiled programs.
3463 If you meant to cross compile, use \`--host'.
3464 See \`config.log' for more details" "$LINENO" 5; }
3468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3469 $as_echo "$cross_compiling" >&6; }
3471 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3472 ac_clean_files=$ac_clean_files_save
3473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3474 $as_echo_n "checking for suffix of object files... " >&6; }
3475 if ${ac_cv_objext+:} false; then :
3476 $as_echo_n "(cached) " >&6
3478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3479 /* end confdefs.h. */
3489 rm -f conftest.o conftest.obj
3490 if { { ac_try="$ac_compile"
3492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3493 *) ac_try_echo=$ac_try;;
3495 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3496 $as_echo "$ac_try_echo"; } >&5
3497 (eval "$ac_compile") 2>&5
3499 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3500 test $ac_status = 0; }; then :
3501 for ac_file in conftest.o conftest.obj conftest.*; do
3502 test -f "$ac_file" || continue;
3504 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3505 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3510 $as_echo "$as_me: failed program was:" >&5
3511 sed 's/^/| /' conftest.$ac_ext >&5
3513 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3514 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3515 as_fn_error $? "cannot compute suffix of object files: cannot compile
3516 See \`config.log' for more details" "$LINENO" 5; }
3518 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3521 $as_echo "$ac_cv_objext" >&6; }
3522 OBJEXT=$ac_cv_objext
3524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3525 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3526 if ${ac_cv_c_compiler_gnu+:} false; then :
3527 $as_echo_n "(cached) " >&6
3529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3530 /* end confdefs.h. */
3543 if ac_fn_c_try_compile "$LINENO"; then :
3548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3549 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3553 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3554 if test $ac_compiler_gnu = yes; then
3559 ac_test_CFLAGS=${CFLAGS+set}
3560 ac_save_CFLAGS=$CFLAGS
3561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3562 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3563 if ${ac_cv_prog_cc_g+:} false; then :
3564 $as_echo_n "(cached) " >&6
3566 ac_save_c_werror_flag=$ac_c_werror_flag
3567 ac_c_werror_flag=yes
3570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3571 /* end confdefs.h. */
3581 if ac_fn_c_try_compile "$LINENO"; then :
3585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3586 /* end confdefs.h. */
3596 if ac_fn_c_try_compile "$LINENO"; then :
3599 ac_c_werror_flag=$ac_save_c_werror_flag
3601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3602 /* end confdefs.h. */
3612 if ac_fn_c_try_compile "$LINENO"; then :
3615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3620 ac_c_werror_flag=$ac_save_c_werror_flag
3622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3623 $as_echo "$ac_cv_prog_cc_g" >&6; }
3624 if test "$ac_test_CFLAGS" = set; then
3625 CFLAGS=$ac_save_CFLAGS
3626 elif test $ac_cv_prog_cc_g = yes; then
3627 if test "$GCC" = yes; then
3633 if test "$GCC" = yes; then
3639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3640 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3641 if ${ac_cv_prog_cc_c89+:} false; then :
3642 $as_echo_n "(cached) " >&6
3644 ac_cv_prog_cc_c89=no
3646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3647 /* end confdefs.h. */
3651 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3652 struct buf { int x; };
3653 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3654 static char *e (p, i)
3660 static char *f (char * (*g) (char **, int), char **p, ...)
3665 s = g (p, va_arg (v,int));
3670 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3671 function prototypes and stuff, but not '\xHH' hex character constants.
3672 These don't provoke an error unfortunately, instead are silently treated
3673 as 'x'. The following induces an error, until -std is added to get
3674 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3675 array size at least. It's necessary to write '\x00'==0 to get something
3676 that's true only with -std. */
3677 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3679 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3680 inside strings and character constants. */
3682 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3684 int test (int i, double x);
3685 struct s1 {int (*f) (int a);};
3686 struct s2 {int (*f) (double a);};
3687 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3693 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3698 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3699 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3701 CC="$ac_save_CC $ac_arg"
3702 if ac_fn_c_try_compile "$LINENO"; then :
3703 ac_cv_prog_cc_c89=$ac_arg
3705 rm -f core conftest.err conftest.$ac_objext
3706 test "x$ac_cv_prog_cc_c89" != "xno" && break
3708 rm -f conftest.$ac_ext
3713 case "x$ac_cv_prog_cc_c89" in
3715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3716 $as_echo "none needed" >&6; } ;;
3718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3719 $as_echo "unsupported" >&6; } ;;
3721 CC="$CC $ac_cv_prog_cc_c89"
3722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3723 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3725 if test "x$ac_cv_prog_cc_c89" != xno; then :
3730 ac_cpp='$CPP $CPPFLAGS'
3731 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3732 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3733 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
3737 $as_echo_n "checking for dlopen in -ldl... " >&6; }
3738 if ${ac_cv_lib_dl_dlopen+:} false; then :
3739 $as_echo_n "(cached) " >&6
3741 ac_check_lib_save_LIBS=$LIBS
3743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3744 /* end confdefs.h. */
3746 /* Override any GCC internal prototype to avoid an error.
3747 Use char because int might match the return type of a GCC
3748 builtin and then its argument prototype would still apply. */
3761 if ac_fn_c_try_link "$LINENO"; then :
3762 ac_cv_lib_dl_dlopen=yes
3764 ac_cv_lib_dl_dlopen=no
3766 rm -f core conftest.err conftest.$ac_objext \
3767 conftest$ac_exeext conftest.$ac_ext
3768 LIBS=$ac_check_lib_save_LIBS
3770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
3771 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
3772 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
3778 # Check whether --with-cc was given.
3779 if test "${with_cc+set}" = set; then :
3780 withval=$with_cc; as_fn_error $? "--with-cc no longer supported; use CC= instead" "$LINENO" 5
3784 # Check whether --with-ccopts was given.
3785 if test "${with_ccopts+set}" = set; then :
3786 withval=$with_ccopts; as_fn_error $? "--with-ccopts no longer supported; use CFLAGS= instead" "$LINENO" 5
3790 # Check whether --with-ldopts was given.
3791 if test "${with_ldopts+set}" = set; then :
3792 withval=$with_ldopts; as_fn_error $? "--with-ldopts no longer supported; use LDFLAGS= instead" "$LINENO" 5
3796 ac_cpp='$CPP $CPPFLAGS'
3797 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3798 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3799 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3800 if test -n "$ac_tool_prefix"; then
3801 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3802 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3804 $as_echo_n "checking for $ac_word... " >&6; }
3805 if ${ac_cv_prog_CC+:} false; then :
3806 $as_echo_n "(cached) " >&6
3808 if test -n "$CC"; then
3809 ac_cv_prog_CC="$CC" # Let the user override the test.
3811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3815 test -z "$as_dir" && as_dir=.
3816 for ac_exec_ext in '' $ac_executable_extensions; do
3817 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3818 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3819 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3829 if test -n "$CC"; then
3830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3831 $as_echo "$CC" >&6; }
3833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3834 $as_echo "no" >&6; }
3839 if test -z "$ac_cv_prog_CC"; then
3841 # Extract the first word of "gcc", so it can be a program name with args.
3842 set dummy gcc; ac_word=$2
3843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3844 $as_echo_n "checking for $ac_word... " >&6; }
3845 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3846 $as_echo_n "(cached) " >&6
3848 if test -n "$ac_ct_CC"; then
3849 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3855 test -z "$as_dir" && as_dir=.
3856 for ac_exec_ext in '' $ac_executable_extensions; do
3857 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3858 ac_cv_prog_ac_ct_CC="gcc"
3859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3868 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3869 if test -n "$ac_ct_CC"; then
3870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3871 $as_echo "$ac_ct_CC" >&6; }
3873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3874 $as_echo "no" >&6; }
3877 if test "x$ac_ct_CC" = x; then
3880 case $cross_compiling:$ac_tool_warned in
3882 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3883 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3884 ac_tool_warned=yes ;;
3892 if test -z "$CC"; then
3893 if test -n "$ac_tool_prefix"; then
3894 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3895 set dummy ${ac_tool_prefix}cc; ac_word=$2
3896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3897 $as_echo_n "checking for $ac_word... " >&6; }
3898 if ${ac_cv_prog_CC+:} false; then :
3899 $as_echo_n "(cached) " >&6
3901 if test -n "$CC"; then
3902 ac_cv_prog_CC="$CC" # Let the user override the test.
3904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3908 test -z "$as_dir" && as_dir=.
3909 for ac_exec_ext in '' $ac_executable_extensions; do
3910 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3911 ac_cv_prog_CC="${ac_tool_prefix}cc"
3912 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3922 if test -n "$CC"; then
3923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3924 $as_echo "$CC" >&6; }
3926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3927 $as_echo "no" >&6; }
3933 if test -z "$CC"; then
3934 # Extract the first word of "cc", so it can be a program name with args.
3935 set dummy cc; ac_word=$2
3936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3937 $as_echo_n "checking for $ac_word... " >&6; }
3938 if ${ac_cv_prog_CC+:} false; then :
3939 $as_echo_n "(cached) " >&6
3941 if test -n "$CC"; then
3942 ac_cv_prog_CC="$CC" # Let the user override the test.
3945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3949 test -z "$as_dir" && as_dir=.
3950 for ac_exec_ext in '' $ac_executable_extensions; do
3951 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3952 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3953 ac_prog_rejected=yes
3957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3964 if test $ac_prog_rejected = yes; then
3965 # We found a bogon in the path, so make sure we never use it.
3966 set dummy $ac_cv_prog_CC
3968 if test $# != 0; then
3969 # We chose a different compiler from the bogus one.
3970 # However, it has the same basename, so the bogon will be chosen
3971 # first if we set CC to just the basename; use the full file name.
3973 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3979 if test -n "$CC"; then
3980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3981 $as_echo "$CC" >&6; }
3983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3984 $as_echo "no" >&6; }
3989 if test -z "$CC"; then
3990 if test -n "$ac_tool_prefix"; then
3991 for ac_prog in cl.exe
3993 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3994 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3996 $as_echo_n "checking for $ac_word... " >&6; }
3997 if ${ac_cv_prog_CC+:} false; then :
3998 $as_echo_n "(cached) " >&6
4000 if test -n "$CC"; then
4001 ac_cv_prog_CC="$CC" # Let the user override the test.
4003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4007 test -z "$as_dir" && as_dir=.
4008 for ac_exec_ext in '' $ac_executable_extensions; do
4009 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4010 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4011 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4021 if test -n "$CC"; then
4022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4023 $as_echo "$CC" >&6; }
4025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4026 $as_echo "no" >&6; }
4030 test -n "$CC" && break
4033 if test -z "$CC"; then
4035 for ac_prog in cl.exe
4037 # Extract the first word of "$ac_prog", so it can be a program name with args.
4038 set dummy $ac_prog; ac_word=$2
4039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4040 $as_echo_n "checking for $ac_word... " >&6; }
4041 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4042 $as_echo_n "(cached) " >&6
4044 if test -n "$ac_ct_CC"; then
4045 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4051 test -z "$as_dir" && as_dir=.
4052 for ac_exec_ext in '' $ac_executable_extensions; do
4053 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4054 ac_cv_prog_ac_ct_CC="$ac_prog"
4055 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4064 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4065 if test -n "$ac_ct_CC"; then
4066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4067 $as_echo "$ac_ct_CC" >&6; }
4069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4070 $as_echo "no" >&6; }
4074 test -n "$ac_ct_CC" && break
4077 if test "x$ac_ct_CC" = x; then
4080 case $cross_compiling:$ac_tool_warned in
4082 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4083 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4084 ac_tool_warned=yes ;;
4093 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4094 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4095 as_fn_error $? "no acceptable C compiler found in \$PATH
4096 See \`config.log' for more details" "$LINENO" 5; }
4098 # Provide some information about the compiler.
4099 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4102 for ac_option in --version -v -V -qversion; do
4103 { { ac_try="$ac_compiler $ac_option >&5"
4105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4106 *) ac_try_echo=$ac_try;;
4108 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4109 $as_echo "$ac_try_echo"; } >&5
4110 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4112 if test -s conftest.err; then
4114 ... rest of stderr output deleted ...
4115 10q' conftest.err >conftest.er1
4116 cat conftest.er1 >&5
4118 rm -f conftest.er1 conftest.err
4119 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4120 test $ac_status = 0; }
4123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4124 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4125 if ${ac_cv_c_compiler_gnu+:} false; then :
4126 $as_echo_n "(cached) " >&6
4128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4129 /* end confdefs.h. */
4142 if ac_fn_c_try_compile "$LINENO"; then :
4147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4148 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4152 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4153 if test $ac_compiler_gnu = yes; then
4158 ac_test_CFLAGS=${CFLAGS+set}
4159 ac_save_CFLAGS=$CFLAGS
4160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4161 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4162 if ${ac_cv_prog_cc_g+:} false; then :
4163 $as_echo_n "(cached) " >&6
4165 ac_save_c_werror_flag=$ac_c_werror_flag
4166 ac_c_werror_flag=yes
4169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4170 /* end confdefs.h. */
4180 if ac_fn_c_try_compile "$LINENO"; then :
4184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4185 /* end confdefs.h. */
4195 if ac_fn_c_try_compile "$LINENO"; then :
4198 ac_c_werror_flag=$ac_save_c_werror_flag
4200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4201 /* end confdefs.h. */
4211 if ac_fn_c_try_compile "$LINENO"; then :
4214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4219 ac_c_werror_flag=$ac_save_c_werror_flag
4221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4222 $as_echo "$ac_cv_prog_cc_g" >&6; }
4223 if test "$ac_test_CFLAGS" = set; then
4224 CFLAGS=$ac_save_CFLAGS
4225 elif test $ac_cv_prog_cc_g = yes; then
4226 if test "$GCC" = yes; then
4232 if test "$GCC" = yes; then
4238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4239 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4240 if ${ac_cv_prog_cc_c89+:} false; then :
4241 $as_echo_n "(cached) " >&6
4243 ac_cv_prog_cc_c89=no
4245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4246 /* end confdefs.h. */
4250 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4251 struct buf { int x; };
4252 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4253 static char *e (p, i)
4259 static char *f (char * (*g) (char **, int), char **p, ...)
4264 s = g (p, va_arg (v,int));
4269 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4270 function prototypes and stuff, but not '\xHH' hex character constants.
4271 These don't provoke an error unfortunately, instead are silently treated
4272 as 'x'. The following induces an error, until -std is added to get
4273 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4274 array size at least. It's necessary to write '\x00'==0 to get something
4275 that's true only with -std. */
4276 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4278 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4279 inside strings and character constants. */
4281 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4283 int test (int i, double x);
4284 struct s1 {int (*f) (int a);};
4285 struct s2 {int (*f) (double a);};
4286 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4292 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4297 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4298 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4300 CC="$ac_save_CC $ac_arg"
4301 if ac_fn_c_try_compile "$LINENO"; then :
4302 ac_cv_prog_cc_c89=$ac_arg
4304 rm -f core conftest.err conftest.$ac_objext
4305 test "x$ac_cv_prog_cc_c89" != "xno" && break
4307 rm -f conftest.$ac_ext
4312 case "x$ac_cv_prog_cc_c89" in
4314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4315 $as_echo "none needed" >&6; } ;;
4317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4318 $as_echo "unsupported" >&6; } ;;
4320 CC="$CC $ac_cv_prog_cc_c89"
4321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4322 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4324 if test "x$ac_cv_prog_cc_c89" != xno; then :
4329 ac_cpp='$CPP $CPPFLAGS'
4330 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4331 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4332 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4334 if test "$GCC" = yes; then
4335 RDYNAMIC="-rdynamic"
4339 ac_cpp='$CPP $CPPFLAGS'
4340 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4341 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4342 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4344 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4345 # On Suns, sometimes $CPP names a directory.
4346 if test -n "$CPP" && test -d "$CPP"; then
4349 if test -z "$CPP"; then
4350 if ${ac_cv_prog_CPP+:} false; then :
4351 $as_echo_n "(cached) " >&6
4353 # Double quotes because CPP needs to be expanded
4354 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4357 for ac_c_preproc_warn_flag in '' yes
4359 # Use a header file that comes with gcc, so configuring glibc
4360 # with a fresh cross-compiler works.
4361 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4362 # <limits.h> exists even on freestanding compilers.
4363 # On the NeXT, cc -E runs the code through the compiler's parser,
4364 # not just through cpp. "Syntax error" is here to catch this case.
4365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4366 /* end confdefs.h. */
4368 # include <limits.h>
4370 # include <assert.h>
4374 if ac_fn_c_try_cpp "$LINENO"; then :
4377 # Broken: fails on valid input.
4380 rm -f conftest.err conftest.i conftest.$ac_ext
4382 # OK, works on sane cases. Now check whether nonexistent headers
4383 # can be detected and how.
4384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4385 /* end confdefs.h. */
4386 #include <ac_nonexistent.h>
4388 if ac_fn_c_try_cpp "$LINENO"; then :
4389 # Broken: success on invalid input.
4392 # Passes both tests.
4396 rm -f conftest.err conftest.i conftest.$ac_ext
4399 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4400 rm -f conftest.i conftest.err conftest.$ac_ext
4401 if $ac_preproc_ok; then :
4413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4414 $as_echo "$CPP" >&6; }
4416 for ac_c_preproc_warn_flag in '' yes
4418 # Use a header file that comes with gcc, so configuring glibc
4419 # with a fresh cross-compiler works.
4420 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4421 # <limits.h> exists even on freestanding compilers.
4422 # On the NeXT, cc -E runs the code through the compiler's parser,
4423 # not just through cpp. "Syntax error" is here to catch this case.
4424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4425 /* end confdefs.h. */
4427 # include <limits.h>
4429 # include <assert.h>
4433 if ac_fn_c_try_cpp "$LINENO"; then :
4436 # Broken: fails on valid input.
4439 rm -f conftest.err conftest.i conftest.$ac_ext
4441 # OK, works on sane cases. Now check whether nonexistent headers
4442 # can be detected and how.
4443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4444 /* end confdefs.h. */
4445 #include <ac_nonexistent.h>
4447 if ac_fn_c_try_cpp "$LINENO"; then :
4448 # Broken: success on invalid input.
4451 # Passes both tests.
4455 rm -f conftest.err conftest.i conftest.$ac_ext
4458 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4459 rm -f conftest.i conftest.err conftest.$ac_ext
4460 if $ac_preproc_ok; then :
4463 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4464 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4465 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4466 See \`config.log' for more details" "$LINENO" 5; }
4470 ac_cpp='$CPP $CPPFLAGS'
4471 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4472 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4473 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for additional special compiler flags" >&5
4476 $as_echo_n "checking for additional special compiler flags... " >&6; }
4477 if test "$GCC" = yes
4480 alpha) addcflags="-mieee" ;;
4483 if test "x$addcflags" != x
4485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $addcflags" >&5
4486 $as_echo "$addcflags" >&6; }
4487 CFLAGS="$addcflags $CFLAGS"
4489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (none)" >&5
4490 $as_echo "(none)" >&6; }
4493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4494 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4495 if ${ac_cv_path_GREP+:} false; then :
4496 $as_echo_n "(cached) " >&6
4498 if test -z "$GREP"; then
4499 ac_path_GREP_found=false
4500 # Loop through the user's path and test for each of PROGNAME-LIST
4501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4502 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4505 test -z "$as_dir" && as_dir=.
4506 for ac_prog in grep ggrep; do
4507 for ac_exec_ext in '' $ac_executable_extensions; do
4508 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4509 as_fn_executable_p "$ac_path_GREP" || continue
4510 # Check for GNU ac_path_GREP and select it if it is found.
4511 # Check for GNU $ac_path_GREP
4512 case `"$ac_path_GREP" --version 2>&1` in
4514 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4517 $as_echo_n 0123456789 >"conftest.in"
4520 cat "conftest.in" "conftest.in" >"conftest.tmp"
4521 mv "conftest.tmp" "conftest.in"
4522 cp "conftest.in" "conftest.nl"
4523 $as_echo 'GREP' >> "conftest.nl"
4524 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4525 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4526 as_fn_arith $ac_count + 1 && ac_count=$as_val
4527 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4528 # Best one so far, save it but keep looking for a better one
4529 ac_cv_path_GREP="$ac_path_GREP"
4530 ac_path_GREP_max=$ac_count
4532 # 10*(2^10) chars as input seems more than enough
4533 test $ac_count -gt 10 && break
4535 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4538 $ac_path_GREP_found && break 3
4543 if test -z "$ac_cv_path_GREP"; then
4544 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4547 ac_cv_path_GREP=$GREP
4551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4552 $as_echo "$ac_cv_path_GREP" >&6; }
4553 GREP="$ac_cv_path_GREP"
4556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4557 $as_echo_n "checking for egrep... " >&6; }
4558 if ${ac_cv_path_EGREP+:} false; then :
4559 $as_echo_n "(cached) " >&6
4561 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4562 then ac_cv_path_EGREP="$GREP -E"
4564 if test -z "$EGREP"; then
4565 ac_path_EGREP_found=false
4566 # Loop through the user's path and test for each of PROGNAME-LIST
4567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4568 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4571 test -z "$as_dir" && as_dir=.
4572 for ac_prog in egrep; do
4573 for ac_exec_ext in '' $ac_executable_extensions; do
4574 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4575 as_fn_executable_p "$ac_path_EGREP" || continue
4576 # Check for GNU ac_path_EGREP and select it if it is found.
4577 # Check for GNU $ac_path_EGREP
4578 case `"$ac_path_EGREP" --version 2>&1` in
4580 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4583 $as_echo_n 0123456789 >"conftest.in"
4586 cat "conftest.in" "conftest.in" >"conftest.tmp"
4587 mv "conftest.tmp" "conftest.in"
4588 cp "conftest.in" "conftest.nl"
4589 $as_echo 'EGREP' >> "conftest.nl"
4590 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4591 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4592 as_fn_arith $ac_count + 1 && ac_count=$as_val
4593 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4594 # Best one so far, save it but keep looking for a better one
4595 ac_cv_path_EGREP="$ac_path_EGREP"
4596 ac_path_EGREP_max=$ac_count
4598 # 10*(2^10) chars as input seems more than enough
4599 test $ac_count -gt 10 && break
4601 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4604 $ac_path_EGREP_found && break 3
4609 if test -z "$ac_cv_path_EGREP"; then
4610 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4613 ac_cv_path_EGREP=$EGREP
4618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4619 $as_echo "$ac_cv_path_EGREP" >&6; }
4620 EGREP="$ac_cv_path_EGREP"
4623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4624 $as_echo_n "checking for ANSI C header files... " >&6; }
4625 if ${ac_cv_header_stdc+:} false; then :
4626 $as_echo_n "(cached) " >&6
4628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4629 /* end confdefs.h. */
4643 if ac_fn_c_try_compile "$LINENO"; then :
4644 ac_cv_header_stdc=yes
4646 ac_cv_header_stdc=no
4648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4650 if test $ac_cv_header_stdc = yes; then
4651 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4653 /* end confdefs.h. */
4657 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4658 $EGREP "memchr" >/dev/null 2>&1; then :
4661 ac_cv_header_stdc=no
4667 if test $ac_cv_header_stdc = yes; then
4668 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4670 /* end confdefs.h. */
4674 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4675 $EGREP "free" >/dev/null 2>&1; then :
4678 ac_cv_header_stdc=no
4684 if test $ac_cv_header_stdc = yes; then
4685 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4686 if test "$cross_compiling" = yes; then :
4689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4690 /* end confdefs.h. */
4693 #if ((' ' & 0x0FF) == 0x020)
4694 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4695 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4697 # define ISLOWER(c) \
4698 (('a' <= (c) && (c) <= 'i') \
4699 || ('j' <= (c) && (c) <= 'r') \
4700 || ('s' <= (c) && (c) <= 'z'))
4701 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4704 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4709 for (i = 0; i < 256; i++)
4710 if (XOR (islower (i), ISLOWER (i))
4711 || toupper (i) != TOUPPER (i))
4716 if ac_fn_c_try_run "$LINENO"; then :
4719 ac_cv_header_stdc=no
4721 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4722 conftest.$ac_objext conftest.beam conftest.$ac_ext
4727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4728 $as_echo "$ac_cv_header_stdc" >&6; }
4729 if test $ac_cv_header_stdc = yes; then
4731 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4735 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4736 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4737 inttypes.h stdint.h unistd.h
4739 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4740 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4742 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4743 cat >>confdefs.h <<_ACEOF
4744 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4753 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4754 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4761 if test "$MINIX" = yes; then
4763 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4766 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4769 $as_echo "#define _MINIX 1" >>confdefs.h
4774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4775 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4776 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4777 $as_echo_n "(cached) " >&6
4779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4780 /* end confdefs.h. */
4782 # define __EXTENSIONS__ 1
4783 $ac_includes_default
4792 if ac_fn_c_try_compile "$LINENO"; then :
4793 ac_cv_safe_to_define___extensions__=yes
4795 ac_cv_safe_to_define___extensions__=no
4797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4800 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4801 test $ac_cv_safe_to_define___extensions__ = yes &&
4802 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4804 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4806 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4808 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4810 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4817 # Check whether --with-root-prefix was given.
4818 if test "${with_root_prefix+set}" = set; then :
4819 withval=$with_root_prefix; root_prefix=$withval
4823 # Check whether --enable-maintainer-mode was given.
4824 if test "${enable_maintainer_mode+set}" = set; then :
4825 enableval=$enable_maintainer_mode; if test "$enableval" = "no"
4828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode" >&5
4829 $as_echo "Disabling maintainer mode" >&6; }
4832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling maintainer mode" >&5
4833 $as_echo "Enabling maintainer mode" >&6; }
4838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode by default" >&5
4839 $as_echo "Disabling maintainer mode by default" >&6; }
4844 # Check whether --enable-symlink-install was given.
4845 if test "${enable_symlink_install+set}" = set; then :
4846 enableval=$enable_symlink_install; if test "$enableval" = "no"
4848 LINK_INSTALL_FLAGS=-f
4849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install" >&5
4850 $as_echo "Disabling symlinks for install" >&6; }
4852 LINK_INSTALL_FLAGS=-sf
4853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for install" >&5
4854 $as_echo "Enabling symlinks for install" >&6; }
4858 LINK_INSTALL_FLAGS=-f
4859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install by default" >&5
4860 $as_echo "Disabling symlinks for install by default" >&6; }
4865 relative_symlink_defined=
4866 # Check whether --enable-relative-symlinks was given.
4867 if test "${enable_relative_symlinks+set}" = set; then :
4868 enableval=$enable_relative_symlinks; if test "$enableval" = "no"
4871 relative_symlink_defined=yes
4872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
4873 $as_echo "Disabling relative symlinks for install" >&6; }
4875 SYMLINK_RELATIVE=--relative
4876 relative_symlink_defined=yes
4877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5
4878 $as_echo "Enabling relative symlinks for install" >&6; }
4882 # Check whether --enable-symlink-relative-symlinks was given.
4883 if test "${enable_symlink_relative_symlinks+set}" = set; then :
4884 enableval=$enable_symlink_relative_symlinks; if test "$enableval" = "no"
4886 SYMLINK_RELATIVE=yes
4887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
4888 $as_echo "Disabling relative symlinks for install" >&6; }
4890 SYMLINK_RELATIVE=--relative
4891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5
4892 $as_echo "Enabling relative symlinks for install" >&6; }
4896 if test -z "$relative_symlink_defined"
4899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install by default" >&5
4900 $as_echo "Disabling relative symlinks for install by default" >&6; }
4906 # Check whether --enable-symlink-build was given.
4907 if test "${enable_symlink_build+set}" = set; then :
4908 enableval=$enable_symlink_build; if test "$enableval" = "no"
4911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build" >&5
4912 $as_echo "Disabling symlinks for build" >&6; }
4915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for build" >&5
4916 $as_echo "Enabling symlinks for build" >&6; }
4921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build by default" >&5
4922 $as_echo "Disabling symlinks for build by default" >&6; }
4927 # Check whether --enable-verbose-makecmds was given.
4928 if test "${enable_verbose_makecmds+set}" = set; then :
4929 enableval=$enable_verbose_makecmds; if test "$enableval" = "no"
4931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
4932 $as_echo "Disabling verbose make commands" >&6; }
4937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling verbose make commands" >&5
4938 $as_echo "Enabling verbose make commands" >&6; }
4945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
4946 $as_echo "Disabling verbose make commands" >&6; }
4956 E2_PKG_CONFIG_STATIC=--static
4959 # Check whether --enable-elf-shlibs was given.
4960 if test "${enable_elf_shlibs+set}" = set; then :
4961 enableval=$enable_elf_shlibs; if test "$enableval" = "no"
4964 MAKEFILE_ELF=/dev/null
4965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries" >&5
4966 $as_echo "Disabling ELF shared libraries" >&6; }
4968 E2_PKG_CONFIG_STATIC=
4970 MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
4973 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
4979 LDFLAG_DYNAMIC='-Wl,-rpath-link,$(top_builddir)/lib'
4980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling ELF shared libraries" >&5
4981 $as_echo "Enabling ELF shared libraries" >&6; }
4985 MAKEFILE_ELF=/dev/null
4987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries by default" >&5
4988 $as_echo "Disabling ELF shared libraries by default" >&6; }
4994 # Check whether --enable-bsd-shlibs was given.
4995 if test "${enable_bsd_shlibs+set}" = set; then :
4996 enableval=$enable_bsd_shlibs; if test "$enableval" = "no"
4999 MAKEFILE_BSDLIB=/dev/null
5000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries" >&5
5001 $as_echo "Disabling BSD shared libraries" >&6; }
5003 E2_PKG_CONFIG_STATIC=
5005 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
5009 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib
5013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling BSD shared libraries" >&5
5014 $as_echo "Enabling BSD shared libraries" >&6; }
5018 MAKEFILE_BSDLIB=/dev/null
5020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries by default" >&5
5021 $as_echo "Disabling BSD shared libraries by default" >&6; }
5027 # Check whether --enable-profile was given.
5028 if test "${enable_profile+set}" = set; then :
5029 enableval=$enable_profile; if test "$enableval" = "no"
5032 MAKEFILE_PROFILE=/dev/null
5033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries" >&5
5034 $as_echo "Disabling profiling libraries" >&6; }
5037 MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
5038 PROFILED_LIB_EXT=_p.a
5039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building profiling libraries" >&5
5040 $as_echo "Building profiling libraries" >&6; }
5045 MAKEFILE_PROFILE=/dev/null
5046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries by default" >&5
5047 $as_echo "Disabling profiling libraries by default" >&6; }
5053 # Check whether --enable-gcov was given.
5054 if test "${enable_gcov+set}" = set; then :
5055 enableval=$enable_gcov; if test "$enableval" = "yes"
5057 CFLAGS="-g -fprofile-arcs -ftest-coverage"
5058 LDFLAGS="-fprofile-arcs -ftest-coverage"
5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling gcov support" >&5
5060 $as_echo "Enabling gcov support" >&6; }
5065 CFLAGS_SHLIB="${CFLAGS_SHLIB:-$CFLAGS}"
5066 CFLAGS_STLIB="${CFLAGS_STLIB:-$CFLAGS}"
5067 LDFLAGS_SHLIB=${LDFLAGS_SHLIB:-$LDFLAGS}
5068 LDFLAGS_STATIC=${LDFLAGS_STATIC:-$LDFLAGS}
5069 # Check whether --enable-hardening was given.
5070 if test "${enable_hardening+set}" = set; then :
5071 enableval=$enable_hardening; if test "$enableval" = "yes"
5073 HARDEN_CFLAGS="-D_FORTIFY_SOURCE=2 -fstack-protector-strong"
5074 HARDEN_LDFLAGS="-Wl,-z,relro -Wl,-z,now"
5075 CFLAGS="$CFLAGS $HARDEN_CFLAGS -fPIE"
5076 CFLAGS_SHLIB="$CFLAGS_SHLIB $HARDEN_CFLAGS"
5077 CFLAGS_STLIB="$CFLAGS_STLIB $HARDEN_CFLAGS -fPIE"
5078 LDFLAGS="$LDFLAGS $HARDEN_LDFLAGS -fPIE -pie"
5079 LDFLAGS_STATIC="$LDFLAGS_STATIC $HARDEN_LDFLAGS"
5080 LDFLAGS_SHLIB="$LDFLAGS_SHLIB $HARDEN_LDFLAGS"
5081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling hardening support" >&5
5082 $as_echo "Enabling hardening support" >&6; }
5092 # Check whether --enable-jbd-debug was given.
5093 if test "${enable_jbd_debug+set}" = set; then :
5094 enableval=$enable_jbd_debug; if test "$enableval" = "no"
5096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging" >&5
5097 $as_echo "Disabling journal debugging" >&6; }
5100 $as_echo "#define CONFIG_JBD_DEBUG 1" >>confdefs.h
5102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling journal debugging" >&5
5103 $as_echo "Enabling journal debugging" >&6; }
5107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging by default" >&5
5108 $as_echo "Disabling journal debugging by default" >&6; }
5112 # Check whether --enable-blkid-debug was given.
5113 if test "${enable_blkid_debug+set}" = set; then :
5114 enableval=$enable_blkid_debug; if test "$enableval" = "no"
5116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging" >&5
5117 $as_echo "Disabling blkid debugging" >&6; }
5120 $as_echo "#define CONFIG_BLKID_DEBUG 1" >>confdefs.h
5122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling blkid debugging" >&5
5123 $as_echo "Enabling blkid debugging" >&6; }
5127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging by default" >&5
5128 $as_echo "Disabling blkid debugging by default" >&6; }
5132 # Check whether --enable-testio-debug was given.
5133 if test "${enable_testio_debug+set}" = set; then :
5134 enableval=$enable_testio_debug;
5135 if test "$enableval" = "no"
5137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling testio debugging" >&5
5138 $as_echo "Disabling testio debugging" >&6; }
5142 $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
5144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging" >&5
5145 $as_echo "Enabling testio debugging" >&6; }
5149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging by default" >&5
5150 $as_echo "Enabling testio debugging by default" >&6; }
5151 $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
5165 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5166 if test -n "$ac_tool_prefix"; then
5167 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5168 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5170 $as_echo_n "checking for $ac_word... " >&6; }
5171 if ${ac_cv_path_PKG_CONFIG+:} false; then :
5172 $as_echo_n "(cached) " >&6
5176 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5183 test -z "$as_dir" && as_dir=.
5184 for ac_exec_ext in '' $ac_executable_extensions; do
5185 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5186 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5197 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5198 if test -n "$PKG_CONFIG"; then
5199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5200 $as_echo "$PKG_CONFIG" >&6; }
5202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5203 $as_echo "no" >&6; }
5208 if test -z "$ac_cv_path_PKG_CONFIG"; then
5209 ac_pt_PKG_CONFIG=$PKG_CONFIG
5210 # Extract the first word of "pkg-config", so it can be a program name with args.
5211 set dummy pkg-config; ac_word=$2
5212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5213 $as_echo_n "checking for $ac_word... " >&6; }
5214 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
5215 $as_echo_n "(cached) " >&6
5217 case $ac_pt_PKG_CONFIG in
5219 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5226 test -z "$as_dir" && as_dir=.
5227 for ac_exec_ext in '' $ac_executable_extensions; do
5228 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5229 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5230 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5240 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5241 if test -n "$ac_pt_PKG_CONFIG"; then
5242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5243 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5246 $as_echo "no" >&6; }
5249 if test "x$ac_pt_PKG_CONFIG" = x; then
5252 case $cross_compiling:$ac_tool_warned in
5254 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5255 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5256 ac_tool_warned=yes ;;
5258 PKG_CONFIG=$ac_pt_PKG_CONFIG
5261 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5265 if test -n "$PKG_CONFIG"; then
5266 _pkg_min_version=0.9.0
5267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5268 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5269 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5271 $as_echo "yes" >&6; }
5273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5274 $as_echo "no" >&6; }
5283 DEPPROFILED_LIBUUID=
5285 # Check whether --enable-libuuid was given.
5286 if test "${enable_libuuid+set}" = set; then :
5287 enableval=$enable_libuuid; if test "$enableval" = "no"
5289 if test -z "$PKG_CONFIG"; then
5290 as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5
5293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
5294 $as_echo_n "checking for uuid_generate in -luuid... " >&6; }
5295 if ${ac_cv_lib_uuid_uuid_generate+:} false; then :
5296 $as_echo_n "(cached) " >&6
5298 ac_check_lib_save_LIBS=$LIBS
5300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5301 /* end confdefs.h. */
5303 /* Override any GCC internal prototype to avoid an error.
5304 Use char because int might match the return type of a GCC
5305 builtin and then its argument prototype would still apply. */
5309 char uuid_generate ();
5313 return uuid_generate ();
5318 if ac_fn_c_try_link "$LINENO"; then :
5319 ac_cv_lib_uuid_uuid_generate=yes
5321 ac_cv_lib_uuid_uuid_generate=no
5323 rm -f core conftest.err conftest.$ac_objext \
5324 conftest$ac_exeext conftest.$ac_ext
5325 LIBS=$ac_check_lib_save_LIBS
5327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
5328 $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
5329 if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then :
5330 LIBUUID=`$PKG_CONFIG --libs uuid`;
5331 STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid`
5333 as_fn_error $? "external uuid library not found" "$LINENO" 5
5336 PROFILED_LIBUUID=$LIBUUID
5338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private uuid library" >&5
5339 $as_echo "Disabling private uuid library" >&6; }
5341 LIBUUID='$(LIB)/libuuid'$LIB_EXT
5343 STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
5344 DEPSTATIC_LIBUUID=$STATIC_LIBUUID
5345 PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
5346 DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
5347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library" >&5
5348 $as_echo "Enabling private uuid library" >&6; }
5352 if test -n "$PKG_CONFIG"; then
5353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
5354 $as_echo_n "checking for uuid_generate in -luuid... " >&6; }
5355 if ${ac_cv_lib_uuid_uuid_generate+:} false; then :
5356 $as_echo_n "(cached) " >&6
5358 ac_check_lib_save_LIBS=$LIBS
5360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5361 /* end confdefs.h. */
5363 /* Override any GCC internal prototype to avoid an error.
5364 Use char because int might match the return type of a GCC
5365 builtin and then its argument prototype would still apply. */
5369 char uuid_generate ();
5373 return uuid_generate ();
5378 if ac_fn_c_try_link "$LINENO"; then :
5379 ac_cv_lib_uuid_uuid_generate=yes
5381 ac_cv_lib_uuid_uuid_generate=no
5383 rm -f core conftest.err conftest.$ac_objext \
5384 conftest$ac_exeext conftest.$ac_ext
5385 LIBS=$ac_check_lib_save_LIBS
5387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
5388 $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
5389 if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then :
5390 LIBUUID=`$PKG_CONFIG --libs uuid`;
5391 STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid`
5395 if test -n "$LIBUUID"; then
5396 PROFILED_LIBUUID=$LIBUUID
5398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using system uuid by default" >&5
5399 $as_echo "Using system uuid by default" >&6; }
5401 LIBUUID='$(LIB)/libuuid'$LIB_EXT
5403 STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
5404 DEPSTATIC_LIBUUID=$STATIC_LIBUUID
5405 PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
5406 DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
5407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library by default" >&5
5408 $as_echo "Enabling private uuid library by default" >&6; }
5427 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5428 if test -n "$ac_tool_prefix"; then
5429 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5430 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5432 $as_echo_n "checking for $ac_word... " >&6; }
5433 if ${ac_cv_path_PKG_CONFIG+:} false; then :
5434 $as_echo_n "(cached) " >&6
5438 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5445 test -z "$as_dir" && as_dir=.
5446 for ac_exec_ext in '' $ac_executable_extensions; do
5447 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5448 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5459 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5460 if test -n "$PKG_CONFIG"; then
5461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5462 $as_echo "$PKG_CONFIG" >&6; }
5464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5465 $as_echo "no" >&6; }
5470 if test -z "$ac_cv_path_PKG_CONFIG"; then
5471 ac_pt_PKG_CONFIG=$PKG_CONFIG
5472 # Extract the first word of "pkg-config", so it can be a program name with args.
5473 set dummy pkg-config; ac_word=$2
5474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5475 $as_echo_n "checking for $ac_word... " >&6; }
5476 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
5477 $as_echo_n "(cached) " >&6
5479 case $ac_pt_PKG_CONFIG in
5481 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5488 test -z "$as_dir" && as_dir=.
5489 for ac_exec_ext in '' $ac_executable_extensions; do
5490 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5491 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5492 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5502 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5503 if test -n "$ac_pt_PKG_CONFIG"; then
5504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5505 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5508 $as_echo "no" >&6; }
5511 if test "x$ac_pt_PKG_CONFIG" = x; then
5514 case $cross_compiling:$ac_tool_warned in
5516 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5517 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5518 ac_tool_warned=yes ;;
5520 PKG_CONFIG=$ac_pt_PKG_CONFIG
5523 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5527 if test -n "$PKG_CONFIG"; then
5528 _pkg_min_version=0.9.0
5529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5530 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5531 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5533 $as_echo "yes" >&6; }
5535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5536 $as_echo "no" >&6; }
5545 DEPPROFILED_LIBBLKID=
5548 # Check whether --enable-libblkid was given.
5549 if test "${enable_libblkid+set}" = set; then :
5550 enableval=$enable_libblkid; if test "$enableval" = "no"
5552 if test -z "$PKG_CONFIG"; then
5553 as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5
5556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
5557 $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
5558 if ${ac_cv_lib_blkid_blkid_get_cache+:} false; then :
5559 $as_echo_n "(cached) " >&6
5561 ac_check_lib_save_LIBS=$LIBS
5562 LIBS="-lblkid -luuid $LIBS"
5563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5564 /* end confdefs.h. */
5566 /* Override any GCC internal prototype to avoid an error.
5567 Use char because int might match the return type of a GCC
5568 builtin and then its argument prototype would still apply. */
5572 char blkid_get_cache ();
5576 return blkid_get_cache ();
5581 if ac_fn_c_try_link "$LINENO"; then :
5582 ac_cv_lib_blkid_blkid_get_cache=yes
5584 ac_cv_lib_blkid_blkid_get_cache=no
5586 rm -f core conftest.err conftest.$ac_objext \
5587 conftest$ac_exeext conftest.$ac_ext
5588 LIBS=$ac_check_lib_save_LIBS
5590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
5591 $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
5592 if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes; then :
5593 LIBBLKID=`$PKG_CONFIG --libs blkid`;
5594 STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid`
5596 as_fn_error $? "external blkid library not found" "$LINENO" 5
5600 PROFILED_LIBBLKID=$LIBBLKID
5601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private blkid library" >&5
5602 $as_echo "Disabling private blkid library" >&6; }
5604 LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5605 DEPLIBBLKID=$LIBBLKID
5606 STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5607 DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5608 PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5609 DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
5610 $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
5612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library" >&5
5613 $as_echo "Enabling private blkid library" >&6; }
5617 if test -n "$PKG_CONFIG"; then
5618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
5619 $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
5620 if ${ac_cv_lib_blkid_blkid_get_cache+:} false; then :
5621 $as_echo_n "(cached) " >&6
5623 ac_check_lib_save_LIBS=$LIBS
5624 LIBS="-lblkid $LIBS"
5625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5626 /* end confdefs.h. */
5628 /* Override any GCC internal prototype to avoid an error.
5629 Use char because int might match the return type of a GCC
5630 builtin and then its argument prototype would still apply. */
5634 char blkid_get_cache ();
5638 return blkid_get_cache ();
5643 if ac_fn_c_try_link "$LINENO"; then :
5644 ac_cv_lib_blkid_blkid_get_cache=yes
5646 ac_cv_lib_blkid_blkid_get_cache=no
5648 rm -f core conftest.err conftest.$ac_objext \
5649 conftest$ac_exeext conftest.$ac_ext
5650 LIBS=$ac_check_lib_save_LIBS
5652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
5653 $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
5654 if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes; then :
5655 LIBBLKID=`$PKG_CONFIG --libs blkid`;
5656 STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid`
5660 if test -n "$LIBBLKID"; then
5662 PROFILED_LIBBLKID=$LIBBLKID
5663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using system blkid library by default" >&5
5664 $as_echo "Using system blkid library by default" >&6; }
5666 LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5667 DEPLIBBLKID=$LIBBLKID
5668 STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5669 DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5670 PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5671 DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
5672 $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
5674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library by default" >&5
5675 $as_echo "Enabling private blkid library by default" >&6; }
5688 # Check whether --enable-backtrace was given.
5689 if test "${enable_backtrace+set}" = set; then :
5690 enableval=$enable_backtrace; if test "$enableval" = "no"
5692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling use of backtrace" >&5
5693 $as_echo "Disabling use of backtrace" >&6; }
5694 $as_echo "#define DISABLE_BACKTRACE 1" >>confdefs.h
5697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace" >&5
5698 $as_echo "Enabling use of backtrace" >&6; }
5702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace by default" >&5
5703 $as_echo "Enabling use of backtrace by default" >&6; }
5707 # Check whether --enable-debugfs was given.
5708 if test "${enable_debugfs+set}" = set; then :
5709 enableval=$enable_debugfs; if test "$enableval" = "no"
5711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling debugfs support" >&5
5712 $as_echo "Disabling debugfs support" >&6; }
5716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support" >&5
5717 $as_echo "Enabling debugfs support" >&6; }
5721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support by default" >&5
5722 $as_echo "Enabling debugfs support by default" >&6; }
5728 # Check whether --enable-imager was given.
5729 if test "${enable_imager+set}" = set; then :
5730 enableval=$enable_imager; if test "$enableval" = "no"
5732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2image support" >&5
5733 $as_echo "Disabling e2image support" >&6; }
5737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support" >&5
5738 $as_echo "Enabling e2image support" >&6; }
5742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support by default" >&5
5743 $as_echo "Enabling e2image support by default" >&6; }
5749 # Check whether --enable-resizer was given.
5750 if test "${enable_resizer+set}" = set; then :
5751 enableval=$enable_resizer; if test "$enableval" = "no"
5753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2resize support" >&5
5754 $as_echo "Disabling e2resize support" >&6; }
5758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support" >&5
5759 $as_echo "Enabling e2resize support" >&6; }
5763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support by default" >&5
5764 $as_echo "Enabling e2resize support by default" >&6; }
5770 # Check whether --enable-defrag was given.
5771 if test "${enable_defrag+set}" = set; then :
5772 enableval=$enable_defrag; if test "$enableval" = "no"
5774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support" >&5
5775 $as_echo "Disabling e4defrag support" >&6; }
5779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support" >&5
5780 $as_echo "Enabling e4defrag support" >&6; }
5784 if test -z "$WITH_DIET_LIBC"
5786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support by default" >&5
5787 $as_echo "Enabling e4defrag support by default" >&6; }
5790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support by default" >&5
5791 $as_echo "Disabling e4defrag support by default" >&6; }
5798 # Check whether --enable-fsck was given.
5799 if test "${enable_fsck+set}" = set; then :
5800 enableval=$enable_fsck; if test "$enableval" = "no"
5802 FSCK_PROG='' FSCK_MAN=''
5803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper" >&5
5804 $as_echo "Not building fsck wrapper" >&6; }
5806 FSCK_PROG=fsck FSCK_MAN=fsck.8
5807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper" >&5
5808 $as_echo "Building fsck wrapper" >&6; }
5814 FSCK_PROG='' FSCK_MAN=''
5815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper by default" >&5
5816 $as_echo "Not building fsck wrapper by default" >&6; }
5819 FSCK_PROG=fsck FSCK_MAN=fsck.8
5820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper by default" >&5
5821 $as_echo "Building fsck wrapper by default" >&6; }
5828 # Check whether --enable-e2initrd-helper was given.
5829 if test "${enable_e2initrd_helper+set}" = set; then :
5830 enableval=$enable_e2initrd_helper; if test "$enableval" = "no"
5832 E2INITRD_PROG='' E2INITRD_MAN=''
5833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building e2initrd helper" >&5
5834 $as_echo "Not building e2initrd helper" >&6; }
5836 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
5837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper" >&5
5838 $as_echo "Building e2initrd helper" >&6; }
5842 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
5843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper by default" >&5
5844 $as_echo "Building e2initrd helper by default" >&6; }
5850 # Check whether --enable-tls was given.
5851 if test "${enable_tls+set}" = set; then :
5852 enableval=$enable_tls; if test "$enableval" = "no"
5855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling thread local support" >&5
5856 $as_echo "Disabling thread local support" >&6; }
5859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling thread local support" >&5
5860 $as_echo "Enabling thread local support" >&6; }
5864 if test -n "$WITH_DIET_LIBC"
5867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Diet libc does not support thread local support" >&5
5868 $as_echo "Diet libc does not support thread local support" >&6; }
5871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Try using thread local support by default" >&5
5872 $as_echo "Try using thread local support by default" >&6; }
5877 if test "$try_tls" = "yes"
5880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread local storage (TLS) class" >&5
5881 $as_echo_n "checking for thread local storage (TLS) class... " >&6; }
5882 if ${ac_cv_tls+:} false; then :
5883 $as_echo_n "(cached) " >&6
5886 ax_tls_keywords="__thread __declspec(thread) none"
5887 for ax_tls_keyword in $ax_tls_keywords; do
5888 case $ax_tls_keyword in
5889 none) ac_cv_tls=none ; break ;;
5891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5892 /* end confdefs.h. */
5896 static $ax_tls_keyword int bar;
5907 if ac_fn_c_try_compile "$LINENO"; then :
5908 ac_cv_tls=$ax_tls_keyword ; break
5913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5920 if test "$ac_cv_tls" != "none"; then
5922 cat >>confdefs.h <<_ACEOF
5923 #define TLS $ac_cv_tls
5927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tls" >&5
5928 $as_echo "$ac_cv_tls" >&6; }
5932 # Check whether --enable-uuidd was given.
5933 if test "${enable_uuidd+set}" = set; then :
5934 enableval=$enable_uuidd; if test "$enableval" = "no"
5936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building uuidd" >&5
5937 $as_echo "Not building uuidd" >&6; }
5940 $as_echo "#define USE_UUIDD 1" >>confdefs.h
5943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd" >&5
5944 $as_echo "Building uuidd" >&6; }
5948 $as_echo "#define USE_UUIDD 1" >>confdefs.h
5950 if test -z "$UUID_CMT"
5953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd by default" >&5
5954 $as_echo "Building uuidd by default" >&6; }
5957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling uuidd by default" >&5
5958 $as_echo "Disabling uuidd by default" >&6; }
5965 # Check whether --enable-mmp was given.
5966 if test "${enable_mmp+set}" = set; then :
5967 enableval=$enable_mmp; if test "$enableval" = "no"
5969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling mmp support" >&5
5970 $as_echo "Disabling mmp support" >&6; }
5972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support" >&5
5973 $as_echo "Enabling mmp support" >&6; }
5974 $as_echo "#define CONFIG_MMP 1" >>confdefs.h
5979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support by default" >&5
5980 $as_echo "Enabling mmp support by default" >&6; }
5981 $as_echo "#define CONFIG_MMP 1" >>confdefs.h
5987 # Check whether --enable-tdb was given.
5988 if test "${enable_tdb+set}" = set; then :
5989 enableval=$enable_tdb; if test "$enableval" = "no"
5991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling tdb support" >&5
5992 $as_echo "Disabling tdb support" >&6; }
5994 TDB_MAN_COMMENT='.\"'
5996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling tdb support" >&5
5997 $as_echo "Enabling tdb support" >&6; }
5998 $as_echo "#define CONFIG_TDB 1" >>confdefs.h
6005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support by default" >&5
6006 $as_echo "Enabling mmp support by default" >&6; }
6007 $as_echo "#define CONFIG_TDB 1" >>confdefs.h
6017 # Check whether --enable-bmap-stats was given.
6018 if test "${enable_bmap_stats+set}" = set; then :
6019 enableval=$enable_bmap_stats; if test "$enableval" = "no"
6021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling bitmap statistics support" >&5
6022 $as_echo "Disabling bitmap statistics support" >&6; }
6024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling bitmap statistics support" >&5
6025 $as_echo "Enabling bitmap statistics support" >&6; }
6026 $as_echo "#define ENABLE_BMAP_STATS 1" >>confdefs.h
6031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling bitmap statistics support by default" >&5
6032 $as_echo "Enabling bitmap statistics support by default" >&6; }
6033 $as_echo "#define ENABLE_BMAP_STATS 1" >>confdefs.h
6039 # Check whether --enable-bmap-stats-ops was given.
6040 if test "${enable_bmap_stats_ops+set}" = set; then :
6041 enableval=$enable_bmap_stats_ops; if test "$enableval" = "no"
6043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling additional bitmap statistics" >&5
6044 $as_echo "Disabling additional bitmap statistics" >&6; }
6046 if test "x${enable_bmap_stats}" = "xno"; then :
6047 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6048 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6049 as_fn_error $? "Error --enable-bmap-stats-ops requires bmap-stats
6050 See \`config.log' for more details" "$LINENO" 5; }
6053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling additional bitmap statistics" >&5
6054 $as_echo "Enabling additional bitmap statistics" >&6; }
6055 $as_echo "#define ENABLE_BMAP_STATS_OPS 1" >>confdefs.h
6060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling additional bitmap statistics by default" >&5
6061 $as_echo "Disabling additional bitmap statistics by default" >&6; }
6065 MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
6067 GETTEXT_PACKAGE=e2fsprogs
6069 VERSION="$E2FSPROGS_VERSION"
6072 cat >>confdefs.h <<_ACEOF
6073 #define PACKAGE "$PACKAGE"
6077 cat >>confdefs.h <<_ACEOF
6078 #define VERSION "$VERSION"
6085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6086 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6088 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6089 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
6090 $as_echo_n "(cached) " >&6
6092 cat >conftest.make <<\_ACEOF
6095 @echo '@@@%%%=$(MAKE)=@@@%%%'
6097 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
6098 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6100 eval ac_cv_prog_make_${ac_make}_set=yes;;
6102 eval ac_cv_prog_make_${ac_make}_set=no;;
6106 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6108 $as_echo "yes" >&6; }
6111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6112 $as_echo "no" >&6; }
6113 SET_MAKE="MAKE=${MAKE-make}"
6116 # Find a good install program. We prefer a C program (faster),
6117 # so one script is as good as another. But avoid the broken or
6118 # incompatible versions:
6119 # SysV /etc/install, /usr/sbin/install
6120 # SunOS /usr/etc/install
6121 # IRIX /sbin/install
6123 # AmigaOS /C/install, which installs bootblocks on floppy discs
6124 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6125 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6126 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6127 # OS/2's system install, which has a completely different semantic
6128 # ./install, which can be erroneously created by make from ./install.sh.
6129 # Reject install programs that cannot install multiple files.
6130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
6131 $as_echo_n "checking for a BSD-compatible install... " >&6; }
6132 if test -z "$INSTALL"; then
6133 if ${ac_cv_path_install+:} false; then :
6134 $as_echo_n "(cached) " >&6
6136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6140 test -z "$as_dir" && as_dir=.
6141 # Account for people who put trailing slashes in PATH elements.
6142 case $as_dir/ in #((
6143 ./ | .// | /[cC]/* | \
6144 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6145 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
6148 # OSF1 and SCO ODT 3.0 have their own names for install.
6149 # Don't use installbsd from OSF since it installs stuff as root
6151 for ac_prog in ginstall scoinst install; do
6152 for ac_exec_ext in '' $ac_executable_extensions; do
6153 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
6154 if test $ac_prog = install &&
6155 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6156 # AIX install. It has an incompatible calling convention.
6158 elif test $ac_prog = install &&
6159 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6160 # program-specific install script used by HP pwplus--don't use.
6163 rm -rf conftest.one conftest.two conftest.dir
6164 echo one > conftest.one
6165 echo two > conftest.two
6167 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
6168 test -s conftest.one && test -s conftest.two &&
6169 test -s conftest.dir/conftest.one &&
6170 test -s conftest.dir/conftest.two
6172 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6185 rm -rf conftest.one conftest.two conftest.dir
6188 if test "${ac_cv_path_install+set}" = set; then
6189 INSTALL=$ac_cv_path_install
6191 # As a last resort, use the slow shell script. Don't cache a
6192 # value for INSTALL within a source directory, because that will
6193 # break other packages using the cache if that directory is
6194 # removed, or if the value is a relative name.
6195 INSTALL=$ac_install_sh
6198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
6199 $as_echo "$INSTALL" >&6; }
6201 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6202 # It thinks the first close brace ends the variable substitution.
6203 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6205 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6207 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
6210 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
6211 if test -z "$MKDIR_P"; then
6212 if ${ac_cv_path_mkdir+:} false; then :
6213 $as_echo_n "(cached) " >&6
6215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6216 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
6219 test -z "$as_dir" && as_dir=.
6220 for ac_prog in mkdir gmkdir; do
6221 for ac_exec_ext in '' $ac_executable_extensions; do
6222 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
6223 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
6224 'mkdir (GNU coreutils) '* | \
6225 'mkdir (coreutils) '* | \
6226 'mkdir (fileutils) '4.1*)
6227 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
6237 test -d ./--version && rmdir ./--version
6238 if test "${ac_cv_path_mkdir+set}" = set; then
6239 MKDIR_P="$ac_cv_path_mkdir -p"
6241 # As a last resort, use the slow shell script. Don't cache a
6242 # value for MKDIR_P within a source directory, because that will
6243 # break other packages using the cache if that directory is
6244 # removed, or if the value is a relative name.
6245 MKDIR_P="$ac_install_sh -d"
6248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
6249 $as_echo "$MKDIR_P" >&6; }
6251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6252 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6253 if ${ac_cv_path_SED+:} false; then :
6254 $as_echo_n "(cached) " >&6
6256 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6257 for ac_i in 1 2 3 4 5 6 7; do
6258 ac_script="$ac_script$as_nl$ac_script"
6260 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6261 { ac_script=; unset ac_script;}
6262 if test -z "$SED"; then
6263 ac_path_SED_found=false
6264 # Loop through the user's path and test for each of PROGNAME-LIST
6265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6269 test -z "$as_dir" && as_dir=.
6270 for ac_prog in sed gsed; do
6271 for ac_exec_ext in '' $ac_executable_extensions; do
6272 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6273 as_fn_executable_p "$ac_path_SED" || continue
6274 # Check for GNU ac_path_SED and select it if it is found.
6275 # Check for GNU $ac_path_SED
6276 case `"$ac_path_SED" --version 2>&1` in
6278 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6281 $as_echo_n 0123456789 >"conftest.in"
6284 cat "conftest.in" "conftest.in" >"conftest.tmp"
6285 mv "conftest.tmp" "conftest.in"
6286 cp "conftest.in" "conftest.nl"
6287 $as_echo '' >> "conftest.nl"
6288 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6289 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6290 as_fn_arith $ac_count + 1 && ac_count=$as_val
6291 if test $ac_count -gt ${ac_path_SED_max-0}; then
6292 # Best one so far, save it but keep looking for a better one
6293 ac_cv_path_SED="$ac_path_SED"
6294 ac_path_SED_max=$ac_count
6296 # 10*(2^10) chars as input seems more than enough
6297 test $ac_count -gt 10 && break
6299 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6302 $ac_path_SED_found && break 3
6307 if test -z "$ac_cv_path_SED"; then
6308 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6316 $as_echo "$ac_cv_path_SED" >&6; }
6317 SED="$ac_cv_path_SED"
6321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
6322 $as_echo_n "checking whether NLS is requested... " >&6; }
6323 # Check whether --enable-nls was given.
6324 if test "${enable_nls+set}" = set; then :
6325 enableval=$enable_nls; USE_NLS=$enableval
6330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
6331 $as_echo "$USE_NLS" >&6; }
6336 GETTEXT_MACRO_VERSION=0.18
6341 # Prepare PATH_SEPARATOR.
6342 # The user is always right.
6343 if test "${PATH_SEPARATOR+set}" != set; then
6344 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
6345 # contains only /bin. Note that ksh looks also at the FPATH variable,
6346 # so we have to set that as well for the test.
6348 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6349 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6350 || PATH_SEPARATOR=';'
6354 # Find out how to test for executable files. Don't use a zero-byte file,
6355 # as systems may use methods other than mode bits to determine executability.
6356 cat >conf$$.file <<_ASEOF
6360 chmod +x conf$$.file
6361 if test -x conf$$.file >/dev/null 2>&1; then
6362 ac_executable_p="test -x"
6364 ac_executable_p="test -f"
6368 # Extract the first word of "msgfmt", so it can be a program name with args.
6369 set dummy msgfmt; ac_word=$2
6370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6371 $as_echo_n "checking for $ac_word... " >&6; }
6372 if ${ac_cv_path_MSGFMT+:} false; then :
6373 $as_echo_n "(cached) " >&6
6377 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
6380 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6381 for ac_dir in $PATH; do
6383 test -z "$ac_dir" && ac_dir=.
6384 for ac_exec_ext in '' $ac_executable_extensions; do
6385 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6386 echo "$as_me: trying $ac_dir/$ac_word..." >&5
6387 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
6388 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6389 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
6396 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
6400 MSGFMT="$ac_cv_path_MSGFMT"
6401 if test "$MSGFMT" != ":"; then
6402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
6403 $as_echo "$MSGFMT" >&6; }
6405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6406 $as_echo "no" >&6; }
6409 # Extract the first word of "gmsgfmt", so it can be a program name with args.
6410 set dummy gmsgfmt; ac_word=$2
6411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6412 $as_echo_n "checking for $ac_word... " >&6; }
6413 if ${ac_cv_path_GMSGFMT+:} false; then :
6414 $as_echo_n "(cached) " >&6
6418 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
6421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6425 test -z "$as_dir" && as_dir=.
6426 for ac_exec_ext in '' $ac_executable_extensions; do
6427 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6428 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
6429 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6436 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
6440 GMSGFMT=$ac_cv_path_GMSGFMT
6441 if test -n "$GMSGFMT"; then
6442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
6443 $as_echo "$GMSGFMT" >&6; }
6445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6446 $as_echo "no" >&6; }
6451 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6452 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
6453 *) MSGFMT_015=$MSGFMT ;;
6456 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6457 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
6458 *) GMSGFMT_015=$GMSGFMT ;;
6463 # Prepare PATH_SEPARATOR.
6464 # The user is always right.
6465 if test "${PATH_SEPARATOR+set}" != set; then
6466 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
6467 # contains only /bin. Note that ksh looks also at the FPATH variable,
6468 # so we have to set that as well for the test.
6470 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6471 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6472 || PATH_SEPARATOR=';'
6476 # Find out how to test for executable files. Don't use a zero-byte file,
6477 # as systems may use methods other than mode bits to determine executability.
6478 cat >conf$$.file <<_ASEOF
6482 chmod +x conf$$.file
6483 if test -x conf$$.file >/dev/null 2>&1; then
6484 ac_executable_p="test -x"
6486 ac_executable_p="test -f"
6490 # Extract the first word of "xgettext", so it can be a program name with args.
6491 set dummy xgettext; ac_word=$2
6492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6493 $as_echo_n "checking for $ac_word... " >&6; }
6494 if ${ac_cv_path_XGETTEXT+:} false; then :
6495 $as_echo_n "(cached) " >&6
6499 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
6502 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6503 for ac_dir in $PATH; do
6505 test -z "$ac_dir" && ac_dir=.
6506 for ac_exec_ext in '' $ac_executable_extensions; do
6507 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6508 echo "$as_me: trying $ac_dir/$ac_word..." >&5
6509 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
6510 (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
6511 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
6518 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
6522 XGETTEXT="$ac_cv_path_XGETTEXT"
6523 if test "$XGETTEXT" != ":"; then
6524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
6525 $as_echo "$XGETTEXT" >&6; }
6527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6528 $as_echo "no" >&6; }
6533 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6534 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
6535 *) XGETTEXT_015=$XGETTEXT ;;
6540 # Prepare PATH_SEPARATOR.
6541 # The user is always right.
6542 if test "${PATH_SEPARATOR+set}" != set; then
6543 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
6544 # contains only /bin. Note that ksh looks also at the FPATH variable,
6545 # so we have to set that as well for the test.
6547 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6548 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6549 || PATH_SEPARATOR=';'
6553 # Find out how to test for executable files. Don't use a zero-byte file,
6554 # as systems may use methods other than mode bits to determine executability.
6555 cat >conf$$.file <<_ASEOF
6559 chmod +x conf$$.file
6560 if test -x conf$$.file >/dev/null 2>&1; then
6561 ac_executable_p="test -x"
6563 ac_executable_p="test -f"
6567 # Extract the first word of "msgmerge", so it can be a program name with args.
6568 set dummy msgmerge; ac_word=$2
6569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6570 $as_echo_n "checking for $ac_word... " >&6; }
6571 if ${ac_cv_path_MSGMERGE+:} false; then :
6572 $as_echo_n "(cached) " >&6
6576 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
6579 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6580 for ac_dir in $PATH; do
6582 test -z "$ac_dir" && ac_dir=.
6583 for ac_exec_ext in '' $ac_executable_extensions; do
6584 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6585 echo "$as_me: trying $ac_dir/$ac_word..." >&5
6586 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
6587 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
6594 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
6598 MSGMERGE="$ac_cv_path_MSGMERGE"
6599 if test "$MSGMERGE" != ":"; then
6600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
6601 $as_echo "$MSGMERGE" >&6; }
6603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6604 $as_echo "no" >&6; }
6608 test -n "$localedir" || localedir='${datadir}/locale'
6611 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
6614 ac_config_commands="$ac_config_commands po-directories"
6618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2 or newer" >&5
6619 $as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; }
6620 if ${ac_cv_gnu_library_2+:} false; then :
6621 $as_echo_n "(cached) " >&6
6623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6624 /* end confdefs.h. */
6626 #include <features.h>
6627 #ifdef __GNU_LIBRARY__
6628 #if (__GLIBC__ >= 2) && !defined __UCLIBC__
6634 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6635 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
6636 ac_cv_gnu_library_2=yes
6638 ac_cv_gnu_library_2=no
6645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2" >&5
6646 $as_echo "$ac_cv_gnu_library_2" >&6; }
6648 GLIBC2="$ac_cv_gnu_library_2"
6651 if test -n "$ac_tool_prefix"; then
6652 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6653 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6655 $as_echo_n "checking for $ac_word... " >&6; }
6656 if ${ac_cv_prog_RANLIB+:} false; then :
6657 $as_echo_n "(cached) " >&6
6659 if test -n "$RANLIB"; then
6660 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6666 test -z "$as_dir" && as_dir=.
6667 for ac_exec_ext in '' $ac_executable_extensions; do
6668 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6669 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6679 RANLIB=$ac_cv_prog_RANLIB
6680 if test -n "$RANLIB"; then
6681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6682 $as_echo "$RANLIB" >&6; }
6684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6685 $as_echo "no" >&6; }
6690 if test -z "$ac_cv_prog_RANLIB"; then
6691 ac_ct_RANLIB=$RANLIB
6692 # Extract the first word of "ranlib", so it can be a program name with args.
6693 set dummy ranlib; ac_word=$2
6694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6695 $as_echo_n "checking for $ac_word... " >&6; }
6696 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6697 $as_echo_n "(cached) " >&6
6699 if test -n "$ac_ct_RANLIB"; then
6700 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6706 test -z "$as_dir" && as_dir=.
6707 for ac_exec_ext in '' $ac_executable_extensions; do
6708 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6709 ac_cv_prog_ac_ct_RANLIB="ranlib"
6710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6719 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6720 if test -n "$ac_ct_RANLIB"; then
6721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6722 $as_echo "$ac_ct_RANLIB" >&6; }
6724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6725 $as_echo "no" >&6; }
6728 if test "x$ac_ct_RANLIB" = x; then
6731 case $cross_compiling:$ac_tool_warned in
6733 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6734 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6735 ac_tool_warned=yes ;;
6737 RANLIB=$ac_ct_RANLIB
6740 RANLIB="$ac_cv_prog_RANLIB"
6747 if test -n "$GCC"; then
6748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the -Werror option is usable" >&5
6749 $as_echo_n "checking whether the -Werror option is usable... " >&6; }
6750 if ${gl_cv_cc_vis_werror+:} false; then :
6751 $as_echo_n "(cached) " >&6
6754 gl_save_CFLAGS="$CFLAGS"
6755 CFLAGS="$CFLAGS -Werror"
6756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6757 /* end confdefs.h. */
6767 if ac_fn_c_try_compile "$LINENO"; then :
6768 gl_cv_cc_vis_werror=yes
6770 gl_cv_cc_vis_werror=no
6772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6773 CFLAGS="$gl_save_CFLAGS"
6776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_vis_werror" >&5
6777 $as_echo "$gl_cv_cc_vis_werror" >&6; }
6778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5
6779 $as_echo_n "checking for simple visibility declarations... " >&6; }
6780 if ${gl_cv_cc_visibility+:} false; then :
6781 $as_echo_n "(cached) " >&6
6784 gl_save_CFLAGS="$CFLAGS"
6785 CFLAGS="$CFLAGS -fvisibility=hidden"
6786 if test $gl_cv_cc_vis_werror = yes; then
6787 CFLAGS="$CFLAGS -Werror"
6789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6790 /* end confdefs.h. */
6791 extern __attribute__((__visibility__("hidden"))) int hiddenvar;
6792 extern __attribute__((__visibility__("default"))) int exportedvar;
6793 extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
6794 extern __attribute__((__visibility__("default"))) int exportedfunc (void);
6795 void dummyfunc (void) {}
6805 if ac_fn_c_try_compile "$LINENO"; then :
6806 gl_cv_cc_visibility=yes
6808 gl_cv_cc_visibility=no
6810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6811 CFLAGS="$gl_save_CFLAGS"
6814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5
6815 $as_echo "$gl_cv_cc_visibility" >&6; }
6816 if test $gl_cv_cc_visibility = yes; then
6817 CFLAG_VISIBILITY="-fvisibility=hidden"
6824 cat >>confdefs.h <<_ACEOF
6825 #define HAVE_VISIBILITY $HAVE_VISIBILITY
6829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
6830 $as_echo_n "checking for inline... " >&6; }
6831 if ${ac_cv_c_inline+:} false; then :
6832 $as_echo_n "(cached) " >&6
6835 for ac_kw in inline __inline__ __inline; do
6836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6837 /* end confdefs.h. */
6840 static $ac_kw foo_t static_foo () {return 0; }
6841 $ac_kw foo_t foo () {return 0; }
6845 if ac_fn_c_try_compile "$LINENO"; then :
6846 ac_cv_c_inline=$ac_kw
6848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6849 test "$ac_cv_c_inline" != no && break
6853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
6854 $as_echo "$ac_cv_c_inline" >&6; }
6856 case $ac_cv_c_inline in
6859 case $ac_cv_c_inline in
6861 *) ac_val=$ac_cv_c_inline;;
6863 cat >>confdefs.h <<_ACEOF
6865 #define inline $ac_val
6871 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6872 if test "x$ac_cv_type_size_t" = xyes; then :
6876 cat >>confdefs.h <<_ACEOF
6877 #define size_t unsigned int
6883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
6884 $as_echo_n "checking for stdint.h... " >&6; }
6885 if ${gl_cv_header_stdint_h+:} false; then :
6886 $as_echo_n "(cached) " >&6
6888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6889 /* end confdefs.h. */
6890 #include <sys/types.h>
6895 uintmax_t i = (uintmax_t) -1; return !i;
6900 if ac_fn_c_try_compile "$LINENO"; then :
6901 gl_cv_header_stdint_h=yes
6903 gl_cv_header_stdint_h=no
6905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
6908 $as_echo "$gl_cv_header_stdint_h" >&6; }
6909 if test $gl_cv_header_stdint_h = yes; then
6911 cat >>confdefs.h <<_ACEOF
6912 #define HAVE_STDINT_H_WITH_UINTMAX 1
6917 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6918 # for constant arguments. Useless!
6919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
6920 $as_echo_n "checking for working alloca.h... " >&6; }
6921 if ${ac_cv_working_alloca_h+:} false; then :
6922 $as_echo_n "(cached) " >&6
6924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6925 /* end confdefs.h. */
6930 char *p = (char *) alloca (2 * sizeof (int));
6936 if ac_fn_c_try_link "$LINENO"; then :
6937 ac_cv_working_alloca_h=yes
6939 ac_cv_working_alloca_h=no
6941 rm -f core conftest.err conftest.$ac_objext \
6942 conftest$ac_exeext conftest.$ac_ext
6944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
6945 $as_echo "$ac_cv_working_alloca_h" >&6; }
6946 if test $ac_cv_working_alloca_h = yes; then
6948 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
6952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
6953 $as_echo_n "checking for alloca... " >&6; }
6954 if ${ac_cv_func_alloca_works+:} false; then :
6955 $as_echo_n "(cached) " >&6
6957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6958 /* end confdefs.h. */
6960 # define alloca __builtin_alloca
6963 # include <malloc.h>
6964 # define alloca _alloca
6966 # ifdef HAVE_ALLOCA_H
6967 # include <alloca.h>
6972 # ifndef alloca /* predefined by HP cc +Olibcalls */
6973 void *alloca (size_t);
6983 char *p = (char *) alloca (1);
6989 if ac_fn_c_try_link "$LINENO"; then :
6990 ac_cv_func_alloca_works=yes
6992 ac_cv_func_alloca_works=no
6994 rm -f core conftest.err conftest.$ac_objext \
6995 conftest$ac_exeext conftest.$ac_ext
6997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
6998 $as_echo "$ac_cv_func_alloca_works" >&6; }
7000 if test $ac_cv_func_alloca_works = yes; then
7002 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
7005 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
7006 # that cause trouble. Some versions do not even contain alloca or
7007 # contain a buggy version. If you still want to use their alloca,
7008 # use ar to extract alloca.o from them instead of compiling alloca.c.
7010 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
7012 $as_echo "#define C_ALLOCA 1" >>confdefs.h
7015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
7016 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
7017 if ${ac_cv_os_cray+:} false; then :
7018 $as_echo_n "(cached) " >&6
7020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7021 /* end confdefs.h. */
7022 #if defined CRAY && ! defined CRAY2
7029 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7030 $EGREP "webecray" >/dev/null 2>&1; then :
7038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
7039 $as_echo "$ac_cv_os_cray" >&6; }
7040 if test $ac_cv_os_cray = yes; then
7041 for ac_func in _getb67 GETB67 getb67; do
7042 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7043 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7044 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7046 cat >>confdefs.h <<_ACEOF
7047 #define CRAY_STACKSEG_END $ac_func
7056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
7057 $as_echo_n "checking stack direction for C alloca... " >&6; }
7058 if ${ac_cv_c_stack_direction+:} false; then :
7059 $as_echo_n "(cached) " >&6
7061 if test "$cross_compiling" = yes; then :
7062 ac_cv_c_stack_direction=0
7064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7065 /* end confdefs.h. */
7066 $ac_includes_default
7068 find_stack_direction (int *addr, int depth)
7073 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
7074 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
7079 main (int argc, char **argv)
7081 return find_stack_direction (0, argc + !argv + 20) < 0;
7084 if ac_fn_c_try_run "$LINENO"; then :
7085 ac_cv_c_stack_direction=1
7087 ac_cv_c_stack_direction=-1
7089 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7090 conftest.$ac_objext conftest.beam conftest.$ac_ext
7094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
7095 $as_echo "$ac_cv_c_stack_direction" >&6; }
7096 cat >>confdefs.h <<_ACEOF
7097 #define STACK_DIRECTION $ac_cv_c_stack_direction
7106 for ac_header in $ac_header_list
7108 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7109 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7111 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7112 cat >>confdefs.h <<_ACEOF
7113 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7127 for ac_func in getpagesize
7129 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
7130 if test "x$ac_cv_func_getpagesize" = xyes; then :
7131 cat >>confdefs.h <<_ACEOF
7132 #define HAVE_GETPAGESIZE 1
7138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
7139 $as_echo_n "checking for working mmap... " >&6; }
7140 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
7141 $as_echo_n "(cached) " >&6
7143 if test "$cross_compiling" = yes; then :
7144 ac_cv_func_mmap_fixed_mapped=no
7146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7147 /* end confdefs.h. */
7148 $ac_includes_default
7149 /* malloc might have been renamed as rpl_malloc. */
7152 /* Thanks to Mike Haertel and Jim Avera for this test.
7153 Here is a matrix of mmap possibilities:
7154 mmap private not fixed
7155 mmap private fixed at somewhere currently unmapped
7156 mmap private fixed at somewhere already mapped
7157 mmap shared not fixed
7158 mmap shared fixed at somewhere currently unmapped
7159 mmap shared fixed at somewhere already mapped
7160 For private mappings, we should verify that changes cannot be read()
7161 back from the file, nor mmap's back from the file at a different
7162 address. (There have been systems where private was not correctly
7163 implemented like the infamous i386 svr4.0, and systems where the
7164 VM page cache was not coherent with the file system buffer cache
7165 like early versions of FreeBSD and possibly contemporary NetBSD.)
7166 For shared mappings, we should conversely verify that changes get
7167 propagated back to all the places they're supposed to be.
7169 Grep wants private fixed already mapped.
7170 The main things grep needs to know about mmap are:
7171 * does it exist and is it safe to write into the mmap'd area
7172 * how to use it (BSD variants) */
7175 #include <sys/mman.h>
7177 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7181 /* This mess was copied from the GNU getpagesize.h. */
7182 #ifndef HAVE_GETPAGESIZE
7183 # ifdef _SC_PAGESIZE
7184 # define getpagesize() sysconf(_SC_PAGESIZE)
7185 # else /* no _SC_PAGESIZE */
7186 # ifdef HAVE_SYS_PARAM_H
7187 # include <sys/param.h>
7188 # ifdef EXEC_PAGESIZE
7189 # define getpagesize() EXEC_PAGESIZE
7190 # else /* no EXEC_PAGESIZE */
7192 # define getpagesize() NBPG * CLSIZE
7195 # endif /* no CLSIZE */
7196 # else /* no NBPG */
7198 # define getpagesize() NBPC
7199 # else /* no NBPC */
7201 # define getpagesize() PAGESIZE
7202 # endif /* PAGESIZE */
7203 # endif /* no NBPC */
7204 # endif /* no NBPG */
7205 # endif /* no EXEC_PAGESIZE */
7206 # else /* no HAVE_SYS_PARAM_H */
7207 # define getpagesize() 8192 /* punt totally */
7208 # endif /* no HAVE_SYS_PARAM_H */
7209 # endif /* no _SC_PAGESIZE */
7211 #endif /* no HAVE_GETPAGESIZE */
7216 char *data, *data2, *data3;
7221 pagesize = getpagesize ();
7223 /* First, make a file with some known garbage in it. */
7224 data = (char *) malloc (pagesize);
7227 for (i = 0; i < pagesize; ++i)
7228 *(data + i) = rand ();
7230 fd = creat ("conftest.mmap", 0600);
7233 if (write (fd, data, pagesize) != pagesize)
7237 /* Next, check that the tail of a page is zero-filled. File must have
7238 non-zero length, otherwise we risk SIGBUS for entire page. */
7239 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7243 if (write (fd2, cdata2, 1) != 1)
7245 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7246 if (data2 == MAP_FAILED)
7248 for (i = 0; i < pagesize; ++i)
7252 if (munmap (data2, pagesize))
7255 /* Next, try to mmap the file at a fixed address which already has
7256 something else allocated at it. If we can, also make sure that
7257 we see the same garbage. */
7258 fd = open ("conftest.mmap", O_RDWR);
7261 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7262 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7264 for (i = 0; i < pagesize; ++i)
7265 if (*(data + i) != *(data2 + i))
7268 /* Finally, make sure that changes to the mapped area do not
7269 percolate back to the file as seen by read(). (This is a bug on
7270 some variants of i386 svr4.0.) */
7271 for (i = 0; i < pagesize; ++i)
7272 *(data2 + i) = *(data2 + i) + 1;
7273 data3 = (char *) malloc (pagesize);
7276 if (read (fd, data3, pagesize) != pagesize)
7278 for (i = 0; i < pagesize; ++i)
7279 if (*(data + i) != *(data3 + i))
7287 if ac_fn_c_try_run "$LINENO"; then :
7288 ac_cv_func_mmap_fixed_mapped=yes
7290 ac_cv_func_mmap_fixed_mapped=no
7292 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7293 conftest.$ac_objext conftest.beam conftest.$ac_ext
7297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
7298 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
7299 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7301 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
7304 rm -f conftest.mmap conftest.txt
7308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
7309 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
7310 if ${gt_cv_int_divbyzero_sigfpe+:} false; then :
7311 $as_echo_n "(cached) " >&6
7314 gt_cv_int_divbyzero_sigfpe=
7316 macos* | darwin[6-9]* | darwin[1-9][0-9]*)
7317 # On Mac OS X 10.2 or newer, just assume the same as when cross-
7318 # compiling. If we were to perform the real test, 1 Crash Report
7319 # dialog window would pop up.
7321 i[34567]86 | x86_64)
7322 gt_cv_int_divbyzero_sigfpe="guessing yes" ;;
7326 if test -z "$gt_cv_int_divbyzero_sigfpe"; then
7327 if test "$cross_compiling" = yes; then :
7329 # Guess based on the CPU.
7331 alpha* | i[34567]86 | x86_64 | m68k | s390*)
7332 gt_cv_int_divbyzero_sigfpe="guessing yes";;
7334 gt_cv_int_divbyzero_sigfpe="guessing no";;
7338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7339 /* end confdefs.h. */
7345 sigfpe_handler (int sig)
7347 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
7348 exit (sig != SIGFPE);
7358 signal (SIGFPE, sigfpe_handler);
7359 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
7360 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
7361 signal (SIGTRAP, sigfpe_handler);
7363 /* Linux/SPARC yields signal SIGILL. */
7364 #if defined (__sparc__) && defined (__linux__)
7365 signal (SIGILL, sigfpe_handler);
7374 if ac_fn_c_try_run "$LINENO"; then :
7375 gt_cv_int_divbyzero_sigfpe=yes
7377 gt_cv_int_divbyzero_sigfpe=no
7379 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7380 conftest.$ac_objext conftest.beam conftest.$ac_ext
7386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
7387 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
7388 case "$gt_cv_int_divbyzero_sigfpe" in
7393 cat >>confdefs.h <<_ACEOF
7394 #define INTDIV0_RAISES_SIGFPE $value
7399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
7400 $as_echo_n "checking for inttypes.h... " >&6; }
7401 if ${gl_cv_header_inttypes_h+:} false; then :
7402 $as_echo_n "(cached) " >&6
7404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7405 /* end confdefs.h. */
7407 #include <sys/types.h>
7408 #include <inttypes.h>
7413 uintmax_t i = (uintmax_t) -1; return !i;
7418 if ac_fn_c_try_compile "$LINENO"; then :
7419 gl_cv_header_inttypes_h=yes
7421 gl_cv_header_inttypes_h=no
7423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
7426 $as_echo "$gl_cv_header_inttypes_h" >&6; }
7427 if test $gl_cv_header_inttypes_h = yes; then
7429 cat >>confdefs.h <<_ACEOF
7430 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
7436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
7437 $as_echo_n "checking for unsigned long long int... " >&6; }
7438 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
7439 $as_echo_n "(cached) " >&6
7441 ac_cv_type_unsigned_long_long_int=yes
7442 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
7443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7444 /* end confdefs.h. */
7446 /* For now, do not test the preprocessor; as of 2007 there are too many
7447 implementations with broken preprocessors. Perhaps this can
7448 be revisited in 2012. In the meantime, code should not expect
7449 #if to work with literals wider than 32 bits. */
7450 /* Test literals. */
7451 long long int ll = 9223372036854775807ll;
7452 long long int nll = -9223372036854775807LL;
7453 unsigned long long int ull = 18446744073709551615ULL;
7454 /* Test constant expressions. */
7455 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
7457 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
7463 /* Test availability of runtime routines for shift and division. */
7464 long long int llmax = 9223372036854775807ll;
7465 unsigned long long int ullmax = 18446744073709551615ull;
7466 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
7467 | (llmax / ll) | (llmax % ll)
7468 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
7469 | (ullmax / ull) | (ullmax % ull));
7475 if ac_fn_c_try_link "$LINENO"; then :
7478 ac_cv_type_unsigned_long_long_int=no
7480 rm -f core conftest.err conftest.$ac_objext \
7481 conftest$ac_exeext conftest.$ac_ext
7484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
7485 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
7486 if test $ac_cv_type_unsigned_long_long_int = yes; then
7488 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
7495 if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
7497 test $ac_cv_type_unsigned_long_long_int = yes \
7498 && ac_type='unsigned long long' \
7499 || ac_type='unsigned long'
7501 cat >>confdefs.h <<_ACEOF
7502 #define uintmax_t $ac_type
7507 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
7512 for ac_header in inttypes.h
7514 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
7515 if test "x$ac_cv_header_inttypes_h" = xyes; then :
7516 cat >>confdefs.h <<_ACEOF
7517 #define HAVE_INTTYPES_H 1
7524 if test $ac_cv_header_inttypes_h = yes; then
7525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
7526 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
7527 if ${gt_cv_inttypes_pri_broken+:} false; then :
7528 $as_echo_n "(cached) " >&6
7531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7532 /* end confdefs.h. */
7534 #include <inttypes.h>
7547 if ac_fn_c_try_compile "$LINENO"; then :
7548 gt_cv_inttypes_pri_broken=no
7550 gt_cv_inttypes_pri_broken=yes
7552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
7556 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
7558 if test "$gt_cv_inttypes_pri_broken" = yes; then
7560 cat >>confdefs.h <<_ACEOF
7561 #define PRI_MACROS_BROKEN 1
7575 # Check whether --enable-threads was given.
7576 if test "${enable_threads+set}" = set; then :
7577 enableval=$enable_threads; gl_use_threads=$enableval
7579 if test -n "$gl_use_threads_default"; then
7580 gl_use_threads="$gl_use_threads_default"
7583 osf*) gl_use_threads=no ;;
7586 1.[0-5].*) gl_use_threads=no ;;
7587 *) gl_use_threads=yes ;;
7590 *) gl_use_threads=yes ;;
7596 if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
7597 # For using <pthread.h>:
7600 # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
7601 # groks <pthread.h>. cc also understands the flag -pthread, but
7602 # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
7603 # 2. putting a flag into CPPFLAGS that has an effect on the linker
7604 # causes the AC_LINK_IFELSE test below to succeed unexpectedly,
7605 # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
7606 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
7609 # Some systems optimize for single-threaded programs by default, and
7610 # need special flags to disable these optimizations. For example, the
7611 # definition of 'errno' in <errno.h>.
7613 aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;;
7614 solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;;
7622 if test "X$prefix" = "XNONE"; then
7623 acl_final_prefix="$ac_default_prefix"
7625 acl_final_prefix="$prefix"
7627 if test "X$exec_prefix" = "XNONE"; then
7628 acl_final_exec_prefix='${prefix}'
7630 acl_final_exec_prefix="$exec_prefix"
7632 acl_save_prefix="$prefix"
7633 prefix="$acl_final_prefix"
7634 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7635 prefix="$acl_save_prefix"
7639 # Check whether --with-gnu-ld was given.
7640 if test "${with_gnu_ld+set}" = set; then :
7641 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7646 # Prepare PATH_SEPARATOR.
7647 # The user is always right.
7648 if test "${PATH_SEPARATOR+set}" != set; then
7649 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
7650 # contains only /bin. Note that ksh looks also at the FPATH variable,
7651 # so we have to set that as well for the test.
7653 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7654 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7655 || PATH_SEPARATOR=';'
7660 if test "$GCC" = yes; then
7661 # Check if gcc -print-prog-name=ld gives a path.
7662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7663 $as_echo_n "checking for ld used by $CC... " >&6; }
7666 # gcc leaves a trailing carriage return which upsets mingw
7667 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7669 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7672 # Accept absolute paths.
7674 re_direlt='/[^/][^/]*/\.\./'
7675 # Canonicalize the pathname of ld
7676 ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'`
7677 while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do
7678 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
7680 test -z "$LD" && LD="$ac_prog"
7683 # If it fails, then pretend we aren't using GCC.
7687 # If it is relative, then search for the first ld in PATH.
7691 elif test "$with_gnu_ld" = yes; then
7692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7693 $as_echo_n "checking for GNU ld... " >&6; }
7695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7696 $as_echo_n "checking for non-GNU ld... " >&6; }
7698 if ${acl_cv_path_LD+:} false; then :
7699 $as_echo_n "(cached) " >&6
7701 if test -z "$LD"; then
7702 acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7703 for ac_dir in $PATH; do
7705 test -z "$ac_dir" && ac_dir=.
7706 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7707 acl_cv_path_LD="$ac_dir/$ac_prog"
7708 # Check to see if the program is GNU ld. I'd rather use --version,
7709 # but apparently some variants of GNU ld only accept -v.
7710 # Break only if it was the GNU/non-GNU ld that we prefer.
7711 case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
7712 *GNU* | *'with BFD'*)
7713 test "$with_gnu_ld" != no && break
7716 test "$with_gnu_ld" != yes && break
7723 acl_cv_path_LD="$LD" # Let the user override the test with a path.
7727 LD="$acl_cv_path_LD"
7728 if test -n "$LD"; then
7729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7730 $as_echo "$LD" >&6; }
7732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7733 $as_echo "no" >&6; }
7735 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7737 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7738 if ${acl_cv_prog_gnu_ld+:} false; then :
7739 $as_echo_n "(cached) " >&6
7741 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7742 case `$LD -v 2>&1 </dev/null` in
7743 *GNU* | *'with BFD'*)
7744 acl_cv_prog_gnu_ld=yes
7747 acl_cv_prog_gnu_ld=no
7751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
7752 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
7753 with_gnu_ld=$acl_cv_prog_gnu_ld
7758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
7759 $as_echo_n "checking for shared library run path origin... " >&6; }
7760 if ${acl_cv_rpath+:} false; then :
7761 $as_echo_n "(cached) " >&6
7764 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
7765 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
7772 $as_echo "$acl_cv_rpath" >&6; }
7774 acl_libext="$acl_cv_libext"
7775 acl_shlibext="$acl_cv_shlibext"
7776 acl_libname_spec="$acl_cv_libname_spec"
7777 acl_library_names_spec="$acl_cv_library_names_spec"
7778 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
7779 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
7780 acl_hardcode_direct="$acl_cv_hardcode_direct"
7781 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
7782 # Check whether --enable-rpath was given.
7783 if test "${enable_rpath+set}" = set; then :
7784 enableval=$enable_rpath; :
7796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
7797 $as_echo_n "checking for 64-bit host... " >&6; }
7798 if ${gl_cv_solaris_64bit+:} false; then :
7799 $as_echo_n "(cached) " >&6
7801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7802 /* end confdefs.h. */
7809 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7810 $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
7811 gl_cv_solaris_64bit=yes
7813 gl_cv_solaris_64bit=no
7819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
7820 $as_echo "$gl_cv_solaris_64bit" >&6; }
7821 if test $gl_cv_solaris_64bit = yes; then
7822 acl_libdirstem=lib/64
7824 sparc*) acl_libdirstem2=lib/sparcv9 ;;
7825 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
7830 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
7831 if test -n "$searchpath"; then
7832 acl_save_IFS="${IFS= }"; IFS=":"
7833 for searchdir in $searchpath; do
7834 if test -d "$searchdir"; then
7835 case "$searchdir" in
7836 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
7838 # Better ignore directories of this form. They are misleading.
7840 *) searchdir=`cd "$searchdir" && pwd`
7841 case "$searchdir" in
7842 */lib64 ) acl_libdirstem=lib64 ;;
7851 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
7860 if test "$gl_use_threads" != no; then
7861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5
7862 $as_echo_n "checking whether imported symbols can be declared weak... " >&6; }
7863 if ${gl_cv_have_weak+:} false; then :
7864 $as_echo_n "(cached) " >&6
7867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7868 /* end confdefs.h. */
7869 extern void xyzzy ();
7879 if ac_fn_c_try_link "$LINENO"; then :
7880 gl_cv_have_weak=maybe
7882 rm -f core conftest.err conftest.$ac_objext \
7883 conftest$ac_exeext conftest.$ac_ext
7884 if test $gl_cv_have_weak = maybe; then
7885 if test "$cross_compiling" = yes; then :
7886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7887 /* end confdefs.h. */
7889 Extensible Linking Format
7893 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7894 $EGREP "Extensible Linking Format" >/dev/null 2>&1; then :
7895 gl_cv_have_weak="guessing yes"
7897 gl_cv_have_weak="guessing no"
7903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7904 /* end confdefs.h. */
7910 return (fputs == NULL);
7913 if ac_fn_c_try_run "$LINENO"; then :
7918 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7919 conftest.$ac_objext conftest.beam conftest.$ac_ext
7925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5
7926 $as_echo "$gl_cv_have_weak" >&6; }
7927 if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
7928 # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
7929 # it groks <pthread.h>. It's added above, in gl_THREADLIB_EARLY_BODY.
7930 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
7931 if test "x$ac_cv_header_pthread_h" = xyes; then :
7932 gl_have_pthread_h=yes
7934 gl_have_pthread_h=no
7938 if test "$gl_have_pthread_h" = yes; then
7939 # Other possible tests:
7940 # -lpthreads (FSU threads, PCthreads)
7943 # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
7944 # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
7945 # the second one only in libpthread, and lock.c needs it.
7946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7947 /* end confdefs.h. */
7948 #include <pthread.h>
7952 pthread_mutex_lock((pthread_mutex_t*)0);
7953 pthread_mutexattr_init((pthread_mutexattr_t*)0);
7958 if ac_fn_c_try_link "$LINENO"; then :
7961 rm -f core conftest.err conftest.$ac_objext \
7962 conftest$ac_exeext conftest.$ac_ext
7963 # Test for libpthread by looking for pthread_kill. (Not pthread_self,
7964 # since it is defined as a macro on OSF/1.)
7965 if test -n "$gl_have_pthread"; then
7966 # The program links fine without libpthread. But it may actually
7967 # need to link with libpthread in order to create multiple threads.
7968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
7969 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
7970 if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
7971 $as_echo_n "(cached) " >&6
7973 ac_check_lib_save_LIBS=$LIBS
7974 LIBS="-lpthread $LIBS"
7975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7976 /* end confdefs.h. */
7978 /* Override any GCC internal prototype to avoid an error.
7979 Use char because int might match the return type of a GCC
7980 builtin and then its argument prototype would still apply. */
7984 char pthread_kill ();
7988 return pthread_kill ();
7993 if ac_fn_c_try_link "$LINENO"; then :
7994 ac_cv_lib_pthread_pthread_kill=yes
7996 ac_cv_lib_pthread_pthread_kill=no
7998 rm -f core conftest.err conftest.$ac_objext \
7999 conftest$ac_exeext conftest.$ac_ext
8000 LIBS=$ac_check_lib_save_LIBS
8002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
8003 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
8004 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
8005 LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
8006 # On Solaris and HP-UX, most pthread functions exist also in libc.
8007 # Therefore pthread_in_use() needs to actually try to create a
8008 # thread: pthread_create from libc will fail, whereas
8009 # pthread_create will actually create a thread.
8013 $as_echo "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h
8020 # Some library is needed. Try libpthread and libc_r.
8021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
8022 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
8023 if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
8024 $as_echo_n "(cached) " >&6
8026 ac_check_lib_save_LIBS=$LIBS
8027 LIBS="-lpthread $LIBS"
8028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8029 /* end confdefs.h. */
8031 /* Override any GCC internal prototype to avoid an error.
8032 Use char because int might match the return type of a GCC
8033 builtin and then its argument prototype would still apply. */
8037 char pthread_kill ();
8041 return pthread_kill ();
8046 if ac_fn_c_try_link "$LINENO"; then :
8047 ac_cv_lib_pthread_pthread_kill=yes
8049 ac_cv_lib_pthread_pthread_kill=no
8051 rm -f core conftest.err conftest.$ac_objext \
8052 conftest$ac_exeext conftest.$ac_ext
8053 LIBS=$ac_check_lib_save_LIBS
8055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
8056 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
8057 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
8059 LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread
8060 LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
8063 if test -z "$gl_have_pthread"; then
8065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5
8066 $as_echo_n "checking for pthread_kill in -lc_r... " >&6; }
8067 if ${ac_cv_lib_c_r_pthread_kill+:} false; then :
8068 $as_echo_n "(cached) " >&6
8070 ac_check_lib_save_LIBS=$LIBS
8072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8073 /* end confdefs.h. */
8075 /* Override any GCC internal prototype to avoid an error.
8076 Use char because int might match the return type of a GCC
8077 builtin and then its argument prototype would still apply. */
8081 char pthread_kill ();
8085 return pthread_kill ();
8090 if ac_fn_c_try_link "$LINENO"; then :
8091 ac_cv_lib_c_r_pthread_kill=yes
8093 ac_cv_lib_c_r_pthread_kill=no
8095 rm -f core conftest.err conftest.$ac_objext \
8096 conftest$ac_exeext conftest.$ac_ext
8097 LIBS=$ac_check_lib_save_LIBS
8099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5
8100 $as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; }
8101 if test "x$ac_cv_lib_c_r_pthread_kill" = xyes; then :
8103 LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r
8104 LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r
8109 if test -n "$gl_have_pthread"; then
8110 gl_threads_api=posix
8112 $as_echo "#define USE_POSIX_THREADS 1" >>confdefs.h
8114 if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
8115 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
8117 $as_echo "#define USE_POSIX_THREADS_WEAK 1" >>confdefs.h
8126 if test -z "$gl_have_pthread"; then
8127 if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then
8128 gl_have_solaristhread=
8129 gl_save_LIBS="$LIBS"
8130 LIBS="$LIBS -lthread"
8131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8132 /* end confdefs.h. */
8145 if ac_fn_c_try_link "$LINENO"; then :
8146 gl_have_solaristhread=yes
8148 rm -f core conftest.err conftest.$ac_objext \
8149 conftest$ac_exeext conftest.$ac_ext
8150 LIBS="$gl_save_LIBS"
8151 if test -n "$gl_have_solaristhread"; then
8152 gl_threads_api=solaris
8154 LTLIBTHREAD=-lthread
8155 LIBMULTITHREAD="$LIBTHREAD"
8156 LTLIBMULTITHREAD="$LTLIBTHREAD"
8158 $as_echo "#define USE_SOLARIS_THREADS 1" >>confdefs.h
8160 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
8162 $as_echo "#define USE_SOLARIS_THREADS_WEAK 1" >>confdefs.h
8170 if test "$gl_use_threads" = pth; then
8171 gl_save_CPPFLAGS="$CPPFLAGS"
8177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libpth" >&5
8178 $as_echo_n "checking how to link with libpth... " >&6; }
8179 if ${ac_cv_libpth_libs+:} false; then :
8180 $as_echo_n "(cached) " >&6
8192 acl_save_prefix="$prefix"
8193 prefix="$acl_final_prefix"
8194 acl_save_exec_prefix="$exec_prefix"
8195 exec_prefix="$acl_final_exec_prefix"
8197 eval additional_includedir=\"$includedir\"
8198 eval additional_libdir=\"$libdir\"
8200 exec_prefix="$acl_save_exec_prefix"
8201 prefix="$acl_save_prefix"
8204 # Check whether --with-libpth-prefix was given.
8205 if test "${with_libpth_prefix+set}" = set; then :
8206 withval=$with_libpth_prefix;
8207 if test "X$withval" = "Xno"; then
8210 if test "X$withval" = "X"; then
8212 acl_save_prefix="$prefix"
8213 prefix="$acl_final_prefix"
8214 acl_save_exec_prefix="$exec_prefix"
8215 exec_prefix="$acl_final_exec_prefix"
8217 eval additional_includedir=\"$includedir\"
8218 eval additional_libdir=\"$libdir\"
8220 exec_prefix="$acl_save_exec_prefix"
8221 prefix="$acl_save_prefix"
8224 additional_includedir="$withval/include"
8225 additional_libdir="$withval/$acl_libdirstem"
8226 if test "$acl_libdirstem2" != "$acl_libdirstem" \
8227 && ! test -d "$withval/$acl_libdirstem"; then
8228 additional_libdir="$withval/$acl_libdirstem2"
8242 names_already_handled=
8243 names_next_round='pth '
8244 while test -n "$names_next_round"; do
8245 names_this_round="$names_next_round"
8247 for name in $names_this_round; do
8249 for n in $names_already_handled; do
8250 if test "$n" = "$name"; then
8255 if test -z "$already_handled"; then
8256 names_already_handled="$names_already_handled $name"
8257 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
8258 eval value=\"\$HAVE_LIB$uppername\"
8259 if test -n "$value"; then
8260 if test "$value" = yes; then
8261 eval value=\"\$LIB$uppername\"
8262 test -z "$value" || LIBPTH="${LIBPTH}${LIBPTH:+ }$value"
8263 eval value=\"\$LTLIB$uppername\"
8264 test -z "$value" || LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$value"
8273 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
8274 if test -n "$acl_shlibext"; then
8275 shrext=".$acl_shlibext" # typically: shrext=.so
8279 if test $use_additional = yes; then
8280 dir="$additional_libdir"
8281 if test -n "$acl_shlibext"; then
8282 if test -f "$dir/$libname$shrext"; then
8284 found_so="$dir/$libname$shrext"
8286 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8287 ver=`(cd "$dir" && \
8288 for f in "$libname$shrext".*; do echo "$f"; done \
8289 | sed -e "s,^$libname$shrext\\\\.,," \
8290 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8291 | sed 1q ) 2>/dev/null`
8292 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8294 found_so="$dir/$libname$shrext.$ver"
8297 eval library_names=\"$acl_library_names_spec\"
8298 for f in $library_names; do
8299 if test -f "$dir/$f"; then
8308 if test "X$found_dir" = "X"; then
8309 if test -f "$dir/$libname.$acl_libext"; then
8311 found_a="$dir/$libname.$acl_libext"
8314 if test "X$found_dir" != "X"; then
8315 if test -f "$dir/$libname.la"; then
8316 found_la="$dir/$libname.la"
8320 if test "X$found_dir" = "X"; then
8321 for x in $LDFLAGS $LTLIBPTH; do
8323 acl_save_prefix="$prefix"
8324 prefix="$acl_final_prefix"
8325 acl_save_exec_prefix="$exec_prefix"
8326 exec_prefix="$acl_final_exec_prefix"
8328 exec_prefix="$acl_save_exec_prefix"
8329 prefix="$acl_save_prefix"
8333 dir=`echo "X$x" | sed -e 's/^X-L//'`
8334 if test -n "$acl_shlibext"; then
8335 if test -f "$dir/$libname$shrext"; then
8337 found_so="$dir/$libname$shrext"
8339 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8340 ver=`(cd "$dir" && \
8341 for f in "$libname$shrext".*; do echo "$f"; done \
8342 | sed -e "s,^$libname$shrext\\\\.,," \
8343 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8344 | sed 1q ) 2>/dev/null`
8345 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8347 found_so="$dir/$libname$shrext.$ver"
8350 eval library_names=\"$acl_library_names_spec\"
8351 for f in $library_names; do
8352 if test -f "$dir/$f"; then
8361 if test "X$found_dir" = "X"; then
8362 if test -f "$dir/$libname.$acl_libext"; then
8364 found_a="$dir/$libname.$acl_libext"
8367 if test "X$found_dir" != "X"; then
8368 if test -f "$dir/$libname.la"; then
8369 found_la="$dir/$libname.la"
8374 if test "X$found_dir" != "X"; then
8379 if test "X$found_dir" != "X"; then
8380 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name"
8381 if test "X$found_so" != "X"; then
8382 if test "$enable_rpath" = no \
8383 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
8384 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
8385 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
8388 for x in $ltrpathdirs; do
8389 if test "X$x" = "X$found_dir"; then
8394 if test -z "$haveit"; then
8395 ltrpathdirs="$ltrpathdirs $found_dir"
8397 if test "$acl_hardcode_direct" = yes; then
8398 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
8400 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
8401 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
8403 for x in $rpathdirs; do
8404 if test "X$x" = "X$found_dir"; then
8409 if test -z "$haveit"; then
8410 rpathdirs="$rpathdirs $found_dir"
8414 for x in $LDFLAGS $LIBPTH; do
8416 acl_save_prefix="$prefix"
8417 prefix="$acl_final_prefix"
8418 acl_save_exec_prefix="$exec_prefix"
8419 exec_prefix="$acl_final_exec_prefix"
8421 exec_prefix="$acl_save_exec_prefix"
8422 prefix="$acl_save_prefix"
8424 if test "X$x" = "X-L$found_dir"; then
8429 if test -z "$haveit"; then
8430 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir"
8432 if test "$acl_hardcode_minus_L" != no; then
8433 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
8435 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
8441 if test "X$found_a" != "X"; then
8442 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_a"
8444 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name"
8447 additional_includedir=
8448 case "$found_dir" in
8449 */$acl_libdirstem | */$acl_libdirstem/)
8450 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
8451 if test "$name" = 'pth'; then
8452 LIBPTH_PREFIX="$basedir"
8454 additional_includedir="$basedir/include"
8456 */$acl_libdirstem2 | */$acl_libdirstem2/)
8457 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
8458 if test "$name" = 'pth'; then
8459 LIBPTH_PREFIX="$basedir"
8461 additional_includedir="$basedir/include"
8464 if test "X$additional_includedir" != "X"; then
8465 if test "X$additional_includedir" != "X/usr/include"; then
8467 if test "X$additional_includedir" = "X/usr/local/include"; then
8468 if test -n "$GCC"; then
8470 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
8474 if test -z "$haveit"; then
8475 for x in $CPPFLAGS $INCPTH; do
8477 acl_save_prefix="$prefix"
8478 prefix="$acl_final_prefix"
8479 acl_save_exec_prefix="$exec_prefix"
8480 exec_prefix="$acl_final_exec_prefix"
8482 exec_prefix="$acl_save_exec_prefix"
8483 prefix="$acl_save_prefix"
8485 if test "X$x" = "X-I$additional_includedir"; then
8490 if test -z "$haveit"; then
8491 if test -d "$additional_includedir"; then
8492 INCPTH="${INCPTH}${INCPTH:+ }-I$additional_includedir"
8498 if test -n "$found_la"; then
8499 save_libdir="$libdir"
8501 */* | *\\*) . "$found_la" ;;
8502 *) . "./$found_la" ;;
8504 libdir="$save_libdir"
8505 for dep in $dependency_libs; do
8508 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8509 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
8510 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
8512 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
8513 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
8514 if test -n "$GCC"; then
8516 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
8520 if test -z "$haveit"; then
8522 for x in $LDFLAGS $LIBPTH; do
8524 acl_save_prefix="$prefix"
8525 prefix="$acl_final_prefix"
8526 acl_save_exec_prefix="$exec_prefix"
8527 exec_prefix="$acl_final_exec_prefix"
8529 exec_prefix="$acl_save_exec_prefix"
8530 prefix="$acl_save_prefix"
8532 if test "X$x" = "X-L$additional_libdir"; then
8537 if test -z "$haveit"; then
8538 if test -d "$additional_libdir"; then
8539 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$additional_libdir"
8543 for x in $LDFLAGS $LTLIBPTH; do
8545 acl_save_prefix="$prefix"
8546 prefix="$acl_final_prefix"
8547 acl_save_exec_prefix="$exec_prefix"
8548 exec_prefix="$acl_final_exec_prefix"
8550 exec_prefix="$acl_save_exec_prefix"
8551 prefix="$acl_save_prefix"
8553 if test "X$x" = "X-L$additional_libdir"; then
8558 if test -z "$haveit"; then
8559 if test -d "$additional_libdir"; then
8560 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir"
8567 dir=`echo "X$dep" | sed -e 's/^X-R//'`
8568 if test "$enable_rpath" != no; then
8570 for x in $rpathdirs; do
8571 if test "X$x" = "X$dir"; then
8576 if test -z "$haveit"; then
8577 rpathdirs="$rpathdirs $dir"
8580 for x in $ltrpathdirs; do
8581 if test "X$x" = "X$dir"; then
8586 if test -z "$haveit"; then
8587 ltrpathdirs="$ltrpathdirs $dir"
8592 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8595 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8598 LIBPTH="${LIBPTH}${LIBPTH:+ }$dep"
8599 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$dep"
8605 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
8606 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-l$name"
8612 if test "X$rpathdirs" != "X"; then
8613 if test -n "$acl_hardcode_libdir_separator"; then
8615 for found_dir in $rpathdirs; do
8616 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
8618 acl_save_libdir="$libdir"
8620 eval flag=\"$acl_hardcode_libdir_flag_spec\"
8621 libdir="$acl_save_libdir"
8622 LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
8624 for found_dir in $rpathdirs; do
8625 acl_save_libdir="$libdir"
8627 eval flag=\"$acl_hardcode_libdir_flag_spec\"
8628 libdir="$acl_save_libdir"
8629 LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
8633 if test "X$ltrpathdirs" != "X"; then
8634 for found_dir in $ltrpathdirs; do
8635 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir"
8644 ac_cv_libpth_libs="$LIBPTH"
8645 ac_cv_libpth_ltlibs="$LTLIBPTH"
8646 ac_cv_libpth_cppflags="$INCPTH"
8647 ac_cv_libpth_prefix="$LIBPTH_PREFIX"
8650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libpth_libs" >&5
8651 $as_echo "$ac_cv_libpth_libs" >&6; }
8652 LIBPTH="$ac_cv_libpth_libs"
8653 LTLIBPTH="$ac_cv_libpth_ltlibs"
8654 INCPTH="$ac_cv_libpth_cppflags"
8655 LIBPTH_PREFIX="$ac_cv_libpth_prefix"
8657 for element in $INCPTH; do
8659 for x in $CPPFLAGS; do
8661 acl_save_prefix="$prefix"
8662 prefix="$acl_final_prefix"
8663 acl_save_exec_prefix="$exec_prefix"
8664 exec_prefix="$acl_final_exec_prefix"
8666 exec_prefix="$acl_save_exec_prefix"
8667 prefix="$acl_save_prefix"
8669 if test "X$x" = "X$element"; then
8674 if test -z "$haveit"; then
8675 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8687 gl_save_LIBS="$LIBS"
8688 LIBS="$LIBS $LIBPTH"
8689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8690 /* end confdefs.h. */
8700 if ac_fn_c_try_link "$LINENO"; then :
8703 rm -f core conftest.err conftest.$ac_objext \
8704 conftest$ac_exeext conftest.$ac_ext
8705 LIBS="$gl_save_LIBS"
8706 if test -n "$gl_have_pth"; then
8709 LTLIBTHREAD="$LTLIBPTH"
8710 LIBMULTITHREAD="$LIBTHREAD"
8711 LTLIBMULTITHREAD="$LTLIBTHREAD"
8713 $as_echo "#define USE_PTH_THREADS 1" >>confdefs.h
8715 if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
8716 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
8718 $as_echo "#define USE_PTH_THREADS_WEAK 1" >>confdefs.h
8725 CPPFLAGS="$gl_save_CPPFLAGS"
8728 if test -z "$gl_have_pthread"; then
8729 case "$gl_use_threads" in
8730 yes | windows | win32) # The 'win32' is for backward compatibility.
8731 if { case "$host_os" in
8736 gl_threads_api=windows
8738 $as_echo "#define USE_WINDOWS_THREADS 1" >>confdefs.h
8745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multithread API to use" >&5
8746 $as_echo_n "checking for multithread API to use... " >&6; }
8747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_threads_api" >&5
8748 $as_echo "$gl_threads_api" >&6; }
8760 if test "$gl_threads_api" = posix; then
8761 # OSF/1 4.0 and Mac OS X 10.1 lack the pthread_rwlock_t type and the
8762 # pthread_rwlock_* functions.
8763 ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h>
8765 if test "x$ac_cv_type_pthread_rwlock_t" = xyes; then :
8767 $as_echo "#define HAVE_PTHREAD_RWLOCK 1" >>confdefs.h
8771 # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
8772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8773 /* end confdefs.h. */
8775 #include <pthread.h>
8780 #if __FreeBSD__ == 4
8781 error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
8782 #elif (defined __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ \
8783 && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 1070)
8784 error "No, in Mac OS X < 10.7 recursive mutexes actually don't work."
8786 int x = (int)PTHREAD_MUTEX_RECURSIVE;
8794 if ac_fn_c_try_compile "$LINENO"; then :
8796 $as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h
8799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8816 acl_save_prefix="$prefix"
8817 prefix="$acl_final_prefix"
8818 acl_save_exec_prefix="$exec_prefix"
8819 exec_prefix="$acl_final_exec_prefix"
8821 eval additional_includedir=\"$includedir\"
8822 eval additional_libdir=\"$libdir\"
8824 exec_prefix="$acl_save_exec_prefix"
8825 prefix="$acl_save_prefix"
8828 # Check whether --with-libiconv-prefix was given.
8829 if test "${with_libiconv_prefix+set}" = set; then :
8830 withval=$with_libiconv_prefix;
8831 if test "X$withval" = "Xno"; then
8834 if test "X$withval" = "X"; then
8836 acl_save_prefix="$prefix"
8837 prefix="$acl_final_prefix"
8838 acl_save_exec_prefix="$exec_prefix"
8839 exec_prefix="$acl_final_exec_prefix"
8841 eval additional_includedir=\"$includedir\"
8842 eval additional_libdir=\"$libdir\"
8844 exec_prefix="$acl_save_exec_prefix"
8845 prefix="$acl_save_prefix"
8848 additional_includedir="$withval/include"
8849 additional_libdir="$withval/$acl_libdirstem"
8850 if test "$acl_libdirstem2" != "$acl_libdirstem" \
8851 && ! test -d "$withval/$acl_libdirstem"; then
8852 additional_libdir="$withval/$acl_libdirstem2"
8866 names_already_handled=
8867 names_next_round='iconv '
8868 while test -n "$names_next_round"; do
8869 names_this_round="$names_next_round"
8871 for name in $names_this_round; do
8873 for n in $names_already_handled; do
8874 if test "$n" = "$name"; then
8879 if test -z "$already_handled"; then
8880 names_already_handled="$names_already_handled $name"
8881 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
8882 eval value=\"\$HAVE_LIB$uppername\"
8883 if test -n "$value"; then
8884 if test "$value" = yes; then
8885 eval value=\"\$LIB$uppername\"
8886 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
8887 eval value=\"\$LTLIB$uppername\"
8888 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
8897 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
8898 if test -n "$acl_shlibext"; then
8899 shrext=".$acl_shlibext" # typically: shrext=.so
8903 if test $use_additional = yes; then
8904 dir="$additional_libdir"
8905 if test -n "$acl_shlibext"; then
8906 if test -f "$dir/$libname$shrext"; then
8908 found_so="$dir/$libname$shrext"
8910 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8911 ver=`(cd "$dir" && \
8912 for f in "$libname$shrext".*; do echo "$f"; done \
8913 | sed -e "s,^$libname$shrext\\\\.,," \
8914 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8915 | sed 1q ) 2>/dev/null`
8916 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8918 found_so="$dir/$libname$shrext.$ver"
8921 eval library_names=\"$acl_library_names_spec\"
8922 for f in $library_names; do
8923 if test -f "$dir/$f"; then
8932 if test "X$found_dir" = "X"; then
8933 if test -f "$dir/$libname.$acl_libext"; then
8935 found_a="$dir/$libname.$acl_libext"
8938 if test "X$found_dir" != "X"; then
8939 if test -f "$dir/$libname.la"; then
8940 found_la="$dir/$libname.la"
8944 if test "X$found_dir" = "X"; then
8945 for x in $LDFLAGS $LTLIBICONV; do
8947 acl_save_prefix="$prefix"
8948 prefix="$acl_final_prefix"
8949 acl_save_exec_prefix="$exec_prefix"
8950 exec_prefix="$acl_final_exec_prefix"
8952 exec_prefix="$acl_save_exec_prefix"
8953 prefix="$acl_save_prefix"
8957 dir=`echo "X$x" | sed -e 's/^X-L//'`
8958 if test -n "$acl_shlibext"; then
8959 if test -f "$dir/$libname$shrext"; then
8961 found_so="$dir/$libname$shrext"
8963 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8964 ver=`(cd "$dir" && \
8965 for f in "$libname$shrext".*; do echo "$f"; done \
8966 | sed -e "s,^$libname$shrext\\\\.,," \
8967 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8968 | sed 1q ) 2>/dev/null`
8969 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8971 found_so="$dir/$libname$shrext.$ver"
8974 eval library_names=\"$acl_library_names_spec\"
8975 for f in $library_names; do
8976 if test -f "$dir/$f"; then
8985 if test "X$found_dir" = "X"; then
8986 if test -f "$dir/$libname.$acl_libext"; then
8988 found_a="$dir/$libname.$acl_libext"
8991 if test "X$found_dir" != "X"; then
8992 if test -f "$dir/$libname.la"; then
8993 found_la="$dir/$libname.la"
8998 if test "X$found_dir" != "X"; then
9003 if test "X$found_dir" != "X"; then
9004 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9005 if test "X$found_so" != "X"; then
9006 if test "$enable_rpath" = no \
9007 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
9008 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
9009 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9012 for x in $ltrpathdirs; do
9013 if test "X$x" = "X$found_dir"; then
9018 if test -z "$haveit"; then
9019 ltrpathdirs="$ltrpathdirs $found_dir"
9021 if test "$acl_hardcode_direct" = yes; then
9022 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9024 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
9025 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9027 for x in $rpathdirs; do
9028 if test "X$x" = "X$found_dir"; then
9033 if test -z "$haveit"; then
9034 rpathdirs="$rpathdirs $found_dir"
9038 for x in $LDFLAGS $LIBICONV; do
9040 acl_save_prefix="$prefix"
9041 prefix="$acl_final_prefix"
9042 acl_save_exec_prefix="$exec_prefix"
9043 exec_prefix="$acl_final_exec_prefix"
9045 exec_prefix="$acl_save_exec_prefix"
9046 prefix="$acl_save_prefix"
9048 if test "X$x" = "X-L$found_dir"; then
9053 if test -z "$haveit"; then
9054 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9056 if test "$acl_hardcode_minus_L" != no; then
9057 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9059 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9065 if test "X$found_a" != "X"; then
9066 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
9068 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9071 additional_includedir=
9072 case "$found_dir" in
9073 */$acl_libdirstem | */$acl_libdirstem/)
9074 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
9075 if test "$name" = 'iconv'; then
9076 LIBICONV_PREFIX="$basedir"
9078 additional_includedir="$basedir/include"
9080 */$acl_libdirstem2 | */$acl_libdirstem2/)
9081 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
9082 if test "$name" = 'iconv'; then
9083 LIBICONV_PREFIX="$basedir"
9085 additional_includedir="$basedir/include"
9088 if test "X$additional_includedir" != "X"; then
9089 if test "X$additional_includedir" != "X/usr/include"; then
9091 if test "X$additional_includedir" = "X/usr/local/include"; then
9092 if test -n "$GCC"; then
9094 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
9098 if test -z "$haveit"; then
9099 for x in $CPPFLAGS $INCICONV; do
9101 acl_save_prefix="$prefix"
9102 prefix="$acl_final_prefix"
9103 acl_save_exec_prefix="$exec_prefix"
9104 exec_prefix="$acl_final_exec_prefix"
9106 exec_prefix="$acl_save_exec_prefix"
9107 prefix="$acl_save_prefix"
9109 if test "X$x" = "X-I$additional_includedir"; then
9114 if test -z "$haveit"; then
9115 if test -d "$additional_includedir"; then
9116 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9122 if test -n "$found_la"; then
9123 save_libdir="$libdir"
9125 */* | *\\*) . "$found_la" ;;
9126 *) . "./$found_la" ;;
9128 libdir="$save_libdir"
9129 for dep in $dependency_libs; do
9132 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9133 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
9134 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
9136 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
9137 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
9138 if test -n "$GCC"; then
9140 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
9144 if test -z "$haveit"; then
9146 for x in $LDFLAGS $LIBICONV; do
9148 acl_save_prefix="$prefix"
9149 prefix="$acl_final_prefix"
9150 acl_save_exec_prefix="$exec_prefix"
9151 exec_prefix="$acl_final_exec_prefix"
9153 exec_prefix="$acl_save_exec_prefix"
9154 prefix="$acl_save_prefix"
9156 if test "X$x" = "X-L$additional_libdir"; then
9161 if test -z "$haveit"; then
9162 if test -d "$additional_libdir"; then
9163 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9167 for x in $LDFLAGS $LTLIBICONV; do
9169 acl_save_prefix="$prefix"
9170 prefix="$acl_final_prefix"
9171 acl_save_exec_prefix="$exec_prefix"
9172 exec_prefix="$acl_final_exec_prefix"
9174 exec_prefix="$acl_save_exec_prefix"
9175 prefix="$acl_save_prefix"
9177 if test "X$x" = "X-L$additional_libdir"; then
9182 if test -z "$haveit"; then
9183 if test -d "$additional_libdir"; then
9184 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
9191 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9192 if test "$enable_rpath" != no; then
9194 for x in $rpathdirs; do
9195 if test "X$x" = "X$dir"; then
9200 if test -z "$haveit"; then
9201 rpathdirs="$rpathdirs $dir"
9204 for x in $ltrpathdirs; do
9205 if test "X$x" = "X$dir"; then
9210 if test -z "$haveit"; then
9211 ltrpathdirs="$ltrpathdirs $dir"
9216 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9219 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9222 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
9223 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
9229 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9230 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
9236 if test "X$rpathdirs" != "X"; then
9237 if test -n "$acl_hardcode_libdir_separator"; then
9239 for found_dir in $rpathdirs; do
9240 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
9242 acl_save_libdir="$libdir"
9244 eval flag=\"$acl_hardcode_libdir_flag_spec\"
9245 libdir="$acl_save_libdir"
9246 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9248 for found_dir in $rpathdirs; do
9249 acl_save_libdir="$libdir"
9251 eval flag=\"$acl_hardcode_libdir_flag_spec\"
9252 libdir="$acl_save_libdir"
9253 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9257 if test "X$ltrpathdirs" != "X"; then
9258 for found_dir in $ltrpathdirs; do
9259 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
9274 am_save_CPPFLAGS="$CPPFLAGS"
9276 for element in $INCICONV; do
9278 for x in $CPPFLAGS; do
9280 acl_save_prefix="$prefix"
9281 prefix="$acl_final_prefix"
9282 acl_save_exec_prefix="$exec_prefix"
9283 exec_prefix="$acl_final_exec_prefix"
9285 exec_prefix="$acl_save_exec_prefix"
9286 prefix="$acl_save_prefix"
9288 if test "X$x" = "X$element"; then
9293 if test -z "$haveit"; then
9294 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
9300 $as_echo_n "checking for iconv... " >&6; }
9301 if ${am_cv_func_iconv+:} false; then :
9302 $as_echo_n "(cached) " >&6
9305 am_cv_func_iconv="no, consider installing GNU libiconv"
9307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9308 /* end confdefs.h. */
9316 iconv_t cd = iconv_open("","");
9317 iconv(cd,NULL,NULL,NULL,NULL);
9323 if ac_fn_c_try_link "$LINENO"; then :
9324 am_cv_func_iconv=yes
9326 rm -f core conftest.err conftest.$ac_objext \
9327 conftest$ac_exeext conftest.$ac_ext
9328 if test "$am_cv_func_iconv" != yes; then
9329 am_save_LIBS="$LIBS"
9330 LIBS="$LIBS $LIBICONV"
9331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9332 /* end confdefs.h. */
9340 iconv_t cd = iconv_open("","");
9341 iconv(cd,NULL,NULL,NULL,NULL);
9347 if ac_fn_c_try_link "$LINENO"; then :
9349 am_cv_func_iconv=yes
9351 rm -f core conftest.err conftest.$ac_objext \
9352 conftest$ac_exeext conftest.$ac_ext
9353 LIBS="$am_save_LIBS"
9357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
9358 $as_echo "$am_cv_func_iconv" >&6; }
9359 if test "$am_cv_func_iconv" = yes; then
9360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
9361 $as_echo_n "checking for working iconv... " >&6; }
9362 if ${am_cv_func_iconv_works+:} false; then :
9363 $as_echo_n "(cached) " >&6
9366 am_save_LIBS="$LIBS"
9367 if test $am_cv_lib_iconv = yes; then
9368 LIBS="$LIBS $LIBICONV"
9370 if test "$cross_compiling" = yes; then :
9373 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
9374 *) am_cv_func_iconv_works="guessing yes" ;;
9378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9379 /* end confdefs.h. */
9386 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
9389 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
9390 if (cd_utf8_to_88591 != (iconv_t)(-1))
9392 static const char input[] = "\342\202\254"; /* EURO SIGN */
9394 const char *inptr = input;
9395 size_t inbytesleft = strlen (input);
9397 size_t outbytesleft = sizeof (buf);
9398 size_t res = iconv (cd_utf8_to_88591,
9399 (char **) &inptr, &inbytesleft,
9400 &outptr, &outbytesleft);
9403 iconv_close (cd_utf8_to_88591);
9406 /* Test against Solaris 10 bug: Failures are not distinguishable from
9407 successful returns. */
9409 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
9410 if (cd_ascii_to_88591 != (iconv_t)(-1))
9412 static const char input[] = "\263";
9414 const char *inptr = input;
9415 size_t inbytesleft = strlen (input);
9417 size_t outbytesleft = sizeof (buf);
9418 size_t res = iconv (cd_ascii_to_88591,
9419 (char **) &inptr, &inbytesleft,
9420 &outptr, &outbytesleft);
9423 iconv_close (cd_ascii_to_88591);
9426 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
9428 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
9429 if (cd_88591_to_utf8 != (iconv_t)(-1))
9431 static const char input[] = "\304";
9432 static char buf[2] = { (char)0xDE, (char)0xAD };
9433 const char *inptr = input;
9434 size_t inbytesleft = 1;
9436 size_t outbytesleft = 1;
9437 size_t res = iconv (cd_88591_to_utf8,
9438 (char **) &inptr, &inbytesleft,
9439 &outptr, &outbytesleft);
9440 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
9442 iconv_close (cd_88591_to_utf8);
9445 #if 0 /* This bug could be worked around by the caller. */
9446 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
9448 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
9449 if (cd_88591_to_utf8 != (iconv_t)(-1))
9451 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
9453 const char *inptr = input;
9454 size_t inbytesleft = strlen (input);
9456 size_t outbytesleft = sizeof (buf);
9457 size_t res = iconv (cd_88591_to_utf8,
9458 (char **) &inptr, &inbytesleft,
9459 &outptr, &outbytesleft);
9462 iconv_close (cd_88591_to_utf8);
9466 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
9468 if (/* Try standardized names. */
9469 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
9470 /* Try IRIX, OSF/1 names. */
9471 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
9472 /* Try AIX names. */
9473 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
9474 /* Try HP-UX names. */
9475 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
9480 if ac_fn_c_try_run "$LINENO"; then :
9481 am_cv_func_iconv_works=yes
9483 am_cv_func_iconv_works=no
9485 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9486 conftest.$ac_objext conftest.beam conftest.$ac_ext
9489 LIBS="$am_save_LIBS"
9492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
9493 $as_echo "$am_cv_func_iconv_works" >&6; }
9494 case "$am_cv_func_iconv_works" in
9495 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
9496 *) am_func_iconv=yes ;;
9499 am_func_iconv=no am_cv_lib_iconv=no
9501 if test "$am_func_iconv" = yes; then
9503 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
9506 if test "$am_cv_lib_iconv" = yes; then
9507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
9508 $as_echo_n "checking how to link with libiconv... " >&6; }
9509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
9510 $as_echo "$LIBICONV" >&6; }
9512 CPPFLAGS="$am_save_CPPFLAGS"
9519 if test "$am_cv_func_iconv" = yes; then
9520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
9521 $as_echo_n "checking for iconv declaration... " >&6; }
9522 if ${am_cv_proto_iconv+:} false; then :
9523 $as_echo_n "(cached) " >&6
9526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9527 /* end confdefs.h. */
9535 #if defined(__STDC__) || defined(_MSC_VER) || defined(__cplusplus)
9536 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9549 if ac_fn_c_try_compile "$LINENO"; then :
9550 am_cv_proto_iconv_arg1=""
9552 am_cv_proto_iconv_arg1="const"
9554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9555 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);"
9558 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
9559 { $as_echo "$as_me:${as_lineno-$LINENO}: result:
9560 $am_cv_proto_iconv" >&5
9562 $am_cv_proto_iconv" >&6; }
9564 cat >>confdefs.h <<_ACEOF
9565 #define ICONV_CONST $am_cv_proto_iconv_arg1
9574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9575 /* end confdefs.h. */
9576 int foo (int a) { a = __builtin_expect (a, 10); return a == 10 ? 0 : 1; }
9585 if ac_fn_c_try_link "$LINENO"; then :
9587 $as_echo "#define HAVE_BUILTIN_EXPECT 1" >>confdefs.h
9590 rm -f core conftest.err conftest.$ac_objext \
9591 conftest$ac_exeext conftest.$ac_ext
9593 for ac_header in argz.h inttypes.h limits.h unistd.h sys/param.h
9595 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9596 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9597 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9598 cat >>confdefs.h <<_ACEOF
9599 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9606 for ac_func in getcwd getegid geteuid getgid getuid mempcpy munmap \
9607 stpcpy strcasecmp strdup strtoul tsearch uselocale argz_count \
9608 argz_stringify argz_next __fsetlocking
9610 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9611 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9612 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9613 cat >>confdefs.h <<_ACEOF
9614 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9621 ac_fn_c_check_decl "$LINENO" "feof_unlocked" "ac_cv_have_decl_feof_unlocked" "#include <stdio.h>
9623 if test "x$ac_cv_have_decl_feof_unlocked" = xyes; then :
9629 cat >>confdefs.h <<_ACEOF
9630 #define HAVE_DECL_FEOF_UNLOCKED $ac_have_decl
9632 ac_fn_c_check_decl "$LINENO" "fgets_unlocked" "ac_cv_have_decl_fgets_unlocked" "#include <stdio.h>
9634 if test "x$ac_cv_have_decl_fgets_unlocked" = xyes; then :
9640 cat >>confdefs.h <<_ACEOF
9641 #define HAVE_DECL_FGETS_UNLOCKED $ac_have_decl
9647 for ac_prog in bison
9649 # Extract the first word of "$ac_prog", so it can be a program name with args.
9650 set dummy $ac_prog; ac_word=$2
9651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9652 $as_echo_n "checking for $ac_word... " >&6; }
9653 if ${ac_cv_prog_INTLBISON+:} false; then :
9654 $as_echo_n "(cached) " >&6
9656 if test -n "$INTLBISON"; then
9657 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
9659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9663 test -z "$as_dir" && as_dir=.
9664 for ac_exec_ext in '' $ac_executable_extensions; do
9665 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9666 ac_cv_prog_INTLBISON="$ac_prog"
9667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9676 INTLBISON=$ac_cv_prog_INTLBISON
9677 if test -n "$INTLBISON"; then
9678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
9679 $as_echo "$INTLBISON" >&6; }
9681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9682 $as_echo "no" >&6; }
9686 test -n "$INTLBISON" && break
9689 if test -z "$INTLBISON"; then
9692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
9693 $as_echo_n "checking version of bison... " >&6; }
9694 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
9695 case $ac_prog_version in
9696 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
9697 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
9698 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
9699 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
9701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
9702 $as_echo "$ac_prog_version" >&6; }
9704 if test $ac_verc_fail = yes; then
9710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
9711 $as_echo_n "checking for long long int... " >&6; }
9712 if ${ac_cv_type_long_long_int+:} false; then :
9713 $as_echo_n "(cached) " >&6
9715 ac_cv_type_long_long_int=yes
9716 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
9717 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
9718 if test $ac_cv_type_long_long_int = yes; then
9719 if test "$cross_compiling" = yes; then :
9722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9723 /* end confdefs.h. */
9727 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
9728 # define LLONG_MAX (HALF - 1 + HALF)
9733 long long int n = 1;
9737 long long int m = n << i;
9740 if (LLONG_MAX / 2 < m)
9748 if ac_fn_c_try_run "$LINENO"; then :
9751 ac_cv_type_long_long_int=no
9753 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9754 conftest.$ac_objext conftest.beam conftest.$ac_ext
9760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
9761 $as_echo "$ac_cv_type_long_long_int" >&6; }
9762 if test $ac_cv_type_long_long_int = yes; then
9764 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
9769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
9770 $as_echo_n "checking for wchar_t... " >&6; }
9771 if ${gt_cv_c_wchar_t+:} false; then :
9772 $as_echo_n "(cached) " >&6
9774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9775 /* end confdefs.h. */
9777 wchar_t foo = (wchar_t)'\0';
9786 if ac_fn_c_try_compile "$LINENO"; then :
9791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
9794 $as_echo "$gt_cv_c_wchar_t" >&6; }
9795 if test $gt_cv_c_wchar_t = yes; then
9797 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
9802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
9803 $as_echo_n "checking for wint_t... " >&6; }
9804 if ${gt_cv_c_wint_t+:} false; then :
9805 $as_echo_n "(cached) " >&6
9807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9808 /* end confdefs.h. */
9810 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
9812 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
9813 before <wchar.h>. */
9818 wint_t foo = (wchar_t)'\0';
9827 if ac_fn_c_try_compile "$LINENO"; then :
9832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
9835 $as_echo "$gt_cv_c_wint_t" >&6; }
9836 if test $gt_cv_c_wint_t = yes; then
9838 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
9845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
9846 $as_echo_n "checking for intmax_t... " >&6; }
9847 if ${gt_cv_c_intmax_t+:} false; then :
9848 $as_echo_n "(cached) " >&6
9850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9851 /* end confdefs.h. */
9855 #if HAVE_STDINT_H_WITH_UINTMAX
9858 #if HAVE_INTTYPES_H_WITH_UINTMAX
9859 #include <inttypes.h>
9871 if ac_fn_c_try_compile "$LINENO"; then :
9872 gt_cv_c_intmax_t=yes
9876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
9879 $as_echo "$gt_cv_c_intmax_t" >&6; }
9880 if test $gt_cv_c_intmax_t = yes; then
9882 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
9888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
9889 $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
9890 if ${gt_cv_func_printf_posix+:} false; then :
9891 $as_echo_n "(cached) " >&6
9894 if test "$cross_compiling" = yes; then :
9896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9897 /* end confdefs.h. */
9899 #if defined __NetBSD__ || defined __BEOS__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
9904 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9905 $EGREP "notposix" >/dev/null 2>&1; then :
9906 gt_cv_func_printf_posix="guessing no"
9908 gt_cv_func_printf_posix="guessing yes"
9914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9915 /* end confdefs.h. */
9919 /* The string "%2$d %1$d", with dollar characters protected from the shell's
9920 dollar expansion (possibly an autoconf bug). */
9921 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
9922 static char buf[100];
9925 sprintf (buf, format, 33, 55);
9926 return (strcmp (buf, "55 33") != 0);
9929 if ac_fn_c_try_run "$LINENO"; then :
9930 gt_cv_func_printf_posix=yes
9932 gt_cv_func_printf_posix=no
9934 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9935 conftest.$ac_objext conftest.beam conftest.$ac_ext
9940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
9941 $as_echo "$gt_cv_func_printf_posix" >&6; }
9942 case $gt_cv_func_printf_posix in
9945 $as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
9951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library >= 2.1 or uClibc" >&5
9952 $as_echo_n "checking whether we are using the GNU C Library >= 2.1 or uClibc... " >&6; }
9953 if ${ac_cv_gnu_library_2_1+:} false; then :
9954 $as_echo_n "(cached) " >&6
9956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9957 /* end confdefs.h. */
9959 #include <features.h>
9960 #ifdef __GNU_LIBRARY__
9961 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
9970 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9971 $EGREP "Lucky" >/dev/null 2>&1; then :
9972 ac_cv_gnu_library_2_1=yes
9974 ac_cv_gnu_library_2_1=no
9981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
9982 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
9984 GLIBC21="$ac_cv_gnu_library_2_1"
9988 for ac_header in stdint.h
9990 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
9991 if test "x$ac_cv_header_stdint_h" = xyes; then :
9992 cat >>confdefs.h <<_ACEOF
9993 #define HAVE_STDINT_H 1
10000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
10001 $as_echo_n "checking for SIZE_MAX... " >&6; }
10002 if ${gl_cv_size_max+:} false; then :
10003 $as_echo_n "(cached) " >&6
10007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10008 /* end confdefs.h. */
10010 #include <limits.h>
10012 #include <stdint.h>
10019 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10020 $EGREP "Found it" >/dev/null 2>&1; then :
10025 if test -z "$gl_cv_size_max"; then
10026 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1" "#include <stddef.h>
10027 #include <limits.h>"; then :
10030 size_t_bits_minus_1=
10033 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then :
10039 if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
10040 if test $fits_in_uint = 1; then
10041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10042 /* end confdefs.h. */
10043 #include <stddef.h>
10045 extern unsigned long foo;
10055 if ac_fn_c_try_compile "$LINENO"; then :
10058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10060 if test $fits_in_uint = 1; then
10061 gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
10063 gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
10066 gl_cv_size_max='((size_t)~(size_t)0)'
10071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5
10072 $as_echo "$gl_cv_size_max" >&6; }
10073 if test "$gl_cv_size_max" != yes; then
10075 cat >>confdefs.h <<_ACEOF
10076 #define SIZE_MAX $gl_cv_size_max
10084 for ac_header in stdint.h
10086 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
10087 if test "x$ac_cv_header_stdint_h" = xyes; then :
10088 cat >>confdefs.h <<_ACEOF
10089 #define HAVE_STDINT_H 1
10100 for ac_func in $ac_func_list
10102 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10103 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10104 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10105 cat >>confdefs.h <<_ACEOF
10106 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
10120 $as_echo_n "checking for working fcntl.h... " >&6; }
10121 if ${gl_cv_header_working_fcntl_h+:} false; then :
10122 $as_echo_n "(cached) " >&6
10124 if test "$cross_compiling" = yes; then :
10125 gl_cv_header_working_fcntl_h=cross-compiling
10127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10128 /* end confdefs.h. */
10129 #include <sys/types.h>
10130 #include <sys/stat.h>
10132 # include <unistd.h>
10133 #else /* on Windows with MSVC */
10135 # include <stdlib.h>
10136 # defined sleep(n) _sleep ((n) * 1000)
10140 #define O_NOATIME 0
10143 #define O_NOFOLLOW 0
10145 static int const constants[] =
10147 O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
10148 O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
10155 int result = !constants;
10158 static char const sym[] = "conftest.sym";
10159 if (symlink ("/dev/null", sym) != 0)
10163 int fd = open (sym, O_WRONLY | O_NOFOLLOW | O_CREAT, 0);
10170 if (unlink (sym) != 0 || symlink (".", sym) != 0)
10174 int fd = open (sym, O_RDONLY | O_NOFOLLOW);
10185 static char const file[] = "confdefs.h";
10186 int fd = open (file, O_RDONLY | O_NOATIME);
10192 if (fstat (fd, &st0) != 0)
10198 if (read (fd, &c, 1) != 1)
10202 if (close (fd) != 0)
10207 if (stat (file, &st1) != 0)
10210 if (st0.st_atime != st1.st_atime)
10222 if ac_fn_c_try_run "$LINENO"; then :
10223 gl_cv_header_working_fcntl_h=yes
10226 4) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
10227 64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
10228 68) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
10229 *) gl_cv_header_working_fcntl_h='no';;
10232 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10233 conftest.$ac_objext conftest.beam conftest.$ac_ext
10237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
10238 $as_echo "$gl_cv_header_working_fcntl_h" >&6; }
10240 case $gl_cv_header_working_fcntl_h in #(
10241 *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
10245 cat >>confdefs.h <<_ACEOF
10246 #define HAVE_WORKING_O_NOATIME $ac_val
10250 case $gl_cv_header_working_fcntl_h in #(
10251 *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
10255 cat >>confdefs.h <<_ACEOF
10256 #define HAVE_WORKING_O_NOFOLLOW $ac_val
10261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
10262 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
10263 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
10264 $as_echo_n "(cached) " >&6
10266 gt_save_LIBS="$LIBS"
10267 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10269 /* end confdefs.h. */
10270 #include <CoreFoundation/CFPreferences.h>
10274 CFPreferencesCopyAppValue(NULL, NULL)
10279 if ac_fn_c_try_link "$LINENO"; then :
10280 gt_cv_func_CFPreferencesCopyAppValue=yes
10282 gt_cv_func_CFPreferencesCopyAppValue=no
10284 rm -f core conftest.err conftest.$ac_objext \
10285 conftest$ac_exeext conftest.$ac_ext
10286 LIBS="$gt_save_LIBS"
10288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
10289 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
10290 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
10292 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
10295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
10296 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
10297 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
10298 $as_echo_n "(cached) " >&6
10300 gt_save_LIBS="$LIBS"
10301 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10303 /* end confdefs.h. */
10304 #include <CoreFoundation/CFLocale.h>
10308 CFLocaleCopyCurrent();
10313 if ac_fn_c_try_link "$LINENO"; then :
10314 gt_cv_func_CFLocaleCopyCurrent=yes
10316 gt_cv_func_CFLocaleCopyCurrent=no
10318 rm -f core conftest.err conftest.$ac_objext \
10319 conftest$ac_exeext conftest.$ac_ext
10320 LIBS="$gt_save_LIBS"
10322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
10323 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
10324 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10326 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
10330 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10331 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
10343 case "$enable_silent_rules" in
10344 yes) INTL_DEFAULT_VERBOSITY=0;;
10345 no) INTL_DEFAULT_VERBOSITY=1;;
10346 *) INTL_DEFAULT_VERBOSITY=1;;
10350 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
10351 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
10355 $as_echo "#define ptrdiff_t long" >>confdefs.h
10360 for ac_header in features.h stddef.h stdlib.h string.h
10362 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10363 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10364 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10365 cat >>confdefs.h <<_ACEOF
10366 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10373 for ac_func in asprintf fwprintf newlocale putenv setenv setlocale \
10374 snprintf strnlen wcslen wcsnlen mbrtowc wcrtomb
10376 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10377 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10378 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10379 cat >>confdefs.h <<_ACEOF
10380 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10387 ac_fn_c_check_decl "$LINENO" "_snprintf" "ac_cv_have_decl__snprintf" "#include <stdio.h>
10389 if test "x$ac_cv_have_decl__snprintf" = xyes; then :
10395 cat >>confdefs.h <<_ACEOF
10396 #define HAVE_DECL__SNPRINTF $ac_have_decl
10398 ac_fn_c_check_decl "$LINENO" "_snwprintf" "ac_cv_have_decl__snwprintf" "#include <stdio.h>
10400 if test "x$ac_cv_have_decl__snwprintf" = xyes; then :
10406 cat >>confdefs.h <<_ACEOF
10407 #define HAVE_DECL__SNWPRINTF $ac_have_decl
10411 ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "#include <stdio.h>
10413 if test "x$ac_cv_have_decl_getc_unlocked" = xyes; then :
10419 cat >>confdefs.h <<_ACEOF
10420 #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
10424 case $gt_cv_func_printf_posix in
10425 *yes) HAVE_POSIX_PRINTF=1 ;;
10426 *) HAVE_POSIX_PRINTF=0 ;;
10429 if test "$ac_cv_func_asprintf" = yes; then
10435 if test "$ac_cv_func_snprintf" = yes; then
10441 if test "$ac_cv_func_newlocale" = yes; then
10447 if test "$ac_cv_func_wprintf" = yes; then
10455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10456 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10457 if ${am_cv_langinfo_codeset+:} false; then :
10458 $as_echo_n "(cached) " >&6
10460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10461 /* end confdefs.h. */
10462 #include <langinfo.h>
10466 char* cs = nl_langinfo(CODESET); return !cs;
10471 if ac_fn_c_try_link "$LINENO"; then :
10472 am_cv_langinfo_codeset=yes
10474 am_cv_langinfo_codeset=no
10476 rm -f core conftest.err conftest.$ac_objext \
10477 conftest$ac_exeext conftest.$ac_ext
10480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10481 $as_echo "$am_cv_langinfo_codeset" >&6; }
10482 if test $am_cv_langinfo_codeset = yes; then
10484 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10490 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10491 if ${gt_cv_val_LC_MESSAGES+:} false; then :
10492 $as_echo_n "(cached) " >&6
10494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10495 /* end confdefs.h. */
10496 #include <locale.h>
10505 if ac_fn_c_try_link "$LINENO"; then :
10506 gt_cv_val_LC_MESSAGES=yes
10508 gt_cv_val_LC_MESSAGES=no
10510 rm -f core conftest.err conftest.$ac_objext \
10511 conftest$ac_exeext conftest.$ac_ext
10513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5
10514 $as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
10515 if test $gt_cv_val_LC_MESSAGES = yes; then
10517 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10522 if test "$enable_shared" = yes; then
10524 mingw* | cygwin*) is_woe32dll=yes ;;
10525 *) is_woe32dll=no ;;
10530 WOE32DLL=$is_woe32dll
10534 mingw* | cygwin*) is_woe32=yes ;;
10539 if test $WOE32 = yes; then
10540 if test -n "$ac_tool_prefix"; then
10541 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
10542 set dummy ${ac_tool_prefix}windres; ac_word=$2
10543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10544 $as_echo_n "checking for $ac_word... " >&6; }
10545 if ${ac_cv_prog_WINDRES+:} false; then :
10546 $as_echo_n "(cached) " >&6
10548 if test -n "$WINDRES"; then
10549 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
10551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10552 for as_dir in $PATH
10555 test -z "$as_dir" && as_dir=.
10556 for ac_exec_ext in '' $ac_executable_extensions; do
10557 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10558 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
10559 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10568 WINDRES=$ac_cv_prog_WINDRES
10569 if test -n "$WINDRES"; then
10570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
10571 $as_echo "$WINDRES" >&6; }
10573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10574 $as_echo "no" >&6; }
10579 if test -z "$ac_cv_prog_WINDRES"; then
10580 ac_ct_WINDRES=$WINDRES
10581 # Extract the first word of "windres", so it can be a program name with args.
10582 set dummy windres; ac_word=$2
10583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10584 $as_echo_n "checking for $ac_word... " >&6; }
10585 if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
10586 $as_echo_n "(cached) " >&6
10588 if test -n "$ac_ct_WINDRES"; then
10589 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
10591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10592 for as_dir in $PATH
10595 test -z "$as_dir" && as_dir=.
10596 for ac_exec_ext in '' $ac_executable_extensions; do
10597 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10598 ac_cv_prog_ac_ct_WINDRES="windres"
10599 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10608 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
10609 if test -n "$ac_ct_WINDRES"; then
10610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
10611 $as_echo "$ac_ct_WINDRES" >&6; }
10613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10614 $as_echo "no" >&6; }
10617 if test "x$ac_ct_WINDRES" = x; then
10620 case $cross_compiling:$ac_tool_warned in
10622 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10623 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10624 ac_tool_warned=yes ;;
10626 WINDRES=$ac_ct_WINDRES
10629 WINDRES="$ac_cv_prog_WINDRES"
10635 hpux*) LTLIBC="" ;;
10665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
10666 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
10667 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
10668 $as_echo_n "(cached) " >&6
10670 gt_save_LIBS="$LIBS"
10671 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10673 /* end confdefs.h. */
10674 #include <CoreFoundation/CFPreferences.h>
10678 CFPreferencesCopyAppValue(NULL, NULL)
10683 if ac_fn_c_try_link "$LINENO"; then :
10684 gt_cv_func_CFPreferencesCopyAppValue=yes
10686 gt_cv_func_CFPreferencesCopyAppValue=no
10688 rm -f core conftest.err conftest.$ac_objext \
10689 conftest$ac_exeext conftest.$ac_ext
10690 LIBS="$gt_save_LIBS"
10692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
10693 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
10694 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
10696 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
10699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
10700 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
10701 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
10702 $as_echo_n "(cached) " >&6
10704 gt_save_LIBS="$LIBS"
10705 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10707 /* end confdefs.h. */
10708 #include <CoreFoundation/CFLocale.h>
10712 CFLocaleCopyCurrent();
10717 if ac_fn_c_try_link "$LINENO"; then :
10718 gt_cv_func_CFLocaleCopyCurrent=yes
10720 gt_cv_func_CFLocaleCopyCurrent=no
10722 rm -f core conftest.err conftest.$ac_objext \
10723 conftest$ac_exeext conftest.$ac_ext
10724 LIBS="$gt_save_LIBS"
10726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
10727 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
10728 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10730 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
10734 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10735 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
10743 BUILD_INCLUDED_LIBINTL=no
10744 USE_INCLUDED_LIBINTL=no
10750 case " $gt_needs " in
10751 *" need-formatstring-macros "*) gt_api_version=3 ;;
10752 *" need-ngettext "*) gt_api_version=2 ;;
10753 *) gt_api_version=1 ;;
10755 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
10756 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
10758 if test "$USE_NLS" = "yes"; then
10759 gt_use_preinstalled_gnugettext=no
10761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
10762 $as_echo_n "checking whether included gettext is requested... " >&6; }
10764 # Check whether --with-included-gettext was given.
10765 if test "${with_included_gettext+set}" = set; then :
10766 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
10768 nls_cv_force_use_gnu_gettext=no
10771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
10772 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
10774 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
10775 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
10778 if test $gt_api_version -ge 3; then
10779 gt_revision_test_code='
10780 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
10781 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
10783 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
10786 gt_revision_test_code=
10788 if test $gt_api_version -ge 2; then
10789 gt_expression_test_code=' + * ngettext ("", "", 0)'
10791 gt_expression_test_code=
10794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
10795 $as_echo_n "checking for GNU gettext in libc... " >&6; }
10796 if eval \${$gt_func_gnugettext_libc+:} false; then :
10797 $as_echo_n "(cached) " >&6
10799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10800 /* end confdefs.h. */
10802 #include <libintl.h>
10803 $gt_revision_test_code
10804 extern int _nl_msg_cat_cntr;
10805 extern int *_nl_domain_bindings;
10811 bindtextdomain ("", "");
10812 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
10818 if ac_fn_c_try_link "$LINENO"; then :
10819 eval "$gt_func_gnugettext_libc=yes"
10821 eval "$gt_func_gnugettext_libc=no"
10823 rm -f core conftest.err conftest.$ac_objext \
10824 conftest$ac_exeext conftest.$ac_ext
10826 eval ac_res=\$$gt_func_gnugettext_libc
10827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10828 $as_echo "$ac_res" >&6; }
10830 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
10841 acl_save_prefix="$prefix"
10842 prefix="$acl_final_prefix"
10843 acl_save_exec_prefix="$exec_prefix"
10844 exec_prefix="$acl_final_exec_prefix"
10846 eval additional_includedir=\"$includedir\"
10847 eval additional_libdir=\"$libdir\"
10849 exec_prefix="$acl_save_exec_prefix"
10850 prefix="$acl_save_prefix"
10853 # Check whether --with-libintl-prefix was given.
10854 if test "${with_libintl_prefix+set}" = set; then :
10855 withval=$with_libintl_prefix;
10856 if test "X$withval" = "Xno"; then
10859 if test "X$withval" = "X"; then
10861 acl_save_prefix="$prefix"
10862 prefix="$acl_final_prefix"
10863 acl_save_exec_prefix="$exec_prefix"
10864 exec_prefix="$acl_final_exec_prefix"
10866 eval additional_includedir=\"$includedir\"
10867 eval additional_libdir=\"$libdir\"
10869 exec_prefix="$acl_save_exec_prefix"
10870 prefix="$acl_save_prefix"
10873 additional_includedir="$withval/include"
10874 additional_libdir="$withval/$acl_libdirstem"
10875 if test "$acl_libdirstem2" != "$acl_libdirstem" \
10876 && ! test -d "$withval/$acl_libdirstem"; then
10877 additional_libdir="$withval/$acl_libdirstem2"
10891 names_already_handled=
10892 names_next_round='intl '
10893 while test -n "$names_next_round"; do
10894 names_this_round="$names_next_round"
10896 for name in $names_this_round; do
10898 for n in $names_already_handled; do
10899 if test "$n" = "$name"; then
10900 already_handled=yes
10904 if test -z "$already_handled"; then
10905 names_already_handled="$names_already_handled $name"
10906 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
10907 eval value=\"\$HAVE_LIB$uppername\"
10908 if test -n "$value"; then
10909 if test "$value" = yes; then
10910 eval value=\"\$LIB$uppername\"
10911 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
10912 eval value=\"\$LTLIB$uppername\"
10913 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
10922 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
10923 if test -n "$acl_shlibext"; then
10924 shrext=".$acl_shlibext" # typically: shrext=.so
10928 if test $use_additional = yes; then
10929 dir="$additional_libdir"
10930 if test -n "$acl_shlibext"; then
10931 if test -f "$dir/$libname$shrext"; then
10933 found_so="$dir/$libname$shrext"
10935 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
10936 ver=`(cd "$dir" && \
10937 for f in "$libname$shrext".*; do echo "$f"; done \
10938 | sed -e "s,^$libname$shrext\\\\.,," \
10939 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
10940 | sed 1q ) 2>/dev/null`
10941 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
10943 found_so="$dir/$libname$shrext.$ver"
10946 eval library_names=\"$acl_library_names_spec\"
10947 for f in $library_names; do
10948 if test -f "$dir/$f"; then
10957 if test "X$found_dir" = "X"; then
10958 if test -f "$dir/$libname.$acl_libext"; then
10960 found_a="$dir/$libname.$acl_libext"
10963 if test "X$found_dir" != "X"; then
10964 if test -f "$dir/$libname.la"; then
10965 found_la="$dir/$libname.la"
10969 if test "X$found_dir" = "X"; then
10970 for x in $LDFLAGS $LTLIBINTL; do
10972 acl_save_prefix="$prefix"
10973 prefix="$acl_final_prefix"
10974 acl_save_exec_prefix="$exec_prefix"
10975 exec_prefix="$acl_final_exec_prefix"
10977 exec_prefix="$acl_save_exec_prefix"
10978 prefix="$acl_save_prefix"
10982 dir=`echo "X$x" | sed -e 's/^X-L//'`
10983 if test -n "$acl_shlibext"; then
10984 if test -f "$dir/$libname$shrext"; then
10986 found_so="$dir/$libname$shrext"
10988 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
10989 ver=`(cd "$dir" && \
10990 for f in "$libname$shrext".*; do echo "$f"; done \
10991 | sed -e "s,^$libname$shrext\\\\.,," \
10992 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
10993 | sed 1q ) 2>/dev/null`
10994 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
10996 found_so="$dir/$libname$shrext.$ver"
10999 eval library_names=\"$acl_library_names_spec\"
11000 for f in $library_names; do
11001 if test -f "$dir/$f"; then
11010 if test "X$found_dir" = "X"; then
11011 if test -f "$dir/$libname.$acl_libext"; then
11013 found_a="$dir/$libname.$acl_libext"
11016 if test "X$found_dir" != "X"; then
11017 if test -f "$dir/$libname.la"; then
11018 found_la="$dir/$libname.la"
11023 if test "X$found_dir" != "X"; then
11028 if test "X$found_dir" != "X"; then
11029 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
11030 if test "X$found_so" != "X"; then
11031 if test "$enable_rpath" = no \
11032 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
11033 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
11034 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11037 for x in $ltrpathdirs; do
11038 if test "X$x" = "X$found_dir"; then
11043 if test -z "$haveit"; then
11044 ltrpathdirs="$ltrpathdirs $found_dir"
11046 if test "$acl_hardcode_direct" = yes; then
11047 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11049 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
11050 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11052 for x in $rpathdirs; do
11053 if test "X$x" = "X$found_dir"; then
11058 if test -z "$haveit"; then
11059 rpathdirs="$rpathdirs $found_dir"
11063 for x in $LDFLAGS $LIBINTL; do
11065 acl_save_prefix="$prefix"
11066 prefix="$acl_final_prefix"
11067 acl_save_exec_prefix="$exec_prefix"
11068 exec_prefix="$acl_final_exec_prefix"
11070 exec_prefix="$acl_save_exec_prefix"
11071 prefix="$acl_save_prefix"
11073 if test "X$x" = "X-L$found_dir"; then
11078 if test -z "$haveit"; then
11079 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
11081 if test "$acl_hardcode_minus_L" != no; then
11082 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11084 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
11090 if test "X$found_a" != "X"; then
11091 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
11093 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
11096 additional_includedir=
11097 case "$found_dir" in
11098 */$acl_libdirstem | */$acl_libdirstem/)
11099 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
11100 if test "$name" = 'intl'; then
11101 LIBINTL_PREFIX="$basedir"
11103 additional_includedir="$basedir/include"
11105 */$acl_libdirstem2 | */$acl_libdirstem2/)
11106 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
11107 if test "$name" = 'intl'; then
11108 LIBINTL_PREFIX="$basedir"
11110 additional_includedir="$basedir/include"
11113 if test "X$additional_includedir" != "X"; then
11114 if test "X$additional_includedir" != "X/usr/include"; then
11116 if test "X$additional_includedir" = "X/usr/local/include"; then
11117 if test -n "$GCC"; then
11119 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
11123 if test -z "$haveit"; then
11124 for x in $CPPFLAGS $INCINTL; do
11126 acl_save_prefix="$prefix"
11127 prefix="$acl_final_prefix"
11128 acl_save_exec_prefix="$exec_prefix"
11129 exec_prefix="$acl_final_exec_prefix"
11131 exec_prefix="$acl_save_exec_prefix"
11132 prefix="$acl_save_prefix"
11134 if test "X$x" = "X-I$additional_includedir"; then
11139 if test -z "$haveit"; then
11140 if test -d "$additional_includedir"; then
11141 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
11147 if test -n "$found_la"; then
11148 save_libdir="$libdir"
11149 case "$found_la" in
11150 */* | *\\*) . "$found_la" ;;
11151 *) . "./$found_la" ;;
11153 libdir="$save_libdir"
11154 for dep in $dependency_libs; do
11157 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
11158 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
11159 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
11161 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
11162 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
11163 if test -n "$GCC"; then
11165 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
11169 if test -z "$haveit"; then
11171 for x in $LDFLAGS $LIBINTL; do
11173 acl_save_prefix="$prefix"
11174 prefix="$acl_final_prefix"
11175 acl_save_exec_prefix="$exec_prefix"
11176 exec_prefix="$acl_final_exec_prefix"
11178 exec_prefix="$acl_save_exec_prefix"
11179 prefix="$acl_save_prefix"
11181 if test "X$x" = "X-L$additional_libdir"; then
11186 if test -z "$haveit"; then
11187 if test -d "$additional_libdir"; then
11188 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
11192 for x in $LDFLAGS $LTLIBINTL; do
11194 acl_save_prefix="$prefix"
11195 prefix="$acl_final_prefix"
11196 acl_save_exec_prefix="$exec_prefix"
11197 exec_prefix="$acl_final_exec_prefix"
11199 exec_prefix="$acl_save_exec_prefix"
11200 prefix="$acl_save_prefix"
11202 if test "X$x" = "X-L$additional_libdir"; then
11207 if test -z "$haveit"; then
11208 if test -d "$additional_libdir"; then
11209 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
11216 dir=`echo "X$dep" | sed -e 's/^X-R//'`
11217 if test "$enable_rpath" != no; then
11219 for x in $rpathdirs; do
11220 if test "X$x" = "X$dir"; then
11225 if test -z "$haveit"; then
11226 rpathdirs="$rpathdirs $dir"
11229 for x in $ltrpathdirs; do
11230 if test "X$x" = "X$dir"; then
11235 if test -z "$haveit"; then
11236 ltrpathdirs="$ltrpathdirs $dir"
11241 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11244 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11247 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
11248 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
11254 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
11255 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
11261 if test "X$rpathdirs" != "X"; then
11262 if test -n "$acl_hardcode_libdir_separator"; then
11264 for found_dir in $rpathdirs; do
11265 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
11267 acl_save_libdir="$libdir"
11269 eval flag=\"$acl_hardcode_libdir_flag_spec\"
11270 libdir="$acl_save_libdir"
11271 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
11273 for found_dir in $rpathdirs; do
11274 acl_save_libdir="$libdir"
11275 libdir="$found_dir"
11276 eval flag=\"$acl_hardcode_libdir_flag_spec\"
11277 libdir="$acl_save_libdir"
11278 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
11282 if test "X$ltrpathdirs" != "X"; then
11283 for found_dir in $ltrpathdirs; do
11284 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
11293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
11294 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
11295 if eval \${$gt_func_gnugettext_libintl+:} false; then :
11296 $as_echo_n "(cached) " >&6
11298 gt_save_CPPFLAGS="$CPPFLAGS"
11299 CPPFLAGS="$CPPFLAGS $INCINTL"
11300 gt_save_LIBS="$LIBS"
11301 LIBS="$LIBS $LIBINTL"
11302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11303 /* end confdefs.h. */
11305 #include <libintl.h>
11306 $gt_revision_test_code
11307 extern int _nl_msg_cat_cntr;
11312 const char *_nl_expand_alias (const char *);
11318 bindtextdomain ("", "");
11319 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
11325 if ac_fn_c_try_link "$LINENO"; then :
11326 eval "$gt_func_gnugettext_libintl=yes"
11328 eval "$gt_func_gnugettext_libintl=no"
11330 rm -f core conftest.err conftest.$ac_objext \
11331 conftest$ac_exeext conftest.$ac_ext
11332 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
11333 LIBS="$LIBS $LIBICONV"
11334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11335 /* end confdefs.h. */
11337 #include <libintl.h>
11338 $gt_revision_test_code
11339 extern int _nl_msg_cat_cntr;
11344 const char *_nl_expand_alias (const char *);
11350 bindtextdomain ("", "");
11351 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
11357 if ac_fn_c_try_link "$LINENO"; then :
11358 LIBINTL="$LIBINTL $LIBICONV"
11359 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
11360 eval "$gt_func_gnugettext_libintl=yes"
11363 rm -f core conftest.err conftest.$ac_objext \
11364 conftest$ac_exeext conftest.$ac_ext
11366 CPPFLAGS="$gt_save_CPPFLAGS"
11367 LIBS="$gt_save_LIBS"
11369 eval ac_res=\$$gt_func_gnugettext_libintl
11370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11371 $as_echo "$ac_res" >&6; }
11374 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
11375 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
11376 && test "$PACKAGE" != gettext-runtime \
11377 && test "$PACKAGE" != gettext-tools; }; then
11378 gt_use_preinstalled_gnugettext=yes
11386 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
11387 nls_cv_use_gnu_gettext=yes
11391 if test "$nls_cv_use_gnu_gettext" = "yes"; then
11392 BUILD_INCLUDED_LIBINTL=yes
11393 USE_INCLUDED_LIBINTL=yes
11394 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV $LIBTHREAD"
11395 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV $LTLIBTHREAD"
11396 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
11400 if test "$gt_use_preinstalled_gnugettext" = "yes" \
11401 || test "$nls_cv_use_gnu_gettext" = "yes"; then
11406 if test -n "$INTL_MACOSX_LIBS"; then
11407 if test "$gt_use_preinstalled_gnugettext" = "yes" \
11408 || test "$nls_cv_use_gnu_gettext" = "yes"; then
11409 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
11410 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
11414 if test "$gt_use_preinstalled_gnugettext" = "yes" \
11415 || test "$nls_cv_use_gnu_gettext" = "yes"; then
11417 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
11425 $as_echo_n "checking whether to use NLS... " >&6; }
11426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
11427 $as_echo "$USE_NLS" >&6; }
11428 if test "$USE_NLS" = "yes"; then
11429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
11430 $as_echo_n "checking where the gettext function comes from... " >&6; }
11431 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
11432 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
11433 gt_source="external libintl"
11438 gt_source="included intl directory"
11440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
11441 $as_echo "$gt_source" >&6; }
11444 if test "$USE_NLS" = "yes"; then
11446 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
11447 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
11448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
11449 $as_echo_n "checking how to link with libintl... " >&6; }
11450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
11451 $as_echo "$LIBINTL" >&6; }
11453 for element in $INCINTL; do
11455 for x in $CPPFLAGS; do
11457 acl_save_prefix="$prefix"
11458 prefix="$acl_final_prefix"
11459 acl_save_exec_prefix="$exec_prefix"
11460 exec_prefix="$acl_final_exec_prefix"
11462 exec_prefix="$acl_save_exec_prefix"
11463 prefix="$acl_save_prefix"
11465 if test "X$x" = "X$element"; then
11470 if test -z "$haveit"; then
11471 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11478 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
11481 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
11489 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
11490 BUILD_INCLUDED_LIBINTL=yes
11497 nls_cv_header_intl=
11498 nls_cv_header_libgt=
11510 if test "$USE_INCLUDED_LIBINTL" = yes; then
11511 INTLOBJS="\$(GETTOBJS)"
11515 INTL_LIBTOOL_SUFFIX_PREFIX=
11519 INTLLIBS="$LIBINTL"
11527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
11528 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
11530 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
11531 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
11532 $as_echo_n "(cached) " >&6
11534 cat >conftest.make <<\_ACEOF
11537 @echo '@@@%%%=$(MAKE)=@@@%%%'
11539 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
11540 case `${MAKE-make} -f conftest.make 2>/dev/null` in
11541 *@@@%%%=?*=@@@%%%*)
11542 eval ac_cv_prog_make_${ac_make}_set=yes;;
11544 eval ac_cv_prog_make_${ac_make}_set=no;;
11546 rm -f conftest.make
11548 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
11549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11550 $as_echo "yes" >&6; }
11553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11554 $as_echo "no" >&6; }
11555 SET_MAKE="MAKE=${MAKE-make}"
11558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5
11559 $as_echo_n "checking for GNU make... " >&6; }
11560 if ${_cv_gnu_make_command+:} false; then :
11561 $as_echo_n "(cached) " >&6
11563 _cv_gnu_make_command='' ;
11564 if test -n "$FORCE_NATIVE_MAKE" ; then
11567 MAKES="make gmake gnumake"
11569 for a in "$MAKE" $MAKES ; do
11570 if test -z "$a" ; then continue ; fi ;
11571 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
11572 _cv_gnu_make_command=$a ;
11578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_cv_gnu_make_command" >&5
11579 $as_echo "$_cv_gnu_make_command" >&6; } ;
11580 if test "x$_cv_gnu_make_command" != "x" ; then
11586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"Not found\"" >&5
11587 $as_echo "\"Not found\"" >&6; };
11592 # Extract the first word of "ln", so it can be a program name with args.
11593 set dummy ln; ac_word=$2
11594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11595 $as_echo_n "checking for $ac_word... " >&6; }
11596 if ${ac_cv_path_LN+:} false; then :
11597 $as_echo_n "(cached) " >&6
11601 ac_cv_path_LN="$LN" # Let the user override the test with a path.
11604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11605 for as_dir in $PATH
11608 test -z "$as_dir" && as_dir=.
11609 for ac_exec_ext in '' $ac_executable_extensions; do
11610 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11611 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
11612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11619 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
11624 if test -n "$LN"; then
11625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
11626 $as_echo "$LN" >&6; }
11628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11629 $as_echo "no" >&6; }
11633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
11634 $as_echo_n "checking whether ln -s works... " >&6; }
11636 if test "$LN_S" = "ln -s"; then
11637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11638 $as_echo "yes" >&6; }
11640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
11641 $as_echo "no, using $LN_S" >&6; }
11644 # Extract the first word of "mv", so it can be a program name with args.
11645 set dummy mv; ac_word=$2
11646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11647 $as_echo_n "checking for $ac_word... " >&6; }
11648 if ${ac_cv_path_MV+:} false; then :
11649 $as_echo_n "(cached) " >&6
11653 ac_cv_path_MV="$MV" # Let the user override the test with a path.
11656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11657 for as_dir in $PATH
11660 test -z "$as_dir" && as_dir=.
11661 for ac_exec_ext in '' $ac_executable_extensions; do
11662 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11663 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
11664 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11671 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
11676 if test -n "$MV"; then
11677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
11678 $as_echo "$MV" >&6; }
11680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11681 $as_echo "no" >&6; }
11685 # Extract the first word of "cp", so it can be a program name with args.
11686 set dummy cp; ac_word=$2
11687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11688 $as_echo_n "checking for $ac_word... " >&6; }
11689 if ${ac_cv_path_CP+:} false; then :
11690 $as_echo_n "(cached) " >&6
11694 ac_cv_path_CP="$CP" # Let the user override the test with a path.
11697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11698 for as_dir in $PATH
11701 test -z "$as_dir" && as_dir=.
11702 for ac_exec_ext in '' $ac_executable_extensions; do
11703 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11704 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
11705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11712 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
11717 if test -n "$CP"; then
11718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
11719 $as_echo "$CP" >&6; }
11721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11722 $as_echo "no" >&6; }
11726 # Extract the first word of "rm", so it can be a program name with args.
11727 set dummy rm; ac_word=$2
11728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11729 $as_echo_n "checking for $ac_word... " >&6; }
11730 if ${ac_cv_path_RM+:} false; then :
11731 $as_echo_n "(cached) " >&6
11735 ac_cv_path_RM="$RM" # Let the user override the test with a path.
11738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11739 for as_dir in $PATH
11742 test -z "$as_dir" && as_dir=.
11743 for ac_exec_ext in '' $ac_executable_extensions; do
11744 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11745 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
11746 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11753 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
11758 if test -n "$RM"; then
11759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
11760 $as_echo "$RM" >&6; }
11762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11763 $as_echo "no" >&6; }
11767 # Extract the first word of "chmod", so it can be a program name with args.
11768 set dummy chmod; ac_word=$2
11769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11770 $as_echo_n "checking for $ac_word... " >&6; }
11771 if ${ac_cv_path_CHMOD+:} false; then :
11772 $as_echo_n "(cached) " >&6
11776 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
11779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11780 for as_dir in $PATH
11783 test -z "$as_dir" && as_dir=.
11784 for ac_exec_ext in '' $ac_executable_extensions; do
11785 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11786 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
11787 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11794 test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
11798 CHMOD=$ac_cv_path_CHMOD
11799 if test -n "$CHMOD"; then
11800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
11801 $as_echo "$CHMOD" >&6; }
11803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11804 $as_echo "no" >&6; }
11808 for ac_prog in gawk mawk nawk awk
11810 # Extract the first word of "$ac_prog", so it can be a program name with args.
11811 set dummy $ac_prog; ac_word=$2
11812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11813 $as_echo_n "checking for $ac_word... " >&6; }
11814 if ${ac_cv_prog_AWK+:} false; then :
11815 $as_echo_n "(cached) " >&6
11817 if test -n "$AWK"; then
11818 ac_cv_prog_AWK="$AWK" # Let the user override the test.
11820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11821 for as_dir in $PATH
11824 test -z "$as_dir" && as_dir=.
11825 for ac_exec_ext in '' $ac_executable_extensions; do
11826 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11827 ac_cv_prog_AWK="$ac_prog"
11828 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11837 AWK=$ac_cv_prog_AWK
11838 if test -n "$AWK"; then
11839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
11840 $as_echo "$AWK" >&6; }
11842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11843 $as_echo "no" >&6; }
11847 test -n "$AWK" && break
11850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
11851 $as_echo_n "checking for egrep... " >&6; }
11852 if ${ac_cv_path_EGREP+:} false; then :
11853 $as_echo_n "(cached) " >&6
11855 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
11856 then ac_cv_path_EGREP="$GREP -E"
11858 if test -z "$EGREP"; then
11859 ac_path_EGREP_found=false
11860 # Loop through the user's path and test for each of PROGNAME-LIST
11861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11862 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11865 test -z "$as_dir" && as_dir=.
11866 for ac_prog in egrep; do
11867 for ac_exec_ext in '' $ac_executable_extensions; do
11868 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
11869 as_fn_executable_p "$ac_path_EGREP" || continue
11870 # Check for GNU ac_path_EGREP and select it if it is found.
11871 # Check for GNU $ac_path_EGREP
11872 case `"$ac_path_EGREP" --version 2>&1` in
11874 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
11877 $as_echo_n 0123456789 >"conftest.in"
11880 cat "conftest.in" "conftest.in" >"conftest.tmp"
11881 mv "conftest.tmp" "conftest.in"
11882 cp "conftest.in" "conftest.nl"
11883 $as_echo 'EGREP' >> "conftest.nl"
11884 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11885 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11886 as_fn_arith $ac_count + 1 && ac_count=$as_val
11887 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
11888 # Best one so far, save it but keep looking for a better one
11889 ac_cv_path_EGREP="$ac_path_EGREP"
11890 ac_path_EGREP_max=$ac_count
11892 # 10*(2^10) chars as input seems more than enough
11893 test $ac_count -gt 10 && break
11895 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11898 $ac_path_EGREP_found && break 3
11903 if test -z "$ac_cv_path_EGREP"; then
11904 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11907 ac_cv_path_EGREP=$EGREP
11912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
11913 $as_echo "$ac_cv_path_EGREP" >&6; }
11914 EGREP="$ac_cv_path_EGREP"
11917 # Extract the first word of "sed", so it can be a program name with args.
11918 set dummy sed; ac_word=$2
11919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11920 $as_echo_n "checking for $ac_word... " >&6; }
11921 if ${ac_cv_path_SED+:} false; then :
11922 $as_echo_n "(cached) " >&6
11926 ac_cv_path_SED="$SED" # Let the user override the test with a path.
11929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11930 for as_dir in $PATH
11933 test -z "$as_dir" && as_dir=.
11934 for ac_exec_ext in '' $ac_executable_extensions; do
11935 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11936 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
11937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11944 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
11948 SED=$ac_cv_path_SED
11949 if test -n "$SED"; then
11950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
11951 $as_echo "$SED" >&6; }
11953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11954 $as_echo "no" >&6; }
11958 # Extract the first word of "perl", so it can be a program name with args.
11959 set dummy perl; ac_word=$2
11960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11961 $as_echo_n "checking for $ac_word... " >&6; }
11962 if ${ac_cv_path_PERL+:} false; then :
11963 $as_echo_n "(cached) " >&6
11967 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
11970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11971 for as_dir in $PATH
11974 test -z "$as_dir" && as_dir=.
11975 for ac_exec_ext in '' $ac_executable_extensions; do
11976 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11977 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
11978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11985 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
11989 PERL=$ac_cv_path_PERL
11990 if test -n "$PERL"; then
11991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
11992 $as_echo "$PERL" >&6; }
11994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11995 $as_echo "no" >&6; }
11999 # Extract the first word of "ldconfig", so it can be a program name with args.
12000 set dummy ldconfig; ac_word=$2
12001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12002 $as_echo_n "checking for $ac_word... " >&6; }
12003 if ${ac_cv_path_LDCONFIG+:} false; then :
12004 $as_echo_n "(cached) " >&6
12008 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
12011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12012 for as_dir in $PATH
12015 test -z "$as_dir" && as_dir=.
12016 for ac_exec_ext in '' $ac_executable_extensions; do
12017 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12018 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
12019 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12026 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
12030 LDCONFIG=$ac_cv_path_LDCONFIG
12031 if test -n "$LDCONFIG"; then
12032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
12033 $as_echo "$LDCONFIG" >&6; }
12035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12036 $as_echo "no" >&6; }
12040 if test -n "$ac_tool_prefix"; then
12041 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
12042 set dummy ${ac_tool_prefix}ar; ac_word=$2
12043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12044 $as_echo_n "checking for $ac_word... " >&6; }
12045 if ${ac_cv_prog_AR+:} false; then :
12046 $as_echo_n "(cached) " >&6
12048 if test -n "$AR"; then
12049 ac_cv_prog_AR="$AR" # Let the user override the test.
12051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12052 for as_dir in $PATH
12055 test -z "$as_dir" && as_dir=.
12056 for ac_exec_ext in '' $ac_executable_extensions; do
12057 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12058 ac_cv_prog_AR="${ac_tool_prefix}ar"
12059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12069 if test -n "$AR"; then
12070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12071 $as_echo "$AR" >&6; }
12073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12074 $as_echo "no" >&6; }
12079 if test -z "$ac_cv_prog_AR"; then
12081 # Extract the first word of "ar", so it can be a program name with args.
12082 set dummy ar; ac_word=$2
12083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12084 $as_echo_n "checking for $ac_word... " >&6; }
12085 if ${ac_cv_prog_ac_ct_AR+:} false; then :
12086 $as_echo_n "(cached) " >&6
12088 if test -n "$ac_ct_AR"; then
12089 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12092 for as_dir in $PATH
12095 test -z "$as_dir" && as_dir=.
12096 for ac_exec_ext in '' $ac_executable_extensions; do
12097 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12098 ac_cv_prog_ac_ct_AR="ar"
12099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12108 ac_ct_AR=$ac_cv_prog_ac_ct_AR
12109 if test -n "$ac_ct_AR"; then
12110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
12111 $as_echo "$ac_ct_AR" >&6; }
12113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12114 $as_echo "no" >&6; }
12117 if test "x$ac_ct_AR" = x; then
12120 case $cross_compiling:$ac_tool_warned in
12122 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12123 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12124 ac_tool_warned=yes ;;
12129 AR="$ac_cv_prog_AR"
12132 if test -n "$ac_tool_prefix"; then
12133 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12134 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12136 $as_echo_n "checking for $ac_word... " >&6; }
12137 if ${ac_cv_prog_RANLIB+:} false; then :
12138 $as_echo_n "(cached) " >&6
12140 if test -n "$RANLIB"; then
12141 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12144 for as_dir in $PATH
12147 test -z "$as_dir" && as_dir=.
12148 for ac_exec_ext in '' $ac_executable_extensions; do
12149 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12150 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12151 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12160 RANLIB=$ac_cv_prog_RANLIB
12161 if test -n "$RANLIB"; then
12162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12163 $as_echo "$RANLIB" >&6; }
12165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12166 $as_echo "no" >&6; }
12171 if test -z "$ac_cv_prog_RANLIB"; then
12172 ac_ct_RANLIB=$RANLIB
12173 # Extract the first word of "ranlib", so it can be a program name with args.
12174 set dummy ranlib; ac_word=$2
12175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12176 $as_echo_n "checking for $ac_word... " >&6; }
12177 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
12178 $as_echo_n "(cached) " >&6
12180 if test -n "$ac_ct_RANLIB"; then
12181 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12184 for as_dir in $PATH
12187 test -z "$as_dir" && as_dir=.
12188 for ac_exec_ext in '' $ac_executable_extensions; do
12189 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12190 ac_cv_prog_ac_ct_RANLIB="ranlib"
12191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12200 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12201 if test -n "$ac_ct_RANLIB"; then
12202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12203 $as_echo "$ac_ct_RANLIB" >&6; }
12205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12206 $as_echo "no" >&6; }
12209 if test "x$ac_ct_RANLIB" = x; then
12212 case $cross_compiling:$ac_tool_warned in
12214 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12215 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12216 ac_tool_warned=yes ;;
12218 RANLIB=$ac_ct_RANLIB
12221 RANLIB="$ac_cv_prog_RANLIB"
12224 if test -n "$ac_tool_prefix"; then
12225 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12226 set dummy ${ac_tool_prefix}strip; ac_word=$2
12227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12228 $as_echo_n "checking for $ac_word... " >&6; }
12229 if ${ac_cv_prog_STRIP+:} false; then :
12230 $as_echo_n "(cached) " >&6
12232 if test -n "$STRIP"; then
12233 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12236 for as_dir in $PATH
12239 test -z "$as_dir" && as_dir=.
12240 for ac_exec_ext in '' $ac_executable_extensions; do
12241 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12242 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12243 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12252 STRIP=$ac_cv_prog_STRIP
12253 if test -n "$STRIP"; then
12254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12255 $as_echo "$STRIP" >&6; }
12257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12258 $as_echo "no" >&6; }
12263 if test -z "$ac_cv_prog_STRIP"; then
12265 # Extract the first word of "strip", so it can be a program name with args.
12266 set dummy strip; ac_word=$2
12267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12268 $as_echo_n "checking for $ac_word... " >&6; }
12269 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
12270 $as_echo_n "(cached) " >&6
12272 if test -n "$ac_ct_STRIP"; then
12273 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12276 for as_dir in $PATH
12279 test -z "$as_dir" && as_dir=.
12280 for ac_exec_ext in '' $ac_executable_extensions; do
12281 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12282 ac_cv_prog_ac_ct_STRIP="strip"
12283 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12292 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12293 if test -n "$ac_ct_STRIP"; then
12294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
12295 $as_echo "$ac_ct_STRIP" >&6; }
12297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12298 $as_echo "no" >&6; }
12301 if test "x$ac_ct_STRIP" = x; then
12304 case $cross_compiling:$ac_tool_warned in
12306 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12307 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12308 ac_tool_warned=yes ;;
12313 STRIP="$ac_cv_prog_STRIP"
12316 # Extract the first word of "makeinfo", so it can be a program name with args.
12317 set dummy makeinfo; ac_word=$2
12318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12319 $as_echo_n "checking for $ac_word... " >&6; }
12320 if ${ac_cv_prog_MAKEINFO+:} false; then :
12321 $as_echo_n "(cached) " >&6
12323 if test -n "$MAKEINFO"; then
12324 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
12326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12327 for as_dir in $PATH
12330 test -z "$as_dir" && as_dir=.
12331 for ac_exec_ext in '' $ac_executable_extensions; do
12332 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12333 ac_cv_prog_MAKEINFO="makeinfo"
12334 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12343 MAKEINFO=$ac_cv_prog_MAKEINFO
12344 if test -n "$MAKEINFO"; then
12345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
12346 $as_echo "$MAKEINFO" >&6; }
12348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12349 $as_echo "no" >&6; }
12353 if test "_$MAKEINFO" = "_"; then
12354 MAKEINFO="echo Makeinfo is missing. Info documentation will not be built."
12356 case "$MAKEINFO" in
12358 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
12359 *** Makeinfo is missing. Info documentation will not be built." >&5
12360 $as_echo "$as_me: WARNING:
12361 *** Makeinfo is missing. Info documentation will not be built." >&2;}
12369 # See if we need a separate native compiler.
12370 if test $cross_compiling = no; then
12374 for ac_prog in gcc cc
12376 # Extract the first word of "$ac_prog", so it can be a program name with args.
12377 set dummy $ac_prog; ac_word=$2
12378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12379 $as_echo_n "checking for $ac_word... " >&6; }
12380 if ${ac_cv_prog_BUILD_CC+:} false; then :
12381 $as_echo_n "(cached) " >&6
12383 if test -n "$BUILD_CC"; then
12384 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
12386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12387 for as_dir in $PATH
12390 test -z "$as_dir" && as_dir=.
12391 for ac_exec_ext in '' $ac_executable_extensions; do
12392 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12393 ac_cv_prog_BUILD_CC="$ac_prog"
12394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12403 BUILD_CC=$ac_cv_prog_BUILD_CC
12404 if test -n "$BUILD_CC"; then
12405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
12406 $as_echo "$BUILD_CC" >&6; }
12408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12409 $as_echo "no" >&6; }
12413 test -n "$BUILD_CC" && break
12417 for ac_header in dirent.h errno.h execinfo.h getopt.h malloc.h mntent.h paths.h semaphore.h setjmp.h signal.h stdarg.h stdint.h stdlib.h termios.h termio.h unistd.h utime.h attr/xattr.h linux/falloc.h linux/fd.h linux/fsmap.h linux/major.h linux/loop.h linux/types.h net/if_dl.h netinet/in.h sys/acl.h sys/disklabel.h sys/disk.h sys/file.h sys/ioctl.h sys/key.h sys/mkdev.h sys/mman.h sys/mount.h sys/prctl.h sys/resource.h sys/select.h sys/socket.h sys/sockio.h sys/stat.h sys/syscall.h sys/sysctl.h sys/sysmacros.h sys/time.h sys/types.h sys/un.h sys/wait.h sys/xattr.h
12419 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12420 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12421 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12422 cat >>confdefs.h <<_ACEOF
12423 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a dd(1) program that supports iflag=fullblock" >&5
12431 $as_echo_n "checking for a dd(1) program that supports iflag=fullblock... " >&6; }
12433 for i in dd gdd ; do
12434 if "$i" if=/dev/null of=/dev/null count=1 bs=10k 2>/dev/null iflag=fullblock oflag=append ; then
12439 if test -n "$DD" ; then
12440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DD" >&5
12441 $as_echo "$DD" >&6; }
12443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found, using dd" >&5
12444 $as_echo "not found, using dd" >&6; }
12446 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No GNU-compatible dd(1) program found, expect some self-test failures." >&5
12447 $as_echo "$as_me: WARNING: No GNU-compatible dd(1) program found, expect some self-test failures." >&2;}
12451 for ac_header in net/if.h
12453 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
12454 #if HAVE_SYS_TYPES_H
12455 #include <sys/types.h>
12457 #if HAVE_SYS_SOCKET
12458 #include <sys/socket.h>
12462 if test "x$ac_cv_header_net_if_h" = xyes; then :
12463 cat >>confdefs.h <<_ACEOF
12464 #define HAVE_NET_IF_H 1
12471 for ac_func in vprintf
12473 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
12474 if test "x$ac_cv_func_vprintf" = xyes; then :
12475 cat >>confdefs.h <<_ACEOF
12476 #define HAVE_VPRINTF 1
12479 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
12480 if test "x$ac_cv_func__doprnt" = xyes; then :
12482 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
12490 ac_fn_c_check_member "$LINENO" "struct dirent" "d_reclen" "ac_cv_member_struct_dirent_d_reclen" "#include <dirent.h>
12492 if test "x$ac_cv_member_struct_dirent_d_reclen" = xyes; then :
12494 $as_echo "#define HAVE_RECLEN_DIRENT 1" >>confdefs.h
12498 ac_fn_c_check_member "$LINENO" "struct stat" "st_atim" "ac_cv_member_struct_stat_st_atim" "$ac_includes_default"
12499 if test "x$ac_cv_member_struct_stat_st_atim" = xyes; then :
12501 cat >>confdefs.h <<_ACEOF
12502 #define HAVE_STRUCT_STAT_ST_ATIM 1
12508 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "#include <sys/types.h>
12510 if test "x$ac_cv_type_ssize_t" = xyes; then :
12512 $as_echo "#define HAVE_TYPE_SSIZE_T 1" >>confdefs.h
12516 ac_fn_c_check_decl "$LINENO" "llseek" "ac_cv_have_decl_llseek" "#include <unistd.h>
12518 if test "x$ac_cv_have_decl_llseek" = xyes; then :
12520 $as_echo "#define HAVE_LLSEEK_PROTOTYPE 1" >>confdefs.h
12524 ac_fn_c_check_decl "$LINENO" "lseek64" "ac_cv_have_decl_lseek64" "#define _LARGEFILE_SOURCE
12525 #define _LARGEFILE64_SOURCE
12526 #include <unistd.h>
12528 if test "x$ac_cv_have_decl_lseek64" = xyes; then :
12530 $as_echo "#define HAVE_LSEEK64_PROTOTYPE 1" >>confdefs.h
12534 # The cast to long int works around a bug in the HP C Compiler
12535 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12536 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12537 # This bug is HP SR number 8606223364.
12538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
12539 $as_echo_n "checking size of short... " >&6; }
12540 if ${ac_cv_sizeof_short+:} false; then :
12541 $as_echo_n "(cached) " >&6
12543 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
12546 if test "$ac_cv_type_short" = yes; then
12547 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12548 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12549 as_fn_error 77 "cannot compute sizeof (short)
12550 See \`config.log' for more details" "$LINENO" 5; }
12552 ac_cv_sizeof_short=0
12557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
12558 $as_echo "$ac_cv_sizeof_short" >&6; }
12562 cat >>confdefs.h <<_ACEOF
12563 #define SIZEOF_SHORT $ac_cv_sizeof_short
12567 # The cast to long int works around a bug in the HP C Compiler
12568 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12569 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12570 # This bug is HP SR number 8606223364.
12571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
12572 $as_echo_n "checking size of int... " >&6; }
12573 if ${ac_cv_sizeof_int+:} false; then :
12574 $as_echo_n "(cached) " >&6
12576 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
12579 if test "$ac_cv_type_int" = yes; then
12580 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12581 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12582 as_fn_error 77 "cannot compute sizeof (int)
12583 See \`config.log' for more details" "$LINENO" 5; }
12590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
12591 $as_echo "$ac_cv_sizeof_int" >&6; }
12595 cat >>confdefs.h <<_ACEOF
12596 #define SIZEOF_INT $ac_cv_sizeof_int
12600 # The cast to long int works around a bug in the HP C Compiler
12601 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12602 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12603 # This bug is HP SR number 8606223364.
12604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
12605 $as_echo_n "checking size of long... " >&6; }
12606 if ${ac_cv_sizeof_long+:} false; then :
12607 $as_echo_n "(cached) " >&6
12609 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
12612 if test "$ac_cv_type_long" = yes; then
12613 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12614 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12615 as_fn_error 77 "cannot compute sizeof (long)
12616 See \`config.log' for more details" "$LINENO" 5; }
12618 ac_cv_sizeof_long=0
12623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
12624 $as_echo "$ac_cv_sizeof_long" >&6; }
12628 cat >>confdefs.h <<_ACEOF
12629 #define SIZEOF_LONG $ac_cv_sizeof_long
12633 # The cast to long int works around a bug in the HP C Compiler
12634 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12635 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12636 # This bug is HP SR number 8606223364.
12637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
12638 $as_echo_n "checking size of long long... " >&6; }
12639 if ${ac_cv_sizeof_long_long+:} false; then :
12640 $as_echo_n "(cached) " >&6
12642 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
12645 if test "$ac_cv_type_long_long" = yes; then
12646 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12647 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12648 as_fn_error 77 "cannot compute sizeof (long long)
12649 See \`config.log' for more details" "$LINENO" 5; }
12651 ac_cv_sizeof_long_long=0
12656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
12657 $as_echo "$ac_cv_sizeof_long_long" >&6; }
12661 cat >>confdefs.h <<_ACEOF
12662 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
12666 # The cast to long int works around a bug in the HP C Compiler
12667 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12668 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12669 # This bug is HP SR number 8606223364.
12670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
12671 $as_echo_n "checking size of off_t... " >&6; }
12672 if ${ac_cv_sizeof_off_t+:} false; then :
12673 $as_echo_n "(cached) " >&6
12675 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
12678 if test "$ac_cv_type_off_t" = yes; then
12679 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12680 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12681 as_fn_error 77 "cannot compute sizeof (off_t)
12682 See \`config.log' for more details" "$LINENO" 5; }
12684 ac_cv_sizeof_off_t=0
12689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
12690 $as_echo "$ac_cv_sizeof_off_t" >&6; }
12694 cat >>confdefs.h <<_ACEOF
12695 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
12699 # The cast to long int works around a bug in the HP C Compiler
12700 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12701 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12702 # This bug is HP SR number 8606223364.
12703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
12704 $as_echo_n "checking size of time_t... " >&6; }
12705 if ${ac_cv_sizeof_time_t+:} false; then :
12706 $as_echo_n "(cached) " >&6
12708 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" "$ac_includes_default"; then :
12711 if test "$ac_cv_type_time_t" = yes; then
12712 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12713 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12714 as_fn_error 77 "cannot compute sizeof (time_t)
12715 See \`config.log' for more details" "$LINENO" 5; }
12717 ac_cv_sizeof_time_t=0
12722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
12723 $as_echo "$ac_cv_sizeof_time_t" >&6; }
12727 cat >>confdefs.h <<_ACEOF
12728 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
12732 SIZEOF_SHORT=$ac_cv_sizeof_short
12733 SIZEOF_INT=$ac_cv_sizeof_int
12734 SIZEOF_LONG=$ac_cv_sizeof_long
12735 SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
12736 SIZEOF_OFF_T=$ac_cv_sizeof_off_t
12737 SIZEOF_TIME_T=$ac_cv_sizeof_time_t
12744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
12745 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
12746 if ${ac_cv_c_bigendian+:} false; then :
12747 $as_echo_n "(cached) " >&6
12749 ac_cv_c_bigendian=unknown
12750 # See if we're dealing with a universal compiler.
12751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12752 /* end confdefs.h. */
12753 #ifndef __APPLE_CC__
12754 not a universal capable compiler
12759 if ac_fn_c_try_compile "$LINENO"; then :
12761 # Check for potential -arch flags. It is not universal unless
12762 # there are at least two -arch flags with different values.
12765 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
12766 if test -n "$ac_prev"; then
12768 i?86 | x86_64 | ppc | ppc64)
12769 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
12772 ac_cv_c_bigendian=universal
12778 elif test "x$ac_word" = "x-arch"; then
12783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12784 if test $ac_cv_c_bigendian = unknown; then
12785 # See if sys/param.h defines the BYTE_ORDER macro.
12786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12787 /* end confdefs.h. */
12788 #include <sys/types.h>
12789 #include <sys/param.h>
12794 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
12795 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
12797 bogus endian macros
12804 if ac_fn_c_try_compile "$LINENO"; then :
12805 # It does; now see whether it defined to BIG_ENDIAN or not.
12806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12807 /* end confdefs.h. */
12808 #include <sys/types.h>
12809 #include <sys/param.h>
12814 #if BYTE_ORDER != BIG_ENDIAN
12822 if ac_fn_c_try_compile "$LINENO"; then :
12823 ac_cv_c_bigendian=yes
12825 ac_cv_c_bigendian=no
12827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12831 if test $ac_cv_c_bigendian = unknown; then
12832 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
12833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12834 /* end confdefs.h. */
12835 #include <limits.h>
12840 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
12841 bogus endian macros
12848 if ac_fn_c_try_compile "$LINENO"; then :
12849 # It does; now see whether it defined to _BIG_ENDIAN or not.
12850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12851 /* end confdefs.h. */
12852 #include <limits.h>
12857 #ifndef _BIG_ENDIAN
12865 if ac_fn_c_try_compile "$LINENO"; then :
12866 ac_cv_c_bigendian=yes
12868 ac_cv_c_bigendian=no
12870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12874 if test $ac_cv_c_bigendian = unknown; then
12875 # Compile a test program.
12876 if test "$cross_compiling" = yes; then :
12877 # Try to guess by grepping values from an object file.
12878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12879 /* end confdefs.h. */
12880 short int ascii_mm[] =
12881 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12882 short int ascii_ii[] =
12883 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12884 int use_ascii (int i) {
12885 return ascii_mm[i] + ascii_ii[i];
12887 short int ebcdic_ii[] =
12888 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12889 short int ebcdic_mm[] =
12890 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12891 int use_ebcdic (int i) {
12892 return ebcdic_mm[i] + ebcdic_ii[i];
12899 return use_ascii (foo) == use_ebcdic (foo);
12904 if ac_fn_c_try_compile "$LINENO"; then :
12905 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
12906 ac_cv_c_bigendian=yes
12908 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
12909 if test "$ac_cv_c_bigendian" = unknown; then
12910 ac_cv_c_bigendian=no
12912 # finding both strings is unlikely to happen, but who knows?
12913 ac_cv_c_bigendian=unknown
12917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12920 /* end confdefs.h. */
12921 $ac_includes_default
12926 /* Are we little or big endian? From Harbison&Steele. */
12930 char c[sizeof (long int)];
12933 return u.c[sizeof (long int) - 1] == 1;
12939 if ac_fn_c_try_run "$LINENO"; then :
12940 ac_cv_c_bigendian=no
12942 ac_cv_c_bigendian=yes
12944 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12945 conftest.$ac_objext conftest.beam conftest.$ac_ext
12950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
12951 $as_echo "$ac_cv_c_bigendian" >&6; }
12952 case $ac_cv_c_bigendian in #(
12954 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
12960 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
12964 as_fn_error $? "unknown endianness
12965 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
12968 if test $cross_compiling = no; then
12969 BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
12971 CROSS_COMPILE="1" BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
12973 ASM_TYPES_HEADER=./asm_types.h
12975 echo "/* These defines are needed for the public ext2fs.h header file */" \
12977 if grep HAVE_SYS_TYPES_H confdefs.h > tmp_config.$$; then
12978 uniq tmp_config.$$ >> public_config.h
12980 echo "#undef HAVE_SYS_TYPES_H" >> public_config.h
12982 if grep WORDS_BIGENDIAN confdefs.h > tmp_config.$$; then
12983 uniq tmp_config.$$ >> public_config.h
12985 echo "#undef WORDS_BIGENDIAN" >> public_config.h
12987 rm -f tmp_config.$$
12988 PUBLIC_CONFIG_HEADER=./public_config.h
12990 for ac_header in inttypes.h
12992 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
12993 if test "x$ac_cv_header_inttypes_h" = xyes; then :
12994 cat >>confdefs.h <<_ACEOF
12995 #define HAVE_INTTYPES_H 1
13002 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
13003 if test "x$ac_cv_type_intptr_t" = xyes; then :
13005 cat >>confdefs.h <<_ACEOF
13006 #define HAVE_INTPTR_T 1
13012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat has a st_flags field" >&5
13013 $as_echo_n "checking whether struct stat has a st_flags field... " >&6; }
13014 if ${e2fsprogs_cv_struct_st_flags+:} false; then :
13015 $as_echo_n "(cached) " >&6
13017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13018 /* end confdefs.h. */
13019 #include <sys/stat.h>
13023 struct stat stat; stat.st_flags = 0;
13028 if ac_fn_c_try_compile "$LINENO"; then :
13029 e2fsprogs_cv_struct_st_flags=yes
13031 e2fsprogs_cv_struct_st_flags=no
13033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags" >&5
13037 $as_echo "$e2fsprogs_cv_struct_st_flags" >&6; }
13038 if test "$e2fsprogs_cv_struct_st_flags" = yes; then
13039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether st_flags field is useful" >&5
13040 $as_echo_n "checking whether st_flags field is useful... " >&6; }
13041 if ${e2fsprogs_cv_struct_st_flags_immut+:} false; then :
13042 $as_echo_n "(cached) " >&6
13044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13045 /* end confdefs.h. */
13046 #include <sys/stat.h>
13050 struct stat stat; stat.st_flags |= UF_IMMUTABLE;
13055 if ac_fn_c_try_compile "$LINENO"; then :
13056 e2fsprogs_cv_struct_st_flags_immut=yes
13058 e2fsprogs_cv_struct_st_flags_immut=no
13060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags_immut" >&5
13064 $as_echo "$e2fsprogs_cv_struct_st_flags_immut" >&6; }
13065 if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
13067 $as_echo "#define HAVE_STAT_FLAGS 1" >>confdefs.h
13071 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h>
13072 #include <sys/socket.h>
13074 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
13076 cat >>confdefs.h <<_ACEOF
13077 #define HAVE_SA_LEN 1
13082 if test -n "$BLKID_CMT"; then
13083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing blkid_probe_all" >&5
13084 $as_echo_n "checking for library containing blkid_probe_all... " >&6; }
13085 if ${ac_cv_search_blkid_probe_all+:} false; then :
13086 $as_echo_n "(cached) " >&6
13088 ac_func_search_save_LIBS=$LIBS
13089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13090 /* end confdefs.h. */
13092 /* Override any GCC internal prototype to avoid an error.
13093 Use char because int might match the return type of a GCC
13094 builtin and then its argument prototype would still apply. */
13098 char blkid_probe_all ();
13102 return blkid_probe_all ();
13107 for ac_lib in '' blkid; do
13108 if test -z "$ac_lib"; then
13109 ac_res="none required"
13112 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13114 if ac_fn_c_try_link "$LINENO"; then :
13115 ac_cv_search_blkid_probe_all=$ac_res
13117 rm -f core conftest.err conftest.$ac_objext \
13119 if ${ac_cv_search_blkid_probe_all+:} false; then :
13123 if ${ac_cv_search_blkid_probe_all+:} false; then :
13126 ac_cv_search_blkid_probe_all=no
13128 rm conftest.$ac_ext
13129 LIBS=$ac_func_search_save_LIBS
13131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_blkid_probe_all" >&5
13132 $as_echo "$ac_cv_search_blkid_probe_all" >&6; }
13133 ac_res=$ac_cv_search_blkid_probe_all
13134 if test "$ac_res" != no; then :
13135 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13140 if test -n "$DLOPEN_LIB" ; then
13141 ac_cv_func_dlopen=yes
13143 for ac_func in __secure_getenv add_key backtrace blkid_probe_get_topology blkid_probe_enable_partitions chflags dlopen fadvise64 fallocate fallocate64 fchown fcntl fdatasync fstat64 fsync ftruncate64 futimes getcwd getdtablesize gethostname getmntinfo getpwuid_r getrlimit getrusage jrand48 keyctl llistxattr llseek lseek64 mallinfo mbstowcs memalign mempcpy mmap msync nanosleep open64 pathconf posix_fadvise posix_fadvise64 posix_memalign prctl pread pwrite pread64 pwrite64 secure_getenv setmntent setresgid setresuid snprintf srandom stpcpy strcasecmp strdup strnlen strptime strtoull sync_file_range sysconf usleep utime utimes valloc
13145 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13146 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13147 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13148 cat >>confdefs.h <<_ACEOF
13149 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
13157 $as_echo_n "checking for socket in -lsocket... " >&6; }
13158 if ${ac_cv_lib_socket_socket+:} false; then :
13159 $as_echo_n "(cached) " >&6
13161 ac_check_lib_save_LIBS=$LIBS
13162 LIBS="-lsocket $LIBS"
13163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13164 /* end confdefs.h. */
13166 /* Override any GCC internal prototype to avoid an error.
13167 Use char because int might match the return type of a GCC
13168 builtin and then its argument prototype would still apply. */
13181 if ac_fn_c_try_link "$LINENO"; then :
13182 ac_cv_lib_socket_socket=yes
13184 ac_cv_lib_socket_socket=no
13186 rm -f core conftest.err conftest.$ac_objext \
13187 conftest$ac_exeext conftest.$ac_ext
13188 LIBS=$ac_check_lib_save_LIBS
13190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
13191 $as_echo "$ac_cv_lib_socket_socket" >&6; }
13192 if test "x$ac_cv_lib_socket_socket" = xyes; then :
13193 SOCKET_LIB=-lsocket
13197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for magic_file in -lmagic" >&5
13198 $as_echo_n "checking for magic_file in -lmagic... " >&6; }
13199 if ${ac_cv_lib_magic_magic_file+:} false; then :
13200 $as_echo_n "(cached) " >&6
13202 ac_check_lib_save_LIBS=$LIBS
13203 LIBS="-lmagic $LIBS"
13204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13205 /* end confdefs.h. */
13207 /* Override any GCC internal prototype to avoid an error.
13208 Use char because int might match the return type of a GCC
13209 builtin and then its argument prototype would still apply. */
13213 char magic_file ();
13217 return magic_file ();
13222 if ac_fn_c_try_link "$LINENO"; then :
13223 ac_cv_lib_magic_magic_file=yes
13225 ac_cv_lib_magic_magic_file=no
13227 rm -f core conftest.err conftest.$ac_objext \
13228 conftest$ac_exeext conftest.$ac_ext
13229 LIBS=$ac_check_lib_save_LIBS
13231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_magic_magic_file" >&5
13232 $as_echo "$ac_cv_lib_magic_magic_file" >&6; }
13233 if test "x$ac_cv_lib_magic_magic_file" = xyes; then :
13235 for ac_header in magic.h
13237 ac_fn_c_check_header_mongrel "$LINENO" "magic.h" "ac_cv_header_magic_h" "$ac_includes_default"
13238 if test "x$ac_cv_header_magic_h" = xyes; then :
13239 cat >>confdefs.h <<_ACEOF
13240 #define HAVE_MAGIC_H 1
13249 if test "$ac_cv_func_dlopen" = yes ; then
13250 MAGIC_LIB=$DLOPEN_LIB
13253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
13254 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
13255 if ${ac_cv_lib_rt_clock_gettime+:} false; then :
13256 $as_echo_n "(cached) " >&6
13258 ac_check_lib_save_LIBS=$LIBS
13260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13261 /* end confdefs.h. */
13263 /* Override any GCC internal prototype to avoid an error.
13264 Use char because int might match the return type of a GCC
13265 builtin and then its argument prototype would still apply. */
13269 char clock_gettime ();
13273 return clock_gettime ();
13278 if ac_fn_c_try_link "$LINENO"; then :
13279 ac_cv_lib_rt_clock_gettime=yes
13281 ac_cv_lib_rt_clock_gettime=no
13283 rm -f core conftest.err conftest.$ac_objext \
13284 conftest$ac_exeext conftest.$ac_ext
13285 LIBS=$ac_check_lib_save_LIBS
13287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
13288 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
13289 if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
13290 CLOCK_GETTIME_LIB=-lrt
13296 # Check whether --enable-fuse2fs was given.
13297 if test "${enable_fuse2fs+set}" = set; then :
13298 enableval=$enable_fuse2fs; if test "$enableval" = "no"
13301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling fuse2fs" >&5
13302 $as_echo "Disabling fuse2fs" >&6; }
13304 for ac_header in pthread.h fuse.h
13306 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13307 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#define _FILE_OFFSET_BITS 64
13308 #define FUSE_USE_VERSION 29
13310 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13311 cat >>confdefs.h <<_ACEOF
13312 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13316 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13317 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13318 as_fn_error $? "Cannot find fuse2fs headers.
13319 See \`config.log' for more details" "$LINENO" 5; }
13325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13326 /* end confdefs.h. */
13327 #define FUSE_USE_VERSION 29
13329 #include <linux/fs.h>
13330 #include <linux/falloc.h>
13331 #include <linux/xattr.h>
13342 if ac_fn_c_try_cpp "$LINENO"; then :
13345 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13346 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13347 as_fn_error $? "Cannot find fuse2fs Linux headers.
13348 See \`config.log' for more details" "$LINENO" 5; }
13350 rm -f conftest.err conftest.i conftest.$ac_ext
13352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -losxfuse" >&5
13353 $as_echo_n "checking for fuse_main in -losxfuse... " >&6; }
13354 if ${ac_cv_lib_osxfuse_fuse_main+:} false; then :
13355 $as_echo_n "(cached) " >&6
13357 ac_check_lib_save_LIBS=$LIBS
13358 LIBS="-losxfuse $LIBS"
13359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13360 /* end confdefs.h. */
13362 /* Override any GCC internal prototype to avoid an error.
13363 Use char because int might match the return type of a GCC
13364 builtin and then its argument prototype would still apply. */
13372 return fuse_main ();
13377 if ac_fn_c_try_link "$LINENO"; then :
13378 ac_cv_lib_osxfuse_fuse_main=yes
13380 ac_cv_lib_osxfuse_fuse_main=no
13382 rm -f core conftest.err conftest.$ac_objext \
13383 conftest$ac_exeext conftest.$ac_ext
13384 LIBS=$ac_check_lib_save_LIBS
13386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_osxfuse_fuse_main" >&5
13387 $as_echo "$ac_cv_lib_osxfuse_fuse_main" >&6; }
13388 if test "x$ac_cv_lib_osxfuse_fuse_main" = xyes; then :
13391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -lfuse" >&5
13392 $as_echo_n "checking for fuse_main in -lfuse... " >&6; }
13393 if ${ac_cv_lib_fuse_fuse_main+:} false; then :
13394 $as_echo_n "(cached) " >&6
13396 ac_check_lib_save_LIBS=$LIBS
13397 LIBS="-lfuse $LIBS"
13398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13399 /* end confdefs.h. */
13401 /* Override any GCC internal prototype to avoid an error.
13402 Use char because int might match the return type of a GCC
13403 builtin and then its argument prototype would still apply. */
13411 return fuse_main ();
13416 if ac_fn_c_try_link "$LINENO"; then :
13417 ac_cv_lib_fuse_fuse_main=yes
13419 ac_cv_lib_fuse_fuse_main=no
13421 rm -f core conftest.err conftest.$ac_objext \
13422 conftest$ac_exeext conftest.$ac_ext
13423 LIBS=$ac_check_lib_save_LIBS
13425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fuse_fuse_main" >&5
13426 $as_echo "$ac_cv_lib_fuse_fuse_main" >&6; }
13427 if test "x$ac_cv_lib_fuse_fuse_main" = xyes; then :
13430 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13431 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13432 as_fn_error $? "Cannot find fuse library.
13433 See \`config.log' for more details" "$LINENO" 5; }
13438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling fuse2fs" >&5
13439 $as_echo "Enabling fuse2fs" >&6; }
13443 for ac_header in pthread.h fuse.h
13445 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13446 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#define _FILE_OFFSET_BITS 64
13447 #define FUSE_USE_VERSION 29
13449 # include <linux/fs.h>
13450 # include <linux/falloc.h>
13451 # include <linux/xattr.h>
13454 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13455 cat >>confdefs.h <<_ACEOF
13456 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13465 if test -z "$FUSE_CMT"
13467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -losxfuse" >&5
13468 $as_echo_n "checking for fuse_main in -losxfuse... " >&6; }
13469 if ${ac_cv_lib_osxfuse_fuse_main+:} false; then :
13470 $as_echo_n "(cached) " >&6
13472 ac_check_lib_save_LIBS=$LIBS
13473 LIBS="-losxfuse $LIBS"
13474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13475 /* end confdefs.h. */
13477 /* Override any GCC internal prototype to avoid an error.
13478 Use char because int might match the return type of a GCC
13479 builtin and then its argument prototype would still apply. */
13487 return fuse_main ();
13492 if ac_fn_c_try_link "$LINENO"; then :
13493 ac_cv_lib_osxfuse_fuse_main=yes
13495 ac_cv_lib_osxfuse_fuse_main=no
13497 rm -f core conftest.err conftest.$ac_objext \
13498 conftest$ac_exeext conftest.$ac_ext
13499 LIBS=$ac_check_lib_save_LIBS
13501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_osxfuse_fuse_main" >&5
13502 $as_echo "$ac_cv_lib_osxfuse_fuse_main" >&6; }
13503 if test "x$ac_cv_lib_osxfuse_fuse_main" = xyes; then :
13506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -lfuse" >&5
13507 $as_echo_n "checking for fuse_main in -lfuse... " >&6; }
13508 if ${ac_cv_lib_fuse_fuse_main+:} false; then :
13509 $as_echo_n "(cached) " >&6
13511 ac_check_lib_save_LIBS=$LIBS
13512 LIBS="-lfuse $LIBS"
13513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13514 /* end confdefs.h. */
13516 /* Override any GCC internal prototype to avoid an error.
13517 Use char because int might match the return type of a GCC
13518 builtin and then its argument prototype would still apply. */
13526 return fuse_main ();
13531 if ac_fn_c_try_link "$LINENO"; then :
13532 ac_cv_lib_fuse_fuse_main=yes
13534 ac_cv_lib_fuse_fuse_main=no
13536 rm -f core conftest.err conftest.$ac_objext \
13537 conftest$ac_exeext conftest.$ac_ext
13538 LIBS=$ac_check_lib_save_LIBS
13540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fuse_fuse_main" >&5
13541 $as_echo "$ac_cv_lib_fuse_fuse_main" >&6; }
13542 if test "x$ac_cv_lib_fuse_fuse_main" = xyes; then :
13551 if test -z "$FUSE_CMT"
13553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling fuse2fs by default." >&5
13554 $as_echo "Enabling fuse2fs by default." >&6; }
13561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for optreset" >&5
13562 $as_echo_n "checking for optreset... " >&6; }
13563 if ${ac_cv_have_optreset+:} false; then :
13564 $as_echo_n "(cached) " >&6
13566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13567 /* end confdefs.h. */
13568 #include <unistd.h>
13571 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13572 $EGREP "optreset" >/dev/null 2>&1; then :
13573 ac_cv_have_optreset=yes
13575 ac_cv_have_optreset=no
13580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_optreset" >&5
13581 $as_echo "$ac_cv_have_optreset" >&6; }
13582 if test $ac_cv_have_optreset = yes; then
13584 $as_echo "#define HAVE_OPTRESET 1" >>confdefs.h
13589 echo GL_THREADS_API: ${gl_threads_api}
13590 if test "${gl_threads_api}" != none
13592 ac_fn_c_check_func "$LINENO" "sem_init" "ac_cv_func_sem_init"
13593 if test "x$ac_cv_func_sem_init" = xyes; then :
13596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lpthread" >&5
13597 $as_echo_n "checking for sem_init in -lpthread... " >&6; }
13598 if ${ac_cv_lib_pthread_sem_init+:} false; then :
13599 $as_echo_n "(cached) " >&6
13601 ac_check_lib_save_LIBS=$LIBS
13602 LIBS="-lpthread $LIBS"
13603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13604 /* end confdefs.h. */
13606 /* Override any GCC internal prototype to avoid an error.
13607 Use char because int might match the return type of a GCC
13608 builtin and then its argument prototype would still apply. */
13616 return sem_init ();
13621 if ac_fn_c_try_link "$LINENO"; then :
13622 ac_cv_lib_pthread_sem_init=yes
13624 ac_cv_lib_pthread_sem_init=no
13626 rm -f core conftest.err conftest.$ac_objext \
13627 conftest$ac_exeext conftest.$ac_ext
13628 LIBS=$ac_check_lib_save_LIBS
13630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_sem_init" >&5
13631 $as_echo "$ac_cv_lib_pthread_sem_init" >&6; }
13632 if test "x$ac_cv_lib_pthread_sem_init" = xyes; then :
13633 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
13635 SEM_INIT_LIB=-lpthread
13637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lrt" >&5
13638 $as_echo_n "checking for sem_init in -lrt... " >&6; }
13639 if ${ac_cv_lib_rt_sem_init+:} false; then :
13640 $as_echo_n "(cached) " >&6
13642 ac_check_lib_save_LIBS=$LIBS
13644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13645 /* end confdefs.h. */
13647 /* Override any GCC internal prototype to avoid an error.
13648 Use char because int might match the return type of a GCC
13649 builtin and then its argument prototype would still apply. */
13657 return sem_init ();
13662 if ac_fn_c_try_link "$LINENO"; then :
13663 ac_cv_lib_rt_sem_init=yes
13665 ac_cv_lib_rt_sem_init=no
13667 rm -f core conftest.err conftest.$ac_objext \
13668 conftest$ac_exeext conftest.$ac_ext
13669 LIBS=$ac_check_lib_save_LIBS
13671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sem_init" >&5
13672 $as_echo "$ac_cv_lib_rt_sem_init" >&6; }
13673 if test "x$ac_cv_lib_rt_sem_init" = xyes; then :
13674 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
13678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lposix4" >&5
13679 $as_echo_n "checking for sem_init in -lposix4... " >&6; }
13680 if ${ac_cv_lib_posix4_sem_init+:} false; then :
13681 $as_echo_n "(cached) " >&6
13683 ac_check_lib_save_LIBS=$LIBS
13684 LIBS="-lposix4 $LIBS"
13685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13686 /* end confdefs.h. */
13688 /* Override any GCC internal prototype to avoid an error.
13689 Use char because int might match the return type of a GCC
13690 builtin and then its argument prototype would still apply. */
13698 return sem_init ();
13703 if ac_fn_c_try_link "$LINENO"; then :
13704 ac_cv_lib_posix4_sem_init=yes
13706 ac_cv_lib_posix4_sem_init=no
13708 rm -f core conftest.err conftest.$ac_objext \
13709 conftest$ac_exeext conftest.$ac_ext
13710 LIBS=$ac_check_lib_save_LIBS
13712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sem_init" >&5
13713 $as_echo "$ac_cv_lib_posix4_sem_init" >&6; }
13714 if test "x$ac_cv_lib_posix4_sem_init" = xyes; then :
13715 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
13717 SEM_INIT_LIB=-lposix4
13727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unified diff option" >&5
13728 $as_echo_n "checking for unified diff option... " >&6; }
13729 if diff -u $0 $0 > /dev/null 2>&1 ; then
13734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNI_DIFF_OPTS" >&5
13735 $as_echo "$UNI_DIFF_OPTS" >&6; }
13740 $as_echo "#define HAVE_EXT2_IOCTLS 1" >>confdefs.h
13744 # Check whether --enable-lto was given.
13745 if test "${enable_lto+set}" = set; then :
13746 enableval=$enable_lto;
13751 if test "$enable_lto" = "yes" || test "$enable_lto" = "probe"; then
13752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C compiler supports LTO" >&5
13753 $as_echo_n "checking if C compiler supports LTO... " >&6; }
13754 OLD_CFLAGS="$CFLAGS"
13755 OLD_LDFLAGS="$LDFLAGS"
13756 LTO_FLAGS="-flto -ffat-lto-objects"
13757 CFLAGS="$CFLAGS $LTO_FLAGS"
13758 LDFLAGS="$LDFLAGS $LTO_FLAGS"
13759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13760 /* end confdefs.h. */
13770 if ac_fn_c_try_link "$LINENO"; then :
13771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13772 $as_echo "yes" >&6; }
13773 lto_cflags=$LTO_FLAGS
13774 lto_ldflags=$LTO_FLAGS
13775 # Extract the first word of "gcc-ar", so it can be a program name with args.
13776 set dummy gcc-ar; ac_word=$2
13777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13778 $as_echo_n "checking for $ac_word... " >&6; }
13779 if ${ac_cv_path_gcc_ar+:} false; then :
13780 $as_echo_n "(cached) " >&6
13784 ac_cv_path_gcc_ar="$gcc_ar" # Let the user override the test with a path.
13787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13788 for as_dir in $PATH
13791 test -z "$as_dir" && as_dir=.
13792 for ac_exec_ext in '' $ac_executable_extensions; do
13793 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13794 ac_cv_path_gcc_ar="$as_dir/$ac_word$ac_exec_ext"
13795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13805 gcc_ar=$ac_cv_path_gcc_ar
13806 if test -n "$gcc_ar"; then
13807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_ar" >&5
13808 $as_echo "$gcc_ar" >&6; }
13810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13811 $as_echo "no" >&6; }
13815 # Extract the first word of "gcc-ranlib", so it can be a program name with args.
13816 set dummy gcc-ranlib; ac_word=$2
13817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13818 $as_echo_n "checking for $ac_word... " >&6; }
13819 if ${ac_cv_path_gcc_ranlib+:} false; then :
13820 $as_echo_n "(cached) " >&6
13822 case $gcc_ranlib in
13824 ac_cv_path_gcc_ranlib="$gcc_ranlib" # Let the user override the test with a path.
13827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13828 for as_dir in $PATH
13831 test -z "$as_dir" && as_dir=.
13832 for ac_exec_ext in '' $ac_executable_extensions; do
13833 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13834 ac_cv_path_gcc_ranlib="$as_dir/$ac_word$ac_exec_ext"
13835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13845 gcc_ranlib=$ac_cv_path_gcc_ranlib
13846 if test -n "$gcc_ranlib"; then
13847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_ranlib" >&5
13848 $as_echo "$gcc_ranlib" >&6; }
13850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13851 $as_echo "no" >&6; }
13856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13857 $as_echo "no" >&6; }
13859 rm -f core conftest.err conftest.$ac_objext \
13860 conftest$ac_exeext conftest.$ac_ext
13861 if test -x "$gcc_ar" && test -x "$gcc_ranlib"; then
13864 RANLIB="${gcc_ranlib}"
13866 CFLAGS="${OLD_CFLAGS}"
13867 LDFLAGS="${OLD_LDFLAGS}"
13872 if test "$enable_lto" = "yes" && test "$have_lto" != "yes"; then
13873 as_fn_error $? "LTO not supported by compiler." "$LINENO" 5
13875 # Check whether --enable-ubsan was given.
13876 if test "${enable_ubsan+set}" = set; then :
13877 enableval=$enable_ubsan;
13882 if test "$enable_ubsan" = "yes" || test "$enable_ubsan" = "probe"; then
13883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C compiler supports UBSAN" >&5
13884 $as_echo_n "checking if C compiler supports UBSAN... " >&6; }
13885 OLD_CFLAGS="$CFLAGS"
13886 OLD_LDFLAGS="$LDFLAGS"
13887 UBSAN_FLAGS="-fsanitize=undefined"
13888 CFLAGS="$CFLAGS $UBSAN_FLAGS"
13889 LDFLAGS="$LDFLAGS $UBSAN_FLAGS"
13890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13891 /* end confdefs.h. */
13901 if ac_fn_c_try_link "$LINENO"; then :
13902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13903 $as_echo "yes" >&6; }
13904 ubsan_cflags=$UBSAN_FLAGS
13905 ubsan_ldflags=$UBSAN_FLAGS
13908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13909 $as_echo "no" >&6; }
13911 rm -f core conftest.err conftest.$ac_objext \
13912 conftest$ac_exeext conftest.$ac_ext
13913 CFLAGS="${OLD_CFLAGS}"
13914 LDFLAGS="${OLD_LDFLAGS}"
13919 if test "$enable_ubsan" = "yes" && test "$have_ubsan" != "yes"; then
13920 as_fn_error $? "UBSAN not supported by compiler." "$LINENO" 5
13937 E2SCRUB_CMT="$LINUX_CMT"
13940 linux* | gnu* | k*bsd*-gnu)
13941 if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
13943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, root_prefix defaults to ''" >&5
13944 $as_echo "On $host_os systems, root_prefix defaults to ''" >&6; }
13949 linux* | gnu* | k*bsd*-gnu)
13950 if test "$prefix" = NONE ; then
13952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, prefix defaults to /usr" >&5
13953 $as_echo "On $host_os systems, prefix defaults to /usr" >&6; }
13954 if test "$mandir" = '${prefix}/man' ; then
13955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ...and mandir defaults to /usr/share/man" >&5
13956 $as_echo "...and mandir defaults to /usr/share/man" >&6; }
13957 mandir=/usr/share/man
13962 if test "$root_prefix" = NONE ; then
13963 if test "$prefix" = NONE ; then
13964 root_prefix="$ac_default_prefix"
13966 root_prefix="$prefix"
13968 root_bindir=$bindir
13969 root_sbindir=$sbindir
13970 root_libdir=$libdir
13971 root_sysconfdir=$sysconfdir
13973 root_bindir='${root_prefix}/bin'
13974 root_sbindir='${root_prefix}/sbin'
13975 root_libdir='${root_prefix}/lib'
13976 root_sysconfdir='${root_prefix}/etc'
13978 if test "$bindir" != '${exec_prefix}/bin'; then
13979 root_bindir=$bindir
13980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_bindir to $root_bindir" >&5
13981 $as_echo "Setting root_bindir to $root_bindir" >&6; }
13983 if test "$sbindir" != '${exec_prefix}/sbin'; then
13984 root_sbindir=$sbindir
13985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sbindir to $root_sbindir" >&5
13986 $as_echo "Setting root_sbindir to $root_sbindir" >&6; }
13988 if test "$libdir" != '${exec_prefix}/lib'; then
13989 root_libdir=$libdir
13990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_libdir to $root_libdir" >&5
13991 $as_echo "Setting root_libdir to $root_libdir" >&6; }
13993 if test "$sysconfdir" != '${prefix}/etc'; then
13994 root_sysconfdir=$sysconfdir
13995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sysconfdir to $root_sysconfdir" >&5
13996 $as_echo "Setting root_sysconfdir to $root_sysconfdir" >&6; }
14004 # Check whether --with-multiarch was given.
14005 if test "${with_multiarch+set}" = set; then :
14006 withval=$with_multiarch; if test "$withval" = "lib64"; then
14010 libdir=$libdir/$withval
14011 root_libdir=$root_libdir/$withval
14016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can link with -static" >&5
14017 $as_echo_n "checking whether we can link with -static... " >&6; }
14018 if ${ac_cv_e2fsprogs_use_static+:} false; then :
14019 $as_echo_n "(cached) " >&6
14021 SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS_STATIC -static"
14022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14023 /* end confdefs.h. */
14033 if ac_fn_c_try_link "$LINENO"; then :
14034 ac_cv_e2fsprogs_use_static=yes
14036 ac_cv_e2fsprogs_use_static=no
14038 rm -f core conftest.err conftest.$ac_objext \
14039 conftest$ac_exeext conftest.$ac_ext
14040 LDFLAGS=$SAVE_LDFLAGS
14045 ac_cv_e2fsprogs_use_static=no
14048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_e2fsprogs_use_static" >&5
14049 $as_echo "$ac_cv_e2fsprogs_use_static" >&6; }
14050 if test $ac_cv_e2fsprogs_use_static = yes; then
14051 LDFLAGS_STATIC="$LDFLAGS_STATIC -static"
14056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using Apple Darwin / GNU libintl workaround" >&5
14057 $as_echo "Using Apple Darwin / GNU libintl workaround" >&6; }
14059 $as_echo "#define _INTL_REDIRECT_MACROS 1" >>confdefs.h
14063 if test "$cross_compiling" = yes ; then
14066 DO_TEST_SUITE=check
14069 INCLUDES='-I. -I$(top_builddir)/lib -I$(top_srcdir)/lib'
14070 if test -n "$CPPFLAGS" ; then
14071 INCLUDES="$INCLUDES $CPPFLAGS"
14073 if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
14074 INCLUDES=$INCLUDES' -I$(top_builddir)/intl -I$(top_srcdir)/intl'
14076 if test -n "$WITH_DIET_LIBC" ; then
14077 INCLUDES="$INCLUDES -D_REENTRANT"
14082 if test -n "$ac_aux_dir"; then
14083 case "$ac_aux_dir" in
14084 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
14085 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
14088 if test -z "$MKINSTALLDIRS"; then
14089 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
14093 if test $cross_compiling = no; then
14094 BUILD_CFLAGS="$CFLAGS $CPPFLAGS $INCLUDES -DHAVE_CONFIG_H"
14095 BUILD_LDFLAGS="$LDFLAGS"
14099 CFLAGS_SHLIB=${CFLAGS_SHLIB:-$CFLAGS}
14100 CFLAGS_STLIB=${CFLAGS_STLIB:-$CFLAGS}
14101 LDFLAGS_SHLIB=${LDFLAGS_SHLIB:-$LDFLAGS}
14107 # Check whether --with-udev_rules_dir was given.
14108 if test "${with_udev_rules_dir+set}" = set; then :
14109 withval=$with_udev_rules_dir;
14111 with_udev_rules_dir=yes
14114 if test "x${with_udev_rules_dir}" != "xno"; then :
14116 if test "x${with_udev_rules_dir}" = "xyes"; then :
14120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for udev" >&5
14121 $as_echo_n "checking for udev... " >&6; }
14123 if test -n "$udev_CFLAGS"; then
14124 pkg_cv_udev_CFLAGS="$udev_CFLAGS"
14125 elif test -n "$PKG_CONFIG"; then
14126 if test -n "$PKG_CONFIG" && \
14127 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"udev\""; } >&5
14128 ($PKG_CONFIG --exists --print-errors "udev") 2>&5
14130 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14131 test $ac_status = 0; }; then
14132 pkg_cv_udev_CFLAGS=`$PKG_CONFIG --cflags "udev" 2>/dev/null`
14133 test "x$?" != "x0" && pkg_failed=yes
14140 if test -n "$udev_LIBS"; then
14141 pkg_cv_udev_LIBS="$udev_LIBS"
14142 elif test -n "$PKG_CONFIG"; then
14143 if test -n "$PKG_CONFIG" && \
14144 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"udev\""; } >&5
14145 ($PKG_CONFIG --exists --print-errors "udev") 2>&5
14147 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14148 test $ac_status = 0; }; then
14149 pkg_cv_udev_LIBS=`$PKG_CONFIG --libs "udev" 2>/dev/null`
14150 test "x$?" != "x0" && pkg_failed=yes
14160 if test $pkg_failed = yes; then
14161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14162 $as_echo "no" >&6; }
14164 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14165 _pkg_short_errors_supported=yes
14167 _pkg_short_errors_supported=no
14169 if test $_pkg_short_errors_supported = yes; then
14170 udev_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "udev" 2>&1`
14172 udev_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "udev" 2>&1`
14174 # Put the nasty error message in config.log where it belongs
14175 echo "$udev_PKG_ERRORS" >&5
14178 with_udev_rules_dir=""
14180 elif test $pkg_failed = untried; then
14181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14182 $as_echo "no" >&6; }
14184 with_udev_rules_dir=""
14187 udev_CFLAGS=$pkg_cv_udev_CFLAGS
14188 udev_LIBS=$pkg_cv_udev_LIBS
14189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14190 $as_echo "yes" >&6; }
14192 with_udev_rules_dir="$($PKG_CONFIG --variable=udevdir udev)/rules.d"
14197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for udev rules dir" >&5
14198 $as_echo_n "checking for udev rules dir... " >&6; }
14199 pkg_udev_rules_dir="${with_udev_rules_dir}"
14200 if test -n "${pkg_udev_rules_dir}"; then :
14202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${pkg_udev_rules_dir}" >&5
14203 $as_echo "${pkg_udev_rules_dir}" >&6; }
14208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14209 $as_echo "no" >&6; }
14216 have_udev="disabled"
14223 # Check whether --with-crond_dir was given.
14224 if test "${with_crond_dir+set}" = set; then :
14225 withval=$with_crond_dir;
14230 if test "x${with_crond_dir}" != "xno"; then :
14232 if test "x${with_crond_dir}" = "xyes"; then :
14234 if test -d "/etc/cron.d"; then :
14235 with_crond_dir="/etc/cron.d"
14239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for system crontab dir" >&5
14240 $as_echo_n "checking for system crontab dir... " >&6; }
14241 crond_dir="${with_crond_dir}"
14242 if test -n "${crond_dir}"; then :
14244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${crond_dir}" >&5
14245 $as_echo "${crond_dir}" >&6; }
14250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14251 $as_echo "no" >&6; }
14258 have_crond="disabled"
14265 # Check whether --with-systemd_unit_dir was given.
14266 if test "${with_systemd_unit_dir+set}" = set; then :
14267 withval=$with_systemd_unit_dir;
14269 with_systemd_unit_dir=yes
14272 if test "x${with_systemd_unit_dir}" != "xno"; then :
14274 if test "x${with_systemd_unit_dir}" = "xyes"; then :
14278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for systemd" >&5
14279 $as_echo_n "checking for systemd... " >&6; }
14281 if test -n "$systemd_CFLAGS"; then
14282 pkg_cv_systemd_CFLAGS="$systemd_CFLAGS"
14283 elif test -n "$PKG_CONFIG"; then
14284 if test -n "$PKG_CONFIG" && \
14285 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"systemd\""; } >&5
14286 ($PKG_CONFIG --exists --print-errors "systemd") 2>&5
14288 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14289 test $ac_status = 0; }; then
14290 pkg_cv_systemd_CFLAGS=`$PKG_CONFIG --cflags "systemd" 2>/dev/null`
14291 test "x$?" != "x0" && pkg_failed=yes
14298 if test -n "$systemd_LIBS"; then
14299 pkg_cv_systemd_LIBS="$systemd_LIBS"
14300 elif test -n "$PKG_CONFIG"; then
14301 if test -n "$PKG_CONFIG" && \
14302 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"systemd\""; } >&5
14303 ($PKG_CONFIG --exists --print-errors "systemd") 2>&5
14305 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14306 test $ac_status = 0; }; then
14307 pkg_cv_systemd_LIBS=`$PKG_CONFIG --libs "systemd" 2>/dev/null`
14308 test "x$?" != "x0" && pkg_failed=yes
14318 if test $pkg_failed = yes; then
14319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14320 $as_echo "no" >&6; }
14322 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14323 _pkg_short_errors_supported=yes
14325 _pkg_short_errors_supported=no
14327 if test $_pkg_short_errors_supported = yes; then
14328 systemd_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "systemd" 2>&1`
14330 systemd_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "systemd" 2>&1`
14332 # Put the nasty error message in config.log where it belongs
14333 echo "$systemd_PKG_ERRORS" >&5
14336 with_systemd_unit_dir=""
14338 elif test $pkg_failed = untried; then
14339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14340 $as_echo "no" >&6; }
14342 with_systemd_unit_dir=""
14345 systemd_CFLAGS=$pkg_cv_systemd_CFLAGS
14346 systemd_LIBS=$pkg_cv_systemd_LIBS
14347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14348 $as_echo "yes" >&6; }
14350 with_systemd_unit_dir="$($PKG_CONFIG --variable=systemdsystemunitdir systemd)"
14356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for systemd system unit dir" >&5
14357 $as_echo_n "checking for systemd system unit dir... " >&6; }
14358 systemd_system_unit_dir="${with_systemd_unit_dir}"
14359 if test -n "${systemd_system_unit_dir}"; then :
14361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${systemd_system_unit_dir}" >&5
14362 $as_echo "${systemd_system_unit_dir}" >&6; }
14367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14368 $as_echo "no" >&6; }
14375 have_systemd="disabled"
14381 test -d lib || mkdir lib
14382 test -d include || mkdir include
14383 test -d include/linux || mkdir include/linux
14384 test -d include/asm || mkdir include/asm
14385 if test -z "$UUID_CMT" ; then
14386 uuid_out_list="lib/uuid/Makefile lib/uuid/uuid.pc \
14387 lib/uuid/uuid_types.h"
14389 if test -z "$BLKID_CMT" ; then
14390 blkid_out_list="lib/blkid/Makefile lib/blkid/blkid.pc \
14391 lib/blkid/blkid_types.h"
14393 for i in MCONFIG Makefile e2fsprogs.spec \
14394 util/Makefile util/subst.conf util/gen-tarball util/install-symlink \
14395 lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \
14396 lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \
14397 $uuid_out_list $blkid_out_list lib/support/Makefile \
14398 lib/ss/ss.pc lib/et/com_err.pc lib/e2p/e2p.pc lib/ext2fs/ext2fs.pc \
14399 misc/Makefile ext2ed/Makefile e2fsck/Makefile \
14400 debugfs/Makefile tests/Makefile tests/progs/Makefile \
14401 resize/Makefile doc/Makefile intl/Makefile \
14402 intl/libgnuintl.h po/Makefile.in scrub/Makefile; do
14403 if test -d `dirname ${srcdir}/$i` ; then
14404 outlist="$outlist $i"
14407 ac_config_files="$ac_config_files $outlist"
14409 cat >confcache <<\_ACEOF
14410 # This file is a shell script that caches the results of configure
14411 # tests run on this system so they can be shared between configure
14412 # scripts and configure runs, see configure's option --config-cache.
14413 # It is not useful on other systems. If it contains results you don't
14414 # want to keep, you may remove or edit it.
14416 # config.status only pays attention to the cache file if you give it
14417 # the --recheck option to rerun configure.
14419 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14420 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14421 # following values.
14425 # The following way of writing the cache mishandles newlines in values,
14426 # but we know of no workaround that is simple, portable, and efficient.
14427 # So, we kill variables containing newlines.
14428 # Ultrix sh set writes to stderr and can't be redirected directly,
14429 # and sets the high bit in the cache file unless we assign to the vars.
14431 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14432 eval ac_val=\$$ac_var
14436 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14437 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14440 _ | IFS | as_nl) ;; #(
14441 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14442 *) { eval $ac_var=; unset $ac_var;} ;;
14448 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14449 *${as_nl}ac_space=\ *)
14450 # `set' does not quote correctly, so add quotes: double-quote
14451 # substitution turns \\\\ into \\, and sed turns \\ into \.
14454 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14457 # `set' quotes correctly as required by POSIX, so do not add quotes.
14458 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14467 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14469 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14471 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14472 if test -w "$cache_file"; then
14473 if test "x$cache_file" != "x/dev/null"; then
14474 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14475 $as_echo "$as_me: updating cache $cache_file" >&6;}
14476 if test ! -f "$cache_file" || test -h "$cache_file"; then
14477 cat confcache >"$cache_file"
14479 case $cache_file in #(
14481 mv -f confcache "$cache_file"$$ &&
14482 mv -f "$cache_file"$$ "$cache_file" ;; #(
14484 mv -f confcache "$cache_file" ;;
14489 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14490 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14495 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14496 # Let make expand exec_prefix.
14497 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14499 DEFS=-DHAVE_CONFIG_H
14504 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14505 # 1. Remove the extension, and $U if already installed.
14506 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14507 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14508 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14509 # will be set to the directory where LIBOBJS objects are built.
14510 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14511 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14513 LIBOBJS=$ac_libobjs
14515 LTLIBOBJS=$ac_ltlibobjs
14520 : "${CONFIG_STATUS=./config.status}"
14522 ac_clean_files_save=$ac_clean_files
14523 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14524 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14525 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14527 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14529 # Generated by $as_me.
14530 # Run this file to recreate the current configuration.
14531 # Compiler output produced by configure, useful for debugging
14532 # configure, is in config.log if it exists.
14535 ac_cs_recheck=false
14538 SHELL=\${CONFIG_SHELL-$SHELL}
14541 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14542 ## -------------------- ##
14543 ## M4sh Initialization. ##
14544 ## -------------------- ##
14546 # Be more Bourne compatible
14547 DUALCASE=1; export DUALCASE # for MKS sh
14548 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14551 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14552 # is contrary to our usage. Disable this feature.
14553 alias -g '${1+"$@"}'='"$@"'
14554 setopt NO_GLOB_SUBST
14556 case `(set -o) 2>/dev/null` in #(
14568 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14569 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14570 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14571 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14572 # Prefer a ksh shell builtin over an external printf program on Solaris,
14573 # but without wasting forks for bash or zsh.
14574 if test -z "$BASH_VERSION$ZSH_VERSION" \
14575 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14576 as_echo='print -r --'
14577 as_echo_n='print -rn --'
14578 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14579 as_echo='printf %s\n'
14580 as_echo_n='printf %s'
14582 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14583 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14584 as_echo_n='/usr/ucb/echo -n'
14586 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14587 as_echo_n_body='eval
14591 expr "X$arg" : "X\\(.*\\)$as_nl";
14592 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14594 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14596 export as_echo_n_body
14597 as_echo_n='sh -c $as_echo_n_body as_echo'
14599 export as_echo_body
14600 as_echo='sh -c $as_echo_body as_echo'
14603 # The user is always right.
14604 if test "${PATH_SEPARATOR+set}" != set; then
14606 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14607 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14614 # We need space, tab and new line, in precisely that order. Quoting is
14615 # there to prevent editors from complaining about space-tab.
14616 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14617 # splitting by setting IFS to empty value.)
14620 # Find who we are. Look in the path if we contain no directory separator.
14623 *[\\/]* ) as_myself=$0 ;;
14624 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14625 for as_dir in $PATH
14628 test -z "$as_dir" && as_dir=.
14629 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14635 # We did not find ourselves, most probably we were run as `sh COMMAND'
14636 # in which case we are not to be found in the path.
14637 if test "x$as_myself" = x; then
14640 if test ! -f "$as_myself"; then
14641 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14645 # Unset variables that we do not need and which cause bugs (e.g. in
14646 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14647 # suppresses any "Segmentation fault" message there. '((' could
14648 # trigger a bug in pdksh 5.2.14.
14649 for as_var in BASH_ENV ENV MAIL MAILPATH
14650 do eval test x\${$as_var+set} = xset \
14651 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14664 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14667 # as_fn_error STATUS ERROR [LINENO LOG_FD]
14668 # ----------------------------------------
14669 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14670 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14671 # script with STATUS, using 1 if that was 0.
14674 as_status=$1; test $as_status -eq 0 && as_status=1
14676 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14677 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14679 $as_echo "$as_me: error: $2" >&2
14680 as_fn_exit $as_status
14684 # as_fn_set_status STATUS
14685 # -----------------------
14686 # Set $? to STATUS, without forking.
14687 as_fn_set_status ()
14690 } # as_fn_set_status
14692 # as_fn_exit STATUS
14693 # -----------------
14694 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14698 as_fn_set_status $1
14704 # Portably unset VAR.
14707 { eval $1=; unset $1;}
14709 as_unset=as_fn_unset
14710 # as_fn_append VAR VALUE
14711 # ----------------------
14712 # Append the text in VALUE to the end of the definition contained in VAR. Take
14713 # advantage of any shell optimizations that allow amortized linear growth over
14714 # repeated appends, instead of the typical quadratic growth present in naive
14716 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14717 eval 'as_fn_append ()
14728 # as_fn_arith ARG...
14729 # ------------------
14730 # Perform arithmetic evaluation on the ARGs, and store the result in the
14731 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14732 # must be portable across $(()) and expr.
14733 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14734 eval 'as_fn_arith ()
14741 as_val=`expr "$@" || test $? -eq 1`
14746 if expr a : '\(a\)' >/dev/null 2>&1 &&
14747 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14753 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14754 as_basename=basename
14759 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14765 as_me=`$as_basename -- "$0" ||
14766 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14767 X"$0" : 'X\(//\)$' \| \
14768 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14770 sed '/^.*\/\([^/][^/]*\)\/*$/{
14784 # Avoid depending upon Character Ranges.
14785 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14786 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14787 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14788 as_cr_digits='0123456789'
14789 as_cr_alnum=$as_cr_Letters$as_cr_digits
14791 ECHO_C= ECHO_N= ECHO_T=
14792 case `echo -n x` in #(((((
14794 case `echo 'xy\c'` in
14795 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14797 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14804 rm -f conf$$ conf$$.exe conf$$.file
14805 if test -d conf$$.dir; then
14806 rm -f conf$$.dir/conf$$.file
14809 mkdir conf$$.dir 2>/dev/null
14811 if (echo >conf$$.file) 2>/dev/null; then
14812 if ln -s conf$$.file conf$$ 2>/dev/null; then
14814 # ... but there are two gotchas:
14815 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14816 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14817 # In both cases, we have to default to `cp -pR'.
14818 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14820 elif ln conf$$.file conf$$ 2>/dev/null; then
14828 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14829 rmdir conf$$.dir 2>/dev/null
14834 # Create "$as_dir" as a directory, including parents if necessary.
14839 -*) as_dir=./$as_dir;;
14841 test -d "$as_dir" || eval $as_mkdir_p || {
14845 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14846 *) as_qdir=$as_dir;;
14848 as_dirs="'$as_qdir' $as_dirs"
14849 as_dir=`$as_dirname -- "$as_dir" ||
14850 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14851 X"$as_dir" : 'X\(//\)[^/]' \| \
14852 X"$as_dir" : 'X\(//\)$' \| \
14853 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14854 $as_echo X"$as_dir" |
14855 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14859 /^X\(\/\/\)[^/].*/{
14872 test -d "$as_dir" && break
14874 test -z "$as_dirs" || eval "mkdir $as_dirs"
14875 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
14879 if mkdir -p . 2>/dev/null; then
14880 as_mkdir_p='mkdir -p "$as_dir"'
14882 test -d ./-p && rmdir ./-p
14887 # as_fn_executable_p FILE
14888 # -----------------------
14889 # Test if FILE is an executable regular file.
14890 as_fn_executable_p ()
14892 test -f "$1" && test -x "$1"
14893 } # as_fn_executable_p
14894 as_test_x='test -x'
14895 as_executable_p=as_fn_executable_p
14897 # Sed expression to map a string onto a valid CPP name.
14898 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14900 # Sed expression to map a string onto a valid variable name.
14901 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14905 ## ----------------------------------- ##
14906 ## Main body of $CONFIG_STATUS script. ##
14907 ## ----------------------------------- ##
14909 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14911 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14912 # Save the log message, to keep $0 and so on meaningful, and to
14913 # report actual input values of CONFIG_FILES etc. instead of their
14914 # values after options handling.
14916 This file was extended by $as_me, which was
14917 generated by GNU Autoconf 2.69. Invocation command line was
14919 CONFIG_FILES = $CONFIG_FILES
14920 CONFIG_HEADERS = $CONFIG_HEADERS
14921 CONFIG_LINKS = $CONFIG_LINKS
14922 CONFIG_COMMANDS = $CONFIG_COMMANDS
14925 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14930 case $ac_config_files in *"
14931 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14934 case $ac_config_headers in *"
14935 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14939 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14940 # Files that config.status was made for.
14941 config_files="$ac_config_files"
14942 config_headers="$ac_config_headers"
14943 config_commands="$ac_config_commands"
14947 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14949 \`$as_me' instantiates files and other configuration actions
14950 from templates according to the current configuration. Unless the files
14951 and actions are specified as TAGs, all are instantiated by default.
14953 Usage: $0 [OPTION]... [TAG]...
14955 -h, --help print this help, then exit
14956 -V, --version print version number and configuration settings, then exit
14957 --config print configuration, then exit
14958 -q, --quiet, --silent
14959 do not print progress messages
14960 -d, --debug don't remove temporary files
14961 --recheck update $as_me by reconfiguring in the same conditions
14962 --file=FILE[:TEMPLATE]
14963 instantiate the configuration file FILE
14964 --header=FILE[:TEMPLATE]
14965 instantiate the configuration header FILE
14967 Configuration files:
14970 Configuration headers:
14973 Configuration commands:
14976 Report bugs to the package provider."
14979 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14980 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14983 configured by $0, generated by GNU Autoconf 2.69,
14984 with options \\"\$ac_cs_config\\"
14986 Copyright (C) 2012 Free Software Foundation, Inc.
14987 This config.status script is free software; the Free Software Foundation
14988 gives unlimited permission to copy, distribute and modify it."
14995 test -n "\$AWK" || AWK=awk
14998 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14999 # The default lists apply if the user does not specify any file.
15005 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15006 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15010 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15022 # Handling of the options.
15023 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15025 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15026 $as_echo "$ac_cs_version"; exit ;;
15027 --config | --confi | --conf | --con | --co | --c )
15028 $as_echo "$ac_cs_config"; exit ;;
15029 --debug | --debu | --deb | --de | --d | -d )
15031 --file | --fil | --fi | --f )
15034 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15035 '') as_fn_error $? "missing file argument" ;;
15037 as_fn_append CONFIG_FILES " '$ac_optarg'"
15038 ac_need_defaults=false;;
15039 --header | --heade | --head | --hea )
15042 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15044 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15045 ac_need_defaults=false;;
15047 # Conflict between --help and --header
15048 as_fn_error $? "ambiguous option: \`$1'
15049 Try \`$0 --help' for more information.";;
15050 --help | --hel | -h )
15051 $as_echo "$ac_cs_usage"; exit ;;
15052 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15053 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15056 # This is an error.
15057 -*) as_fn_error $? "unrecognized option: \`$1'
15058 Try \`$0 --help' for more information." ;;
15060 *) as_fn_append ac_config_targets " $1"
15061 ac_need_defaults=false ;;
15067 ac_configure_extra_args=
15069 if $ac_cs_silent; then
15071 ac_configure_extra_args="$ac_configure_extra_args --silent"
15075 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15076 if \$ac_cs_recheck; then
15077 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15079 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15080 CONFIG_SHELL='$SHELL'
15081 export CONFIG_SHELL
15086 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15090 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15091 ## Running $as_me. ##
15097 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15101 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
15102 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
15103 # from automake < 1.5.
15104 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
15105 # Capture the value of LINGUAS because we need it to compute CATALOGS.
15106 LINGUAS="${LINGUAS-%UNSET%}"
15111 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15113 # Handling of arguments.
15114 for ac_config_target in $ac_config_targets
15116 case $ac_config_target in
15117 "lib/config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/config.h" ;;
15118 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
15119 "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;;
15121 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15126 # If the user did not use the arguments to specify the items to instantiate,
15127 # then the envvar interface is used. Set only those that are not.
15128 # We use the long form for the default assignment because of an extremely
15129 # bizarre bug on SunOS 4.1.3.
15130 if $ac_need_defaults; then
15131 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15132 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15133 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15136 # Have a temporary directory for convenience. Make it in the build tree
15137 # simply because there is no reason against having it here, and in addition,
15138 # creating and moving files from /tmp can sometimes cause problems.
15139 # Hook for its removal unless debugging.
15140 # Note that there is a small window in which the directory will not be cleaned:
15141 # after its creation but before its name has been assigned to `$tmp'.
15145 trap 'exit_status=$?
15146 : "${ac_tmp:=$tmp}"
15147 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15149 trap 'as_fn_exit 1' 1 2 13 15
15151 # Create a (secure) tmp directory for tmp files.
15154 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15158 tmp=./conf$$-$RANDOM
15159 (umask 077 && mkdir "$tmp")
15160 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15163 # Set up the scripts for CONFIG_FILES section.
15164 # No need to generate them if there are no CONFIG_FILES.
15165 # This happens for instance with `./config.status config.h'.
15166 if test -n "$CONFIG_FILES"; then
15168 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
15169 ac_cs_awk_getline=:
15170 ac_cs_awk_pipe_init=
15171 ac_cs_awk_read_file='
15172 while ((getline aline < (F[key])) > 0)
15175 ac_cs_awk_pipe_fini=
15177 ac_cs_awk_getline=false
15178 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
15179 ac_cs_awk_read_file='
15181 print "cat " F[key] " &&"
15182 '$ac_cs_awk_pipe_init
15183 # The final `:' finishes the AND list.
15184 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
15186 ac_cr=`echo X | tr X '\015'`
15187 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15188 # But we know of no other shell where ac_cr would be empty at this
15189 # point, so we can use a bashism as a fallback.
15190 if test "x$ac_cr" = x; then
15191 eval ac_cr=\$\'\\r\'
15193 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15194 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15197 ac_cs_awk_cr=$ac_cr
15200 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15203 # Create commands to substitute file output variables.
15205 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
15206 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
15207 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
15210 } >conf$$files.sh &&
15211 . ./conf$$files.sh ||
15212 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15213 rm -f conf$$files.sh
15216 echo "cat >conf$$subs.awk <<_ACEOF" &&
15217 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15219 } >conf$$subs.sh ||
15220 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15221 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15223 for ac_last_try in false false false false false :; do
15224 . ./conf$$subs.sh ||
15225 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15227 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15228 if test $ac_delim_n = $ac_delim_num; then
15230 elif $ac_last_try; then
15231 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15233 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15236 rm -f conf$$subs.sh
15238 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15239 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15243 s/^/S["/; s/!.*/"]=/
15253 s/\(.\{148\}\)..*/\1/
15255 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15260 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15267 s/\(.\{148\}\)..*/\1/
15269 s/["\\]/\\&/g; s/^/"/; s/$/"/
15273 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15278 ' <conf$$subs.awk | sed '
15283 ' >>$CONFIG_STATUS || ac_write_fail=1
15284 rm -f conf$$subs.awk
15285 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15287 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15288 for (key in S) S_is_set[key] = 1
15290 \$ac_cs_awk_pipe_init
15294 nfields = split(line, field, "@")
15296 len = length(field[1])
15297 for (i = 2; i < nfields; i++) {
15299 keylen = length(key)
15300 if (S_is_set[key]) {
15302 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15303 len += length(value) + length(field[++i])
15308 if (nfields == 3 && !substed) {
15310 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
15311 \$ac_cs_awk_read_file
15317 \$ac_cs_awk_pipe_fini
15320 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15321 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15322 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15325 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15326 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15329 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15330 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15331 # trailing colons and then remove the whole line if VPATH becomes empty
15332 # (actually we leave an empty line to preserve line numbers).
15333 if test "x$srcdir" = x.; then
15334 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
15352 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15353 fi # test -n "$CONFIG_FILES"
15355 # Set up the scripts for CONFIG_HEADERS section.
15356 # No need to generate them if there are no CONFIG_HEADERS.
15357 # This happens for instance with `./config.status Makefile'.
15358 if test -n "$CONFIG_HEADERS"; then
15359 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
15363 # Transform confdefs.h into an awk script `defines.awk', embedded as
15364 # here-document in config.status, that substitutes the proper values into
15365 # config.h.in to produce config.h.
15367 # Create a delimiter string that does not exist in confdefs.h, to ease
15368 # handling of long lines.
15370 for ac_last_try in false false :; do
15371 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
15372 if test -z "$ac_tt"; then
15374 elif $ac_last_try; then
15375 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
15377 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15381 # For the awk script, D is an array of macro values keyed by name,
15382 # likewise P contains macro parameters if any. Preserve backslash
15383 # newline sequences.
15385 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15387 s/.\{148\}/&'"$ac_delim"'/g
15390 s/^[ ]*#[ ]*define[ ][ ]*/ /
15397 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15399 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15403 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15404 D["\1"]=" \3\\\\\\n"\\/p
15406 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15411 s/.\{148\}/&'"$ac_delim"'/g
15416 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15419 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15421 ' <confdefs.h | sed '
15422 s/'"$ac_delim"'/"\\\
15423 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15425 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15426 for (key in D) D_is_set[key] = 1
15429 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15431 split(line, arg, " ")
15432 if (arg[1] == "#") {
15436 defundef = substr(arg[1], 2)
15439 split(mac1, mac2, "(") #)
15441 prefix = substr(line, 1, index(line, defundef) - 1)
15442 if (D_is_set[macro]) {
15443 # Preserve the white space surrounding the "#".
15444 print prefix "define", macro P[macro] D[macro]
15447 # Replace #undef with comments. This is necessary, for example,
15448 # in the case of _POSIX_SOURCE, which is predefined and required
15449 # on some systems where configure will not decide to define it.
15450 if (defundef == "undef") {
15451 print "/*", prefix defundef, macro, "*/"
15459 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15460 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
15461 fi # test -n "$CONFIG_HEADERS"
15464 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15469 :[FHLC]) ac_mode=$ac_tag; continue;;
15471 case $ac_mode$ac_tag in
15473 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
15474 :[FH]-) ac_tag=-:-;;
15475 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15492 -) ac_f="$ac_tmp/stdin";;
15493 *) # Look for the file first in the build tree, then in the source tree
15494 # (if the path is not absolute). The absolute path cannot be DOS-style,
15495 # because $ac_f cannot contain `:'.
15499 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15501 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15503 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15504 as_fn_append ac_file_inputs " '$ac_f'"
15507 # Let's still pretend it is `configure' which instantiates (i.e., don't
15508 # use $as_me), people would be surprised to read:
15509 # /* config.h. Generated by config.status. */
15510 configure_input='Generated from '`
15511 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15513 if test x"$ac_file" != x-; then
15514 configure_input="$ac_file. $configure_input"
15515 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15516 $as_echo "$as_me: creating $ac_file" >&6;}
15518 # Neutralize special characters interpreted by sed in replacement strings.
15519 case $configure_input in #(
15520 *\&* | *\|* | *\\* )
15521 ac_sed_conf_input=`$as_echo "$configure_input" |
15522 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15523 *) ac_sed_conf_input=$configure_input;;
15527 *:-:* | *:-) cat >"$ac_tmp/stdin" \
15528 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15533 ac_dir=`$as_dirname -- "$ac_file" ||
15534 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15535 X"$ac_file" : 'X\(//\)[^/]' \| \
15536 X"$ac_file" : 'X\(//\)$' \| \
15537 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15538 $as_echo X"$ac_file" |
15539 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15543 /^X\(\/\/\)[^/].*/{
15556 as_dir="$ac_dir"; as_fn_mkdir_p
15560 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15562 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15563 # A ".." for each directory in $ac_dir_suffix.
15564 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15565 case $ac_top_builddir_sub in
15566 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15567 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15570 ac_abs_top_builddir=$ac_pwd
15571 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15572 # for backward compatibility:
15573 ac_top_builddir=$ac_top_build_prefix
15576 .) # We are building in place.
15578 ac_top_srcdir=$ac_top_builddir_sub
15579 ac_abs_top_srcdir=$ac_pwd ;;
15580 [\\/]* | ?:[\\/]* ) # Absolute name.
15581 ac_srcdir=$srcdir$ac_dir_suffix;
15582 ac_top_srcdir=$srcdir
15583 ac_abs_top_srcdir=$srcdir ;;
15584 *) # Relative name.
15585 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15586 ac_top_srcdir=$ac_top_build_prefix$srcdir
15587 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15589 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15599 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15600 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15602 ac_MKDIR_P=$MKDIR_P
15604 [\\/$]* | ?:[\\/]* ) ;;
15605 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15609 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15610 # If the template does not know about datarootdir, expand it.
15611 # FIXME: This hack should be removed a few years after 2.60.
15612 ac_datarootdir_hack=; ac_datarootdir_seen=
15623 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15624 *datarootdir*) ac_datarootdir_seen=yes;;
15625 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15626 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15627 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15629 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15630 ac_datarootdir_hack='
15631 s&@datadir@&$datadir&g
15632 s&@docdir@&$docdir&g
15633 s&@infodir@&$infodir&g
15634 s&@localedir@&$localedir&g
15635 s&@mandir@&$mandir&g
15636 s&\\\${datarootdir}&$datarootdir&g' ;;
15640 # Neutralize VPATH when `$srcdir' = `.'.
15641 # Shell code in configure.ac might set extrasub.
15642 # FIXME: do we really want to maintain this feature?
15643 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15644 ac_sed_extra="$ac_vpsub
15647 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15649 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15650 s|@configure_input@|$ac_sed_conf_input|;t t
15651 s&@top_builddir@&$ac_top_builddir_sub&;t t
15652 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15653 s&@srcdir@&$ac_srcdir&;t t
15654 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15655 s&@top_srcdir@&$ac_top_srcdir&;t t
15656 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15657 s&@builddir@&$ac_builddir&;t t
15658 s&@abs_builddir@&$ac_abs_builddir&;t t
15659 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15660 s&@INSTALL@&$ac_INSTALL&;t t
15661 s&@MKDIR_P@&$ac_MKDIR_P&;t t
15662 $ac_datarootdir_hack
15664 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
15665 if $ac_cs_awk_getline; then
15666 $AWK -f "$ac_tmp/subs.awk"
15668 $AWK -f "$ac_tmp/subs.awk" | $SHELL
15670 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15672 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15673 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15674 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
15675 "$ac_tmp/out"`; test -z "$ac_out"; } &&
15676 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15677 which seems to be undefined. Please make sure it is defined" >&5
15678 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15679 which seems to be undefined. Please make sure it is defined" >&2;}
15681 rm -f "$ac_tmp/stdin"
15683 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15684 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15686 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15692 if test x"$ac_file" != x-; then
15694 $as_echo "/* $configure_input */" \
15695 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15696 } >"$ac_tmp/config.h" \
15697 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15698 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
15699 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15700 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15703 mv "$ac_tmp/config.h" "$ac_file" \
15704 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15707 $as_echo "/* $configure_input */" \
15708 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15709 || as_fn_error $? "could not create -" "$LINENO" 5
15713 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15714 $as_echo "$as_me: executing $ac_file commands" >&6;}
15719 case $ac_file$ac_mode in
15720 "po-directories":C)
15721 for ac_file in $CONFIG_FILES; do
15722 # Support "outfile[:infile[:infile...]]"
15724 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
15726 # PO directories have a Makefile.in generated from Makefile.in.in.
15727 case "$ac_file" in */Makefile.in)
15728 # Adjust a relative srcdir.
15729 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
15730 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
15731 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
15732 # In autoconf-2.13 it is called $ac_given_srcdir.
15733 # In autoconf-2.50 it is called $srcdir.
15734 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
15735 case "$ac_given_srcdir" in
15736 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
15737 /*) top_srcdir="$ac_given_srcdir" ;;
15738 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
15740 # Treat a directory as a PO directory if and only if it has a
15741 # POTFILES.in file. This allows packages to have multiple PO
15742 # directories under different names or in different locations.
15743 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
15744 rm -f "$ac_dir/POTFILES"
15745 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
15746 gt_tab=`printf '\t'`
15747 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"
15748 POMAKEFILEDEPS="POTFILES.in"
15749 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
15750 # on $ac_dir but don't depend on user-specified configuration
15752 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
15753 # The LINGUAS file contains the set of available languages.
15754 if test -n "$OBSOLETE_ALL_LINGUAS"; then
15755 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
15757 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
15758 # Hide the ALL_LINGUAS assignment from automake < 1.5.
15759 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
15760 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
15762 # The set of available languages was given in configure.in.
15763 # Hide the ALL_LINGUAS assignment from automake < 1.5.
15764 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
15767 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
15768 # Compute UPDATEPOFILES
15769 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
15770 # Compute DUMMYPOFILES
15771 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
15773 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
15774 case "$ac_given_srcdir" in
15776 *) srcdirpre='$(srcdir)/' ;;
15782 for lang in $ALL_LINGUAS; do
15783 POFILES="$POFILES $srcdirpre$lang.po"
15784 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
15785 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
15786 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
15788 # CATALOGS depends on both $ac_dir and the user's LINGUAS
15789 # environment variable.
15791 if test -n "$ALL_LINGUAS"; then
15792 for presentlang in $ALL_LINGUAS; do
15794 if test "%UNSET%" != "$LINGUAS"; then
15795 desiredlanguages="$LINGUAS"
15797 desiredlanguages="$ALL_LINGUAS"
15799 for desiredlang in $desiredlanguages; do
15800 # Use the presentlang catalog if desiredlang is
15801 # a. equal to presentlang, or
15802 # b. a variant of presentlang (because in this case,
15803 # presentlang can be used as a fallback for messages
15804 # which are not translated in the desiredlang catalog).
15805 case "$desiredlang" in
15806 "$presentlang"*) useit=yes;;
15809 if test $useit = yes; then
15810 INST_LINGUAS="$INST_LINGUAS $presentlang"
15815 if test -n "$INST_LINGUAS"; then
15816 for lang in $INST_LINGUAS; do
15817 CATALOGS="$CATALOGS $lang.gmo"
15820 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
15821 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"
15822 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
15823 if test -f "$f"; then
15825 *.orig | *.bak | *~) ;;
15826 *) cat "$f" >> "$ac_dir/Makefile" ;;
15841 ac_clean_files=$ac_clean_files_save
15843 test $ac_write_fail = 0 ||
15844 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15847 # configure is writing to config.log, and then calls config.status.
15848 # config.status does its own redirection, appending to config.log.
15849 # Unfortunately, on DOS this fails, as config.log is still kept open
15850 # by configure, so config.status won't be able to write to it; its
15851 # output is simply discarded. So we exec the FD to /dev/null,
15852 # effectively closing config.log, so it can be properly (re)opened and
15853 # appended to by config.status. When coming back to configure, we
15854 # need to make the FD available again.
15855 if test "$no_create" != yes; then
15857 ac_config_status_args=
15858 test "$silent" = yes &&
15859 ac_config_status_args="$ac_config_status_args --quiet"
15861 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15863 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15864 # would make configure fail if this is the last instruction.
15865 $ac_cs_success || as_fn_exit 1
15867 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15868 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15869 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15872 if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi