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
852 enable_e2initrd_helper
857 enable_bmap_stats_ops
862 with_included_gettext
866 ac_precious_vars='build_alias
878 # Initialize some variables set by options.
880 ac_init_version=false
881 ac_unrecognized_opts=
883 # The variables have the same names as the options, with
884 # dashes changed to underlines.
892 program_transform_name=s,x,x,
900 # Installation directory options.
901 # These are left unexpanded so users can "make install exec_prefix=/foo"
902 # and all the variables that are supposed to be based on exec_prefix
903 # by default will actually change.
904 # Use braces instead of parens because sh, perl, etc. also accept them.
905 # (The list follows the same order as the GNU Coding Standards.)
906 bindir='${exec_prefix}/bin'
907 sbindir='${exec_prefix}/sbin'
908 libexecdir='${exec_prefix}/libexec'
909 datarootdir='${prefix}/share'
910 datadir='${datarootdir}'
911 sysconfdir='${prefix}/etc'
912 sharedstatedir='${prefix}/com'
913 localstatedir='${prefix}/var'
914 includedir='${prefix}/include'
915 oldincludedir='/usr/include'
916 docdir='${datarootdir}/doc/${PACKAGE}'
917 infodir='${datarootdir}/info'
922 libdir='${exec_prefix}/lib'
923 localedir='${datarootdir}/locale'
924 mandir='${datarootdir}/man'
930 # If the previous option needs an argument, assign it.
931 if test -n "$ac_prev"; then
932 eval $ac_prev=\$ac_option
938 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
943 # Accept the important Cygnus configure options, so we can diagnose typos.
945 case $ac_dashdash$ac_option in
949 -bindir | --bindir | --bindi | --bind | --bin | --bi)
951 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
954 -build | --build | --buil | --bui | --bu)
955 ac_prev=build_alias ;;
956 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
957 build_alias=$ac_optarg ;;
959 -cache-file | --cache-file | --cache-fil | --cache-fi \
960 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
961 ac_prev=cache_file ;;
962 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
963 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
964 cache_file=$ac_optarg ;;
967 cache_file=config.cache ;;
969 -datadir | --datadir | --datadi | --datad)
971 -datadir=* | --datadir=* | --datadi=* | --datad=*)
972 datadir=$ac_optarg ;;
974 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
975 | --dataroo | --dataro | --datar)
976 ac_prev=datarootdir ;;
977 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
978 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
979 datarootdir=$ac_optarg ;;
981 -disable-* | --disable-*)
982 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
983 # Reject names that are not valid shell variable names.
984 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
985 as_fn_error $? "invalid feature name: $ac_useropt"
986 ac_useropt_orig=$ac_useropt
987 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
988 case $ac_user_opts in
992 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
993 ac_unrecognized_sep=', ';;
995 eval enable_$ac_useropt=no ;;
997 -docdir | --docdir | --docdi | --doc | --do)
999 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1000 docdir=$ac_optarg ;;
1002 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1004 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1005 dvidir=$ac_optarg ;;
1007 -enable-* | --enable-*)
1008 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1009 # Reject names that are not valid shell variable names.
1010 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1011 as_fn_error $? "invalid feature name: $ac_useropt"
1012 ac_useropt_orig=$ac_useropt
1013 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1014 case $ac_user_opts in
1016 "enable_$ac_useropt"
1018 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1019 ac_unrecognized_sep=', ';;
1021 eval enable_$ac_useropt=\$ac_optarg ;;
1023 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1024 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1025 | --exec | --exe | --ex)
1026 ac_prev=exec_prefix ;;
1027 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1028 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1029 | --exec=* | --exe=* | --ex=*)
1030 exec_prefix=$ac_optarg ;;
1032 -gas | --gas | --ga | --g)
1033 # Obsolete; use --with-gas.
1036 -help | --help | --hel | --he | -h)
1037 ac_init_help=long ;;
1038 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1039 ac_init_help=recursive ;;
1040 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1041 ac_init_help=short ;;
1043 -host | --host | --hos | --ho)
1044 ac_prev=host_alias ;;
1045 -host=* | --host=* | --hos=* | --ho=*)
1046 host_alias=$ac_optarg ;;
1048 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1050 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1052 htmldir=$ac_optarg ;;
1054 -includedir | --includedir | --includedi | --included | --include \
1055 | --includ | --inclu | --incl | --inc)
1056 ac_prev=includedir ;;
1057 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1058 | --includ=* | --inclu=* | --incl=* | --inc=*)
1059 includedir=$ac_optarg ;;
1061 -infodir | --infodir | --infodi | --infod | --info | --inf)
1063 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1064 infodir=$ac_optarg ;;
1066 -libdir | --libdir | --libdi | --libd)
1068 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1069 libdir=$ac_optarg ;;
1071 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1072 | --libexe | --libex | --libe)
1073 ac_prev=libexecdir ;;
1074 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1075 | --libexe=* | --libex=* | --libe=*)
1076 libexecdir=$ac_optarg ;;
1078 -localedir | --localedir | --localedi | --localed | --locale)
1079 ac_prev=localedir ;;
1080 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1081 localedir=$ac_optarg ;;
1083 -localstatedir | --localstatedir | --localstatedi | --localstated \
1084 | --localstate | --localstat | --localsta | --localst | --locals)
1085 ac_prev=localstatedir ;;
1086 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1087 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1088 localstatedir=$ac_optarg ;;
1090 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1092 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1093 mandir=$ac_optarg ;;
1095 -nfp | --nfp | --nf)
1096 # Obsolete; use --without-fp.
1099 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1100 | --no-cr | --no-c | -n)
1103 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1104 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1107 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1108 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1109 | --oldin | --oldi | --old | --ol | --o)
1110 ac_prev=oldincludedir ;;
1111 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1112 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1113 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1114 oldincludedir=$ac_optarg ;;
1116 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1118 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1119 prefix=$ac_optarg ;;
1121 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1122 | --program-pre | --program-pr | --program-p)
1123 ac_prev=program_prefix ;;
1124 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1125 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1126 program_prefix=$ac_optarg ;;
1128 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1129 | --program-suf | --program-su | --program-s)
1130 ac_prev=program_suffix ;;
1131 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1132 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1133 program_suffix=$ac_optarg ;;
1135 -program-transform-name | --program-transform-name \
1136 | --program-transform-nam | --program-transform-na \
1137 | --program-transform-n | --program-transform- \
1138 | --program-transform | --program-transfor \
1139 | --program-transfo | --program-transf \
1140 | --program-trans | --program-tran \
1141 | --progr-tra | --program-tr | --program-t)
1142 ac_prev=program_transform_name ;;
1143 -program-transform-name=* | --program-transform-name=* \
1144 | --program-transform-nam=* | --program-transform-na=* \
1145 | --program-transform-n=* | --program-transform-=* \
1146 | --program-transform=* | --program-transfor=* \
1147 | --program-transfo=* | --program-transf=* \
1148 | --program-trans=* | --program-tran=* \
1149 | --progr-tra=* | --program-tr=* | --program-t=*)
1150 program_transform_name=$ac_optarg ;;
1152 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1154 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1155 pdfdir=$ac_optarg ;;
1157 -psdir | --psdir | --psdi | --psd | --ps)
1159 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1162 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1163 | -silent | --silent | --silen | --sile | --sil)
1166 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1168 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1170 sbindir=$ac_optarg ;;
1172 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1173 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1174 | --sharedst | --shareds | --shared | --share | --shar \
1176 ac_prev=sharedstatedir ;;
1177 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1178 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1179 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1181 sharedstatedir=$ac_optarg ;;
1183 -site | --site | --sit)
1185 -site=* | --site=* | --sit=*)
1188 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1190 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1191 srcdir=$ac_optarg ;;
1193 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1194 | --syscon | --sysco | --sysc | --sys | --sy)
1195 ac_prev=sysconfdir ;;
1196 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1197 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1198 sysconfdir=$ac_optarg ;;
1200 -target | --target | --targe | --targ | --tar | --ta | --t)
1201 ac_prev=target_alias ;;
1202 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1203 target_alias=$ac_optarg ;;
1205 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1208 -version | --version | --versio | --versi | --vers | -V)
1209 ac_init_version=: ;;
1212 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1213 # Reject names that are not valid shell variable names.
1214 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1215 as_fn_error $? "invalid package name: $ac_useropt"
1216 ac_useropt_orig=$ac_useropt
1217 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1218 case $ac_user_opts in
1222 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1223 ac_unrecognized_sep=', ';;
1225 eval with_$ac_useropt=\$ac_optarg ;;
1227 -without-* | --without-*)
1228 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1229 # Reject names that are not valid shell variable names.
1230 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1231 as_fn_error $? "invalid package name: $ac_useropt"
1232 ac_useropt_orig=$ac_useropt
1233 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1234 case $ac_user_opts in
1238 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1239 ac_unrecognized_sep=', ';;
1241 eval with_$ac_useropt=no ;;
1244 # Obsolete; use --with-x.
1247 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1248 | --x-incl | --x-inc | --x-in | --x-i)
1249 ac_prev=x_includes ;;
1250 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1251 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1252 x_includes=$ac_optarg ;;
1254 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1255 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1256 ac_prev=x_libraries ;;
1257 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1258 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1259 x_libraries=$ac_optarg ;;
1261 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1262 Try \`$0 --help' for more information"
1266 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1267 # Reject names that are not valid shell variable names.
1268 case $ac_envvar in #(
1269 '' | [0-9]* | *[!_$as_cr_alnum]* )
1270 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1272 eval $ac_envvar=\$ac_optarg
1273 export $ac_envvar ;;
1276 # FIXME: should be removed in autoconf 3.0.
1277 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1278 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1279 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1280 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1286 if test -n "$ac_prev"; then
1287 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1288 as_fn_error $? "missing argument to $ac_option"
1291 if test -n "$ac_unrecognized_opts"; then
1292 case $enable_option_checking in
1294 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1295 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1299 # Check all directory arguments for consistency.
1300 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1301 datadir sysconfdir sharedstatedir localstatedir includedir \
1302 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1303 libdir localedir mandir
1305 eval ac_val=\$$ac_var
1306 # Remove trailing slashes.
1309 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1310 eval $ac_var=\$ac_val;;
1312 # Be sure to have absolute directory names.
1314 [\\/$]* | ?:[\\/]* ) continue;;
1315 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1317 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1320 # There might be people who depend on the old broken behavior: `$host'
1321 # used to hold the argument of --host etc.
1322 # FIXME: To remove some day.
1325 target=$target_alias
1327 # FIXME: To remove some day.
1328 if test "x$host_alias" != x; then
1329 if test "x$build_alias" = x; then
1330 cross_compiling=maybe
1331 elif test "x$build_alias" != "x$host_alias"; then
1337 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1339 test "$silent" = yes && exec 6>/dev/null
1342 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1343 ac_ls_di=`ls -di .` &&
1344 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1345 as_fn_error $? "working directory cannot be determined"
1346 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1347 as_fn_error $? "pwd does not report name of working directory"
1350 # Find the source files, if location was not specified.
1351 if test -z "$srcdir"; then
1352 ac_srcdir_defaulted=yes
1353 # Try the directory containing this script, then the parent directory.
1354 ac_confdir=`$as_dirname -- "$as_myself" ||
1355 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1356 X"$as_myself" : 'X\(//\)[^/]' \| \
1357 X"$as_myself" : 'X\(//\)$' \| \
1358 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1359 $as_echo X"$as_myself" |
1360 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1378 if test ! -r "$srcdir/$ac_unique_file"; then
1382 ac_srcdir_defaulted=no
1384 if test ! -r "$srcdir/$ac_unique_file"; then
1385 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1386 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1388 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1390 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1392 # When building in place, set srcdir=.
1393 if test "$ac_abs_confdir" = "$ac_pwd"; then
1396 # Remove unnecessary trailing slashes from srcdir.
1397 # Double slashes in file names in object file debugging info
1398 # mess up M-x gdb in Emacs.
1400 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1402 for ac_var in $ac_precious_vars; do
1403 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1404 eval ac_env_${ac_var}_value=\$${ac_var}
1405 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1406 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1410 # Report the --help message.
1412 if test "$ac_init_help" = "long"; then
1413 # Omit some internal or obsolete options to make the list less imposing.
1414 # This message is too long to be a string in the A/UX 3.1 sh.
1416 \`configure' configures this package to adapt to many kinds of systems.
1418 Usage: $0 [OPTION]... [VAR=VALUE]...
1420 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1421 VAR=VALUE. See below for descriptions of some of the useful variables.
1423 Defaults for the options are specified in brackets.
1426 -h, --help display this help and exit
1427 --help=short display options specific to this package
1428 --help=recursive display the short help of all the included packages
1429 -V, --version display version information and exit
1430 -q, --quiet, --silent do not print \`checking ...' messages
1431 --cache-file=FILE cache test results in FILE [disabled]
1432 -C, --config-cache alias for \`--cache-file=config.cache'
1433 -n, --no-create do not create output files
1434 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1436 Installation directories:
1437 --prefix=PREFIX install architecture-independent files in PREFIX
1438 [$ac_default_prefix]
1439 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1442 By default, \`make install' will install all the files in
1443 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1444 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1445 for instance \`--prefix=\$HOME'.
1447 For better control, use the options below.
1449 Fine tuning of the installation directories:
1450 --bindir=DIR user executables [EPREFIX/bin]
1451 --sbindir=DIR system admin executables [EPREFIX/sbin]
1452 --libexecdir=DIR program executables [EPREFIX/libexec]
1453 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1454 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1455 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1456 --libdir=DIR object code libraries [EPREFIX/lib]
1457 --includedir=DIR C header files [PREFIX/include]
1458 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1459 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1460 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1461 --infodir=DIR info documentation [DATAROOTDIR/info]
1462 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1463 --mandir=DIR man documentation [DATAROOTDIR/man]
1464 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1465 --htmldir=DIR html documentation [DOCDIR]
1466 --dvidir=DIR dvi documentation [DOCDIR]
1467 --pdfdir=DIR pdf documentation [DOCDIR]
1468 --psdir=DIR ps documentation [DOCDIR]
1474 --build=BUILD configure for building on BUILD [guessed]
1475 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1479 if test -n "$ac_init_help"; then
1484 --disable-option-checking ignore unrecognized --enable/--with options
1485 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1486 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1487 --enable-maintainer-mode enable makefile rules useful for maintainers
1488 --enable-symlink-install use symlinks when installing instead of hard links
1489 --enable-relative-symlinks use relative symlinks when installing
1491 --enable-symlink-build use symlinks while building instead of hard links
1492 --enable-verbose-makecmds enable verbose make command output
1493 --enable-compression enable EXPERIMENTAL compression support
1494 --enable-htree enable EXPERIMENTAL htree directory support
1495 --enable-elf-shlibs select ELF shared libraries
1496 --enable-bsd-shlibs select BSD shared libraries
1497 --enable-profile build profiling libraries
1498 --enable-checker build checker libraries
1499 --enable-jbd-debug enable journal debugging
1500 --enable-blkid-debug enable blkid debugging
1501 --disable-testio-debug disable the use of the test I/O manager for debugging
1502 --disable-libuuid do not build private uuid library
1503 --disable-libblkid do not build private blkid library
1504 --enable-quota enable quota support
1505 --disable-backtrace disable use backtrace
1506 --disable-debugfs disable support of debugfs program
1507 --disable-imager disable support of e2image program
1508 --disable-resizer disable support of e2resize program
1509 --disable-defrag disable support of e4defrag program
1510 --enable-fsck build fsck wrapper program
1511 --enable-e2initrd-helper build e2initrd-helper program
1512 --disable-tls disable use of thread local support
1513 --disable-uuidd disable building the uuid daemon
1514 --disable-mmp disable support mmp, Multi Mount Protection
1515 --disable-bmap-stats disable collection of bitmap stats.
1516 --enable-bmap-stats-ops enable collection of additional bitmap stats
1517 --disable-nls do not use Native Language Support
1518 --disable-rpath do not hardcode runtime library paths
1521 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1522 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1523 --with-diet-libc use diet libc
1524 --with-cc no longer supported, use CC= instead
1525 --with-ccopts no longer supported, use CFLAGS= instead
1526 --with-ldopts no longer supported, use LDFLAGS= instead
1527 --with-root-prefix=PREFIX override prefix variable for files to be placed in the root
1528 --with-gnu-ld assume the C compiler uses GNU ld default=no
1529 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1530 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1531 --with-included-gettext use the GNU gettext library included here
1532 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1533 --without-libintl-prefix don't search for libintl in includedir and libdir
1534 --with-multiarch=ARCH specify the multiarch triplet
1536 Some influential environment variables:
1537 CC C compiler command
1538 CFLAGS C compiler flags
1539 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1540 nonstandard directory <lib dir>
1541 LIBS libraries to pass to the linker, e.g. -l<library>
1542 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1543 you have headers in a nonstandard directory <include dir>
1545 PKG_CONFIG path to pkg-config utility
1547 Use these variables to override the choices made by `configure' or to help
1548 it to find libraries and programs with nonstandard names/locations.
1550 Report bugs to the package provider.
1555 if test "$ac_init_help" = "recursive"; then
1556 # If there are subdirs, report their specific --help.
1557 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1558 test -d "$ac_dir" ||
1559 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1564 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1566 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1567 # A ".." for each directory in $ac_dir_suffix.
1568 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1569 case $ac_top_builddir_sub in
1570 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1571 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1574 ac_abs_top_builddir=$ac_pwd
1575 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1576 # for backward compatibility:
1577 ac_top_builddir=$ac_top_build_prefix
1580 .) # We are building in place.
1582 ac_top_srcdir=$ac_top_builddir_sub
1583 ac_abs_top_srcdir=$ac_pwd ;;
1584 [\\/]* | ?:[\\/]* ) # Absolute name.
1585 ac_srcdir=$srcdir$ac_dir_suffix;
1586 ac_top_srcdir=$srcdir
1587 ac_abs_top_srcdir=$srcdir ;;
1589 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1590 ac_top_srcdir=$ac_top_build_prefix$srcdir
1591 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1593 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1595 cd "$ac_dir" || { ac_status=$?; continue; }
1596 # Check for guested configure.
1597 if test -f "$ac_srcdir/configure.gnu"; then
1599 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1600 elif test -f "$ac_srcdir/configure"; then
1602 $SHELL "$ac_srcdir/configure" --help=recursive
1604 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1606 cd "$ac_pwd" || { ac_status=$?; break; }
1610 test -n "$ac_init_help" && exit $ac_status
1611 if $ac_init_version; then
1614 generated by GNU Autoconf 2.69
1616 Copyright (C) 2012 Free Software Foundation, Inc.
1617 This configure script is free software; the Free Software Foundation
1618 gives unlimited permission to copy, distribute and modify it.
1623 ## ------------------------ ##
1624 ## Autoconf initialization. ##
1625 ## ------------------------ ##
1627 # ac_fn_c_try_compile LINENO
1628 # --------------------------
1629 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1630 ac_fn_c_try_compile ()
1632 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1633 rm -f conftest.$ac_objext
1634 if { { ac_try="$ac_compile"
1636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1637 *) ac_try_echo=$ac_try;;
1639 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1640 $as_echo "$ac_try_echo"; } >&5
1641 (eval "$ac_compile") 2>conftest.err
1643 if test -s conftest.err; then
1644 grep -v '^ *+' conftest.err >conftest.er1
1645 cat conftest.er1 >&5
1646 mv -f conftest.er1 conftest.err
1648 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1649 test $ac_status = 0; } && {
1650 test -z "$ac_c_werror_flag" ||
1651 test ! -s conftest.err
1652 } && test -s conftest.$ac_objext; then :
1655 $as_echo "$as_me: failed program was:" >&5
1656 sed 's/^/| /' conftest.$ac_ext >&5
1660 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1661 as_fn_set_status $ac_retval
1663 } # ac_fn_c_try_compile
1665 # ac_fn_c_try_link LINENO
1666 # -----------------------
1667 # Try to link conftest.$ac_ext, and return whether this succeeded.
1670 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1671 rm -f conftest.$ac_objext conftest$ac_exeext
1672 if { { ac_try="$ac_link"
1674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1675 *) ac_try_echo=$ac_try;;
1677 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1678 $as_echo "$ac_try_echo"; } >&5
1679 (eval "$ac_link") 2>conftest.err
1681 if test -s conftest.err; then
1682 grep -v '^ *+' conftest.err >conftest.er1
1683 cat conftest.er1 >&5
1684 mv -f conftest.er1 conftest.err
1686 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1687 test $ac_status = 0; } && {
1688 test -z "$ac_c_werror_flag" ||
1689 test ! -s conftest.err
1690 } && test -s conftest$ac_exeext && {
1691 test "$cross_compiling" = yes ||
1692 test -x conftest$ac_exeext
1696 $as_echo "$as_me: failed program was:" >&5
1697 sed 's/^/| /' conftest.$ac_ext >&5
1701 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1702 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1703 # interfere with the next link command; also delete a directory that is
1704 # left behind by Apple's compiler. We do this before executing the actions.
1705 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1706 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1707 as_fn_set_status $ac_retval
1709 } # ac_fn_c_try_link
1711 # ac_fn_c_try_cpp LINENO
1712 # ----------------------
1713 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1716 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1717 if { { ac_try="$ac_cpp conftest.$ac_ext"
1719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1720 *) ac_try_echo=$ac_try;;
1722 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1723 $as_echo "$ac_try_echo"; } >&5
1724 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1726 if test -s conftest.err; then
1727 grep -v '^ *+' conftest.err >conftest.er1
1728 cat conftest.er1 >&5
1729 mv -f conftest.er1 conftest.err
1731 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1732 test $ac_status = 0; } > conftest.i && {
1733 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1734 test ! -s conftest.err
1738 $as_echo "$as_me: failed program was:" >&5
1739 sed 's/^/| /' conftest.$ac_ext >&5
1743 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1744 as_fn_set_status $ac_retval
1748 # ac_fn_c_try_run LINENO
1749 # ----------------------
1750 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1751 # that executables *can* be run.
1754 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1755 if { { ac_try="$ac_link"
1757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1758 *) ac_try_echo=$ac_try;;
1760 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1761 $as_echo "$ac_try_echo"; } >&5
1762 (eval "$ac_link") 2>&5
1764 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1765 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1766 { { case "(($ac_try" in
1767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1768 *) ac_try_echo=$ac_try;;
1770 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1771 $as_echo "$ac_try_echo"; } >&5
1772 (eval "$ac_try") 2>&5
1774 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1775 test $ac_status = 0; }; }; then :
1778 $as_echo "$as_me: program exited with status $ac_status" >&5
1779 $as_echo "$as_me: failed program was:" >&5
1780 sed 's/^/| /' conftest.$ac_ext >&5
1782 ac_retval=$ac_status
1784 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1785 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1786 as_fn_set_status $ac_retval
1790 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1791 # -------------------------------------------
1792 # Tests whether TYPE exists after having included INCLUDES, setting cache
1793 # variable VAR accordingly.
1794 ac_fn_c_check_type ()
1796 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1798 $as_echo_n "checking for $2... " >&6; }
1799 if eval \${$3+:} false; then :
1800 $as_echo_n "(cached) " >&6
1803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1804 /* end confdefs.h. */
1815 if ac_fn_c_try_compile "$LINENO"; then :
1816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1817 /* end confdefs.h. */
1828 if ac_fn_c_try_compile "$LINENO"; then :
1833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1839 $as_echo "$ac_res" >&6; }
1840 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1842 } # ac_fn_c_check_type
1844 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1845 # -------------------------------------------------------
1846 # Tests whether HEADER exists and can be compiled using the include files in
1847 # INCLUDES, setting the cache variable VAR accordingly.
1848 ac_fn_c_check_header_compile ()
1850 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1852 $as_echo_n "checking for $2... " >&6; }
1853 if eval \${$3+:} false; then :
1854 $as_echo_n "(cached) " >&6
1856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1857 /* end confdefs.h. */
1861 if ac_fn_c_try_compile "$LINENO"; then :
1866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1870 $as_echo "$ac_res" >&6; }
1871 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1873 } # ac_fn_c_check_header_compile
1875 # ac_fn_c_check_func LINENO FUNC VAR
1876 # ----------------------------------
1877 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1878 ac_fn_c_check_func ()
1880 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1882 $as_echo_n "checking for $2... " >&6; }
1883 if eval \${$3+:} false; then :
1884 $as_echo_n "(cached) " >&6
1886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1887 /* end confdefs.h. */
1888 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1889 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1890 #define $2 innocuous_$2
1892 /* System header to define __stub macros and hopefully few prototypes,
1893 which can conflict with char $2 (); below.
1894 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1895 <limits.h> exists even on freestanding compilers. */
1898 # include <limits.h>
1900 # include <assert.h>
1905 /* Override any GCC internal prototype to avoid an error.
1906 Use char because int might match the return type of a GCC
1907 builtin and then its argument prototype would still apply. */
1912 /* The GNU C library defines this for functions which it implements
1913 to always fail with ENOSYS. Some functions are actually named
1914 something starting with __ and the normal name is an alias. */
1915 #if defined __stub_$2 || defined __stub___$2
1927 if ac_fn_c_try_link "$LINENO"; then :
1932 rm -f core conftest.err conftest.$ac_objext \
1933 conftest$ac_exeext conftest.$ac_ext
1936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1937 $as_echo "$ac_res" >&6; }
1938 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1940 } # ac_fn_c_check_func
1942 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1943 # -------------------------------------------------------
1944 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1945 # the include files in INCLUDES and setting the cache variable VAR
1947 ac_fn_c_check_header_mongrel ()
1949 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1950 if eval \${$3+:} false; then :
1951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1952 $as_echo_n "checking for $2... " >&6; }
1953 if eval \${$3+:} false; then :
1954 $as_echo_n "(cached) " >&6
1957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1958 $as_echo "$ac_res" >&6; }
1960 # Is the header compilable?
1961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1962 $as_echo_n "checking $2 usability... " >&6; }
1963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1964 /* end confdefs.h. */
1968 if ac_fn_c_try_compile "$LINENO"; then :
1969 ac_header_compiler=yes
1971 ac_header_compiler=no
1973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1975 $as_echo "$ac_header_compiler" >&6; }
1977 # Is the header present?
1978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1979 $as_echo_n "checking $2 presence... " >&6; }
1980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1981 /* end confdefs.h. */
1984 if ac_fn_c_try_cpp "$LINENO"; then :
1985 ac_header_preproc=yes
1987 ac_header_preproc=no
1989 rm -f conftest.err conftest.i conftest.$ac_ext
1990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1991 $as_echo "$ac_header_preproc" >&6; }
1993 # So? What about this header?
1994 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1996 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1997 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1998 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1999 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2002 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2003 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2004 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2005 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2006 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2007 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2008 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2009 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2010 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2011 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2015 $as_echo_n "checking for $2... " >&6; }
2016 if eval \${$3+:} false; then :
2017 $as_echo_n "(cached) " >&6
2019 eval "$3=\$ac_header_compiler"
2022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2023 $as_echo "$ac_res" >&6; }
2025 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2027 } # ac_fn_c_check_header_mongrel
2029 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2030 # --------------------------------------------
2031 # Tries to find the compile-time value of EXPR in a program that includes
2032 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2034 ac_fn_c_compute_int ()
2036 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2037 if test "$cross_compiling" = yes; then
2038 # Depending upon the size, compute the lo and hi bounds.
2039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2040 /* end confdefs.h. */
2045 static int test_array [1 - 2 * !(($2) >= 0)];
2047 return test_array [0];
2053 if ac_fn_c_try_compile "$LINENO"; then :
2056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2057 /* end confdefs.h. */
2062 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2064 return test_array [0];
2070 if ac_fn_c_try_compile "$LINENO"; then :
2071 ac_hi=$ac_mid; break
2073 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2074 if test $ac_lo -le $ac_mid; then
2078 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2084 /* end confdefs.h. */
2089 static int test_array [1 - 2 * !(($2) < 0)];
2091 return test_array [0];
2097 if ac_fn_c_try_compile "$LINENO"; then :
2100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2101 /* end confdefs.h. */
2106 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2108 return test_array [0];
2114 if ac_fn_c_try_compile "$LINENO"; then :
2115 ac_lo=$ac_mid; break
2117 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2118 if test $ac_mid -le $ac_hi; then
2122 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2132 # Binary search between lo and hi bounds.
2133 while test "x$ac_lo" != "x$ac_hi"; do
2134 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2136 /* end confdefs.h. */
2141 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2143 return test_array [0];
2149 if ac_fn_c_try_compile "$LINENO"; then :
2152 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2157 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2162 /* end confdefs.h. */
2164 static long int longval () { return $2; }
2165 static unsigned long int ulongval () { return $2; }
2172 FILE *f = fopen ("conftest.val", "w");
2177 long int i = longval ();
2180 fprintf (f, "%ld", i);
2184 unsigned long int i = ulongval ();
2187 fprintf (f, "%lu", i);
2189 /* Do not output a trailing newline, as this causes \r\n confusion
2190 on some platforms. */
2191 return ferror (f) || fclose (f) != 0;
2197 if ac_fn_c_try_run "$LINENO"; then :
2198 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2202 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2203 conftest.$ac_objext conftest.beam conftest.$ac_ext
2207 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2208 as_fn_set_status $ac_retval
2210 } # ac_fn_c_compute_int
2212 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2213 # ----------------------------------------------------
2214 # Tries to find if the field MEMBER exists in type AGGR, after including
2215 # INCLUDES, setting cache variable VAR accordingly.
2216 ac_fn_c_check_member ()
2218 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2220 $as_echo_n "checking for $2.$3... " >&6; }
2221 if eval \${$4+:} false; then :
2222 $as_echo_n "(cached) " >&6
2224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2225 /* end confdefs.h. */
2237 if ac_fn_c_try_compile "$LINENO"; then :
2240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2241 /* end confdefs.h. */
2247 if (sizeof ac_aggr.$3)
2253 if ac_fn_c_try_compile "$LINENO"; then :
2258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2264 $as_echo "$ac_res" >&6; }
2265 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2267 } # ac_fn_c_check_member
2269 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2270 # ---------------------------------------------
2271 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2273 ac_fn_c_check_decl ()
2275 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2276 as_decl_name=`echo $2|sed 's/ *(.*//'`
2277 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2279 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2280 if eval \${$3+:} false; then :
2281 $as_echo_n "(cached) " >&6
2283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2284 /* end confdefs.h. */
2289 #ifndef $as_decl_name
2291 (void) $as_decl_use;
2293 (void) $as_decl_name;
2301 if ac_fn_c_try_compile "$LINENO"; then :
2306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2310 $as_echo "$ac_res" >&6; }
2311 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2313 } # ac_fn_c_check_decl
2314 cat >config.log <<_ACEOF
2315 This file contains any messages produced by compilers while
2316 running configure, to aid debugging if configure makes a mistake.
2318 It was created by $as_me, which was
2319 generated by GNU Autoconf 2.69. Invocation command line was
2331 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2332 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2333 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2334 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2335 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2337 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2338 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2340 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2341 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2342 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2343 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2344 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2345 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2346 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2354 test -z "$as_dir" && as_dir=.
2355 $as_echo "PATH: $as_dir"
2371 # Keep a trace of the command line.
2372 # Strip out --no-create and --no-recursion so they do not pile up.
2373 # Strip out --silent because we don't want to record it for future runs.
2374 # Also quote any args containing shell meta-characters.
2375 # Make two passes to allow for proper duplicate-argument suppression.
2379 ac_must_keep_next=false
2385 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2386 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2387 | -silent | --silent | --silen | --sile | --sil)
2390 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2393 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2395 as_fn_append ac_configure_args1 " '$ac_arg'"
2396 if test $ac_must_keep_next = true; then
2397 ac_must_keep_next=false # Got value, back to normal.
2400 *=* | --config-cache | -C | -disable-* | --disable-* \
2401 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2402 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2403 | -with-* | --with-* | -without-* | --without-* | --x)
2404 case "$ac_configure_args0 " in
2405 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2408 -* ) ac_must_keep_next=true ;;
2411 as_fn_append ac_configure_args " '$ac_arg'"
2416 { ac_configure_args0=; unset ac_configure_args0;}
2417 { ac_configure_args1=; unset ac_configure_args1;}
2419 # When interrupted or exit'd, cleanup temporary files, and complete
2420 # config.log. We remove comments because anyway the quotes in there
2421 # would cause problems or look ugly.
2422 # WARNING: Use '\'' to represent an apostrophe within the trap.
2423 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2424 trap 'exit_status=$?
2425 # Save into config.log some information that might help in debugging.
2429 $as_echo "## ---------------- ##
2430 ## Cache variables. ##
2431 ## ---------------- ##"
2433 # The following way of writing the cache mishandles newlines in values,
2435 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2436 eval ac_val=\$$ac_var
2440 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2441 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2444 _ | IFS | as_nl) ;; #(
2445 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2446 *) { eval $ac_var=; unset $ac_var;} ;;
2451 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2452 *${as_nl}ac_space=\ *)
2454 "s/'\''/'\''\\\\'\'''\''/g;
2455 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2458 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2465 $as_echo "## ----------------- ##
2466 ## Output variables. ##
2467 ## ----------------- ##"
2469 for ac_var in $ac_subst_vars
2471 eval ac_val=\$$ac_var
2473 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2475 $as_echo "$ac_var='\''$ac_val'\''"
2479 if test -n "$ac_subst_files"; then
2480 $as_echo "## ------------------- ##
2481 ## File substitutions. ##
2482 ## ------------------- ##"
2484 for ac_var in $ac_subst_files
2486 eval ac_val=\$$ac_var
2488 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2490 $as_echo "$ac_var='\''$ac_val'\''"
2495 if test -s confdefs.h; then
2496 $as_echo "## ----------- ##
2503 test "$ac_signal" != 0 &&
2504 $as_echo "$as_me: caught signal $ac_signal"
2505 $as_echo "$as_me: exit $exit_status"
2507 rm -f core *.core core.conftest.* &&
2508 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2511 for ac_signal in 1 2 13 15; do
2512 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2516 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2517 rm -f -r conftest* confdefs.h
2519 $as_echo "/* confdefs.h */" > confdefs.h
2521 # Predefined preprocessor variables.
2523 cat >>confdefs.h <<_ACEOF
2524 #define PACKAGE_NAME "$PACKAGE_NAME"
2527 cat >>confdefs.h <<_ACEOF
2528 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2531 cat >>confdefs.h <<_ACEOF
2532 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2535 cat >>confdefs.h <<_ACEOF
2536 #define PACKAGE_STRING "$PACKAGE_STRING"
2539 cat >>confdefs.h <<_ACEOF
2540 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2543 cat >>confdefs.h <<_ACEOF
2544 #define PACKAGE_URL "$PACKAGE_URL"
2548 # Let the site file select an alternate cache file if it wants to.
2549 # Prefer an explicitly selected file to automatically selected ones.
2552 if test -n "$CONFIG_SITE"; then
2553 # We do not want a PATH search for config.site.
2554 case $CONFIG_SITE in #((
2555 -*) ac_site_file1=./$CONFIG_SITE;;
2556 */*) ac_site_file1=$CONFIG_SITE;;
2557 *) ac_site_file1=./$CONFIG_SITE;;
2559 elif test "x$prefix" != xNONE; then
2560 ac_site_file1=$prefix/share/config.site
2561 ac_site_file2=$prefix/etc/config.site
2563 ac_site_file1=$ac_default_prefix/share/config.site
2564 ac_site_file2=$ac_default_prefix/etc/config.site
2566 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2568 test "x$ac_site_file" = xNONE && continue
2569 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2570 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2571 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2572 sed 's/^/| /' "$ac_site_file" >&5
2574 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2575 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2576 as_fn_error $? "failed to load site script $ac_site_file
2577 See \`config.log' for more details" "$LINENO" 5; }
2581 if test -r "$cache_file"; then
2582 # Some versions of bash will fail to source /dev/null (special files
2583 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2584 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2585 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2586 $as_echo "$as_me: loading cache $cache_file" >&6;}
2588 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2589 *) . "./$cache_file";;
2593 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2594 $as_echo "$as_me: creating cache $cache_file" >&6;}
2598 as_fn_append ac_header_list " stdlib.h"
2599 as_fn_append ac_header_list " unistd.h"
2600 as_fn_append ac_header_list " sys/param.h"
2601 # Check that the precious variables saved in the cache have kept the same
2603 ac_cache_corrupted=false
2604 for ac_var in $ac_precious_vars; do
2605 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2606 eval ac_new_set=\$ac_env_${ac_var}_set
2607 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2608 eval ac_new_val=\$ac_env_${ac_var}_value
2609 case $ac_old_set,$ac_new_set in
2611 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2612 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2613 ac_cache_corrupted=: ;;
2615 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2616 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2617 ac_cache_corrupted=: ;;
2620 if test "x$ac_old_val" != "x$ac_new_val"; then
2621 # differences in whitespace do not lead to failure.
2622 ac_old_val_w=`echo x $ac_old_val`
2623 ac_new_val_w=`echo x $ac_new_val`
2624 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2625 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2626 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2627 ac_cache_corrupted=:
2629 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2630 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2631 eval $ac_var=\$ac_old_val
2633 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2634 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2635 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2636 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2639 # Pass precious variables to config.status.
2640 if test "$ac_new_set" = set; then
2642 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2643 *) ac_arg=$ac_var=$ac_new_val ;;
2645 case " $ac_configure_args " in
2646 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2647 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2651 if $ac_cache_corrupted; then
2652 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2653 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2654 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2655 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2656 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2658 ## -------------------- ##
2659 ## Main body of script. ##
2660 ## -------------------- ##
2663 ac_cpp='$CPP $CPPFLAGS'
2664 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2665 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2666 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2671 for ac_dir in config "$srcdir"/config; do
2672 if test -f "$ac_dir/install-sh"; then
2674 ac_install_sh="$ac_aux_dir/install-sh -c"
2676 elif test -f "$ac_dir/install.sh"; then
2678 ac_install_sh="$ac_aux_dir/install.sh -c"
2680 elif test -f "$ac_dir/shtool"; then
2682 ac_install_sh="$ac_aux_dir/shtool install -c"
2686 if test -z "$ac_aux_dir"; then
2687 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2690 # These three variables are undocumented and unsupported,
2691 # and are intended to be withdrawn in a future Autoconf release.
2692 # They can cause serious problems if a builder's source tree is in a directory
2693 # whose full name contains unusual characters.
2694 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2695 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2696 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2699 ac_config_headers="$ac_config_headers lib/config.h"
2705 E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \
2706 | awk '{print $3}' | tr \" " " | awk '{print $1}'`
2707 DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
2709 E2FSPROGS_DAY=`echo $DATE | awk -F- '{print $1}'`
2710 MONTH=`echo $DATE | awk -F- '{print $2}'`
2711 YEAR=`echo $DATE | awk -F- '{print $3}'`
2713 if expr $YEAR ">" 1900 > /dev/null ; then
2714 E2FSPROGS_YEAR=$YEAR
2715 elif expr $YEAR ">" 90 >/dev/null ; then
2716 E2FSPROGS_YEAR=19$YEAR
2718 E2FSPROGS_YEAR=20$YEAR
2722 Jan) MONTH_NUM=01; E2FSPROGS_MONTH="January" ;;
2723 Feb) MONTH_NUM=02; E2FSPROGS_MONTH="February" ;;
2724 Mar) MONTH_NUM=03; E2FSPROGS_MONTH="March" ;;
2725 Apr) MONTH_NUM=04; E2FSPROGS_MONTH="April" ;;
2726 May) MONTH_NUM=05; E2FSPROGS_MONTH="May" ;;
2727 Jun) MONTH_NUM=06; E2FSPROGS_MONTH="June" ;;
2728 Jul) MONTH_NUM=07; E2FSPROGS_MONTH="July" ;;
2729 Aug) MONTH_NUM=08; E2FSPROGS_MONTH="August" ;;
2730 Sep) MONTH_NUM=09; E2FSPROGS_MONTH="September" ;;
2731 Oct) MONTH_NUM=10; E2FSPROGS_MONTH="October" ;;
2732 Nov) MONTH_NUM=11; E2FSPROGS_MONTH="November" ;;
2733 Dec) MONTH_NUM=12; E2FSPROGS_MONTH="December" ;;
2734 *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unknown month $MONTH??" >&5
2735 $as_echo "$as_me: WARNING: Unknown month $MONTH??" >&2;} ;;
2738 base_ver=`echo $E2FSPROGS_VERSION | \
2739 sed -e 's/-WIP//' -e 's/pre-//' -e 's/-PLUS//'`
2741 date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY}
2743 case $E2FSPROGS_VERSION in
2745 E2FSPROGS_PKGVER="$base_ver~WIP-$E2FSPROGS_YEAR-$MONTH_NUM-$E2FSPROGS_DAY"
2748 E2FSPROGS_PKGVER="$base_ver"
2752 unset DATE MONTH YEAR base_ver pre_vers date_spec
2753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&5
2754 $as_echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&6; }
2755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&5
2756 $as_echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&6; }
2764 # Check whether --with-diet-libc was given.
2765 if test "${with_diet_libc+set}" = set; then :
2766 withval=$with_diet_libc; CC="diet cc -nostdinc"
2772 LIBS="$LIBS -lcompat"
2774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: CC=$CC" >&5
2775 $as_echo "CC=$CC" >&6; }
2777 # Make sure we can run config.sub.
2778 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2779 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2782 $as_echo_n "checking build system type... " >&6; }
2783 if ${ac_cv_build+:} false; then :
2784 $as_echo_n "(cached) " >&6
2786 ac_build_alias=$build_alias
2787 test "x$ac_build_alias" = x &&
2788 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2789 test "x$ac_build_alias" = x &&
2790 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2791 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2792 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2796 $as_echo "$ac_cv_build" >&6; }
2797 case $ac_cv_build in
2799 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2802 ac_save_IFS=$IFS; IFS='-'
2808 # Remember, the first character of IFS is used to create $*,
2809 # except with old shells:
2812 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2816 $as_echo_n "checking host system type... " >&6; }
2817 if ${ac_cv_host+:} false; then :
2818 $as_echo_n "(cached) " >&6
2820 if test "x$host_alias" = x; then
2821 ac_cv_host=$ac_cv_build
2823 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2824 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2829 $as_echo "$ac_cv_host" >&6; }
2832 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2835 ac_save_IFS=$IFS; IFS='-'
2841 # Remember, the first character of IFS is used to create $*,
2842 # except with old shells:
2845 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2850 ac_cpp='$CPP $CPPFLAGS'
2851 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2852 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2853 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2854 if test -n "$ac_tool_prefix"; then
2855 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2856 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2858 $as_echo_n "checking for $ac_word... " >&6; }
2859 if ${ac_cv_prog_CC+:} false; then :
2860 $as_echo_n "(cached) " >&6
2862 if test -n "$CC"; then
2863 ac_cv_prog_CC="$CC" # Let the user override the test.
2865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2869 test -z "$as_dir" && as_dir=.
2870 for ac_exec_ext in '' $ac_executable_extensions; do
2871 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2872 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2883 if test -n "$CC"; then
2884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2885 $as_echo "$CC" >&6; }
2887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2888 $as_echo "no" >&6; }
2893 if test -z "$ac_cv_prog_CC"; then
2895 # Extract the first word of "gcc", so it can be a program name with args.
2896 set dummy gcc; ac_word=$2
2897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2898 $as_echo_n "checking for $ac_word... " >&6; }
2899 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2900 $as_echo_n "(cached) " >&6
2902 if test -n "$ac_ct_CC"; then
2903 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2909 test -z "$as_dir" && as_dir=.
2910 for ac_exec_ext in '' $ac_executable_extensions; do
2911 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2912 ac_cv_prog_ac_ct_CC="gcc"
2913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2922 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2923 if test -n "$ac_ct_CC"; then
2924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2925 $as_echo "$ac_ct_CC" >&6; }
2927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2928 $as_echo "no" >&6; }
2931 if test "x$ac_ct_CC" = x; then
2934 case $cross_compiling:$ac_tool_warned in
2936 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2937 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2938 ac_tool_warned=yes ;;
2946 if test -z "$CC"; then
2947 if test -n "$ac_tool_prefix"; then
2948 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2949 set dummy ${ac_tool_prefix}cc; ac_word=$2
2950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2951 $as_echo_n "checking for $ac_word... " >&6; }
2952 if ${ac_cv_prog_CC+:} false; then :
2953 $as_echo_n "(cached) " >&6
2955 if test -n "$CC"; then
2956 ac_cv_prog_CC="$CC" # Let the user override the test.
2958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2962 test -z "$as_dir" && as_dir=.
2963 for ac_exec_ext in '' $ac_executable_extensions; do
2964 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2965 ac_cv_prog_CC="${ac_tool_prefix}cc"
2966 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2976 if test -n "$CC"; then
2977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2978 $as_echo "$CC" >&6; }
2980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2981 $as_echo "no" >&6; }
2987 if test -z "$CC"; then
2988 # Extract the first word of "cc", so it can be a program name with args.
2989 set dummy cc; ac_word=$2
2990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2991 $as_echo_n "checking for $ac_word... " >&6; }
2992 if ${ac_cv_prog_CC+:} false; then :
2993 $as_echo_n "(cached) " >&6
2995 if test -n "$CC"; then
2996 ac_cv_prog_CC="$CC" # Let the user override the test.
2999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3003 test -z "$as_dir" && as_dir=.
3004 for ac_exec_ext in '' $ac_executable_extensions; do
3005 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3006 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3007 ac_prog_rejected=yes
3011 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3018 if test $ac_prog_rejected = yes; then
3019 # We found a bogon in the path, so make sure we never use it.
3020 set dummy $ac_cv_prog_CC
3022 if test $# != 0; then
3023 # We chose a different compiler from the bogus one.
3024 # However, it has the same basename, so the bogon will be chosen
3025 # first if we set CC to just the basename; use the full file name.
3027 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3033 if test -n "$CC"; then
3034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3035 $as_echo "$CC" >&6; }
3037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3038 $as_echo "no" >&6; }
3043 if test -z "$CC"; then
3044 if test -n "$ac_tool_prefix"; then
3045 for ac_prog in cl.exe
3047 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3048 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3050 $as_echo_n "checking for $ac_word... " >&6; }
3051 if ${ac_cv_prog_CC+:} false; then :
3052 $as_echo_n "(cached) " >&6
3054 if test -n "$CC"; then
3055 ac_cv_prog_CC="$CC" # Let the user override the test.
3057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3061 test -z "$as_dir" && as_dir=.
3062 for ac_exec_ext in '' $ac_executable_extensions; do
3063 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3064 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3065 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3075 if test -n "$CC"; then
3076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3077 $as_echo "$CC" >&6; }
3079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3080 $as_echo "no" >&6; }
3084 test -n "$CC" && break
3087 if test -z "$CC"; then
3089 for ac_prog in cl.exe
3091 # Extract the first word of "$ac_prog", so it can be a program name with args.
3092 set dummy $ac_prog; ac_word=$2
3093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3094 $as_echo_n "checking for $ac_word... " >&6; }
3095 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3096 $as_echo_n "(cached) " >&6
3098 if test -n "$ac_ct_CC"; then
3099 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3105 test -z "$as_dir" && as_dir=.
3106 for ac_exec_ext in '' $ac_executable_extensions; do
3107 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3108 ac_cv_prog_ac_ct_CC="$ac_prog"
3109 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3118 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3119 if test -n "$ac_ct_CC"; then
3120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3121 $as_echo "$ac_ct_CC" >&6; }
3123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3124 $as_echo "no" >&6; }
3128 test -n "$ac_ct_CC" && break
3131 if test "x$ac_ct_CC" = x; then
3134 case $cross_compiling:$ac_tool_warned in
3136 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3137 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3138 ac_tool_warned=yes ;;
3147 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3148 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3149 as_fn_error $? "no acceptable C compiler found in \$PATH
3150 See \`config.log' for more details" "$LINENO" 5; }
3152 # Provide some information about the compiler.
3153 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3156 for ac_option in --version -v -V -qversion; do
3157 { { ac_try="$ac_compiler $ac_option >&5"
3159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3160 *) ac_try_echo=$ac_try;;
3162 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3163 $as_echo "$ac_try_echo"; } >&5
3164 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3166 if test -s conftest.err; then
3168 ... rest of stderr output deleted ...
3169 10q' conftest.err >conftest.er1
3170 cat conftest.er1 >&5
3172 rm -f conftest.er1 conftest.err
3173 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3174 test $ac_status = 0; }
3177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3178 /* end confdefs.h. */
3188 ac_clean_files_save=$ac_clean_files
3189 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3190 # Try to create an executable without -o first, disregard a.out.
3191 # It will help us diagnose broken compilers, and finding out an intuition
3193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3194 $as_echo_n "checking whether the C compiler works... " >&6; }
3195 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3197 # The possible output files:
3198 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3201 for ac_file in $ac_files
3204 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3205 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3210 if { { ac_try="$ac_link_default"
3212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3213 *) ac_try_echo=$ac_try;;
3215 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3216 $as_echo "$ac_try_echo"; } >&5
3217 (eval "$ac_link_default") 2>&5
3219 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3220 test $ac_status = 0; }; then :
3221 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3222 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3223 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3224 # so that the user can short-circuit this test for compilers unknown to
3226 for ac_file in $ac_files ''
3228 test -f "$ac_file" || continue
3230 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3233 # We found the default executable, but exeext='' is most
3237 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3239 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3241 # We set ac_cv_exeext here because the later test for it is not
3242 # safe: cross compilers may not add the suffix if given an `-o'
3243 # argument, so we may need to know it at that point already.
3244 # Even if this section looks crufty: it has the advantage of
3251 test "$ac_cv_exeext" = no && ac_cv_exeext=
3256 if test -z "$ac_file"; then :
3257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3258 $as_echo "no" >&6; }
3259 $as_echo "$as_me: failed program was:" >&5
3260 sed 's/^/| /' conftest.$ac_ext >&5
3262 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3263 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3264 as_fn_error 77 "C compiler cannot create executables
3265 See \`config.log' for more details" "$LINENO" 5; }
3267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3268 $as_echo "yes" >&6; }
3270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3271 $as_echo_n "checking for C compiler default output file name... " >&6; }
3272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3273 $as_echo "$ac_file" >&6; }
3274 ac_exeext=$ac_cv_exeext
3276 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3277 ac_clean_files=$ac_clean_files_save
3278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3279 $as_echo_n "checking for suffix of executables... " >&6; }
3280 if { { ac_try="$ac_link"
3282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3283 *) ac_try_echo=$ac_try;;
3285 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3286 $as_echo "$ac_try_echo"; } >&5
3287 (eval "$ac_link") 2>&5
3289 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3290 test $ac_status = 0; }; then :
3291 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3292 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3293 # work properly (i.e., refer to `conftest.exe'), while it won't with
3295 for ac_file in conftest.exe conftest conftest.*; do
3296 test -f "$ac_file" || continue
3298 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3299 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3305 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3306 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3307 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3308 See \`config.log' for more details" "$LINENO" 5; }
3310 rm -f conftest conftest$ac_cv_exeext
3311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3312 $as_echo "$ac_cv_exeext" >&6; }
3314 rm -f conftest.$ac_ext
3315 EXEEXT=$ac_cv_exeext
3317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3318 /* end confdefs.h. */
3323 FILE *f = fopen ("conftest.out", "w");
3324 return ferror (f) || fclose (f) != 0;
3330 ac_clean_files="$ac_clean_files conftest.out"
3331 # Check that the compiler produces executables we can run. If not, either
3332 # the compiler is broken, or we cross compile.
3333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3334 $as_echo_n "checking whether we are cross compiling... " >&6; }
3335 if test "$cross_compiling" != yes; then
3336 { { ac_try="$ac_link"
3338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3339 *) ac_try_echo=$ac_try;;
3341 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3342 $as_echo "$ac_try_echo"; } >&5
3343 (eval "$ac_link") 2>&5
3345 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3346 test $ac_status = 0; }
3347 if { ac_try='./conftest$ac_cv_exeext'
3348 { { case "(($ac_try" in
3349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3350 *) ac_try_echo=$ac_try;;
3352 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3353 $as_echo "$ac_try_echo"; } >&5
3354 (eval "$ac_try") 2>&5
3356 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3357 test $ac_status = 0; }; }; then
3360 if test "$cross_compiling" = maybe; then
3363 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3364 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3365 as_fn_error $? "cannot run C compiled programs.
3366 If you meant to cross compile, use \`--host'.
3367 See \`config.log' for more details" "$LINENO" 5; }
3371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3372 $as_echo "$cross_compiling" >&6; }
3374 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3375 ac_clean_files=$ac_clean_files_save
3376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3377 $as_echo_n "checking for suffix of object files... " >&6; }
3378 if ${ac_cv_objext+:} false; then :
3379 $as_echo_n "(cached) " >&6
3381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3382 /* end confdefs.h. */
3392 rm -f conftest.o conftest.obj
3393 if { { ac_try="$ac_compile"
3395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3396 *) ac_try_echo=$ac_try;;
3398 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3399 $as_echo "$ac_try_echo"; } >&5
3400 (eval "$ac_compile") 2>&5
3402 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3403 test $ac_status = 0; }; then :
3404 for ac_file in conftest.o conftest.obj conftest.*; do
3405 test -f "$ac_file" || continue;
3407 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3408 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3413 $as_echo "$as_me: failed program was:" >&5
3414 sed 's/^/| /' conftest.$ac_ext >&5
3416 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3417 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3418 as_fn_error $? "cannot compute suffix of object files: cannot compile
3419 See \`config.log' for more details" "$LINENO" 5; }
3421 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3424 $as_echo "$ac_cv_objext" >&6; }
3425 OBJEXT=$ac_cv_objext
3427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3428 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3429 if ${ac_cv_c_compiler_gnu+:} false; then :
3430 $as_echo_n "(cached) " >&6
3432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3433 /* end confdefs.h. */
3446 if ac_fn_c_try_compile "$LINENO"; then :
3451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3452 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3456 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3457 if test $ac_compiler_gnu = yes; then
3462 ac_test_CFLAGS=${CFLAGS+set}
3463 ac_save_CFLAGS=$CFLAGS
3464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3465 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3466 if ${ac_cv_prog_cc_g+:} false; then :
3467 $as_echo_n "(cached) " >&6
3469 ac_save_c_werror_flag=$ac_c_werror_flag
3470 ac_c_werror_flag=yes
3473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3474 /* end confdefs.h. */
3484 if ac_fn_c_try_compile "$LINENO"; then :
3488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3489 /* end confdefs.h. */
3499 if ac_fn_c_try_compile "$LINENO"; then :
3502 ac_c_werror_flag=$ac_save_c_werror_flag
3504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3505 /* end confdefs.h. */
3515 if ac_fn_c_try_compile "$LINENO"; then :
3518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3523 ac_c_werror_flag=$ac_save_c_werror_flag
3525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3526 $as_echo "$ac_cv_prog_cc_g" >&6; }
3527 if test "$ac_test_CFLAGS" = set; then
3528 CFLAGS=$ac_save_CFLAGS
3529 elif test $ac_cv_prog_cc_g = yes; then
3530 if test "$GCC" = yes; then
3536 if test "$GCC" = yes; then
3542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3543 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3544 if ${ac_cv_prog_cc_c89+:} false; then :
3545 $as_echo_n "(cached) " >&6
3547 ac_cv_prog_cc_c89=no
3549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3550 /* end confdefs.h. */
3554 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3555 struct buf { int x; };
3556 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3557 static char *e (p, i)
3563 static char *f (char * (*g) (char **, int), char **p, ...)
3568 s = g (p, va_arg (v,int));
3573 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3574 function prototypes and stuff, but not '\xHH' hex character constants.
3575 These don't provoke an error unfortunately, instead are silently treated
3576 as 'x'. The following induces an error, until -std is added to get
3577 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3578 array size at least. It's necessary to write '\x00'==0 to get something
3579 that's true only with -std. */
3580 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3582 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3583 inside strings and character constants. */
3585 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3587 int test (int i, double x);
3588 struct s1 {int (*f) (int a);};
3589 struct s2 {int (*f) (double a);};
3590 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3596 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3601 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3602 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3604 CC="$ac_save_CC $ac_arg"
3605 if ac_fn_c_try_compile "$LINENO"; then :
3606 ac_cv_prog_cc_c89=$ac_arg
3608 rm -f core conftest.err conftest.$ac_objext
3609 test "x$ac_cv_prog_cc_c89" != "xno" && break
3611 rm -f conftest.$ac_ext
3616 case "x$ac_cv_prog_cc_c89" in
3618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3619 $as_echo "none needed" >&6; } ;;
3621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3622 $as_echo "unsupported" >&6; } ;;
3624 CC="$CC $ac_cv_prog_cc_c89"
3625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3626 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3628 if test "x$ac_cv_prog_cc_c89" != xno; then :
3633 ac_cpp='$CPP $CPPFLAGS'
3634 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3635 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3636 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
3640 $as_echo_n "checking for dlopen in -ldl... " >&6; }
3641 if ${ac_cv_lib_dl_dlopen+:} false; then :
3642 $as_echo_n "(cached) " >&6
3644 ac_check_lib_save_LIBS=$LIBS
3646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3647 /* end confdefs.h. */
3649 /* Override any GCC internal prototype to avoid an error.
3650 Use char because int might match the return type of a GCC
3651 builtin and then its argument prototype would still apply. */
3664 if ac_fn_c_try_link "$LINENO"; then :
3665 ac_cv_lib_dl_dlopen=yes
3667 ac_cv_lib_dl_dlopen=no
3669 rm -f core conftest.err conftest.$ac_objext \
3670 conftest$ac_exeext conftest.$ac_ext
3671 LIBS=$ac_check_lib_save_LIBS
3673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
3674 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
3675 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
3678 $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
3684 # Check whether --with-cc was given.
3685 if test "${with_cc+set}" = set; then :
3686 withval=$with_cc; as_fn_error $? "--with-cc no longer supported; use CC= instead" "$LINENO" 5
3690 # Check whether --with-ccopts was given.
3691 if test "${with_ccopts+set}" = set; then :
3692 withval=$with_ccopts; as_fn_error $? "--with-ccopts no longer supported; use CFLAGS= instead" "$LINENO" 5
3696 # Check whether --with-ldopts was given.
3697 if test "${with_ldopts+set}" = set; then :
3698 withval=$with_ldopts; as_fn_error $? "--with-ldopts no longer supported; use LDFLAGS= instead" "$LINENO" 5
3702 ac_cpp='$CPP $CPPFLAGS'
3703 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3704 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3705 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3706 if test -n "$ac_tool_prefix"; then
3707 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3708 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3710 $as_echo_n "checking for $ac_word... " >&6; }
3711 if ${ac_cv_prog_CC+:} false; then :
3712 $as_echo_n "(cached) " >&6
3714 if test -n "$CC"; then
3715 ac_cv_prog_CC="$CC" # Let the user override the test.
3717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3721 test -z "$as_dir" && as_dir=.
3722 for ac_exec_ext in '' $ac_executable_extensions; do
3723 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3724 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3725 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3735 if test -n "$CC"; then
3736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3737 $as_echo "$CC" >&6; }
3739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3740 $as_echo "no" >&6; }
3745 if test -z "$ac_cv_prog_CC"; then
3747 # Extract the first word of "gcc", so it can be a program name with args.
3748 set dummy gcc; ac_word=$2
3749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3750 $as_echo_n "checking for $ac_word... " >&6; }
3751 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3752 $as_echo_n "(cached) " >&6
3754 if test -n "$ac_ct_CC"; then
3755 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3761 test -z "$as_dir" && as_dir=.
3762 for ac_exec_ext in '' $ac_executable_extensions; do
3763 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3764 ac_cv_prog_ac_ct_CC="gcc"
3765 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3774 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3775 if test -n "$ac_ct_CC"; then
3776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3777 $as_echo "$ac_ct_CC" >&6; }
3779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3780 $as_echo "no" >&6; }
3783 if test "x$ac_ct_CC" = x; then
3786 case $cross_compiling:$ac_tool_warned in
3788 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3789 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3790 ac_tool_warned=yes ;;
3798 if test -z "$CC"; then
3799 if test -n "$ac_tool_prefix"; then
3800 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3801 set dummy ${ac_tool_prefix}cc; ac_word=$2
3802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3803 $as_echo_n "checking for $ac_word... " >&6; }
3804 if ${ac_cv_prog_CC+:} false; then :
3805 $as_echo_n "(cached) " >&6
3807 if test -n "$CC"; then
3808 ac_cv_prog_CC="$CC" # Let the user override the test.
3810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3814 test -z "$as_dir" && as_dir=.
3815 for ac_exec_ext in '' $ac_executable_extensions; do
3816 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3817 ac_cv_prog_CC="${ac_tool_prefix}cc"
3818 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3828 if test -n "$CC"; then
3829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3830 $as_echo "$CC" >&6; }
3832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3833 $as_echo "no" >&6; }
3839 if test -z "$CC"; then
3840 # Extract the first word of "cc", so it can be a program name with args.
3841 set dummy cc; ac_word=$2
3842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3843 $as_echo_n "checking for $ac_word... " >&6; }
3844 if ${ac_cv_prog_CC+:} false; then :
3845 $as_echo_n "(cached) " >&6
3847 if test -n "$CC"; then
3848 ac_cv_prog_CC="$CC" # Let the user override the test.
3851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3855 test -z "$as_dir" && as_dir=.
3856 for ac_exec_ext in '' $ac_executable_extensions; do
3857 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3858 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3859 ac_prog_rejected=yes
3863 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3870 if test $ac_prog_rejected = yes; then
3871 # We found a bogon in the path, so make sure we never use it.
3872 set dummy $ac_cv_prog_CC
3874 if test $# != 0; then
3875 # We chose a different compiler from the bogus one.
3876 # However, it has the same basename, so the bogon will be chosen
3877 # first if we set CC to just the basename; use the full file name.
3879 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3885 if test -n "$CC"; then
3886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3887 $as_echo "$CC" >&6; }
3889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3890 $as_echo "no" >&6; }
3895 if test -z "$CC"; then
3896 if test -n "$ac_tool_prefix"; then
3897 for ac_prog in cl.exe
3899 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3900 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3902 $as_echo_n "checking for $ac_word... " >&6; }
3903 if ${ac_cv_prog_CC+:} false; then :
3904 $as_echo_n "(cached) " >&6
3906 if test -n "$CC"; then
3907 ac_cv_prog_CC="$CC" # Let the user override the test.
3909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3913 test -z "$as_dir" && as_dir=.
3914 for ac_exec_ext in '' $ac_executable_extensions; do
3915 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3916 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3927 if test -n "$CC"; then
3928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3929 $as_echo "$CC" >&6; }
3931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3932 $as_echo "no" >&6; }
3936 test -n "$CC" && break
3939 if test -z "$CC"; then
3941 for ac_prog in cl.exe
3943 # Extract the first word of "$ac_prog", so it can be a program name with args.
3944 set dummy $ac_prog; ac_word=$2
3945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3946 $as_echo_n "checking for $ac_word... " >&6; }
3947 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3948 $as_echo_n "(cached) " >&6
3950 if test -n "$ac_ct_CC"; then
3951 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3957 test -z "$as_dir" && as_dir=.
3958 for ac_exec_ext in '' $ac_executable_extensions; do
3959 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3960 ac_cv_prog_ac_ct_CC="$ac_prog"
3961 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3970 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3971 if test -n "$ac_ct_CC"; then
3972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3973 $as_echo "$ac_ct_CC" >&6; }
3975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3976 $as_echo "no" >&6; }
3980 test -n "$ac_ct_CC" && break
3983 if test "x$ac_ct_CC" = x; then
3986 case $cross_compiling:$ac_tool_warned in
3988 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3989 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3990 ac_tool_warned=yes ;;
3999 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4000 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4001 as_fn_error $? "no acceptable C compiler found in \$PATH
4002 See \`config.log' for more details" "$LINENO" 5; }
4004 # Provide some information about the compiler.
4005 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4008 for ac_option in --version -v -V -qversion; do
4009 { { ac_try="$ac_compiler $ac_option >&5"
4011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4012 *) ac_try_echo=$ac_try;;
4014 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4015 $as_echo "$ac_try_echo"; } >&5
4016 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4018 if test -s conftest.err; then
4020 ... rest of stderr output deleted ...
4021 10q' conftest.err >conftest.er1
4022 cat conftest.er1 >&5
4024 rm -f conftest.er1 conftest.err
4025 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4026 test $ac_status = 0; }
4029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4030 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4031 if ${ac_cv_c_compiler_gnu+:} false; then :
4032 $as_echo_n "(cached) " >&6
4034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4035 /* end confdefs.h. */
4048 if ac_fn_c_try_compile "$LINENO"; then :
4053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4054 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4058 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4059 if test $ac_compiler_gnu = yes; then
4064 ac_test_CFLAGS=${CFLAGS+set}
4065 ac_save_CFLAGS=$CFLAGS
4066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4067 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4068 if ${ac_cv_prog_cc_g+:} false; then :
4069 $as_echo_n "(cached) " >&6
4071 ac_save_c_werror_flag=$ac_c_werror_flag
4072 ac_c_werror_flag=yes
4075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4076 /* end confdefs.h. */
4086 if ac_fn_c_try_compile "$LINENO"; then :
4090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4091 /* end confdefs.h. */
4101 if ac_fn_c_try_compile "$LINENO"; then :
4104 ac_c_werror_flag=$ac_save_c_werror_flag
4106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4107 /* end confdefs.h. */
4117 if ac_fn_c_try_compile "$LINENO"; then :
4120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4125 ac_c_werror_flag=$ac_save_c_werror_flag
4127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4128 $as_echo "$ac_cv_prog_cc_g" >&6; }
4129 if test "$ac_test_CFLAGS" = set; then
4130 CFLAGS=$ac_save_CFLAGS
4131 elif test $ac_cv_prog_cc_g = yes; then
4132 if test "$GCC" = yes; then
4138 if test "$GCC" = yes; then
4144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4145 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4146 if ${ac_cv_prog_cc_c89+:} false; then :
4147 $as_echo_n "(cached) " >&6
4149 ac_cv_prog_cc_c89=no
4151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4152 /* end confdefs.h. */
4156 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4157 struct buf { int x; };
4158 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4159 static char *e (p, i)
4165 static char *f (char * (*g) (char **, int), char **p, ...)
4170 s = g (p, va_arg (v,int));
4175 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4176 function prototypes and stuff, but not '\xHH' hex character constants.
4177 These don't provoke an error unfortunately, instead are silently treated
4178 as 'x'. The following induces an error, until -std is added to get
4179 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4180 array size at least. It's necessary to write '\x00'==0 to get something
4181 that's true only with -std. */
4182 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4184 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4185 inside strings and character constants. */
4187 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4189 int test (int i, double x);
4190 struct s1 {int (*f) (int a);};
4191 struct s2 {int (*f) (double a);};
4192 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4198 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4203 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4204 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4206 CC="$ac_save_CC $ac_arg"
4207 if ac_fn_c_try_compile "$LINENO"; then :
4208 ac_cv_prog_cc_c89=$ac_arg
4210 rm -f core conftest.err conftest.$ac_objext
4211 test "x$ac_cv_prog_cc_c89" != "xno" && break
4213 rm -f conftest.$ac_ext
4218 case "x$ac_cv_prog_cc_c89" in
4220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4221 $as_echo "none needed" >&6; } ;;
4223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4224 $as_echo "unsupported" >&6; } ;;
4226 CC="$CC $ac_cv_prog_cc_c89"
4227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4228 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4230 if test "x$ac_cv_prog_cc_c89" != xno; then :
4235 ac_cpp='$CPP $CPPFLAGS'
4236 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4237 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4238 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4240 if test "$GCC" = yes; then
4241 RDYNAMIC="-rdynamic"
4245 ac_cpp='$CPP $CPPFLAGS'
4246 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4247 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4248 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4250 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4251 # On Suns, sometimes $CPP names a directory.
4252 if test -n "$CPP" && test -d "$CPP"; then
4255 if test -z "$CPP"; then
4256 if ${ac_cv_prog_CPP+:} false; then :
4257 $as_echo_n "(cached) " >&6
4259 # Double quotes because CPP needs to be expanded
4260 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4263 for ac_c_preproc_warn_flag in '' yes
4265 # Use a header file that comes with gcc, so configuring glibc
4266 # with a fresh cross-compiler works.
4267 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4268 # <limits.h> exists even on freestanding compilers.
4269 # On the NeXT, cc -E runs the code through the compiler's parser,
4270 # not just through cpp. "Syntax error" is here to catch this case.
4271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4272 /* end confdefs.h. */
4274 # include <limits.h>
4276 # include <assert.h>
4280 if ac_fn_c_try_cpp "$LINENO"; then :
4283 # Broken: fails on valid input.
4286 rm -f conftest.err conftest.i conftest.$ac_ext
4288 # OK, works on sane cases. Now check whether nonexistent headers
4289 # can be detected and how.
4290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4291 /* end confdefs.h. */
4292 #include <ac_nonexistent.h>
4294 if ac_fn_c_try_cpp "$LINENO"; then :
4295 # Broken: success on invalid input.
4298 # Passes both tests.
4302 rm -f conftest.err conftest.i conftest.$ac_ext
4305 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4306 rm -f conftest.i conftest.err conftest.$ac_ext
4307 if $ac_preproc_ok; then :
4319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4320 $as_echo "$CPP" >&6; }
4322 for ac_c_preproc_warn_flag in '' yes
4324 # Use a header file that comes with gcc, so configuring glibc
4325 # with a fresh cross-compiler works.
4326 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4327 # <limits.h> exists even on freestanding compilers.
4328 # On the NeXT, cc -E runs the code through the compiler's parser,
4329 # not just through cpp. "Syntax error" is here to catch this case.
4330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4331 /* end confdefs.h. */
4333 # include <limits.h>
4335 # include <assert.h>
4339 if ac_fn_c_try_cpp "$LINENO"; then :
4342 # Broken: fails on valid input.
4345 rm -f conftest.err conftest.i conftest.$ac_ext
4347 # OK, works on sane cases. Now check whether nonexistent headers
4348 # can be detected and how.
4349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4350 /* end confdefs.h. */
4351 #include <ac_nonexistent.h>
4353 if ac_fn_c_try_cpp "$LINENO"; then :
4354 # Broken: success on invalid input.
4357 # Passes both tests.
4361 rm -f conftest.err conftest.i conftest.$ac_ext
4364 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4365 rm -f conftest.i conftest.err conftest.$ac_ext
4366 if $ac_preproc_ok; then :
4369 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4370 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4371 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4372 See \`config.log' for more details" "$LINENO" 5; }
4376 ac_cpp='$CPP $CPPFLAGS'
4377 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4378 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4379 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for additional special compiler flags" >&5
4382 $as_echo_n "checking for additional special compiler flags... " >&6; }
4383 if test "$GCC" = yes
4386 alpha) addcflags="-mieee" ;;
4389 if test "x$addcflags" != x
4391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $addcflags" >&5
4392 $as_echo "$addcflags" >&6; }
4393 CFLAGS="$addcflags $CFLAGS"
4395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (none)" >&5
4396 $as_echo "(none)" >&6; }
4402 # Check whether --with-root-prefix was given.
4403 if test "${with_root_prefix+set}" = set; then :
4404 withval=$with_root_prefix; root_prefix=$withval
4408 # Check whether --enable-maintainer-mode was given.
4409 if test "${enable_maintainer_mode+set}" = set; then :
4410 enableval=$enable_maintainer_mode; if test "$enableval" = "no"
4413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode" >&5
4414 $as_echo "Disabling maintainer mode" >&6; }
4417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling maintainer mode" >&5
4418 $as_echo "Enabling maintainer mode" >&6; }
4423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode by default" >&5
4424 $as_echo "Disabling maintainer mode by default" >&6; }
4429 # Check whether --enable-symlink-install was given.
4430 if test "${enable_symlink_install+set}" = set; then :
4431 enableval=$enable_symlink_install; if test "$enableval" = "no"
4433 LINK_INSTALL_FLAGS=-f
4434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install" >&5
4435 $as_echo "Disabling symlinks for install" >&6; }
4437 LINK_INSTALL_FLAGS=-sf
4438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for install" >&5
4439 $as_echo "Enabling symlinks for install" >&6; }
4443 LINK_INSTALL_FLAGS=-f
4444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install by default" >&5
4445 $as_echo "Disabling symlinks for install by default" >&6; }
4450 relative_symlink_defined=
4451 # Check whether --enable-relative-symlinks was given.
4452 if test "${enable_relative_symlinks+set}" = set; then :
4453 enableval=$enable_relative_symlinks; if test "$enableval" = "no"
4456 relative_symlink_defined=yes
4457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
4458 $as_echo "Disabling relative symlinks for install" >&6; }
4460 SYMLINK_RELATIVE=--relative
4461 relative_symlink_defined=yes
4462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5
4463 $as_echo "Enabling relative symlinks for install" >&6; }
4467 # Check whether --enable-symlink-relative-symlinks was given.
4468 if test "${enable_symlink_relative_symlinks+set}" = set; then :
4469 enableval=$enable_symlink_relative_symlinks; if test "$enableval" = "no"
4471 SYMLINK_RELATIVE=yes
4472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
4473 $as_echo "Disabling relative symlinks for install" >&6; }
4475 SYMLINK_RELATIVE=--relative
4476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5
4477 $as_echo "Enabling relative symlinks for install" >&6; }
4481 if test -z "$relative_symlink_defined"
4484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install by default" >&5
4485 $as_echo "Disabling relative symlinks for install by default" >&6; }
4491 # Check whether --enable-symlink-build was given.
4492 if test "${enable_symlink_build+set}" = set; then :
4493 enableval=$enable_symlink_build; if test "$enableval" = "no"
4496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build" >&5
4497 $as_echo "Disabling symlinks for build" >&6; }
4500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for build" >&5
4501 $as_echo "Enabling symlinks for build" >&6; }
4506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build by default" >&5
4507 $as_echo "Disabling symlinks for build by default" >&6; }
4512 # Check whether --enable-verbose-makecmds was given.
4513 if test "${enable_verbose_makecmds+set}" = set; then :
4514 enableval=$enable_verbose_makecmds; if test "$enableval" = "no"
4516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
4517 $as_echo "Disabling verbose make commands" >&6; }
4522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling verbose make commands" >&5
4523 $as_echo "Enabling verbose make commands" >&6; }
4530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
4531 $as_echo "Disabling verbose make commands" >&6; }
4541 # Check whether --enable-compression was given.
4542 if test "${enable_compression+set}" = set; then :
4543 enableval=$enable_compression; if test "$enableval" = "no"
4545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling compression support" >&5
4546 $as_echo "Disabling compression support" >&6; }
4549 $as_echo "#define ENABLE_COMPRESSION 1" >>confdefs.h
4551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling compression support" >&5
4552 $as_echo "Enabling compression support" >&6; }
4553 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Compression support is experimental" >&5
4554 $as_echo "$as_me: WARNING: Compression support is experimental" >&2;}
4558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling compression support by default" >&5
4559 $as_echo "Disabling compression support by default" >&6; }
4564 # Check whether --enable-htree was given.
4565 if test "${enable_htree+set}" = set; then :
4566 enableval=$enable_htree; if test "$enableval" = "no"
4569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling htree directory support" >&5
4570 $as_echo "Disabling htree directory support" >&6; }
4573 $as_echo "#define ENABLE_HTREE 1" >>confdefs.h
4575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling htree directory support" >&5
4576 $as_echo "Enabling htree directory support" >&6; }
4581 $as_echo "#define ENABLE_HTREE 1" >>confdefs.h
4583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling htree directory support by default" >&5
4584 $as_echo "Enabling htree directory support by default" >&6; }
4589 E2_PKG_CONFIG_STATIC=--static
4592 # Check whether --enable-elf-shlibs was given.
4593 if test "${enable_elf_shlibs+set}" = set; then :
4594 enableval=$enable_elf_shlibs; if test "$enableval" = "no"
4597 MAKEFILE_ELF=/dev/null
4598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries" >&5
4599 $as_echo "Disabling ELF shared libraries" >&6; }
4601 E2_PKG_CONFIG_STATIC=
4603 MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
4606 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
4612 LDFLAG_DYNAMIC='-Wl,-rpath-link,$(top_builddir)/lib'
4613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling ELF shared libraries" >&5
4614 $as_echo "Enabling ELF shared libraries" >&6; }
4618 MAKEFILE_ELF=/dev/null
4620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries by default" >&5
4621 $as_echo "Disabling ELF shared libraries by default" >&6; }
4627 # Check whether --enable-bsd-shlibs was given.
4628 if test "${enable_bsd_shlibs+set}" = set; then :
4629 enableval=$enable_bsd_shlibs; if test "$enableval" = "no"
4632 MAKEFILE_BSDLIB=/dev/null
4633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries" >&5
4634 $as_echo "Disabling BSD shared libraries" >&6; }
4636 E2_PKG_CONFIG_STATIC=
4638 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
4642 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib
4646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling BSD shared libraries" >&5
4647 $as_echo "Enabling BSD shared libraries" >&6; }
4651 MAKEFILE_BSDLIB=/dev/null
4653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries by default" >&5
4654 $as_echo "Disabling BSD shared libraries by default" >&6; }
4660 # Check whether --enable-profile was given.
4661 if test "${enable_profile+set}" = set; then :
4662 enableval=$enable_profile; if test "$enableval" = "no"
4665 MAKEFILE_PROFILE=/dev/null
4666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries" >&5
4667 $as_echo "Disabling profiling libraries" >&6; }
4670 MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
4671 PROFILED_LIB_EXT=_p.a
4672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building profiling libraries" >&5
4673 $as_echo "Building profiling libraries" >&6; }
4678 MAKEFILE_PROFILE=/dev/null
4679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries by default" >&5
4680 $as_echo "Disabling profiling libraries by default" >&6; }
4686 # Check whether --enable-checker was given.
4687 if test "${enable_checker+set}" = set; then :
4688 enableval=$enable_checker; if test "$enableval" = "no"
4691 MAKEFILE_CHECKER=/dev/null
4692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling checker libraries" >&5
4693 $as_echo "Disabling checker libraries" >&6; }
4696 MAKEFILE_CHECKER=$srcdir/lib/Makefile.checker
4697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building checker libraries" >&5
4698 $as_echo "Building checker libraries" >&6; }
4703 MAKEFILE_CHECKER=/dev/null
4704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling checker libraries by default" >&5
4705 $as_echo "Disabling checker libraries by default" >&6; }
4716 # Check whether --enable-jbd-debug was given.
4717 if test "${enable_jbd_debug+set}" = set; then :
4718 enableval=$enable_jbd_debug; if test "$enableval" = "no"
4720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging" >&5
4721 $as_echo "Disabling journal debugging" >&6; }
4724 $as_echo "#define CONFIG_JBD_DEBUG 1" >>confdefs.h
4726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling journal debugging" >&5
4727 $as_echo "Enabling journal debugging" >&6; }
4731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging by default" >&5
4732 $as_echo "Disabling journal debugging by default" >&6; }
4736 # Check whether --enable-blkid-debug was given.
4737 if test "${enable_blkid_debug+set}" = set; then :
4738 enableval=$enable_blkid_debug; if test "$enableval" = "no"
4740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging" >&5
4741 $as_echo "Disabling blkid debugging" >&6; }
4744 $as_echo "#define CONFIG_BLKID_DEBUG 1" >>confdefs.h
4746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling blkid debugging" >&5
4747 $as_echo "Enabling blkid debugging" >&6; }
4751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging by default" >&5
4752 $as_echo "Disabling blkid debugging by default" >&6; }
4756 # Check whether --enable-testio-debug was given.
4757 if test "${enable_testio_debug+set}" = set; then :
4758 enableval=$enable_testio_debug;
4759 if test "$enableval" = "no"
4761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling testio debugging" >&5
4762 $as_echo "Disabling testio debugging" >&6; }
4766 $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
4768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging" >&5
4769 $as_echo "Enabling testio debugging" >&6; }
4773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging by default" >&5
4774 $as_echo "Enabling testio debugging by default" >&6; }
4775 $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
4784 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4785 if test -n "$ac_tool_prefix"; then
4786 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4787 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4789 $as_echo_n "checking for $ac_word... " >&6; }
4790 if ${ac_cv_path_PKG_CONFIG+:} false; then :
4791 $as_echo_n "(cached) " >&6
4795 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4802 test -z "$as_dir" && as_dir=.
4803 for ac_exec_ext in '' $ac_executable_extensions; do
4804 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4805 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4806 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4816 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4817 if test -n "$PKG_CONFIG"; then
4818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4819 $as_echo "$PKG_CONFIG" >&6; }
4821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4822 $as_echo "no" >&6; }
4827 if test -z "$ac_cv_path_PKG_CONFIG"; then
4828 ac_pt_PKG_CONFIG=$PKG_CONFIG
4829 # Extract the first word of "pkg-config", so it can be a program name with args.
4830 set dummy pkg-config; ac_word=$2
4831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4832 $as_echo_n "checking for $ac_word... " >&6; }
4833 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4834 $as_echo_n "(cached) " >&6
4836 case $ac_pt_PKG_CONFIG in
4838 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4845 test -z "$as_dir" && as_dir=.
4846 for ac_exec_ext in '' $ac_executable_extensions; do
4847 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4848 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4859 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4860 if test -n "$ac_pt_PKG_CONFIG"; then
4861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4862 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4865 $as_echo "no" >&6; }
4868 if test "x$ac_pt_PKG_CONFIG" = x; then
4871 case $cross_compiling:$ac_tool_warned in
4873 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4874 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4875 ac_tool_warned=yes ;;
4877 PKG_CONFIG=$ac_pt_PKG_CONFIG
4880 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4884 if test -n "$PKG_CONFIG"; then
4885 _pkg_min_version=0.9.0
4886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4887 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4888 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4890 $as_echo "yes" >&6; }
4892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4893 $as_echo "no" >&6; }
4903 DEPPROFILED_LIBUUID=
4905 # Check whether --enable-libuuid was given.
4906 if test "${enable_libuuid+set}" = set; then :
4907 enableval=$enable_libuuid; if test "$enableval" = "no"
4909 if test -z "$PKG_CONFIG"; then
4910 as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5
4913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
4914 $as_echo_n "checking for uuid_generate in -luuid... " >&6; }
4915 if ${ac_cv_lib_uuid_uuid_generate+:} false; then :
4916 $as_echo_n "(cached) " >&6
4918 ac_check_lib_save_LIBS=$LIBS
4919 LIBS="-luuid $LIBUUID $LIBS"
4920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4921 /* end confdefs.h. */
4923 /* Override any GCC internal prototype to avoid an error.
4924 Use char because int might match the return type of a GCC
4925 builtin and then its argument prototype would still apply. */
4929 char uuid_generate ();
4933 return uuid_generate ();
4938 if ac_fn_c_try_link "$LINENO"; then :
4939 ac_cv_lib_uuid_uuid_generate=yes
4941 ac_cv_lib_uuid_uuid_generate=no
4943 rm -f core conftest.err conftest.$ac_objext \
4944 conftest$ac_exeext conftest.$ac_ext
4945 LIBS=$ac_check_lib_save_LIBS
4947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
4948 $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
4949 if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then :
4950 LIBUUID=`$PKG_CONFIG --libs uuid`;
4951 STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid`
4953 as_fn_error $? "external uuid library not found" "$LINENO" 5
4957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private uuid library" >&5
4958 $as_echo "Disabling private uuid library" >&6; }
4960 LIBUUID='$(LIB)/libuuid'$LIB_EXT
4962 STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
4963 DEPSTATIC_LIBUUID=$STATIC_LIBUUID
4964 PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
4965 DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
4966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library" >&5
4967 $as_echo "Enabling private uuid library" >&6; }
4971 LIBUUID='$(LIB)/libuuid'$LIB_EXT
4973 STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
4974 DEPSTATIC_LIBUUID=$STATIC_LIBUUID
4975 PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
4976 DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
4977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library by default" >&5
4978 $as_echo "Enabling private uuid library by default" >&6; }
4991 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4992 if test -n "$ac_tool_prefix"; then
4993 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4994 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4996 $as_echo_n "checking for $ac_word... " >&6; }
4997 if ${ac_cv_path_PKG_CONFIG+:} false; then :
4998 $as_echo_n "(cached) " >&6
5002 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5009 test -z "$as_dir" && as_dir=.
5010 for ac_exec_ext in '' $ac_executable_extensions; do
5011 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5012 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5023 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5024 if test -n "$PKG_CONFIG"; then
5025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5026 $as_echo "$PKG_CONFIG" >&6; }
5028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5029 $as_echo "no" >&6; }
5034 if test -z "$ac_cv_path_PKG_CONFIG"; then
5035 ac_pt_PKG_CONFIG=$PKG_CONFIG
5036 # Extract the first word of "pkg-config", so it can be a program name with args.
5037 set dummy pkg-config; ac_word=$2
5038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5039 $as_echo_n "checking for $ac_word... " >&6; }
5040 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
5041 $as_echo_n "(cached) " >&6
5043 case $ac_pt_PKG_CONFIG in
5045 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5052 test -z "$as_dir" && as_dir=.
5053 for ac_exec_ext in '' $ac_executable_extensions; do
5054 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5055 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5056 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5066 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5067 if test -n "$ac_pt_PKG_CONFIG"; then
5068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5069 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5072 $as_echo "no" >&6; }
5075 if test "x$ac_pt_PKG_CONFIG" = x; then
5078 case $cross_compiling:$ac_tool_warned in
5080 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5081 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5082 ac_tool_warned=yes ;;
5084 PKG_CONFIG=$ac_pt_PKG_CONFIG
5087 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5091 if test -n "$PKG_CONFIG"; then
5092 _pkg_min_version=0.9.0
5093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5094 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5095 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5097 $as_echo "yes" >&6; }
5099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5100 $as_echo "no" >&6; }
5110 DEPPROFILED_LIBBLKID=
5113 # Check whether --enable-libblkid was given.
5114 if test "${enable_libblkid+set}" = set; then :
5115 enableval=$enable_libblkid; if test "$enableval" = "no"
5117 if test -z "$PKG_CONFIG"; then
5118 as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5
5121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
5122 $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
5123 if ${ac_cv_lib_blkid_blkid_get_cache+:} false; then :
5124 $as_echo_n "(cached) " >&6
5126 ac_check_lib_save_LIBS=$LIBS
5127 LIBS="-lblkid $LIBBLKID $LIBS"
5128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5129 /* end confdefs.h. */
5131 /* Override any GCC internal prototype to avoid an error.
5132 Use char because int might match the return type of a GCC
5133 builtin and then its argument prototype would still apply. */
5137 char blkid_get_cache ();
5141 return blkid_get_cache ();
5146 if ac_fn_c_try_link "$LINENO"; then :
5147 ac_cv_lib_blkid_blkid_get_cache=yes
5149 ac_cv_lib_blkid_blkid_get_cache=no
5151 rm -f core conftest.err conftest.$ac_objext \
5152 conftest$ac_exeext conftest.$ac_ext
5153 LIBS=$ac_check_lib_save_LIBS
5155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
5156 $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
5157 if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes; then :
5158 LIBBLKID=`$PKG_CONFIG --libs blkid`;
5159 STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid`
5161 as_fn_error $? "external blkid library not found" "$LINENO" 5
5165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private blkid library" >&5
5166 $as_echo "Disabling private blkid library" >&6; }
5168 LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5169 DEPLIBBLKID=$LIBBLKID
5170 STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5171 DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5172 PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5173 DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
5174 $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
5176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library" >&5
5177 $as_echo "Enabling private blkid library" >&6; }
5181 LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5182 DEPLIBBLKID=$LIBBLKID
5183 STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5184 DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5185 PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5186 DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
5187 $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
5189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library by default" >&5
5190 $as_echo "Enabling private blkid library by default" >&6; }
5201 QUOTA_MAN_COMMENT='.\"'
5206 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5207 if test -n "$ac_tool_prefix"; then
5208 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5209 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5211 $as_echo_n "checking for $ac_word... " >&6; }
5212 if ${ac_cv_path_PKG_CONFIG+:} false; then :
5213 $as_echo_n "(cached) " >&6
5217 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5224 test -z "$as_dir" && as_dir=.
5225 for ac_exec_ext in '' $ac_executable_extensions; do
5226 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5227 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5238 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5239 if test -n "$PKG_CONFIG"; then
5240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5241 $as_echo "$PKG_CONFIG" >&6; }
5243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5244 $as_echo "no" >&6; }
5249 if test -z "$ac_cv_path_PKG_CONFIG"; then
5250 ac_pt_PKG_CONFIG=$PKG_CONFIG
5251 # Extract the first word of "pkg-config", so it can be a program name with args.
5252 set dummy pkg-config; ac_word=$2
5253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5254 $as_echo_n "checking for $ac_word... " >&6; }
5255 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
5256 $as_echo_n "(cached) " >&6
5258 case $ac_pt_PKG_CONFIG in
5260 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5267 test -z "$as_dir" && as_dir=.
5268 for ac_exec_ext in '' $ac_executable_extensions; do
5269 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5270 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5271 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5281 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5282 if test -n "$ac_pt_PKG_CONFIG"; then
5283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5284 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5287 $as_echo "no" >&6; }
5290 if test "x$ac_pt_PKG_CONFIG" = x; then
5293 case $cross_compiling:$ac_tool_warned in
5295 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5296 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5297 ac_tool_warned=yes ;;
5299 PKG_CONFIG=$ac_pt_PKG_CONFIG
5302 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5306 if test -n "$PKG_CONFIG"; then
5307 _pkg_min_version=0.9.0
5308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5309 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5310 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5312 $as_echo "yes" >&6; }
5314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5315 $as_echo "no" >&6; }
5321 # Check whether --enable-quota was given.
5322 if test "${enable_quota+set}" = set; then :
5323 enableval=$enable_quota; if test "$enableval" = "no"
5326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling quota support" >&5
5327 $as_echo "Disabling quota support" >&6; }
5330 $as_echo "#define CONFIG_QUOTA 1" >>confdefs.h
5332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling quota support" >&5
5333 $as_echo "Enabling quota support" >&6; }
5334 QUOTA_MAN_COMMENT=""
5340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling quota support by default" >&5
5341 $as_echo "Disabling quota support by default" >&6; }
5345 LIBQUOTA='$(LIB)/libquota'$LIB_EXT
5346 DEPLIBQUOTA=$LIBQUOTA
5347 STATIC_LIBQUOTA='$(LIB)/libquota'$STATIC_LIB_EXT
5348 DEPSTATIC_LIBQUOTA=$STATIC_LIBQUOTA
5349 PROFILED_LIBQUOTA='$(LIB)/libquota'$PROFILED_LIB_EXT
5350 DEPPROFILED_LIBQUOTA=$PROFILED_LIBQUOTA
5359 # Check whether --enable-backtrace was given.
5360 if test "${enable_backtrace+set}" = set; then :
5361 enableval=$enable_backtrace; if test "$enableval" = "no"
5363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling use of backtrace" >&5
5364 $as_echo "Disabling use of backtrace" >&6; }
5365 $as_echo "#define DISABLE_BACKTRACE 1" >>confdefs.h
5368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace" >&5
5369 $as_echo "Enabling use of backtrace" >&6; }
5373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace by default" >&5
5374 $as_echo "Enabling use of backtrace by default" >&6; }
5378 # Check whether --enable-debugfs was given.
5379 if test "${enable_debugfs+set}" = set; then :
5380 enableval=$enable_debugfs; if test "$enableval" = "no"
5382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling debugfs support" >&5
5383 $as_echo "Disabling debugfs support" >&6; }
5387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support" >&5
5388 $as_echo "Enabling debugfs support" >&6; }
5392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support by default" >&5
5393 $as_echo "Enabling debugfs support by default" >&6; }
5399 # Check whether --enable-imager was given.
5400 if test "${enable_imager+set}" = set; then :
5401 enableval=$enable_imager; if test "$enableval" = "no"
5403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2image support" >&5
5404 $as_echo "Disabling e2image support" >&6; }
5408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support" >&5
5409 $as_echo "Enabling e2image support" >&6; }
5413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support by default" >&5
5414 $as_echo "Enabling e2image support by default" >&6; }
5420 # Check whether --enable-resizer was given.
5421 if test "${enable_resizer+set}" = set; then :
5422 enableval=$enable_resizer; if test "$enableval" = "no"
5424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2resize support" >&5
5425 $as_echo "Disabling e2resize support" >&6; }
5429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support" >&5
5430 $as_echo "Enabling e2resize support" >&6; }
5434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support by default" >&5
5435 $as_echo "Enabling e2resize support by default" >&6; }
5441 # Check whether --enable-defrag was given.
5442 if test "${enable_defrag+set}" = set; then :
5443 enableval=$enable_defrag; if test "$enableval" = "no"
5445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support" >&5
5446 $as_echo "Disabling e4defrag support" >&6; }
5450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support" >&5
5451 $as_echo "Enabling e4defrag support" >&6; }
5455 if test -z "$WITH_DIET_LIBC"
5457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support by default" >&5
5458 $as_echo "Enabling e4defrag support by default" >&6; }
5461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support by default" >&5
5462 $as_echo "Disabling e4defrag support by default" >&6; }
5469 # Check whether --enable-fsck was given.
5470 if test "${enable_fsck+set}" = set; then :
5471 enableval=$enable_fsck; if test "$enableval" = "no"
5473 FSCK_PROG='' FSCK_MAN=''
5474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper" >&5
5475 $as_echo "Not building fsck wrapper" >&6; }
5477 FSCK_PROG=fsck FSCK_MAN=fsck.8
5478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper" >&5
5479 $as_echo "Building fsck wrapper" >&6; }
5485 FSCK_PROG='' FSCK_MAN=''
5486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper by default" >&5
5487 $as_echo "Not building fsck wrapper by default" >&6; }
5490 FSCK_PROG=fsck FSCK_MAN=fsck.8
5491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper by default" >&5
5492 $as_echo "Building fsck wrapper by default" >&6; }
5499 # Check whether --enable-e2initrd-helper was given.
5500 if test "${enable_e2initrd_helper+set}" = set; then :
5501 enableval=$enable_e2initrd_helper; if test "$enableval" = "no"
5503 E2INITRD_PROG='' E2INITRD_MAN=''
5504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building e2initrd helper" >&5
5505 $as_echo "Not building e2initrd helper" >&6; }
5507 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
5508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper" >&5
5509 $as_echo "Building e2initrd helper" >&6; }
5513 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
5514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper by default" >&5
5515 $as_echo "Building e2initrd helper by default" >&6; }
5521 # Check whether --enable-tls was given.
5522 if test "${enable_tls+set}" = set; then :
5523 enableval=$enable_tls; if test "$enableval" = "no"
5526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling thread local support" >&5
5527 $as_echo "Disabling thread local support" >&6; }
5530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling thread local support" >&5
5531 $as_echo "Enabling thread local support" >&6; }
5535 if test -n "$WITH_DIET_LIBC"
5538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Diet libc does not support thread local support" >&5
5539 $as_echo "Diet libc does not support thread local support" >&6; }
5542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Try using thread local support by default" >&5
5543 $as_echo "Try using thread local support by default" >&6; }
5548 if test "$try_tls" = "yes"
5551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread local storage (TLS) class" >&5
5552 $as_echo_n "checking for thread local storage (TLS) class... " >&6; }
5553 if ${ac_cv_tls+:} false; then :
5554 $as_echo_n "(cached) " >&6
5557 ax_tls_keywords="__thread __declspec(thread) none"
5558 for ax_tls_keyword in $ax_tls_keywords; do
5559 case $ax_tls_keyword in
5560 none) ac_cv_tls=none ; break ;;
5562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5563 /* end confdefs.h. */
5567 static $ax_tls_keyword int bar;
5578 if ac_fn_c_try_compile "$LINENO"; then :
5579 ac_cv_tls=$ax_tls_keyword ; break
5584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5591 if test "$ac_cv_tls" != "none"; then
5593 cat >>confdefs.h <<_ACEOF
5594 #define TLS $ac_cv_tls
5598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tls" >&5
5599 $as_echo "$ac_cv_tls" >&6; }
5603 # Check whether --enable-uuidd was given.
5604 if test "${enable_uuidd+set}" = set; then :
5605 enableval=$enable_uuidd; if test "$enableval" = "no"
5607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building uuidd" >&5
5608 $as_echo "Not building uuidd" >&6; }
5611 $as_echo "#define USE_UUIDD 1" >>confdefs.h
5614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd" >&5
5615 $as_echo "Building uuidd" >&6; }
5619 $as_echo "#define USE_UUIDD 1" >>confdefs.h
5622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd by default" >&5
5623 $as_echo "Building uuidd by default" >&6; }
5629 # Check whether --enable-mmp was given.
5630 if test "${enable_mmp+set}" = set; then :
5631 enableval=$enable_mmp; if test "$enableval" = "no"
5633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling mmp support" >&5
5634 $as_echo "Disabling mmp support" >&6; }
5636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support" >&5
5637 $as_echo "Enabling mmp support" >&6; }
5638 $as_echo "#define CONFIG_MMP 1" >>confdefs.h
5643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support by default" >&5
5644 $as_echo "Enabling mmp support by default" >&6; }
5645 $as_echo "#define CONFIG_MMP 1" >>confdefs.h
5651 # Check whether --enable-bmap-stats was given.
5652 if test "${enable_bmap_stats+set}" = set; then :
5653 enableval=$enable_bmap_stats; if test "$enableval" = "no"
5655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling bitmap statistics support" >&5
5656 $as_echo "Disabling bitmap statistics support" >&6; }
5658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling bitmap statistics support" >&5
5659 $as_echo "Enabling bitmap statistics support" >&6; }
5660 $as_echo "#define ENABLE_BMAP_STATS 1" >>confdefs.h
5665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling bitmap statistics support by default" >&5
5666 $as_echo "Enabling bitmap statistics support by default" >&6; }
5667 $as_echo "#define ENABLE_BMAP_STATS 1" >>confdefs.h
5673 # Check whether --enable-bmap-stats-ops was given.
5674 if test "${enable_bmap_stats_ops+set}" = set; then :
5675 enableval=$enable_bmap_stats_ops; if test "$enableval" = "no"
5677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling additional bitmap statistics" >&5
5678 $as_echo "Disabling additional bitmap statistics" >&6; }
5680 if test "x${enable_bmap_stats}" = "xno"; then :
5681 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5682 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5683 as_fn_error $? "Error --enable-bmap-stats-ops requires bmap-stats
5684 See \`config.log' for more details" "$LINENO" 5; }
5687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling additional bitmap statistics" >&5
5688 $as_echo "Enabling additional bitmap statistics" >&6; }
5689 $as_echo "#define ENABLE_BMAP_STATS_OPS 1" >>confdefs.h
5694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling additional bitmap statistics by default" >&5
5695 $as_echo "Disabling additional bitmap statistics by default" >&6; }
5699 MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
5701 GETTEXT_PACKAGE=e2fsprogs
5703 VERSION="$E2FSPROGS_VERSION"
5706 cat >>confdefs.h <<_ACEOF
5707 #define PACKAGE "$PACKAGE"
5711 cat >>confdefs.h <<_ACEOF
5712 #define VERSION "$VERSION"
5719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5720 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5722 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5723 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
5724 $as_echo_n "(cached) " >&6
5726 cat >conftest.make <<\_ACEOF
5729 @echo '@@@%%%=$(MAKE)=@@@%%%'
5731 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5732 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5734 eval ac_cv_prog_make_${ac_make}_set=yes;;
5736 eval ac_cv_prog_make_${ac_make}_set=no;;
5740 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5742 $as_echo "yes" >&6; }
5745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5746 $as_echo "no" >&6; }
5747 SET_MAKE="MAKE=${MAKE-make}"
5750 # Find a good install program. We prefer a C program (faster),
5751 # so one script is as good as another. But avoid the broken or
5752 # incompatible versions:
5753 # SysV /etc/install, /usr/sbin/install
5754 # SunOS /usr/etc/install
5755 # IRIX /sbin/install
5757 # AmigaOS /C/install, which installs bootblocks on floppy discs
5758 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5759 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5760 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5761 # OS/2's system install, which has a completely different semantic
5762 # ./install, which can be erroneously created by make from ./install.sh.
5763 # Reject install programs that cannot install multiple files.
5764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
5765 $as_echo_n "checking for a BSD-compatible install... " >&6; }
5766 if test -z "$INSTALL"; then
5767 if ${ac_cv_path_install+:} false; then :
5768 $as_echo_n "(cached) " >&6
5770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5774 test -z "$as_dir" && as_dir=.
5775 # Account for people who put trailing slashes in PATH elements.
5776 case $as_dir/ in #((
5777 ./ | .// | /[cC]/* | \
5778 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5779 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
5782 # OSF1 and SCO ODT 3.0 have their own names for install.
5783 # Don't use installbsd from OSF since it installs stuff as root
5785 for ac_prog in ginstall scoinst install; do
5786 for ac_exec_ext in '' $ac_executable_extensions; do
5787 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5788 if test $ac_prog = install &&
5789 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5790 # AIX install. It has an incompatible calling convention.
5792 elif test $ac_prog = install &&
5793 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5794 # program-specific install script used by HP pwplus--don't use.
5797 rm -rf conftest.one conftest.two conftest.dir
5798 echo one > conftest.one
5799 echo two > conftest.two
5801 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5802 test -s conftest.one && test -s conftest.two &&
5803 test -s conftest.dir/conftest.one &&
5804 test -s conftest.dir/conftest.two
5806 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5819 rm -rf conftest.one conftest.two conftest.dir
5822 if test "${ac_cv_path_install+set}" = set; then
5823 INSTALL=$ac_cv_path_install
5825 # As a last resort, use the slow shell script. Don't cache a
5826 # value for INSTALL within a source directory, because that will
5827 # break other packages using the cache if that directory is
5828 # removed, or if the value is a relative name.
5829 INSTALL=$ac_install_sh
5832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
5833 $as_echo "$INSTALL" >&6; }
5835 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5836 # It thinks the first close brace ends the variable substitution.
5837 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5839 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5841 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5845 if test -n "$ac_aux_dir"; then
5846 case "$ac_aux_dir" in
5847 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
5848 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
5851 if test -z "$MKINSTALLDIRS"; then
5852 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
5857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
5858 $as_echo_n "checking whether NLS is requested... " >&6; }
5859 # Check whether --enable-nls was given.
5860 if test "${enable_nls+set}" = set; then :
5861 enableval=$enable_nls; USE_NLS=$enableval
5866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
5867 $as_echo "$USE_NLS" >&6; }
5874 # Prepare PATH_SEPARATOR.
5875 # The user is always right.
5876 if test "${PATH_SEPARATOR+set}" != set; then
5877 echo "#! /bin/sh" >conf$$.sh
5878 echo "exit 0" >>conf$$.sh
5880 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5888 # Find out how to test for executable files. Don't use a zero-byte file,
5889 # as systems may use methods other than mode bits to determine executability.
5890 cat >conf$$.file <<_ASEOF
5894 chmod +x conf$$.file
5895 if test -x conf$$.file >/dev/null 2>&1; then
5896 ac_executable_p="test -x"
5898 ac_executable_p="test -f"
5902 # Extract the first word of "msgfmt", so it can be a program name with args.
5903 set dummy msgfmt; ac_word=$2
5904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5905 $as_echo_n "checking for $ac_word... " >&6; }
5906 if ${ac_cv_path_MSGFMT+:} false; then :
5907 $as_echo_n "(cached) " >&6
5911 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5914 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5915 for ac_dir in $PATH; do
5917 test -z "$ac_dir" && ac_dir=.
5918 for ac_exec_ext in '' $ac_executable_extensions; do
5919 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5920 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
5921 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5922 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
5929 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
5933 MSGFMT="$ac_cv_path_MSGFMT"
5934 if test "$MSGFMT" != ":"; then
5935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
5936 $as_echo "$MSGFMT" >&6; }
5938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5939 $as_echo "no" >&6; }
5942 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5943 set dummy gmsgfmt; ac_word=$2
5944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5945 $as_echo_n "checking for $ac_word... " >&6; }
5946 if ${ac_cv_path_GMSGFMT+:} false; then :
5947 $as_echo_n "(cached) " >&6
5951 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5958 test -z "$as_dir" && as_dir=.
5959 for ac_exec_ext in '' $ac_executable_extensions; do
5960 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5961 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5962 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5969 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5973 GMSGFMT=$ac_cv_path_GMSGFMT
5974 if test -n "$GMSGFMT"; then
5975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
5976 $as_echo "$GMSGFMT" >&6; }
5978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5979 $as_echo "no" >&6; }
5985 # Prepare PATH_SEPARATOR.
5986 # The user is always right.
5987 if test "${PATH_SEPARATOR+set}" != set; then
5988 echo "#! /bin/sh" >conf$$.sh
5989 echo "exit 0" >>conf$$.sh
5991 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5999 # Find out how to test for executable files. Don't use a zero-byte file,
6000 # as systems may use methods other than mode bits to determine executability.
6001 cat >conf$$.file <<_ASEOF
6005 chmod +x conf$$.file
6006 if test -x conf$$.file >/dev/null 2>&1; then
6007 ac_executable_p="test -x"
6009 ac_executable_p="test -f"
6013 # Extract the first word of "xgettext", so it can be a program name with args.
6014 set dummy xgettext; ac_word=$2
6015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6016 $as_echo_n "checking for $ac_word... " >&6; }
6017 if ${ac_cv_path_XGETTEXT+:} false; then :
6018 $as_echo_n "(cached) " >&6
6022 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
6025 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6026 for ac_dir in $PATH; do
6028 test -z "$ac_dir" && ac_dir=.
6029 for ac_exec_ext in '' $ac_executable_extensions; do
6030 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6031 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
6032 (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
6033 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
6040 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
6044 XGETTEXT="$ac_cv_path_XGETTEXT"
6045 if test "$XGETTEXT" != ":"; then
6046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
6047 $as_echo "$XGETTEXT" >&6; }
6049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6050 $as_echo "no" >&6; }
6056 # Prepare PATH_SEPARATOR.
6057 # The user is always right.
6058 if test "${PATH_SEPARATOR+set}" != set; then
6059 echo "#! /bin/sh" >conf$$.sh
6060 echo "exit 0" >>conf$$.sh
6062 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6070 # Find out how to test for executable files. Don't use a zero-byte file,
6071 # as systems may use methods other than mode bits to determine executability.
6072 cat >conf$$.file <<_ASEOF
6076 chmod +x conf$$.file
6077 if test -x conf$$.file >/dev/null 2>&1; then
6078 ac_executable_p="test -x"
6080 ac_executable_p="test -f"
6084 # Extract the first word of "msgmerge", so it can be a program name with args.
6085 set dummy msgmerge; ac_word=$2
6086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6087 $as_echo_n "checking for $ac_word... " >&6; }
6088 if ${ac_cv_path_MSGMERGE+:} false; then :
6089 $as_echo_n "(cached) " >&6
6093 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
6096 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6097 for ac_dir in $PATH; do
6099 test -z "$ac_dir" && ac_dir=.
6100 for ac_exec_ext in '' $ac_executable_extensions; do
6101 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6102 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
6103 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
6110 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
6114 MSGMERGE="$ac_cv_path_MSGMERGE"
6115 if test "$MSGMERGE" != ":"; then
6116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
6117 $as_echo "$MSGMERGE" >&6; }
6119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6120 $as_echo "no" >&6; }
6124 if test "$GMSGFMT" != ":"; then
6125 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
6126 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6129 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
6130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
6131 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
6136 if test "$XGETTEXT" != ":"; then
6137 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
6138 (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
6141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
6142 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
6148 ac_config_commands="$ac_config_commands default-1"
6151 if test -n "$ac_tool_prefix"; then
6152 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6153 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6155 $as_echo_n "checking for $ac_word... " >&6; }
6156 if ${ac_cv_prog_RANLIB+:} false; then :
6157 $as_echo_n "(cached) " >&6
6159 if test -n "$RANLIB"; then
6160 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6166 test -z "$as_dir" && as_dir=.
6167 for ac_exec_ext in '' $ac_executable_extensions; do
6168 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6169 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6170 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6179 RANLIB=$ac_cv_prog_RANLIB
6180 if test -n "$RANLIB"; then
6181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6182 $as_echo "$RANLIB" >&6; }
6184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6185 $as_echo "no" >&6; }
6190 if test -z "$ac_cv_prog_RANLIB"; then
6191 ac_ct_RANLIB=$RANLIB
6192 # Extract the first word of "ranlib", so it can be a program name with args.
6193 set dummy ranlib; ac_word=$2
6194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6195 $as_echo_n "checking for $ac_word... " >&6; }
6196 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6197 $as_echo_n "(cached) " >&6
6199 if test -n "$ac_ct_RANLIB"; then
6200 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6206 test -z "$as_dir" && as_dir=.
6207 for ac_exec_ext in '' $ac_executable_extensions; do
6208 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6209 ac_cv_prog_ac_ct_RANLIB="ranlib"
6210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6219 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6220 if test -n "$ac_ct_RANLIB"; then
6221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6222 $as_echo "$ac_ct_RANLIB" >&6; }
6224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6225 $as_echo "no" >&6; }
6228 if test "x$ac_ct_RANLIB" = x; then
6231 case $cross_compiling:$ac_tool_warned in
6233 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6234 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6235 ac_tool_warned=yes ;;
6237 RANLIB=$ac_ct_RANLIB
6240 RANLIB="$ac_cv_prog_RANLIB"
6244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror in -lcposix" >&5
6245 $as_echo_n "checking for strerror in -lcposix... " >&6; }
6246 if ${ac_cv_lib_cposix_strerror+:} false; then :
6247 $as_echo_n "(cached) " >&6
6249 ac_check_lib_save_LIBS=$LIBS
6250 LIBS="-lcposix $LIBS"
6251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6252 /* end confdefs.h. */
6254 /* Override any GCC internal prototype to avoid an error.
6255 Use char because int might match the return type of a GCC
6256 builtin and then its argument prototype would still apply. */
6269 if ac_fn_c_try_link "$LINENO"; then :
6270 ac_cv_lib_cposix_strerror=yes
6272 ac_cv_lib_cposix_strerror=no
6274 rm -f core conftest.err conftest.$ac_objext \
6275 conftest$ac_exeext conftest.$ac_ext
6276 LIBS=$ac_check_lib_save_LIBS
6278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cposix_strerror" >&5
6279 $as_echo "$ac_cv_lib_cposix_strerror" >&6; }
6280 if test "x$ac_cv_lib_cposix_strerror" = xyes; then :
6281 LIBS="$LIBS -lcposix"
6287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6288 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6289 if ${ac_cv_path_GREP+:} false; then :
6290 $as_echo_n "(cached) " >&6
6292 if test -z "$GREP"; then
6293 ac_path_GREP_found=false
6294 # Loop through the user's path and test for each of PROGNAME-LIST
6295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6296 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6299 test -z "$as_dir" && as_dir=.
6300 for ac_prog in grep ggrep; do
6301 for ac_exec_ext in '' $ac_executable_extensions; do
6302 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6303 as_fn_executable_p "$ac_path_GREP" || continue
6304 # Check for GNU ac_path_GREP and select it if it is found.
6305 # Check for GNU $ac_path_GREP
6306 case `"$ac_path_GREP" --version 2>&1` in
6308 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6311 $as_echo_n 0123456789 >"conftest.in"
6314 cat "conftest.in" "conftest.in" >"conftest.tmp"
6315 mv "conftest.tmp" "conftest.in"
6316 cp "conftest.in" "conftest.nl"
6317 $as_echo 'GREP' >> "conftest.nl"
6318 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6319 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6320 as_fn_arith $ac_count + 1 && ac_count=$as_val
6321 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6322 # Best one so far, save it but keep looking for a better one
6323 ac_cv_path_GREP="$ac_path_GREP"
6324 ac_path_GREP_max=$ac_count
6326 # 10*(2^10) chars as input seems more than enough
6327 test $ac_count -gt 10 && break
6329 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6332 $ac_path_GREP_found && break 3
6337 if test -z "$ac_cv_path_GREP"; then
6338 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6341 ac_cv_path_GREP=$GREP
6345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6346 $as_echo "$ac_cv_path_GREP" >&6; }
6347 GREP="$ac_cv_path_GREP"
6350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6351 $as_echo_n "checking for egrep... " >&6; }
6352 if ${ac_cv_path_EGREP+:} false; then :
6353 $as_echo_n "(cached) " >&6
6355 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6356 then ac_cv_path_EGREP="$GREP -E"
6358 if test -z "$EGREP"; then
6359 ac_path_EGREP_found=false
6360 # Loop through the user's path and test for each of PROGNAME-LIST
6361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6362 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6365 test -z "$as_dir" && as_dir=.
6366 for ac_prog in egrep; do
6367 for ac_exec_ext in '' $ac_executable_extensions; do
6368 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6369 as_fn_executable_p "$ac_path_EGREP" || continue
6370 # Check for GNU ac_path_EGREP and select it if it is found.
6371 # Check for GNU $ac_path_EGREP
6372 case `"$ac_path_EGREP" --version 2>&1` in
6374 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6377 $as_echo_n 0123456789 >"conftest.in"
6380 cat "conftest.in" "conftest.in" >"conftest.tmp"
6381 mv "conftest.tmp" "conftest.in"
6382 cp "conftest.in" "conftest.nl"
6383 $as_echo 'EGREP' >> "conftest.nl"
6384 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6385 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6386 as_fn_arith $ac_count + 1 && ac_count=$as_val
6387 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6388 # Best one so far, save it but keep looking for a better one
6389 ac_cv_path_EGREP="$ac_path_EGREP"
6390 ac_path_EGREP_max=$ac_count
6392 # 10*(2^10) chars as input seems more than enough
6393 test $ac_count -gt 10 && break
6395 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6398 $ac_path_EGREP_found && break 3
6403 if test -z "$ac_cv_path_EGREP"; then
6404 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6407 ac_cv_path_EGREP=$EGREP
6412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6413 $as_echo "$ac_cv_path_EGREP" >&6; }
6414 EGREP="$ac_cv_path_EGREP"
6417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6418 $as_echo_n "checking for ANSI C header files... " >&6; }
6419 if ${ac_cv_header_stdc+:} false; then :
6420 $as_echo_n "(cached) " >&6
6422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6423 /* end confdefs.h. */
6437 if ac_fn_c_try_compile "$LINENO"; then :
6438 ac_cv_header_stdc=yes
6440 ac_cv_header_stdc=no
6442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6444 if test $ac_cv_header_stdc = yes; then
6445 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6447 /* end confdefs.h. */
6451 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6452 $EGREP "memchr" >/dev/null 2>&1; then :
6455 ac_cv_header_stdc=no
6461 if test $ac_cv_header_stdc = yes; then
6462 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6464 /* end confdefs.h. */
6468 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6469 $EGREP "free" >/dev/null 2>&1; then :
6472 ac_cv_header_stdc=no
6478 if test $ac_cv_header_stdc = yes; then
6479 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6480 if test "$cross_compiling" = yes; then :
6483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6484 /* end confdefs.h. */
6487 #if ((' ' & 0x0FF) == 0x020)
6488 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6489 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6491 # define ISLOWER(c) \
6492 (('a' <= (c) && (c) <= 'i') \
6493 || ('j' <= (c) && (c) <= 'r') \
6494 || ('s' <= (c) && (c) <= 'z'))
6495 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6498 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6503 for (i = 0; i < 256; i++)
6504 if (XOR (islower (i), ISLOWER (i))
6505 || toupper (i) != TOUPPER (i))
6510 if ac_fn_c_try_run "$LINENO"; then :
6513 ac_cv_header_stdc=no
6515 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6516 conftest.$ac_objext conftest.beam conftest.$ac_ext
6521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6522 $as_echo "$ac_cv_header_stdc" >&6; }
6523 if test $ac_cv_header_stdc = yes; then
6525 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
6530 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
6531 if ${ac_cv_c_const+:} false; then :
6532 $as_echo_n "(cached) " >&6
6534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6535 /* end confdefs.h. */
6542 /* Ultrix mips cc rejects this sort of thing. */
6543 typedef int charset[2];
6544 const charset cs = { 0, 0 };
6545 /* SunOS 4.1.1 cc rejects this. */
6546 char const *const *pcpcc;
6548 /* NEC SVR4.0.2 mips cc rejects this. */
6549 struct point {int x, y;};
6550 static struct point const zero = {0,0};
6551 /* AIX XL C 1.02.0.0 rejects this.
6552 It does not let you subtract one const X* pointer from another in
6553 an arm of an if-expression whose if-part is not a constant
6555 const char *g = "string";
6556 pcpcc = &g + (g ? g-g : 0);
6557 /* HPUX 7.0 cc rejects these. */
6559 ppc = (char**) pcpcc;
6560 pcpcc = (char const *const *) ppc;
6561 { /* SCO 3.2v4 cc rejects this sort of thing. */
6564 char const *s = 0 ? (char *) 0 : (char const *) 0;
6569 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6571 const int *foo = &x[0];
6574 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6575 typedef const int *iptr;
6579 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
6580 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6581 struct s { int j; const int *ap[3]; } bx;
6582 struct s *b = &bx; b->j = 5;
6584 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6588 return !cs[0] && !zero.x;
6595 if ac_fn_c_try_compile "$LINENO"; then :
6600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
6603 $as_echo "$ac_cv_c_const" >&6; }
6604 if test $ac_cv_c_const = no; then
6606 $as_echo "#define const /**/" >>confdefs.h
6611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed" >&5
6612 $as_echo_n "checking for signed... " >&6; }
6613 if ${bh_cv_c_signed+:} false; then :
6614 $as_echo_n "(cached) " >&6
6616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6617 /* end confdefs.h. */
6627 if ac_fn_c_try_compile "$LINENO"; then :
6632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bh_cv_c_signed" >&5
6635 $as_echo "$bh_cv_c_signed" >&6; }
6636 if test $bh_cv_c_signed = no; then
6638 $as_echo "#define signed /**/" >>confdefs.h
6642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
6643 $as_echo_n "checking for inline... " >&6; }
6644 if ${ac_cv_c_inline+:} false; then :
6645 $as_echo_n "(cached) " >&6
6648 for ac_kw in inline __inline__ __inline; do
6649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6650 /* end confdefs.h. */
6653 static $ac_kw foo_t static_foo () {return 0; }
6654 $ac_kw foo_t foo () {return 0; }
6658 if ac_fn_c_try_compile "$LINENO"; then :
6659 ac_cv_c_inline=$ac_kw
6661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6662 test "$ac_cv_c_inline" != no && break
6666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
6667 $as_echo "$ac_cv_c_inline" >&6; }
6669 case $ac_cv_c_inline in
6672 case $ac_cv_c_inline in
6674 *) ac_val=$ac_cv_c_inline;;
6676 cat >>confdefs.h <<_ACEOF
6678 #define inline $ac_val
6684 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6685 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6686 inttypes.h stdint.h unistd.h
6688 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6689 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6691 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6692 cat >>confdefs.h <<_ACEOF
6693 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6701 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
6702 if test "x$ac_cv_type_off_t" = xyes; then :
6706 cat >>confdefs.h <<_ACEOF
6707 #define off_t long int
6712 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6713 if test "x$ac_cv_type_size_t" = xyes; then :
6717 cat >>confdefs.h <<_ACEOF
6718 #define size_t unsigned int
6724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long" >&5
6725 $as_echo_n "checking for long long... " >&6; }
6726 if ${ac_cv_type_long_long+:} false; then :
6727 $as_echo_n "(cached) " >&6
6729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6730 /* end confdefs.h. */
6731 long long ll = 1LL; int i = 63;
6735 long long llmax = (long long) -1;
6736 return ll << i | ll >> i | llmax / ll | llmax % ll;
6741 if ac_fn_c_try_link "$LINENO"; then :
6742 ac_cv_type_long_long=yes
6744 ac_cv_type_long_long=no
6746 rm -f core conftest.err conftest.$ac_objext \
6747 conftest$ac_exeext conftest.$ac_ext
6749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long" >&5
6750 $as_echo "$ac_cv_type_long_long" >&6; }
6751 if test $ac_cv_type_long_long = yes; then
6753 $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
6758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
6759 $as_echo_n "checking for long double... " >&6; }
6760 if ${gt_cv_c_long_double+:} false; then :
6761 $as_echo_n "(cached) " >&6
6763 if test "$GCC" = yes; then
6764 gt_cv_c_long_double=yes
6766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6767 /* end confdefs.h. */
6769 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
6770 long double foo = 0.0;
6771 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
6772 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
6782 if ac_fn_c_try_compile "$LINENO"; then :
6783 gt_cv_c_long_double=yes
6785 gt_cv_c_long_double=no
6787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_long_double" >&5
6791 $as_echo "$gt_cv_c_long_double" >&6; }
6792 if test $gt_cv_c_long_double = yes; then
6794 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
6799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
6800 $as_echo_n "checking for wchar_t... " >&6; }
6801 if ${gt_cv_c_wchar_t+:} false; then :
6802 $as_echo_n "(cached) " >&6
6804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6805 /* end confdefs.h. */
6807 wchar_t foo = (wchar_t)'\0';
6816 if ac_fn_c_try_compile "$LINENO"; then :
6821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
6824 $as_echo "$gt_cv_c_wchar_t" >&6; }
6825 if test $gt_cv_c_wchar_t = yes; then
6827 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
6832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
6833 $as_echo_n "checking for wint_t... " >&6; }
6834 if ${gt_cv_c_wint_t+:} false; then :
6835 $as_echo_n "(cached) " >&6
6837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6838 /* end confdefs.h. */
6840 wint_t foo = (wchar_t)'\0';
6849 if ac_fn_c_try_compile "$LINENO"; then :
6854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
6857 $as_echo "$gt_cv_c_wint_t" >&6; }
6858 if test $gt_cv_c_wint_t = yes; then
6860 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
6865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
6866 $as_echo_n "checking for inttypes.h... " >&6; }
6867 if ${jm_ac_cv_header_inttypes_h+:} false; then :
6868 $as_echo_n "(cached) " >&6
6870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6871 /* end confdefs.h. */
6872 #include <sys/types.h>
6873 #include <inttypes.h>
6877 uintmax_t i = (uintmax_t) -1;
6882 if ac_fn_c_try_compile "$LINENO"; then :
6883 jm_ac_cv_header_inttypes_h=yes
6885 jm_ac_cv_header_inttypes_h=no
6887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_inttypes_h" >&5
6890 $as_echo "$jm_ac_cv_header_inttypes_h" >&6; }
6891 if test $jm_ac_cv_header_inttypes_h = yes; then
6893 cat >>confdefs.h <<_ACEOF
6894 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
6900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
6901 $as_echo_n "checking for stdint.h... " >&6; }
6902 if ${jm_ac_cv_header_stdint_h+:} false; then :
6903 $as_echo_n "(cached) " >&6
6905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6906 /* end confdefs.h. */
6907 #include <sys/types.h>
6912 uintmax_t i = (uintmax_t) -1;
6917 if ac_fn_c_try_compile "$LINENO"; then :
6918 jm_ac_cv_header_stdint_h=yes
6920 jm_ac_cv_header_stdint_h=no
6922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_stdint_h" >&5
6925 $as_echo "$jm_ac_cv_header_stdint_h" >&6; }
6926 if test $jm_ac_cv_header_stdint_h = yes; then
6928 cat >>confdefs.h <<_ACEOF
6929 #define HAVE_STDINT_H_WITH_UINTMAX 1
6937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
6938 $as_echo_n "checking for intmax_t... " >&6; }
6939 if ${gt_cv_c_intmax_t+:} false; then :
6940 $as_echo_n "(cached) " >&6
6942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6943 /* end confdefs.h. */
6947 #if HAVE_STDINT_H_WITH_UINTMAX
6950 #if HAVE_INTTYPES_H_WITH_UINTMAX
6951 #include <inttypes.h>
6962 if ac_fn_c_try_compile "$LINENO"; then :
6963 gt_cv_c_intmax_t=yes
6967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
6970 $as_echo "$gt_cv_c_intmax_t" >&6; }
6971 if test $gt_cv_c_intmax_t = yes; then
6973 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
6980 $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
6981 if ${gt_cv_func_printf_posix+:} false; then :
6982 $as_echo_n "(cached) " >&6
6985 if test "$cross_compiling" = yes; then :
6987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6988 /* end confdefs.h. */
6990 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
6995 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6996 $EGREP "notposix" >/dev/null 2>&1; then :
6997 gt_cv_func_printf_posix="guessing no"
6999 gt_cv_func_printf_posix="guessing yes"
7005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7006 /* end confdefs.h. */
7010 /* The string "%2$d %1$d", with dollar characters protected from the shell's
7011 dollar expansion (possibly an autoconf bug). */
7012 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
7013 static char buf[100];
7016 sprintf (buf, format, 33, 55);
7017 return (strcmp (buf, "55 33") != 0);
7020 if ac_fn_c_try_run "$LINENO"; then :
7021 gt_cv_func_printf_posix=yes
7023 gt_cv_func_printf_posix=no
7025 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7026 conftest.$ac_objext conftest.beam conftest.$ac_ext
7031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
7032 $as_echo "$gt_cv_func_printf_posix" >&6; }
7033 case $gt_cv_func_printf_posix in
7036 $as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
7041 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
7042 # for constant arguments. Useless!
7043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
7044 $as_echo_n "checking for working alloca.h... " >&6; }
7045 if ${ac_cv_working_alloca_h+:} false; then :
7046 $as_echo_n "(cached) " >&6
7048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7049 /* end confdefs.h. */
7054 char *p = (char *) alloca (2 * sizeof (int));
7060 if ac_fn_c_try_link "$LINENO"; then :
7061 ac_cv_working_alloca_h=yes
7063 ac_cv_working_alloca_h=no
7065 rm -f core conftest.err conftest.$ac_objext \
7066 conftest$ac_exeext conftest.$ac_ext
7068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
7069 $as_echo "$ac_cv_working_alloca_h" >&6; }
7070 if test $ac_cv_working_alloca_h = yes; then
7072 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
7076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
7077 $as_echo_n "checking for alloca... " >&6; }
7078 if ${ac_cv_func_alloca_works+:} false; then :
7079 $as_echo_n "(cached) " >&6
7081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7082 /* end confdefs.h. */
7084 # define alloca __builtin_alloca
7087 # include <malloc.h>
7088 # define alloca _alloca
7090 # ifdef HAVE_ALLOCA_H
7091 # include <alloca.h>
7096 # ifndef alloca /* predefined by HP cc +Olibcalls */
7097 void *alloca (size_t);
7107 char *p = (char *) alloca (1);
7113 if ac_fn_c_try_link "$LINENO"; then :
7114 ac_cv_func_alloca_works=yes
7116 ac_cv_func_alloca_works=no
7118 rm -f core conftest.err conftest.$ac_objext \
7119 conftest$ac_exeext conftest.$ac_ext
7121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
7122 $as_echo "$ac_cv_func_alloca_works" >&6; }
7124 if test $ac_cv_func_alloca_works = yes; then
7126 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
7129 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
7130 # that cause trouble. Some versions do not even contain alloca or
7131 # contain a buggy version. If you still want to use their alloca,
7132 # use ar to extract alloca.o from them instead of compiling alloca.c.
7134 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
7136 $as_echo "#define C_ALLOCA 1" >>confdefs.h
7139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
7140 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
7141 if ${ac_cv_os_cray+:} false; then :
7142 $as_echo_n "(cached) " >&6
7144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7145 /* end confdefs.h. */
7146 #if defined CRAY && ! defined CRAY2
7153 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7154 $EGREP "webecray" >/dev/null 2>&1; then :
7162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
7163 $as_echo "$ac_cv_os_cray" >&6; }
7164 if test $ac_cv_os_cray = yes; then
7165 for ac_func in _getb67 GETB67 getb67; do
7166 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7167 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7168 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7170 cat >>confdefs.h <<_ACEOF
7171 #define CRAY_STACKSEG_END $ac_func
7180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
7181 $as_echo_n "checking stack direction for C alloca... " >&6; }
7182 if ${ac_cv_c_stack_direction+:} false; then :
7183 $as_echo_n "(cached) " >&6
7185 if test "$cross_compiling" = yes; then :
7186 ac_cv_c_stack_direction=0
7188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7189 /* end confdefs.h. */
7190 $ac_includes_default
7192 find_stack_direction (int *addr, int depth)
7197 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
7198 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
7203 main (int argc, char **argv)
7205 return find_stack_direction (0, argc + !argv + 20) < 0;
7208 if ac_fn_c_try_run "$LINENO"; then :
7209 ac_cv_c_stack_direction=1
7211 ac_cv_c_stack_direction=-1
7213 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7214 conftest.$ac_objext conftest.beam conftest.$ac_ext
7218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
7219 $as_echo "$ac_cv_c_stack_direction" >&6; }
7220 cat >>confdefs.h <<_ACEOF
7221 #define STACK_DIRECTION $ac_cv_c_stack_direction
7230 for ac_header in $ac_header_list
7232 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7233 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7235 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7236 cat >>confdefs.h <<_ACEOF
7237 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7251 for ac_func in getpagesize
7253 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
7254 if test "x$ac_cv_func_getpagesize" = xyes; then :
7255 cat >>confdefs.h <<_ACEOF
7256 #define HAVE_GETPAGESIZE 1
7262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
7263 $as_echo_n "checking for working mmap... " >&6; }
7264 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
7265 $as_echo_n "(cached) " >&6
7267 if test "$cross_compiling" = yes; then :
7268 ac_cv_func_mmap_fixed_mapped=no
7270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7271 /* end confdefs.h. */
7272 $ac_includes_default
7273 /* malloc might have been renamed as rpl_malloc. */
7276 /* Thanks to Mike Haertel and Jim Avera for this test.
7277 Here is a matrix of mmap possibilities:
7278 mmap private not fixed
7279 mmap private fixed at somewhere currently unmapped
7280 mmap private fixed at somewhere already mapped
7281 mmap shared not fixed
7282 mmap shared fixed at somewhere currently unmapped
7283 mmap shared fixed at somewhere already mapped
7284 For private mappings, we should verify that changes cannot be read()
7285 back from the file, nor mmap's back from the file at a different
7286 address. (There have been systems where private was not correctly
7287 implemented like the infamous i386 svr4.0, and systems where the
7288 VM page cache was not coherent with the file system buffer cache
7289 like early versions of FreeBSD and possibly contemporary NetBSD.)
7290 For shared mappings, we should conversely verify that changes get
7291 propagated back to all the places they're supposed to be.
7293 Grep wants private fixed already mapped.
7294 The main things grep needs to know about mmap are:
7295 * does it exist and is it safe to write into the mmap'd area
7296 * how to use it (BSD variants) */
7299 #include <sys/mman.h>
7301 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7305 /* This mess was copied from the GNU getpagesize.h. */
7306 #ifndef HAVE_GETPAGESIZE
7307 # ifdef _SC_PAGESIZE
7308 # define getpagesize() sysconf(_SC_PAGESIZE)
7309 # else /* no _SC_PAGESIZE */
7310 # ifdef HAVE_SYS_PARAM_H
7311 # include <sys/param.h>
7312 # ifdef EXEC_PAGESIZE
7313 # define getpagesize() EXEC_PAGESIZE
7314 # else /* no EXEC_PAGESIZE */
7316 # define getpagesize() NBPG * CLSIZE
7319 # endif /* no CLSIZE */
7320 # else /* no NBPG */
7322 # define getpagesize() NBPC
7323 # else /* no NBPC */
7325 # define getpagesize() PAGESIZE
7326 # endif /* PAGESIZE */
7327 # endif /* no NBPC */
7328 # endif /* no NBPG */
7329 # endif /* no EXEC_PAGESIZE */
7330 # else /* no HAVE_SYS_PARAM_H */
7331 # define getpagesize() 8192 /* punt totally */
7332 # endif /* no HAVE_SYS_PARAM_H */
7333 # endif /* no _SC_PAGESIZE */
7335 #endif /* no HAVE_GETPAGESIZE */
7340 char *data, *data2, *data3;
7345 pagesize = getpagesize ();
7347 /* First, make a file with some known garbage in it. */
7348 data = (char *) malloc (pagesize);
7351 for (i = 0; i < pagesize; ++i)
7352 *(data + i) = rand ();
7354 fd = creat ("conftest.mmap", 0600);
7357 if (write (fd, data, pagesize) != pagesize)
7361 /* Next, check that the tail of a page is zero-filled. File must have
7362 non-zero length, otherwise we risk SIGBUS for entire page. */
7363 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7367 if (write (fd2, cdata2, 1) != 1)
7369 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7370 if (data2 == MAP_FAILED)
7372 for (i = 0; i < pagesize; ++i)
7376 if (munmap (data2, pagesize))
7379 /* Next, try to mmap the file at a fixed address which already has
7380 something else allocated at it. If we can, also make sure that
7381 we see the same garbage. */
7382 fd = open ("conftest.mmap", O_RDWR);
7385 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7386 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7388 for (i = 0; i < pagesize; ++i)
7389 if (*(data + i) != *(data2 + i))
7392 /* Finally, make sure that changes to the mapped area do not
7393 percolate back to the file as seen by read(). (This is a bug on
7394 some variants of i386 svr4.0.) */
7395 for (i = 0; i < pagesize; ++i)
7396 *(data2 + i) = *(data2 + i) + 1;
7397 data3 = (char *) malloc (pagesize);
7400 if (read (fd, data3, pagesize) != pagesize)
7402 for (i = 0; i < pagesize; ++i)
7403 if (*(data + i) != *(data3 + i))
7409 if ac_fn_c_try_run "$LINENO"; then :
7410 ac_cv_func_mmap_fixed_mapped=yes
7412 ac_cv_func_mmap_fixed_mapped=no
7414 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7415 conftest.$ac_objext conftest.beam conftest.$ac_ext
7419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
7420 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
7421 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7423 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
7426 rm -f conftest.mmap conftest.txt
7429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
7430 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
7431 if ${ac_cv_gnu_library_2_1+:} false; then :
7432 $as_echo_n "(cached) " >&6
7434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7435 /* end confdefs.h. */
7437 #include <features.h>
7438 #ifdef __GNU_LIBRARY__
7439 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
7445 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7446 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
7447 ac_cv_gnu_library_2_1=yes
7449 ac_cv_gnu_library_2_1=no
7456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
7457 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
7459 GLIBC21="$ac_cv_gnu_library_2_1"
7464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
7465 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
7466 if ${gt_cv_int_divbyzero_sigfpe+:} false; then :
7467 $as_echo_n "(cached) " >&6
7470 if test "$cross_compiling" = yes; then :
7472 # Guess based on the CPU.
7474 alpha* | i3456786 | m68k | s390*)
7475 gt_cv_int_divbyzero_sigfpe="guessing yes";;
7477 gt_cv_int_divbyzero_sigfpe="guessing no";;
7481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7482 /* end confdefs.h. */
7489 sigfpe_handler (int sig)
7491 sigfpe_handler (sig) int sig;
7494 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
7495 exit (sig != SIGFPE);
7505 signal (SIGFPE, sigfpe_handler);
7506 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
7507 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
7508 signal (SIGTRAP, sigfpe_handler);
7510 /* Linux/SPARC yields signal SIGILL. */
7511 #if defined (__sparc__) && defined (__linux__)
7512 signal (SIGILL, sigfpe_handler);
7521 if ac_fn_c_try_run "$LINENO"; then :
7522 gt_cv_int_divbyzero_sigfpe=yes
7524 gt_cv_int_divbyzero_sigfpe=no
7526 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7527 conftest.$ac_objext conftest.beam conftest.$ac_ext
7532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
7533 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
7534 case "$gt_cv_int_divbyzero_sigfpe" in
7539 cat >>confdefs.h <<_ACEOF
7540 #define INTDIV0_RAISES_SIGFPE $value
7545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long" >&5
7546 $as_echo_n "checking for unsigned long long... " >&6; }
7547 if ${ac_cv_type_unsigned_long_long+:} false; then :
7548 $as_echo_n "(cached) " >&6
7550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7551 /* end confdefs.h. */
7552 unsigned long long ull = 1ULL; int i = 63;
7556 unsigned long long ullmax = (unsigned long long) -1;
7557 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
7562 if ac_fn_c_try_link "$LINENO"; then :
7563 ac_cv_type_unsigned_long_long=yes
7565 ac_cv_type_unsigned_long_long=no
7567 rm -f core conftest.err conftest.$ac_objext \
7568 conftest$ac_exeext conftest.$ac_ext
7570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long" >&5
7571 $as_echo "$ac_cv_type_unsigned_long_long" >&6; }
7572 if test $ac_cv_type_unsigned_long_long = yes; then
7574 $as_echo "#define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h
7581 if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
7583 test $ac_cv_type_unsigned_long_long = yes \
7584 && ac_type='unsigned long long' \
7585 || ac_type='unsigned long'
7587 cat >>confdefs.h <<_ACEOF
7588 #define uintmax_t $ac_type
7593 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
7598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
7599 $as_echo_n "checking for inttypes.h... " >&6; }
7600 if ${gt_cv_header_inttypes_h+:} false; then :
7601 $as_echo_n "(cached) " >&6
7604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7605 /* end confdefs.h. */
7606 #include <sys/types.h>
7607 #include <inttypes.h>
7616 if ac_fn_c_try_compile "$LINENO"; then :
7617 gt_cv_header_inttypes_h=yes
7619 gt_cv_header_inttypes_h=no
7621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_header_inttypes_h" >&5
7625 $as_echo "$gt_cv_header_inttypes_h" >&6; }
7626 if test $gt_cv_header_inttypes_h = yes; then
7628 cat >>confdefs.h <<_ACEOF
7629 #define HAVE_INTTYPES_H 1
7636 if test $gt_cv_header_inttypes_h = yes; then
7637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
7638 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
7639 if ${gt_cv_inttypes_pri_broken+:} false; then :
7640 $as_echo_n "(cached) " >&6
7643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7644 /* end confdefs.h. */
7645 #include <inttypes.h>
7658 if ac_fn_c_try_compile "$LINENO"; then :
7659 gt_cv_inttypes_pri_broken=no
7661 gt_cv_inttypes_pri_broken=yes
7663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
7667 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
7669 if test "$gt_cv_inttypes_pri_broken" = yes; then
7671 cat >>confdefs.h <<_ACEOF
7672 #define PRI_MACROS_BROKEN 1
7678 for ac_header in stdint.h
7680 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
7681 if test "x$ac_cv_header_stdint_h" = xyes; then :
7682 cat >>confdefs.h <<_ACEOF
7683 #define HAVE_STDINT_H 1
7690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
7691 $as_echo_n "checking for SIZE_MAX... " >&6; }
7693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7694 /* end confdefs.h. */
7705 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7706 $EGREP "Found it" >/dev/null 2>&1; then :
7711 if test -z "$result"; then
7712 if ac_fn_c_compute_int "$LINENO" "~(size_t)0 / 10" "res_hi" "#include <stddef.h>"; then :
7719 if ac_fn_c_compute_int "$LINENO" "~(size_t)0 % 10" "res_lo" "#include <stddef.h>"; then :
7726 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then :
7733 if test "$fits_in_uint" = 1; then
7734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7735 /* end confdefs.h. */
7738 extern unsigned long foo;
7748 if ac_fn_c_try_compile "$LINENO"; then :
7751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7753 if test -z "$result"; then
7754 if test "$fits_in_uint" = 1; then
7755 result="$res_hi$res_lo"U
7757 result="$res_hi$res_lo"UL
7763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
7764 $as_echo "$result" >&6; }
7765 if test "$result" != yes; then
7767 cat >>confdefs.h <<_ACEOF
7768 #define SIZE_MAX $result
7775 for ac_header in stdint.h
7777 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
7778 if test "x$ac_cv_header_stdint_h" = xyes; then :
7779 cat >>confdefs.h <<_ACEOF
7780 #define HAVE_STDINT_H 1
7789 if test "X$prefix" = "XNONE"; then
7790 acl_final_prefix="$ac_default_prefix"
7792 acl_final_prefix="$prefix"
7794 if test "X$exec_prefix" = "XNONE"; then
7795 acl_final_exec_prefix='${prefix}'
7797 acl_final_exec_prefix="$exec_prefix"
7799 acl_save_prefix="$prefix"
7800 prefix="$acl_final_prefix"
7801 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7802 prefix="$acl_save_prefix"
7805 # Check whether --with-gnu-ld was given.
7806 if test "${with_gnu_ld+set}" = set; then :
7807 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7812 # Prepare PATH_SEPARATOR.
7813 # The user is always right.
7814 if test "${PATH_SEPARATOR+set}" != set; then
7815 echo "#! /bin/sh" >conf$$.sh
7816 echo "exit 0" >>conf$$.sh
7818 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7826 if test "$GCC" = yes; then
7827 # Check if gcc -print-prog-name=ld gives a path.
7828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
7829 $as_echo_n "checking for ld used by GCC... " >&6; }
7832 # gcc leaves a trailing carriage return which upsets mingw
7833 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7835 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7838 # Accept absolute paths.
7839 [\\/]* | [A-Za-z]:[\\/]*)
7840 re_direlt='/[^/][^/]*/\.\./'
7841 # Canonicalize the path of ld
7842 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
7843 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
7844 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
7846 test -z "$LD" && LD="$ac_prog"
7849 # If it fails, then pretend we aren't using GCC.
7853 # If it is relative, then search for the first ld in PATH.
7857 elif test "$with_gnu_ld" = yes; then
7858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7859 $as_echo_n "checking for GNU ld... " >&6; }
7861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7862 $as_echo_n "checking for non-GNU ld... " >&6; }
7864 if ${acl_cv_path_LD+:} false; then :
7865 $as_echo_n "(cached) " >&6
7867 if test -z "$LD"; then
7868 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
7869 for ac_dir in $PATH; do
7870 test -z "$ac_dir" && ac_dir=.
7871 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7872 acl_cv_path_LD="$ac_dir/$ac_prog"
7873 # Check to see if the program is GNU ld. I'd rather use --version,
7874 # but apparently some GNU ld's only accept -v.
7875 # Break only if it was the GNU/non-GNU ld that we prefer.
7876 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
7877 *GNU* | *'with BFD'*)
7878 test "$with_gnu_ld" != no && break ;;
7880 test "$with_gnu_ld" != yes && break ;;
7886 acl_cv_path_LD="$LD" # Let the user override the test with a path.
7890 LD="$acl_cv_path_LD"
7891 if test -n "$LD"; then
7892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7893 $as_echo "$LD" >&6; }
7895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7896 $as_echo "no" >&6; }
7898 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7900 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7901 if ${acl_cv_prog_gnu_ld+:} false; then :
7902 $as_echo_n "(cached) " >&6
7904 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
7905 case `$LD -v 2>&1 </dev/null` in
7906 *GNU* | *'with BFD'*)
7907 acl_cv_prog_gnu_ld=yes ;;
7909 acl_cv_prog_gnu_ld=no ;;
7912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
7913 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
7914 with_gnu_ld=$acl_cv_prog_gnu_ld
7918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
7919 $as_echo_n "checking for shared library run path origin... " >&6; }
7920 if ${acl_cv_rpath+:} false; then :
7921 $as_echo_n "(cached) " >&6
7924 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
7925 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
7932 $as_echo "$acl_cv_rpath" >&6; }
7934 libext="$acl_cv_libext"
7935 shlibext="$acl_cv_shlibext"
7936 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
7937 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
7938 hardcode_direct="$acl_cv_hardcode_direct"
7939 hardcode_minus_L="$acl_cv_hardcode_minus_L"
7940 # Check whether --enable-rpath was given.
7941 if test "${enable_rpath+set}" = set; then :
7942 enableval=$enable_rpath; :
7956 acl_save_prefix="$prefix"
7957 prefix="$acl_final_prefix"
7958 acl_save_exec_prefix="$exec_prefix"
7959 exec_prefix="$acl_final_exec_prefix"
7961 eval additional_includedir=\"$includedir\"
7962 eval additional_libdir=\"$libdir\"
7964 exec_prefix="$acl_save_exec_prefix"
7965 prefix="$acl_save_prefix"
7968 # Check whether --with-libiconv-prefix was given.
7969 if test "${with_libiconv_prefix+set}" = set; then :
7970 withval=$with_libiconv_prefix;
7971 if test "X$withval" = "Xno"; then
7974 if test "X$withval" = "X"; then
7976 acl_save_prefix="$prefix"
7977 prefix="$acl_final_prefix"
7978 acl_save_exec_prefix="$exec_prefix"
7979 exec_prefix="$acl_final_exec_prefix"
7981 eval additional_includedir=\"$includedir\"
7982 eval additional_libdir=\"$libdir\"
7984 exec_prefix="$acl_save_exec_prefix"
7985 prefix="$acl_save_prefix"
7988 additional_includedir="$withval/include"
7989 additional_libdir="$withval/lib"
8000 names_already_handled=
8001 names_next_round='iconv '
8002 while test -n "$names_next_round"; do
8003 names_this_round="$names_next_round"
8005 for name in $names_this_round; do
8007 for n in $names_already_handled; do
8008 if test "$n" = "$name"; then
8013 if test -z "$already_handled"; then
8014 names_already_handled="$names_already_handled $name"
8015 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
8016 eval value=\"\$HAVE_LIB$uppername\"
8017 if test -n "$value"; then
8018 if test "$value" = yes; then
8019 eval value=\"\$LIB$uppername\"
8020 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
8021 eval value=\"\$LTLIB$uppername\"
8022 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
8031 if test $use_additional = yes; then
8032 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
8033 found_dir="$additional_libdir"
8034 found_so="$additional_libdir/lib$name.$shlibext"
8035 if test -f "$additional_libdir/lib$name.la"; then
8036 found_la="$additional_libdir/lib$name.la"
8039 if test -f "$additional_libdir/lib$name.$libext"; then
8040 found_dir="$additional_libdir"
8041 found_a="$additional_libdir/lib$name.$libext"
8042 if test -f "$additional_libdir/lib$name.la"; then
8043 found_la="$additional_libdir/lib$name.la"
8048 if test "X$found_dir" = "X"; then
8049 for x in $LDFLAGS $LTLIBICONV; do
8051 acl_save_prefix="$prefix"
8052 prefix="$acl_final_prefix"
8053 acl_save_exec_prefix="$exec_prefix"
8054 exec_prefix="$acl_final_exec_prefix"
8056 exec_prefix="$acl_save_exec_prefix"
8057 prefix="$acl_save_prefix"
8061 dir=`echo "X$x" | sed -e 's/^X-L//'`
8062 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
8064 found_so="$dir/lib$name.$shlibext"
8065 if test -f "$dir/lib$name.la"; then
8066 found_la="$dir/lib$name.la"
8069 if test -f "$dir/lib$name.$libext"; then
8071 found_a="$dir/lib$name.$libext"
8072 if test -f "$dir/lib$name.la"; then
8073 found_la="$dir/lib$name.la"
8079 if test "X$found_dir" != "X"; then
8084 if test "X$found_dir" != "X"; then
8085 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
8086 if test "X$found_so" != "X"; then
8087 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
8088 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8091 for x in $ltrpathdirs; do
8092 if test "X$x" = "X$found_dir"; then
8097 if test -z "$haveit"; then
8098 ltrpathdirs="$ltrpathdirs $found_dir"
8100 if test "$hardcode_direct" = yes; then
8101 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8103 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
8104 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8106 for x in $rpathdirs; do
8107 if test "X$x" = "X$found_dir"; then
8112 if test -z "$haveit"; then
8113 rpathdirs="$rpathdirs $found_dir"
8117 for x in $LDFLAGS $LIBICONV; do
8119 acl_save_prefix="$prefix"
8120 prefix="$acl_final_prefix"
8121 acl_save_exec_prefix="$exec_prefix"
8122 exec_prefix="$acl_final_exec_prefix"
8124 exec_prefix="$acl_save_exec_prefix"
8125 prefix="$acl_save_prefix"
8127 if test "X$x" = "X-L$found_dir"; then
8132 if test -z "$haveit"; then
8133 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
8135 if test "$hardcode_minus_L" != no; then
8136 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8138 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8144 if test "X$found_a" != "X"; then
8145 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
8147 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
8150 additional_includedir=
8151 case "$found_dir" in
8153 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
8154 additional_includedir="$basedir/include"
8157 if test "X$additional_includedir" != "X"; then
8158 if test "X$additional_includedir" != "X/usr/include"; then
8160 if test "X$additional_includedir" = "X/usr/local/include"; then
8161 if test -n "$GCC"; then
8163 linux*) haveit=yes;;
8167 if test -z "$haveit"; then
8168 for x in $CPPFLAGS $INCICONV; do
8170 acl_save_prefix="$prefix"
8171 prefix="$acl_final_prefix"
8172 acl_save_exec_prefix="$exec_prefix"
8173 exec_prefix="$acl_final_exec_prefix"
8175 exec_prefix="$acl_save_exec_prefix"
8176 prefix="$acl_save_prefix"
8178 if test "X$x" = "X-I$additional_includedir"; then
8183 if test -z "$haveit"; then
8184 if test -d "$additional_includedir"; then
8185 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
8191 if test -n "$found_la"; then
8192 save_libdir="$libdir"
8194 */* | *\\*) . "$found_la" ;;
8195 *) . "./$found_la" ;;
8197 libdir="$save_libdir"
8198 for dep in $dependency_libs; do
8201 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8202 if test "X$additional_libdir" != "X/usr/lib"; then
8204 if test "X$additional_libdir" = "X/usr/local/lib"; then
8205 if test -n "$GCC"; then
8207 linux*) haveit=yes;;
8211 if test -z "$haveit"; then
8213 for x in $LDFLAGS $LIBICONV; do
8215 acl_save_prefix="$prefix"
8216 prefix="$acl_final_prefix"
8217 acl_save_exec_prefix="$exec_prefix"
8218 exec_prefix="$acl_final_exec_prefix"
8220 exec_prefix="$acl_save_exec_prefix"
8221 prefix="$acl_save_prefix"
8223 if test "X$x" = "X-L$additional_libdir"; then
8228 if test -z "$haveit"; then
8229 if test -d "$additional_libdir"; then
8230 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
8234 for x in $LDFLAGS $LTLIBICONV; do
8236 acl_save_prefix="$prefix"
8237 prefix="$acl_final_prefix"
8238 acl_save_exec_prefix="$exec_prefix"
8239 exec_prefix="$acl_final_exec_prefix"
8241 exec_prefix="$acl_save_exec_prefix"
8242 prefix="$acl_save_prefix"
8244 if test "X$x" = "X-L$additional_libdir"; then
8249 if test -z "$haveit"; then
8250 if test -d "$additional_libdir"; then
8251 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
8258 dir=`echo "X$dep" | sed -e 's/^X-R//'`
8259 if test "$enable_rpath" != no; then
8261 for x in $rpathdirs; do
8262 if test "X$x" = "X$dir"; then
8267 if test -z "$haveit"; then
8268 rpathdirs="$rpathdirs $dir"
8271 for x in $ltrpathdirs; do
8272 if test "X$x" = "X$dir"; then
8277 if test -z "$haveit"; then
8278 ltrpathdirs="$ltrpathdirs $dir"
8283 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8286 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8289 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
8290 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
8296 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8297 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
8303 if test "X$rpathdirs" != "X"; then
8304 if test -n "$hardcode_libdir_separator"; then
8306 for found_dir in $rpathdirs; do
8307 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8309 acl_save_libdir="$libdir"
8311 eval flag=\"$hardcode_libdir_flag_spec\"
8312 libdir="$acl_save_libdir"
8313 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8315 for found_dir in $rpathdirs; do
8316 acl_save_libdir="$libdir"
8318 eval flag=\"$hardcode_libdir_flag_spec\"
8319 libdir="$acl_save_libdir"
8320 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8324 if test "X$ltrpathdirs" != "X"; then
8325 for found_dir in $ltrpathdirs; do
8326 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
8337 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
8338 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
8342 $as_echo "#define ptrdiff_t long" >>confdefs.h
8347 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
8348 stdlib.h string.h unistd.h sys/param.h
8350 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8351 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8352 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8353 cat >>confdefs.h <<_ACEOF
8354 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8361 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
8362 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
8363 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
8366 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8367 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8368 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8369 cat >>confdefs.h <<_ACEOF
8370 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snprintf is declared" >&5
8379 $as_echo_n "checking whether _snprintf is declared... " >&6; }
8380 if ${ac_cv_have_decl__snprintf+:} false; then :
8381 $as_echo_n "(cached) " >&6
8383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8384 /* end confdefs.h. */
8391 char *p = (char *) _snprintf;
8398 if ac_fn_c_try_compile "$LINENO"; then :
8399 ac_cv_have_decl__snprintf=yes
8401 ac_cv_have_decl__snprintf=no
8403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snprintf" >&5
8406 $as_echo "$ac_cv_have_decl__snprintf" >&6; }
8407 if test $ac_cv_have_decl__snprintf = yes; then
8413 cat >>confdefs.h <<_ACEOF
8414 #define HAVE_DECL__SNPRINTF $gt_value
8419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snwprintf is declared" >&5
8420 $as_echo_n "checking whether _snwprintf is declared... " >&6; }
8421 if ${ac_cv_have_decl__snwprintf+:} false; then :
8422 $as_echo_n "(cached) " >&6
8424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8425 /* end confdefs.h. */
8432 char *p = (char *) _snwprintf;
8439 if ac_fn_c_try_compile "$LINENO"; then :
8440 ac_cv_have_decl__snwprintf=yes
8442 ac_cv_have_decl__snwprintf=no
8444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snwprintf" >&5
8447 $as_echo "$ac_cv_have_decl__snwprintf" >&6; }
8448 if test $ac_cv_have_decl__snwprintf = yes; then
8454 cat >>confdefs.h <<_ACEOF
8455 #define HAVE_DECL__SNWPRINTF $gt_value
8461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether feof_unlocked is declared" >&5
8462 $as_echo_n "checking whether feof_unlocked is declared... " >&6; }
8463 if ${ac_cv_have_decl_feof_unlocked+:} false; then :
8464 $as_echo_n "(cached) " >&6
8466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8467 /* end confdefs.h. */
8473 #ifndef feof_unlocked
8474 char *p = (char *) feof_unlocked;
8481 if ac_fn_c_try_compile "$LINENO"; then :
8482 ac_cv_have_decl_feof_unlocked=yes
8484 ac_cv_have_decl_feof_unlocked=no
8486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_feof_unlocked" >&5
8489 $as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
8490 if test $ac_cv_have_decl_feof_unlocked = yes; then
8496 cat >>confdefs.h <<_ACEOF
8497 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
8502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fgets_unlocked is declared" >&5
8503 $as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
8504 if ${ac_cv_have_decl_fgets_unlocked+:} false; then :
8505 $as_echo_n "(cached) " >&6
8507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8508 /* end confdefs.h. */
8514 #ifndef fgets_unlocked
8515 char *p = (char *) fgets_unlocked;
8522 if ac_fn_c_try_compile "$LINENO"; then :
8523 ac_cv_have_decl_fgets_unlocked=yes
8525 ac_cv_have_decl_fgets_unlocked=no
8527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_fgets_unlocked" >&5
8530 $as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
8531 if test $ac_cv_have_decl_fgets_unlocked = yes; then
8537 cat >>confdefs.h <<_ACEOF
8538 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
8543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getc_unlocked is declared" >&5
8544 $as_echo_n "checking whether getc_unlocked is declared... " >&6; }
8545 if ${ac_cv_have_decl_getc_unlocked+:} false; then :
8546 $as_echo_n "(cached) " >&6
8548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8549 /* end confdefs.h. */
8555 #ifndef getc_unlocked
8556 char *p = (char *) getc_unlocked;
8563 if ac_fn_c_try_compile "$LINENO"; then :
8564 ac_cv_have_decl_getc_unlocked=yes
8566 ac_cv_have_decl_getc_unlocked=no
8568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_getc_unlocked" >&5
8571 $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
8572 if test $ac_cv_have_decl_getc_unlocked = yes; then
8578 cat >>confdefs.h <<_ACEOF
8579 #define HAVE_DECL_GETC_UNLOCKED $gt_value
8584 case $gt_cv_func_printf_posix in
8585 *yes) HAVE_POSIX_PRINTF=1 ;;
8586 *) HAVE_POSIX_PRINTF=0 ;;
8589 if test "$ac_cv_func_asprintf" = yes; then
8595 if test "$ac_cv_func_snprintf" = yes; then
8601 if test "$ac_cv_func_wprintf" = yes; then
8613 am_save_CPPFLAGS="$CPPFLAGS"
8615 for element in $INCICONV; do
8617 for x in $CPPFLAGS; do
8619 acl_save_prefix="$prefix"
8620 prefix="$acl_final_prefix"
8621 acl_save_exec_prefix="$exec_prefix"
8622 exec_prefix="$acl_final_exec_prefix"
8624 exec_prefix="$acl_save_exec_prefix"
8625 prefix="$acl_save_prefix"
8627 if test "X$x" = "X$element"; then
8632 if test -z "$haveit"; then
8633 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
8639 $as_echo_n "checking for iconv... " >&6; }
8640 if ${am_cv_func_iconv+:} false; then :
8641 $as_echo_n "(cached) " >&6
8644 am_cv_func_iconv="no, consider installing GNU libiconv"
8646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8647 /* end confdefs.h. */
8653 iconv_t cd = iconv_open("","");
8654 iconv(cd,NULL,NULL,NULL,NULL);
8660 if ac_fn_c_try_link "$LINENO"; then :
8661 am_cv_func_iconv=yes
8663 rm -f core conftest.err conftest.$ac_objext \
8664 conftest$ac_exeext conftest.$ac_ext
8665 if test "$am_cv_func_iconv" != yes; then
8666 am_save_LIBS="$LIBS"
8667 LIBS="$LIBS $LIBICONV"
8668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8669 /* end confdefs.h. */
8675 iconv_t cd = iconv_open("","");
8676 iconv(cd,NULL,NULL,NULL,NULL);
8682 if ac_fn_c_try_link "$LINENO"; then :
8684 am_cv_func_iconv=yes
8686 rm -f core conftest.err conftest.$ac_objext \
8687 conftest$ac_exeext conftest.$ac_ext
8688 LIBS="$am_save_LIBS"
8692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
8693 $as_echo "$am_cv_func_iconv" >&6; }
8694 if test "$am_cv_func_iconv" = yes; then
8696 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
8699 if test "$am_cv_lib_iconv" = yes; then
8700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
8701 $as_echo_n "checking how to link with libiconv... " >&6; }
8702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
8703 $as_echo "$LIBICONV" >&6; }
8705 CPPFLAGS="$am_save_CPPFLAGS"
8712 if test "$am_cv_func_iconv" = yes; then
8713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
8714 $as_echo_n "checking for iconv declaration... " >&6; }
8715 if ${am_cv_proto_iconv+:} false; then :
8716 $as_echo_n "(cached) " >&6
8719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8720 /* end confdefs.h. */
8728 #if defined(__STDC__) || defined(__cplusplus)
8729 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
8742 if ac_fn_c_try_compile "$LINENO"; then :
8743 am_cv_proto_iconv_arg1=""
8745 am_cv_proto_iconv_arg1="const"
8747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8748 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);"
8751 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
8752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
8753 }$am_cv_proto_iconv" >&5
8755 }$am_cv_proto_iconv" >&6; }
8757 cat >>confdefs.h <<_ACEOF
8758 #define ICONV_CONST $am_cv_proto_iconv_arg1
8764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
8765 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
8766 if ${am_cv_langinfo_codeset+:} false; then :
8767 $as_echo_n "(cached) " >&6
8769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8770 /* end confdefs.h. */
8771 #include <langinfo.h>
8775 char* cs = nl_langinfo(CODESET);
8780 if ac_fn_c_try_link "$LINENO"; then :
8781 am_cv_langinfo_codeset=yes
8783 am_cv_langinfo_codeset=no
8785 rm -f core conftest.err conftest.$ac_objext \
8786 conftest$ac_exeext conftest.$ac_ext
8789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
8790 $as_echo "$am_cv_langinfo_codeset" >&6; }
8791 if test $am_cv_langinfo_codeset = yes; then
8793 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
8797 if test $ac_cv_header_locale_h = yes; then
8799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
8800 $as_echo_n "checking for LC_MESSAGES... " >&6; }
8801 if ${am_cv_val_LC_MESSAGES+:} false; then :
8802 $as_echo_n "(cached) " >&6
8804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8805 /* end confdefs.h. */
8815 if ac_fn_c_try_link "$LINENO"; then :
8816 am_cv_val_LC_MESSAGES=yes
8818 am_cv_val_LC_MESSAGES=no
8820 rm -f core conftest.err conftest.$ac_objext \
8821 conftest$ac_exeext conftest.$ac_ext
8823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
8824 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
8825 if test $am_cv_val_LC_MESSAGES = yes; then
8827 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
8833 for ac_prog in bison
8835 # Extract the first word of "$ac_prog", so it can be a program name with args.
8836 set dummy $ac_prog; ac_word=$2
8837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8838 $as_echo_n "checking for $ac_word... " >&6; }
8839 if ${ac_cv_prog_INTLBISON+:} false; then :
8840 $as_echo_n "(cached) " >&6
8842 if test -n "$INTLBISON"; then
8843 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
8845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8849 test -z "$as_dir" && as_dir=.
8850 for ac_exec_ext in '' $ac_executable_extensions; do
8851 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8852 ac_cv_prog_INTLBISON="$ac_prog"
8853 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8862 INTLBISON=$ac_cv_prog_INTLBISON
8863 if test -n "$INTLBISON"; then
8864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
8865 $as_echo "$INTLBISON" >&6; }
8867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8868 $as_echo "no" >&6; }
8872 test -n "$INTLBISON" && break
8875 if test -z "$INTLBISON"; then
8878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
8879 $as_echo_n "checking version of bison... " >&6; }
8880 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
8881 case $ac_prog_version in
8882 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
8883 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
8884 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
8885 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
8887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
8888 $as_echo "$ac_prog_version" >&6; }
8890 if test $ac_verc_fail = yes; then
8909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
8910 $as_echo_n "checking whether NLS is requested... " >&6; }
8911 # Check whether --enable-nls was given.
8912 if test "${enable_nls+set}" = set; then :
8913 enableval=$enable_nls; USE_NLS=$enableval
8918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
8919 $as_echo "$USE_NLS" >&6; }
8924 BUILD_INCLUDED_LIBINTL=no
8925 USE_INCLUDED_LIBINTL=no
8931 if test "$USE_NLS" = "yes"; then
8932 gt_use_preinstalled_gnugettext=no
8934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
8935 $as_echo_n "checking whether included gettext is requested... " >&6; }
8937 # Check whether --with-included-gettext was given.
8938 if test "${with_included_gettext+set}" = set; then :
8939 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
8941 nls_cv_force_use_gnu_gettext=no
8944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
8945 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
8947 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
8948 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
8955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
8956 $as_echo_n "checking for GNU gettext in libc... " >&6; }
8957 if ${gt_cv_func_gnugettext1_libc+:} false; then :
8958 $as_echo_n "(cached) " >&6
8960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8961 /* end confdefs.h. */
8962 #include <libintl.h>
8963 extern int _nl_msg_cat_cntr;
8964 extern int *_nl_domain_bindings;
8968 bindtextdomain ("", "");
8969 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
8974 if ac_fn_c_try_link "$LINENO"; then :
8975 gt_cv_func_gnugettext1_libc=yes
8977 gt_cv_func_gnugettext1_libc=no
8979 rm -f core conftest.err conftest.$ac_objext \
8980 conftest$ac_exeext conftest.$ac_ext
8982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
8983 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
8985 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
8991 acl_save_prefix="$prefix"
8992 prefix="$acl_final_prefix"
8993 acl_save_exec_prefix="$exec_prefix"
8994 exec_prefix="$acl_final_exec_prefix"
8996 eval additional_includedir=\"$includedir\"
8997 eval additional_libdir=\"$libdir\"
8999 exec_prefix="$acl_save_exec_prefix"
9000 prefix="$acl_save_prefix"
9003 # Check whether --with-libintl-prefix was given.
9004 if test "${with_libintl_prefix+set}" = set; then :
9005 withval=$with_libintl_prefix;
9006 if test "X$withval" = "Xno"; then
9009 if test "X$withval" = "X"; then
9011 acl_save_prefix="$prefix"
9012 prefix="$acl_final_prefix"
9013 acl_save_exec_prefix="$exec_prefix"
9014 exec_prefix="$acl_final_exec_prefix"
9016 eval additional_includedir=\"$includedir\"
9017 eval additional_libdir=\"$libdir\"
9019 exec_prefix="$acl_save_exec_prefix"
9020 prefix="$acl_save_prefix"
9023 additional_includedir="$withval/include"
9024 additional_libdir="$withval/lib"
9035 names_already_handled=
9036 names_next_round='intl '
9037 while test -n "$names_next_round"; do
9038 names_this_round="$names_next_round"
9040 for name in $names_this_round; do
9042 for n in $names_already_handled; do
9043 if test "$n" = "$name"; then
9048 if test -z "$already_handled"; then
9049 names_already_handled="$names_already_handled $name"
9050 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9051 eval value=\"\$HAVE_LIB$uppername\"
9052 if test -n "$value"; then
9053 if test "$value" = yes; then
9054 eval value=\"\$LIB$uppername\"
9055 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
9056 eval value=\"\$LTLIB$uppername\"
9057 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
9066 if test $use_additional = yes; then
9067 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9068 found_dir="$additional_libdir"
9069 found_so="$additional_libdir/lib$name.$shlibext"
9070 if test -f "$additional_libdir/lib$name.la"; then
9071 found_la="$additional_libdir/lib$name.la"
9074 if test -f "$additional_libdir/lib$name.$libext"; then
9075 found_dir="$additional_libdir"
9076 found_a="$additional_libdir/lib$name.$libext"
9077 if test -f "$additional_libdir/lib$name.la"; then
9078 found_la="$additional_libdir/lib$name.la"
9083 if test "X$found_dir" = "X"; then
9084 for x in $LDFLAGS $LTLIBINTL; do
9086 acl_save_prefix="$prefix"
9087 prefix="$acl_final_prefix"
9088 acl_save_exec_prefix="$exec_prefix"
9089 exec_prefix="$acl_final_exec_prefix"
9091 exec_prefix="$acl_save_exec_prefix"
9092 prefix="$acl_save_prefix"
9096 dir=`echo "X$x" | sed -e 's/^X-L//'`
9097 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9099 found_so="$dir/lib$name.$shlibext"
9100 if test -f "$dir/lib$name.la"; then
9101 found_la="$dir/lib$name.la"
9104 if test -f "$dir/lib$name.$libext"; then
9106 found_a="$dir/lib$name.$libext"
9107 if test -f "$dir/lib$name.la"; then
9108 found_la="$dir/lib$name.la"
9114 if test "X$found_dir" != "X"; then
9119 if test "X$found_dir" != "X"; then
9120 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
9121 if test "X$found_so" != "X"; then
9122 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9123 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9126 for x in $ltrpathdirs; do
9127 if test "X$x" = "X$found_dir"; then
9132 if test -z "$haveit"; then
9133 ltrpathdirs="$ltrpathdirs $found_dir"
9135 if test "$hardcode_direct" = yes; then
9136 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9138 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9139 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9141 for x in $rpathdirs; do
9142 if test "X$x" = "X$found_dir"; then
9147 if test -z "$haveit"; then
9148 rpathdirs="$rpathdirs $found_dir"
9152 for x in $LDFLAGS $LIBINTL; do
9154 acl_save_prefix="$prefix"
9155 prefix="$acl_final_prefix"
9156 acl_save_exec_prefix="$exec_prefix"
9157 exec_prefix="$acl_final_exec_prefix"
9159 exec_prefix="$acl_save_exec_prefix"
9160 prefix="$acl_save_prefix"
9162 if test "X$x" = "X-L$found_dir"; then
9167 if test -z "$haveit"; then
9168 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
9170 if test "$hardcode_minus_L" != no; then
9171 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9173 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
9179 if test "X$found_a" != "X"; then
9180 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
9182 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
9185 additional_includedir=
9186 case "$found_dir" in
9188 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9189 additional_includedir="$basedir/include"
9192 if test "X$additional_includedir" != "X"; then
9193 if test "X$additional_includedir" != "X/usr/include"; then
9195 if test "X$additional_includedir" = "X/usr/local/include"; then
9196 if test -n "$GCC"; then
9198 linux*) haveit=yes;;
9202 if test -z "$haveit"; then
9203 for x in $CPPFLAGS $INCINTL; do
9205 acl_save_prefix="$prefix"
9206 prefix="$acl_final_prefix"
9207 acl_save_exec_prefix="$exec_prefix"
9208 exec_prefix="$acl_final_exec_prefix"
9210 exec_prefix="$acl_save_exec_prefix"
9211 prefix="$acl_save_prefix"
9213 if test "X$x" = "X-I$additional_includedir"; then
9218 if test -z "$haveit"; then
9219 if test -d "$additional_includedir"; then
9220 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
9226 if test -n "$found_la"; then
9227 save_libdir="$libdir"
9229 */* | *\\*) . "$found_la" ;;
9230 *) . "./$found_la" ;;
9232 libdir="$save_libdir"
9233 for dep in $dependency_libs; do
9236 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9237 if test "X$additional_libdir" != "X/usr/lib"; then
9239 if test "X$additional_libdir" = "X/usr/local/lib"; then
9240 if test -n "$GCC"; then
9242 linux*) haveit=yes;;
9246 if test -z "$haveit"; then
9248 for x in $LDFLAGS $LIBINTL; do
9250 acl_save_prefix="$prefix"
9251 prefix="$acl_final_prefix"
9252 acl_save_exec_prefix="$exec_prefix"
9253 exec_prefix="$acl_final_exec_prefix"
9255 exec_prefix="$acl_save_exec_prefix"
9256 prefix="$acl_save_prefix"
9258 if test "X$x" = "X-L$additional_libdir"; then
9263 if test -z "$haveit"; then
9264 if test -d "$additional_libdir"; then
9265 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
9269 for x in $LDFLAGS $LTLIBINTL; do
9271 acl_save_prefix="$prefix"
9272 prefix="$acl_final_prefix"
9273 acl_save_exec_prefix="$exec_prefix"
9274 exec_prefix="$acl_final_exec_prefix"
9276 exec_prefix="$acl_save_exec_prefix"
9277 prefix="$acl_save_prefix"
9279 if test "X$x" = "X-L$additional_libdir"; then
9284 if test -z "$haveit"; then
9285 if test -d "$additional_libdir"; then
9286 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
9293 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9294 if test "$enable_rpath" != no; then
9296 for x in $rpathdirs; do
9297 if test "X$x" = "X$dir"; then
9302 if test -z "$haveit"; then
9303 rpathdirs="$rpathdirs $dir"
9306 for x in $ltrpathdirs; do
9307 if test "X$x" = "X$dir"; then
9312 if test -z "$haveit"; then
9313 ltrpathdirs="$ltrpathdirs $dir"
9318 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9321 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9324 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
9325 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
9331 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
9332 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
9338 if test "X$rpathdirs" != "X"; then
9339 if test -n "$hardcode_libdir_separator"; then
9341 for found_dir in $rpathdirs; do
9342 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9344 acl_save_libdir="$libdir"
9346 eval flag=\"$hardcode_libdir_flag_spec\"
9347 libdir="$acl_save_libdir"
9348 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
9350 for found_dir in $rpathdirs; do
9351 acl_save_libdir="$libdir"
9353 eval flag=\"$hardcode_libdir_flag_spec\"
9354 libdir="$acl_save_libdir"
9355 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
9359 if test "X$ltrpathdirs" != "X"; then
9360 for found_dir in $ltrpathdirs; do
9361 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
9365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
9366 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
9367 if ${gt_cv_func_gnugettext1_libintl+:} false; then :
9368 $as_echo_n "(cached) " >&6
9370 gt_save_CPPFLAGS="$CPPFLAGS"
9371 CPPFLAGS="$CPPFLAGS $INCINTL"
9372 gt_save_LIBS="$LIBS"
9373 LIBS="$LIBS $LIBINTL"
9374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9375 /* end confdefs.h. */
9376 #include <libintl.h>
9377 extern int _nl_msg_cat_cntr;
9382 const char *_nl_expand_alias ();
9386 bindtextdomain ("", "");
9387 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
9392 if ac_fn_c_try_link "$LINENO"; then :
9393 gt_cv_func_gnugettext1_libintl=yes
9395 gt_cv_func_gnugettext1_libintl=no
9397 rm -f core conftest.err conftest.$ac_objext \
9398 conftest$ac_exeext conftest.$ac_ext
9399 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
9400 LIBS="$LIBS $LIBICONV"
9401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9402 /* end confdefs.h. */
9403 #include <libintl.h>
9404 extern int _nl_msg_cat_cntr;
9409 const char *_nl_expand_alias ();
9413 bindtextdomain ("", "");
9414 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
9419 if ac_fn_c_try_link "$LINENO"; then :
9420 LIBINTL="$LIBINTL $LIBICONV"
9421 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
9422 gt_cv_func_gnugettext1_libintl=yes
9425 rm -f core conftest.err conftest.$ac_objext \
9426 conftest$ac_exeext conftest.$ac_ext
9428 CPPFLAGS="$gt_save_CPPFLAGS"
9429 LIBS="$gt_save_LIBS"
9431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
9432 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
9435 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
9436 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
9437 && test "$PACKAGE" != gettext-runtime \
9438 && test "$PACKAGE" != gettext-tools; }; then
9439 gt_use_preinstalled_gnugettext=yes
9447 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
9448 nls_cv_use_gnu_gettext=yes
9452 if test "$nls_cv_use_gnu_gettext" = "yes"; then
9453 BUILD_INCLUDED_LIBINTL=yes
9454 USE_INCLUDED_LIBINTL=yes
9455 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
9456 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
9457 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
9460 if test "$gt_use_preinstalled_gnugettext" = "yes" \
9461 || test "$nls_cv_use_gnu_gettext" = "yes"; then
9466 if test "$gt_use_preinstalled_gnugettext" = "yes" \
9467 || test "$nls_cv_use_gnu_gettext" = "yes"; then
9469 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
9476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
9477 $as_echo_n "checking whether to use NLS... " >&6; }
9478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
9479 $as_echo "$USE_NLS" >&6; }
9480 if test "$USE_NLS" = "yes"; then
9481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
9482 $as_echo_n "checking where the gettext function comes from... " >&6; }
9483 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
9484 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
9485 gt_source="external libintl"
9490 gt_source="included intl directory"
9492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
9493 $as_echo "$gt_source" >&6; }
9496 if test "$USE_NLS" = "yes"; then
9498 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
9499 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
9500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
9501 $as_echo_n "checking how to link with libintl... " >&6; }
9502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
9503 $as_echo "$LIBINTL" >&6; }
9505 for element in $INCINTL; do
9507 for x in $CPPFLAGS; do
9509 acl_save_prefix="$prefix"
9510 prefix="$acl_final_prefix"
9511 acl_save_exec_prefix="$exec_prefix"
9512 exec_prefix="$acl_final_exec_prefix"
9514 exec_prefix="$acl_save_exec_prefix"
9515 prefix="$acl_save_prefix"
9517 if test "X$x" = "X$element"; then
9522 if test -z "$haveit"; then
9523 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9530 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
9533 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
9541 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
9542 BUILD_INCLUDED_LIBINTL=yes
9550 nls_cv_header_libgt=
9561 if test "$USE_INCLUDED_LIBINTL" = yes; then
9562 INTLOBJS="\$(GETTOBJS)"
9566 INTL_LIBTOOL_SUFFIX_PREFIX=
9578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9579 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
9581 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
9582 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
9583 $as_echo_n "(cached) " >&6
9585 cat >conftest.make <<\_ACEOF
9588 @echo '@@@%%%=$(MAKE)=@@@%%%'
9590 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
9591 case `${MAKE-make} -f conftest.make 2>/dev/null` in
9593 eval ac_cv_prog_make_${ac_make}_set=yes;;
9595 eval ac_cv_prog_make_${ac_make}_set=no;;
9599 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9601 $as_echo "yes" >&6; }
9604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9605 $as_echo "no" >&6; }
9606 SET_MAKE="MAKE=${MAKE-make}"
9609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5
9610 $as_echo_n "checking for GNU make... " >&6; }
9611 if ${_cv_gnu_make_command+:} false; then :
9612 $as_echo_n "(cached) " >&6
9614 _cv_gnu_make_command='' ;
9615 for a in "$MAKE" make gmake gnumake ; do
9616 if test -z "$a" ; then continue ; fi ;
9617 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
9618 _cv_gnu_make_command=$a ;
9624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_cv_gnu_make_command" >&5
9625 $as_echo "$_cv_gnu_make_command" >&6; } ;
9626 if test "x$_cv_gnu_make_command" != "x" ; then
9632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"Not found\"" >&5
9633 $as_echo "\"Not found\"" >&6; };
9638 # Extract the first word of "ln", so it can be a program name with args.
9639 set dummy ln; ac_word=$2
9640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9641 $as_echo_n "checking for $ac_word... " >&6; }
9642 if ${ac_cv_path_LN+:} false; then :
9643 $as_echo_n "(cached) " >&6
9647 ac_cv_path_LN="$LN" # Let the user override the test with a path.
9650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9654 test -z "$as_dir" && as_dir=.
9655 for ac_exec_ext in '' $ac_executable_extensions; do
9656 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9657 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
9658 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9665 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
9670 if test -n "$LN"; then
9671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
9672 $as_echo "$LN" >&6; }
9674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9675 $as_echo "no" >&6; }
9679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
9680 $as_echo_n "checking whether ln -s works... " >&6; }
9682 if test "$LN_S" = "ln -s"; then
9683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9684 $as_echo "yes" >&6; }
9686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
9687 $as_echo "no, using $LN_S" >&6; }
9690 # Extract the first word of "mv", so it can be a program name with args.
9691 set dummy mv; ac_word=$2
9692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9693 $as_echo_n "checking for $ac_word... " >&6; }
9694 if ${ac_cv_path_MV+:} false; then :
9695 $as_echo_n "(cached) " >&6
9699 ac_cv_path_MV="$MV" # Let the user override the test with a path.
9702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9706 test -z "$as_dir" && as_dir=.
9707 for ac_exec_ext in '' $ac_executable_extensions; do
9708 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9709 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
9710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9717 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
9722 if test -n "$MV"; then
9723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
9724 $as_echo "$MV" >&6; }
9726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9727 $as_echo "no" >&6; }
9731 # Extract the first word of "cp", so it can be a program name with args.
9732 set dummy cp; ac_word=$2
9733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9734 $as_echo_n "checking for $ac_word... " >&6; }
9735 if ${ac_cv_path_CP+:} false; then :
9736 $as_echo_n "(cached) " >&6
9740 ac_cv_path_CP="$CP" # Let the user override the test with a path.
9743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9747 test -z "$as_dir" && as_dir=.
9748 for ac_exec_ext in '' $ac_executable_extensions; do
9749 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9750 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
9751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9758 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
9763 if test -n "$CP"; then
9764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
9765 $as_echo "$CP" >&6; }
9767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9768 $as_echo "no" >&6; }
9772 # Extract the first word of "rm", so it can be a program name with args.
9773 set dummy rm; ac_word=$2
9774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9775 $as_echo_n "checking for $ac_word... " >&6; }
9776 if ${ac_cv_path_RM+:} false; then :
9777 $as_echo_n "(cached) " >&6
9781 ac_cv_path_RM="$RM" # Let the user override the test with a path.
9784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9788 test -z "$as_dir" && as_dir=.
9789 for ac_exec_ext in '' $ac_executable_extensions; do
9790 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9791 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
9792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9799 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
9804 if test -n "$RM"; then
9805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
9806 $as_echo "$RM" >&6; }
9808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9809 $as_echo "no" >&6; }
9813 # Extract the first word of "chmod", so it can be a program name with args.
9814 set dummy chmod; ac_word=$2
9815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9816 $as_echo_n "checking for $ac_word... " >&6; }
9817 if ${ac_cv_path_CHMOD+:} false; then :
9818 $as_echo_n "(cached) " >&6
9822 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
9825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9829 test -z "$as_dir" && as_dir=.
9830 for ac_exec_ext in '' $ac_executable_extensions; do
9831 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9832 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
9833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9840 test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
9844 CHMOD=$ac_cv_path_CHMOD
9845 if test -n "$CHMOD"; then
9846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
9847 $as_echo "$CHMOD" >&6; }
9849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9850 $as_echo "no" >&6; }
9854 for ac_prog in gawk mawk nawk awk
9856 # Extract the first word of "$ac_prog", so it can be a program name with args.
9857 set dummy $ac_prog; ac_word=$2
9858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9859 $as_echo_n "checking for $ac_word... " >&6; }
9860 if ${ac_cv_prog_AWK+:} false; then :
9861 $as_echo_n "(cached) " >&6
9863 if test -n "$AWK"; then
9864 ac_cv_prog_AWK="$AWK" # Let the user override the test.
9866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9870 test -z "$as_dir" && as_dir=.
9871 for ac_exec_ext in '' $ac_executable_extensions; do
9872 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9873 ac_cv_prog_AWK="$ac_prog"
9874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9884 if test -n "$AWK"; then
9885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
9886 $as_echo "$AWK" >&6; }
9888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9889 $as_echo "no" >&6; }
9893 test -n "$AWK" && break
9896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
9897 $as_echo_n "checking for egrep... " >&6; }
9898 if ${ac_cv_path_EGREP+:} false; then :
9899 $as_echo_n "(cached) " >&6
9901 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
9902 then ac_cv_path_EGREP="$GREP -E"
9904 if test -z "$EGREP"; then
9905 ac_path_EGREP_found=false
9906 # Loop through the user's path and test for each of PROGNAME-LIST
9907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9908 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
9911 test -z "$as_dir" && as_dir=.
9912 for ac_prog in egrep; do
9913 for ac_exec_ext in '' $ac_executable_extensions; do
9914 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
9915 as_fn_executable_p "$ac_path_EGREP" || continue
9916 # Check for GNU ac_path_EGREP and select it if it is found.
9917 # Check for GNU $ac_path_EGREP
9918 case `"$ac_path_EGREP" --version 2>&1` in
9920 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
9923 $as_echo_n 0123456789 >"conftest.in"
9926 cat "conftest.in" "conftest.in" >"conftest.tmp"
9927 mv "conftest.tmp" "conftest.in"
9928 cp "conftest.in" "conftest.nl"
9929 $as_echo 'EGREP' >> "conftest.nl"
9930 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
9931 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
9932 as_fn_arith $ac_count + 1 && ac_count=$as_val
9933 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
9934 # Best one so far, save it but keep looking for a better one
9935 ac_cv_path_EGREP="$ac_path_EGREP"
9936 ac_path_EGREP_max=$ac_count
9938 # 10*(2^10) chars as input seems more than enough
9939 test $ac_count -gt 10 && break
9941 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
9944 $ac_path_EGREP_found && break 3
9949 if test -z "$ac_cv_path_EGREP"; then
9950 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
9953 ac_cv_path_EGREP=$EGREP
9958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
9959 $as_echo "$ac_cv_path_EGREP" >&6; }
9960 EGREP="$ac_cv_path_EGREP"
9963 # Extract the first word of "sed", so it can be a program name with args.
9964 set dummy sed; ac_word=$2
9965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9966 $as_echo_n "checking for $ac_word... " >&6; }
9967 if ${ac_cv_path_SED+:} false; then :
9968 $as_echo_n "(cached) " >&6
9972 ac_cv_path_SED="$SED" # Let the user override the test with a path.
9975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9979 test -z "$as_dir" && as_dir=.
9980 for ac_exec_ext in '' $ac_executable_extensions; do
9981 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9982 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
9983 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9990 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
9995 if test -n "$SED"; then
9996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
9997 $as_echo "$SED" >&6; }
9999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10000 $as_echo "no" >&6; }
10004 # Extract the first word of "perl", so it can be a program name with args.
10005 set dummy perl; ac_word=$2
10006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10007 $as_echo_n "checking for $ac_word... " >&6; }
10008 if ${ac_cv_path_PERL+:} false; then :
10009 $as_echo_n "(cached) " >&6
10013 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
10016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10017 for as_dir in $PATH
10020 test -z "$as_dir" && as_dir=.
10021 for ac_exec_ext in '' $ac_executable_extensions; do
10022 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10023 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
10024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10031 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
10035 PERL=$ac_cv_path_PERL
10036 if test -n "$PERL"; then
10037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
10038 $as_echo "$PERL" >&6; }
10040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10041 $as_echo "no" >&6; }
10045 # Extract the first word of "ldconfig", so it can be a program name with args.
10046 set dummy ldconfig; ac_word=$2
10047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10048 $as_echo_n "checking for $ac_word... " >&6; }
10049 if ${ac_cv_path_LDCONFIG+:} false; then :
10050 $as_echo_n "(cached) " >&6
10054 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
10057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10058 for as_dir in $PATH
10061 test -z "$as_dir" && as_dir=.
10062 for ac_exec_ext in '' $ac_executable_extensions; do
10063 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10064 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
10065 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10072 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
10076 LDCONFIG=$ac_cv_path_LDCONFIG
10077 if test -n "$LDCONFIG"; then
10078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
10079 $as_echo "$LDCONFIG" >&6; }
10081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10082 $as_echo "no" >&6; }
10086 if test -n "$ac_tool_prefix"; then
10087 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
10088 set dummy ${ac_tool_prefix}ar; ac_word=$2
10089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10090 $as_echo_n "checking for $ac_word... " >&6; }
10091 if ${ac_cv_prog_AR+:} false; then :
10092 $as_echo_n "(cached) " >&6
10094 if test -n "$AR"; then
10095 ac_cv_prog_AR="$AR" # Let the user override the test.
10097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10098 for as_dir in $PATH
10101 test -z "$as_dir" && as_dir=.
10102 for ac_exec_ext in '' $ac_executable_extensions; do
10103 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10104 ac_cv_prog_AR="${ac_tool_prefix}ar"
10105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10115 if test -n "$AR"; then
10116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10117 $as_echo "$AR" >&6; }
10119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10120 $as_echo "no" >&6; }
10125 if test -z "$ac_cv_prog_AR"; then
10127 # Extract the first word of "ar", so it can be a program name with args.
10128 set dummy ar; ac_word=$2
10129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10130 $as_echo_n "checking for $ac_word... " >&6; }
10131 if ${ac_cv_prog_ac_ct_AR+:} false; then :
10132 $as_echo_n "(cached) " >&6
10134 if test -n "$ac_ct_AR"; then
10135 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
10137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10138 for as_dir in $PATH
10141 test -z "$as_dir" && as_dir=.
10142 for ac_exec_ext in '' $ac_executable_extensions; do
10143 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10144 ac_cv_prog_ac_ct_AR="ar"
10145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10154 ac_ct_AR=$ac_cv_prog_ac_ct_AR
10155 if test -n "$ac_ct_AR"; then
10156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
10157 $as_echo "$ac_ct_AR" >&6; }
10159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10160 $as_echo "no" >&6; }
10163 if test "x$ac_ct_AR" = x; then
10166 case $cross_compiling:$ac_tool_warned in
10168 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10169 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10170 ac_tool_warned=yes ;;
10175 AR="$ac_cv_prog_AR"
10178 if test -n "$ac_tool_prefix"; then
10179 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
10180 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
10181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10182 $as_echo_n "checking for $ac_word... " >&6; }
10183 if ${ac_cv_prog_RANLIB+:} false; then :
10184 $as_echo_n "(cached) " >&6
10186 if test -n "$RANLIB"; then
10187 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10190 for as_dir in $PATH
10193 test -z "$as_dir" && as_dir=.
10194 for ac_exec_ext in '' $ac_executable_extensions; do
10195 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10196 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
10197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10206 RANLIB=$ac_cv_prog_RANLIB
10207 if test -n "$RANLIB"; then
10208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
10209 $as_echo "$RANLIB" >&6; }
10211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10212 $as_echo "no" >&6; }
10217 if test -z "$ac_cv_prog_RANLIB"; then
10218 ac_ct_RANLIB=$RANLIB
10219 # Extract the first word of "ranlib", so it can be a program name with args.
10220 set dummy ranlib; ac_word=$2
10221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10222 $as_echo_n "checking for $ac_word... " >&6; }
10223 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
10224 $as_echo_n "(cached) " >&6
10226 if test -n "$ac_ct_RANLIB"; then
10227 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
10229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10230 for as_dir in $PATH
10233 test -z "$as_dir" && as_dir=.
10234 for ac_exec_ext in '' $ac_executable_extensions; do
10235 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10236 ac_cv_prog_ac_ct_RANLIB="ranlib"
10237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10246 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
10247 if test -n "$ac_ct_RANLIB"; then
10248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
10249 $as_echo "$ac_ct_RANLIB" >&6; }
10251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10252 $as_echo "no" >&6; }
10255 if test "x$ac_ct_RANLIB" = x; then
10258 case $cross_compiling:$ac_tool_warned in
10260 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10261 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10262 ac_tool_warned=yes ;;
10264 RANLIB=$ac_ct_RANLIB
10267 RANLIB="$ac_cv_prog_RANLIB"
10270 if test -n "$ac_tool_prefix"; then
10271 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
10272 set dummy ${ac_tool_prefix}strip; ac_word=$2
10273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10274 $as_echo_n "checking for $ac_word... " >&6; }
10275 if ${ac_cv_prog_STRIP+:} false; then :
10276 $as_echo_n "(cached) " >&6
10278 if test -n "$STRIP"; then
10279 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
10281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10282 for as_dir in $PATH
10285 test -z "$as_dir" && as_dir=.
10286 for ac_exec_ext in '' $ac_executable_extensions; do
10287 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10288 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
10289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10298 STRIP=$ac_cv_prog_STRIP
10299 if test -n "$STRIP"; then
10300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
10301 $as_echo "$STRIP" >&6; }
10303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10304 $as_echo "no" >&6; }
10309 if test -z "$ac_cv_prog_STRIP"; then
10311 # Extract the first word of "strip", so it can be a program name with args.
10312 set dummy strip; ac_word=$2
10313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10314 $as_echo_n "checking for $ac_word... " >&6; }
10315 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
10316 $as_echo_n "(cached) " >&6
10318 if test -n "$ac_ct_STRIP"; then
10319 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
10321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10322 for as_dir in $PATH
10325 test -z "$as_dir" && as_dir=.
10326 for ac_exec_ext in '' $ac_executable_extensions; do
10327 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10328 ac_cv_prog_ac_ct_STRIP="strip"
10329 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10338 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
10339 if test -n "$ac_ct_STRIP"; then
10340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
10341 $as_echo "$ac_ct_STRIP" >&6; }
10343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10344 $as_echo "no" >&6; }
10347 if test "x$ac_ct_STRIP" = x; then
10350 case $cross_compiling:$ac_tool_warned in
10352 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10353 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10354 ac_tool_warned=yes ;;
10359 STRIP="$ac_cv_prog_STRIP"
10362 # Extract the first word of "makeinfo", so it can be a program name with args.
10363 set dummy makeinfo; ac_word=$2
10364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10365 $as_echo_n "checking for $ac_word... " >&6; }
10366 if ${ac_cv_prog_MAKEINFO+:} false; then :
10367 $as_echo_n "(cached) " >&6
10369 if test -n "$MAKEINFO"; then
10370 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
10372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10373 for as_dir in $PATH
10376 test -z "$as_dir" && as_dir=.
10377 for ac_exec_ext in '' $ac_executable_extensions; do
10378 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10379 ac_cv_prog_MAKEINFO="makeinfo"
10380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10389 MAKEINFO=$ac_cv_prog_MAKEINFO
10390 if test -n "$MAKEINFO"; then
10391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
10392 $as_echo "$MAKEINFO" >&6; }
10394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10395 $as_echo "no" >&6; }
10399 if test "_$MAKEINFO" = "_"; then
10400 MAKEINFO="@echo Makeinfo is missing. Info documentation will not be built.;true"
10402 case "$MAKEINFO" in
10404 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
10405 *** Makeinfo is missing. Info documentation will not be built." >&5
10406 $as_echo "$as_me: WARNING:
10407 *** Makeinfo is missing. Info documentation will not be built." >&2;}
10415 # See if we need a separate native compiler.
10416 if test $cross_compiling = no; then
10420 for ac_prog in gcc cc
10422 # Extract the first word of "$ac_prog", so it can be a program name with args.
10423 set dummy $ac_prog; ac_word=$2
10424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10425 $as_echo_n "checking for $ac_word... " >&6; }
10426 if ${ac_cv_prog_BUILD_CC+:} false; then :
10427 $as_echo_n "(cached) " >&6
10429 if test -n "$BUILD_CC"; then
10430 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
10432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10433 for as_dir in $PATH
10436 test -z "$as_dir" && as_dir=.
10437 for ac_exec_ext in '' $ac_executable_extensions; do
10438 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10439 ac_cv_prog_BUILD_CC="$ac_prog"
10440 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10449 BUILD_CC=$ac_cv_prog_BUILD_CC
10450 if test -n "$BUILD_CC"; then
10451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
10452 $as_echo "$BUILD_CC" >&6; }
10454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10455 $as_echo "no" >&6; }
10459 test -n "$BUILD_CC" && break
10463 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
10465 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10466 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10467 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10468 cat >>confdefs.h <<_ACEOF
10469 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10476 for ac_header in sys/disk.h sys/mount.h
10478 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10479 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
10480 #if HAVE_SYS_QUEUE_H
10481 #include <sys/queue.h>
10485 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10486 cat >>confdefs.h <<_ACEOF
10487 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10494 for ac_header in net/if.h
10496 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
10497 #if HAVE_SYS_TYPES_H
10498 #include <sys/types.h>
10500 #if HAVE_SYS_SOCKET
10501 #include <sys/socket.h>
10505 if test "x$ac_cv_header_net_if_h" = xyes; then :
10506 cat >>confdefs.h <<_ACEOF
10507 #define HAVE_NET_IF_H 1
10514 for ac_func in vprintf
10516 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
10517 if test "x$ac_cv_func_vprintf" = xyes; then :
10518 cat >>confdefs.h <<_ACEOF
10519 #define HAVE_VPRINTF 1
10522 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
10523 if test "x$ac_cv_func__doprnt" = xyes; then :
10525 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
10533 ac_fn_c_check_member "$LINENO" "struct dirent" "d_reclen" "ac_cv_member_struct_dirent_d_reclen" "#include <dirent.h>
10535 if test "x$ac_cv_member_struct_dirent_d_reclen" = xyes; then :
10537 $as_echo "#define HAVE_RECLEN_DIRENT 1" >>confdefs.h
10541 ac_fn_c_check_member "$LINENO" "struct stat" "st_atim" "ac_cv_member_struct_stat_st_atim" "$ac_includes_default"
10542 if test "x$ac_cv_member_struct_stat_st_atim" = xyes; then :
10544 cat >>confdefs.h <<_ACEOF
10545 #define HAVE_STRUCT_STAT_ST_ATIM 1
10551 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "#include <sys/types.h>
10553 if test "x$ac_cv_type_ssize_t" = xyes; then :
10555 $as_echo "#define HAVE_TYPE_SSIZE_T 1" >>confdefs.h
10559 ac_fn_c_check_decl "$LINENO" "llseek" "ac_cv_have_decl_llseek" "#include <unistd.h>
10561 if test "x$ac_cv_have_decl_llseek" = xyes; then :
10563 $as_echo "#define HAVE_LLSEEK_PROTOTYPE 1" >>confdefs.h
10567 ac_fn_c_check_decl "$LINENO" "lseek64" "ac_cv_have_decl_lseek64" "#define _LARGEFILE_SOURCE
10568 #define _LARGEFILE64_SOURCE
10569 #include <unistd.h>
10571 if test "x$ac_cv_have_decl_lseek64" = xyes; then :
10573 $as_echo "#define HAVE_LSEEK64_PROTOTYPE 1" >>confdefs.h
10577 # The cast to long int works around a bug in the HP C Compiler
10578 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10579 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10580 # This bug is HP SR number 8606223364.
10581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
10582 $as_echo_n "checking size of short... " >&6; }
10583 if ${ac_cv_sizeof_short+:} false; then :
10584 $as_echo_n "(cached) " >&6
10586 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
10589 if test "$ac_cv_type_short" = yes; then
10590 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10591 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10592 as_fn_error 77 "cannot compute sizeof (short)
10593 See \`config.log' for more details" "$LINENO" 5; }
10595 ac_cv_sizeof_short=0
10600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
10601 $as_echo "$ac_cv_sizeof_short" >&6; }
10605 cat >>confdefs.h <<_ACEOF
10606 #define SIZEOF_SHORT $ac_cv_sizeof_short
10610 # The cast to long int works around a bug in the HP C Compiler
10611 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10612 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10613 # This bug is HP SR number 8606223364.
10614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
10615 $as_echo_n "checking size of int... " >&6; }
10616 if ${ac_cv_sizeof_int+:} false; then :
10617 $as_echo_n "(cached) " >&6
10619 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
10622 if test "$ac_cv_type_int" = yes; then
10623 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10624 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10625 as_fn_error 77 "cannot compute sizeof (int)
10626 See \`config.log' for more details" "$LINENO" 5; }
10633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
10634 $as_echo "$ac_cv_sizeof_int" >&6; }
10638 cat >>confdefs.h <<_ACEOF
10639 #define SIZEOF_INT $ac_cv_sizeof_int
10643 # The cast to long int works around a bug in the HP C Compiler
10644 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10645 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10646 # This bug is HP SR number 8606223364.
10647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
10648 $as_echo_n "checking size of long... " >&6; }
10649 if ${ac_cv_sizeof_long+:} false; then :
10650 $as_echo_n "(cached) " >&6
10652 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
10655 if test "$ac_cv_type_long" = yes; then
10656 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10657 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10658 as_fn_error 77 "cannot compute sizeof (long)
10659 See \`config.log' for more details" "$LINENO" 5; }
10661 ac_cv_sizeof_long=0
10666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
10667 $as_echo "$ac_cv_sizeof_long" >&6; }
10671 cat >>confdefs.h <<_ACEOF
10672 #define SIZEOF_LONG $ac_cv_sizeof_long
10676 # The cast to long int works around a bug in the HP C Compiler
10677 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10678 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10679 # This bug is HP SR number 8606223364.
10680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
10681 $as_echo_n "checking size of long long... " >&6; }
10682 if ${ac_cv_sizeof_long_long+:} false; then :
10683 $as_echo_n "(cached) " >&6
10685 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
10688 if test "$ac_cv_type_long_long" = yes; then
10689 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10690 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10691 as_fn_error 77 "cannot compute sizeof (long long)
10692 See \`config.log' for more details" "$LINENO" 5; }
10694 ac_cv_sizeof_long_long=0
10699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
10700 $as_echo "$ac_cv_sizeof_long_long" >&6; }
10704 cat >>confdefs.h <<_ACEOF
10705 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10709 # The cast to long int works around a bug in the HP C Compiler
10710 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10711 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10712 # This bug is HP SR number 8606223364.
10713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
10714 $as_echo_n "checking size of off_t... " >&6; }
10715 if ${ac_cv_sizeof_off_t+:} false; then :
10716 $as_echo_n "(cached) " >&6
10718 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
10721 if test "$ac_cv_type_off_t" = yes; then
10722 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10723 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10724 as_fn_error 77 "cannot compute sizeof (off_t)
10725 See \`config.log' for more details" "$LINENO" 5; }
10727 ac_cv_sizeof_off_t=0
10732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
10733 $as_echo "$ac_cv_sizeof_off_t" >&6; }
10737 cat >>confdefs.h <<_ACEOF
10738 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
10742 SIZEOF_SHORT=$ac_cv_sizeof_short
10743 SIZEOF_INT=$ac_cv_sizeof_int
10744 SIZEOF_LONG=$ac_cv_sizeof_long
10745 SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
10746 SIZEOF_OFF_T=$ac_cv_sizeof_off_t
10752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
10753 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
10754 if ${ac_cv_c_bigendian+:} false; then :
10755 $as_echo_n "(cached) " >&6
10757 ac_cv_c_bigendian=unknown
10758 # See if we're dealing with a universal compiler.
10759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10760 /* end confdefs.h. */
10761 #ifndef __APPLE_CC__
10762 not a universal capable compiler
10767 if ac_fn_c_try_compile "$LINENO"; then :
10769 # Check for potential -arch flags. It is not universal unless
10770 # there are at least two -arch flags with different values.
10773 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
10774 if test -n "$ac_prev"; then
10776 i?86 | x86_64 | ppc | ppc64)
10777 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
10780 ac_cv_c_bigendian=universal
10786 elif test "x$ac_word" = "x-arch"; then
10791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10792 if test $ac_cv_c_bigendian = unknown; then
10793 # See if sys/param.h defines the BYTE_ORDER macro.
10794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10795 /* end confdefs.h. */
10796 #include <sys/types.h>
10797 #include <sys/param.h>
10802 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
10803 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
10805 bogus endian macros
10812 if ac_fn_c_try_compile "$LINENO"; then :
10813 # It does; now see whether it defined to BIG_ENDIAN or not.
10814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10815 /* end confdefs.h. */
10816 #include <sys/types.h>
10817 #include <sys/param.h>
10822 #if BYTE_ORDER != BIG_ENDIAN
10830 if ac_fn_c_try_compile "$LINENO"; then :
10831 ac_cv_c_bigendian=yes
10833 ac_cv_c_bigendian=no
10835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10839 if test $ac_cv_c_bigendian = unknown; then
10840 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
10841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10842 /* end confdefs.h. */
10843 #include <limits.h>
10848 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
10849 bogus endian macros
10856 if ac_fn_c_try_compile "$LINENO"; then :
10857 # It does; now see whether it defined to _BIG_ENDIAN or not.
10858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10859 /* end confdefs.h. */
10860 #include <limits.h>
10865 #ifndef _BIG_ENDIAN
10873 if ac_fn_c_try_compile "$LINENO"; then :
10874 ac_cv_c_bigendian=yes
10876 ac_cv_c_bigendian=no
10878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10882 if test $ac_cv_c_bigendian = unknown; then
10883 # Compile a test program.
10884 if test "$cross_compiling" = yes; then :
10885 # Try to guess by grepping values from an object file.
10886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10887 /* end confdefs.h. */
10888 short int ascii_mm[] =
10889 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
10890 short int ascii_ii[] =
10891 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
10892 int use_ascii (int i) {
10893 return ascii_mm[i] + ascii_ii[i];
10895 short int ebcdic_ii[] =
10896 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
10897 short int ebcdic_mm[] =
10898 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
10899 int use_ebcdic (int i) {
10900 return ebcdic_mm[i] + ebcdic_ii[i];
10907 return use_ascii (foo) == use_ebcdic (foo);
10912 if ac_fn_c_try_compile "$LINENO"; then :
10913 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
10914 ac_cv_c_bigendian=yes
10916 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
10917 if test "$ac_cv_c_bigendian" = unknown; then
10918 ac_cv_c_bigendian=no
10920 # finding both strings is unlikely to happen, but who knows?
10921 ac_cv_c_bigendian=unknown
10925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10928 /* end confdefs.h. */
10929 $ac_includes_default
10934 /* Are we little or big endian? From Harbison&Steele. */
10938 char c[sizeof (long int)];
10941 return u.c[sizeof (long int) - 1] == 1;
10947 if ac_fn_c_try_run "$LINENO"; then :
10948 ac_cv_c_bigendian=no
10950 ac_cv_c_bigendian=yes
10952 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10953 conftest.$ac_objext conftest.beam conftest.$ac_ext
10958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
10959 $as_echo "$ac_cv_c_bigendian" >&6; }
10960 case $ac_cv_c_bigendian in #(
10962 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
10968 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
10972 as_fn_error $? "unknown endianness
10973 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
10976 BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
10977 ASM_TYPES_HEADER=./asm_types.h
10979 echo "/* These defines are needed for the public ext2fs.h header file */" \
10981 if grep HAVE_SYS_TYPES_H confdefs.h > tmp_config.$$; then
10982 uniq tmp_config.$$ >> public_config.h
10984 echo "#undef HAVE_SYS_TYPES_H" >> public_config.h
10986 if grep WORDS_BIGENDIAN confdefs.h > tmp_config.$$; then
10987 uniq tmp_config.$$ >> public_config.h
10989 echo "#undef WORDS_BIGENDIAN" >> public_config.h
10991 rm -f tmp_config.$$
10992 PUBLIC_CONFIG_HEADER=./public_config.h
10994 for ac_header in inttypes.h
10996 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
10997 if test "x$ac_cv_header_inttypes_h" = xyes; then :
10998 cat >>confdefs.h <<_ACEOF
10999 #define HAVE_INTTYPES_H 1
11006 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
11007 if test "x$ac_cv_type_intptr_t" = xyes; then :
11009 cat >>confdefs.h <<_ACEOF
11010 #define HAVE_INTPTR_T 1
11016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat has a st_flags field" >&5
11017 $as_echo_n "checking whether struct stat has a st_flags field... " >&6; }
11018 if ${e2fsprogs_cv_struct_st_flags+:} false; then :
11019 $as_echo_n "(cached) " >&6
11021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11022 /* end confdefs.h. */
11023 #include <sys/stat.h>
11027 struct stat stat; stat.st_flags = 0;
11032 if ac_fn_c_try_compile "$LINENO"; then :
11033 e2fsprogs_cv_struct_st_flags=yes
11035 e2fsprogs_cv_struct_st_flags=no
11037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags" >&5
11041 $as_echo "$e2fsprogs_cv_struct_st_flags" >&6; }
11042 if test "$e2fsprogs_cv_struct_st_flags" = yes; then
11043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether st_flags field is useful" >&5
11044 $as_echo_n "checking whether st_flags field is useful... " >&6; }
11045 if ${e2fsprogs_cv_struct_st_flags_immut+:} false; then :
11046 $as_echo_n "(cached) " >&6
11048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11049 /* end confdefs.h. */
11050 #include <sys/stat.h>
11054 struct stat stat; stat.st_flags |= UF_IMMUTABLE;
11059 if ac_fn_c_try_compile "$LINENO"; then :
11060 e2fsprogs_cv_struct_st_flags_immut=yes
11062 e2fsprogs_cv_struct_st_flags_immut=no
11064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags_immut" >&5
11068 $as_echo "$e2fsprogs_cv_struct_st_flags_immut" >&6; }
11069 if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
11071 $as_echo "#define HAVE_STAT_FLAGS 1" >>confdefs.h
11075 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h>
11076 #include <sys/socket.h>
11078 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
11080 cat >>confdefs.h <<_ACEOF
11081 #define HAVE_SA_LEN 1
11086 if test -n "$BLKID_CMT"; then
11087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing blkid_probe_all" >&5
11088 $as_echo_n "checking for library containing blkid_probe_all... " >&6; }
11089 if ${ac_cv_search_blkid_probe_all+:} false; then :
11090 $as_echo_n "(cached) " >&6
11092 ac_func_search_save_LIBS=$LIBS
11093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11094 /* end confdefs.h. */
11096 /* Override any GCC internal prototype to avoid an error.
11097 Use char because int might match the return type of a GCC
11098 builtin and then its argument prototype would still apply. */
11102 char blkid_probe_all ();
11106 return blkid_probe_all ();
11111 for ac_lib in '' blkid; do
11112 if test -z "$ac_lib"; then
11113 ac_res="none required"
11116 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11118 if ac_fn_c_try_link "$LINENO"; then :
11119 ac_cv_search_blkid_probe_all=$ac_res
11121 rm -f core conftest.err conftest.$ac_objext \
11123 if ${ac_cv_search_blkid_probe_all+:} false; then :
11127 if ${ac_cv_search_blkid_probe_all+:} false; then :
11130 ac_cv_search_blkid_probe_all=no
11132 rm conftest.$ac_ext
11133 LIBS=$ac_func_search_save_LIBS
11135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_blkid_probe_all" >&5
11136 $as_echo "$ac_cv_search_blkid_probe_all" >&6; }
11137 ac_res=$ac_cv_search_blkid_probe_all
11138 if test "$ac_res" != no; then :
11139 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11144 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
11146 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11147 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11148 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11149 cat >>confdefs.h <<_ACEOF
11150 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
11158 $as_echo_n "checking for socket in -lsocket... " >&6; }
11159 if ${ac_cv_lib_socket_socket+:} false; then :
11160 $as_echo_n "(cached) " >&6
11162 ac_check_lib_save_LIBS=$LIBS
11163 LIBS="-lsocket $LIBS"
11164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11165 /* end confdefs.h. */
11167 /* Override any GCC internal prototype to avoid an error.
11168 Use char because int might match the return type of a GCC
11169 builtin and then its argument prototype would still apply. */
11182 if ac_fn_c_try_link "$LINENO"; then :
11183 ac_cv_lib_socket_socket=yes
11185 ac_cv_lib_socket_socket=no
11187 rm -f core conftest.err conftest.$ac_objext \
11188 conftest$ac_exeext conftest.$ac_ext
11189 LIBS=$ac_check_lib_save_LIBS
11191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
11192 $as_echo "$ac_cv_lib_socket_socket" >&6; }
11193 if test "x$ac_cv_lib_socket_socket" = xyes; then :
11194 SOCKET_LIB=-lsocket
11198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for optreset" >&5
11199 $as_echo_n "checking for optreset... " >&6; }
11200 if ${ac_cv_have_optreset+:} false; then :
11201 $as_echo_n "(cached) " >&6
11203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11204 /* end confdefs.h. */
11205 #include <unistd.h>
11208 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11209 $EGREP "optreset" >/dev/null 2>&1; then :
11210 ac_cv_have_optreset=yes
11212 ac_cv_have_optreset=no
11217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_optreset" >&5
11218 $as_echo "$ac_cv_have_optreset" >&6; }
11219 if test $ac_cv_have_optreset = yes; then
11221 $as_echo "#define HAVE_OPTRESET 1" >>confdefs.h
11226 ac_fn_c_check_func "$LINENO" "sem_init" "ac_cv_func_sem_init"
11227 if test "x$ac_cv_func_sem_init" = xyes; then :
11230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lpthread" >&5
11231 $as_echo_n "checking for sem_init in -lpthread... " >&6; }
11232 if ${ac_cv_lib_pthread_sem_init+:} false; then :
11233 $as_echo_n "(cached) " >&6
11235 ac_check_lib_save_LIBS=$LIBS
11236 LIBS="-lpthread $LIBS"
11237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11238 /* end confdefs.h. */
11240 /* Override any GCC internal prototype to avoid an error.
11241 Use char because int might match the return type of a GCC
11242 builtin and then its argument prototype would still apply. */
11250 return sem_init ();
11255 if ac_fn_c_try_link "$LINENO"; then :
11256 ac_cv_lib_pthread_sem_init=yes
11258 ac_cv_lib_pthread_sem_init=no
11260 rm -f core conftest.err conftest.$ac_objext \
11261 conftest$ac_exeext conftest.$ac_ext
11262 LIBS=$ac_check_lib_save_LIBS
11264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_sem_init" >&5
11265 $as_echo "$ac_cv_lib_pthread_sem_init" >&6; }
11266 if test "x$ac_cv_lib_pthread_sem_init" = xyes; then :
11267 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
11269 SEM_INIT_LIB=-lpthread
11271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lrt" >&5
11272 $as_echo_n "checking for sem_init in -lrt... " >&6; }
11273 if ${ac_cv_lib_rt_sem_init+:} false; then :
11274 $as_echo_n "(cached) " >&6
11276 ac_check_lib_save_LIBS=$LIBS
11278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11279 /* end confdefs.h. */
11281 /* Override any GCC internal prototype to avoid an error.
11282 Use char because int might match the return type of a GCC
11283 builtin and then its argument prototype would still apply. */
11291 return sem_init ();
11296 if ac_fn_c_try_link "$LINENO"; then :
11297 ac_cv_lib_rt_sem_init=yes
11299 ac_cv_lib_rt_sem_init=no
11301 rm -f core conftest.err conftest.$ac_objext \
11302 conftest$ac_exeext conftest.$ac_ext
11303 LIBS=$ac_check_lib_save_LIBS
11305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sem_init" >&5
11306 $as_echo "$ac_cv_lib_rt_sem_init" >&6; }
11307 if test "x$ac_cv_lib_rt_sem_init" = xyes; then :
11308 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
11312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lposix4" >&5
11313 $as_echo_n "checking for sem_init in -lposix4... " >&6; }
11314 if ${ac_cv_lib_posix4_sem_init+:} false; then :
11315 $as_echo_n "(cached) " >&6
11317 ac_check_lib_save_LIBS=$LIBS
11318 LIBS="-lposix4 $LIBS"
11319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11320 /* end confdefs.h. */
11322 /* Override any GCC internal prototype to avoid an error.
11323 Use char because int might match the return type of a GCC
11324 builtin and then its argument prototype would still apply. */
11332 return sem_init ();
11337 if ac_fn_c_try_link "$LINENO"; then :
11338 ac_cv_lib_posix4_sem_init=yes
11340 ac_cv_lib_posix4_sem_init=no
11342 rm -f core conftest.err conftest.$ac_objext \
11343 conftest$ac_exeext conftest.$ac_ext
11344 LIBS=$ac_check_lib_save_LIBS
11346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sem_init" >&5
11347 $as_echo "$ac_cv_lib_posix4_sem_init" >&6; }
11348 if test "x$ac_cv_lib_posix4_sem_init" = xyes; then :
11349 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
11351 SEM_INIT_LIB=-lposix4
11360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unified diff option" >&5
11361 $as_echo_n "checking for unified diff option... " >&6; }
11362 if diff -u $0 $0 > /dev/null 2>&1 ; then
11367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNI_DIFF_OPTS" >&5
11368 $as_echo "$UNI_DIFF_OPTS" >&6; }
11373 $as_echo "#define HAVE_EXT2_IOCTLS 1" >>confdefs.h
11393 linux* | gnu* | k*bsd*-gnu)
11394 if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
11396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, root_prefix defaults to ''" >&5
11397 $as_echo "On $host_os systems, root_prefix defaults to ''" >&6; }
11402 linux* | gnu* | k*bsd*-gnu)
11403 if test "$prefix" = NONE ; then
11405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, prefix defaults to /usr" >&5
11406 $as_echo "On $host_os systems, prefix defaults to /usr" >&6; }
11407 if test "$mandir" = '${prefix}/man' ; then
11408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ...and mandir defaults to /usr/share/man" >&5
11409 $as_echo "...and mandir defaults to /usr/share/man" >&6; }
11410 mandir=/usr/share/man
11415 if test "$root_prefix" = NONE ; then
11416 if test "$prefix" = NONE ; then
11417 root_prefix="$ac_default_prefix"
11419 root_prefix="$prefix"
11421 root_bindir=$bindir
11422 root_sbindir=$sbindir
11423 root_libdir=$libdir
11424 root_sysconfdir=$sysconfdir
11426 root_bindir='${root_prefix}/bin'
11427 root_sbindir='${root_prefix}/sbin'
11428 root_libdir='${root_prefix}/lib'
11429 root_sysconfdir='${root_prefix}/etc'
11431 if test "$bindir" != '${exec_prefix}/bin'; then
11432 root_bindir=$bindir
11433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_bindir to $root_bindir" >&5
11434 $as_echo "Setting root_bindir to $root_bindir" >&6; }
11436 if test "$sbindir" != '${exec_prefix}/sbin'; then
11437 root_sbindir=$sbindir
11438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sbindir to $root_sbindir" >&5
11439 $as_echo "Setting root_sbindir to $root_sbindir" >&6; }
11441 if test "$libdir" != '${exec_prefix}/lib'; then
11442 root_libdir=$libdir
11443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_libdir to $root_libdir" >&5
11444 $as_echo "Setting root_libdir to $root_libdir" >&6; }
11446 if test "$sysconfdir" != '${prefix}/etc'; then
11447 root_sysconfdir=$sysconfdir
11448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sysconfdir to $root_sysconfdir" >&5
11449 $as_echo "Setting root_sysconfdir to $root_sysconfdir" >&6; }
11457 # Check whether --with-multiarch was given.
11458 if test "${with_multiarch+set}" = set; then :
11459 withval=$with_multiarch; libdir=$libdir/$withval
11460 root_libdir=$root_libdir/$withval
11463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can link with -static" >&5
11464 $as_echo_n "checking whether we can link with -static... " >&6; }
11465 if ${ac_cv_e2fsprogs_use_static+:} false; then :
11466 $as_echo_n "(cached) " >&6
11468 SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static"
11469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11470 /* end confdefs.h. */
11480 if ac_fn_c_try_link "$LINENO"; then :
11481 ac_cv_e2fsprogs_use_static=yes
11483 ac_cv_e2fsprogs_use_static=no
11485 rm -f core conftest.err conftest.$ac_objext \
11486 conftest$ac_exeext conftest.$ac_ext
11487 LDFLAGS=$SAVE_LDFLAGS
11492 ac_cv_e2fsprogs_use_static=no
11495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_e2fsprogs_use_static" >&5
11496 $as_echo "$ac_cv_e2fsprogs_use_static" >&6; }
11498 if test $ac_cv_e2fsprogs_use_static = yes; then
11499 LDFLAG_STATIC=-static
11504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using Apple Darwin / GNU libintl workaround" >&5
11505 $as_echo "Using Apple Darwin / GNU libintl workaround" >&6; }
11507 $as_echo "#define _INTL_REDIRECT_MACROS 1" >>confdefs.h
11511 SS_DIR=`cd ${srcdir}/lib/ss; pwd`
11512 ET_DIR=`cd ${srcdir}/lib/et; pwd`
11515 if test "$cross_compiling" = yes ; then
11518 DO_TEST_SUITE=check
11521 INCLUDES='-I. -I$(top_builddir)/lib -I$(top_srcdir)/lib'
11522 if test -n "$CPPFLAGS" ; then
11523 INCLUDES="$INCLUDES $CPPFLAGS"
11525 if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
11526 INCLUDES=$INCLUDES' -I$(top_builddir)/intl -I$(top_srcdir)/intl'
11528 if test -n "$WITH_DIET_LIBC" ; then
11529 INCLUDES="$INCLUDES -D_REENTRANT"
11532 if test $cross_compiling = no; then
11533 BUILD_CFLAGS="$CFLAGS $CPPFLAGS $INCLUDES -DHAVE_CONFIG_H"
11534 BUILD_LDFLAGS="$LDFLAGS"
11541 test -d lib || mkdir lib
11542 test -d include || mkdir include
11543 test -d include/linux || mkdir include/linux
11544 test -d include/asm || mkdir include/asm
11545 for i in MCONFIG Makefile e2fsprogs.spec \
11546 util/Makefile util/subst.conf util/gen-tarball util/install-symlink \
11547 lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \
11548 lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \
11549 lib/uuid/Makefile lib/uuid/uuid_types.h \
11550 lib/blkid/Makefile lib/blkid/blkid_types.h lib/quota/Makefile \
11551 lib/ss/ss.pc lib/uuid/uuid.pc lib/et/com_err.pc \
11552 lib/e2p/e2p.pc lib/blkid/blkid.pc lib/ext2fs/ext2fs.pc \
11553 misc/Makefile ext2ed/Makefile e2fsck/Makefile \
11554 debugfs/Makefile tests/Makefile tests/progs/Makefile \
11555 resize/Makefile doc/Makefile intl/Makefile \
11556 intl/libgnuintl.h po/Makefile.in ; do
11557 if test -d `dirname ${srcdir}/$i` ; then
11558 outlist="$outlist $i"
11561 ac_config_files="$ac_config_files $outlist"
11563 cat >confcache <<\_ACEOF
11564 # This file is a shell script that caches the results of configure
11565 # tests run on this system so they can be shared between configure
11566 # scripts and configure runs, see configure's option --config-cache.
11567 # It is not useful on other systems. If it contains results you don't
11568 # want to keep, you may remove or edit it.
11570 # config.status only pays attention to the cache file if you give it
11571 # the --recheck option to rerun configure.
11573 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11574 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11575 # following values.
11579 # The following way of writing the cache mishandles newlines in values,
11580 # but we know of no workaround that is simple, portable, and efficient.
11581 # So, we kill variables containing newlines.
11582 # Ultrix sh set writes to stderr and can't be redirected directly,
11583 # and sets the high bit in the cache file unless we assign to the vars.
11585 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11586 eval ac_val=\$$ac_var
11590 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11591 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11594 _ | IFS | as_nl) ;; #(
11595 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11596 *) { eval $ac_var=; unset $ac_var;} ;;
11602 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11603 *${as_nl}ac_space=\ *)
11604 # `set' does not quote correctly, so add quotes: double-quote
11605 # substitution turns \\\\ into \\, and sed turns \\ into \.
11608 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11611 # `set' quotes correctly as required by POSIX, so do not add quotes.
11612 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11621 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11623 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11625 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11626 if test -w "$cache_file"; then
11627 if test "x$cache_file" != "x/dev/null"; then
11628 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11629 $as_echo "$as_me: updating cache $cache_file" >&6;}
11630 if test ! -f "$cache_file" || test -h "$cache_file"; then
11631 cat confcache >"$cache_file"
11633 case $cache_file in #(
11635 mv -f confcache "$cache_file"$$ &&
11636 mv -f "$cache_file"$$ "$cache_file" ;; #(
11638 mv -f confcache "$cache_file" ;;
11643 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11644 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11649 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11650 # Let make expand exec_prefix.
11651 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11653 DEFS=-DHAVE_CONFIG_H
11658 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11659 # 1. Remove the extension, and $U if already installed.
11660 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11661 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11662 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11663 # will be set to the directory where LIBOBJS objects are built.
11664 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11665 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11667 LIBOBJS=$ac_libobjs
11669 LTLIBOBJS=$ac_ltlibobjs
11674 : "${CONFIG_STATUS=./config.status}"
11676 ac_clean_files_save=$ac_clean_files
11677 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11678 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11679 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11681 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11683 # Generated by $as_me.
11684 # Run this file to recreate the current configuration.
11685 # Compiler output produced by configure, useful for debugging
11686 # configure, is in config.log if it exists.
11689 ac_cs_recheck=false
11692 SHELL=\${CONFIG_SHELL-$SHELL}
11695 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11696 ## -------------------- ##
11697 ## M4sh Initialization. ##
11698 ## -------------------- ##
11700 # Be more Bourne compatible
11701 DUALCASE=1; export DUALCASE # for MKS sh
11702 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11705 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11706 # is contrary to our usage. Disable this feature.
11707 alias -g '${1+"$@"}'='"$@"'
11708 setopt NO_GLOB_SUBST
11710 case `(set -o) 2>/dev/null` in #(
11722 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11723 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11724 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11725 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11726 # Prefer a ksh shell builtin over an external printf program on Solaris,
11727 # but without wasting forks for bash or zsh.
11728 if test -z "$BASH_VERSION$ZSH_VERSION" \
11729 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11730 as_echo='print -r --'
11731 as_echo_n='print -rn --'
11732 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11733 as_echo='printf %s\n'
11734 as_echo_n='printf %s'
11736 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11737 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11738 as_echo_n='/usr/ucb/echo -n'
11740 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11741 as_echo_n_body='eval
11745 expr "X$arg" : "X\\(.*\\)$as_nl";
11746 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11748 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11750 export as_echo_n_body
11751 as_echo_n='sh -c $as_echo_n_body as_echo'
11753 export as_echo_body
11754 as_echo='sh -c $as_echo_body as_echo'
11757 # The user is always right.
11758 if test "${PATH_SEPARATOR+set}" != set; then
11760 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11761 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11768 # We need space, tab and new line, in precisely that order. Quoting is
11769 # there to prevent editors from complaining about space-tab.
11770 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11771 # splitting by setting IFS to empty value.)
11774 # Find who we are. Look in the path if we contain no directory separator.
11777 *[\\/]* ) as_myself=$0 ;;
11778 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11779 for as_dir in $PATH
11782 test -z "$as_dir" && as_dir=.
11783 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11789 # We did not find ourselves, most probably we were run as `sh COMMAND'
11790 # in which case we are not to be found in the path.
11791 if test "x$as_myself" = x; then
11794 if test ! -f "$as_myself"; then
11795 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11799 # Unset variables that we do not need and which cause bugs (e.g. in
11800 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11801 # suppresses any "Segmentation fault" message there. '((' could
11802 # trigger a bug in pdksh 5.2.14.
11803 for as_var in BASH_ENV ENV MAIL MAILPATH
11804 do eval test x\${$as_var+set} = xset \
11805 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11818 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11821 # as_fn_error STATUS ERROR [LINENO LOG_FD]
11822 # ----------------------------------------
11823 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11824 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11825 # script with STATUS, using 1 if that was 0.
11828 as_status=$1; test $as_status -eq 0 && as_status=1
11830 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11831 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11833 $as_echo "$as_me: error: $2" >&2
11834 as_fn_exit $as_status
11838 # as_fn_set_status STATUS
11839 # -----------------------
11840 # Set $? to STATUS, without forking.
11841 as_fn_set_status ()
11844 } # as_fn_set_status
11846 # as_fn_exit STATUS
11847 # -----------------
11848 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11852 as_fn_set_status $1
11858 # Portably unset VAR.
11861 { eval $1=; unset $1;}
11863 as_unset=as_fn_unset
11864 # as_fn_append VAR VALUE
11865 # ----------------------
11866 # Append the text in VALUE to the end of the definition contained in VAR. Take
11867 # advantage of any shell optimizations that allow amortized linear growth over
11868 # repeated appends, instead of the typical quadratic growth present in naive
11870 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11871 eval 'as_fn_append ()
11882 # as_fn_arith ARG...
11883 # ------------------
11884 # Perform arithmetic evaluation on the ARGs, and store the result in the
11885 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11886 # must be portable across $(()) and expr.
11887 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11888 eval 'as_fn_arith ()
11895 as_val=`expr "$@" || test $? -eq 1`
11900 if expr a : '\(a\)' >/dev/null 2>&1 &&
11901 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11907 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11908 as_basename=basename
11913 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11919 as_me=`$as_basename -- "$0" ||
11920 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11921 X"$0" : 'X\(//\)$' \| \
11922 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11924 sed '/^.*\/\([^/][^/]*\)\/*$/{
11938 # Avoid depending upon Character Ranges.
11939 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11940 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11941 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11942 as_cr_digits='0123456789'
11943 as_cr_alnum=$as_cr_Letters$as_cr_digits
11945 ECHO_C= ECHO_N= ECHO_T=
11946 case `echo -n x` in #(((((
11948 case `echo 'xy\c'` in
11949 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11951 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11958 rm -f conf$$ conf$$.exe conf$$.file
11959 if test -d conf$$.dir; then
11960 rm -f conf$$.dir/conf$$.file
11963 mkdir conf$$.dir 2>/dev/null
11965 if (echo >conf$$.file) 2>/dev/null; then
11966 if ln -s conf$$.file conf$$ 2>/dev/null; then
11968 # ... but there are two gotchas:
11969 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11970 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11971 # In both cases, we have to default to `cp -pR'.
11972 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11974 elif ln conf$$.file conf$$ 2>/dev/null; then
11982 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11983 rmdir conf$$.dir 2>/dev/null
11988 # Create "$as_dir" as a directory, including parents if necessary.
11993 -*) as_dir=./$as_dir;;
11995 test -d "$as_dir" || eval $as_mkdir_p || {
11999 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12000 *) as_qdir=$as_dir;;
12002 as_dirs="'$as_qdir' $as_dirs"
12003 as_dir=`$as_dirname -- "$as_dir" ||
12004 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12005 X"$as_dir" : 'X\(//\)[^/]' \| \
12006 X"$as_dir" : 'X\(//\)$' \| \
12007 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12008 $as_echo X"$as_dir" |
12009 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12013 /^X\(\/\/\)[^/].*/{
12026 test -d "$as_dir" && break
12028 test -z "$as_dirs" || eval "mkdir $as_dirs"
12029 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12033 if mkdir -p . 2>/dev/null; then
12034 as_mkdir_p='mkdir -p "$as_dir"'
12036 test -d ./-p && rmdir ./-p
12041 # as_fn_executable_p FILE
12042 # -----------------------
12043 # Test if FILE is an executable regular file.
12044 as_fn_executable_p ()
12046 test -f "$1" && test -x "$1"
12047 } # as_fn_executable_p
12048 as_test_x='test -x'
12049 as_executable_p=as_fn_executable_p
12051 # Sed expression to map a string onto a valid CPP name.
12052 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12054 # Sed expression to map a string onto a valid variable name.
12055 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12059 ## ----------------------------------- ##
12060 ## Main body of $CONFIG_STATUS script. ##
12061 ## ----------------------------------- ##
12063 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12065 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12066 # Save the log message, to keep $0 and so on meaningful, and to
12067 # report actual input values of CONFIG_FILES etc. instead of their
12068 # values after options handling.
12070 This file was extended by $as_me, which was
12071 generated by GNU Autoconf 2.69. Invocation command line was
12073 CONFIG_FILES = $CONFIG_FILES
12074 CONFIG_HEADERS = $CONFIG_HEADERS
12075 CONFIG_LINKS = $CONFIG_LINKS
12076 CONFIG_COMMANDS = $CONFIG_COMMANDS
12079 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12084 case $ac_config_files in *"
12085 "*) set x $ac_config_files; shift; ac_config_files=$*;;
12088 case $ac_config_headers in *"
12089 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12093 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12094 # Files that config.status was made for.
12095 config_files="$ac_config_files"
12096 config_headers="$ac_config_headers"
12097 config_commands="$ac_config_commands"
12101 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12103 \`$as_me' instantiates files and other configuration actions
12104 from templates according to the current configuration. Unless the files
12105 and actions are specified as TAGs, all are instantiated by default.
12107 Usage: $0 [OPTION]... [TAG]...
12109 -h, --help print this help, then exit
12110 -V, --version print version number and configuration settings, then exit
12111 --config print configuration, then exit
12112 -q, --quiet, --silent
12113 do not print progress messages
12114 -d, --debug don't remove temporary files
12115 --recheck update $as_me by reconfiguring in the same conditions
12116 --file=FILE[:TEMPLATE]
12117 instantiate the configuration file FILE
12118 --header=FILE[:TEMPLATE]
12119 instantiate the configuration header FILE
12121 Configuration files:
12124 Configuration headers:
12127 Configuration commands:
12130 Report bugs to the package provider."
12133 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12134 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12137 configured by $0, generated by GNU Autoconf 2.69,
12138 with options \\"\$ac_cs_config\\"
12140 Copyright (C) 2012 Free Software Foundation, Inc.
12141 This config.status script is free software; the Free Software Foundation
12142 gives unlimited permission to copy, distribute and modify it."
12148 test -n "\$AWK" || AWK=awk
12151 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12152 # The default lists apply if the user does not specify any file.
12158 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12159 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12163 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12175 # Handling of the options.
12176 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12178 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12179 $as_echo "$ac_cs_version"; exit ;;
12180 --config | --confi | --conf | --con | --co | --c )
12181 $as_echo "$ac_cs_config"; exit ;;
12182 --debug | --debu | --deb | --de | --d | -d )
12184 --file | --fil | --fi | --f )
12187 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12188 '') as_fn_error $? "missing file argument" ;;
12190 as_fn_append CONFIG_FILES " '$ac_optarg'"
12191 ac_need_defaults=false;;
12192 --header | --heade | --head | --hea )
12195 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12197 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12198 ac_need_defaults=false;;
12200 # Conflict between --help and --header
12201 as_fn_error $? "ambiguous option: \`$1'
12202 Try \`$0 --help' for more information.";;
12203 --help | --hel | -h )
12204 $as_echo "$ac_cs_usage"; exit ;;
12205 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12206 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12209 # This is an error.
12210 -*) as_fn_error $? "unrecognized option: \`$1'
12211 Try \`$0 --help' for more information." ;;
12213 *) as_fn_append ac_config_targets " $1"
12214 ac_need_defaults=false ;;
12220 ac_configure_extra_args=
12222 if $ac_cs_silent; then
12224 ac_configure_extra_args="$ac_configure_extra_args --silent"
12228 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12229 if \$ac_cs_recheck; then
12230 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12232 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12233 CONFIG_SHELL='$SHELL'
12234 export CONFIG_SHELL
12239 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12243 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12244 ## Running $as_me. ##
12250 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12254 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
12255 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
12257 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
12258 # Capture the value of LINGUAS because we need it to compute CATALOGS.
12259 LINGUAS="${LINGUAS-%UNSET%}"
12264 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12266 # Handling of arguments.
12267 for ac_config_target in $ac_config_targets
12269 case $ac_config_target in
12270 "lib/config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/config.h" ;;
12271 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
12272 "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;;
12274 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12279 # If the user did not use the arguments to specify the items to instantiate,
12280 # then the envvar interface is used. Set only those that are not.
12281 # We use the long form for the default assignment because of an extremely
12282 # bizarre bug on SunOS 4.1.3.
12283 if $ac_need_defaults; then
12284 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12285 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12286 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12289 # Have a temporary directory for convenience. Make it in the build tree
12290 # simply because there is no reason against having it here, and in addition,
12291 # creating and moving files from /tmp can sometimes cause problems.
12292 # Hook for its removal unless debugging.
12293 # Note that there is a small window in which the directory will not be cleaned:
12294 # after its creation but before its name has been assigned to `$tmp'.
12298 trap 'exit_status=$?
12299 : "${ac_tmp:=$tmp}"
12300 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12302 trap 'as_fn_exit 1' 1 2 13 15
12304 # Create a (secure) tmp directory for tmp files.
12307 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12311 tmp=./conf$$-$RANDOM
12312 (umask 077 && mkdir "$tmp")
12313 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12316 # Set up the scripts for CONFIG_FILES section.
12317 # No need to generate them if there are no CONFIG_FILES.
12318 # This happens for instance with `./config.status config.h'.
12319 if test -n "$CONFIG_FILES"; then
12321 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
12322 ac_cs_awk_getline=:
12323 ac_cs_awk_pipe_init=
12324 ac_cs_awk_read_file='
12325 while ((getline aline < (F[key])) > 0)
12328 ac_cs_awk_pipe_fini=
12330 ac_cs_awk_getline=false
12331 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
12332 ac_cs_awk_read_file='
12334 print "cat " F[key] " &&"
12335 '$ac_cs_awk_pipe_init
12336 # The final `:' finishes the AND list.
12337 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
12339 ac_cr=`echo X | tr X '\015'`
12340 # On cygwin, bash can eat \r inside `` if the user requested igncr.
12341 # But we know of no other shell where ac_cr would be empty at this
12342 # point, so we can use a bashism as a fallback.
12343 if test "x$ac_cr" = x; then
12344 eval ac_cr=\$\'\\r\'
12346 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12347 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12350 ac_cs_awk_cr=$ac_cr
12353 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12356 # Create commands to substitute file output variables.
12358 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
12359 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
12360 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
12363 } >conf$$files.sh &&
12364 . ./conf$$files.sh ||
12365 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12366 rm -f conf$$files.sh
12369 echo "cat >conf$$subs.awk <<_ACEOF" &&
12370 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12372 } >conf$$subs.sh ||
12373 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12374 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12376 for ac_last_try in false false false false false :; do
12377 . ./conf$$subs.sh ||
12378 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12380 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12381 if test $ac_delim_n = $ac_delim_num; then
12383 elif $ac_last_try; then
12384 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12386 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12389 rm -f conf$$subs.sh
12391 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12392 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12396 s/^/S["/; s/!.*/"]=/
12406 s/\(.\{148\}\)..*/\1/
12408 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12413 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12420 s/\(.\{148\}\)..*/\1/
12422 s/["\\]/\\&/g; s/^/"/; s/$/"/
12426 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12431 ' <conf$$subs.awk | sed '
12436 ' >>$CONFIG_STATUS || ac_write_fail=1
12437 rm -f conf$$subs.awk
12438 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12440 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12441 for (key in S) S_is_set[key] = 1
12443 \$ac_cs_awk_pipe_init
12447 nfields = split(line, field, "@")
12449 len = length(field[1])
12450 for (i = 2; i < nfields; i++) {
12452 keylen = length(key)
12453 if (S_is_set[key]) {
12455 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12456 len += length(value) + length(field[++i])
12461 if (nfields == 3 && !substed) {
12463 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
12464 \$ac_cs_awk_read_file
12470 \$ac_cs_awk_pipe_fini
12473 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12474 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12475 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12478 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12479 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12482 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12483 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12484 # trailing colons and then remove the whole line if VPATH becomes empty
12485 # (actually we leave an empty line to preserve line numbers).
12486 if test "x$srcdir" = x.; then
12487 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
12505 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12506 fi # test -n "$CONFIG_FILES"
12508 # Set up the scripts for CONFIG_HEADERS section.
12509 # No need to generate them if there are no CONFIG_HEADERS.
12510 # This happens for instance with `./config.status Makefile'.
12511 if test -n "$CONFIG_HEADERS"; then
12512 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
12516 # Transform confdefs.h into an awk script `defines.awk', embedded as
12517 # here-document in config.status, that substitutes the proper values into
12518 # config.h.in to produce config.h.
12520 # Create a delimiter string that does not exist in confdefs.h, to ease
12521 # handling of long lines.
12523 for ac_last_try in false false :; do
12524 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12525 if test -z "$ac_tt"; then
12527 elif $ac_last_try; then
12528 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12530 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12534 # For the awk script, D is an array of macro values keyed by name,
12535 # likewise P contains macro parameters if any. Preserve backslash
12536 # newline sequences.
12538 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12540 s/.\{148\}/&'"$ac_delim"'/g
12543 s/^[ ]*#[ ]*define[ ][ ]*/ /
12550 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12552 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12556 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12557 D["\1"]=" \3\\\\\\n"\\/p
12559 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12564 s/.\{148\}/&'"$ac_delim"'/g
12569 s/["\\]/\\&/g; s/^/"/; s/$/"/p
12572 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12574 ' <confdefs.h | sed '
12575 s/'"$ac_delim"'/"\\\
12576 "/g' >>$CONFIG_STATUS || ac_write_fail=1
12578 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12579 for (key in D) D_is_set[key] = 1
12582 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12584 split(line, arg, " ")
12585 if (arg[1] == "#") {
12589 defundef = substr(arg[1], 2)
12592 split(mac1, mac2, "(") #)
12594 prefix = substr(line, 1, index(line, defundef) - 1)
12595 if (D_is_set[macro]) {
12596 # Preserve the white space surrounding the "#".
12597 print prefix "define", macro P[macro] D[macro]
12600 # Replace #undef with comments. This is necessary, for example,
12601 # in the case of _POSIX_SOURCE, which is predefined and required
12602 # on some systems where configure will not decide to define it.
12603 if (defundef == "undef") {
12604 print "/*", prefix defundef, macro, "*/"
12612 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12613 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12614 fi # test -n "$CONFIG_HEADERS"
12617 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
12622 :[FHLC]) ac_mode=$ac_tag; continue;;
12624 case $ac_mode$ac_tag in
12626 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12627 :[FH]-) ac_tag=-:-;;
12628 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12645 -) ac_f="$ac_tmp/stdin";;
12646 *) # Look for the file first in the build tree, then in the source tree
12647 # (if the path is not absolute). The absolute path cannot be DOS-style,
12648 # because $ac_f cannot contain `:'.
12652 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12654 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12656 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12657 as_fn_append ac_file_inputs " '$ac_f'"
12660 # Let's still pretend it is `configure' which instantiates (i.e., don't
12661 # use $as_me), people would be surprised to read:
12662 # /* config.h. Generated by config.status. */
12663 configure_input='Generated from '`
12664 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12666 if test x"$ac_file" != x-; then
12667 configure_input="$ac_file. $configure_input"
12668 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12669 $as_echo "$as_me: creating $ac_file" >&6;}
12671 # Neutralize special characters interpreted by sed in replacement strings.
12672 case $configure_input in #(
12673 *\&* | *\|* | *\\* )
12674 ac_sed_conf_input=`$as_echo "$configure_input" |
12675 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12676 *) ac_sed_conf_input=$configure_input;;
12680 *:-:* | *:-) cat >"$ac_tmp/stdin" \
12681 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12686 ac_dir=`$as_dirname -- "$ac_file" ||
12687 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12688 X"$ac_file" : 'X\(//\)[^/]' \| \
12689 X"$ac_file" : 'X\(//\)$' \| \
12690 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12691 $as_echo X"$ac_file" |
12692 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12696 /^X\(\/\/\)[^/].*/{
12709 as_dir="$ac_dir"; as_fn_mkdir_p
12713 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12715 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12716 # A ".." for each directory in $ac_dir_suffix.
12717 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12718 case $ac_top_builddir_sub in
12719 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12720 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12723 ac_abs_top_builddir=$ac_pwd
12724 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12725 # for backward compatibility:
12726 ac_top_builddir=$ac_top_build_prefix
12729 .) # We are building in place.
12731 ac_top_srcdir=$ac_top_builddir_sub
12732 ac_abs_top_srcdir=$ac_pwd ;;
12733 [\\/]* | ?:[\\/]* ) # Absolute name.
12734 ac_srcdir=$srcdir$ac_dir_suffix;
12735 ac_top_srcdir=$srcdir
12736 ac_abs_top_srcdir=$srcdir ;;
12737 *) # Relative name.
12738 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12739 ac_top_srcdir=$ac_top_build_prefix$srcdir
12740 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12742 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12752 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12753 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12757 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12758 # If the template does not know about datarootdir, expand it.
12759 # FIXME: This hack should be removed a few years after 2.60.
12760 ac_datarootdir_hack=; ac_datarootdir_seen=
12771 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12772 *datarootdir*) ac_datarootdir_seen=yes;;
12773 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12774 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12775 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12777 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12778 ac_datarootdir_hack='
12779 s&@datadir@&$datadir&g
12780 s&@docdir@&$docdir&g
12781 s&@infodir@&$infodir&g
12782 s&@localedir@&$localedir&g
12783 s&@mandir@&$mandir&g
12784 s&\\\${datarootdir}&$datarootdir&g' ;;
12788 # Neutralize VPATH when `$srcdir' = `.'.
12789 # Shell code in configure.ac might set extrasub.
12790 # FIXME: do we really want to maintain this feature?
12791 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12792 ac_sed_extra="$ac_vpsub
12795 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12797 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12798 s|@configure_input@|$ac_sed_conf_input|;t t
12799 s&@top_builddir@&$ac_top_builddir_sub&;t t
12800 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12801 s&@srcdir@&$ac_srcdir&;t t
12802 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12803 s&@top_srcdir@&$ac_top_srcdir&;t t
12804 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12805 s&@builddir@&$ac_builddir&;t t
12806 s&@abs_builddir@&$ac_abs_builddir&;t t
12807 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12808 s&@INSTALL@&$ac_INSTALL&;t t
12809 $ac_datarootdir_hack
12811 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
12812 if $ac_cs_awk_getline; then
12813 $AWK -f "$ac_tmp/subs.awk"
12815 $AWK -f "$ac_tmp/subs.awk" | $SHELL
12817 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12819 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12820 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12821 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
12822 "$ac_tmp/out"`; test -z "$ac_out"; } &&
12823 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12824 which seems to be undefined. Please make sure it is defined" >&5
12825 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12826 which seems to be undefined. Please make sure it is defined" >&2;}
12828 rm -f "$ac_tmp/stdin"
12830 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12831 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12833 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12839 if test x"$ac_file" != x-; then
12841 $as_echo "/* $configure_input */" \
12842 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12843 } >"$ac_tmp/config.h" \
12844 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12845 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12846 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12847 $as_echo "$as_me: $ac_file is unchanged" >&6;}
12850 mv "$ac_tmp/config.h" "$ac_file" \
12851 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12854 $as_echo "/* $configure_input */" \
12855 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12856 || as_fn_error $? "could not create -" "$LINENO" 5
12860 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12861 $as_echo "$as_me: executing $ac_file commands" >&6;}
12866 case $ac_file$ac_mode in
12868 for ac_file in $CONFIG_FILES; do
12869 # Support "outfile[:infile[:infile...]]"
12871 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
12873 # PO directories have a Makefile.in generated from Makefile.in.in.
12874 case "$ac_file" in */Makefile.in)
12875 # Adjust a relative srcdir.
12876 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
12877 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
12878 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
12879 # In autoconf-2.13 it is called $ac_given_srcdir.
12880 # In autoconf-2.50 it is called $srcdir.
12881 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
12882 case "$ac_given_srcdir" in
12883 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
12884 /*) top_srcdir="$ac_given_srcdir" ;;
12885 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
12887 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
12888 rm -f "$ac_dir/POTFILES"
12889 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
12890 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
12891 POMAKEFILEDEPS="POTFILES.in"
12892 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
12893 # on $ac_dir but don't depend on user-specified configuration
12895 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
12896 # The LINGUAS file contains the set of available languages.
12897 if test -n "$OBSOLETE_ALL_LINGUAS"; then
12898 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
12900 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
12901 # Hide the ALL_LINGUAS assigment from automake.
12902 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
12903 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
12905 # The set of available languages was given in configure.in.
12906 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
12909 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
12910 # Compute UPDATEPOFILES
12911 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
12912 # Compute DUMMYPOFILES
12913 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
12915 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
12916 case "$ac_given_srcdir" in
12918 *) srcdirpre='$(srcdir)/' ;;
12924 for lang in $ALL_LINGUAS; do
12925 POFILES="$POFILES $srcdirpre$lang.po"
12926 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
12927 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
12928 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
12930 # CATALOGS depends on both $ac_dir and the user's LINGUAS
12931 # environment variable.
12933 if test -n "$ALL_LINGUAS"; then
12934 for presentlang in $ALL_LINGUAS; do
12936 if test "%UNSET%" != "$LINGUAS"; then
12937 desiredlanguages="$LINGUAS"
12939 desiredlanguages="$ALL_LINGUAS"
12941 for desiredlang in $desiredlanguages; do
12942 # Use the presentlang catalog if desiredlang is
12943 # a. equal to presentlang, or
12944 # b. a variant of presentlang (because in this case,
12945 # presentlang can be used as a fallback for messages
12946 # which are not translated in the desiredlang catalog).
12947 case "$desiredlang" in
12948 "$presentlang"*) useit=yes;;
12951 if test $useit = yes; then
12952 INST_LINGUAS="$INST_LINGUAS $presentlang"
12957 if test -n "$INST_LINGUAS"; then
12958 for lang in $INST_LINGUAS; do
12959 CATALOGS="$CATALOGS $lang.gmo"
12962 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
12963 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"
12964 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
12965 if test -f "$f"; then
12967 *.orig | *.bak | *~) ;;
12968 *) cat "$f" >> "$ac_dir/Makefile" ;;
12983 ac_clean_files=$ac_clean_files_save
12985 test $ac_write_fail = 0 ||
12986 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12989 # configure is writing to config.log, and then calls config.status.
12990 # config.status does its own redirection, appending to config.log.
12991 # Unfortunately, on DOS this fails, as config.log is still kept open
12992 # by configure, so config.status won't be able to write to it; its
12993 # output is simply discarded. So we exec the FD to /dev/null,
12994 # effectively closing config.log, so it can be properly (re)opened and
12995 # appended to by config.status. When coming back to configure, we
12996 # need to make the FD available again.
12997 if test "$no_create" != yes; then
12999 ac_config_status_args=
13000 test "$silent" = yes &&
13001 ac_config_status_args="$ac_config_status_args --quiet"
13003 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13005 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13006 # would make configure fail if this is the last instruction.
13007 $ac_cs_success || as_fn_exit 1
13009 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13010 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13011 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13014 if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi