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>
623 ac_subst_vars='LTLIBOBJS
669 INTL_LIBTOOL_SUFFIX_PREFIX
676 BUILD_INCLUDED_LIBINTL
802 program_transform_name
813 ac_subst_files='MCONFIG
820 PUBLIC_CONFIG_HEADER'
822 enable_option_checking
828 enable_maintainer_mode
829 enable_symlink_install
830 enable_relative_symlinks
831 enable_symlink_relative_symlinks
833 enable_verbose_makecmds
853 enable_e2initrd_helper
858 enable_bmap_stats_ops
863 with_included_gettext
867 ac_precious_vars='build_alias
879 # Initialize some variables set by options.
881 ac_init_version=false
882 ac_unrecognized_opts=
884 # The variables have the same names as the options, with
885 # dashes changed to underlines.
893 program_transform_name=s,x,x,
901 # Installation directory options.
902 # These are left unexpanded so users can "make install exec_prefix=/foo"
903 # and all the variables that are supposed to be based on exec_prefix
904 # by default will actually change.
905 # Use braces instead of parens because sh, perl, etc. also accept them.
906 # (The list follows the same order as the GNU Coding Standards.)
907 bindir='${exec_prefix}/bin'
908 sbindir='${exec_prefix}/sbin'
909 libexecdir='${exec_prefix}/libexec'
910 datarootdir='${prefix}/share'
911 datadir='${datarootdir}'
912 sysconfdir='${prefix}/etc'
913 sharedstatedir='${prefix}/com'
914 localstatedir='${prefix}/var'
915 includedir='${prefix}/include'
916 oldincludedir='/usr/include'
917 docdir='${datarootdir}/doc/${PACKAGE}'
918 infodir='${datarootdir}/info'
923 libdir='${exec_prefix}/lib'
924 localedir='${datarootdir}/locale'
925 mandir='${datarootdir}/man'
931 # If the previous option needs an argument, assign it.
932 if test -n "$ac_prev"; then
933 eval $ac_prev=\$ac_option
939 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
944 # Accept the important Cygnus configure options, so we can diagnose typos.
946 case $ac_dashdash$ac_option in
950 -bindir | --bindir | --bindi | --bind | --bin | --bi)
952 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
955 -build | --build | --buil | --bui | --bu)
956 ac_prev=build_alias ;;
957 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
958 build_alias=$ac_optarg ;;
960 -cache-file | --cache-file | --cache-fil | --cache-fi \
961 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
962 ac_prev=cache_file ;;
963 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
964 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
965 cache_file=$ac_optarg ;;
968 cache_file=config.cache ;;
970 -datadir | --datadir | --datadi | --datad)
972 -datadir=* | --datadir=* | --datadi=* | --datad=*)
973 datadir=$ac_optarg ;;
975 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
976 | --dataroo | --dataro | --datar)
977 ac_prev=datarootdir ;;
978 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
979 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
980 datarootdir=$ac_optarg ;;
982 -disable-* | --disable-*)
983 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
984 # Reject names that are not valid shell variable names.
985 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
986 as_fn_error $? "invalid feature name: $ac_useropt"
987 ac_useropt_orig=$ac_useropt
988 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
989 case $ac_user_opts in
993 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
994 ac_unrecognized_sep=', ';;
996 eval enable_$ac_useropt=no ;;
998 -docdir | --docdir | --docdi | --doc | --do)
1000 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1001 docdir=$ac_optarg ;;
1003 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1005 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1006 dvidir=$ac_optarg ;;
1008 -enable-* | --enable-*)
1009 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1010 # Reject names that are not valid shell variable names.
1011 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1012 as_fn_error $? "invalid feature name: $ac_useropt"
1013 ac_useropt_orig=$ac_useropt
1014 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1015 case $ac_user_opts in
1017 "enable_$ac_useropt"
1019 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1020 ac_unrecognized_sep=', ';;
1022 eval enable_$ac_useropt=\$ac_optarg ;;
1024 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1025 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1026 | --exec | --exe | --ex)
1027 ac_prev=exec_prefix ;;
1028 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1029 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1030 | --exec=* | --exe=* | --ex=*)
1031 exec_prefix=$ac_optarg ;;
1033 -gas | --gas | --ga | --g)
1034 # Obsolete; use --with-gas.
1037 -help | --help | --hel | --he | -h)
1038 ac_init_help=long ;;
1039 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1040 ac_init_help=recursive ;;
1041 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1042 ac_init_help=short ;;
1044 -host | --host | --hos | --ho)
1045 ac_prev=host_alias ;;
1046 -host=* | --host=* | --hos=* | --ho=*)
1047 host_alias=$ac_optarg ;;
1049 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1051 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1053 htmldir=$ac_optarg ;;
1055 -includedir | --includedir | --includedi | --included | --include \
1056 | --includ | --inclu | --incl | --inc)
1057 ac_prev=includedir ;;
1058 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1059 | --includ=* | --inclu=* | --incl=* | --inc=*)
1060 includedir=$ac_optarg ;;
1062 -infodir | --infodir | --infodi | --infod | --info | --inf)
1064 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1065 infodir=$ac_optarg ;;
1067 -libdir | --libdir | --libdi | --libd)
1069 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1070 libdir=$ac_optarg ;;
1072 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1073 | --libexe | --libex | --libe)
1074 ac_prev=libexecdir ;;
1075 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1076 | --libexe=* | --libex=* | --libe=*)
1077 libexecdir=$ac_optarg ;;
1079 -localedir | --localedir | --localedi | --localed | --locale)
1080 ac_prev=localedir ;;
1081 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1082 localedir=$ac_optarg ;;
1084 -localstatedir | --localstatedir | --localstatedi | --localstated \
1085 | --localstate | --localstat | --localsta | --localst | --locals)
1086 ac_prev=localstatedir ;;
1087 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1088 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1089 localstatedir=$ac_optarg ;;
1091 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1093 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1094 mandir=$ac_optarg ;;
1096 -nfp | --nfp | --nf)
1097 # Obsolete; use --without-fp.
1100 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1101 | --no-cr | --no-c | -n)
1104 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1105 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1108 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1109 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1110 | --oldin | --oldi | --old | --ol | --o)
1111 ac_prev=oldincludedir ;;
1112 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1113 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1114 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1115 oldincludedir=$ac_optarg ;;
1117 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1119 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1120 prefix=$ac_optarg ;;
1122 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1123 | --program-pre | --program-pr | --program-p)
1124 ac_prev=program_prefix ;;
1125 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1126 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1127 program_prefix=$ac_optarg ;;
1129 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1130 | --program-suf | --program-su | --program-s)
1131 ac_prev=program_suffix ;;
1132 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1133 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1134 program_suffix=$ac_optarg ;;
1136 -program-transform-name | --program-transform-name \
1137 | --program-transform-nam | --program-transform-na \
1138 | --program-transform-n | --program-transform- \
1139 | --program-transform | --program-transfor \
1140 | --program-transfo | --program-transf \
1141 | --program-trans | --program-tran \
1142 | --progr-tra | --program-tr | --program-t)
1143 ac_prev=program_transform_name ;;
1144 -program-transform-name=* | --program-transform-name=* \
1145 | --program-transform-nam=* | --program-transform-na=* \
1146 | --program-transform-n=* | --program-transform-=* \
1147 | --program-transform=* | --program-transfor=* \
1148 | --program-transfo=* | --program-transf=* \
1149 | --program-trans=* | --program-tran=* \
1150 | --progr-tra=* | --program-tr=* | --program-t=*)
1151 program_transform_name=$ac_optarg ;;
1153 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1155 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1156 pdfdir=$ac_optarg ;;
1158 -psdir | --psdir | --psdi | --psd | --ps)
1160 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1163 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1164 | -silent | --silent | --silen | --sile | --sil)
1167 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1169 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1171 sbindir=$ac_optarg ;;
1173 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1174 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1175 | --sharedst | --shareds | --shared | --share | --shar \
1177 ac_prev=sharedstatedir ;;
1178 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1179 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1180 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1182 sharedstatedir=$ac_optarg ;;
1184 -site | --site | --sit)
1186 -site=* | --site=* | --sit=*)
1189 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1191 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1192 srcdir=$ac_optarg ;;
1194 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1195 | --syscon | --sysco | --sysc | --sys | --sy)
1196 ac_prev=sysconfdir ;;
1197 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1198 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1199 sysconfdir=$ac_optarg ;;
1201 -target | --target | --targe | --targ | --tar | --ta | --t)
1202 ac_prev=target_alias ;;
1203 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1204 target_alias=$ac_optarg ;;
1206 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1209 -version | --version | --versio | --versi | --vers | -V)
1210 ac_init_version=: ;;
1213 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1214 # Reject names that are not valid shell variable names.
1215 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1216 as_fn_error $? "invalid package name: $ac_useropt"
1217 ac_useropt_orig=$ac_useropt
1218 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1219 case $ac_user_opts in
1223 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1224 ac_unrecognized_sep=', ';;
1226 eval with_$ac_useropt=\$ac_optarg ;;
1228 -without-* | --without-*)
1229 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1230 # Reject names that are not valid shell variable names.
1231 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1232 as_fn_error $? "invalid package name: $ac_useropt"
1233 ac_useropt_orig=$ac_useropt
1234 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1235 case $ac_user_opts in
1239 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1240 ac_unrecognized_sep=', ';;
1242 eval with_$ac_useropt=no ;;
1245 # Obsolete; use --with-x.
1248 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1249 | --x-incl | --x-inc | --x-in | --x-i)
1250 ac_prev=x_includes ;;
1251 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1252 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1253 x_includes=$ac_optarg ;;
1255 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1256 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1257 ac_prev=x_libraries ;;
1258 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1259 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1260 x_libraries=$ac_optarg ;;
1262 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1263 Try \`$0 --help' for more information"
1267 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1268 # Reject names that are not valid shell variable names.
1269 case $ac_envvar in #(
1270 '' | [0-9]* | *[!_$as_cr_alnum]* )
1271 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1273 eval $ac_envvar=\$ac_optarg
1274 export $ac_envvar ;;
1277 # FIXME: should be removed in autoconf 3.0.
1278 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1279 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1280 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1281 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1287 if test -n "$ac_prev"; then
1288 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1289 as_fn_error $? "missing argument to $ac_option"
1292 if test -n "$ac_unrecognized_opts"; then
1293 case $enable_option_checking in
1295 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1296 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1300 # Check all directory arguments for consistency.
1301 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1302 datadir sysconfdir sharedstatedir localstatedir includedir \
1303 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1304 libdir localedir mandir
1306 eval ac_val=\$$ac_var
1307 # Remove trailing slashes.
1310 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1311 eval $ac_var=\$ac_val;;
1313 # Be sure to have absolute directory names.
1315 [\\/$]* | ?:[\\/]* ) continue;;
1316 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1318 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1321 # There might be people who depend on the old broken behavior: `$host'
1322 # used to hold the argument of --host etc.
1323 # FIXME: To remove some day.
1326 target=$target_alias
1328 # FIXME: To remove some day.
1329 if test "x$host_alias" != x; then
1330 if test "x$build_alias" = x; then
1331 cross_compiling=maybe
1332 elif test "x$build_alias" != "x$host_alias"; then
1338 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1340 test "$silent" = yes && exec 6>/dev/null
1343 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1344 ac_ls_di=`ls -di .` &&
1345 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1346 as_fn_error $? "working directory cannot be determined"
1347 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1348 as_fn_error $? "pwd does not report name of working directory"
1351 # Find the source files, if location was not specified.
1352 if test -z "$srcdir"; then
1353 ac_srcdir_defaulted=yes
1354 # Try the directory containing this script, then the parent directory.
1355 ac_confdir=`$as_dirname -- "$as_myself" ||
1356 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1357 X"$as_myself" : 'X\(//\)[^/]' \| \
1358 X"$as_myself" : 'X\(//\)$' \| \
1359 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1360 $as_echo X"$as_myself" |
1361 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1379 if test ! -r "$srcdir/$ac_unique_file"; then
1383 ac_srcdir_defaulted=no
1385 if test ! -r "$srcdir/$ac_unique_file"; then
1386 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1387 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1389 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1391 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1393 # When building in place, set srcdir=.
1394 if test "$ac_abs_confdir" = "$ac_pwd"; then
1397 # Remove unnecessary trailing slashes from srcdir.
1398 # Double slashes in file names in object file debugging info
1399 # mess up M-x gdb in Emacs.
1401 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1403 for ac_var in $ac_precious_vars; do
1404 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1405 eval ac_env_${ac_var}_value=\$${ac_var}
1406 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1407 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1411 # Report the --help message.
1413 if test "$ac_init_help" = "long"; then
1414 # Omit some internal or obsolete options to make the list less imposing.
1415 # This message is too long to be a string in the A/UX 3.1 sh.
1417 \`configure' configures this package to adapt to many kinds of systems.
1419 Usage: $0 [OPTION]... [VAR=VALUE]...
1421 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1422 VAR=VALUE. See below for descriptions of some of the useful variables.
1424 Defaults for the options are specified in brackets.
1427 -h, --help display this help and exit
1428 --help=short display options specific to this package
1429 --help=recursive display the short help of all the included packages
1430 -V, --version display version information and exit
1431 -q, --quiet, --silent do not print \`checking ...' messages
1432 --cache-file=FILE cache test results in FILE [disabled]
1433 -C, --config-cache alias for \`--cache-file=config.cache'
1434 -n, --no-create do not create output files
1435 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1437 Installation directories:
1438 --prefix=PREFIX install architecture-independent files in PREFIX
1439 [$ac_default_prefix]
1440 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1443 By default, \`make install' will install all the files in
1444 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1445 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1446 for instance \`--prefix=\$HOME'.
1448 For better control, use the options below.
1450 Fine tuning of the installation directories:
1451 --bindir=DIR user executables [EPREFIX/bin]
1452 --sbindir=DIR system admin executables [EPREFIX/sbin]
1453 --libexecdir=DIR program executables [EPREFIX/libexec]
1454 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1455 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1456 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1457 --libdir=DIR object code libraries [EPREFIX/lib]
1458 --includedir=DIR C header files [PREFIX/include]
1459 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1460 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1461 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1462 --infodir=DIR info documentation [DATAROOTDIR/info]
1463 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1464 --mandir=DIR man documentation [DATAROOTDIR/man]
1465 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1466 --htmldir=DIR html documentation [DOCDIR]
1467 --dvidir=DIR dvi documentation [DOCDIR]
1468 --pdfdir=DIR pdf documentation [DOCDIR]
1469 --psdir=DIR ps documentation [DOCDIR]
1475 --build=BUILD configure for building on BUILD [guessed]
1476 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1480 if test -n "$ac_init_help"; then
1485 --disable-option-checking ignore unrecognized --enable/--with options
1486 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1487 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1488 --enable-maintainer-mode enable makefile rules useful for maintainers
1489 --enable-symlink-install use symlinks when installing instead of hard links
1490 --enable-relative-symlinks use relative symlinks when installing
1492 --enable-symlink-build use symlinks while building instead of hard links
1493 --enable-verbose-makecmds enable verbose make command output
1494 --enable-compression enable EXPERIMENTAL compression support
1495 --enable-htree enable EXPERIMENTAL htree directory support
1496 --enable-elf-shlibs select ELF shared libraries
1497 --enable-bsd-shlibs select BSD shared libraries
1498 --enable-profile build profiling libraries
1499 --enable-gcov build for coverage testing using gcov
1500 --enable-checker build checker libraries
1501 --enable-jbd-debug enable journal debugging
1502 --enable-blkid-debug enable blkid debugging
1503 --disable-testio-debug disable the use of the test I/O manager for debugging
1504 --disable-libuuid do not build private uuid library
1505 --disable-libblkid do not build private blkid library
1506 --enable-quota enable quota support
1507 --disable-backtrace disable use backtrace
1508 --disable-debugfs disable support of debugfs program
1509 --disable-imager disable support of e2image program
1510 --disable-resizer disable support of e2resize program
1511 --disable-defrag disable support of e4defrag program
1512 --enable-fsck build fsck wrapper program
1513 --enable-e2initrd-helper build e2initrd-helper program
1514 --disable-tls disable use of thread local support
1515 --disable-uuidd disable building the uuid daemon
1516 --disable-mmp disable support mmp, Multi Mount Protection
1517 --disable-bmap-stats disable collection of bitmap stats.
1518 --enable-bmap-stats-ops enable collection of additional bitmap stats
1519 --disable-nls do not use Native Language Support
1520 --disable-rpath do not hardcode runtime library paths
1523 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1524 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1525 --with-diet-libc use diet libc
1526 --with-cc no longer supported, use CC= instead
1527 --with-ccopts no longer supported, use CFLAGS= instead
1528 --with-ldopts no longer supported, use LDFLAGS= instead
1529 --with-root-prefix=PREFIX override prefix variable for files to be placed in the root
1530 --with-gnu-ld assume the C compiler uses GNU ld default=no
1531 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1532 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1533 --with-included-gettext use the GNU gettext library included here
1534 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1535 --without-libintl-prefix don't search for libintl in includedir and libdir
1536 --with-multiarch=ARCH specify the multiarch triplet
1538 Some influential environment variables:
1539 CC C compiler command
1540 CFLAGS C compiler flags
1541 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1542 nonstandard directory <lib dir>
1543 LIBS libraries to pass to the linker, e.g. -l<library>
1544 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1545 you have headers in a nonstandard directory <include dir>
1547 PKG_CONFIG path to pkg-config utility
1549 Use these variables to override the choices made by `configure' or to help
1550 it to find libraries and programs with nonstandard names/locations.
1552 Report bugs to the package provider.
1557 if test "$ac_init_help" = "recursive"; then
1558 # If there are subdirs, report their specific --help.
1559 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1560 test -d "$ac_dir" ||
1561 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1566 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1568 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1569 # A ".." for each directory in $ac_dir_suffix.
1570 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1571 case $ac_top_builddir_sub in
1572 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1573 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1576 ac_abs_top_builddir=$ac_pwd
1577 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1578 # for backward compatibility:
1579 ac_top_builddir=$ac_top_build_prefix
1582 .) # We are building in place.
1584 ac_top_srcdir=$ac_top_builddir_sub
1585 ac_abs_top_srcdir=$ac_pwd ;;
1586 [\\/]* | ?:[\\/]* ) # Absolute name.
1587 ac_srcdir=$srcdir$ac_dir_suffix;
1588 ac_top_srcdir=$srcdir
1589 ac_abs_top_srcdir=$srcdir ;;
1591 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1592 ac_top_srcdir=$ac_top_build_prefix$srcdir
1593 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1595 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1597 cd "$ac_dir" || { ac_status=$?; continue; }
1598 # Check for guested configure.
1599 if test -f "$ac_srcdir/configure.gnu"; then
1601 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1602 elif test -f "$ac_srcdir/configure"; then
1604 $SHELL "$ac_srcdir/configure" --help=recursive
1606 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1608 cd "$ac_pwd" || { ac_status=$?; break; }
1612 test -n "$ac_init_help" && exit $ac_status
1613 if $ac_init_version; then
1616 generated by GNU Autoconf 2.69
1618 Copyright (C) 2012 Free Software Foundation, Inc.
1619 This configure script is free software; the Free Software Foundation
1620 gives unlimited permission to copy, distribute and modify it.
1625 ## ------------------------ ##
1626 ## Autoconf initialization. ##
1627 ## ------------------------ ##
1629 # ac_fn_c_try_compile LINENO
1630 # --------------------------
1631 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1632 ac_fn_c_try_compile ()
1634 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1635 rm -f conftest.$ac_objext
1636 if { { ac_try="$ac_compile"
1638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1639 *) ac_try_echo=$ac_try;;
1641 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1642 $as_echo "$ac_try_echo"; } >&5
1643 (eval "$ac_compile") 2>conftest.err
1645 if test -s conftest.err; then
1646 grep -v '^ *+' conftest.err >conftest.er1
1647 cat conftest.er1 >&5
1648 mv -f conftest.er1 conftest.err
1650 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1651 test $ac_status = 0; } && {
1652 test -z "$ac_c_werror_flag" ||
1653 test ! -s conftest.err
1654 } && test -s conftest.$ac_objext; then :
1657 $as_echo "$as_me: failed program was:" >&5
1658 sed 's/^/| /' conftest.$ac_ext >&5
1662 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1663 as_fn_set_status $ac_retval
1665 } # ac_fn_c_try_compile
1667 # ac_fn_c_try_link LINENO
1668 # -----------------------
1669 # Try to link conftest.$ac_ext, and return whether this succeeded.
1672 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1673 rm -f conftest.$ac_objext conftest$ac_exeext
1674 if { { ac_try="$ac_link"
1676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1677 *) ac_try_echo=$ac_try;;
1679 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1680 $as_echo "$ac_try_echo"; } >&5
1681 (eval "$ac_link") 2>conftest.err
1683 if test -s conftest.err; then
1684 grep -v '^ *+' conftest.err >conftest.er1
1685 cat conftest.er1 >&5
1686 mv -f conftest.er1 conftest.err
1688 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1689 test $ac_status = 0; } && {
1690 test -z "$ac_c_werror_flag" ||
1691 test ! -s conftest.err
1692 } && test -s conftest$ac_exeext && {
1693 test "$cross_compiling" = yes ||
1694 test -x conftest$ac_exeext
1698 $as_echo "$as_me: failed program was:" >&5
1699 sed 's/^/| /' conftest.$ac_ext >&5
1703 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1704 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1705 # interfere with the next link command; also delete a directory that is
1706 # left behind by Apple's compiler. We do this before executing the actions.
1707 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1708 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1709 as_fn_set_status $ac_retval
1711 } # ac_fn_c_try_link
1713 # ac_fn_c_try_cpp LINENO
1714 # ----------------------
1715 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1718 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1719 if { { ac_try="$ac_cpp conftest.$ac_ext"
1721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1722 *) ac_try_echo=$ac_try;;
1724 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1725 $as_echo "$ac_try_echo"; } >&5
1726 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1728 if test -s conftest.err; then
1729 grep -v '^ *+' conftest.err >conftest.er1
1730 cat conftest.er1 >&5
1731 mv -f conftest.er1 conftest.err
1733 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1734 test $ac_status = 0; } > conftest.i && {
1735 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1736 test ! -s conftest.err
1740 $as_echo "$as_me: failed program was:" >&5
1741 sed 's/^/| /' conftest.$ac_ext >&5
1745 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1746 as_fn_set_status $ac_retval
1750 # ac_fn_c_try_run LINENO
1751 # ----------------------
1752 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1753 # that executables *can* be run.
1756 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1757 if { { ac_try="$ac_link"
1759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1760 *) ac_try_echo=$ac_try;;
1762 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1763 $as_echo "$ac_try_echo"; } >&5
1764 (eval "$ac_link") 2>&5
1766 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1767 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1768 { { case "(($ac_try" in
1769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1770 *) ac_try_echo=$ac_try;;
1772 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1773 $as_echo "$ac_try_echo"; } >&5
1774 (eval "$ac_try") 2>&5
1776 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1777 test $ac_status = 0; }; }; then :
1780 $as_echo "$as_me: program exited with status $ac_status" >&5
1781 $as_echo "$as_me: failed program was:" >&5
1782 sed 's/^/| /' conftest.$ac_ext >&5
1784 ac_retval=$ac_status
1786 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1787 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1788 as_fn_set_status $ac_retval
1792 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1793 # -------------------------------------------
1794 # Tests whether TYPE exists after having included INCLUDES, setting cache
1795 # variable VAR accordingly.
1796 ac_fn_c_check_type ()
1798 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1800 $as_echo_n "checking for $2... " >&6; }
1801 if eval \${$3+:} false; then :
1802 $as_echo_n "(cached) " >&6
1805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1806 /* end confdefs.h. */
1817 if ac_fn_c_try_compile "$LINENO"; then :
1818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1819 /* end confdefs.h. */
1830 if ac_fn_c_try_compile "$LINENO"; then :
1835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1841 $as_echo "$ac_res" >&6; }
1842 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1844 } # ac_fn_c_check_type
1846 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1847 # -------------------------------------------------------
1848 # Tests whether HEADER exists and can be compiled using the include files in
1849 # INCLUDES, setting the cache variable VAR accordingly.
1850 ac_fn_c_check_header_compile ()
1852 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1854 $as_echo_n "checking for $2... " >&6; }
1855 if eval \${$3+:} false; then :
1856 $as_echo_n "(cached) " >&6
1858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1859 /* end confdefs.h. */
1863 if ac_fn_c_try_compile "$LINENO"; then :
1868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1872 $as_echo "$ac_res" >&6; }
1873 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1875 } # ac_fn_c_check_header_compile
1877 # ac_fn_c_check_func LINENO FUNC VAR
1878 # ----------------------------------
1879 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1880 ac_fn_c_check_func ()
1882 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1884 $as_echo_n "checking for $2... " >&6; }
1885 if eval \${$3+:} false; then :
1886 $as_echo_n "(cached) " >&6
1888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1889 /* end confdefs.h. */
1890 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1891 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1892 #define $2 innocuous_$2
1894 /* System header to define __stub macros and hopefully few prototypes,
1895 which can conflict with char $2 (); below.
1896 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1897 <limits.h> exists even on freestanding compilers. */
1900 # include <limits.h>
1902 # include <assert.h>
1907 /* Override any GCC internal prototype to avoid an error.
1908 Use char because int might match the return type of a GCC
1909 builtin and then its argument prototype would still apply. */
1914 /* The GNU C library defines this for functions which it implements
1915 to always fail with ENOSYS. Some functions are actually named
1916 something starting with __ and the normal name is an alias. */
1917 #if defined __stub_$2 || defined __stub___$2
1929 if ac_fn_c_try_link "$LINENO"; then :
1934 rm -f core conftest.err conftest.$ac_objext \
1935 conftest$ac_exeext conftest.$ac_ext
1938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1939 $as_echo "$ac_res" >&6; }
1940 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1942 } # ac_fn_c_check_func
1944 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1945 # -------------------------------------------------------
1946 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1947 # the include files in INCLUDES and setting the cache variable VAR
1949 ac_fn_c_check_header_mongrel ()
1951 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1952 if eval \${$3+:} false; then :
1953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1954 $as_echo_n "checking for $2... " >&6; }
1955 if eval \${$3+:} false; then :
1956 $as_echo_n "(cached) " >&6
1959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1960 $as_echo "$ac_res" >&6; }
1962 # Is the header compilable?
1963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1964 $as_echo_n "checking $2 usability... " >&6; }
1965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1966 /* end confdefs.h. */
1970 if ac_fn_c_try_compile "$LINENO"; then :
1971 ac_header_compiler=yes
1973 ac_header_compiler=no
1975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1977 $as_echo "$ac_header_compiler" >&6; }
1979 # Is the header present?
1980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1981 $as_echo_n "checking $2 presence... " >&6; }
1982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1983 /* end confdefs.h. */
1986 if ac_fn_c_try_cpp "$LINENO"; then :
1987 ac_header_preproc=yes
1989 ac_header_preproc=no
1991 rm -f conftest.err conftest.i conftest.$ac_ext
1992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1993 $as_echo "$ac_header_preproc" >&6; }
1995 # So? What about this header?
1996 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1998 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1999 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2000 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2001 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2004 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2005 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2006 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2007 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2008 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2009 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2010 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2011 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2012 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2013 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2017 $as_echo_n "checking for $2... " >&6; }
2018 if eval \${$3+:} false; then :
2019 $as_echo_n "(cached) " >&6
2021 eval "$3=\$ac_header_compiler"
2024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2025 $as_echo "$ac_res" >&6; }
2027 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2029 } # ac_fn_c_check_header_mongrel
2031 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2032 # --------------------------------------------
2033 # Tries to find the compile-time value of EXPR in a program that includes
2034 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2036 ac_fn_c_compute_int ()
2038 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2039 if test "$cross_compiling" = yes; then
2040 # Depending upon the size, compute the lo and hi bounds.
2041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2042 /* end confdefs.h. */
2047 static int test_array [1 - 2 * !(($2) >= 0)];
2049 return test_array [0];
2055 if ac_fn_c_try_compile "$LINENO"; then :
2058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2059 /* end confdefs.h. */
2064 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2066 return test_array [0];
2072 if ac_fn_c_try_compile "$LINENO"; then :
2073 ac_hi=$ac_mid; break
2075 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2076 if test $ac_lo -le $ac_mid; then
2080 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2086 /* end confdefs.h. */
2091 static int test_array [1 - 2 * !(($2) < 0)];
2093 return test_array [0];
2099 if ac_fn_c_try_compile "$LINENO"; then :
2102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2103 /* end confdefs.h. */
2108 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2110 return test_array [0];
2116 if ac_fn_c_try_compile "$LINENO"; then :
2117 ac_lo=$ac_mid; break
2119 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2120 if test $ac_mid -le $ac_hi; then
2124 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2134 # Binary search between lo and hi bounds.
2135 while test "x$ac_lo" != "x$ac_hi"; do
2136 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2138 /* end confdefs.h. */
2143 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2145 return test_array [0];
2151 if ac_fn_c_try_compile "$LINENO"; then :
2154 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2159 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2164 /* end confdefs.h. */
2166 static long int longval () { return $2; }
2167 static unsigned long int ulongval () { return $2; }
2174 FILE *f = fopen ("conftest.val", "w");
2179 long int i = longval ();
2182 fprintf (f, "%ld", i);
2186 unsigned long int i = ulongval ();
2189 fprintf (f, "%lu", i);
2191 /* Do not output a trailing newline, as this causes \r\n confusion
2192 on some platforms. */
2193 return ferror (f) || fclose (f) != 0;
2199 if ac_fn_c_try_run "$LINENO"; then :
2200 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2204 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2205 conftest.$ac_objext conftest.beam conftest.$ac_ext
2209 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2210 as_fn_set_status $ac_retval
2212 } # ac_fn_c_compute_int
2214 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2215 # ----------------------------------------------------
2216 # Tries to find if the field MEMBER exists in type AGGR, after including
2217 # INCLUDES, setting cache variable VAR accordingly.
2218 ac_fn_c_check_member ()
2220 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2222 $as_echo_n "checking for $2.$3... " >&6; }
2223 if eval \${$4+:} false; then :
2224 $as_echo_n "(cached) " >&6
2226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2227 /* end confdefs.h. */
2239 if ac_fn_c_try_compile "$LINENO"; then :
2242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2243 /* end confdefs.h. */
2249 if (sizeof ac_aggr.$3)
2255 if ac_fn_c_try_compile "$LINENO"; then :
2260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2266 $as_echo "$ac_res" >&6; }
2267 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2269 } # ac_fn_c_check_member
2271 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2272 # ---------------------------------------------
2273 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2275 ac_fn_c_check_decl ()
2277 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2278 as_decl_name=`echo $2|sed 's/ *(.*//'`
2279 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2281 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2282 if eval \${$3+:} false; then :
2283 $as_echo_n "(cached) " >&6
2285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2286 /* end confdefs.h. */
2291 #ifndef $as_decl_name
2293 (void) $as_decl_use;
2295 (void) $as_decl_name;
2303 if ac_fn_c_try_compile "$LINENO"; then :
2308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2312 $as_echo "$ac_res" >&6; }
2313 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2315 } # ac_fn_c_check_decl
2316 cat >config.log <<_ACEOF
2317 This file contains any messages produced by compilers while
2318 running configure, to aid debugging if configure makes a mistake.
2320 It was created by $as_me, which was
2321 generated by GNU Autoconf 2.69. Invocation command line was
2333 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2334 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2335 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2336 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2337 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2339 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2340 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2342 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2343 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2344 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2345 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2346 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2347 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2348 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2356 test -z "$as_dir" && as_dir=.
2357 $as_echo "PATH: $as_dir"
2373 # Keep a trace of the command line.
2374 # Strip out --no-create and --no-recursion so they do not pile up.
2375 # Strip out --silent because we don't want to record it for future runs.
2376 # Also quote any args containing shell meta-characters.
2377 # Make two passes to allow for proper duplicate-argument suppression.
2381 ac_must_keep_next=false
2387 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2388 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2389 | -silent | --silent | --silen | --sile | --sil)
2392 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2395 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2397 as_fn_append ac_configure_args1 " '$ac_arg'"
2398 if test $ac_must_keep_next = true; then
2399 ac_must_keep_next=false # Got value, back to normal.
2402 *=* | --config-cache | -C | -disable-* | --disable-* \
2403 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2404 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2405 | -with-* | --with-* | -without-* | --without-* | --x)
2406 case "$ac_configure_args0 " in
2407 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2410 -* ) ac_must_keep_next=true ;;
2413 as_fn_append ac_configure_args " '$ac_arg'"
2418 { ac_configure_args0=; unset ac_configure_args0;}
2419 { ac_configure_args1=; unset ac_configure_args1;}
2421 # When interrupted or exit'd, cleanup temporary files, and complete
2422 # config.log. We remove comments because anyway the quotes in there
2423 # would cause problems or look ugly.
2424 # WARNING: Use '\'' to represent an apostrophe within the trap.
2425 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2426 trap 'exit_status=$?
2427 # Save into config.log some information that might help in debugging.
2431 $as_echo "## ---------------- ##
2432 ## Cache variables. ##
2433 ## ---------------- ##"
2435 # The following way of writing the cache mishandles newlines in values,
2437 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2438 eval ac_val=\$$ac_var
2442 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2443 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2446 _ | IFS | as_nl) ;; #(
2447 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2448 *) { eval $ac_var=; unset $ac_var;} ;;
2453 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2454 *${as_nl}ac_space=\ *)
2456 "s/'\''/'\''\\\\'\'''\''/g;
2457 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2460 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2467 $as_echo "## ----------------- ##
2468 ## Output variables. ##
2469 ## ----------------- ##"
2471 for ac_var in $ac_subst_vars
2473 eval ac_val=\$$ac_var
2475 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2477 $as_echo "$ac_var='\''$ac_val'\''"
2481 if test -n "$ac_subst_files"; then
2482 $as_echo "## ------------------- ##
2483 ## File substitutions. ##
2484 ## ------------------- ##"
2486 for ac_var in $ac_subst_files
2488 eval ac_val=\$$ac_var
2490 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2492 $as_echo "$ac_var='\''$ac_val'\''"
2497 if test -s confdefs.h; then
2498 $as_echo "## ----------- ##
2505 test "$ac_signal" != 0 &&
2506 $as_echo "$as_me: caught signal $ac_signal"
2507 $as_echo "$as_me: exit $exit_status"
2509 rm -f core *.core core.conftest.* &&
2510 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2513 for ac_signal in 1 2 13 15; do
2514 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2518 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2519 rm -f -r conftest* confdefs.h
2521 $as_echo "/* confdefs.h */" > confdefs.h
2523 # Predefined preprocessor variables.
2525 cat >>confdefs.h <<_ACEOF
2526 #define PACKAGE_NAME "$PACKAGE_NAME"
2529 cat >>confdefs.h <<_ACEOF
2530 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2533 cat >>confdefs.h <<_ACEOF
2534 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2537 cat >>confdefs.h <<_ACEOF
2538 #define PACKAGE_STRING "$PACKAGE_STRING"
2541 cat >>confdefs.h <<_ACEOF
2542 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2545 cat >>confdefs.h <<_ACEOF
2546 #define PACKAGE_URL "$PACKAGE_URL"
2550 # Let the site file select an alternate cache file if it wants to.
2551 # Prefer an explicitly selected file to automatically selected ones.
2554 if test -n "$CONFIG_SITE"; then
2555 # We do not want a PATH search for config.site.
2556 case $CONFIG_SITE in #((
2557 -*) ac_site_file1=./$CONFIG_SITE;;
2558 */*) ac_site_file1=$CONFIG_SITE;;
2559 *) ac_site_file1=./$CONFIG_SITE;;
2561 elif test "x$prefix" != xNONE; then
2562 ac_site_file1=$prefix/share/config.site
2563 ac_site_file2=$prefix/etc/config.site
2565 ac_site_file1=$ac_default_prefix/share/config.site
2566 ac_site_file2=$ac_default_prefix/etc/config.site
2568 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2570 test "x$ac_site_file" = xNONE && continue
2571 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2572 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2573 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2574 sed 's/^/| /' "$ac_site_file" >&5
2576 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2577 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2578 as_fn_error $? "failed to load site script $ac_site_file
2579 See \`config.log' for more details" "$LINENO" 5; }
2583 if test -r "$cache_file"; then
2584 # Some versions of bash will fail to source /dev/null (special files
2585 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2586 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2587 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2588 $as_echo "$as_me: loading cache $cache_file" >&6;}
2590 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2591 *) . "./$cache_file";;
2595 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2596 $as_echo "$as_me: creating cache $cache_file" >&6;}
2600 as_fn_append ac_header_list " stdlib.h"
2601 as_fn_append ac_header_list " unistd.h"
2602 as_fn_append ac_header_list " sys/param.h"
2603 # Check that the precious variables saved in the cache have kept the same
2605 ac_cache_corrupted=false
2606 for ac_var in $ac_precious_vars; do
2607 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2608 eval ac_new_set=\$ac_env_${ac_var}_set
2609 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2610 eval ac_new_val=\$ac_env_${ac_var}_value
2611 case $ac_old_set,$ac_new_set in
2613 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2614 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2615 ac_cache_corrupted=: ;;
2617 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2618 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2619 ac_cache_corrupted=: ;;
2622 if test "x$ac_old_val" != "x$ac_new_val"; then
2623 # differences in whitespace do not lead to failure.
2624 ac_old_val_w=`echo x $ac_old_val`
2625 ac_new_val_w=`echo x $ac_new_val`
2626 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2627 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2628 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2629 ac_cache_corrupted=:
2631 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2632 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2633 eval $ac_var=\$ac_old_val
2635 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2636 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2637 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2638 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2641 # Pass precious variables to config.status.
2642 if test "$ac_new_set" = set; then
2644 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2645 *) ac_arg=$ac_var=$ac_new_val ;;
2647 case " $ac_configure_args " in
2648 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2649 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2653 if $ac_cache_corrupted; then
2654 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2655 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2656 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2657 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2658 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2660 ## -------------------- ##
2661 ## Main body of script. ##
2662 ## -------------------- ##
2665 ac_cpp='$CPP $CPPFLAGS'
2666 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2667 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2668 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2673 for ac_dir in config "$srcdir"/config; do
2674 if test -f "$ac_dir/install-sh"; then
2676 ac_install_sh="$ac_aux_dir/install-sh -c"
2678 elif test -f "$ac_dir/install.sh"; then
2680 ac_install_sh="$ac_aux_dir/install.sh -c"
2682 elif test -f "$ac_dir/shtool"; then
2684 ac_install_sh="$ac_aux_dir/shtool install -c"
2688 if test -z "$ac_aux_dir"; then
2689 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2692 # These three variables are undocumented and unsupported,
2693 # and are intended to be withdrawn in a future Autoconf release.
2694 # They can cause serious problems if a builder's source tree is in a directory
2695 # whose full name contains unusual characters.
2696 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2697 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2698 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2701 ac_config_headers="$ac_config_headers lib/config.h"
2707 E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \
2708 | awk '{print $3}' | tr \" " " | awk '{print $1}'`
2709 DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
2711 E2FSPROGS_DAY=`echo $DATE | awk -F- '{print $1}'`
2712 MONTH=`echo $DATE | awk -F- '{print $2}'`
2713 YEAR=`echo $DATE | awk -F- '{print $3}'`
2715 if expr $YEAR ">" 1900 > /dev/null ; then
2716 E2FSPROGS_YEAR=$YEAR
2717 elif expr $YEAR ">" 90 >/dev/null ; then
2718 E2FSPROGS_YEAR=19$YEAR
2720 E2FSPROGS_YEAR=20$YEAR
2724 Jan) MONTH_NUM=01; E2FSPROGS_MONTH="January" ;;
2725 Feb) MONTH_NUM=02; E2FSPROGS_MONTH="February" ;;
2726 Mar) MONTH_NUM=03; E2FSPROGS_MONTH="March" ;;
2727 Apr) MONTH_NUM=04; E2FSPROGS_MONTH="April" ;;
2728 May) MONTH_NUM=05; E2FSPROGS_MONTH="May" ;;
2729 Jun) MONTH_NUM=06; E2FSPROGS_MONTH="June" ;;
2730 Jul) MONTH_NUM=07; E2FSPROGS_MONTH="July" ;;
2731 Aug) MONTH_NUM=08; E2FSPROGS_MONTH="August" ;;
2732 Sep) MONTH_NUM=09; E2FSPROGS_MONTH="September" ;;
2733 Oct) MONTH_NUM=10; E2FSPROGS_MONTH="October" ;;
2734 Nov) MONTH_NUM=11; E2FSPROGS_MONTH="November" ;;
2735 Dec) MONTH_NUM=12; E2FSPROGS_MONTH="December" ;;
2736 *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unknown month $MONTH??" >&5
2737 $as_echo "$as_me: WARNING: Unknown month $MONTH??" >&2;} ;;
2740 base_ver=`echo $E2FSPROGS_VERSION | \
2741 sed -e 's/-WIP//' -e 's/pre-//' -e 's/-PLUS//'`
2743 date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY}
2745 case $E2FSPROGS_VERSION in
2747 E2FSPROGS_PKGVER="$base_ver~WIP-$E2FSPROGS_YEAR-$MONTH_NUM-$E2FSPROGS_DAY"
2750 E2FSPROGS_PKGVER="$base_ver"
2754 unset DATE MONTH YEAR base_ver pre_vers date_spec
2755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&5
2756 $as_echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&6; }
2757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&5
2758 $as_echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&6; }
2766 # Check whether --with-diet-libc was given.
2767 if test "${with_diet_libc+set}" = set; then :
2768 withval=$with_diet_libc; CC="diet cc -nostdinc"
2774 LIBS="$LIBS -lcompat"
2776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: CC=$CC" >&5
2777 $as_echo "CC=$CC" >&6; }
2779 # Make sure we can run config.sub.
2780 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2781 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2784 $as_echo_n "checking build system type... " >&6; }
2785 if ${ac_cv_build+:} false; then :
2786 $as_echo_n "(cached) " >&6
2788 ac_build_alias=$build_alias
2789 test "x$ac_build_alias" = x &&
2790 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2791 test "x$ac_build_alias" = x &&
2792 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2793 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2794 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2798 $as_echo "$ac_cv_build" >&6; }
2799 case $ac_cv_build in
2801 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2804 ac_save_IFS=$IFS; IFS='-'
2810 # Remember, the first character of IFS is used to create $*,
2811 # except with old shells:
2814 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2818 $as_echo_n "checking host system type... " >&6; }
2819 if ${ac_cv_host+:} false; then :
2820 $as_echo_n "(cached) " >&6
2822 if test "x$host_alias" = x; then
2823 ac_cv_host=$ac_cv_build
2825 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2826 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2831 $as_echo "$ac_cv_host" >&6; }
2834 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2837 ac_save_IFS=$IFS; IFS='-'
2843 # Remember, the first character of IFS is used to create $*,
2844 # except with old shells:
2847 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2852 ac_cpp='$CPP $CPPFLAGS'
2853 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2854 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2855 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2856 if test -n "$ac_tool_prefix"; then
2857 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2858 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2860 $as_echo_n "checking for $ac_word... " >&6; }
2861 if ${ac_cv_prog_CC+:} false; then :
2862 $as_echo_n "(cached) " >&6
2864 if test -n "$CC"; then
2865 ac_cv_prog_CC="$CC" # Let the user override the test.
2867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2871 test -z "$as_dir" && as_dir=.
2872 for ac_exec_ext in '' $ac_executable_extensions; do
2873 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2874 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2885 if test -n "$CC"; then
2886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2887 $as_echo "$CC" >&6; }
2889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2890 $as_echo "no" >&6; }
2895 if test -z "$ac_cv_prog_CC"; then
2897 # Extract the first word of "gcc", so it can be a program name with args.
2898 set dummy gcc; ac_word=$2
2899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2900 $as_echo_n "checking for $ac_word... " >&6; }
2901 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2902 $as_echo_n "(cached) " >&6
2904 if test -n "$ac_ct_CC"; then
2905 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2911 test -z "$as_dir" && as_dir=.
2912 for ac_exec_ext in '' $ac_executable_extensions; do
2913 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2914 ac_cv_prog_ac_ct_CC="gcc"
2915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2924 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2925 if test -n "$ac_ct_CC"; then
2926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2927 $as_echo "$ac_ct_CC" >&6; }
2929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2930 $as_echo "no" >&6; }
2933 if test "x$ac_ct_CC" = x; then
2936 case $cross_compiling:$ac_tool_warned in
2938 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2939 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2940 ac_tool_warned=yes ;;
2948 if test -z "$CC"; then
2949 if test -n "$ac_tool_prefix"; then
2950 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2951 set dummy ${ac_tool_prefix}cc; ac_word=$2
2952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2953 $as_echo_n "checking for $ac_word... " >&6; }
2954 if ${ac_cv_prog_CC+:} false; then :
2955 $as_echo_n "(cached) " >&6
2957 if test -n "$CC"; then
2958 ac_cv_prog_CC="$CC" # Let the user override the test.
2960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2964 test -z "$as_dir" && as_dir=.
2965 for ac_exec_ext in '' $ac_executable_extensions; do
2966 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2967 ac_cv_prog_CC="${ac_tool_prefix}cc"
2968 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2978 if test -n "$CC"; then
2979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2980 $as_echo "$CC" >&6; }
2982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2983 $as_echo "no" >&6; }
2989 if test -z "$CC"; then
2990 # Extract the first word of "cc", so it can be a program name with args.
2991 set dummy cc; ac_word=$2
2992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2993 $as_echo_n "checking for $ac_word... " >&6; }
2994 if ${ac_cv_prog_CC+:} false; then :
2995 $as_echo_n "(cached) " >&6
2997 if test -n "$CC"; then
2998 ac_cv_prog_CC="$CC" # Let the user override the test.
3001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3005 test -z "$as_dir" && as_dir=.
3006 for ac_exec_ext in '' $ac_executable_extensions; do
3007 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3008 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3009 ac_prog_rejected=yes
3013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3020 if test $ac_prog_rejected = yes; then
3021 # We found a bogon in the path, so make sure we never use it.
3022 set dummy $ac_cv_prog_CC
3024 if test $# != 0; then
3025 # We chose a different compiler from the bogus one.
3026 # However, it has the same basename, so the bogon will be chosen
3027 # first if we set CC to just the basename; use the full file name.
3029 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3035 if test -n "$CC"; then
3036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3037 $as_echo "$CC" >&6; }
3039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3040 $as_echo "no" >&6; }
3045 if test -z "$CC"; then
3046 if test -n "$ac_tool_prefix"; then
3047 for ac_prog in cl.exe
3049 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3050 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3052 $as_echo_n "checking for $ac_word... " >&6; }
3053 if ${ac_cv_prog_CC+:} false; then :
3054 $as_echo_n "(cached) " >&6
3056 if test -n "$CC"; then
3057 ac_cv_prog_CC="$CC" # Let the user override the test.
3059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3063 test -z "$as_dir" && as_dir=.
3064 for ac_exec_ext in '' $ac_executable_extensions; do
3065 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3066 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3067 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3077 if test -n "$CC"; then
3078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3079 $as_echo "$CC" >&6; }
3081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3082 $as_echo "no" >&6; }
3086 test -n "$CC" && break
3089 if test -z "$CC"; then
3091 for ac_prog in cl.exe
3093 # Extract the first word of "$ac_prog", so it can be a program name with args.
3094 set dummy $ac_prog; ac_word=$2
3095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3096 $as_echo_n "checking for $ac_word... " >&6; }
3097 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3098 $as_echo_n "(cached) " >&6
3100 if test -n "$ac_ct_CC"; then
3101 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3107 test -z "$as_dir" && as_dir=.
3108 for ac_exec_ext in '' $ac_executable_extensions; do
3109 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3110 ac_cv_prog_ac_ct_CC="$ac_prog"
3111 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3120 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3121 if test -n "$ac_ct_CC"; then
3122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3123 $as_echo "$ac_ct_CC" >&6; }
3125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3126 $as_echo "no" >&6; }
3130 test -n "$ac_ct_CC" && break
3133 if test "x$ac_ct_CC" = x; then
3136 case $cross_compiling:$ac_tool_warned in
3138 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3139 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3140 ac_tool_warned=yes ;;
3149 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3150 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3151 as_fn_error $? "no acceptable C compiler found in \$PATH
3152 See \`config.log' for more details" "$LINENO" 5; }
3154 # Provide some information about the compiler.
3155 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3158 for ac_option in --version -v -V -qversion; do
3159 { { ac_try="$ac_compiler $ac_option >&5"
3161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3162 *) ac_try_echo=$ac_try;;
3164 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3165 $as_echo "$ac_try_echo"; } >&5
3166 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3168 if test -s conftest.err; then
3170 ... rest of stderr output deleted ...
3171 10q' conftest.err >conftest.er1
3172 cat conftest.er1 >&5
3174 rm -f conftest.er1 conftest.err
3175 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3176 test $ac_status = 0; }
3179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3180 /* end confdefs.h. */
3190 ac_clean_files_save=$ac_clean_files
3191 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3192 # Try to create an executable without -o first, disregard a.out.
3193 # It will help us diagnose broken compilers, and finding out an intuition
3195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3196 $as_echo_n "checking whether the C compiler works... " >&6; }
3197 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3199 # The possible output files:
3200 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3203 for ac_file in $ac_files
3206 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3207 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3212 if { { ac_try="$ac_link_default"
3214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3215 *) ac_try_echo=$ac_try;;
3217 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3218 $as_echo "$ac_try_echo"; } >&5
3219 (eval "$ac_link_default") 2>&5
3221 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3222 test $ac_status = 0; }; then :
3223 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3224 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3225 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3226 # so that the user can short-circuit this test for compilers unknown to
3228 for ac_file in $ac_files ''
3230 test -f "$ac_file" || continue
3232 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3235 # We found the default executable, but exeext='' is most
3239 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3241 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3243 # We set ac_cv_exeext here because the later test for it is not
3244 # safe: cross compilers may not add the suffix if given an `-o'
3245 # argument, so we may need to know it at that point already.
3246 # Even if this section looks crufty: it has the advantage of
3253 test "$ac_cv_exeext" = no && ac_cv_exeext=
3258 if test -z "$ac_file"; then :
3259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3260 $as_echo "no" >&6; }
3261 $as_echo "$as_me: failed program was:" >&5
3262 sed 's/^/| /' conftest.$ac_ext >&5
3264 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3265 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3266 as_fn_error 77 "C compiler cannot create executables
3267 See \`config.log' for more details" "$LINENO" 5; }
3269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3270 $as_echo "yes" >&6; }
3272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3273 $as_echo_n "checking for C compiler default output file name... " >&6; }
3274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3275 $as_echo "$ac_file" >&6; }
3276 ac_exeext=$ac_cv_exeext
3278 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3279 ac_clean_files=$ac_clean_files_save
3280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3281 $as_echo_n "checking for suffix of executables... " >&6; }
3282 if { { ac_try="$ac_link"
3284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3285 *) ac_try_echo=$ac_try;;
3287 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3288 $as_echo "$ac_try_echo"; } >&5
3289 (eval "$ac_link") 2>&5
3291 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3292 test $ac_status = 0; }; then :
3293 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3294 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3295 # work properly (i.e., refer to `conftest.exe'), while it won't with
3297 for ac_file in conftest.exe conftest conftest.*; do
3298 test -f "$ac_file" || continue
3300 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3301 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3307 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3308 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3309 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3310 See \`config.log' for more details" "$LINENO" 5; }
3312 rm -f conftest conftest$ac_cv_exeext
3313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3314 $as_echo "$ac_cv_exeext" >&6; }
3316 rm -f conftest.$ac_ext
3317 EXEEXT=$ac_cv_exeext
3319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3320 /* end confdefs.h. */
3325 FILE *f = fopen ("conftest.out", "w");
3326 return ferror (f) || fclose (f) != 0;
3332 ac_clean_files="$ac_clean_files conftest.out"
3333 # Check that the compiler produces executables we can run. If not, either
3334 # the compiler is broken, or we cross compile.
3335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3336 $as_echo_n "checking whether we are cross compiling... " >&6; }
3337 if test "$cross_compiling" != yes; then
3338 { { ac_try="$ac_link"
3340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3341 *) ac_try_echo=$ac_try;;
3343 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3344 $as_echo "$ac_try_echo"; } >&5
3345 (eval "$ac_link") 2>&5
3347 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3348 test $ac_status = 0; }
3349 if { ac_try='./conftest$ac_cv_exeext'
3350 { { case "(($ac_try" in
3351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3352 *) ac_try_echo=$ac_try;;
3354 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3355 $as_echo "$ac_try_echo"; } >&5
3356 (eval "$ac_try") 2>&5
3358 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3359 test $ac_status = 0; }; }; then
3362 if test "$cross_compiling" = maybe; then
3365 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3366 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3367 as_fn_error $? "cannot run C compiled programs.
3368 If you meant to cross compile, use \`--host'.
3369 See \`config.log' for more details" "$LINENO" 5; }
3373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3374 $as_echo "$cross_compiling" >&6; }
3376 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3377 ac_clean_files=$ac_clean_files_save
3378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3379 $as_echo_n "checking for suffix of object files... " >&6; }
3380 if ${ac_cv_objext+:} false; then :
3381 $as_echo_n "(cached) " >&6
3383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3384 /* end confdefs.h. */
3394 rm -f conftest.o conftest.obj
3395 if { { ac_try="$ac_compile"
3397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3398 *) ac_try_echo=$ac_try;;
3400 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3401 $as_echo "$ac_try_echo"; } >&5
3402 (eval "$ac_compile") 2>&5
3404 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3405 test $ac_status = 0; }; then :
3406 for ac_file in conftest.o conftest.obj conftest.*; do
3407 test -f "$ac_file" || continue;
3409 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3410 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3415 $as_echo "$as_me: failed program was:" >&5
3416 sed 's/^/| /' conftest.$ac_ext >&5
3418 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3419 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3420 as_fn_error $? "cannot compute suffix of object files: cannot compile
3421 See \`config.log' for more details" "$LINENO" 5; }
3423 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3426 $as_echo "$ac_cv_objext" >&6; }
3427 OBJEXT=$ac_cv_objext
3429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3430 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3431 if ${ac_cv_c_compiler_gnu+:} false; then :
3432 $as_echo_n "(cached) " >&6
3434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3435 /* end confdefs.h. */
3448 if ac_fn_c_try_compile "$LINENO"; then :
3453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3454 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3458 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3459 if test $ac_compiler_gnu = yes; then
3464 ac_test_CFLAGS=${CFLAGS+set}
3465 ac_save_CFLAGS=$CFLAGS
3466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3467 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3468 if ${ac_cv_prog_cc_g+:} false; then :
3469 $as_echo_n "(cached) " >&6
3471 ac_save_c_werror_flag=$ac_c_werror_flag
3472 ac_c_werror_flag=yes
3475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3476 /* end confdefs.h. */
3486 if ac_fn_c_try_compile "$LINENO"; then :
3490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3491 /* end confdefs.h. */
3501 if ac_fn_c_try_compile "$LINENO"; then :
3504 ac_c_werror_flag=$ac_save_c_werror_flag
3506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3507 /* end confdefs.h. */
3517 if ac_fn_c_try_compile "$LINENO"; then :
3520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3525 ac_c_werror_flag=$ac_save_c_werror_flag
3527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3528 $as_echo "$ac_cv_prog_cc_g" >&6; }
3529 if test "$ac_test_CFLAGS" = set; then
3530 CFLAGS=$ac_save_CFLAGS
3531 elif test $ac_cv_prog_cc_g = yes; then
3532 if test "$GCC" = yes; then
3538 if test "$GCC" = yes; then
3544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3545 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3546 if ${ac_cv_prog_cc_c89+:} false; then :
3547 $as_echo_n "(cached) " >&6
3549 ac_cv_prog_cc_c89=no
3551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3552 /* end confdefs.h. */
3556 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3557 struct buf { int x; };
3558 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3559 static char *e (p, i)
3565 static char *f (char * (*g) (char **, int), char **p, ...)
3570 s = g (p, va_arg (v,int));
3575 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3576 function prototypes and stuff, but not '\xHH' hex character constants.
3577 These don't provoke an error unfortunately, instead are silently treated
3578 as 'x'. The following induces an error, until -std is added to get
3579 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3580 array size at least. It's necessary to write '\x00'==0 to get something
3581 that's true only with -std. */
3582 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3584 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3585 inside strings and character constants. */
3587 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3589 int test (int i, double x);
3590 struct s1 {int (*f) (int a);};
3591 struct s2 {int (*f) (double a);};
3592 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3598 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3603 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3604 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3606 CC="$ac_save_CC $ac_arg"
3607 if ac_fn_c_try_compile "$LINENO"; then :
3608 ac_cv_prog_cc_c89=$ac_arg
3610 rm -f core conftest.err conftest.$ac_objext
3611 test "x$ac_cv_prog_cc_c89" != "xno" && break
3613 rm -f conftest.$ac_ext
3618 case "x$ac_cv_prog_cc_c89" in
3620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3621 $as_echo "none needed" >&6; } ;;
3623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3624 $as_echo "unsupported" >&6; } ;;
3626 CC="$CC $ac_cv_prog_cc_c89"
3627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3628 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3630 if test "x$ac_cv_prog_cc_c89" != xno; then :
3635 ac_cpp='$CPP $CPPFLAGS'
3636 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3637 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3638 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
3642 $as_echo_n "checking for dlopen in -ldl... " >&6; }
3643 if ${ac_cv_lib_dl_dlopen+:} false; then :
3644 $as_echo_n "(cached) " >&6
3646 ac_check_lib_save_LIBS=$LIBS
3648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3649 /* end confdefs.h. */
3651 /* Override any GCC internal prototype to avoid an error.
3652 Use char because int might match the return type of a GCC
3653 builtin and then its argument prototype would still apply. */
3666 if ac_fn_c_try_link "$LINENO"; then :
3667 ac_cv_lib_dl_dlopen=yes
3669 ac_cv_lib_dl_dlopen=no
3671 rm -f core conftest.err conftest.$ac_objext \
3672 conftest$ac_exeext conftest.$ac_ext
3673 LIBS=$ac_check_lib_save_LIBS
3675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
3676 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
3677 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
3680 $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
3686 # Check whether --with-cc was given.
3687 if test "${with_cc+set}" = set; then :
3688 withval=$with_cc; as_fn_error $? "--with-cc no longer supported; use CC= instead" "$LINENO" 5
3692 # Check whether --with-ccopts was given.
3693 if test "${with_ccopts+set}" = set; then :
3694 withval=$with_ccopts; as_fn_error $? "--with-ccopts no longer supported; use CFLAGS= instead" "$LINENO" 5
3698 # Check whether --with-ldopts was given.
3699 if test "${with_ldopts+set}" = set; then :
3700 withval=$with_ldopts; as_fn_error $? "--with-ldopts no longer supported; use LDFLAGS= instead" "$LINENO" 5
3704 ac_cpp='$CPP $CPPFLAGS'
3705 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3706 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3707 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3708 if test -n "$ac_tool_prefix"; then
3709 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3710 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3712 $as_echo_n "checking for $ac_word... " >&6; }
3713 if ${ac_cv_prog_CC+:} false; then :
3714 $as_echo_n "(cached) " >&6
3716 if test -n "$CC"; then
3717 ac_cv_prog_CC="$CC" # Let the user override the test.
3719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3723 test -z "$as_dir" && as_dir=.
3724 for ac_exec_ext in '' $ac_executable_extensions; do
3725 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3726 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3737 if test -n "$CC"; then
3738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3739 $as_echo "$CC" >&6; }
3741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3742 $as_echo "no" >&6; }
3747 if test -z "$ac_cv_prog_CC"; then
3749 # Extract the first word of "gcc", so it can be a program name with args.
3750 set dummy gcc; ac_word=$2
3751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3752 $as_echo_n "checking for $ac_word... " >&6; }
3753 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3754 $as_echo_n "(cached) " >&6
3756 if test -n "$ac_ct_CC"; then
3757 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3763 test -z "$as_dir" && as_dir=.
3764 for ac_exec_ext in '' $ac_executable_extensions; do
3765 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3766 ac_cv_prog_ac_ct_CC="gcc"
3767 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3776 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3777 if test -n "$ac_ct_CC"; then
3778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3779 $as_echo "$ac_ct_CC" >&6; }
3781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3782 $as_echo "no" >&6; }
3785 if test "x$ac_ct_CC" = x; then
3788 case $cross_compiling:$ac_tool_warned in
3790 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3791 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3792 ac_tool_warned=yes ;;
3800 if test -z "$CC"; then
3801 if test -n "$ac_tool_prefix"; then
3802 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3803 set dummy ${ac_tool_prefix}cc; ac_word=$2
3804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3805 $as_echo_n "checking for $ac_word... " >&6; }
3806 if ${ac_cv_prog_CC+:} false; then :
3807 $as_echo_n "(cached) " >&6
3809 if test -n "$CC"; then
3810 ac_cv_prog_CC="$CC" # Let the user override the test.
3812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3816 test -z "$as_dir" && as_dir=.
3817 for ac_exec_ext in '' $ac_executable_extensions; do
3818 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3819 ac_cv_prog_CC="${ac_tool_prefix}cc"
3820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3830 if test -n "$CC"; then
3831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3832 $as_echo "$CC" >&6; }
3834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3835 $as_echo "no" >&6; }
3841 if test -z "$CC"; then
3842 # Extract the first word of "cc", so it can be a program name with args.
3843 set dummy cc; ac_word=$2
3844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3845 $as_echo_n "checking for $ac_word... " >&6; }
3846 if ${ac_cv_prog_CC+:} false; then :
3847 $as_echo_n "(cached) " >&6
3849 if test -n "$CC"; then
3850 ac_cv_prog_CC="$CC" # Let the user override the test.
3853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3857 test -z "$as_dir" && as_dir=.
3858 for ac_exec_ext in '' $ac_executable_extensions; do
3859 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3860 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3861 ac_prog_rejected=yes
3865 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3872 if test $ac_prog_rejected = yes; then
3873 # We found a bogon in the path, so make sure we never use it.
3874 set dummy $ac_cv_prog_CC
3876 if test $# != 0; then
3877 # We chose a different compiler from the bogus one.
3878 # However, it has the same basename, so the bogon will be chosen
3879 # first if we set CC to just the basename; use the full file name.
3881 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3887 if test -n "$CC"; then
3888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3889 $as_echo "$CC" >&6; }
3891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3892 $as_echo "no" >&6; }
3897 if test -z "$CC"; then
3898 if test -n "$ac_tool_prefix"; then
3899 for ac_prog in cl.exe
3901 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3902 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3904 $as_echo_n "checking for $ac_word... " >&6; }
3905 if ${ac_cv_prog_CC+:} false; then :
3906 $as_echo_n "(cached) " >&6
3908 if test -n "$CC"; then
3909 ac_cv_prog_CC="$CC" # Let the user override the test.
3911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3915 test -z "$as_dir" && as_dir=.
3916 for ac_exec_ext in '' $ac_executable_extensions; do
3917 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3918 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3919 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3929 if test -n "$CC"; then
3930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3931 $as_echo "$CC" >&6; }
3933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3934 $as_echo "no" >&6; }
3938 test -n "$CC" && break
3941 if test -z "$CC"; then
3943 for ac_prog in cl.exe
3945 # Extract the first word of "$ac_prog", so it can be a program name with args.
3946 set dummy $ac_prog; ac_word=$2
3947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3948 $as_echo_n "checking for $ac_word... " >&6; }
3949 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3950 $as_echo_n "(cached) " >&6
3952 if test -n "$ac_ct_CC"; then
3953 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3959 test -z "$as_dir" && as_dir=.
3960 for ac_exec_ext in '' $ac_executable_extensions; do
3961 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3962 ac_cv_prog_ac_ct_CC="$ac_prog"
3963 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3972 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3973 if test -n "$ac_ct_CC"; then
3974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3975 $as_echo "$ac_ct_CC" >&6; }
3977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3978 $as_echo "no" >&6; }
3982 test -n "$ac_ct_CC" && break
3985 if test "x$ac_ct_CC" = x; then
3988 case $cross_compiling:$ac_tool_warned in
3990 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3991 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3992 ac_tool_warned=yes ;;
4001 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4002 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4003 as_fn_error $? "no acceptable C compiler found in \$PATH
4004 See \`config.log' for more details" "$LINENO" 5; }
4006 # Provide some information about the compiler.
4007 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4010 for ac_option in --version -v -V -qversion; do
4011 { { ac_try="$ac_compiler $ac_option >&5"
4013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4014 *) ac_try_echo=$ac_try;;
4016 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4017 $as_echo "$ac_try_echo"; } >&5
4018 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4020 if test -s conftest.err; then
4022 ... rest of stderr output deleted ...
4023 10q' conftest.err >conftest.er1
4024 cat conftest.er1 >&5
4026 rm -f conftest.er1 conftest.err
4027 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4028 test $ac_status = 0; }
4031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4032 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4033 if ${ac_cv_c_compiler_gnu+:} false; then :
4034 $as_echo_n "(cached) " >&6
4036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4037 /* end confdefs.h. */
4050 if ac_fn_c_try_compile "$LINENO"; then :
4055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4056 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4060 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4061 if test $ac_compiler_gnu = yes; then
4066 ac_test_CFLAGS=${CFLAGS+set}
4067 ac_save_CFLAGS=$CFLAGS
4068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4069 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4070 if ${ac_cv_prog_cc_g+:} false; then :
4071 $as_echo_n "(cached) " >&6
4073 ac_save_c_werror_flag=$ac_c_werror_flag
4074 ac_c_werror_flag=yes
4077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4078 /* end confdefs.h. */
4088 if ac_fn_c_try_compile "$LINENO"; then :
4092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4093 /* end confdefs.h. */
4103 if ac_fn_c_try_compile "$LINENO"; then :
4106 ac_c_werror_flag=$ac_save_c_werror_flag
4108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4109 /* end confdefs.h. */
4119 if ac_fn_c_try_compile "$LINENO"; then :
4122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4127 ac_c_werror_flag=$ac_save_c_werror_flag
4129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4130 $as_echo "$ac_cv_prog_cc_g" >&6; }
4131 if test "$ac_test_CFLAGS" = set; then
4132 CFLAGS=$ac_save_CFLAGS
4133 elif test $ac_cv_prog_cc_g = yes; then
4134 if test "$GCC" = yes; then
4140 if test "$GCC" = yes; then
4146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4147 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4148 if ${ac_cv_prog_cc_c89+:} false; then :
4149 $as_echo_n "(cached) " >&6
4151 ac_cv_prog_cc_c89=no
4153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4154 /* end confdefs.h. */
4158 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4159 struct buf { int x; };
4160 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4161 static char *e (p, i)
4167 static char *f (char * (*g) (char **, int), char **p, ...)
4172 s = g (p, va_arg (v,int));
4177 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4178 function prototypes and stuff, but not '\xHH' hex character constants.
4179 These don't provoke an error unfortunately, instead are silently treated
4180 as 'x'. The following induces an error, until -std is added to get
4181 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4182 array size at least. It's necessary to write '\x00'==0 to get something
4183 that's true only with -std. */
4184 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4186 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4187 inside strings and character constants. */
4189 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4191 int test (int i, double x);
4192 struct s1 {int (*f) (int a);};
4193 struct s2 {int (*f) (double a);};
4194 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4200 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4205 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4206 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4208 CC="$ac_save_CC $ac_arg"
4209 if ac_fn_c_try_compile "$LINENO"; then :
4210 ac_cv_prog_cc_c89=$ac_arg
4212 rm -f core conftest.err conftest.$ac_objext
4213 test "x$ac_cv_prog_cc_c89" != "xno" && break
4215 rm -f conftest.$ac_ext
4220 case "x$ac_cv_prog_cc_c89" in
4222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4223 $as_echo "none needed" >&6; } ;;
4225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4226 $as_echo "unsupported" >&6; } ;;
4228 CC="$CC $ac_cv_prog_cc_c89"
4229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4230 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4232 if test "x$ac_cv_prog_cc_c89" != xno; then :
4237 ac_cpp='$CPP $CPPFLAGS'
4238 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4239 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4240 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4242 if test "$GCC" = yes; then
4243 RDYNAMIC="-rdynamic"
4247 ac_cpp='$CPP $CPPFLAGS'
4248 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4249 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4250 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4252 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4253 # On Suns, sometimes $CPP names a directory.
4254 if test -n "$CPP" && test -d "$CPP"; then
4257 if test -z "$CPP"; then
4258 if ${ac_cv_prog_CPP+:} false; then :
4259 $as_echo_n "(cached) " >&6
4261 # Double quotes because CPP needs to be expanded
4262 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4265 for ac_c_preproc_warn_flag in '' yes
4267 # Use a header file that comes with gcc, so configuring glibc
4268 # with a fresh cross-compiler works.
4269 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4270 # <limits.h> exists even on freestanding compilers.
4271 # On the NeXT, cc -E runs the code through the compiler's parser,
4272 # not just through cpp. "Syntax error" is here to catch this case.
4273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4274 /* end confdefs.h. */
4276 # include <limits.h>
4278 # include <assert.h>
4282 if ac_fn_c_try_cpp "$LINENO"; then :
4285 # Broken: fails on valid input.
4288 rm -f conftest.err conftest.i conftest.$ac_ext
4290 # OK, works on sane cases. Now check whether nonexistent headers
4291 # can be detected and how.
4292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4293 /* end confdefs.h. */
4294 #include <ac_nonexistent.h>
4296 if ac_fn_c_try_cpp "$LINENO"; then :
4297 # Broken: success on invalid input.
4300 # Passes both tests.
4304 rm -f conftest.err conftest.i conftest.$ac_ext
4307 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4308 rm -f conftest.i conftest.err conftest.$ac_ext
4309 if $ac_preproc_ok; then :
4321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4322 $as_echo "$CPP" >&6; }
4324 for ac_c_preproc_warn_flag in '' yes
4326 # Use a header file that comes with gcc, so configuring glibc
4327 # with a fresh cross-compiler works.
4328 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4329 # <limits.h> exists even on freestanding compilers.
4330 # On the NeXT, cc -E runs the code through the compiler's parser,
4331 # not just through cpp. "Syntax error" is here to catch this case.
4332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4333 /* end confdefs.h. */
4335 # include <limits.h>
4337 # include <assert.h>
4341 if ac_fn_c_try_cpp "$LINENO"; then :
4344 # Broken: fails on valid input.
4347 rm -f conftest.err conftest.i conftest.$ac_ext
4349 # OK, works on sane cases. Now check whether nonexistent headers
4350 # can be detected and how.
4351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4352 /* end confdefs.h. */
4353 #include <ac_nonexistent.h>
4355 if ac_fn_c_try_cpp "$LINENO"; then :
4356 # Broken: success on invalid input.
4359 # Passes both tests.
4363 rm -f conftest.err conftest.i conftest.$ac_ext
4366 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4367 rm -f conftest.i conftest.err conftest.$ac_ext
4368 if $ac_preproc_ok; then :
4371 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4372 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4373 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4374 See \`config.log' for more details" "$LINENO" 5; }
4378 ac_cpp='$CPP $CPPFLAGS'
4379 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4380 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4381 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for additional special compiler flags" >&5
4384 $as_echo_n "checking for additional special compiler flags... " >&6; }
4385 if test "$GCC" = yes
4388 alpha) addcflags="-mieee" ;;
4391 if test "x$addcflags" != x
4393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $addcflags" >&5
4394 $as_echo "$addcflags" >&6; }
4395 CFLAGS="$addcflags $CFLAGS"
4397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (none)" >&5
4398 $as_echo "(none)" >&6; }
4404 # Check whether --with-root-prefix was given.
4405 if test "${with_root_prefix+set}" = set; then :
4406 withval=$with_root_prefix; root_prefix=$withval
4410 # Check whether --enable-maintainer-mode was given.
4411 if test "${enable_maintainer_mode+set}" = set; then :
4412 enableval=$enable_maintainer_mode; if test "$enableval" = "no"
4415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode" >&5
4416 $as_echo "Disabling maintainer mode" >&6; }
4419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling maintainer mode" >&5
4420 $as_echo "Enabling maintainer mode" >&6; }
4425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode by default" >&5
4426 $as_echo "Disabling maintainer mode by default" >&6; }
4431 # Check whether --enable-symlink-install was given.
4432 if test "${enable_symlink_install+set}" = set; then :
4433 enableval=$enable_symlink_install; if test "$enableval" = "no"
4435 LINK_INSTALL_FLAGS=-f
4436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install" >&5
4437 $as_echo "Disabling symlinks for install" >&6; }
4439 LINK_INSTALL_FLAGS=-sf
4440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for install" >&5
4441 $as_echo "Enabling symlinks for install" >&6; }
4445 LINK_INSTALL_FLAGS=-f
4446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install by default" >&5
4447 $as_echo "Disabling symlinks for install by default" >&6; }
4452 relative_symlink_defined=
4453 # Check whether --enable-relative-symlinks was given.
4454 if test "${enable_relative_symlinks+set}" = set; then :
4455 enableval=$enable_relative_symlinks; if test "$enableval" = "no"
4458 relative_symlink_defined=yes
4459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
4460 $as_echo "Disabling relative symlinks for install" >&6; }
4462 SYMLINK_RELATIVE=--relative
4463 relative_symlink_defined=yes
4464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5
4465 $as_echo "Enabling relative symlinks for install" >&6; }
4469 # Check whether --enable-symlink-relative-symlinks was given.
4470 if test "${enable_symlink_relative_symlinks+set}" = set; then :
4471 enableval=$enable_symlink_relative_symlinks; if test "$enableval" = "no"
4473 SYMLINK_RELATIVE=yes
4474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
4475 $as_echo "Disabling relative symlinks for install" >&6; }
4477 SYMLINK_RELATIVE=--relative
4478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5
4479 $as_echo "Enabling relative symlinks for install" >&6; }
4483 if test -z "$relative_symlink_defined"
4486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install by default" >&5
4487 $as_echo "Disabling relative symlinks for install by default" >&6; }
4493 # Check whether --enable-symlink-build was given.
4494 if test "${enable_symlink_build+set}" = set; then :
4495 enableval=$enable_symlink_build; if test "$enableval" = "no"
4498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build" >&5
4499 $as_echo "Disabling symlinks for build" >&6; }
4502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for build" >&5
4503 $as_echo "Enabling symlinks for build" >&6; }
4508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build by default" >&5
4509 $as_echo "Disabling symlinks for build by default" >&6; }
4514 # Check whether --enable-verbose-makecmds was given.
4515 if test "${enable_verbose_makecmds+set}" = set; then :
4516 enableval=$enable_verbose_makecmds; if test "$enableval" = "no"
4518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
4519 $as_echo "Disabling verbose make commands" >&6; }
4524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling verbose make commands" >&5
4525 $as_echo "Enabling verbose make commands" >&6; }
4532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
4533 $as_echo "Disabling verbose make commands" >&6; }
4543 # Check whether --enable-compression was given.
4544 if test "${enable_compression+set}" = set; then :
4545 enableval=$enable_compression; if test "$enableval" = "no"
4547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling compression support" >&5
4548 $as_echo "Disabling compression support" >&6; }
4551 $as_echo "#define ENABLE_COMPRESSION 1" >>confdefs.h
4553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling compression support" >&5
4554 $as_echo "Enabling compression support" >&6; }
4555 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Compression support is experimental" >&5
4556 $as_echo "$as_me: WARNING: Compression support is experimental" >&2;}
4560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling compression support by default" >&5
4561 $as_echo "Disabling compression support by default" >&6; }
4566 # Check whether --enable-htree was given.
4567 if test "${enable_htree+set}" = set; then :
4568 enableval=$enable_htree; if test "$enableval" = "no"
4571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling htree directory support" >&5
4572 $as_echo "Disabling htree directory support" >&6; }
4575 $as_echo "#define ENABLE_HTREE 1" >>confdefs.h
4577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling htree directory support" >&5
4578 $as_echo "Enabling htree directory support" >&6; }
4583 $as_echo "#define ENABLE_HTREE 1" >>confdefs.h
4585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling htree directory support by default" >&5
4586 $as_echo "Enabling htree directory support by default" >&6; }
4591 E2_PKG_CONFIG_STATIC=--static
4594 # Check whether --enable-elf-shlibs was given.
4595 if test "${enable_elf_shlibs+set}" = set; then :
4596 enableval=$enable_elf_shlibs; if test "$enableval" = "no"
4599 MAKEFILE_ELF=/dev/null
4600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries" >&5
4601 $as_echo "Disabling ELF shared libraries" >&6; }
4603 E2_PKG_CONFIG_STATIC=
4605 MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
4608 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
4614 LDFLAG_DYNAMIC='-Wl,-rpath-link,$(top_builddir)/lib'
4615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling ELF shared libraries" >&5
4616 $as_echo "Enabling ELF shared libraries" >&6; }
4620 MAKEFILE_ELF=/dev/null
4622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries by default" >&5
4623 $as_echo "Disabling ELF shared libraries by default" >&6; }
4629 # Check whether --enable-bsd-shlibs was given.
4630 if test "${enable_bsd_shlibs+set}" = set; then :
4631 enableval=$enable_bsd_shlibs; if test "$enableval" = "no"
4634 MAKEFILE_BSDLIB=/dev/null
4635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries" >&5
4636 $as_echo "Disabling BSD shared libraries" >&6; }
4638 E2_PKG_CONFIG_STATIC=
4640 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
4644 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib
4648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling BSD shared libraries" >&5
4649 $as_echo "Enabling BSD shared libraries" >&6; }
4653 MAKEFILE_BSDLIB=/dev/null
4655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries by default" >&5
4656 $as_echo "Disabling BSD shared libraries by default" >&6; }
4662 # Check whether --enable-profile was given.
4663 if test "${enable_profile+set}" = set; then :
4664 enableval=$enable_profile; if test "$enableval" = "no"
4667 MAKEFILE_PROFILE=/dev/null
4668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries" >&5
4669 $as_echo "Disabling profiling libraries" >&6; }
4672 MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
4673 PROFILED_LIB_EXT=_p.a
4674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building profiling libraries" >&5
4675 $as_echo "Building profiling libraries" >&6; }
4680 MAKEFILE_PROFILE=/dev/null
4681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries by default" >&5
4682 $as_echo "Disabling profiling libraries by default" >&6; }
4688 # Check whether --enable-gcov was given.
4689 if test "${enable_gcov+set}" = set; then :
4690 enableval=$enable_gcov; if test "$enableval" = "yes"
4692 CFLAGS="-g -fprofile-arcs -ftest-coverage"
4693 LDFLAGS="-fprofile-arcs -ftest-coverage"
4694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling gcov support" >&5
4695 $as_echo "Enabling gcov support" >&6; }
4700 # Check whether --enable-checker was given.
4701 if test "${enable_checker+set}" = set; then :
4702 enableval=$enable_checker; if test "$enableval" = "no"
4705 MAKEFILE_CHECKER=/dev/null
4706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling checker libraries" >&5
4707 $as_echo "Disabling checker libraries" >&6; }
4710 MAKEFILE_CHECKER=$srcdir/lib/Makefile.checker
4711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building checker libraries" >&5
4712 $as_echo "Building checker libraries" >&6; }
4717 MAKEFILE_CHECKER=/dev/null
4718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling checker libraries by default" >&5
4719 $as_echo "Disabling checker libraries by default" >&6; }
4730 # Check whether --enable-jbd-debug was given.
4731 if test "${enable_jbd_debug+set}" = set; then :
4732 enableval=$enable_jbd_debug; if test "$enableval" = "no"
4734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging" >&5
4735 $as_echo "Disabling journal debugging" >&6; }
4738 $as_echo "#define CONFIG_JBD_DEBUG 1" >>confdefs.h
4740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling journal debugging" >&5
4741 $as_echo "Enabling journal debugging" >&6; }
4745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging by default" >&5
4746 $as_echo "Disabling journal debugging by default" >&6; }
4750 # Check whether --enable-blkid-debug was given.
4751 if test "${enable_blkid_debug+set}" = set; then :
4752 enableval=$enable_blkid_debug; if test "$enableval" = "no"
4754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging" >&5
4755 $as_echo "Disabling blkid debugging" >&6; }
4758 $as_echo "#define CONFIG_BLKID_DEBUG 1" >>confdefs.h
4760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling blkid debugging" >&5
4761 $as_echo "Enabling blkid debugging" >&6; }
4765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging by default" >&5
4766 $as_echo "Disabling blkid debugging by default" >&6; }
4770 # Check whether --enable-testio-debug was given.
4771 if test "${enable_testio_debug+set}" = set; then :
4772 enableval=$enable_testio_debug;
4773 if test "$enableval" = "no"
4775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling testio debugging" >&5
4776 $as_echo "Disabling testio debugging" >&6; }
4780 $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
4782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging" >&5
4783 $as_echo "Enabling testio debugging" >&6; }
4787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging by default" >&5
4788 $as_echo "Enabling testio debugging by default" >&6; }
4789 $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
4798 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4799 if test -n "$ac_tool_prefix"; then
4800 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4801 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4803 $as_echo_n "checking for $ac_word... " >&6; }
4804 if ${ac_cv_path_PKG_CONFIG+:} false; then :
4805 $as_echo_n "(cached) " >&6
4809 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4816 test -z "$as_dir" && as_dir=.
4817 for ac_exec_ext in '' $ac_executable_extensions; do
4818 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4819 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4830 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4831 if test -n "$PKG_CONFIG"; then
4832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4833 $as_echo "$PKG_CONFIG" >&6; }
4835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4836 $as_echo "no" >&6; }
4841 if test -z "$ac_cv_path_PKG_CONFIG"; then
4842 ac_pt_PKG_CONFIG=$PKG_CONFIG
4843 # Extract the first word of "pkg-config", so it can be a program name with args.
4844 set dummy pkg-config; ac_word=$2
4845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4846 $as_echo_n "checking for $ac_word... " >&6; }
4847 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4848 $as_echo_n "(cached) " >&6
4850 case $ac_pt_PKG_CONFIG in
4852 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4859 test -z "$as_dir" && as_dir=.
4860 for ac_exec_ext in '' $ac_executable_extensions; do
4861 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4862 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4863 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4873 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4874 if test -n "$ac_pt_PKG_CONFIG"; then
4875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4876 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4879 $as_echo "no" >&6; }
4882 if test "x$ac_pt_PKG_CONFIG" = x; then
4885 case $cross_compiling:$ac_tool_warned in
4887 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4888 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4889 ac_tool_warned=yes ;;
4891 PKG_CONFIG=$ac_pt_PKG_CONFIG
4894 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4898 if test -n "$PKG_CONFIG"; then
4899 _pkg_min_version=0.9.0
4900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4901 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4902 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4904 $as_echo "yes" >&6; }
4906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4907 $as_echo "no" >&6; }
4917 DEPPROFILED_LIBUUID=
4919 # Check whether --enable-libuuid was given.
4920 if test "${enable_libuuid+set}" = set; then :
4921 enableval=$enable_libuuid; if test "$enableval" = "no"
4923 if test -z "$PKG_CONFIG"; then
4924 as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5
4927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
4928 $as_echo_n "checking for uuid_generate in -luuid... " >&6; }
4929 if ${ac_cv_lib_uuid_uuid_generate+:} false; then :
4930 $as_echo_n "(cached) " >&6
4932 ac_check_lib_save_LIBS=$LIBS
4933 LIBS="-luuid $LIBUUID $LIBS"
4934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4935 /* end confdefs.h. */
4937 /* Override any GCC internal prototype to avoid an error.
4938 Use char because int might match the return type of a GCC
4939 builtin and then its argument prototype would still apply. */
4943 char uuid_generate ();
4947 return uuid_generate ();
4952 if ac_fn_c_try_link "$LINENO"; then :
4953 ac_cv_lib_uuid_uuid_generate=yes
4955 ac_cv_lib_uuid_uuid_generate=no
4957 rm -f core conftest.err conftest.$ac_objext \
4958 conftest$ac_exeext conftest.$ac_ext
4959 LIBS=$ac_check_lib_save_LIBS
4961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
4962 $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
4963 if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then :
4964 LIBUUID=`$PKG_CONFIG --libs uuid`;
4965 STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid`
4967 as_fn_error $? "external uuid library not found" "$LINENO" 5
4971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private uuid library" >&5
4972 $as_echo "Disabling private uuid library" >&6; }
4974 LIBUUID='$(LIB)/libuuid'$LIB_EXT
4976 STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
4977 DEPSTATIC_LIBUUID=$STATIC_LIBUUID
4978 PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
4979 DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
4980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library" >&5
4981 $as_echo "Enabling private uuid library" >&6; }
4985 LIBUUID='$(LIB)/libuuid'$LIB_EXT
4987 STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
4988 DEPSTATIC_LIBUUID=$STATIC_LIBUUID
4989 PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
4990 DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
4991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library by default" >&5
4992 $as_echo "Enabling private uuid library by default" >&6; }
5005 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5006 if test -n "$ac_tool_prefix"; then
5007 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5008 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5010 $as_echo_n "checking for $ac_word... " >&6; }
5011 if ${ac_cv_path_PKG_CONFIG+:} false; then :
5012 $as_echo_n "(cached) " >&6
5016 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5023 test -z "$as_dir" && as_dir=.
5024 for ac_exec_ext in '' $ac_executable_extensions; do
5025 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5026 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5027 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5037 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5038 if test -n "$PKG_CONFIG"; then
5039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5040 $as_echo "$PKG_CONFIG" >&6; }
5042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5043 $as_echo "no" >&6; }
5048 if test -z "$ac_cv_path_PKG_CONFIG"; then
5049 ac_pt_PKG_CONFIG=$PKG_CONFIG
5050 # Extract the first word of "pkg-config", so it can be a program name with args.
5051 set dummy pkg-config; ac_word=$2
5052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5053 $as_echo_n "checking for $ac_word... " >&6; }
5054 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
5055 $as_echo_n "(cached) " >&6
5057 case $ac_pt_PKG_CONFIG in
5059 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5066 test -z "$as_dir" && as_dir=.
5067 for ac_exec_ext in '' $ac_executable_extensions; do
5068 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5069 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5070 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5080 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5081 if test -n "$ac_pt_PKG_CONFIG"; then
5082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5083 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5086 $as_echo "no" >&6; }
5089 if test "x$ac_pt_PKG_CONFIG" = x; then
5092 case $cross_compiling:$ac_tool_warned in
5094 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5095 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5096 ac_tool_warned=yes ;;
5098 PKG_CONFIG=$ac_pt_PKG_CONFIG
5101 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5105 if test -n "$PKG_CONFIG"; then
5106 _pkg_min_version=0.9.0
5107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5108 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5109 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5111 $as_echo "yes" >&6; }
5113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5114 $as_echo "no" >&6; }
5124 DEPPROFILED_LIBBLKID=
5127 # Check whether --enable-libblkid was given.
5128 if test "${enable_libblkid+set}" = set; then :
5129 enableval=$enable_libblkid; if test "$enableval" = "no"
5131 if test -z "$PKG_CONFIG"; then
5132 as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5
5135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
5136 $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
5137 if ${ac_cv_lib_blkid_blkid_get_cache+:} false; then :
5138 $as_echo_n "(cached) " >&6
5140 ac_check_lib_save_LIBS=$LIBS
5141 LIBS="-lblkid $LIBBLKID $LIBS"
5142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5143 /* end confdefs.h. */
5145 /* Override any GCC internal prototype to avoid an error.
5146 Use char because int might match the return type of a GCC
5147 builtin and then its argument prototype would still apply. */
5151 char blkid_get_cache ();
5155 return blkid_get_cache ();
5160 if ac_fn_c_try_link "$LINENO"; then :
5161 ac_cv_lib_blkid_blkid_get_cache=yes
5163 ac_cv_lib_blkid_blkid_get_cache=no
5165 rm -f core conftest.err conftest.$ac_objext \
5166 conftest$ac_exeext conftest.$ac_ext
5167 LIBS=$ac_check_lib_save_LIBS
5169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
5170 $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
5171 if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes; then :
5172 LIBBLKID=`$PKG_CONFIG --libs blkid`;
5173 STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid`
5175 as_fn_error $? "external blkid library not found" "$LINENO" 5
5179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private blkid library" >&5
5180 $as_echo "Disabling private blkid library" >&6; }
5182 LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5183 DEPLIBBLKID=$LIBBLKID
5184 STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5185 DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5186 PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5187 DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
5188 $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
5190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library" >&5
5191 $as_echo "Enabling private blkid library" >&6; }
5195 LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5196 DEPLIBBLKID=$LIBBLKID
5197 STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5198 DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5199 PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5200 DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
5201 $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
5203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library by default" >&5
5204 $as_echo "Enabling private blkid library by default" >&6; }
5215 QUOTA_MAN_COMMENT='.\"'
5220 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5221 if test -n "$ac_tool_prefix"; then
5222 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5223 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5225 $as_echo_n "checking for $ac_word... " >&6; }
5226 if ${ac_cv_path_PKG_CONFIG+:} false; then :
5227 $as_echo_n "(cached) " >&6
5231 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5238 test -z "$as_dir" && as_dir=.
5239 for ac_exec_ext in '' $ac_executable_extensions; do
5240 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5241 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5252 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5253 if test -n "$PKG_CONFIG"; then
5254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5255 $as_echo "$PKG_CONFIG" >&6; }
5257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5258 $as_echo "no" >&6; }
5263 if test -z "$ac_cv_path_PKG_CONFIG"; then
5264 ac_pt_PKG_CONFIG=$PKG_CONFIG
5265 # Extract the first word of "pkg-config", so it can be a program name with args.
5266 set dummy pkg-config; ac_word=$2
5267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5268 $as_echo_n "checking for $ac_word... " >&6; }
5269 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
5270 $as_echo_n "(cached) " >&6
5272 case $ac_pt_PKG_CONFIG in
5274 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5281 test -z "$as_dir" && as_dir=.
5282 for ac_exec_ext in '' $ac_executable_extensions; do
5283 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5284 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5285 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5295 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5296 if test -n "$ac_pt_PKG_CONFIG"; then
5297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5298 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5301 $as_echo "no" >&6; }
5304 if test "x$ac_pt_PKG_CONFIG" = x; then
5307 case $cross_compiling:$ac_tool_warned in
5309 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5310 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5311 ac_tool_warned=yes ;;
5313 PKG_CONFIG=$ac_pt_PKG_CONFIG
5316 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5320 if test -n "$PKG_CONFIG"; then
5321 _pkg_min_version=0.9.0
5322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5323 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5324 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5326 $as_echo "yes" >&6; }
5328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5329 $as_echo "no" >&6; }
5335 # Check whether --enable-quota was given.
5336 if test "${enable_quota+set}" = set; then :
5337 enableval=$enable_quota; if test "$enableval" = "no"
5340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling quota support" >&5
5341 $as_echo "Disabling quota support" >&6; }
5344 $as_echo "#define CONFIG_QUOTA 1" >>confdefs.h
5346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling quota support" >&5
5347 $as_echo "Enabling quota support" >&6; }
5348 QUOTA_MAN_COMMENT=""
5354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling quota support by default" >&5
5355 $as_echo "Disabling quota support by default" >&6; }
5359 LIBQUOTA='$(LIB)/libquota'$LIB_EXT
5360 DEPLIBQUOTA=$LIBQUOTA
5361 STATIC_LIBQUOTA='$(LIB)/libquota'$STATIC_LIB_EXT
5362 DEPSTATIC_LIBQUOTA=$STATIC_LIBQUOTA
5363 PROFILED_LIBQUOTA='$(LIB)/libquota'$PROFILED_LIB_EXT
5364 DEPPROFILED_LIBQUOTA=$PROFILED_LIBQUOTA
5373 # Check whether --enable-backtrace was given.
5374 if test "${enable_backtrace+set}" = set; then :
5375 enableval=$enable_backtrace; if test "$enableval" = "no"
5377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling use of backtrace" >&5
5378 $as_echo "Disabling use of backtrace" >&6; }
5379 $as_echo "#define DISABLE_BACKTRACE 1" >>confdefs.h
5382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace" >&5
5383 $as_echo "Enabling use of backtrace" >&6; }
5387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace by default" >&5
5388 $as_echo "Enabling use of backtrace by default" >&6; }
5392 # Check whether --enable-debugfs was given.
5393 if test "${enable_debugfs+set}" = set; then :
5394 enableval=$enable_debugfs; if test "$enableval" = "no"
5396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling debugfs support" >&5
5397 $as_echo "Disabling debugfs support" >&6; }
5401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support" >&5
5402 $as_echo "Enabling debugfs support" >&6; }
5406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support by default" >&5
5407 $as_echo "Enabling debugfs support by default" >&6; }
5413 # Check whether --enable-imager was given.
5414 if test "${enable_imager+set}" = set; then :
5415 enableval=$enable_imager; if test "$enableval" = "no"
5417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2image support" >&5
5418 $as_echo "Disabling e2image support" >&6; }
5422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support" >&5
5423 $as_echo "Enabling e2image support" >&6; }
5427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support by default" >&5
5428 $as_echo "Enabling e2image support by default" >&6; }
5434 # Check whether --enable-resizer was given.
5435 if test "${enable_resizer+set}" = set; then :
5436 enableval=$enable_resizer; if test "$enableval" = "no"
5438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2resize support" >&5
5439 $as_echo "Disabling e2resize support" >&6; }
5443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support" >&5
5444 $as_echo "Enabling e2resize support" >&6; }
5448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support by default" >&5
5449 $as_echo "Enabling e2resize support by default" >&6; }
5455 # Check whether --enable-defrag was given.
5456 if test "${enable_defrag+set}" = set; then :
5457 enableval=$enable_defrag; if test "$enableval" = "no"
5459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support" >&5
5460 $as_echo "Disabling e4defrag support" >&6; }
5464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support" >&5
5465 $as_echo "Enabling e4defrag support" >&6; }
5469 if test -z "$WITH_DIET_LIBC"
5471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support by default" >&5
5472 $as_echo "Enabling e4defrag support by default" >&6; }
5475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support by default" >&5
5476 $as_echo "Disabling e4defrag support by default" >&6; }
5483 # Check whether --enable-fsck was given.
5484 if test "${enable_fsck+set}" = set; then :
5485 enableval=$enable_fsck; if test "$enableval" = "no"
5487 FSCK_PROG='' FSCK_MAN=''
5488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper" >&5
5489 $as_echo "Not building fsck wrapper" >&6; }
5491 FSCK_PROG=fsck FSCK_MAN=fsck.8
5492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper" >&5
5493 $as_echo "Building fsck wrapper" >&6; }
5499 FSCK_PROG='' FSCK_MAN=''
5500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper by default" >&5
5501 $as_echo "Not building fsck wrapper by default" >&6; }
5504 FSCK_PROG=fsck FSCK_MAN=fsck.8
5505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper by default" >&5
5506 $as_echo "Building fsck wrapper by default" >&6; }
5513 # Check whether --enable-e2initrd-helper was given.
5514 if test "${enable_e2initrd_helper+set}" = set; then :
5515 enableval=$enable_e2initrd_helper; if test "$enableval" = "no"
5517 E2INITRD_PROG='' E2INITRD_MAN=''
5518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building e2initrd helper" >&5
5519 $as_echo "Not building e2initrd helper" >&6; }
5521 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
5522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper" >&5
5523 $as_echo "Building e2initrd helper" >&6; }
5527 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
5528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper by default" >&5
5529 $as_echo "Building e2initrd helper by default" >&6; }
5535 # Check whether --enable-tls was given.
5536 if test "${enable_tls+set}" = set; then :
5537 enableval=$enable_tls; if test "$enableval" = "no"
5540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling thread local support" >&5
5541 $as_echo "Disabling thread local support" >&6; }
5544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling thread local support" >&5
5545 $as_echo "Enabling thread local support" >&6; }
5549 if test -n "$WITH_DIET_LIBC"
5552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Diet libc does not support thread local support" >&5
5553 $as_echo "Diet libc does not support thread local support" >&6; }
5556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Try using thread local support by default" >&5
5557 $as_echo "Try using thread local support by default" >&6; }
5562 if test "$try_tls" = "yes"
5565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread local storage (TLS) class" >&5
5566 $as_echo_n "checking for thread local storage (TLS) class... " >&6; }
5567 if ${ac_cv_tls+:} false; then :
5568 $as_echo_n "(cached) " >&6
5571 ax_tls_keywords="__thread __declspec(thread) none"
5572 for ax_tls_keyword in $ax_tls_keywords; do
5573 case $ax_tls_keyword in
5574 none) ac_cv_tls=none ; break ;;
5576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5577 /* end confdefs.h. */
5581 static $ax_tls_keyword int bar;
5592 if ac_fn_c_try_compile "$LINENO"; then :
5593 ac_cv_tls=$ax_tls_keyword ; break
5598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5605 if test "$ac_cv_tls" != "none"; then
5607 cat >>confdefs.h <<_ACEOF
5608 #define TLS $ac_cv_tls
5612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tls" >&5
5613 $as_echo "$ac_cv_tls" >&6; }
5617 # Check whether --enable-uuidd was given.
5618 if test "${enable_uuidd+set}" = set; then :
5619 enableval=$enable_uuidd; if test "$enableval" = "no"
5621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building uuidd" >&5
5622 $as_echo "Not building uuidd" >&6; }
5625 $as_echo "#define USE_UUIDD 1" >>confdefs.h
5628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd" >&5
5629 $as_echo "Building uuidd" >&6; }
5633 $as_echo "#define USE_UUIDD 1" >>confdefs.h
5636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd by default" >&5
5637 $as_echo "Building uuidd by default" >&6; }
5643 # Check whether --enable-mmp was given.
5644 if test "${enable_mmp+set}" = set; then :
5645 enableval=$enable_mmp; if test "$enableval" = "no"
5647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling mmp support" >&5
5648 $as_echo "Disabling mmp support" >&6; }
5650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support" >&5
5651 $as_echo "Enabling mmp support" >&6; }
5652 $as_echo "#define CONFIG_MMP 1" >>confdefs.h
5657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support by default" >&5
5658 $as_echo "Enabling mmp support by default" >&6; }
5659 $as_echo "#define CONFIG_MMP 1" >>confdefs.h
5665 # Check whether --enable-bmap-stats was given.
5666 if test "${enable_bmap_stats+set}" = set; then :
5667 enableval=$enable_bmap_stats; if test "$enableval" = "no"
5669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling bitmap statistics support" >&5
5670 $as_echo "Disabling bitmap statistics support" >&6; }
5672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling bitmap statistics support" >&5
5673 $as_echo "Enabling bitmap statistics support" >&6; }
5674 $as_echo "#define ENABLE_BMAP_STATS 1" >>confdefs.h
5679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling bitmap statistics support by default" >&5
5680 $as_echo "Enabling bitmap statistics support by default" >&6; }
5681 $as_echo "#define ENABLE_BMAP_STATS 1" >>confdefs.h
5687 # Check whether --enable-bmap-stats-ops was given.
5688 if test "${enable_bmap_stats_ops+set}" = set; then :
5689 enableval=$enable_bmap_stats_ops; if test "$enableval" = "no"
5691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling additional bitmap statistics" >&5
5692 $as_echo "Disabling additional bitmap statistics" >&6; }
5694 if test "x${enable_bmap_stats}" = "xno"; then :
5695 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5696 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5697 as_fn_error $? "Error --enable-bmap-stats-ops requires bmap-stats
5698 See \`config.log' for more details" "$LINENO" 5; }
5701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling additional bitmap statistics" >&5
5702 $as_echo "Enabling additional bitmap statistics" >&6; }
5703 $as_echo "#define ENABLE_BMAP_STATS_OPS 1" >>confdefs.h
5708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling additional bitmap statistics by default" >&5
5709 $as_echo "Disabling additional bitmap statistics by default" >&6; }
5713 MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
5715 GETTEXT_PACKAGE=e2fsprogs
5717 VERSION="$E2FSPROGS_VERSION"
5720 cat >>confdefs.h <<_ACEOF
5721 #define PACKAGE "$PACKAGE"
5725 cat >>confdefs.h <<_ACEOF
5726 #define VERSION "$VERSION"
5733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5734 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5736 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5737 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
5738 $as_echo_n "(cached) " >&6
5740 cat >conftest.make <<\_ACEOF
5743 @echo '@@@%%%=$(MAKE)=@@@%%%'
5745 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5746 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5748 eval ac_cv_prog_make_${ac_make}_set=yes;;
5750 eval ac_cv_prog_make_${ac_make}_set=no;;
5754 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5756 $as_echo "yes" >&6; }
5759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5760 $as_echo "no" >&6; }
5761 SET_MAKE="MAKE=${MAKE-make}"
5764 # Find a good install program. We prefer a C program (faster),
5765 # so one script is as good as another. But avoid the broken or
5766 # incompatible versions:
5767 # SysV /etc/install, /usr/sbin/install
5768 # SunOS /usr/etc/install
5769 # IRIX /sbin/install
5771 # AmigaOS /C/install, which installs bootblocks on floppy discs
5772 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5773 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5774 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5775 # OS/2's system install, which has a completely different semantic
5776 # ./install, which can be erroneously created by make from ./install.sh.
5777 # Reject install programs that cannot install multiple files.
5778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
5779 $as_echo_n "checking for a BSD-compatible install... " >&6; }
5780 if test -z "$INSTALL"; then
5781 if ${ac_cv_path_install+:} false; then :
5782 $as_echo_n "(cached) " >&6
5784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5788 test -z "$as_dir" && as_dir=.
5789 # Account for people who put trailing slashes in PATH elements.
5790 case $as_dir/ in #((
5791 ./ | .// | /[cC]/* | \
5792 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5793 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
5796 # OSF1 and SCO ODT 3.0 have their own names for install.
5797 # Don't use installbsd from OSF since it installs stuff as root
5799 for ac_prog in ginstall scoinst install; do
5800 for ac_exec_ext in '' $ac_executable_extensions; do
5801 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5802 if test $ac_prog = install &&
5803 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5804 # AIX install. It has an incompatible calling convention.
5806 elif test $ac_prog = install &&
5807 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5808 # program-specific install script used by HP pwplus--don't use.
5811 rm -rf conftest.one conftest.two conftest.dir
5812 echo one > conftest.one
5813 echo two > conftest.two
5815 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5816 test -s conftest.one && test -s conftest.two &&
5817 test -s conftest.dir/conftest.one &&
5818 test -s conftest.dir/conftest.two
5820 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5833 rm -rf conftest.one conftest.two conftest.dir
5836 if test "${ac_cv_path_install+set}" = set; then
5837 INSTALL=$ac_cv_path_install
5839 # As a last resort, use the slow shell script. Don't cache a
5840 # value for INSTALL within a source directory, because that will
5841 # break other packages using the cache if that directory is
5842 # removed, or if the value is a relative name.
5843 INSTALL=$ac_install_sh
5846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
5847 $as_echo "$INSTALL" >&6; }
5849 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5850 # It thinks the first close brace ends the variable substitution.
5851 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5853 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5855 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5859 if test -n "$ac_aux_dir"; then
5860 case "$ac_aux_dir" in
5861 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
5862 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
5865 if test -z "$MKINSTALLDIRS"; then
5866 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
5871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
5872 $as_echo_n "checking whether NLS is requested... " >&6; }
5873 # Check whether --enable-nls was given.
5874 if test "${enable_nls+set}" = set; then :
5875 enableval=$enable_nls; USE_NLS=$enableval
5880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
5881 $as_echo "$USE_NLS" >&6; }
5888 # Prepare PATH_SEPARATOR.
5889 # The user is always right.
5890 if test "${PATH_SEPARATOR+set}" != set; then
5891 echo "#! /bin/sh" >conf$$.sh
5892 echo "exit 0" >>conf$$.sh
5894 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5902 # Find out how to test for executable files. Don't use a zero-byte file,
5903 # as systems may use methods other than mode bits to determine executability.
5904 cat >conf$$.file <<_ASEOF
5908 chmod +x conf$$.file
5909 if test -x conf$$.file >/dev/null 2>&1; then
5910 ac_executable_p="test -x"
5912 ac_executable_p="test -f"
5916 # Extract the first word of "msgfmt", so it can be a program name with args.
5917 set dummy msgfmt; ac_word=$2
5918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5919 $as_echo_n "checking for $ac_word... " >&6; }
5920 if ${ac_cv_path_MSGFMT+:} false; then :
5921 $as_echo_n "(cached) " >&6
5925 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5928 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5929 for ac_dir in $PATH; do
5931 test -z "$ac_dir" && ac_dir=.
5932 for ac_exec_ext in '' $ac_executable_extensions; do
5933 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5934 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
5935 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5936 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
5943 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
5947 MSGFMT="$ac_cv_path_MSGFMT"
5948 if test "$MSGFMT" != ":"; then
5949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
5950 $as_echo "$MSGFMT" >&6; }
5952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5953 $as_echo "no" >&6; }
5956 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5957 set dummy gmsgfmt; ac_word=$2
5958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5959 $as_echo_n "checking for $ac_word... " >&6; }
5960 if ${ac_cv_path_GMSGFMT+:} false; then :
5961 $as_echo_n "(cached) " >&6
5965 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5972 test -z "$as_dir" && as_dir=.
5973 for ac_exec_ext in '' $ac_executable_extensions; do
5974 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5975 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5983 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5987 GMSGFMT=$ac_cv_path_GMSGFMT
5988 if test -n "$GMSGFMT"; then
5989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
5990 $as_echo "$GMSGFMT" >&6; }
5992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5993 $as_echo "no" >&6; }
5999 # Prepare PATH_SEPARATOR.
6000 # The user is always right.
6001 if test "${PATH_SEPARATOR+set}" != set; then
6002 echo "#! /bin/sh" >conf$$.sh
6003 echo "exit 0" >>conf$$.sh
6005 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6013 # Find out how to test for executable files. Don't use a zero-byte file,
6014 # as systems may use methods other than mode bits to determine executability.
6015 cat >conf$$.file <<_ASEOF
6019 chmod +x conf$$.file
6020 if test -x conf$$.file >/dev/null 2>&1; then
6021 ac_executable_p="test -x"
6023 ac_executable_p="test -f"
6027 # Extract the first word of "xgettext", so it can be a program name with args.
6028 set dummy xgettext; ac_word=$2
6029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6030 $as_echo_n "checking for $ac_word... " >&6; }
6031 if ${ac_cv_path_XGETTEXT+:} false; then :
6032 $as_echo_n "(cached) " >&6
6036 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
6039 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6040 for ac_dir in $PATH; do
6042 test -z "$ac_dir" && ac_dir=.
6043 for ac_exec_ext in '' $ac_executable_extensions; do
6044 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6045 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
6046 (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
6047 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
6054 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
6058 XGETTEXT="$ac_cv_path_XGETTEXT"
6059 if test "$XGETTEXT" != ":"; then
6060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
6061 $as_echo "$XGETTEXT" >&6; }
6063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6064 $as_echo "no" >&6; }
6070 # Prepare PATH_SEPARATOR.
6071 # The user is always right.
6072 if test "${PATH_SEPARATOR+set}" != set; then
6073 echo "#! /bin/sh" >conf$$.sh
6074 echo "exit 0" >>conf$$.sh
6076 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6084 # Find out how to test for executable files. Don't use a zero-byte file,
6085 # as systems may use methods other than mode bits to determine executability.
6086 cat >conf$$.file <<_ASEOF
6090 chmod +x conf$$.file
6091 if test -x conf$$.file >/dev/null 2>&1; then
6092 ac_executable_p="test -x"
6094 ac_executable_p="test -f"
6098 # Extract the first word of "msgmerge", so it can be a program name with args.
6099 set dummy msgmerge; ac_word=$2
6100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6101 $as_echo_n "checking for $ac_word... " >&6; }
6102 if ${ac_cv_path_MSGMERGE+:} false; then :
6103 $as_echo_n "(cached) " >&6
6107 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
6110 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6111 for ac_dir in $PATH; do
6113 test -z "$ac_dir" && ac_dir=.
6114 for ac_exec_ext in '' $ac_executable_extensions; do
6115 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6116 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
6117 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
6124 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
6128 MSGMERGE="$ac_cv_path_MSGMERGE"
6129 if test "$MSGMERGE" != ":"; then
6130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
6131 $as_echo "$MSGMERGE" >&6; }
6133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6134 $as_echo "no" >&6; }
6138 if test "$GMSGFMT" != ":"; then
6139 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
6140 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6143 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
6144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
6145 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
6150 if test "$XGETTEXT" != ":"; then
6151 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
6152 (if $XGETTEXT --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
6155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
6156 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
6162 ac_config_commands="$ac_config_commands default-1"
6165 if test -n "$ac_tool_prefix"; then
6166 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6167 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6169 $as_echo_n "checking for $ac_word... " >&6; }
6170 if ${ac_cv_prog_RANLIB+:} false; then :
6171 $as_echo_n "(cached) " >&6
6173 if test -n "$RANLIB"; then
6174 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6180 test -z "$as_dir" && as_dir=.
6181 for ac_exec_ext in '' $ac_executable_extensions; do
6182 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6183 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6184 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6193 RANLIB=$ac_cv_prog_RANLIB
6194 if test -n "$RANLIB"; then
6195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6196 $as_echo "$RANLIB" >&6; }
6198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6199 $as_echo "no" >&6; }
6204 if test -z "$ac_cv_prog_RANLIB"; then
6205 ac_ct_RANLIB=$RANLIB
6206 # Extract the first word of "ranlib", so it can be a program name with args.
6207 set dummy ranlib; ac_word=$2
6208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6209 $as_echo_n "checking for $ac_word... " >&6; }
6210 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6211 $as_echo_n "(cached) " >&6
6213 if test -n "$ac_ct_RANLIB"; then
6214 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6220 test -z "$as_dir" && as_dir=.
6221 for ac_exec_ext in '' $ac_executable_extensions; do
6222 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6223 ac_cv_prog_ac_ct_RANLIB="ranlib"
6224 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6233 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6234 if test -n "$ac_ct_RANLIB"; then
6235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6236 $as_echo "$ac_ct_RANLIB" >&6; }
6238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6239 $as_echo "no" >&6; }
6242 if test "x$ac_ct_RANLIB" = x; then
6245 case $cross_compiling:$ac_tool_warned in
6247 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6248 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6249 ac_tool_warned=yes ;;
6251 RANLIB=$ac_ct_RANLIB
6254 RANLIB="$ac_cv_prog_RANLIB"
6258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror in -lcposix" >&5
6259 $as_echo_n "checking for strerror in -lcposix... " >&6; }
6260 if ${ac_cv_lib_cposix_strerror+:} false; then :
6261 $as_echo_n "(cached) " >&6
6263 ac_check_lib_save_LIBS=$LIBS
6264 LIBS="-lcposix $LIBS"
6265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6266 /* end confdefs.h. */
6268 /* Override any GCC internal prototype to avoid an error.
6269 Use char because int might match the return type of a GCC
6270 builtin and then its argument prototype would still apply. */
6283 if ac_fn_c_try_link "$LINENO"; then :
6284 ac_cv_lib_cposix_strerror=yes
6286 ac_cv_lib_cposix_strerror=no
6288 rm -f core conftest.err conftest.$ac_objext \
6289 conftest$ac_exeext conftest.$ac_ext
6290 LIBS=$ac_check_lib_save_LIBS
6292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cposix_strerror" >&5
6293 $as_echo "$ac_cv_lib_cposix_strerror" >&6; }
6294 if test "x$ac_cv_lib_cposix_strerror" = xyes; then :
6295 LIBS="$LIBS -lcposix"
6301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6302 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6303 if ${ac_cv_path_GREP+:} false; then :
6304 $as_echo_n "(cached) " >&6
6306 if test -z "$GREP"; then
6307 ac_path_GREP_found=false
6308 # Loop through the user's path and test for each of PROGNAME-LIST
6309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6310 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6313 test -z "$as_dir" && as_dir=.
6314 for ac_prog in grep ggrep; do
6315 for ac_exec_ext in '' $ac_executable_extensions; do
6316 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6317 as_fn_executable_p "$ac_path_GREP" || continue
6318 # Check for GNU ac_path_GREP and select it if it is found.
6319 # Check for GNU $ac_path_GREP
6320 case `"$ac_path_GREP" --version 2>&1` in
6322 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6325 $as_echo_n 0123456789 >"conftest.in"
6328 cat "conftest.in" "conftest.in" >"conftest.tmp"
6329 mv "conftest.tmp" "conftest.in"
6330 cp "conftest.in" "conftest.nl"
6331 $as_echo 'GREP' >> "conftest.nl"
6332 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6333 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6334 as_fn_arith $ac_count + 1 && ac_count=$as_val
6335 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6336 # Best one so far, save it but keep looking for a better one
6337 ac_cv_path_GREP="$ac_path_GREP"
6338 ac_path_GREP_max=$ac_count
6340 # 10*(2^10) chars as input seems more than enough
6341 test $ac_count -gt 10 && break
6343 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6346 $ac_path_GREP_found && break 3
6351 if test -z "$ac_cv_path_GREP"; then
6352 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6355 ac_cv_path_GREP=$GREP
6359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6360 $as_echo "$ac_cv_path_GREP" >&6; }
6361 GREP="$ac_cv_path_GREP"
6364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6365 $as_echo_n "checking for egrep... " >&6; }
6366 if ${ac_cv_path_EGREP+:} false; then :
6367 $as_echo_n "(cached) " >&6
6369 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6370 then ac_cv_path_EGREP="$GREP -E"
6372 if test -z "$EGREP"; then
6373 ac_path_EGREP_found=false
6374 # Loop through the user's path and test for each of PROGNAME-LIST
6375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6376 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6379 test -z "$as_dir" && as_dir=.
6380 for ac_prog in egrep; do
6381 for ac_exec_ext in '' $ac_executable_extensions; do
6382 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6383 as_fn_executable_p "$ac_path_EGREP" || continue
6384 # Check for GNU ac_path_EGREP and select it if it is found.
6385 # Check for GNU $ac_path_EGREP
6386 case `"$ac_path_EGREP" --version 2>&1` in
6388 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6391 $as_echo_n 0123456789 >"conftest.in"
6394 cat "conftest.in" "conftest.in" >"conftest.tmp"
6395 mv "conftest.tmp" "conftest.in"
6396 cp "conftest.in" "conftest.nl"
6397 $as_echo 'EGREP' >> "conftest.nl"
6398 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6399 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6400 as_fn_arith $ac_count + 1 && ac_count=$as_val
6401 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6402 # Best one so far, save it but keep looking for a better one
6403 ac_cv_path_EGREP="$ac_path_EGREP"
6404 ac_path_EGREP_max=$ac_count
6406 # 10*(2^10) chars as input seems more than enough
6407 test $ac_count -gt 10 && break
6409 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6412 $ac_path_EGREP_found && break 3
6417 if test -z "$ac_cv_path_EGREP"; then
6418 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6421 ac_cv_path_EGREP=$EGREP
6426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6427 $as_echo "$ac_cv_path_EGREP" >&6; }
6428 EGREP="$ac_cv_path_EGREP"
6431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6432 $as_echo_n "checking for ANSI C header files... " >&6; }
6433 if ${ac_cv_header_stdc+:} false; then :
6434 $as_echo_n "(cached) " >&6
6436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6437 /* end confdefs.h. */
6451 if ac_fn_c_try_compile "$LINENO"; then :
6452 ac_cv_header_stdc=yes
6454 ac_cv_header_stdc=no
6456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6458 if test $ac_cv_header_stdc = yes; then
6459 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6461 /* end confdefs.h. */
6465 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6466 $EGREP "memchr" >/dev/null 2>&1; then :
6469 ac_cv_header_stdc=no
6475 if test $ac_cv_header_stdc = yes; then
6476 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6478 /* end confdefs.h. */
6482 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6483 $EGREP "free" >/dev/null 2>&1; then :
6486 ac_cv_header_stdc=no
6492 if test $ac_cv_header_stdc = yes; then
6493 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6494 if test "$cross_compiling" = yes; then :
6497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6498 /* end confdefs.h. */
6501 #if ((' ' & 0x0FF) == 0x020)
6502 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6503 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6505 # define ISLOWER(c) \
6506 (('a' <= (c) && (c) <= 'i') \
6507 || ('j' <= (c) && (c) <= 'r') \
6508 || ('s' <= (c) && (c) <= 'z'))
6509 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6512 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6517 for (i = 0; i < 256; i++)
6518 if (XOR (islower (i), ISLOWER (i))
6519 || toupper (i) != TOUPPER (i))
6524 if ac_fn_c_try_run "$LINENO"; then :
6527 ac_cv_header_stdc=no
6529 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6530 conftest.$ac_objext conftest.beam conftest.$ac_ext
6535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6536 $as_echo "$ac_cv_header_stdc" >&6; }
6537 if test $ac_cv_header_stdc = yes; then
6539 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
6544 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
6545 if ${ac_cv_c_const+:} false; then :
6546 $as_echo_n "(cached) " >&6
6548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6549 /* end confdefs.h. */
6556 /* Ultrix mips cc rejects this sort of thing. */
6557 typedef int charset[2];
6558 const charset cs = { 0, 0 };
6559 /* SunOS 4.1.1 cc rejects this. */
6560 char const *const *pcpcc;
6562 /* NEC SVR4.0.2 mips cc rejects this. */
6563 struct point {int x, y;};
6564 static struct point const zero = {0,0};
6565 /* AIX XL C 1.02.0.0 rejects this.
6566 It does not let you subtract one const X* pointer from another in
6567 an arm of an if-expression whose if-part is not a constant
6569 const char *g = "string";
6570 pcpcc = &g + (g ? g-g : 0);
6571 /* HPUX 7.0 cc rejects these. */
6573 ppc = (char**) pcpcc;
6574 pcpcc = (char const *const *) ppc;
6575 { /* SCO 3.2v4 cc rejects this sort of thing. */
6578 char const *s = 0 ? (char *) 0 : (char const *) 0;
6583 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6585 const int *foo = &x[0];
6588 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6589 typedef const int *iptr;
6593 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
6594 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6595 struct s { int j; const int *ap[3]; } bx;
6596 struct s *b = &bx; b->j = 5;
6598 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6602 return !cs[0] && !zero.x;
6609 if ac_fn_c_try_compile "$LINENO"; then :
6614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
6617 $as_echo "$ac_cv_c_const" >&6; }
6618 if test $ac_cv_c_const = no; then
6620 $as_echo "#define const /**/" >>confdefs.h
6625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed" >&5
6626 $as_echo_n "checking for signed... " >&6; }
6627 if ${bh_cv_c_signed+:} false; then :
6628 $as_echo_n "(cached) " >&6
6630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6631 /* end confdefs.h. */
6641 if ac_fn_c_try_compile "$LINENO"; then :
6646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bh_cv_c_signed" >&5
6649 $as_echo "$bh_cv_c_signed" >&6; }
6650 if test $bh_cv_c_signed = no; then
6652 $as_echo "#define signed /**/" >>confdefs.h
6656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
6657 $as_echo_n "checking for inline... " >&6; }
6658 if ${ac_cv_c_inline+:} false; then :
6659 $as_echo_n "(cached) " >&6
6662 for ac_kw in inline __inline__ __inline; do
6663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6664 /* end confdefs.h. */
6667 static $ac_kw foo_t static_foo () {return 0; }
6668 $ac_kw foo_t foo () {return 0; }
6672 if ac_fn_c_try_compile "$LINENO"; then :
6673 ac_cv_c_inline=$ac_kw
6675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6676 test "$ac_cv_c_inline" != no && break
6680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
6681 $as_echo "$ac_cv_c_inline" >&6; }
6683 case $ac_cv_c_inline in
6686 case $ac_cv_c_inline in
6688 *) ac_val=$ac_cv_c_inline;;
6690 cat >>confdefs.h <<_ACEOF
6692 #define inline $ac_val
6698 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6699 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6700 inttypes.h stdint.h unistd.h
6702 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6703 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6705 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6706 cat >>confdefs.h <<_ACEOF
6707 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6715 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
6716 if test "x$ac_cv_type_off_t" = xyes; then :
6720 cat >>confdefs.h <<_ACEOF
6721 #define off_t long int
6726 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6727 if test "x$ac_cv_type_size_t" = xyes; then :
6731 cat >>confdefs.h <<_ACEOF
6732 #define size_t unsigned int
6738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long" >&5
6739 $as_echo_n "checking for long long... " >&6; }
6740 if ${ac_cv_type_long_long+:} false; then :
6741 $as_echo_n "(cached) " >&6
6743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6744 /* end confdefs.h. */
6745 long long ll = 1LL; int i = 63;
6749 long long llmax = (long long) -1;
6750 return ll << i | ll >> i | llmax / ll | llmax % ll;
6755 if ac_fn_c_try_link "$LINENO"; then :
6756 ac_cv_type_long_long=yes
6758 ac_cv_type_long_long=no
6760 rm -f core conftest.err conftest.$ac_objext \
6761 conftest$ac_exeext conftest.$ac_ext
6763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long" >&5
6764 $as_echo "$ac_cv_type_long_long" >&6; }
6765 if test $ac_cv_type_long_long = yes; then
6767 $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
6772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
6773 $as_echo_n "checking for long double... " >&6; }
6774 if ${gt_cv_c_long_double+:} false; then :
6775 $as_echo_n "(cached) " >&6
6777 if test "$GCC" = yes; then
6778 gt_cv_c_long_double=yes
6780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6781 /* end confdefs.h. */
6783 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
6784 long double foo = 0.0;
6785 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
6786 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
6796 if ac_fn_c_try_compile "$LINENO"; then :
6797 gt_cv_c_long_double=yes
6799 gt_cv_c_long_double=no
6801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_long_double" >&5
6805 $as_echo "$gt_cv_c_long_double" >&6; }
6806 if test $gt_cv_c_long_double = yes; then
6808 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
6813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
6814 $as_echo_n "checking for wchar_t... " >&6; }
6815 if ${gt_cv_c_wchar_t+:} false; then :
6816 $as_echo_n "(cached) " >&6
6818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6819 /* end confdefs.h. */
6821 wchar_t foo = (wchar_t)'\0';
6830 if ac_fn_c_try_compile "$LINENO"; then :
6835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
6838 $as_echo "$gt_cv_c_wchar_t" >&6; }
6839 if test $gt_cv_c_wchar_t = yes; then
6841 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
6846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
6847 $as_echo_n "checking for wint_t... " >&6; }
6848 if ${gt_cv_c_wint_t+:} false; then :
6849 $as_echo_n "(cached) " >&6
6851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6852 /* end confdefs.h. */
6854 wint_t foo = (wchar_t)'\0';
6863 if ac_fn_c_try_compile "$LINENO"; then :
6868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
6871 $as_echo "$gt_cv_c_wint_t" >&6; }
6872 if test $gt_cv_c_wint_t = yes; then
6874 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
6879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
6880 $as_echo_n "checking for inttypes.h... " >&6; }
6881 if ${jm_ac_cv_header_inttypes_h+:} false; then :
6882 $as_echo_n "(cached) " >&6
6884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6885 /* end confdefs.h. */
6886 #include <sys/types.h>
6887 #include <inttypes.h>
6891 uintmax_t i = (uintmax_t) -1;
6896 if ac_fn_c_try_compile "$LINENO"; then :
6897 jm_ac_cv_header_inttypes_h=yes
6899 jm_ac_cv_header_inttypes_h=no
6901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_inttypes_h" >&5
6904 $as_echo "$jm_ac_cv_header_inttypes_h" >&6; }
6905 if test $jm_ac_cv_header_inttypes_h = yes; then
6907 cat >>confdefs.h <<_ACEOF
6908 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
6914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
6915 $as_echo_n "checking for stdint.h... " >&6; }
6916 if ${jm_ac_cv_header_stdint_h+:} false; then :
6917 $as_echo_n "(cached) " >&6
6919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6920 /* end confdefs.h. */
6921 #include <sys/types.h>
6926 uintmax_t i = (uintmax_t) -1;
6931 if ac_fn_c_try_compile "$LINENO"; then :
6932 jm_ac_cv_header_stdint_h=yes
6934 jm_ac_cv_header_stdint_h=no
6936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_stdint_h" >&5
6939 $as_echo "$jm_ac_cv_header_stdint_h" >&6; }
6940 if test $jm_ac_cv_header_stdint_h = yes; then
6942 cat >>confdefs.h <<_ACEOF
6943 #define HAVE_STDINT_H_WITH_UINTMAX 1
6951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
6952 $as_echo_n "checking for intmax_t... " >&6; }
6953 if ${gt_cv_c_intmax_t+:} false; then :
6954 $as_echo_n "(cached) " >&6
6956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6957 /* end confdefs.h. */
6961 #if HAVE_STDINT_H_WITH_UINTMAX
6964 #if HAVE_INTTYPES_H_WITH_UINTMAX
6965 #include <inttypes.h>
6976 if ac_fn_c_try_compile "$LINENO"; then :
6977 gt_cv_c_intmax_t=yes
6981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
6984 $as_echo "$gt_cv_c_intmax_t" >&6; }
6985 if test $gt_cv_c_intmax_t = yes; then
6987 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
6994 $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
6995 if ${gt_cv_func_printf_posix+:} false; then :
6996 $as_echo_n "(cached) " >&6
6999 if test "$cross_compiling" = yes; then :
7001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7002 /* end confdefs.h. */
7004 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
7009 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7010 $EGREP "notposix" >/dev/null 2>&1; then :
7011 gt_cv_func_printf_posix="guessing no"
7013 gt_cv_func_printf_posix="guessing yes"
7019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7020 /* end confdefs.h. */
7024 /* The string "%2$d %1$d", with dollar characters protected from the shell's
7025 dollar expansion (possibly an autoconf bug). */
7026 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
7027 static char buf[100];
7030 sprintf (buf, format, 33, 55);
7031 return (strcmp (buf, "55 33") != 0);
7034 if ac_fn_c_try_run "$LINENO"; then :
7035 gt_cv_func_printf_posix=yes
7037 gt_cv_func_printf_posix=no
7039 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7040 conftest.$ac_objext conftest.beam conftest.$ac_ext
7045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
7046 $as_echo "$gt_cv_func_printf_posix" >&6; }
7047 case $gt_cv_func_printf_posix in
7050 $as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
7055 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
7056 # for constant arguments. Useless!
7057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
7058 $as_echo_n "checking for working alloca.h... " >&6; }
7059 if ${ac_cv_working_alloca_h+:} false; then :
7060 $as_echo_n "(cached) " >&6
7062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7063 /* end confdefs.h. */
7068 char *p = (char *) alloca (2 * sizeof (int));
7074 if ac_fn_c_try_link "$LINENO"; then :
7075 ac_cv_working_alloca_h=yes
7077 ac_cv_working_alloca_h=no
7079 rm -f core conftest.err conftest.$ac_objext \
7080 conftest$ac_exeext conftest.$ac_ext
7082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
7083 $as_echo "$ac_cv_working_alloca_h" >&6; }
7084 if test $ac_cv_working_alloca_h = yes; then
7086 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
7090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
7091 $as_echo_n "checking for alloca... " >&6; }
7092 if ${ac_cv_func_alloca_works+:} false; then :
7093 $as_echo_n "(cached) " >&6
7095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7096 /* end confdefs.h. */
7098 # define alloca __builtin_alloca
7101 # include <malloc.h>
7102 # define alloca _alloca
7104 # ifdef HAVE_ALLOCA_H
7105 # include <alloca.h>
7110 # ifndef alloca /* predefined by HP cc +Olibcalls */
7111 void *alloca (size_t);
7121 char *p = (char *) alloca (1);
7127 if ac_fn_c_try_link "$LINENO"; then :
7128 ac_cv_func_alloca_works=yes
7130 ac_cv_func_alloca_works=no
7132 rm -f core conftest.err conftest.$ac_objext \
7133 conftest$ac_exeext conftest.$ac_ext
7135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
7136 $as_echo "$ac_cv_func_alloca_works" >&6; }
7138 if test $ac_cv_func_alloca_works = yes; then
7140 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
7143 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
7144 # that cause trouble. Some versions do not even contain alloca or
7145 # contain a buggy version. If you still want to use their alloca,
7146 # use ar to extract alloca.o from them instead of compiling alloca.c.
7148 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
7150 $as_echo "#define C_ALLOCA 1" >>confdefs.h
7153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
7154 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
7155 if ${ac_cv_os_cray+:} false; then :
7156 $as_echo_n "(cached) " >&6
7158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7159 /* end confdefs.h. */
7160 #if defined CRAY && ! defined CRAY2
7167 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7168 $EGREP "webecray" >/dev/null 2>&1; then :
7176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
7177 $as_echo "$ac_cv_os_cray" >&6; }
7178 if test $ac_cv_os_cray = yes; then
7179 for ac_func in _getb67 GETB67 getb67; do
7180 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7181 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7182 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7184 cat >>confdefs.h <<_ACEOF
7185 #define CRAY_STACKSEG_END $ac_func
7194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
7195 $as_echo_n "checking stack direction for C alloca... " >&6; }
7196 if ${ac_cv_c_stack_direction+:} false; then :
7197 $as_echo_n "(cached) " >&6
7199 if test "$cross_compiling" = yes; then :
7200 ac_cv_c_stack_direction=0
7202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7203 /* end confdefs.h. */
7204 $ac_includes_default
7206 find_stack_direction (int *addr, int depth)
7211 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
7212 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
7217 main (int argc, char **argv)
7219 return find_stack_direction (0, argc + !argv + 20) < 0;
7222 if ac_fn_c_try_run "$LINENO"; then :
7223 ac_cv_c_stack_direction=1
7225 ac_cv_c_stack_direction=-1
7227 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7228 conftest.$ac_objext conftest.beam conftest.$ac_ext
7232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
7233 $as_echo "$ac_cv_c_stack_direction" >&6; }
7234 cat >>confdefs.h <<_ACEOF
7235 #define STACK_DIRECTION $ac_cv_c_stack_direction
7244 for ac_header in $ac_header_list
7246 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7247 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7249 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7250 cat >>confdefs.h <<_ACEOF
7251 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7265 for ac_func in getpagesize
7267 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
7268 if test "x$ac_cv_func_getpagesize" = xyes; then :
7269 cat >>confdefs.h <<_ACEOF
7270 #define HAVE_GETPAGESIZE 1
7276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
7277 $as_echo_n "checking for working mmap... " >&6; }
7278 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
7279 $as_echo_n "(cached) " >&6
7281 if test "$cross_compiling" = yes; then :
7282 ac_cv_func_mmap_fixed_mapped=no
7284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7285 /* end confdefs.h. */
7286 $ac_includes_default
7287 /* malloc might have been renamed as rpl_malloc. */
7290 /* Thanks to Mike Haertel and Jim Avera for this test.
7291 Here is a matrix of mmap possibilities:
7292 mmap private not fixed
7293 mmap private fixed at somewhere currently unmapped
7294 mmap private fixed at somewhere already mapped
7295 mmap shared not fixed
7296 mmap shared fixed at somewhere currently unmapped
7297 mmap shared fixed at somewhere already mapped
7298 For private mappings, we should verify that changes cannot be read()
7299 back from the file, nor mmap's back from the file at a different
7300 address. (There have been systems where private was not correctly
7301 implemented like the infamous i386 svr4.0, and systems where the
7302 VM page cache was not coherent with the file system buffer cache
7303 like early versions of FreeBSD and possibly contemporary NetBSD.)
7304 For shared mappings, we should conversely verify that changes get
7305 propagated back to all the places they're supposed to be.
7307 Grep wants private fixed already mapped.
7308 The main things grep needs to know about mmap are:
7309 * does it exist and is it safe to write into the mmap'd area
7310 * how to use it (BSD variants) */
7313 #include <sys/mman.h>
7315 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7319 /* This mess was copied from the GNU getpagesize.h. */
7320 #ifndef HAVE_GETPAGESIZE
7321 # ifdef _SC_PAGESIZE
7322 # define getpagesize() sysconf(_SC_PAGESIZE)
7323 # else /* no _SC_PAGESIZE */
7324 # ifdef HAVE_SYS_PARAM_H
7325 # include <sys/param.h>
7326 # ifdef EXEC_PAGESIZE
7327 # define getpagesize() EXEC_PAGESIZE
7328 # else /* no EXEC_PAGESIZE */
7330 # define getpagesize() NBPG * CLSIZE
7333 # endif /* no CLSIZE */
7334 # else /* no NBPG */
7336 # define getpagesize() NBPC
7337 # else /* no NBPC */
7339 # define getpagesize() PAGESIZE
7340 # endif /* PAGESIZE */
7341 # endif /* no NBPC */
7342 # endif /* no NBPG */
7343 # endif /* no EXEC_PAGESIZE */
7344 # else /* no HAVE_SYS_PARAM_H */
7345 # define getpagesize() 8192 /* punt totally */
7346 # endif /* no HAVE_SYS_PARAM_H */
7347 # endif /* no _SC_PAGESIZE */
7349 #endif /* no HAVE_GETPAGESIZE */
7354 char *data, *data2, *data3;
7359 pagesize = getpagesize ();
7361 /* First, make a file with some known garbage in it. */
7362 data = (char *) malloc (pagesize);
7365 for (i = 0; i < pagesize; ++i)
7366 *(data + i) = rand ();
7368 fd = creat ("conftest.mmap", 0600);
7371 if (write (fd, data, pagesize) != pagesize)
7375 /* Next, check that the tail of a page is zero-filled. File must have
7376 non-zero length, otherwise we risk SIGBUS for entire page. */
7377 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7381 if (write (fd2, cdata2, 1) != 1)
7383 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7384 if (data2 == MAP_FAILED)
7386 for (i = 0; i < pagesize; ++i)
7390 if (munmap (data2, pagesize))
7393 /* Next, try to mmap the file at a fixed address which already has
7394 something else allocated at it. If we can, also make sure that
7395 we see the same garbage. */
7396 fd = open ("conftest.mmap", O_RDWR);
7399 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7400 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7402 for (i = 0; i < pagesize; ++i)
7403 if (*(data + i) != *(data2 + i))
7406 /* Finally, make sure that changes to the mapped area do not
7407 percolate back to the file as seen by read(). (This is a bug on
7408 some variants of i386 svr4.0.) */
7409 for (i = 0; i < pagesize; ++i)
7410 *(data2 + i) = *(data2 + i) + 1;
7411 data3 = (char *) malloc (pagesize);
7414 if (read (fd, data3, pagesize) != pagesize)
7416 for (i = 0; i < pagesize; ++i)
7417 if (*(data + i) != *(data3 + i))
7423 if ac_fn_c_try_run "$LINENO"; then :
7424 ac_cv_func_mmap_fixed_mapped=yes
7426 ac_cv_func_mmap_fixed_mapped=no
7428 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7429 conftest.$ac_objext conftest.beam conftest.$ac_ext
7433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
7434 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
7435 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7437 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
7440 rm -f conftest.mmap conftest.txt
7443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
7444 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
7445 if ${ac_cv_gnu_library_2_1+:} false; then :
7446 $as_echo_n "(cached) " >&6
7448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7449 /* end confdefs.h. */
7451 #include <features.h>
7452 #ifdef __GNU_LIBRARY__
7453 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
7459 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7460 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
7461 ac_cv_gnu_library_2_1=yes
7463 ac_cv_gnu_library_2_1=no
7470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
7471 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
7473 GLIBC21="$ac_cv_gnu_library_2_1"
7478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
7479 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
7480 if ${gt_cv_int_divbyzero_sigfpe+:} false; then :
7481 $as_echo_n "(cached) " >&6
7484 if test "$cross_compiling" = yes; then :
7486 # Guess based on the CPU.
7488 alpha* | i3456786 | m68k | s390*)
7489 gt_cv_int_divbyzero_sigfpe="guessing yes";;
7491 gt_cv_int_divbyzero_sigfpe="guessing no";;
7495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7496 /* end confdefs.h. */
7503 sigfpe_handler (int sig)
7505 sigfpe_handler (sig) int sig;
7508 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
7509 exit (sig != SIGFPE);
7519 signal (SIGFPE, sigfpe_handler);
7520 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
7521 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
7522 signal (SIGTRAP, sigfpe_handler);
7524 /* Linux/SPARC yields signal SIGILL. */
7525 #if defined (__sparc__) && defined (__linux__)
7526 signal (SIGILL, sigfpe_handler);
7535 if ac_fn_c_try_run "$LINENO"; then :
7536 gt_cv_int_divbyzero_sigfpe=yes
7538 gt_cv_int_divbyzero_sigfpe=no
7540 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7541 conftest.$ac_objext conftest.beam conftest.$ac_ext
7546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
7547 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
7548 case "$gt_cv_int_divbyzero_sigfpe" in
7553 cat >>confdefs.h <<_ACEOF
7554 #define INTDIV0_RAISES_SIGFPE $value
7559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long" >&5
7560 $as_echo_n "checking for unsigned long long... " >&6; }
7561 if ${ac_cv_type_unsigned_long_long+:} false; then :
7562 $as_echo_n "(cached) " >&6
7564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7565 /* end confdefs.h. */
7566 unsigned long long ull = 1ULL; int i = 63;
7570 unsigned long long ullmax = (unsigned long long) -1;
7571 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
7576 if ac_fn_c_try_link "$LINENO"; then :
7577 ac_cv_type_unsigned_long_long=yes
7579 ac_cv_type_unsigned_long_long=no
7581 rm -f core conftest.err conftest.$ac_objext \
7582 conftest$ac_exeext conftest.$ac_ext
7584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long" >&5
7585 $as_echo "$ac_cv_type_unsigned_long_long" >&6; }
7586 if test $ac_cv_type_unsigned_long_long = yes; then
7588 $as_echo "#define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h
7595 if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
7597 test $ac_cv_type_unsigned_long_long = yes \
7598 && ac_type='unsigned long long' \
7599 || ac_type='unsigned long'
7601 cat >>confdefs.h <<_ACEOF
7602 #define uintmax_t $ac_type
7607 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
7612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
7613 $as_echo_n "checking for inttypes.h... " >&6; }
7614 if ${gt_cv_header_inttypes_h+:} false; then :
7615 $as_echo_n "(cached) " >&6
7618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7619 /* end confdefs.h. */
7620 #include <sys/types.h>
7621 #include <inttypes.h>
7630 if ac_fn_c_try_compile "$LINENO"; then :
7631 gt_cv_header_inttypes_h=yes
7633 gt_cv_header_inttypes_h=no
7635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_header_inttypes_h" >&5
7639 $as_echo "$gt_cv_header_inttypes_h" >&6; }
7640 if test $gt_cv_header_inttypes_h = yes; then
7642 cat >>confdefs.h <<_ACEOF
7643 #define HAVE_INTTYPES_H 1
7650 if test $gt_cv_header_inttypes_h = yes; then
7651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
7652 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
7653 if ${gt_cv_inttypes_pri_broken+:} false; then :
7654 $as_echo_n "(cached) " >&6
7657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7658 /* end confdefs.h. */
7659 #include <inttypes.h>
7672 if ac_fn_c_try_compile "$LINENO"; then :
7673 gt_cv_inttypes_pri_broken=no
7675 gt_cv_inttypes_pri_broken=yes
7677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
7681 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
7683 if test "$gt_cv_inttypes_pri_broken" = yes; then
7685 cat >>confdefs.h <<_ACEOF
7686 #define PRI_MACROS_BROKEN 1
7692 for ac_header in stdint.h
7694 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
7695 if test "x$ac_cv_header_stdint_h" = xyes; then :
7696 cat >>confdefs.h <<_ACEOF
7697 #define HAVE_STDINT_H 1
7704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
7705 $as_echo_n "checking for SIZE_MAX... " >&6; }
7707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7708 /* end confdefs.h. */
7719 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7720 $EGREP "Found it" >/dev/null 2>&1; then :
7725 if test -z "$result"; then
7726 if ac_fn_c_compute_int "$LINENO" "~(size_t)0 / 10" "res_hi" "#include <stddef.h>"; then :
7733 if ac_fn_c_compute_int "$LINENO" "~(size_t)0 % 10" "res_lo" "#include <stddef.h>"; then :
7740 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then :
7747 if test "$fits_in_uint" = 1; then
7748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7749 /* end confdefs.h. */
7752 extern unsigned long foo;
7762 if ac_fn_c_try_compile "$LINENO"; then :
7765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7767 if test -z "$result"; then
7768 if test "$fits_in_uint" = 1; then
7769 result="$res_hi$res_lo"U
7771 result="$res_hi$res_lo"UL
7777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
7778 $as_echo "$result" >&6; }
7779 if test "$result" != yes; then
7781 cat >>confdefs.h <<_ACEOF
7782 #define SIZE_MAX $result
7789 for ac_header in stdint.h
7791 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
7792 if test "x$ac_cv_header_stdint_h" = xyes; then :
7793 cat >>confdefs.h <<_ACEOF
7794 #define HAVE_STDINT_H 1
7803 if test "X$prefix" = "XNONE"; then
7804 acl_final_prefix="$ac_default_prefix"
7806 acl_final_prefix="$prefix"
7808 if test "X$exec_prefix" = "XNONE"; then
7809 acl_final_exec_prefix='${prefix}'
7811 acl_final_exec_prefix="$exec_prefix"
7813 acl_save_prefix="$prefix"
7814 prefix="$acl_final_prefix"
7815 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7816 prefix="$acl_save_prefix"
7819 # Check whether --with-gnu-ld was given.
7820 if test "${with_gnu_ld+set}" = set; then :
7821 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7826 # Prepare PATH_SEPARATOR.
7827 # The user is always right.
7828 if test "${PATH_SEPARATOR+set}" != set; then
7829 echo "#! /bin/sh" >conf$$.sh
7830 echo "exit 0" >>conf$$.sh
7832 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7840 if test "$GCC" = yes; then
7841 # Check if gcc -print-prog-name=ld gives a path.
7842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
7843 $as_echo_n "checking for ld used by GCC... " >&6; }
7846 # gcc leaves a trailing carriage return which upsets mingw
7847 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7849 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7852 # Accept absolute paths.
7853 [\\/]* | [A-Za-z]:[\\/]*)
7854 re_direlt='/[^/][^/]*/\.\./'
7855 # Canonicalize the path of ld
7856 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
7857 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
7858 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
7860 test -z "$LD" && LD="$ac_prog"
7863 # If it fails, then pretend we aren't using GCC.
7867 # If it is relative, then search for the first ld in PATH.
7871 elif test "$with_gnu_ld" = yes; then
7872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7873 $as_echo_n "checking for GNU ld... " >&6; }
7875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7876 $as_echo_n "checking for non-GNU ld... " >&6; }
7878 if ${acl_cv_path_LD+:} false; then :
7879 $as_echo_n "(cached) " >&6
7881 if test -z "$LD"; then
7882 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
7883 for ac_dir in $PATH; do
7884 test -z "$ac_dir" && ac_dir=.
7885 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7886 acl_cv_path_LD="$ac_dir/$ac_prog"
7887 # Check to see if the program is GNU ld. I'd rather use --version,
7888 # but apparently some GNU ld's only accept -v.
7889 # Break only if it was the GNU/non-GNU ld that we prefer.
7890 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
7891 *GNU* | *'with BFD'*)
7892 test "$with_gnu_ld" != no && break ;;
7894 test "$with_gnu_ld" != yes && break ;;
7900 acl_cv_path_LD="$LD" # Let the user override the test with a path.
7904 LD="$acl_cv_path_LD"
7905 if test -n "$LD"; then
7906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7907 $as_echo "$LD" >&6; }
7909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7910 $as_echo "no" >&6; }
7912 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7914 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7915 if ${acl_cv_prog_gnu_ld+:} false; then :
7916 $as_echo_n "(cached) " >&6
7918 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
7919 case `$LD -v 2>&1 </dev/null` in
7920 *GNU* | *'with BFD'*)
7921 acl_cv_prog_gnu_ld=yes ;;
7923 acl_cv_prog_gnu_ld=no ;;
7926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
7927 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
7928 with_gnu_ld=$acl_cv_prog_gnu_ld
7932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
7933 $as_echo_n "checking for shared library run path origin... " >&6; }
7934 if ${acl_cv_rpath+:} false; then :
7935 $as_echo_n "(cached) " >&6
7938 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
7939 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
7946 $as_echo "$acl_cv_rpath" >&6; }
7948 libext="$acl_cv_libext"
7949 shlibext="$acl_cv_shlibext"
7950 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
7951 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
7952 hardcode_direct="$acl_cv_hardcode_direct"
7953 hardcode_minus_L="$acl_cv_hardcode_minus_L"
7954 # Check whether --enable-rpath was given.
7955 if test "${enable_rpath+set}" = set; then :
7956 enableval=$enable_rpath; :
7970 acl_save_prefix="$prefix"
7971 prefix="$acl_final_prefix"
7972 acl_save_exec_prefix="$exec_prefix"
7973 exec_prefix="$acl_final_exec_prefix"
7975 eval additional_includedir=\"$includedir\"
7976 eval additional_libdir=\"$libdir\"
7978 exec_prefix="$acl_save_exec_prefix"
7979 prefix="$acl_save_prefix"
7982 # Check whether --with-libiconv-prefix was given.
7983 if test "${with_libiconv_prefix+set}" = set; then :
7984 withval=$with_libiconv_prefix;
7985 if test "X$withval" = "Xno"; then
7988 if test "X$withval" = "X"; then
7990 acl_save_prefix="$prefix"
7991 prefix="$acl_final_prefix"
7992 acl_save_exec_prefix="$exec_prefix"
7993 exec_prefix="$acl_final_exec_prefix"
7995 eval additional_includedir=\"$includedir\"
7996 eval additional_libdir=\"$libdir\"
7998 exec_prefix="$acl_save_exec_prefix"
7999 prefix="$acl_save_prefix"
8002 additional_includedir="$withval/include"
8003 additional_libdir="$withval/lib"
8014 names_already_handled=
8015 names_next_round='iconv '
8016 while test -n "$names_next_round"; do
8017 names_this_round="$names_next_round"
8019 for name in $names_this_round; do
8021 for n in $names_already_handled; do
8022 if test "$n" = "$name"; then
8027 if test -z "$already_handled"; then
8028 names_already_handled="$names_already_handled $name"
8029 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
8030 eval value=\"\$HAVE_LIB$uppername\"
8031 if test -n "$value"; then
8032 if test "$value" = yes; then
8033 eval value=\"\$LIB$uppername\"
8034 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
8035 eval value=\"\$LTLIB$uppername\"
8036 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
8045 if test $use_additional = yes; then
8046 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
8047 found_dir="$additional_libdir"
8048 found_so="$additional_libdir/lib$name.$shlibext"
8049 if test -f "$additional_libdir/lib$name.la"; then
8050 found_la="$additional_libdir/lib$name.la"
8053 if test -f "$additional_libdir/lib$name.$libext"; then
8054 found_dir="$additional_libdir"
8055 found_a="$additional_libdir/lib$name.$libext"
8056 if test -f "$additional_libdir/lib$name.la"; then
8057 found_la="$additional_libdir/lib$name.la"
8062 if test "X$found_dir" = "X"; then
8063 for x in $LDFLAGS $LTLIBICONV; do
8065 acl_save_prefix="$prefix"
8066 prefix="$acl_final_prefix"
8067 acl_save_exec_prefix="$exec_prefix"
8068 exec_prefix="$acl_final_exec_prefix"
8070 exec_prefix="$acl_save_exec_prefix"
8071 prefix="$acl_save_prefix"
8075 dir=`echo "X$x" | sed -e 's/^X-L//'`
8076 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
8078 found_so="$dir/lib$name.$shlibext"
8079 if test -f "$dir/lib$name.la"; then
8080 found_la="$dir/lib$name.la"
8083 if test -f "$dir/lib$name.$libext"; then
8085 found_a="$dir/lib$name.$libext"
8086 if test -f "$dir/lib$name.la"; then
8087 found_la="$dir/lib$name.la"
8093 if test "X$found_dir" != "X"; then
8098 if test "X$found_dir" != "X"; then
8099 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
8100 if test "X$found_so" != "X"; then
8101 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
8102 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8105 for x in $ltrpathdirs; do
8106 if test "X$x" = "X$found_dir"; then
8111 if test -z "$haveit"; then
8112 ltrpathdirs="$ltrpathdirs $found_dir"
8114 if test "$hardcode_direct" = yes; then
8115 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8117 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
8118 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8120 for x in $rpathdirs; do
8121 if test "X$x" = "X$found_dir"; then
8126 if test -z "$haveit"; then
8127 rpathdirs="$rpathdirs $found_dir"
8131 for x in $LDFLAGS $LIBICONV; do
8133 acl_save_prefix="$prefix"
8134 prefix="$acl_final_prefix"
8135 acl_save_exec_prefix="$exec_prefix"
8136 exec_prefix="$acl_final_exec_prefix"
8138 exec_prefix="$acl_save_exec_prefix"
8139 prefix="$acl_save_prefix"
8141 if test "X$x" = "X-L$found_dir"; then
8146 if test -z "$haveit"; then
8147 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
8149 if test "$hardcode_minus_L" != no; then
8150 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8152 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8158 if test "X$found_a" != "X"; then
8159 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
8161 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
8164 additional_includedir=
8165 case "$found_dir" in
8167 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
8168 additional_includedir="$basedir/include"
8171 if test "X$additional_includedir" != "X"; then
8172 if test "X$additional_includedir" != "X/usr/include"; then
8174 if test "X$additional_includedir" = "X/usr/local/include"; then
8175 if test -n "$GCC"; then
8177 linux*) haveit=yes;;
8181 if test -z "$haveit"; then
8182 for x in $CPPFLAGS $INCICONV; do
8184 acl_save_prefix="$prefix"
8185 prefix="$acl_final_prefix"
8186 acl_save_exec_prefix="$exec_prefix"
8187 exec_prefix="$acl_final_exec_prefix"
8189 exec_prefix="$acl_save_exec_prefix"
8190 prefix="$acl_save_prefix"
8192 if test "X$x" = "X-I$additional_includedir"; then
8197 if test -z "$haveit"; then
8198 if test -d "$additional_includedir"; then
8199 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
8205 if test -n "$found_la"; then
8206 save_libdir="$libdir"
8208 */* | *\\*) . "$found_la" ;;
8209 *) . "./$found_la" ;;
8211 libdir="$save_libdir"
8212 for dep in $dependency_libs; do
8215 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8216 if test "X$additional_libdir" != "X/usr/lib"; then
8218 if test "X$additional_libdir" = "X/usr/local/lib"; then
8219 if test -n "$GCC"; then
8221 linux*) haveit=yes;;
8225 if test -z "$haveit"; then
8227 for x in $LDFLAGS $LIBICONV; do
8229 acl_save_prefix="$prefix"
8230 prefix="$acl_final_prefix"
8231 acl_save_exec_prefix="$exec_prefix"
8232 exec_prefix="$acl_final_exec_prefix"
8234 exec_prefix="$acl_save_exec_prefix"
8235 prefix="$acl_save_prefix"
8237 if test "X$x" = "X-L$additional_libdir"; then
8242 if test -z "$haveit"; then
8243 if test -d "$additional_libdir"; then
8244 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
8248 for x in $LDFLAGS $LTLIBICONV; do
8250 acl_save_prefix="$prefix"
8251 prefix="$acl_final_prefix"
8252 acl_save_exec_prefix="$exec_prefix"
8253 exec_prefix="$acl_final_exec_prefix"
8255 exec_prefix="$acl_save_exec_prefix"
8256 prefix="$acl_save_prefix"
8258 if test "X$x" = "X-L$additional_libdir"; then
8263 if test -z "$haveit"; then
8264 if test -d "$additional_libdir"; then
8265 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
8272 dir=`echo "X$dep" | sed -e 's/^X-R//'`
8273 if test "$enable_rpath" != no; then
8275 for x in $rpathdirs; do
8276 if test "X$x" = "X$dir"; then
8281 if test -z "$haveit"; then
8282 rpathdirs="$rpathdirs $dir"
8285 for x in $ltrpathdirs; do
8286 if test "X$x" = "X$dir"; then
8291 if test -z "$haveit"; then
8292 ltrpathdirs="$ltrpathdirs $dir"
8297 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8300 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8303 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
8304 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
8310 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8311 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
8317 if test "X$rpathdirs" != "X"; then
8318 if test -n "$hardcode_libdir_separator"; then
8320 for found_dir in $rpathdirs; do
8321 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8323 acl_save_libdir="$libdir"
8325 eval flag=\"$hardcode_libdir_flag_spec\"
8326 libdir="$acl_save_libdir"
8327 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8329 for found_dir in $rpathdirs; do
8330 acl_save_libdir="$libdir"
8332 eval flag=\"$hardcode_libdir_flag_spec\"
8333 libdir="$acl_save_libdir"
8334 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8338 if test "X$ltrpathdirs" != "X"; then
8339 for found_dir in $ltrpathdirs; do
8340 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
8351 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
8352 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
8356 $as_echo "#define ptrdiff_t long" >>confdefs.h
8361 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
8362 stdlib.h string.h unistd.h sys/param.h
8364 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8365 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8366 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8367 cat >>confdefs.h <<_ACEOF
8368 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8375 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
8376 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
8377 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
8380 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8381 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8382 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8383 cat >>confdefs.h <<_ACEOF
8384 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snprintf is declared" >&5
8393 $as_echo_n "checking whether _snprintf is declared... " >&6; }
8394 if ${ac_cv_have_decl__snprintf+:} false; then :
8395 $as_echo_n "(cached) " >&6
8397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8398 /* end confdefs.h. */
8405 char *p = (char *) _snprintf;
8412 if ac_fn_c_try_compile "$LINENO"; then :
8413 ac_cv_have_decl__snprintf=yes
8415 ac_cv_have_decl__snprintf=no
8417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snprintf" >&5
8420 $as_echo "$ac_cv_have_decl__snprintf" >&6; }
8421 if test $ac_cv_have_decl__snprintf = yes; then
8427 cat >>confdefs.h <<_ACEOF
8428 #define HAVE_DECL__SNPRINTF $gt_value
8433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snwprintf is declared" >&5
8434 $as_echo_n "checking whether _snwprintf is declared... " >&6; }
8435 if ${ac_cv_have_decl__snwprintf+:} false; then :
8436 $as_echo_n "(cached) " >&6
8438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8439 /* end confdefs.h. */
8446 char *p = (char *) _snwprintf;
8453 if ac_fn_c_try_compile "$LINENO"; then :
8454 ac_cv_have_decl__snwprintf=yes
8456 ac_cv_have_decl__snwprintf=no
8458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snwprintf" >&5
8461 $as_echo "$ac_cv_have_decl__snwprintf" >&6; }
8462 if test $ac_cv_have_decl__snwprintf = yes; then
8468 cat >>confdefs.h <<_ACEOF
8469 #define HAVE_DECL__SNWPRINTF $gt_value
8475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether feof_unlocked is declared" >&5
8476 $as_echo_n "checking whether feof_unlocked is declared... " >&6; }
8477 if ${ac_cv_have_decl_feof_unlocked+:} false; then :
8478 $as_echo_n "(cached) " >&6
8480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8481 /* end confdefs.h. */
8487 #ifndef feof_unlocked
8488 char *p = (char *) feof_unlocked;
8495 if ac_fn_c_try_compile "$LINENO"; then :
8496 ac_cv_have_decl_feof_unlocked=yes
8498 ac_cv_have_decl_feof_unlocked=no
8500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_feof_unlocked" >&5
8503 $as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
8504 if test $ac_cv_have_decl_feof_unlocked = yes; then
8510 cat >>confdefs.h <<_ACEOF
8511 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
8516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fgets_unlocked is declared" >&5
8517 $as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
8518 if ${ac_cv_have_decl_fgets_unlocked+:} false; then :
8519 $as_echo_n "(cached) " >&6
8521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8522 /* end confdefs.h. */
8528 #ifndef fgets_unlocked
8529 char *p = (char *) fgets_unlocked;
8536 if ac_fn_c_try_compile "$LINENO"; then :
8537 ac_cv_have_decl_fgets_unlocked=yes
8539 ac_cv_have_decl_fgets_unlocked=no
8541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_fgets_unlocked" >&5
8544 $as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
8545 if test $ac_cv_have_decl_fgets_unlocked = yes; then
8551 cat >>confdefs.h <<_ACEOF
8552 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
8557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getc_unlocked is declared" >&5
8558 $as_echo_n "checking whether getc_unlocked is declared... " >&6; }
8559 if ${ac_cv_have_decl_getc_unlocked+:} false; then :
8560 $as_echo_n "(cached) " >&6
8562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8563 /* end confdefs.h. */
8569 #ifndef getc_unlocked
8570 char *p = (char *) getc_unlocked;
8577 if ac_fn_c_try_compile "$LINENO"; then :
8578 ac_cv_have_decl_getc_unlocked=yes
8580 ac_cv_have_decl_getc_unlocked=no
8582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_getc_unlocked" >&5
8585 $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
8586 if test $ac_cv_have_decl_getc_unlocked = yes; then
8592 cat >>confdefs.h <<_ACEOF
8593 #define HAVE_DECL_GETC_UNLOCKED $gt_value
8598 case $gt_cv_func_printf_posix in
8599 *yes) HAVE_POSIX_PRINTF=1 ;;
8600 *) HAVE_POSIX_PRINTF=0 ;;
8603 if test "$ac_cv_func_asprintf" = yes; then
8609 if test "$ac_cv_func_snprintf" = yes; then
8615 if test "$ac_cv_func_wprintf" = yes; then
8627 am_save_CPPFLAGS="$CPPFLAGS"
8629 for element in $INCICONV; do
8631 for x in $CPPFLAGS; do
8633 acl_save_prefix="$prefix"
8634 prefix="$acl_final_prefix"
8635 acl_save_exec_prefix="$exec_prefix"
8636 exec_prefix="$acl_final_exec_prefix"
8638 exec_prefix="$acl_save_exec_prefix"
8639 prefix="$acl_save_prefix"
8641 if test "X$x" = "X$element"; then
8646 if test -z "$haveit"; then
8647 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
8653 $as_echo_n "checking for iconv... " >&6; }
8654 if ${am_cv_func_iconv+:} false; then :
8655 $as_echo_n "(cached) " >&6
8658 am_cv_func_iconv="no, consider installing GNU libiconv"
8660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8661 /* end confdefs.h. */
8667 iconv_t cd = iconv_open("","");
8668 iconv(cd,NULL,NULL,NULL,NULL);
8674 if ac_fn_c_try_link "$LINENO"; then :
8675 am_cv_func_iconv=yes
8677 rm -f core conftest.err conftest.$ac_objext \
8678 conftest$ac_exeext conftest.$ac_ext
8679 if test "$am_cv_func_iconv" != yes; then
8680 am_save_LIBS="$LIBS"
8681 LIBS="$LIBS $LIBICONV"
8682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8683 /* end confdefs.h. */
8689 iconv_t cd = iconv_open("","");
8690 iconv(cd,NULL,NULL,NULL,NULL);
8696 if ac_fn_c_try_link "$LINENO"; then :
8698 am_cv_func_iconv=yes
8700 rm -f core conftest.err conftest.$ac_objext \
8701 conftest$ac_exeext conftest.$ac_ext
8702 LIBS="$am_save_LIBS"
8706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
8707 $as_echo "$am_cv_func_iconv" >&6; }
8708 if test "$am_cv_func_iconv" = yes; then
8710 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
8713 if test "$am_cv_lib_iconv" = yes; then
8714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
8715 $as_echo_n "checking how to link with libiconv... " >&6; }
8716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
8717 $as_echo "$LIBICONV" >&6; }
8719 CPPFLAGS="$am_save_CPPFLAGS"
8726 if test "$am_cv_func_iconv" = yes; then
8727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
8728 $as_echo_n "checking for iconv declaration... " >&6; }
8729 if ${am_cv_proto_iconv+:} false; then :
8730 $as_echo_n "(cached) " >&6
8733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8734 /* end confdefs.h. */
8742 #if defined(__STDC__) || defined(__cplusplus)
8743 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
8756 if ac_fn_c_try_compile "$LINENO"; then :
8757 am_cv_proto_iconv_arg1=""
8759 am_cv_proto_iconv_arg1="const"
8761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8762 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);"
8765 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
8766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
8767 }$am_cv_proto_iconv" >&5
8769 }$am_cv_proto_iconv" >&6; }
8771 cat >>confdefs.h <<_ACEOF
8772 #define ICONV_CONST $am_cv_proto_iconv_arg1
8778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
8779 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
8780 if ${am_cv_langinfo_codeset+:} false; then :
8781 $as_echo_n "(cached) " >&6
8783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8784 /* end confdefs.h. */
8785 #include <langinfo.h>
8789 char* cs = nl_langinfo(CODESET);
8794 if ac_fn_c_try_link "$LINENO"; then :
8795 am_cv_langinfo_codeset=yes
8797 am_cv_langinfo_codeset=no
8799 rm -f core conftest.err conftest.$ac_objext \
8800 conftest$ac_exeext conftest.$ac_ext
8803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
8804 $as_echo "$am_cv_langinfo_codeset" >&6; }
8805 if test $am_cv_langinfo_codeset = yes; then
8807 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
8811 if test $ac_cv_header_locale_h = yes; then
8813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
8814 $as_echo_n "checking for LC_MESSAGES... " >&6; }
8815 if ${am_cv_val_LC_MESSAGES+:} false; then :
8816 $as_echo_n "(cached) " >&6
8818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8819 /* end confdefs.h. */
8829 if ac_fn_c_try_link "$LINENO"; then :
8830 am_cv_val_LC_MESSAGES=yes
8832 am_cv_val_LC_MESSAGES=no
8834 rm -f core conftest.err conftest.$ac_objext \
8835 conftest$ac_exeext conftest.$ac_ext
8837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
8838 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
8839 if test $am_cv_val_LC_MESSAGES = yes; then
8841 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
8847 for ac_prog in bison
8849 # Extract the first word of "$ac_prog", so it can be a program name with args.
8850 set dummy $ac_prog; ac_word=$2
8851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8852 $as_echo_n "checking for $ac_word... " >&6; }
8853 if ${ac_cv_prog_INTLBISON+:} false; then :
8854 $as_echo_n "(cached) " >&6
8856 if test -n "$INTLBISON"; then
8857 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
8859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8863 test -z "$as_dir" && as_dir=.
8864 for ac_exec_ext in '' $ac_executable_extensions; do
8865 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8866 ac_cv_prog_INTLBISON="$ac_prog"
8867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8876 INTLBISON=$ac_cv_prog_INTLBISON
8877 if test -n "$INTLBISON"; then
8878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
8879 $as_echo "$INTLBISON" >&6; }
8881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8882 $as_echo "no" >&6; }
8886 test -n "$INTLBISON" && break
8889 if test -z "$INTLBISON"; then
8892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
8893 $as_echo_n "checking version of bison... " >&6; }
8894 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
8895 case $ac_prog_version in
8896 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
8897 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
8898 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
8899 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
8901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
8902 $as_echo "$ac_prog_version" >&6; }
8904 if test $ac_verc_fail = yes; then
8923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
8924 $as_echo_n "checking whether NLS is requested... " >&6; }
8925 # Check whether --enable-nls was given.
8926 if test "${enable_nls+set}" = set; then :
8927 enableval=$enable_nls; USE_NLS=$enableval
8932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
8933 $as_echo "$USE_NLS" >&6; }
8938 BUILD_INCLUDED_LIBINTL=no
8939 USE_INCLUDED_LIBINTL=no
8945 if test "$USE_NLS" = "yes"; then
8946 gt_use_preinstalled_gnugettext=no
8948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
8949 $as_echo_n "checking whether included gettext is requested... " >&6; }
8951 # Check whether --with-included-gettext was given.
8952 if test "${with_included_gettext+set}" = set; then :
8953 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
8955 nls_cv_force_use_gnu_gettext=no
8958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
8959 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
8961 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
8962 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
8969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
8970 $as_echo_n "checking for GNU gettext in libc... " >&6; }
8971 if ${gt_cv_func_gnugettext1_libc+:} false; then :
8972 $as_echo_n "(cached) " >&6
8974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8975 /* end confdefs.h. */
8976 #include <libintl.h>
8977 extern int _nl_msg_cat_cntr;
8978 extern int *_nl_domain_bindings;
8982 bindtextdomain ("", "");
8983 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
8988 if ac_fn_c_try_link "$LINENO"; then :
8989 gt_cv_func_gnugettext1_libc=yes
8991 gt_cv_func_gnugettext1_libc=no
8993 rm -f core conftest.err conftest.$ac_objext \
8994 conftest$ac_exeext conftest.$ac_ext
8996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
8997 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
8999 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
9005 acl_save_prefix="$prefix"
9006 prefix="$acl_final_prefix"
9007 acl_save_exec_prefix="$exec_prefix"
9008 exec_prefix="$acl_final_exec_prefix"
9010 eval additional_includedir=\"$includedir\"
9011 eval additional_libdir=\"$libdir\"
9013 exec_prefix="$acl_save_exec_prefix"
9014 prefix="$acl_save_prefix"
9017 # Check whether --with-libintl-prefix was given.
9018 if test "${with_libintl_prefix+set}" = set; then :
9019 withval=$with_libintl_prefix;
9020 if test "X$withval" = "Xno"; then
9023 if test "X$withval" = "X"; then
9025 acl_save_prefix="$prefix"
9026 prefix="$acl_final_prefix"
9027 acl_save_exec_prefix="$exec_prefix"
9028 exec_prefix="$acl_final_exec_prefix"
9030 eval additional_includedir=\"$includedir\"
9031 eval additional_libdir=\"$libdir\"
9033 exec_prefix="$acl_save_exec_prefix"
9034 prefix="$acl_save_prefix"
9037 additional_includedir="$withval/include"
9038 additional_libdir="$withval/lib"
9049 names_already_handled=
9050 names_next_round='intl '
9051 while test -n "$names_next_round"; do
9052 names_this_round="$names_next_round"
9054 for name in $names_this_round; do
9056 for n in $names_already_handled; do
9057 if test "$n" = "$name"; then
9062 if test -z "$already_handled"; then
9063 names_already_handled="$names_already_handled $name"
9064 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9065 eval value=\"\$HAVE_LIB$uppername\"
9066 if test -n "$value"; then
9067 if test "$value" = yes; then
9068 eval value=\"\$LIB$uppername\"
9069 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
9070 eval value=\"\$LTLIB$uppername\"
9071 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
9080 if test $use_additional = yes; then
9081 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9082 found_dir="$additional_libdir"
9083 found_so="$additional_libdir/lib$name.$shlibext"
9084 if test -f "$additional_libdir/lib$name.la"; then
9085 found_la="$additional_libdir/lib$name.la"
9088 if test -f "$additional_libdir/lib$name.$libext"; then
9089 found_dir="$additional_libdir"
9090 found_a="$additional_libdir/lib$name.$libext"
9091 if test -f "$additional_libdir/lib$name.la"; then
9092 found_la="$additional_libdir/lib$name.la"
9097 if test "X$found_dir" = "X"; then
9098 for x in $LDFLAGS $LTLIBINTL; do
9100 acl_save_prefix="$prefix"
9101 prefix="$acl_final_prefix"
9102 acl_save_exec_prefix="$exec_prefix"
9103 exec_prefix="$acl_final_exec_prefix"
9105 exec_prefix="$acl_save_exec_prefix"
9106 prefix="$acl_save_prefix"
9110 dir=`echo "X$x" | sed -e 's/^X-L//'`
9111 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9113 found_so="$dir/lib$name.$shlibext"
9114 if test -f "$dir/lib$name.la"; then
9115 found_la="$dir/lib$name.la"
9118 if test -f "$dir/lib$name.$libext"; then
9120 found_a="$dir/lib$name.$libext"
9121 if test -f "$dir/lib$name.la"; then
9122 found_la="$dir/lib$name.la"
9128 if test "X$found_dir" != "X"; then
9133 if test "X$found_dir" != "X"; then
9134 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
9135 if test "X$found_so" != "X"; then
9136 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9137 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9140 for x in $ltrpathdirs; do
9141 if test "X$x" = "X$found_dir"; then
9146 if test -z "$haveit"; then
9147 ltrpathdirs="$ltrpathdirs $found_dir"
9149 if test "$hardcode_direct" = yes; then
9150 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9152 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9153 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9155 for x in $rpathdirs; do
9156 if test "X$x" = "X$found_dir"; then
9161 if test -z "$haveit"; then
9162 rpathdirs="$rpathdirs $found_dir"
9166 for x in $LDFLAGS $LIBINTL; do
9168 acl_save_prefix="$prefix"
9169 prefix="$acl_final_prefix"
9170 acl_save_exec_prefix="$exec_prefix"
9171 exec_prefix="$acl_final_exec_prefix"
9173 exec_prefix="$acl_save_exec_prefix"
9174 prefix="$acl_save_prefix"
9176 if test "X$x" = "X-L$found_dir"; then
9181 if test -z "$haveit"; then
9182 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
9184 if test "$hardcode_minus_L" != no; then
9185 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9187 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
9193 if test "X$found_a" != "X"; then
9194 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
9196 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
9199 additional_includedir=
9200 case "$found_dir" in
9202 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9203 additional_includedir="$basedir/include"
9206 if test "X$additional_includedir" != "X"; then
9207 if test "X$additional_includedir" != "X/usr/include"; then
9209 if test "X$additional_includedir" = "X/usr/local/include"; then
9210 if test -n "$GCC"; then
9212 linux*) haveit=yes;;
9216 if test -z "$haveit"; then
9217 for x in $CPPFLAGS $INCINTL; do
9219 acl_save_prefix="$prefix"
9220 prefix="$acl_final_prefix"
9221 acl_save_exec_prefix="$exec_prefix"
9222 exec_prefix="$acl_final_exec_prefix"
9224 exec_prefix="$acl_save_exec_prefix"
9225 prefix="$acl_save_prefix"
9227 if test "X$x" = "X-I$additional_includedir"; then
9232 if test -z "$haveit"; then
9233 if test -d "$additional_includedir"; then
9234 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
9240 if test -n "$found_la"; then
9241 save_libdir="$libdir"
9243 */* | *\\*) . "$found_la" ;;
9244 *) . "./$found_la" ;;
9246 libdir="$save_libdir"
9247 for dep in $dependency_libs; do
9250 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9251 if test "X$additional_libdir" != "X/usr/lib"; then
9253 if test "X$additional_libdir" = "X/usr/local/lib"; then
9254 if test -n "$GCC"; then
9256 linux*) haveit=yes;;
9260 if test -z "$haveit"; then
9262 for x in $LDFLAGS $LIBINTL; do
9264 acl_save_prefix="$prefix"
9265 prefix="$acl_final_prefix"
9266 acl_save_exec_prefix="$exec_prefix"
9267 exec_prefix="$acl_final_exec_prefix"
9269 exec_prefix="$acl_save_exec_prefix"
9270 prefix="$acl_save_prefix"
9272 if test "X$x" = "X-L$additional_libdir"; then
9277 if test -z "$haveit"; then
9278 if test -d "$additional_libdir"; then
9279 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
9283 for x in $LDFLAGS $LTLIBINTL; do
9285 acl_save_prefix="$prefix"
9286 prefix="$acl_final_prefix"
9287 acl_save_exec_prefix="$exec_prefix"
9288 exec_prefix="$acl_final_exec_prefix"
9290 exec_prefix="$acl_save_exec_prefix"
9291 prefix="$acl_save_prefix"
9293 if test "X$x" = "X-L$additional_libdir"; then
9298 if test -z "$haveit"; then
9299 if test -d "$additional_libdir"; then
9300 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
9307 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9308 if test "$enable_rpath" != no; then
9310 for x in $rpathdirs; do
9311 if test "X$x" = "X$dir"; then
9316 if test -z "$haveit"; then
9317 rpathdirs="$rpathdirs $dir"
9320 for x in $ltrpathdirs; do
9321 if test "X$x" = "X$dir"; then
9326 if test -z "$haveit"; then
9327 ltrpathdirs="$ltrpathdirs $dir"
9332 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9335 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9338 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
9339 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
9345 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
9346 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
9352 if test "X$rpathdirs" != "X"; then
9353 if test -n "$hardcode_libdir_separator"; then
9355 for found_dir in $rpathdirs; do
9356 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9358 acl_save_libdir="$libdir"
9360 eval flag=\"$hardcode_libdir_flag_spec\"
9361 libdir="$acl_save_libdir"
9362 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
9364 for found_dir in $rpathdirs; do
9365 acl_save_libdir="$libdir"
9367 eval flag=\"$hardcode_libdir_flag_spec\"
9368 libdir="$acl_save_libdir"
9369 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
9373 if test "X$ltrpathdirs" != "X"; then
9374 for found_dir in $ltrpathdirs; do
9375 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
9379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
9380 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
9381 if ${gt_cv_func_gnugettext1_libintl+:} false; then :
9382 $as_echo_n "(cached) " >&6
9384 gt_save_CPPFLAGS="$CPPFLAGS"
9385 CPPFLAGS="$CPPFLAGS $INCINTL"
9386 gt_save_LIBS="$LIBS"
9387 LIBS="$LIBS $LIBINTL"
9388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9389 /* end confdefs.h. */
9390 #include <libintl.h>
9391 extern int _nl_msg_cat_cntr;
9396 const char *_nl_expand_alias ();
9400 bindtextdomain ("", "");
9401 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
9406 if ac_fn_c_try_link "$LINENO"; then :
9407 gt_cv_func_gnugettext1_libintl=yes
9409 gt_cv_func_gnugettext1_libintl=no
9411 rm -f core conftest.err conftest.$ac_objext \
9412 conftest$ac_exeext conftest.$ac_ext
9413 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
9414 LIBS="$LIBS $LIBICONV"
9415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9416 /* end confdefs.h. */
9417 #include <libintl.h>
9418 extern int _nl_msg_cat_cntr;
9423 const char *_nl_expand_alias ();
9427 bindtextdomain ("", "");
9428 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
9433 if ac_fn_c_try_link "$LINENO"; then :
9434 LIBINTL="$LIBINTL $LIBICONV"
9435 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
9436 gt_cv_func_gnugettext1_libintl=yes
9439 rm -f core conftest.err conftest.$ac_objext \
9440 conftest$ac_exeext conftest.$ac_ext
9442 CPPFLAGS="$gt_save_CPPFLAGS"
9443 LIBS="$gt_save_LIBS"
9445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
9446 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
9449 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
9450 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
9451 && test "$PACKAGE" != gettext-runtime \
9452 && test "$PACKAGE" != gettext-tools; }; then
9453 gt_use_preinstalled_gnugettext=yes
9461 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
9462 nls_cv_use_gnu_gettext=yes
9466 if test "$nls_cv_use_gnu_gettext" = "yes"; then
9467 BUILD_INCLUDED_LIBINTL=yes
9468 USE_INCLUDED_LIBINTL=yes
9469 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
9470 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
9471 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
9474 if test "$gt_use_preinstalled_gnugettext" = "yes" \
9475 || test "$nls_cv_use_gnu_gettext" = "yes"; then
9480 if test "$gt_use_preinstalled_gnugettext" = "yes" \
9481 || test "$nls_cv_use_gnu_gettext" = "yes"; then
9483 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
9490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
9491 $as_echo_n "checking whether to use NLS... " >&6; }
9492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
9493 $as_echo "$USE_NLS" >&6; }
9494 if test "$USE_NLS" = "yes"; then
9495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
9496 $as_echo_n "checking where the gettext function comes from... " >&6; }
9497 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
9498 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
9499 gt_source="external libintl"
9504 gt_source="included intl directory"
9506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
9507 $as_echo "$gt_source" >&6; }
9510 if test "$USE_NLS" = "yes"; then
9512 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
9513 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
9514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
9515 $as_echo_n "checking how to link with libintl... " >&6; }
9516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
9517 $as_echo "$LIBINTL" >&6; }
9519 for element in $INCINTL; do
9521 for x in $CPPFLAGS; do
9523 acl_save_prefix="$prefix"
9524 prefix="$acl_final_prefix"
9525 acl_save_exec_prefix="$exec_prefix"
9526 exec_prefix="$acl_final_exec_prefix"
9528 exec_prefix="$acl_save_exec_prefix"
9529 prefix="$acl_save_prefix"
9531 if test "X$x" = "X$element"; then
9536 if test -z "$haveit"; then
9537 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9544 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
9547 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
9555 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
9556 BUILD_INCLUDED_LIBINTL=yes
9564 nls_cv_header_libgt=
9575 if test "$USE_INCLUDED_LIBINTL" = yes; then
9576 INTLOBJS="\$(GETTOBJS)"
9580 INTL_LIBTOOL_SUFFIX_PREFIX=
9592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9593 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
9595 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
9596 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
9597 $as_echo_n "(cached) " >&6
9599 cat >conftest.make <<\_ACEOF
9602 @echo '@@@%%%=$(MAKE)=@@@%%%'
9604 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
9605 case `${MAKE-make} -f conftest.make 2>/dev/null` in
9607 eval ac_cv_prog_make_${ac_make}_set=yes;;
9609 eval ac_cv_prog_make_${ac_make}_set=no;;
9613 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9615 $as_echo "yes" >&6; }
9618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9619 $as_echo "no" >&6; }
9620 SET_MAKE="MAKE=${MAKE-make}"
9623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5
9624 $as_echo_n "checking for GNU make... " >&6; }
9625 if ${_cv_gnu_make_command+:} false; then :
9626 $as_echo_n "(cached) " >&6
9628 _cv_gnu_make_command='' ;
9629 for a in "$MAKE" make gmake gnumake ; do
9630 if test -z "$a" ; then continue ; fi ;
9631 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
9632 _cv_gnu_make_command=$a ;
9638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_cv_gnu_make_command" >&5
9639 $as_echo "$_cv_gnu_make_command" >&6; } ;
9640 if test "x$_cv_gnu_make_command" != "x" ; then
9646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"Not found\"" >&5
9647 $as_echo "\"Not found\"" >&6; };
9652 # Extract the first word of "ln", so it can be a program name with args.
9653 set dummy ln; ac_word=$2
9654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9655 $as_echo_n "checking for $ac_word... " >&6; }
9656 if ${ac_cv_path_LN+:} false; then :
9657 $as_echo_n "(cached) " >&6
9661 ac_cv_path_LN="$LN" # Let the user override the test with a path.
9664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9668 test -z "$as_dir" && as_dir=.
9669 for ac_exec_ext in '' $ac_executable_extensions; do
9670 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9671 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
9672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9679 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
9684 if test -n "$LN"; then
9685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
9686 $as_echo "$LN" >&6; }
9688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9689 $as_echo "no" >&6; }
9693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
9694 $as_echo_n "checking whether ln -s works... " >&6; }
9696 if test "$LN_S" = "ln -s"; then
9697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9698 $as_echo "yes" >&6; }
9700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
9701 $as_echo "no, using $LN_S" >&6; }
9704 # Extract the first word of "mv", so it can be a program name with args.
9705 set dummy mv; ac_word=$2
9706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9707 $as_echo_n "checking for $ac_word... " >&6; }
9708 if ${ac_cv_path_MV+:} false; then :
9709 $as_echo_n "(cached) " >&6
9713 ac_cv_path_MV="$MV" # Let the user override the test with a path.
9716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9720 test -z "$as_dir" && as_dir=.
9721 for ac_exec_ext in '' $ac_executable_extensions; do
9722 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9723 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
9724 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9731 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
9736 if test -n "$MV"; then
9737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
9738 $as_echo "$MV" >&6; }
9740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9741 $as_echo "no" >&6; }
9745 # Extract the first word of "cp", so it can be a program name with args.
9746 set dummy cp; ac_word=$2
9747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9748 $as_echo_n "checking for $ac_word... " >&6; }
9749 if ${ac_cv_path_CP+:} false; then :
9750 $as_echo_n "(cached) " >&6
9754 ac_cv_path_CP="$CP" # Let the user override the test with a path.
9757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9761 test -z "$as_dir" && as_dir=.
9762 for ac_exec_ext in '' $ac_executable_extensions; do
9763 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9764 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
9765 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9772 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
9777 if test -n "$CP"; then
9778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
9779 $as_echo "$CP" >&6; }
9781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9782 $as_echo "no" >&6; }
9786 # Extract the first word of "rm", so it can be a program name with args.
9787 set dummy rm; ac_word=$2
9788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9789 $as_echo_n "checking for $ac_word... " >&6; }
9790 if ${ac_cv_path_RM+:} false; then :
9791 $as_echo_n "(cached) " >&6
9795 ac_cv_path_RM="$RM" # Let the user override the test with a path.
9798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9802 test -z "$as_dir" && as_dir=.
9803 for ac_exec_ext in '' $ac_executable_extensions; do
9804 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9805 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
9806 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9813 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
9818 if test -n "$RM"; then
9819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
9820 $as_echo "$RM" >&6; }
9822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9823 $as_echo "no" >&6; }
9827 # Extract the first word of "chmod", so it can be a program name with args.
9828 set dummy chmod; ac_word=$2
9829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9830 $as_echo_n "checking for $ac_word... " >&6; }
9831 if ${ac_cv_path_CHMOD+:} false; then :
9832 $as_echo_n "(cached) " >&6
9836 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
9839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9843 test -z "$as_dir" && as_dir=.
9844 for ac_exec_ext in '' $ac_executable_extensions; do
9845 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9846 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
9847 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9854 test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
9858 CHMOD=$ac_cv_path_CHMOD
9859 if test -n "$CHMOD"; then
9860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
9861 $as_echo "$CHMOD" >&6; }
9863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9864 $as_echo "no" >&6; }
9868 for ac_prog in gawk mawk nawk awk
9870 # Extract the first word of "$ac_prog", so it can be a program name with args.
9871 set dummy $ac_prog; ac_word=$2
9872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9873 $as_echo_n "checking for $ac_word... " >&6; }
9874 if ${ac_cv_prog_AWK+:} false; then :
9875 $as_echo_n "(cached) " >&6
9877 if test -n "$AWK"; then
9878 ac_cv_prog_AWK="$AWK" # Let the user override the test.
9880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9884 test -z "$as_dir" && as_dir=.
9885 for ac_exec_ext in '' $ac_executable_extensions; do
9886 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9887 ac_cv_prog_AWK="$ac_prog"
9888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9898 if test -n "$AWK"; then
9899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
9900 $as_echo "$AWK" >&6; }
9902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9903 $as_echo "no" >&6; }
9907 test -n "$AWK" && break
9910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
9911 $as_echo_n "checking for egrep... " >&6; }
9912 if ${ac_cv_path_EGREP+:} false; then :
9913 $as_echo_n "(cached) " >&6
9915 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
9916 then ac_cv_path_EGREP="$GREP -E"
9918 if test -z "$EGREP"; then
9919 ac_path_EGREP_found=false
9920 # Loop through the user's path and test for each of PROGNAME-LIST
9921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9922 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
9925 test -z "$as_dir" && as_dir=.
9926 for ac_prog in egrep; do
9927 for ac_exec_ext in '' $ac_executable_extensions; do
9928 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
9929 as_fn_executable_p "$ac_path_EGREP" || continue
9930 # Check for GNU ac_path_EGREP and select it if it is found.
9931 # Check for GNU $ac_path_EGREP
9932 case `"$ac_path_EGREP" --version 2>&1` in
9934 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
9937 $as_echo_n 0123456789 >"conftest.in"
9940 cat "conftest.in" "conftest.in" >"conftest.tmp"
9941 mv "conftest.tmp" "conftest.in"
9942 cp "conftest.in" "conftest.nl"
9943 $as_echo 'EGREP' >> "conftest.nl"
9944 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
9945 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
9946 as_fn_arith $ac_count + 1 && ac_count=$as_val
9947 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
9948 # Best one so far, save it but keep looking for a better one
9949 ac_cv_path_EGREP="$ac_path_EGREP"
9950 ac_path_EGREP_max=$ac_count
9952 # 10*(2^10) chars as input seems more than enough
9953 test $ac_count -gt 10 && break
9955 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
9958 $ac_path_EGREP_found && break 3
9963 if test -z "$ac_cv_path_EGREP"; then
9964 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
9967 ac_cv_path_EGREP=$EGREP
9972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
9973 $as_echo "$ac_cv_path_EGREP" >&6; }
9974 EGREP="$ac_cv_path_EGREP"
9977 # Extract the first word of "sed", so it can be a program name with args.
9978 set dummy sed; ac_word=$2
9979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9980 $as_echo_n "checking for $ac_word... " >&6; }
9981 if ${ac_cv_path_SED+:} false; then :
9982 $as_echo_n "(cached) " >&6
9986 ac_cv_path_SED="$SED" # Let the user override the test with a path.
9989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9993 test -z "$as_dir" && as_dir=.
9994 for ac_exec_ext in '' $ac_executable_extensions; do
9995 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9996 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
9997 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10004 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
10008 SED=$ac_cv_path_SED
10009 if test -n "$SED"; then
10010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
10011 $as_echo "$SED" >&6; }
10013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10014 $as_echo "no" >&6; }
10018 # Extract the first word of "perl", so it can be a program name with args.
10019 set dummy perl; ac_word=$2
10020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10021 $as_echo_n "checking for $ac_word... " >&6; }
10022 if ${ac_cv_path_PERL+:} false; then :
10023 $as_echo_n "(cached) " >&6
10027 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
10030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10031 for as_dir in $PATH
10034 test -z "$as_dir" && as_dir=.
10035 for ac_exec_ext in '' $ac_executable_extensions; do
10036 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10037 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
10038 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10045 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
10049 PERL=$ac_cv_path_PERL
10050 if test -n "$PERL"; then
10051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
10052 $as_echo "$PERL" >&6; }
10054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10055 $as_echo "no" >&6; }
10059 # Extract the first word of "ldconfig", so it can be a program name with args.
10060 set dummy ldconfig; ac_word=$2
10061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10062 $as_echo_n "checking for $ac_word... " >&6; }
10063 if ${ac_cv_path_LDCONFIG+:} false; then :
10064 $as_echo_n "(cached) " >&6
10068 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
10071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10072 for as_dir in $PATH
10075 test -z "$as_dir" && as_dir=.
10076 for ac_exec_ext in '' $ac_executable_extensions; do
10077 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10078 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
10079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10086 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
10090 LDCONFIG=$ac_cv_path_LDCONFIG
10091 if test -n "$LDCONFIG"; then
10092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
10093 $as_echo "$LDCONFIG" >&6; }
10095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10096 $as_echo "no" >&6; }
10100 if test -n "$ac_tool_prefix"; then
10101 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
10102 set dummy ${ac_tool_prefix}ar; ac_word=$2
10103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10104 $as_echo_n "checking for $ac_word... " >&6; }
10105 if ${ac_cv_prog_AR+:} false; then :
10106 $as_echo_n "(cached) " >&6
10108 if test -n "$AR"; then
10109 ac_cv_prog_AR="$AR" # Let the user override the test.
10111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10112 for as_dir in $PATH
10115 test -z "$as_dir" && as_dir=.
10116 for ac_exec_ext in '' $ac_executable_extensions; do
10117 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10118 ac_cv_prog_AR="${ac_tool_prefix}ar"
10119 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10129 if test -n "$AR"; then
10130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10131 $as_echo "$AR" >&6; }
10133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10134 $as_echo "no" >&6; }
10139 if test -z "$ac_cv_prog_AR"; then
10141 # Extract the first word of "ar", so it can be a program name with args.
10142 set dummy ar; ac_word=$2
10143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10144 $as_echo_n "checking for $ac_word... " >&6; }
10145 if ${ac_cv_prog_ac_ct_AR+:} false; then :
10146 $as_echo_n "(cached) " >&6
10148 if test -n "$ac_ct_AR"; then
10149 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
10151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10152 for as_dir in $PATH
10155 test -z "$as_dir" && as_dir=.
10156 for ac_exec_ext in '' $ac_executable_extensions; do
10157 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10158 ac_cv_prog_ac_ct_AR="ar"
10159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10168 ac_ct_AR=$ac_cv_prog_ac_ct_AR
10169 if test -n "$ac_ct_AR"; then
10170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
10171 $as_echo "$ac_ct_AR" >&6; }
10173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10174 $as_echo "no" >&6; }
10177 if test "x$ac_ct_AR" = x; then
10180 case $cross_compiling:$ac_tool_warned in
10182 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10183 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10184 ac_tool_warned=yes ;;
10189 AR="$ac_cv_prog_AR"
10192 if test -n "$ac_tool_prefix"; then
10193 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
10194 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
10195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10196 $as_echo_n "checking for $ac_word... " >&6; }
10197 if ${ac_cv_prog_RANLIB+:} false; then :
10198 $as_echo_n "(cached) " >&6
10200 if test -n "$RANLIB"; then
10201 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10204 for as_dir in $PATH
10207 test -z "$as_dir" && as_dir=.
10208 for ac_exec_ext in '' $ac_executable_extensions; do
10209 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10210 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
10211 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10220 RANLIB=$ac_cv_prog_RANLIB
10221 if test -n "$RANLIB"; then
10222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
10223 $as_echo "$RANLIB" >&6; }
10225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10226 $as_echo "no" >&6; }
10231 if test -z "$ac_cv_prog_RANLIB"; then
10232 ac_ct_RANLIB=$RANLIB
10233 # Extract the first word of "ranlib", so it can be a program name with args.
10234 set dummy ranlib; ac_word=$2
10235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10236 $as_echo_n "checking for $ac_word... " >&6; }
10237 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
10238 $as_echo_n "(cached) " >&6
10240 if test -n "$ac_ct_RANLIB"; then
10241 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
10243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10244 for as_dir in $PATH
10247 test -z "$as_dir" && as_dir=.
10248 for ac_exec_ext in '' $ac_executable_extensions; do
10249 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10250 ac_cv_prog_ac_ct_RANLIB="ranlib"
10251 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10260 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
10261 if test -n "$ac_ct_RANLIB"; then
10262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
10263 $as_echo "$ac_ct_RANLIB" >&6; }
10265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10266 $as_echo "no" >&6; }
10269 if test "x$ac_ct_RANLIB" = x; then
10272 case $cross_compiling:$ac_tool_warned in
10274 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10275 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10276 ac_tool_warned=yes ;;
10278 RANLIB=$ac_ct_RANLIB
10281 RANLIB="$ac_cv_prog_RANLIB"
10284 if test -n "$ac_tool_prefix"; then
10285 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
10286 set dummy ${ac_tool_prefix}strip; ac_word=$2
10287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10288 $as_echo_n "checking for $ac_word... " >&6; }
10289 if ${ac_cv_prog_STRIP+:} false; then :
10290 $as_echo_n "(cached) " >&6
10292 if test -n "$STRIP"; then
10293 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
10295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10296 for as_dir in $PATH
10299 test -z "$as_dir" && as_dir=.
10300 for ac_exec_ext in '' $ac_executable_extensions; do
10301 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10302 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
10303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10312 STRIP=$ac_cv_prog_STRIP
10313 if test -n "$STRIP"; then
10314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
10315 $as_echo "$STRIP" >&6; }
10317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10318 $as_echo "no" >&6; }
10323 if test -z "$ac_cv_prog_STRIP"; then
10325 # Extract the first word of "strip", so it can be a program name with args.
10326 set dummy strip; ac_word=$2
10327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10328 $as_echo_n "checking for $ac_word... " >&6; }
10329 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
10330 $as_echo_n "(cached) " >&6
10332 if test -n "$ac_ct_STRIP"; then
10333 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
10335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10336 for as_dir in $PATH
10339 test -z "$as_dir" && as_dir=.
10340 for ac_exec_ext in '' $ac_executable_extensions; do
10341 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10342 ac_cv_prog_ac_ct_STRIP="strip"
10343 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10352 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
10353 if test -n "$ac_ct_STRIP"; then
10354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
10355 $as_echo "$ac_ct_STRIP" >&6; }
10357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10358 $as_echo "no" >&6; }
10361 if test "x$ac_ct_STRIP" = x; then
10364 case $cross_compiling:$ac_tool_warned in
10366 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10367 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10368 ac_tool_warned=yes ;;
10373 STRIP="$ac_cv_prog_STRIP"
10376 # Extract the first word of "makeinfo", so it can be a program name with args.
10377 set dummy makeinfo; ac_word=$2
10378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10379 $as_echo_n "checking for $ac_word... " >&6; }
10380 if ${ac_cv_prog_MAKEINFO+:} false; then :
10381 $as_echo_n "(cached) " >&6
10383 if test -n "$MAKEINFO"; then
10384 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
10386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10387 for as_dir in $PATH
10390 test -z "$as_dir" && as_dir=.
10391 for ac_exec_ext in '' $ac_executable_extensions; do
10392 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10393 ac_cv_prog_MAKEINFO="makeinfo"
10394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10403 MAKEINFO=$ac_cv_prog_MAKEINFO
10404 if test -n "$MAKEINFO"; then
10405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
10406 $as_echo "$MAKEINFO" >&6; }
10408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10409 $as_echo "no" >&6; }
10413 if test "_$MAKEINFO" = "_"; then
10414 MAKEINFO="@echo Makeinfo is missing. Info documentation will not be built.;true"
10416 case "$MAKEINFO" in
10418 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
10419 *** Makeinfo is missing. Info documentation will not be built." >&5
10420 $as_echo "$as_me: WARNING:
10421 *** Makeinfo is missing. Info documentation will not be built." >&2;}
10429 # See if we need a separate native compiler.
10430 if test $cross_compiling = no; then
10434 for ac_prog in gcc cc
10436 # Extract the first word of "$ac_prog", so it can be a program name with args.
10437 set dummy $ac_prog; ac_word=$2
10438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10439 $as_echo_n "checking for $ac_word... " >&6; }
10440 if ${ac_cv_prog_BUILD_CC+:} false; then :
10441 $as_echo_n "(cached) " >&6
10443 if test -n "$BUILD_CC"; then
10444 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
10446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10447 for as_dir in $PATH
10450 test -z "$as_dir" && as_dir=.
10451 for ac_exec_ext in '' $ac_executable_extensions; do
10452 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10453 ac_cv_prog_BUILD_CC="$ac_prog"
10454 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10463 BUILD_CC=$ac_cv_prog_BUILD_CC
10464 if test -n "$BUILD_CC"; then
10465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
10466 $as_echo "$BUILD_CC" >&6; }
10468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10469 $as_echo "no" >&6; }
10473 test -n "$BUILD_CC" && break
10477 for ac_header in dirent.h errno.h execinfo.h getopt.h malloc.h mntent.h paths.h semaphore.h setjmp.h signal.h stdarg.h stdint.h stdlib.h termios.h termio.h unistd.h utime.h linux/falloc.h linux/fd.h linux/major.h linux/loop.h net/if_dl.h netinet/in.h sys/disklabel.h sys/file.h sys/ioctl.h sys/mkdev.h sys/mman.h sys/prctl.h sys/queue.h sys/resource.h sys/select.h sys/socket.h sys/sockio.h sys/stat.h sys/syscall.h sys/sysmacros.h sys/time.h sys/types.h sys/un.h sys/wait.h
10479 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10480 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10481 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10482 cat >>confdefs.h <<_ACEOF
10483 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10490 for ac_header in sys/disk.h sys/mount.h
10492 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10493 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
10494 #if HAVE_SYS_QUEUE_H
10495 #include <sys/queue.h>
10499 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10500 cat >>confdefs.h <<_ACEOF
10501 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10508 for ac_header in net/if.h
10510 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
10511 #if HAVE_SYS_TYPES_H
10512 #include <sys/types.h>
10514 #if HAVE_SYS_SOCKET
10515 #include <sys/socket.h>
10519 if test "x$ac_cv_header_net_if_h" = xyes; then :
10520 cat >>confdefs.h <<_ACEOF
10521 #define HAVE_NET_IF_H 1
10528 for ac_func in vprintf
10530 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
10531 if test "x$ac_cv_func_vprintf" = xyes; then :
10532 cat >>confdefs.h <<_ACEOF
10533 #define HAVE_VPRINTF 1
10536 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
10537 if test "x$ac_cv_func__doprnt" = xyes; then :
10539 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
10547 ac_fn_c_check_member "$LINENO" "struct dirent" "d_reclen" "ac_cv_member_struct_dirent_d_reclen" "#include <dirent.h>
10549 if test "x$ac_cv_member_struct_dirent_d_reclen" = xyes; then :
10551 $as_echo "#define HAVE_RECLEN_DIRENT 1" >>confdefs.h
10555 ac_fn_c_check_member "$LINENO" "struct stat" "st_atim" "ac_cv_member_struct_stat_st_atim" "$ac_includes_default"
10556 if test "x$ac_cv_member_struct_stat_st_atim" = xyes; then :
10558 cat >>confdefs.h <<_ACEOF
10559 #define HAVE_STRUCT_STAT_ST_ATIM 1
10565 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "#include <sys/types.h>
10567 if test "x$ac_cv_type_ssize_t" = xyes; then :
10569 $as_echo "#define HAVE_TYPE_SSIZE_T 1" >>confdefs.h
10573 ac_fn_c_check_decl "$LINENO" "llseek" "ac_cv_have_decl_llseek" "#include <unistd.h>
10575 if test "x$ac_cv_have_decl_llseek" = xyes; then :
10577 $as_echo "#define HAVE_LLSEEK_PROTOTYPE 1" >>confdefs.h
10581 ac_fn_c_check_decl "$LINENO" "lseek64" "ac_cv_have_decl_lseek64" "#define _LARGEFILE_SOURCE
10582 #define _LARGEFILE64_SOURCE
10583 #include <unistd.h>
10585 if test "x$ac_cv_have_decl_lseek64" = xyes; then :
10587 $as_echo "#define HAVE_LSEEK64_PROTOTYPE 1" >>confdefs.h
10591 # The cast to long int works around a bug in the HP C Compiler
10592 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10593 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10594 # This bug is HP SR number 8606223364.
10595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
10596 $as_echo_n "checking size of short... " >&6; }
10597 if ${ac_cv_sizeof_short+:} false; then :
10598 $as_echo_n "(cached) " >&6
10600 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
10603 if test "$ac_cv_type_short" = yes; then
10604 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10605 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10606 as_fn_error 77 "cannot compute sizeof (short)
10607 See \`config.log' for more details" "$LINENO" 5; }
10609 ac_cv_sizeof_short=0
10614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
10615 $as_echo "$ac_cv_sizeof_short" >&6; }
10619 cat >>confdefs.h <<_ACEOF
10620 #define SIZEOF_SHORT $ac_cv_sizeof_short
10624 # The cast to long int works around a bug in the HP C Compiler
10625 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10626 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10627 # This bug is HP SR number 8606223364.
10628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
10629 $as_echo_n "checking size of int... " >&6; }
10630 if ${ac_cv_sizeof_int+:} false; then :
10631 $as_echo_n "(cached) " >&6
10633 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
10636 if test "$ac_cv_type_int" = yes; then
10637 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10638 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10639 as_fn_error 77 "cannot compute sizeof (int)
10640 See \`config.log' for more details" "$LINENO" 5; }
10647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
10648 $as_echo "$ac_cv_sizeof_int" >&6; }
10652 cat >>confdefs.h <<_ACEOF
10653 #define SIZEOF_INT $ac_cv_sizeof_int
10657 # The cast to long int works around a bug in the HP C Compiler
10658 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10659 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10660 # This bug is HP SR number 8606223364.
10661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
10662 $as_echo_n "checking size of long... " >&6; }
10663 if ${ac_cv_sizeof_long+:} false; then :
10664 $as_echo_n "(cached) " >&6
10666 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
10669 if test "$ac_cv_type_long" = yes; then
10670 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10671 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10672 as_fn_error 77 "cannot compute sizeof (long)
10673 See \`config.log' for more details" "$LINENO" 5; }
10675 ac_cv_sizeof_long=0
10680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
10681 $as_echo "$ac_cv_sizeof_long" >&6; }
10685 cat >>confdefs.h <<_ACEOF
10686 #define SIZEOF_LONG $ac_cv_sizeof_long
10690 # The cast to long int works around a bug in the HP C Compiler
10691 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10692 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10693 # This bug is HP SR number 8606223364.
10694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
10695 $as_echo_n "checking size of long long... " >&6; }
10696 if ${ac_cv_sizeof_long_long+:} false; then :
10697 $as_echo_n "(cached) " >&6
10699 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
10702 if test "$ac_cv_type_long_long" = yes; then
10703 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10704 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10705 as_fn_error 77 "cannot compute sizeof (long long)
10706 See \`config.log' for more details" "$LINENO" 5; }
10708 ac_cv_sizeof_long_long=0
10713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
10714 $as_echo "$ac_cv_sizeof_long_long" >&6; }
10718 cat >>confdefs.h <<_ACEOF
10719 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10723 # The cast to long int works around a bug in the HP C Compiler
10724 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10725 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10726 # This bug is HP SR number 8606223364.
10727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
10728 $as_echo_n "checking size of off_t... " >&6; }
10729 if ${ac_cv_sizeof_off_t+:} false; then :
10730 $as_echo_n "(cached) " >&6
10732 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
10735 if test "$ac_cv_type_off_t" = yes; then
10736 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10737 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10738 as_fn_error 77 "cannot compute sizeof (off_t)
10739 See \`config.log' for more details" "$LINENO" 5; }
10741 ac_cv_sizeof_off_t=0
10746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
10747 $as_echo "$ac_cv_sizeof_off_t" >&6; }
10751 cat >>confdefs.h <<_ACEOF
10752 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
10756 SIZEOF_SHORT=$ac_cv_sizeof_short
10757 SIZEOF_INT=$ac_cv_sizeof_int
10758 SIZEOF_LONG=$ac_cv_sizeof_long
10759 SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
10760 SIZEOF_OFF_T=$ac_cv_sizeof_off_t
10766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
10767 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
10768 if ${ac_cv_c_bigendian+:} false; then :
10769 $as_echo_n "(cached) " >&6
10771 ac_cv_c_bigendian=unknown
10772 # See if we're dealing with a universal compiler.
10773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10774 /* end confdefs.h. */
10775 #ifndef __APPLE_CC__
10776 not a universal capable compiler
10781 if ac_fn_c_try_compile "$LINENO"; then :
10783 # Check for potential -arch flags. It is not universal unless
10784 # there are at least two -arch flags with different values.
10787 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
10788 if test -n "$ac_prev"; then
10790 i?86 | x86_64 | ppc | ppc64)
10791 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
10794 ac_cv_c_bigendian=universal
10800 elif test "x$ac_word" = "x-arch"; then
10805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10806 if test $ac_cv_c_bigendian = unknown; then
10807 # See if sys/param.h defines the BYTE_ORDER macro.
10808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10809 /* end confdefs.h. */
10810 #include <sys/types.h>
10811 #include <sys/param.h>
10816 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
10817 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
10819 bogus endian macros
10826 if ac_fn_c_try_compile "$LINENO"; then :
10827 # It does; now see whether it defined to BIG_ENDIAN or not.
10828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10829 /* end confdefs.h. */
10830 #include <sys/types.h>
10831 #include <sys/param.h>
10836 #if BYTE_ORDER != BIG_ENDIAN
10844 if ac_fn_c_try_compile "$LINENO"; then :
10845 ac_cv_c_bigendian=yes
10847 ac_cv_c_bigendian=no
10849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10853 if test $ac_cv_c_bigendian = unknown; then
10854 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
10855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10856 /* end confdefs.h. */
10857 #include <limits.h>
10862 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
10863 bogus endian macros
10870 if ac_fn_c_try_compile "$LINENO"; then :
10871 # It does; now see whether it defined to _BIG_ENDIAN or not.
10872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10873 /* end confdefs.h. */
10874 #include <limits.h>
10879 #ifndef _BIG_ENDIAN
10887 if ac_fn_c_try_compile "$LINENO"; then :
10888 ac_cv_c_bigendian=yes
10890 ac_cv_c_bigendian=no
10892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10896 if test $ac_cv_c_bigendian = unknown; then
10897 # Compile a test program.
10898 if test "$cross_compiling" = yes; then :
10899 # Try to guess by grepping values from an object file.
10900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10901 /* end confdefs.h. */
10902 short int ascii_mm[] =
10903 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
10904 short int ascii_ii[] =
10905 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
10906 int use_ascii (int i) {
10907 return ascii_mm[i] + ascii_ii[i];
10909 short int ebcdic_ii[] =
10910 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
10911 short int ebcdic_mm[] =
10912 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
10913 int use_ebcdic (int i) {
10914 return ebcdic_mm[i] + ebcdic_ii[i];
10921 return use_ascii (foo) == use_ebcdic (foo);
10926 if ac_fn_c_try_compile "$LINENO"; then :
10927 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
10928 ac_cv_c_bigendian=yes
10930 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
10931 if test "$ac_cv_c_bigendian" = unknown; then
10932 ac_cv_c_bigendian=no
10934 # finding both strings is unlikely to happen, but who knows?
10935 ac_cv_c_bigendian=unknown
10939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10942 /* end confdefs.h. */
10943 $ac_includes_default
10948 /* Are we little or big endian? From Harbison&Steele. */
10952 char c[sizeof (long int)];
10955 return u.c[sizeof (long int) - 1] == 1;
10961 if ac_fn_c_try_run "$LINENO"; then :
10962 ac_cv_c_bigendian=no
10964 ac_cv_c_bigendian=yes
10966 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10967 conftest.$ac_objext conftest.beam conftest.$ac_ext
10972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
10973 $as_echo "$ac_cv_c_bigendian" >&6; }
10974 case $ac_cv_c_bigendian in #(
10976 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
10982 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
10986 as_fn_error $? "unknown endianness
10987 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
10990 BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
10991 ASM_TYPES_HEADER=./asm_types.h
10993 echo "/* These defines are needed for the public ext2fs.h header file */" \
10995 if grep HAVE_SYS_TYPES_H confdefs.h > tmp_config.$$; then
10996 uniq tmp_config.$$ >> public_config.h
10998 echo "#undef HAVE_SYS_TYPES_H" >> public_config.h
11000 if grep WORDS_BIGENDIAN confdefs.h > tmp_config.$$; then
11001 uniq tmp_config.$$ >> public_config.h
11003 echo "#undef WORDS_BIGENDIAN" >> public_config.h
11005 rm -f tmp_config.$$
11006 PUBLIC_CONFIG_HEADER=./public_config.h
11008 for ac_header in inttypes.h
11010 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
11011 if test "x$ac_cv_header_inttypes_h" = xyes; then :
11012 cat >>confdefs.h <<_ACEOF
11013 #define HAVE_INTTYPES_H 1
11020 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
11021 if test "x$ac_cv_type_intptr_t" = xyes; then :
11023 cat >>confdefs.h <<_ACEOF
11024 #define HAVE_INTPTR_T 1
11030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat has a st_flags field" >&5
11031 $as_echo_n "checking whether struct stat has a st_flags field... " >&6; }
11032 if ${e2fsprogs_cv_struct_st_flags+:} false; then :
11033 $as_echo_n "(cached) " >&6
11035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11036 /* end confdefs.h. */
11037 #include <sys/stat.h>
11041 struct stat stat; stat.st_flags = 0;
11046 if ac_fn_c_try_compile "$LINENO"; then :
11047 e2fsprogs_cv_struct_st_flags=yes
11049 e2fsprogs_cv_struct_st_flags=no
11051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags" >&5
11055 $as_echo "$e2fsprogs_cv_struct_st_flags" >&6; }
11056 if test "$e2fsprogs_cv_struct_st_flags" = yes; then
11057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether st_flags field is useful" >&5
11058 $as_echo_n "checking whether st_flags field is useful... " >&6; }
11059 if ${e2fsprogs_cv_struct_st_flags_immut+:} false; then :
11060 $as_echo_n "(cached) " >&6
11062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11063 /* end confdefs.h. */
11064 #include <sys/stat.h>
11068 struct stat stat; stat.st_flags |= UF_IMMUTABLE;
11073 if ac_fn_c_try_compile "$LINENO"; then :
11074 e2fsprogs_cv_struct_st_flags_immut=yes
11076 e2fsprogs_cv_struct_st_flags_immut=no
11078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags_immut" >&5
11082 $as_echo "$e2fsprogs_cv_struct_st_flags_immut" >&6; }
11083 if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
11085 $as_echo "#define HAVE_STAT_FLAGS 1" >>confdefs.h
11089 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h>
11090 #include <sys/socket.h>
11092 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
11094 cat >>confdefs.h <<_ACEOF
11095 #define HAVE_SA_LEN 1
11100 if test -n "$BLKID_CMT"; then
11101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing blkid_probe_all" >&5
11102 $as_echo_n "checking for library containing blkid_probe_all... " >&6; }
11103 if ${ac_cv_search_blkid_probe_all+:} false; then :
11104 $as_echo_n "(cached) " >&6
11106 ac_func_search_save_LIBS=$LIBS
11107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11108 /* end confdefs.h. */
11110 /* Override any GCC internal prototype to avoid an error.
11111 Use char because int might match the return type of a GCC
11112 builtin and then its argument prototype would still apply. */
11116 char blkid_probe_all ();
11120 return blkid_probe_all ();
11125 for ac_lib in '' blkid; do
11126 if test -z "$ac_lib"; then
11127 ac_res="none required"
11130 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11132 if ac_fn_c_try_link "$LINENO"; then :
11133 ac_cv_search_blkid_probe_all=$ac_res
11135 rm -f core conftest.err conftest.$ac_objext \
11137 if ${ac_cv_search_blkid_probe_all+:} false; then :
11141 if ${ac_cv_search_blkid_probe_all+:} false; then :
11144 ac_cv_search_blkid_probe_all=no
11146 rm conftest.$ac_ext
11147 LIBS=$ac_func_search_save_LIBS
11149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_blkid_probe_all" >&5
11150 $as_echo "$ac_cv_search_blkid_probe_all" >&6; }
11151 ac_res=$ac_cv_search_blkid_probe_all
11152 if test "$ac_res" != no; then :
11153 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11158 for ac_func in __secure_getenv backtrace blkid_probe_get_topology chflags fadvise64 fallocate fallocate64 fchown fdatasync fstat64 ftruncate64 futimes getcwd getdtablesize getmntinfo getpwuid_r getrlimit getrusage jrand48 llseek lseek64 mallinfo mbstowcs memalign mempcpy mmap msync nanosleep open64 pathconf posix_fadvise posix_fadvise64 posix_memalign prctl secure_getenv setmntent setresgid setresuid srandom stpcpy strcasecmp strdup strnlen strptime strtoull sync_file_range sysconf usleep utime valloc
11160 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11161 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11162 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11163 cat >>confdefs.h <<_ACEOF
11164 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
11172 $as_echo_n "checking for socket in -lsocket... " >&6; }
11173 if ${ac_cv_lib_socket_socket+:} false; then :
11174 $as_echo_n "(cached) " >&6
11176 ac_check_lib_save_LIBS=$LIBS
11177 LIBS="-lsocket $LIBS"
11178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11179 /* end confdefs.h. */
11181 /* Override any GCC internal prototype to avoid an error.
11182 Use char because int might match the return type of a GCC
11183 builtin and then its argument prototype would still apply. */
11196 if ac_fn_c_try_link "$LINENO"; then :
11197 ac_cv_lib_socket_socket=yes
11199 ac_cv_lib_socket_socket=no
11201 rm -f core conftest.err conftest.$ac_objext \
11202 conftest$ac_exeext conftest.$ac_ext
11203 LIBS=$ac_check_lib_save_LIBS
11205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
11206 $as_echo "$ac_cv_lib_socket_socket" >&6; }
11207 if test "x$ac_cv_lib_socket_socket" = xyes; then :
11208 SOCKET_LIB=-lsocket
11212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for optreset" >&5
11213 $as_echo_n "checking for optreset... " >&6; }
11214 if ${ac_cv_have_optreset+:} false; then :
11215 $as_echo_n "(cached) " >&6
11217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11218 /* end confdefs.h. */
11219 #include <unistd.h>
11222 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11223 $EGREP "optreset" >/dev/null 2>&1; then :
11224 ac_cv_have_optreset=yes
11226 ac_cv_have_optreset=no
11231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_optreset" >&5
11232 $as_echo "$ac_cv_have_optreset" >&6; }
11233 if test $ac_cv_have_optreset = yes; then
11235 $as_echo "#define HAVE_OPTRESET 1" >>confdefs.h
11240 ac_fn_c_check_func "$LINENO" "sem_init" "ac_cv_func_sem_init"
11241 if test "x$ac_cv_func_sem_init" = xyes; then :
11244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lpthread" >&5
11245 $as_echo_n "checking for sem_init in -lpthread... " >&6; }
11246 if ${ac_cv_lib_pthread_sem_init+:} false; then :
11247 $as_echo_n "(cached) " >&6
11249 ac_check_lib_save_LIBS=$LIBS
11250 LIBS="-lpthread $LIBS"
11251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11252 /* end confdefs.h. */
11254 /* Override any GCC internal prototype to avoid an error.
11255 Use char because int might match the return type of a GCC
11256 builtin and then its argument prototype would still apply. */
11264 return sem_init ();
11269 if ac_fn_c_try_link "$LINENO"; then :
11270 ac_cv_lib_pthread_sem_init=yes
11272 ac_cv_lib_pthread_sem_init=no
11274 rm -f core conftest.err conftest.$ac_objext \
11275 conftest$ac_exeext conftest.$ac_ext
11276 LIBS=$ac_check_lib_save_LIBS
11278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_sem_init" >&5
11279 $as_echo "$ac_cv_lib_pthread_sem_init" >&6; }
11280 if test "x$ac_cv_lib_pthread_sem_init" = xyes; then :
11281 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
11283 SEM_INIT_LIB=-lpthread
11285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lrt" >&5
11286 $as_echo_n "checking for sem_init in -lrt... " >&6; }
11287 if ${ac_cv_lib_rt_sem_init+:} false; then :
11288 $as_echo_n "(cached) " >&6
11290 ac_check_lib_save_LIBS=$LIBS
11292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11293 /* end confdefs.h. */
11295 /* Override any GCC internal prototype to avoid an error.
11296 Use char because int might match the return type of a GCC
11297 builtin and then its argument prototype would still apply. */
11305 return sem_init ();
11310 if ac_fn_c_try_link "$LINENO"; then :
11311 ac_cv_lib_rt_sem_init=yes
11313 ac_cv_lib_rt_sem_init=no
11315 rm -f core conftest.err conftest.$ac_objext \
11316 conftest$ac_exeext conftest.$ac_ext
11317 LIBS=$ac_check_lib_save_LIBS
11319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sem_init" >&5
11320 $as_echo "$ac_cv_lib_rt_sem_init" >&6; }
11321 if test "x$ac_cv_lib_rt_sem_init" = xyes; then :
11322 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
11326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lposix4" >&5
11327 $as_echo_n "checking for sem_init in -lposix4... " >&6; }
11328 if ${ac_cv_lib_posix4_sem_init+:} false; then :
11329 $as_echo_n "(cached) " >&6
11331 ac_check_lib_save_LIBS=$LIBS
11332 LIBS="-lposix4 $LIBS"
11333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11334 /* end confdefs.h. */
11336 /* Override any GCC internal prototype to avoid an error.
11337 Use char because int might match the return type of a GCC
11338 builtin and then its argument prototype would still apply. */
11346 return sem_init ();
11351 if ac_fn_c_try_link "$LINENO"; then :
11352 ac_cv_lib_posix4_sem_init=yes
11354 ac_cv_lib_posix4_sem_init=no
11356 rm -f core conftest.err conftest.$ac_objext \
11357 conftest$ac_exeext conftest.$ac_ext
11358 LIBS=$ac_check_lib_save_LIBS
11360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sem_init" >&5
11361 $as_echo "$ac_cv_lib_posix4_sem_init" >&6; }
11362 if test "x$ac_cv_lib_posix4_sem_init" = xyes; then :
11363 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
11365 SEM_INIT_LIB=-lposix4
11374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unified diff option" >&5
11375 $as_echo_n "checking for unified diff option... " >&6; }
11376 if diff -u $0 $0 > /dev/null 2>&1 ; then
11381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNI_DIFF_OPTS" >&5
11382 $as_echo "$UNI_DIFF_OPTS" >&6; }
11387 $as_echo "#define HAVE_EXT2_IOCTLS 1" >>confdefs.h
11407 linux* | gnu* | k*bsd*-gnu)
11408 if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
11410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, root_prefix defaults to ''" >&5
11411 $as_echo "On $host_os systems, root_prefix defaults to ''" >&6; }
11416 linux* | gnu* | k*bsd*-gnu)
11417 if test "$prefix" = NONE ; then
11419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, prefix defaults to /usr" >&5
11420 $as_echo "On $host_os systems, prefix defaults to /usr" >&6; }
11421 if test "$mandir" = '${prefix}/man' ; then
11422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ...and mandir defaults to /usr/share/man" >&5
11423 $as_echo "...and mandir defaults to /usr/share/man" >&6; }
11424 mandir=/usr/share/man
11429 if test "$root_prefix" = NONE ; then
11430 if test "$prefix" = NONE ; then
11431 root_prefix="$ac_default_prefix"
11433 root_prefix="$prefix"
11435 root_bindir=$bindir
11436 root_sbindir=$sbindir
11437 root_libdir=$libdir
11438 root_sysconfdir=$sysconfdir
11440 root_bindir='${root_prefix}/bin'
11441 root_sbindir='${root_prefix}/sbin'
11442 root_libdir='${root_prefix}/lib'
11443 root_sysconfdir='${root_prefix}/etc'
11445 if test "$bindir" != '${exec_prefix}/bin'; then
11446 root_bindir=$bindir
11447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_bindir to $root_bindir" >&5
11448 $as_echo "Setting root_bindir to $root_bindir" >&6; }
11450 if test "$sbindir" != '${exec_prefix}/sbin'; then
11451 root_sbindir=$sbindir
11452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sbindir to $root_sbindir" >&5
11453 $as_echo "Setting root_sbindir to $root_sbindir" >&6; }
11455 if test "$libdir" != '${exec_prefix}/lib'; then
11456 root_libdir=$libdir
11457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_libdir to $root_libdir" >&5
11458 $as_echo "Setting root_libdir to $root_libdir" >&6; }
11460 if test "$sysconfdir" != '${prefix}/etc'; then
11461 root_sysconfdir=$sysconfdir
11462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sysconfdir to $root_sysconfdir" >&5
11463 $as_echo "Setting root_sysconfdir to $root_sysconfdir" >&6; }
11471 # Check whether --with-multiarch was given.
11472 if test "${with_multiarch+set}" = set; then :
11473 withval=$with_multiarch; if test "$withval" = "lib64"; then
11477 libdir=$libdir/$withval
11478 root_libdir=$root_libdir/$withval
11482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can link with -static" >&5
11483 $as_echo_n "checking whether we can link with -static... " >&6; }
11484 if ${ac_cv_e2fsprogs_use_static+:} false; then :
11485 $as_echo_n "(cached) " >&6
11487 SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static"
11488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11489 /* end confdefs.h. */
11499 if ac_fn_c_try_link "$LINENO"; then :
11500 ac_cv_e2fsprogs_use_static=yes
11502 ac_cv_e2fsprogs_use_static=no
11504 rm -f core conftest.err conftest.$ac_objext \
11505 conftest$ac_exeext conftest.$ac_ext
11506 LDFLAGS=$SAVE_LDFLAGS
11511 ac_cv_e2fsprogs_use_static=no
11514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_e2fsprogs_use_static" >&5
11515 $as_echo "$ac_cv_e2fsprogs_use_static" >&6; }
11517 if test $ac_cv_e2fsprogs_use_static = yes; then
11518 LDFLAG_STATIC=-static
11523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using Apple Darwin / GNU libintl workaround" >&5
11524 $as_echo "Using Apple Darwin / GNU libintl workaround" >&6; }
11526 $as_echo "#define _INTL_REDIRECT_MACROS 1" >>confdefs.h
11530 SS_DIR=`cd ${srcdir}/lib/ss; pwd`
11531 ET_DIR=`cd ${srcdir}/lib/et; pwd`
11534 if test "$cross_compiling" = yes ; then
11537 DO_TEST_SUITE=check
11540 INCLUDES='-I. -I$(top_builddir)/lib -I$(top_srcdir)/lib'
11541 if test -n "$CPPFLAGS" ; then
11542 INCLUDES="$INCLUDES $CPPFLAGS"
11544 if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
11545 INCLUDES=$INCLUDES' -I$(top_builddir)/intl -I$(top_srcdir)/intl'
11547 if test -n "$WITH_DIET_LIBC" ; then
11548 INCLUDES="$INCLUDES -D_REENTRANT"
11551 if test $cross_compiling = no; then
11552 BUILD_CFLAGS="$CFLAGS $CPPFLAGS $INCLUDES -DHAVE_CONFIG_H"
11553 BUILD_LDFLAGS="$LDFLAGS"
11560 test -d lib || mkdir lib
11561 test -d include || mkdir include
11562 test -d include/linux || mkdir include/linux
11563 test -d include/asm || mkdir include/asm
11564 for i in MCONFIG Makefile e2fsprogs.spec \
11565 util/Makefile util/subst.conf util/gen-tarball util/install-symlink \
11566 lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \
11567 lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \
11568 lib/uuid/Makefile lib/uuid/uuid_types.h \
11569 lib/blkid/Makefile lib/blkid/blkid_types.h lib/quota/Makefile \
11570 lib/ss/ss.pc lib/uuid/uuid.pc lib/et/com_err.pc \
11571 lib/e2p/e2p.pc lib/blkid/blkid.pc lib/ext2fs/ext2fs.pc \
11572 misc/Makefile ext2ed/Makefile e2fsck/Makefile \
11573 debugfs/Makefile tests/Makefile tests/progs/Makefile \
11574 resize/Makefile doc/Makefile intl/Makefile \
11575 intl/libgnuintl.h po/Makefile.in ; do
11576 if test -d `dirname ${srcdir}/$i` ; then
11577 outlist="$outlist $i"
11580 ac_config_files="$ac_config_files $outlist"
11582 cat >confcache <<\_ACEOF
11583 # This file is a shell script that caches the results of configure
11584 # tests run on this system so they can be shared between configure
11585 # scripts and configure runs, see configure's option --config-cache.
11586 # It is not useful on other systems. If it contains results you don't
11587 # want to keep, you may remove or edit it.
11589 # config.status only pays attention to the cache file if you give it
11590 # the --recheck option to rerun configure.
11592 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11593 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11594 # following values.
11598 # The following way of writing the cache mishandles newlines in values,
11599 # but we know of no workaround that is simple, portable, and efficient.
11600 # So, we kill variables containing newlines.
11601 # Ultrix sh set writes to stderr and can't be redirected directly,
11602 # and sets the high bit in the cache file unless we assign to the vars.
11604 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11605 eval ac_val=\$$ac_var
11609 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11610 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11613 _ | IFS | as_nl) ;; #(
11614 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11615 *) { eval $ac_var=; unset $ac_var;} ;;
11621 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11622 *${as_nl}ac_space=\ *)
11623 # `set' does not quote correctly, so add quotes: double-quote
11624 # substitution turns \\\\ into \\, and sed turns \\ into \.
11627 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11630 # `set' quotes correctly as required by POSIX, so do not add quotes.
11631 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11640 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11642 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11644 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11645 if test -w "$cache_file"; then
11646 if test "x$cache_file" != "x/dev/null"; then
11647 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11648 $as_echo "$as_me: updating cache $cache_file" >&6;}
11649 if test ! -f "$cache_file" || test -h "$cache_file"; then
11650 cat confcache >"$cache_file"
11652 case $cache_file in #(
11654 mv -f confcache "$cache_file"$$ &&
11655 mv -f "$cache_file"$$ "$cache_file" ;; #(
11657 mv -f confcache "$cache_file" ;;
11662 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11663 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11668 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11669 # Let make expand exec_prefix.
11670 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11672 DEFS=-DHAVE_CONFIG_H
11677 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11678 # 1. Remove the extension, and $U if already installed.
11679 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11680 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11681 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11682 # will be set to the directory where LIBOBJS objects are built.
11683 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11684 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11686 LIBOBJS=$ac_libobjs
11688 LTLIBOBJS=$ac_ltlibobjs
11693 : "${CONFIG_STATUS=./config.status}"
11695 ac_clean_files_save=$ac_clean_files
11696 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11697 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11698 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11700 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11702 # Generated by $as_me.
11703 # Run this file to recreate the current configuration.
11704 # Compiler output produced by configure, useful for debugging
11705 # configure, is in config.log if it exists.
11708 ac_cs_recheck=false
11711 SHELL=\${CONFIG_SHELL-$SHELL}
11714 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11715 ## -------------------- ##
11716 ## M4sh Initialization. ##
11717 ## -------------------- ##
11719 # Be more Bourne compatible
11720 DUALCASE=1; export DUALCASE # for MKS sh
11721 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11724 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11725 # is contrary to our usage. Disable this feature.
11726 alias -g '${1+"$@"}'='"$@"'
11727 setopt NO_GLOB_SUBST
11729 case `(set -o) 2>/dev/null` in #(
11741 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11742 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11743 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11744 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11745 # Prefer a ksh shell builtin over an external printf program on Solaris,
11746 # but without wasting forks for bash or zsh.
11747 if test -z "$BASH_VERSION$ZSH_VERSION" \
11748 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11749 as_echo='print -r --'
11750 as_echo_n='print -rn --'
11751 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11752 as_echo='printf %s\n'
11753 as_echo_n='printf %s'
11755 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11756 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11757 as_echo_n='/usr/ucb/echo -n'
11759 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11760 as_echo_n_body='eval
11764 expr "X$arg" : "X\\(.*\\)$as_nl";
11765 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11767 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11769 export as_echo_n_body
11770 as_echo_n='sh -c $as_echo_n_body as_echo'
11772 export as_echo_body
11773 as_echo='sh -c $as_echo_body as_echo'
11776 # The user is always right.
11777 if test "${PATH_SEPARATOR+set}" != set; then
11779 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11780 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11787 # We need space, tab and new line, in precisely that order. Quoting is
11788 # there to prevent editors from complaining about space-tab.
11789 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11790 # splitting by setting IFS to empty value.)
11793 # Find who we are. Look in the path if we contain no directory separator.
11796 *[\\/]* ) as_myself=$0 ;;
11797 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11798 for as_dir in $PATH
11801 test -z "$as_dir" && as_dir=.
11802 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11808 # We did not find ourselves, most probably we were run as `sh COMMAND'
11809 # in which case we are not to be found in the path.
11810 if test "x$as_myself" = x; then
11813 if test ! -f "$as_myself"; then
11814 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11818 # Unset variables that we do not need and which cause bugs (e.g. in
11819 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11820 # suppresses any "Segmentation fault" message there. '((' could
11821 # trigger a bug in pdksh 5.2.14.
11822 for as_var in BASH_ENV ENV MAIL MAILPATH
11823 do eval test x\${$as_var+set} = xset \
11824 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11837 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11840 # as_fn_error STATUS ERROR [LINENO LOG_FD]
11841 # ----------------------------------------
11842 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11843 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11844 # script with STATUS, using 1 if that was 0.
11847 as_status=$1; test $as_status -eq 0 && as_status=1
11849 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11850 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11852 $as_echo "$as_me: error: $2" >&2
11853 as_fn_exit $as_status
11857 # as_fn_set_status STATUS
11858 # -----------------------
11859 # Set $? to STATUS, without forking.
11860 as_fn_set_status ()
11863 } # as_fn_set_status
11865 # as_fn_exit STATUS
11866 # -----------------
11867 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11871 as_fn_set_status $1
11877 # Portably unset VAR.
11880 { eval $1=; unset $1;}
11882 as_unset=as_fn_unset
11883 # as_fn_append VAR VALUE
11884 # ----------------------
11885 # Append the text in VALUE to the end of the definition contained in VAR. Take
11886 # advantage of any shell optimizations that allow amortized linear growth over
11887 # repeated appends, instead of the typical quadratic growth present in naive
11889 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11890 eval 'as_fn_append ()
11901 # as_fn_arith ARG...
11902 # ------------------
11903 # Perform arithmetic evaluation on the ARGs, and store the result in the
11904 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11905 # must be portable across $(()) and expr.
11906 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11907 eval 'as_fn_arith ()
11914 as_val=`expr "$@" || test $? -eq 1`
11919 if expr a : '\(a\)' >/dev/null 2>&1 &&
11920 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11926 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11927 as_basename=basename
11932 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11938 as_me=`$as_basename -- "$0" ||
11939 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11940 X"$0" : 'X\(//\)$' \| \
11941 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11943 sed '/^.*\/\([^/][^/]*\)\/*$/{
11957 # Avoid depending upon Character Ranges.
11958 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11959 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11960 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11961 as_cr_digits='0123456789'
11962 as_cr_alnum=$as_cr_Letters$as_cr_digits
11964 ECHO_C= ECHO_N= ECHO_T=
11965 case `echo -n x` in #(((((
11967 case `echo 'xy\c'` in
11968 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11970 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11977 rm -f conf$$ conf$$.exe conf$$.file
11978 if test -d conf$$.dir; then
11979 rm -f conf$$.dir/conf$$.file
11982 mkdir conf$$.dir 2>/dev/null
11984 if (echo >conf$$.file) 2>/dev/null; then
11985 if ln -s conf$$.file conf$$ 2>/dev/null; then
11987 # ... but there are two gotchas:
11988 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11989 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11990 # In both cases, we have to default to `cp -pR'.
11991 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11993 elif ln conf$$.file conf$$ 2>/dev/null; then
12001 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12002 rmdir conf$$.dir 2>/dev/null
12007 # Create "$as_dir" as a directory, including parents if necessary.
12012 -*) as_dir=./$as_dir;;
12014 test -d "$as_dir" || eval $as_mkdir_p || {
12018 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12019 *) as_qdir=$as_dir;;
12021 as_dirs="'$as_qdir' $as_dirs"
12022 as_dir=`$as_dirname -- "$as_dir" ||
12023 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12024 X"$as_dir" : 'X\(//\)[^/]' \| \
12025 X"$as_dir" : 'X\(//\)$' \| \
12026 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12027 $as_echo X"$as_dir" |
12028 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12032 /^X\(\/\/\)[^/].*/{
12045 test -d "$as_dir" && break
12047 test -z "$as_dirs" || eval "mkdir $as_dirs"
12048 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12052 if mkdir -p . 2>/dev/null; then
12053 as_mkdir_p='mkdir -p "$as_dir"'
12055 test -d ./-p && rmdir ./-p
12060 # as_fn_executable_p FILE
12061 # -----------------------
12062 # Test if FILE is an executable regular file.
12063 as_fn_executable_p ()
12065 test -f "$1" && test -x "$1"
12066 } # as_fn_executable_p
12067 as_test_x='test -x'
12068 as_executable_p=as_fn_executable_p
12070 # Sed expression to map a string onto a valid CPP name.
12071 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12073 # Sed expression to map a string onto a valid variable name.
12074 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12078 ## ----------------------------------- ##
12079 ## Main body of $CONFIG_STATUS script. ##
12080 ## ----------------------------------- ##
12082 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12084 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12085 # Save the log message, to keep $0 and so on meaningful, and to
12086 # report actual input values of CONFIG_FILES etc. instead of their
12087 # values after options handling.
12089 This file was extended by $as_me, which was
12090 generated by GNU Autoconf 2.69. Invocation command line was
12092 CONFIG_FILES = $CONFIG_FILES
12093 CONFIG_HEADERS = $CONFIG_HEADERS
12094 CONFIG_LINKS = $CONFIG_LINKS
12095 CONFIG_COMMANDS = $CONFIG_COMMANDS
12098 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12103 case $ac_config_files in *"
12104 "*) set x $ac_config_files; shift; ac_config_files=$*;;
12107 case $ac_config_headers in *"
12108 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12112 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12113 # Files that config.status was made for.
12114 config_files="$ac_config_files"
12115 config_headers="$ac_config_headers"
12116 config_commands="$ac_config_commands"
12120 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12122 \`$as_me' instantiates files and other configuration actions
12123 from templates according to the current configuration. Unless the files
12124 and actions are specified as TAGs, all are instantiated by default.
12126 Usage: $0 [OPTION]... [TAG]...
12128 -h, --help print this help, then exit
12129 -V, --version print version number and configuration settings, then exit
12130 --config print configuration, then exit
12131 -q, --quiet, --silent
12132 do not print progress messages
12133 -d, --debug don't remove temporary files
12134 --recheck update $as_me by reconfiguring in the same conditions
12135 --file=FILE[:TEMPLATE]
12136 instantiate the configuration file FILE
12137 --header=FILE[:TEMPLATE]
12138 instantiate the configuration header FILE
12140 Configuration files:
12143 Configuration headers:
12146 Configuration commands:
12149 Report bugs to the package provider."
12152 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12153 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12156 configured by $0, generated by GNU Autoconf 2.69,
12157 with options \\"\$ac_cs_config\\"
12159 Copyright (C) 2012 Free Software Foundation, Inc.
12160 This config.status script is free software; the Free Software Foundation
12161 gives unlimited permission to copy, distribute and modify it."
12167 test -n "\$AWK" || AWK=awk
12170 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12171 # The default lists apply if the user does not specify any file.
12177 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12178 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12182 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12194 # Handling of the options.
12195 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12197 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12198 $as_echo "$ac_cs_version"; exit ;;
12199 --config | --confi | --conf | --con | --co | --c )
12200 $as_echo "$ac_cs_config"; exit ;;
12201 --debug | --debu | --deb | --de | --d | -d )
12203 --file | --fil | --fi | --f )
12206 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12207 '') as_fn_error $? "missing file argument" ;;
12209 as_fn_append CONFIG_FILES " '$ac_optarg'"
12210 ac_need_defaults=false;;
12211 --header | --heade | --head | --hea )
12214 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12216 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12217 ac_need_defaults=false;;
12219 # Conflict between --help and --header
12220 as_fn_error $? "ambiguous option: \`$1'
12221 Try \`$0 --help' for more information.";;
12222 --help | --hel | -h )
12223 $as_echo "$ac_cs_usage"; exit ;;
12224 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12225 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12228 # This is an error.
12229 -*) as_fn_error $? "unrecognized option: \`$1'
12230 Try \`$0 --help' for more information." ;;
12232 *) as_fn_append ac_config_targets " $1"
12233 ac_need_defaults=false ;;
12239 ac_configure_extra_args=
12241 if $ac_cs_silent; then
12243 ac_configure_extra_args="$ac_configure_extra_args --silent"
12247 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12248 if \$ac_cs_recheck; then
12249 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12251 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12252 CONFIG_SHELL='$SHELL'
12253 export CONFIG_SHELL
12258 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12262 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12263 ## Running $as_me. ##
12269 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12273 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
12274 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
12276 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
12277 # Capture the value of LINGUAS because we need it to compute CATALOGS.
12278 LINGUAS="${LINGUAS-%UNSET%}"
12283 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12285 # Handling of arguments.
12286 for ac_config_target in $ac_config_targets
12288 case $ac_config_target in
12289 "lib/config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/config.h" ;;
12290 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
12291 "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;;
12293 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12298 # If the user did not use the arguments to specify the items to instantiate,
12299 # then the envvar interface is used. Set only those that are not.
12300 # We use the long form for the default assignment because of an extremely
12301 # bizarre bug on SunOS 4.1.3.
12302 if $ac_need_defaults; then
12303 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12304 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12305 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12308 # Have a temporary directory for convenience. Make it in the build tree
12309 # simply because there is no reason against having it here, and in addition,
12310 # creating and moving files from /tmp can sometimes cause problems.
12311 # Hook for its removal unless debugging.
12312 # Note that there is a small window in which the directory will not be cleaned:
12313 # after its creation but before its name has been assigned to `$tmp'.
12317 trap 'exit_status=$?
12318 : "${ac_tmp:=$tmp}"
12319 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12321 trap 'as_fn_exit 1' 1 2 13 15
12323 # Create a (secure) tmp directory for tmp files.
12326 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12330 tmp=./conf$$-$RANDOM
12331 (umask 077 && mkdir "$tmp")
12332 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12335 # Set up the scripts for CONFIG_FILES section.
12336 # No need to generate them if there are no CONFIG_FILES.
12337 # This happens for instance with `./config.status config.h'.
12338 if test -n "$CONFIG_FILES"; then
12340 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
12341 ac_cs_awk_getline=:
12342 ac_cs_awk_pipe_init=
12343 ac_cs_awk_read_file='
12344 while ((getline aline < (F[key])) > 0)
12347 ac_cs_awk_pipe_fini=
12349 ac_cs_awk_getline=false
12350 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
12351 ac_cs_awk_read_file='
12353 print "cat " F[key] " &&"
12354 '$ac_cs_awk_pipe_init
12355 # The final `:' finishes the AND list.
12356 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
12358 ac_cr=`echo X | tr X '\015'`
12359 # On cygwin, bash can eat \r inside `` if the user requested igncr.
12360 # But we know of no other shell where ac_cr would be empty at this
12361 # point, so we can use a bashism as a fallback.
12362 if test "x$ac_cr" = x; then
12363 eval ac_cr=\$\'\\r\'
12365 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12366 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12369 ac_cs_awk_cr=$ac_cr
12372 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12375 # Create commands to substitute file output variables.
12377 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
12378 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
12379 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
12382 } >conf$$files.sh &&
12383 . ./conf$$files.sh ||
12384 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12385 rm -f conf$$files.sh
12388 echo "cat >conf$$subs.awk <<_ACEOF" &&
12389 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12391 } >conf$$subs.sh ||
12392 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12393 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12395 for ac_last_try in false false false false false :; do
12396 . ./conf$$subs.sh ||
12397 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12399 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12400 if test $ac_delim_n = $ac_delim_num; then
12402 elif $ac_last_try; then
12403 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12405 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12408 rm -f conf$$subs.sh
12410 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12411 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12415 s/^/S["/; s/!.*/"]=/
12425 s/\(.\{148\}\)..*/\1/
12427 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12432 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12439 s/\(.\{148\}\)..*/\1/
12441 s/["\\]/\\&/g; s/^/"/; s/$/"/
12445 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12450 ' <conf$$subs.awk | sed '
12455 ' >>$CONFIG_STATUS || ac_write_fail=1
12456 rm -f conf$$subs.awk
12457 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12459 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12460 for (key in S) S_is_set[key] = 1
12462 \$ac_cs_awk_pipe_init
12466 nfields = split(line, field, "@")
12468 len = length(field[1])
12469 for (i = 2; i < nfields; i++) {
12471 keylen = length(key)
12472 if (S_is_set[key]) {
12474 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12475 len += length(value) + length(field[++i])
12480 if (nfields == 3 && !substed) {
12482 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
12483 \$ac_cs_awk_read_file
12489 \$ac_cs_awk_pipe_fini
12492 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12493 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12494 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12497 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12498 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12501 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12502 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12503 # trailing colons and then remove the whole line if VPATH becomes empty
12504 # (actually we leave an empty line to preserve line numbers).
12505 if test "x$srcdir" = x.; then
12506 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
12524 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12525 fi # test -n "$CONFIG_FILES"
12527 # Set up the scripts for CONFIG_HEADERS section.
12528 # No need to generate them if there are no CONFIG_HEADERS.
12529 # This happens for instance with `./config.status Makefile'.
12530 if test -n "$CONFIG_HEADERS"; then
12531 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
12535 # Transform confdefs.h into an awk script `defines.awk', embedded as
12536 # here-document in config.status, that substitutes the proper values into
12537 # config.h.in to produce config.h.
12539 # Create a delimiter string that does not exist in confdefs.h, to ease
12540 # handling of long lines.
12542 for ac_last_try in false false :; do
12543 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12544 if test -z "$ac_tt"; then
12546 elif $ac_last_try; then
12547 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12549 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12553 # For the awk script, D is an array of macro values keyed by name,
12554 # likewise P contains macro parameters if any. Preserve backslash
12555 # newline sequences.
12557 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12559 s/.\{148\}/&'"$ac_delim"'/g
12562 s/^[ ]*#[ ]*define[ ][ ]*/ /
12569 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12571 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12575 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12576 D["\1"]=" \3\\\\\\n"\\/p
12578 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12583 s/.\{148\}/&'"$ac_delim"'/g
12588 s/["\\]/\\&/g; s/^/"/; s/$/"/p
12591 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12593 ' <confdefs.h | sed '
12594 s/'"$ac_delim"'/"\\\
12595 "/g' >>$CONFIG_STATUS || ac_write_fail=1
12597 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12598 for (key in D) D_is_set[key] = 1
12601 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12603 split(line, arg, " ")
12604 if (arg[1] == "#") {
12608 defundef = substr(arg[1], 2)
12611 split(mac1, mac2, "(") #)
12613 prefix = substr(line, 1, index(line, defundef) - 1)
12614 if (D_is_set[macro]) {
12615 # Preserve the white space surrounding the "#".
12616 print prefix "define", macro P[macro] D[macro]
12619 # Replace #undef with comments. This is necessary, for example,
12620 # in the case of _POSIX_SOURCE, which is predefined and required
12621 # on some systems where configure will not decide to define it.
12622 if (defundef == "undef") {
12623 print "/*", prefix defundef, macro, "*/"
12631 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12632 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12633 fi # test -n "$CONFIG_HEADERS"
12636 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
12641 :[FHLC]) ac_mode=$ac_tag; continue;;
12643 case $ac_mode$ac_tag in
12645 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12646 :[FH]-) ac_tag=-:-;;
12647 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12664 -) ac_f="$ac_tmp/stdin";;
12665 *) # Look for the file first in the build tree, then in the source tree
12666 # (if the path is not absolute). The absolute path cannot be DOS-style,
12667 # because $ac_f cannot contain `:'.
12671 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12673 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12675 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12676 as_fn_append ac_file_inputs " '$ac_f'"
12679 # Let's still pretend it is `configure' which instantiates (i.e., don't
12680 # use $as_me), people would be surprised to read:
12681 # /* config.h. Generated by config.status. */
12682 configure_input='Generated from '`
12683 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12685 if test x"$ac_file" != x-; then
12686 configure_input="$ac_file. $configure_input"
12687 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12688 $as_echo "$as_me: creating $ac_file" >&6;}
12690 # Neutralize special characters interpreted by sed in replacement strings.
12691 case $configure_input in #(
12692 *\&* | *\|* | *\\* )
12693 ac_sed_conf_input=`$as_echo "$configure_input" |
12694 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12695 *) ac_sed_conf_input=$configure_input;;
12699 *:-:* | *:-) cat >"$ac_tmp/stdin" \
12700 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12705 ac_dir=`$as_dirname -- "$ac_file" ||
12706 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12707 X"$ac_file" : 'X\(//\)[^/]' \| \
12708 X"$ac_file" : 'X\(//\)$' \| \
12709 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12710 $as_echo X"$ac_file" |
12711 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12715 /^X\(\/\/\)[^/].*/{
12728 as_dir="$ac_dir"; as_fn_mkdir_p
12732 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12734 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12735 # A ".." for each directory in $ac_dir_suffix.
12736 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12737 case $ac_top_builddir_sub in
12738 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12739 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12742 ac_abs_top_builddir=$ac_pwd
12743 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12744 # for backward compatibility:
12745 ac_top_builddir=$ac_top_build_prefix
12748 .) # We are building in place.
12750 ac_top_srcdir=$ac_top_builddir_sub
12751 ac_abs_top_srcdir=$ac_pwd ;;
12752 [\\/]* | ?:[\\/]* ) # Absolute name.
12753 ac_srcdir=$srcdir$ac_dir_suffix;
12754 ac_top_srcdir=$srcdir
12755 ac_abs_top_srcdir=$srcdir ;;
12756 *) # Relative name.
12757 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12758 ac_top_srcdir=$ac_top_build_prefix$srcdir
12759 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12761 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12771 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12772 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12776 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12777 # If the template does not know about datarootdir, expand it.
12778 # FIXME: This hack should be removed a few years after 2.60.
12779 ac_datarootdir_hack=; ac_datarootdir_seen=
12790 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12791 *datarootdir*) ac_datarootdir_seen=yes;;
12792 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12793 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12794 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12796 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12797 ac_datarootdir_hack='
12798 s&@datadir@&$datadir&g
12799 s&@docdir@&$docdir&g
12800 s&@infodir@&$infodir&g
12801 s&@localedir@&$localedir&g
12802 s&@mandir@&$mandir&g
12803 s&\\\${datarootdir}&$datarootdir&g' ;;
12807 # Neutralize VPATH when `$srcdir' = `.'.
12808 # Shell code in configure.ac might set extrasub.
12809 # FIXME: do we really want to maintain this feature?
12810 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12811 ac_sed_extra="$ac_vpsub
12814 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12816 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12817 s|@configure_input@|$ac_sed_conf_input|;t t
12818 s&@top_builddir@&$ac_top_builddir_sub&;t t
12819 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12820 s&@srcdir@&$ac_srcdir&;t t
12821 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12822 s&@top_srcdir@&$ac_top_srcdir&;t t
12823 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12824 s&@builddir@&$ac_builddir&;t t
12825 s&@abs_builddir@&$ac_abs_builddir&;t t
12826 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12827 s&@INSTALL@&$ac_INSTALL&;t t
12828 $ac_datarootdir_hack
12830 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
12831 if $ac_cs_awk_getline; then
12832 $AWK -f "$ac_tmp/subs.awk"
12834 $AWK -f "$ac_tmp/subs.awk" | $SHELL
12836 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12838 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12839 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12840 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
12841 "$ac_tmp/out"`; test -z "$ac_out"; } &&
12842 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12843 which seems to be undefined. Please make sure it is defined" >&5
12844 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12845 which seems to be undefined. Please make sure it is defined" >&2;}
12847 rm -f "$ac_tmp/stdin"
12849 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12850 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12852 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12858 if test x"$ac_file" != x-; then
12860 $as_echo "/* $configure_input */" \
12861 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12862 } >"$ac_tmp/config.h" \
12863 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12864 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12865 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12866 $as_echo "$as_me: $ac_file is unchanged" >&6;}
12869 mv "$ac_tmp/config.h" "$ac_file" \
12870 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12873 $as_echo "/* $configure_input */" \
12874 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12875 || as_fn_error $? "could not create -" "$LINENO" 5
12879 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12880 $as_echo "$as_me: executing $ac_file commands" >&6;}
12885 case $ac_file$ac_mode in
12887 for ac_file in $CONFIG_FILES; do
12888 # Support "outfile[:infile[:infile...]]"
12890 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
12892 # PO directories have a Makefile.in generated from Makefile.in.in.
12893 case "$ac_file" in */Makefile.in)
12894 # Adjust a relative srcdir.
12895 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
12896 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
12897 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
12898 # In autoconf-2.13 it is called $ac_given_srcdir.
12899 # In autoconf-2.50 it is called $srcdir.
12900 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
12901 case "$ac_given_srcdir" in
12902 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
12903 /*) top_srcdir="$ac_given_srcdir" ;;
12904 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
12906 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
12907 rm -f "$ac_dir/POTFILES"
12908 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
12909 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
12910 POMAKEFILEDEPS="POTFILES.in"
12911 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
12912 # on $ac_dir but don't depend on user-specified configuration
12914 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
12915 # The LINGUAS file contains the set of available languages.
12916 if test -n "$OBSOLETE_ALL_LINGUAS"; then
12917 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
12919 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
12920 # Hide the ALL_LINGUAS assigment from automake.
12921 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
12922 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
12924 # The set of available languages was given in configure.in.
12925 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
12928 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
12929 # Compute UPDATEPOFILES
12930 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
12931 # Compute DUMMYPOFILES
12932 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
12934 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
12935 case "$ac_given_srcdir" in
12937 *) srcdirpre='$(srcdir)/' ;;
12943 for lang in $ALL_LINGUAS; do
12944 POFILES="$POFILES $srcdirpre$lang.po"
12945 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
12946 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
12947 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
12949 # CATALOGS depends on both $ac_dir and the user's LINGUAS
12950 # environment variable.
12952 if test -n "$ALL_LINGUAS"; then
12953 for presentlang in $ALL_LINGUAS; do
12955 if test "%UNSET%" != "$LINGUAS"; then
12956 desiredlanguages="$LINGUAS"
12958 desiredlanguages="$ALL_LINGUAS"
12960 for desiredlang in $desiredlanguages; do
12961 # Use the presentlang catalog if desiredlang is
12962 # a. equal to presentlang, or
12963 # b. a variant of presentlang (because in this case,
12964 # presentlang can be used as a fallback for messages
12965 # which are not translated in the desiredlang catalog).
12966 case "$desiredlang" in
12967 "$presentlang"*) useit=yes;;
12970 if test $useit = yes; then
12971 INST_LINGUAS="$INST_LINGUAS $presentlang"
12976 if test -n "$INST_LINGUAS"; then
12977 for lang in $INST_LINGUAS; do
12978 CATALOGS="$CATALOGS $lang.gmo"
12981 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
12982 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"
12983 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
12984 if test -f "$f"; then
12986 *.orig | *.bak | *~) ;;
12987 *) cat "$f" >> "$ac_dir/Makefile" ;;
13002 ac_clean_files=$ac_clean_files_save
13004 test $ac_write_fail = 0 ||
13005 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
13008 # configure is writing to config.log, and then calls config.status.
13009 # config.status does its own redirection, appending to config.log.
13010 # Unfortunately, on DOS this fails, as config.log is still kept open
13011 # by configure, so config.status won't be able to write to it; its
13012 # output is simply discarded. So we exec the FD to /dev/null,
13013 # effectively closing config.log, so it can be properly (re)opened and
13014 # appended to by config.status. When coming back to configure, we
13015 # need to make the FD available again.
13016 if test "$no_create" != yes; then
13018 ac_config_status_args=
13019 test "$silent" = yes &&
13020 ac_config_status_args="$ac_config_status_args --quiet"
13022 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13024 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13025 # would make configure fail if this is the last instruction.
13026 $ac_cs_success || as_fn_exit 1
13028 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13029 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13030 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13033 if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi