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
801 program_transform_name
812 ac_subst_files='MCONFIG
819 PUBLIC_CONFIG_HEADER'
821 enable_option_checking
827 enable_maintainer_mode
828 enable_symlink_install
829 enable_relative_symlinks
830 enable_symlink_relative_symlinks
832 enable_verbose_makecmds
850 enable_e2initrd_helper
855 enable_bmap_stats_ops
860 with_included_gettext
864 ac_precious_vars='build_alias
876 # Initialize some variables set by options.
878 ac_init_version=false
879 ac_unrecognized_opts=
881 # The variables have the same names as the options, with
882 # dashes changed to underlines.
890 program_transform_name=s,x,x,
898 # Installation directory options.
899 # These are left unexpanded so users can "make install exec_prefix=/foo"
900 # and all the variables that are supposed to be based on exec_prefix
901 # by default will actually change.
902 # Use braces instead of parens because sh, perl, etc. also accept them.
903 # (The list follows the same order as the GNU Coding Standards.)
904 bindir='${exec_prefix}/bin'
905 sbindir='${exec_prefix}/sbin'
906 libexecdir='${exec_prefix}/libexec'
907 datarootdir='${prefix}/share'
908 datadir='${datarootdir}'
909 sysconfdir='${prefix}/etc'
910 sharedstatedir='${prefix}/com'
911 localstatedir='${prefix}/var'
912 includedir='${prefix}/include'
913 oldincludedir='/usr/include'
914 docdir='${datarootdir}/doc/${PACKAGE}'
915 infodir='${datarootdir}/info'
920 libdir='${exec_prefix}/lib'
921 localedir='${datarootdir}/locale'
922 mandir='${datarootdir}/man'
928 # If the previous option needs an argument, assign it.
929 if test -n "$ac_prev"; then
930 eval $ac_prev=\$ac_option
936 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
941 # Accept the important Cygnus configure options, so we can diagnose typos.
943 case $ac_dashdash$ac_option in
947 -bindir | --bindir | --bindi | --bind | --bin | --bi)
949 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
952 -build | --build | --buil | --bui | --bu)
953 ac_prev=build_alias ;;
954 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
955 build_alias=$ac_optarg ;;
957 -cache-file | --cache-file | --cache-fil | --cache-fi \
958 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
959 ac_prev=cache_file ;;
960 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
961 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
962 cache_file=$ac_optarg ;;
965 cache_file=config.cache ;;
967 -datadir | --datadir | --datadi | --datad)
969 -datadir=* | --datadir=* | --datadi=* | --datad=*)
970 datadir=$ac_optarg ;;
972 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
973 | --dataroo | --dataro | --datar)
974 ac_prev=datarootdir ;;
975 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
976 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
977 datarootdir=$ac_optarg ;;
979 -disable-* | --disable-*)
980 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
981 # Reject names that are not valid shell variable names.
982 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
983 as_fn_error $? "invalid feature name: $ac_useropt"
984 ac_useropt_orig=$ac_useropt
985 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
986 case $ac_user_opts in
990 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
991 ac_unrecognized_sep=', ';;
993 eval enable_$ac_useropt=no ;;
995 -docdir | --docdir | --docdi | --doc | --do)
997 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1000 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1002 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1003 dvidir=$ac_optarg ;;
1005 -enable-* | --enable-*)
1006 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1007 # Reject names that are not valid shell variable names.
1008 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1009 as_fn_error $? "invalid feature name: $ac_useropt"
1010 ac_useropt_orig=$ac_useropt
1011 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1012 case $ac_user_opts in
1014 "enable_$ac_useropt"
1016 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1017 ac_unrecognized_sep=', ';;
1019 eval enable_$ac_useropt=\$ac_optarg ;;
1021 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1022 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1023 | --exec | --exe | --ex)
1024 ac_prev=exec_prefix ;;
1025 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1026 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1027 | --exec=* | --exe=* | --ex=*)
1028 exec_prefix=$ac_optarg ;;
1030 -gas | --gas | --ga | --g)
1031 # Obsolete; use --with-gas.
1034 -help | --help | --hel | --he | -h)
1035 ac_init_help=long ;;
1036 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1037 ac_init_help=recursive ;;
1038 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1039 ac_init_help=short ;;
1041 -host | --host | --hos | --ho)
1042 ac_prev=host_alias ;;
1043 -host=* | --host=* | --hos=* | --ho=*)
1044 host_alias=$ac_optarg ;;
1046 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1048 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1050 htmldir=$ac_optarg ;;
1052 -includedir | --includedir | --includedi | --included | --include \
1053 | --includ | --inclu | --incl | --inc)
1054 ac_prev=includedir ;;
1055 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1056 | --includ=* | --inclu=* | --incl=* | --inc=*)
1057 includedir=$ac_optarg ;;
1059 -infodir | --infodir | --infodi | --infod | --info | --inf)
1061 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1062 infodir=$ac_optarg ;;
1064 -libdir | --libdir | --libdi | --libd)
1066 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1067 libdir=$ac_optarg ;;
1069 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1070 | --libexe | --libex | --libe)
1071 ac_prev=libexecdir ;;
1072 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1073 | --libexe=* | --libex=* | --libe=*)
1074 libexecdir=$ac_optarg ;;
1076 -localedir | --localedir | --localedi | --localed | --locale)
1077 ac_prev=localedir ;;
1078 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1079 localedir=$ac_optarg ;;
1081 -localstatedir | --localstatedir | --localstatedi | --localstated \
1082 | --localstate | --localstat | --localsta | --localst | --locals)
1083 ac_prev=localstatedir ;;
1084 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1085 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1086 localstatedir=$ac_optarg ;;
1088 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1090 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1091 mandir=$ac_optarg ;;
1093 -nfp | --nfp | --nf)
1094 # Obsolete; use --without-fp.
1097 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1098 | --no-cr | --no-c | -n)
1101 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1102 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1105 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1106 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1107 | --oldin | --oldi | --old | --ol | --o)
1108 ac_prev=oldincludedir ;;
1109 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1110 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1111 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1112 oldincludedir=$ac_optarg ;;
1114 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1116 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1117 prefix=$ac_optarg ;;
1119 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1120 | --program-pre | --program-pr | --program-p)
1121 ac_prev=program_prefix ;;
1122 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1123 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1124 program_prefix=$ac_optarg ;;
1126 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1127 | --program-suf | --program-su | --program-s)
1128 ac_prev=program_suffix ;;
1129 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1130 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1131 program_suffix=$ac_optarg ;;
1133 -program-transform-name | --program-transform-name \
1134 | --program-transform-nam | --program-transform-na \
1135 | --program-transform-n | --program-transform- \
1136 | --program-transform | --program-transfor \
1137 | --program-transfo | --program-transf \
1138 | --program-trans | --program-tran \
1139 | --progr-tra | --program-tr | --program-t)
1140 ac_prev=program_transform_name ;;
1141 -program-transform-name=* | --program-transform-name=* \
1142 | --program-transform-nam=* | --program-transform-na=* \
1143 | --program-transform-n=* | --program-transform-=* \
1144 | --program-transform=* | --program-transfor=* \
1145 | --program-transfo=* | --program-transf=* \
1146 | --program-trans=* | --program-tran=* \
1147 | --progr-tra=* | --program-tr=* | --program-t=*)
1148 program_transform_name=$ac_optarg ;;
1150 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1152 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1153 pdfdir=$ac_optarg ;;
1155 -psdir | --psdir | --psdi | --psd | --ps)
1157 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1160 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1161 | -silent | --silent | --silen | --sile | --sil)
1164 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1166 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1168 sbindir=$ac_optarg ;;
1170 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1171 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1172 | --sharedst | --shareds | --shared | --share | --shar \
1174 ac_prev=sharedstatedir ;;
1175 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1176 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1177 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1179 sharedstatedir=$ac_optarg ;;
1181 -site | --site | --sit)
1183 -site=* | --site=* | --sit=*)
1186 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1188 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1189 srcdir=$ac_optarg ;;
1191 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1192 | --syscon | --sysco | --sysc | --sys | --sy)
1193 ac_prev=sysconfdir ;;
1194 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1195 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1196 sysconfdir=$ac_optarg ;;
1198 -target | --target | --targe | --targ | --tar | --ta | --t)
1199 ac_prev=target_alias ;;
1200 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1201 target_alias=$ac_optarg ;;
1203 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1206 -version | --version | --versio | --versi | --vers | -V)
1207 ac_init_version=: ;;
1210 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1211 # Reject names that are not valid shell variable names.
1212 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1213 as_fn_error $? "invalid package name: $ac_useropt"
1214 ac_useropt_orig=$ac_useropt
1215 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1216 case $ac_user_opts in
1220 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1221 ac_unrecognized_sep=', ';;
1223 eval with_$ac_useropt=\$ac_optarg ;;
1225 -without-* | --without-*)
1226 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1227 # Reject names that are not valid shell variable names.
1228 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1229 as_fn_error $? "invalid package name: $ac_useropt"
1230 ac_useropt_orig=$ac_useropt
1231 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1232 case $ac_user_opts in
1236 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1237 ac_unrecognized_sep=', ';;
1239 eval with_$ac_useropt=no ;;
1242 # Obsolete; use --with-x.
1245 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1246 | --x-incl | --x-inc | --x-in | --x-i)
1247 ac_prev=x_includes ;;
1248 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1249 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1250 x_includes=$ac_optarg ;;
1252 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1253 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1254 ac_prev=x_libraries ;;
1255 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1256 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1257 x_libraries=$ac_optarg ;;
1259 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1260 Try \`$0 --help' for more information"
1264 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1265 # Reject names that are not valid shell variable names.
1266 case $ac_envvar in #(
1267 '' | [0-9]* | *[!_$as_cr_alnum]* )
1268 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1270 eval $ac_envvar=\$ac_optarg
1271 export $ac_envvar ;;
1274 # FIXME: should be removed in autoconf 3.0.
1275 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1276 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1277 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1278 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1284 if test -n "$ac_prev"; then
1285 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1286 as_fn_error $? "missing argument to $ac_option"
1289 if test -n "$ac_unrecognized_opts"; then
1290 case $enable_option_checking in
1292 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1293 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1297 # Check all directory arguments for consistency.
1298 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1299 datadir sysconfdir sharedstatedir localstatedir includedir \
1300 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1301 libdir localedir mandir
1303 eval ac_val=\$$ac_var
1304 # Remove trailing slashes.
1307 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1308 eval $ac_var=\$ac_val;;
1310 # Be sure to have absolute directory names.
1312 [\\/$]* | ?:[\\/]* ) continue;;
1313 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1315 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1318 # There might be people who depend on the old broken behavior: `$host'
1319 # used to hold the argument of --host etc.
1320 # FIXME: To remove some day.
1323 target=$target_alias
1325 # FIXME: To remove some day.
1326 if test "x$host_alias" != x; then
1327 if test "x$build_alias" = x; then
1328 cross_compiling=maybe
1329 elif test "x$build_alias" != "x$host_alias"; then
1335 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1337 test "$silent" = yes && exec 6>/dev/null
1340 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1341 ac_ls_di=`ls -di .` &&
1342 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1343 as_fn_error $? "working directory cannot be determined"
1344 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1345 as_fn_error $? "pwd does not report name of working directory"
1348 # Find the source files, if location was not specified.
1349 if test -z "$srcdir"; then
1350 ac_srcdir_defaulted=yes
1351 # Try the directory containing this script, then the parent directory.
1352 ac_confdir=`$as_dirname -- "$as_myself" ||
1353 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1354 X"$as_myself" : 'X\(//\)[^/]' \| \
1355 X"$as_myself" : 'X\(//\)$' \| \
1356 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1357 $as_echo X"$as_myself" |
1358 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1376 if test ! -r "$srcdir/$ac_unique_file"; then
1380 ac_srcdir_defaulted=no
1382 if test ! -r "$srcdir/$ac_unique_file"; then
1383 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1384 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1386 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1388 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1390 # When building in place, set srcdir=.
1391 if test "$ac_abs_confdir" = "$ac_pwd"; then
1394 # Remove unnecessary trailing slashes from srcdir.
1395 # Double slashes in file names in object file debugging info
1396 # mess up M-x gdb in Emacs.
1398 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1400 for ac_var in $ac_precious_vars; do
1401 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1402 eval ac_env_${ac_var}_value=\$${ac_var}
1403 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1404 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1408 # Report the --help message.
1410 if test "$ac_init_help" = "long"; then
1411 # Omit some internal or obsolete options to make the list less imposing.
1412 # This message is too long to be a string in the A/UX 3.1 sh.
1414 \`configure' configures this package to adapt to many kinds of systems.
1416 Usage: $0 [OPTION]... [VAR=VALUE]...
1418 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1419 VAR=VALUE. See below for descriptions of some of the useful variables.
1421 Defaults for the options are specified in brackets.
1424 -h, --help display this help and exit
1425 --help=short display options specific to this package
1426 --help=recursive display the short help of all the included packages
1427 -V, --version display version information and exit
1428 -q, --quiet, --silent do not print \`checking ...' messages
1429 --cache-file=FILE cache test results in FILE [disabled]
1430 -C, --config-cache alias for \`--cache-file=config.cache'
1431 -n, --no-create do not create output files
1432 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1434 Installation directories:
1435 --prefix=PREFIX install architecture-independent files in PREFIX
1436 [$ac_default_prefix]
1437 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1440 By default, \`make install' will install all the files in
1441 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1442 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1443 for instance \`--prefix=\$HOME'.
1445 For better control, use the options below.
1447 Fine tuning of the installation directories:
1448 --bindir=DIR user executables [EPREFIX/bin]
1449 --sbindir=DIR system admin executables [EPREFIX/sbin]
1450 --libexecdir=DIR program executables [EPREFIX/libexec]
1451 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1452 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1453 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1454 --libdir=DIR object code libraries [EPREFIX/lib]
1455 --includedir=DIR C header files [PREFIX/include]
1456 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1457 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1458 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1459 --infodir=DIR info documentation [DATAROOTDIR/info]
1460 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1461 --mandir=DIR man documentation [DATAROOTDIR/man]
1462 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1463 --htmldir=DIR html documentation [DOCDIR]
1464 --dvidir=DIR dvi documentation [DOCDIR]
1465 --pdfdir=DIR pdf documentation [DOCDIR]
1466 --psdir=DIR ps documentation [DOCDIR]
1472 --build=BUILD configure for building on BUILD [guessed]
1473 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1477 if test -n "$ac_init_help"; then
1482 --disable-option-checking ignore unrecognized --enable/--with options
1483 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1484 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1485 --enable-maintainer-mode enable makefile rules useful for maintainers
1486 --enable-symlink-install use symlinks when installing instead of hard links
1487 --enable-relative-symlinks use relative symlinks when installing
1489 --enable-symlink-build use symlinks while building instead of hard links
1490 --enable-verbose-makecmds enable verbose make command output
1491 --enable-compression enable EXPERIMENTAL compression support
1492 --enable-htree enable EXPERIMENTAL htree directory support
1493 --enable-elf-shlibs select ELF shared libraries
1494 --enable-bsd-shlibs select BSD shared libraries
1495 --enable-profile build profiling libraries
1496 --enable-checker build checker libraries
1497 --enable-jbd-debug enable journal debugging
1498 --enable-blkid-debug enable blkid debugging
1499 --disable-testio-debug disable the use of the test I/O manager for debugging
1500 --disable-libuuid do not build private uuid library
1501 --disable-libblkid do not build private blkid library
1502 --enable-quota enable quota support
1503 --disable-debugfs disable support of debugfs program
1504 --disable-imager disable support of e2image program
1505 --disable-resizer disable support of e2resize program
1506 --disable-defrag disable support of e4defrag program
1507 --enable-fsck build fsck wrapper program
1508 --enable-e2initrd-helper build e2initrd-helper program
1509 --disable-tls disable use of thread local support
1510 --disable-uuidd disable building the uuid daemon
1511 --disable-mmp disable support mmp, Multi Mount Protection
1512 --disable-bmap-stats disable collection of bitmap stats.
1513 --enable-bmap-stats-ops enable collection of additional bitmap stats
1514 --disable-nls do not use Native Language Support
1515 --disable-rpath do not hardcode runtime library paths
1518 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1519 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1520 --with-diet-libc use diet libc
1521 --with-cc no longer supported, use CC= instead
1522 --with-ccopts no longer supported, use CFLAGS= instead
1523 --with-ldopts no longer supported, use LDFLAGS= instead
1524 --with-root-prefix=PREFIX override prefix variable for files to be placed in the root
1525 --with-gnu-ld assume the C compiler uses GNU ld default=no
1526 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1527 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1528 --with-included-gettext use the GNU gettext library included here
1529 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1530 --without-libintl-prefix don't search for libintl in includedir and libdir
1531 --with-multiarch=ARCH specify the multiarch triplet
1533 Some influential environment variables:
1534 CC C compiler command
1535 CFLAGS C compiler flags
1536 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1537 nonstandard directory <lib dir>
1538 LIBS libraries to pass to the linker, e.g. -l<library>
1539 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1540 you have headers in a nonstandard directory <include dir>
1542 PKG_CONFIG path to pkg-config utility
1544 Use these variables to override the choices made by `configure' or to help
1545 it to find libraries and programs with nonstandard names/locations.
1547 Report bugs to the package provider.
1552 if test "$ac_init_help" = "recursive"; then
1553 # If there are subdirs, report their specific --help.
1554 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1555 test -d "$ac_dir" ||
1556 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1561 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1563 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1564 # A ".." for each directory in $ac_dir_suffix.
1565 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1566 case $ac_top_builddir_sub in
1567 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1568 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1571 ac_abs_top_builddir=$ac_pwd
1572 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1573 # for backward compatibility:
1574 ac_top_builddir=$ac_top_build_prefix
1577 .) # We are building in place.
1579 ac_top_srcdir=$ac_top_builddir_sub
1580 ac_abs_top_srcdir=$ac_pwd ;;
1581 [\\/]* | ?:[\\/]* ) # Absolute name.
1582 ac_srcdir=$srcdir$ac_dir_suffix;
1583 ac_top_srcdir=$srcdir
1584 ac_abs_top_srcdir=$srcdir ;;
1586 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1587 ac_top_srcdir=$ac_top_build_prefix$srcdir
1588 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1590 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1592 cd "$ac_dir" || { ac_status=$?; continue; }
1593 # Check for guested configure.
1594 if test -f "$ac_srcdir/configure.gnu"; then
1596 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1597 elif test -f "$ac_srcdir/configure"; then
1599 $SHELL "$ac_srcdir/configure" --help=recursive
1601 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1603 cd "$ac_pwd" || { ac_status=$?; break; }
1607 test -n "$ac_init_help" && exit $ac_status
1608 if $ac_init_version; then
1611 generated by GNU Autoconf 2.69
1613 Copyright (C) 2012 Free Software Foundation, Inc.
1614 This configure script is free software; the Free Software Foundation
1615 gives unlimited permission to copy, distribute and modify it.
1620 ## ------------------------ ##
1621 ## Autoconf initialization. ##
1622 ## ------------------------ ##
1624 # ac_fn_c_try_compile LINENO
1625 # --------------------------
1626 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1627 ac_fn_c_try_compile ()
1629 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1630 rm -f conftest.$ac_objext
1631 if { { ac_try="$ac_compile"
1633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1634 *) ac_try_echo=$ac_try;;
1636 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1637 $as_echo "$ac_try_echo"; } >&5
1638 (eval "$ac_compile") 2>conftest.err
1640 if test -s conftest.err; then
1641 grep -v '^ *+' conftest.err >conftest.er1
1642 cat conftest.er1 >&5
1643 mv -f conftest.er1 conftest.err
1645 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1646 test $ac_status = 0; } && {
1647 test -z "$ac_c_werror_flag" ||
1648 test ! -s conftest.err
1649 } && test -s conftest.$ac_objext; then :
1652 $as_echo "$as_me: failed program was:" >&5
1653 sed 's/^/| /' conftest.$ac_ext >&5
1657 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1658 as_fn_set_status $ac_retval
1660 } # ac_fn_c_try_compile
1662 # ac_fn_c_try_link LINENO
1663 # -----------------------
1664 # Try to link conftest.$ac_ext, and return whether this succeeded.
1667 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1668 rm -f conftest.$ac_objext conftest$ac_exeext
1669 if { { ac_try="$ac_link"
1671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1672 *) ac_try_echo=$ac_try;;
1674 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1675 $as_echo "$ac_try_echo"; } >&5
1676 (eval "$ac_link") 2>conftest.err
1678 if test -s conftest.err; then
1679 grep -v '^ *+' conftest.err >conftest.er1
1680 cat conftest.er1 >&5
1681 mv -f conftest.er1 conftest.err
1683 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1684 test $ac_status = 0; } && {
1685 test -z "$ac_c_werror_flag" ||
1686 test ! -s conftest.err
1687 } && test -s conftest$ac_exeext && {
1688 test "$cross_compiling" = yes ||
1689 test -x conftest$ac_exeext
1693 $as_echo "$as_me: failed program was:" >&5
1694 sed 's/^/| /' conftest.$ac_ext >&5
1698 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1699 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1700 # interfere with the next link command; also delete a directory that is
1701 # left behind by Apple's compiler. We do this before executing the actions.
1702 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1703 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1704 as_fn_set_status $ac_retval
1706 } # ac_fn_c_try_link
1708 # ac_fn_c_try_cpp LINENO
1709 # ----------------------
1710 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1713 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1714 if { { ac_try="$ac_cpp conftest.$ac_ext"
1716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1717 *) ac_try_echo=$ac_try;;
1719 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1720 $as_echo "$ac_try_echo"; } >&5
1721 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1723 if test -s conftest.err; then
1724 grep -v '^ *+' conftest.err >conftest.er1
1725 cat conftest.er1 >&5
1726 mv -f conftest.er1 conftest.err
1728 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1729 test $ac_status = 0; } > conftest.i && {
1730 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1731 test ! -s conftest.err
1735 $as_echo "$as_me: failed program was:" >&5
1736 sed 's/^/| /' conftest.$ac_ext >&5
1740 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1741 as_fn_set_status $ac_retval
1745 # ac_fn_c_try_run LINENO
1746 # ----------------------
1747 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1748 # that executables *can* be run.
1751 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1752 if { { ac_try="$ac_link"
1754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1755 *) ac_try_echo=$ac_try;;
1757 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1758 $as_echo "$ac_try_echo"; } >&5
1759 (eval "$ac_link") 2>&5
1761 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1762 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1763 { { case "(($ac_try" in
1764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1765 *) ac_try_echo=$ac_try;;
1767 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1768 $as_echo "$ac_try_echo"; } >&5
1769 (eval "$ac_try") 2>&5
1771 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1772 test $ac_status = 0; }; }; then :
1775 $as_echo "$as_me: program exited with status $ac_status" >&5
1776 $as_echo "$as_me: failed program was:" >&5
1777 sed 's/^/| /' conftest.$ac_ext >&5
1779 ac_retval=$ac_status
1781 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1782 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1783 as_fn_set_status $ac_retval
1787 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1788 # -------------------------------------------
1789 # Tests whether TYPE exists after having included INCLUDES, setting cache
1790 # variable VAR accordingly.
1791 ac_fn_c_check_type ()
1793 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1795 $as_echo_n "checking for $2... " >&6; }
1796 if eval \${$3+:} false; then :
1797 $as_echo_n "(cached) " >&6
1800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1801 /* end confdefs.h. */
1812 if ac_fn_c_try_compile "$LINENO"; then :
1813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1814 /* end confdefs.h. */
1825 if ac_fn_c_try_compile "$LINENO"; then :
1830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1836 $as_echo "$ac_res" >&6; }
1837 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1839 } # ac_fn_c_check_type
1841 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1842 # -------------------------------------------------------
1843 # Tests whether HEADER exists and can be compiled using the include files in
1844 # INCLUDES, setting the cache variable VAR accordingly.
1845 ac_fn_c_check_header_compile ()
1847 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1849 $as_echo_n "checking for $2... " >&6; }
1850 if eval \${$3+:} false; then :
1851 $as_echo_n "(cached) " >&6
1853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1854 /* end confdefs.h. */
1858 if ac_fn_c_try_compile "$LINENO"; then :
1863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1867 $as_echo "$ac_res" >&6; }
1868 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1870 } # ac_fn_c_check_header_compile
1872 # ac_fn_c_check_func LINENO FUNC VAR
1873 # ----------------------------------
1874 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1875 ac_fn_c_check_func ()
1877 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1879 $as_echo_n "checking for $2... " >&6; }
1880 if eval \${$3+:} false; then :
1881 $as_echo_n "(cached) " >&6
1883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1884 /* end confdefs.h. */
1885 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1886 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1887 #define $2 innocuous_$2
1889 /* System header to define __stub macros and hopefully few prototypes,
1890 which can conflict with char $2 (); below.
1891 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1892 <limits.h> exists even on freestanding compilers. */
1895 # include <limits.h>
1897 # include <assert.h>
1902 /* Override any GCC internal prototype to avoid an error.
1903 Use char because int might match the return type of a GCC
1904 builtin and then its argument prototype would still apply. */
1909 /* The GNU C library defines this for functions which it implements
1910 to always fail with ENOSYS. Some functions are actually named
1911 something starting with __ and the normal name is an alias. */
1912 #if defined __stub_$2 || defined __stub___$2
1924 if ac_fn_c_try_link "$LINENO"; then :
1929 rm -f core conftest.err conftest.$ac_objext \
1930 conftest$ac_exeext conftest.$ac_ext
1933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1934 $as_echo "$ac_res" >&6; }
1935 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1937 } # ac_fn_c_check_func
1939 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1940 # -------------------------------------------------------
1941 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1942 # the include files in INCLUDES and setting the cache variable VAR
1944 ac_fn_c_check_header_mongrel ()
1946 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1947 if eval \${$3+:} false; then :
1948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1949 $as_echo_n "checking for $2... " >&6; }
1950 if eval \${$3+:} false; then :
1951 $as_echo_n "(cached) " >&6
1954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1955 $as_echo "$ac_res" >&6; }
1957 # Is the header compilable?
1958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1959 $as_echo_n "checking $2 usability... " >&6; }
1960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1961 /* end confdefs.h. */
1965 if ac_fn_c_try_compile "$LINENO"; then :
1966 ac_header_compiler=yes
1968 ac_header_compiler=no
1970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1972 $as_echo "$ac_header_compiler" >&6; }
1974 # Is the header present?
1975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1976 $as_echo_n "checking $2 presence... " >&6; }
1977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1978 /* end confdefs.h. */
1981 if ac_fn_c_try_cpp "$LINENO"; then :
1982 ac_header_preproc=yes
1984 ac_header_preproc=no
1986 rm -f conftest.err conftest.i conftest.$ac_ext
1987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1988 $as_echo "$ac_header_preproc" >&6; }
1990 # So? What about this header?
1991 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1993 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1994 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1995 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1996 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1999 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2000 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2001 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2002 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2003 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2004 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2005 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2006 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2007 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2008 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2012 $as_echo_n "checking for $2... " >&6; }
2013 if eval \${$3+:} false; then :
2014 $as_echo_n "(cached) " >&6
2016 eval "$3=\$ac_header_compiler"
2019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2020 $as_echo "$ac_res" >&6; }
2022 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2024 } # ac_fn_c_check_header_mongrel
2026 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2027 # --------------------------------------------
2028 # Tries to find the compile-time value of EXPR in a program that includes
2029 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2031 ac_fn_c_compute_int ()
2033 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2034 if test "$cross_compiling" = yes; then
2035 # Depending upon the size, compute the lo and hi bounds.
2036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2037 /* end confdefs.h. */
2042 static int test_array [1 - 2 * !(($2) >= 0)];
2044 return test_array [0];
2050 if ac_fn_c_try_compile "$LINENO"; then :
2053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2054 /* end confdefs.h. */
2059 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2061 return test_array [0];
2067 if ac_fn_c_try_compile "$LINENO"; then :
2068 ac_hi=$ac_mid; break
2070 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2071 if test $ac_lo -le $ac_mid; then
2075 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2081 /* end confdefs.h. */
2086 static int test_array [1 - 2 * !(($2) < 0)];
2088 return test_array [0];
2094 if ac_fn_c_try_compile "$LINENO"; then :
2097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2098 /* end confdefs.h. */
2103 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2105 return test_array [0];
2111 if ac_fn_c_try_compile "$LINENO"; then :
2112 ac_lo=$ac_mid; break
2114 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2115 if test $ac_mid -le $ac_hi; then
2119 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2129 # Binary search between lo and hi bounds.
2130 while test "x$ac_lo" != "x$ac_hi"; do
2131 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2133 /* end confdefs.h. */
2138 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2140 return test_array [0];
2146 if ac_fn_c_try_compile "$LINENO"; then :
2149 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2154 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2159 /* end confdefs.h. */
2161 static long int longval () { return $2; }
2162 static unsigned long int ulongval () { return $2; }
2169 FILE *f = fopen ("conftest.val", "w");
2174 long int i = longval ();
2177 fprintf (f, "%ld", i);
2181 unsigned long int i = ulongval ();
2184 fprintf (f, "%lu", i);
2186 /* Do not output a trailing newline, as this causes \r\n confusion
2187 on some platforms. */
2188 return ferror (f) || fclose (f) != 0;
2194 if ac_fn_c_try_run "$LINENO"; then :
2195 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2199 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2200 conftest.$ac_objext conftest.beam conftest.$ac_ext
2204 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2205 as_fn_set_status $ac_retval
2207 } # ac_fn_c_compute_int
2209 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2210 # ----------------------------------------------------
2211 # Tries to find if the field MEMBER exists in type AGGR, after including
2212 # INCLUDES, setting cache variable VAR accordingly.
2213 ac_fn_c_check_member ()
2215 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2217 $as_echo_n "checking for $2.$3... " >&6; }
2218 if eval \${$4+:} false; then :
2219 $as_echo_n "(cached) " >&6
2221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2222 /* end confdefs.h. */
2234 if ac_fn_c_try_compile "$LINENO"; then :
2237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2238 /* end confdefs.h. */
2244 if (sizeof ac_aggr.$3)
2250 if ac_fn_c_try_compile "$LINENO"; then :
2255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2261 $as_echo "$ac_res" >&6; }
2262 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2264 } # ac_fn_c_check_member
2266 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2267 # ---------------------------------------------
2268 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2270 ac_fn_c_check_decl ()
2272 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2273 as_decl_name=`echo $2|sed 's/ *(.*//'`
2274 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2276 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2277 if eval \${$3+:} false; then :
2278 $as_echo_n "(cached) " >&6
2280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2281 /* end confdefs.h. */
2286 #ifndef $as_decl_name
2288 (void) $as_decl_use;
2290 (void) $as_decl_name;
2298 if ac_fn_c_try_compile "$LINENO"; then :
2303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2307 $as_echo "$ac_res" >&6; }
2308 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2310 } # ac_fn_c_check_decl
2311 cat >config.log <<_ACEOF
2312 This file contains any messages produced by compilers while
2313 running configure, to aid debugging if configure makes a mistake.
2315 It was created by $as_me, which was
2316 generated by GNU Autoconf 2.69. Invocation command line was
2328 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2329 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2330 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2331 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2332 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2334 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2335 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2337 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2338 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2339 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2340 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2341 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2342 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2343 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2351 test -z "$as_dir" && as_dir=.
2352 $as_echo "PATH: $as_dir"
2368 # Keep a trace of the command line.
2369 # Strip out --no-create and --no-recursion so they do not pile up.
2370 # Strip out --silent because we don't want to record it for future runs.
2371 # Also quote any args containing shell meta-characters.
2372 # Make two passes to allow for proper duplicate-argument suppression.
2376 ac_must_keep_next=false
2382 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2383 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2384 | -silent | --silent | --silen | --sile | --sil)
2387 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2390 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2392 as_fn_append ac_configure_args1 " '$ac_arg'"
2393 if test $ac_must_keep_next = true; then
2394 ac_must_keep_next=false # Got value, back to normal.
2397 *=* | --config-cache | -C | -disable-* | --disable-* \
2398 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2399 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2400 | -with-* | --with-* | -without-* | --without-* | --x)
2401 case "$ac_configure_args0 " in
2402 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2405 -* ) ac_must_keep_next=true ;;
2408 as_fn_append ac_configure_args " '$ac_arg'"
2413 { ac_configure_args0=; unset ac_configure_args0;}
2414 { ac_configure_args1=; unset ac_configure_args1;}
2416 # When interrupted or exit'd, cleanup temporary files, and complete
2417 # config.log. We remove comments because anyway the quotes in there
2418 # would cause problems or look ugly.
2419 # WARNING: Use '\'' to represent an apostrophe within the trap.
2420 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2421 trap 'exit_status=$?
2422 # Save into config.log some information that might help in debugging.
2426 $as_echo "## ---------------- ##
2427 ## Cache variables. ##
2428 ## ---------------- ##"
2430 # The following way of writing the cache mishandles newlines in values,
2432 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2433 eval ac_val=\$$ac_var
2437 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2438 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2441 _ | IFS | as_nl) ;; #(
2442 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2443 *) { eval $ac_var=; unset $ac_var;} ;;
2448 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2449 *${as_nl}ac_space=\ *)
2451 "s/'\''/'\''\\\\'\'''\''/g;
2452 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2455 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2462 $as_echo "## ----------------- ##
2463 ## Output variables. ##
2464 ## ----------------- ##"
2466 for ac_var in $ac_subst_vars
2468 eval ac_val=\$$ac_var
2470 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2472 $as_echo "$ac_var='\''$ac_val'\''"
2476 if test -n "$ac_subst_files"; then
2477 $as_echo "## ------------------- ##
2478 ## File substitutions. ##
2479 ## ------------------- ##"
2481 for ac_var in $ac_subst_files
2483 eval ac_val=\$$ac_var
2485 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2487 $as_echo "$ac_var='\''$ac_val'\''"
2492 if test -s confdefs.h; then
2493 $as_echo "## ----------- ##
2500 test "$ac_signal" != 0 &&
2501 $as_echo "$as_me: caught signal $ac_signal"
2502 $as_echo "$as_me: exit $exit_status"
2504 rm -f core *.core core.conftest.* &&
2505 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2508 for ac_signal in 1 2 13 15; do
2509 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2513 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2514 rm -f -r conftest* confdefs.h
2516 $as_echo "/* confdefs.h */" > confdefs.h
2518 # Predefined preprocessor variables.
2520 cat >>confdefs.h <<_ACEOF
2521 #define PACKAGE_NAME "$PACKAGE_NAME"
2524 cat >>confdefs.h <<_ACEOF
2525 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2528 cat >>confdefs.h <<_ACEOF
2529 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2532 cat >>confdefs.h <<_ACEOF
2533 #define PACKAGE_STRING "$PACKAGE_STRING"
2536 cat >>confdefs.h <<_ACEOF
2537 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2540 cat >>confdefs.h <<_ACEOF
2541 #define PACKAGE_URL "$PACKAGE_URL"
2545 # Let the site file select an alternate cache file if it wants to.
2546 # Prefer an explicitly selected file to automatically selected ones.
2549 if test -n "$CONFIG_SITE"; then
2550 # We do not want a PATH search for config.site.
2551 case $CONFIG_SITE in #((
2552 -*) ac_site_file1=./$CONFIG_SITE;;
2553 */*) ac_site_file1=$CONFIG_SITE;;
2554 *) ac_site_file1=./$CONFIG_SITE;;
2556 elif test "x$prefix" != xNONE; then
2557 ac_site_file1=$prefix/share/config.site
2558 ac_site_file2=$prefix/etc/config.site
2560 ac_site_file1=$ac_default_prefix/share/config.site
2561 ac_site_file2=$ac_default_prefix/etc/config.site
2563 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2565 test "x$ac_site_file" = xNONE && continue
2566 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2567 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2568 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2569 sed 's/^/| /' "$ac_site_file" >&5
2571 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2572 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2573 as_fn_error $? "failed to load site script $ac_site_file
2574 See \`config.log' for more details" "$LINENO" 5; }
2578 if test -r "$cache_file"; then
2579 # Some versions of bash will fail to source /dev/null (special files
2580 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2581 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2582 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2583 $as_echo "$as_me: loading cache $cache_file" >&6;}
2585 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2586 *) . "./$cache_file";;
2590 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2591 $as_echo "$as_me: creating cache $cache_file" >&6;}
2595 as_fn_append ac_header_list " stdlib.h"
2596 as_fn_append ac_header_list " unistd.h"
2597 as_fn_append ac_header_list " sys/param.h"
2598 # Check that the precious variables saved in the cache have kept the same
2600 ac_cache_corrupted=false
2601 for ac_var in $ac_precious_vars; do
2602 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2603 eval ac_new_set=\$ac_env_${ac_var}_set
2604 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2605 eval ac_new_val=\$ac_env_${ac_var}_value
2606 case $ac_old_set,$ac_new_set in
2608 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2609 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2610 ac_cache_corrupted=: ;;
2612 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2613 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2614 ac_cache_corrupted=: ;;
2617 if test "x$ac_old_val" != "x$ac_new_val"; then
2618 # differences in whitespace do not lead to failure.
2619 ac_old_val_w=`echo x $ac_old_val`
2620 ac_new_val_w=`echo x $ac_new_val`
2621 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2622 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2623 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2624 ac_cache_corrupted=:
2626 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2627 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2628 eval $ac_var=\$ac_old_val
2630 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2631 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2632 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2633 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2636 # Pass precious variables to config.status.
2637 if test "$ac_new_set" = set; then
2639 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2640 *) ac_arg=$ac_var=$ac_new_val ;;
2642 case " $ac_configure_args " in
2643 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2644 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2648 if $ac_cache_corrupted; then
2649 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2650 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2651 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2652 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2653 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2655 ## -------------------- ##
2656 ## Main body of script. ##
2657 ## -------------------- ##
2660 ac_cpp='$CPP $CPPFLAGS'
2661 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2662 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2663 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2668 for ac_dir in config "$srcdir"/config; do
2669 if test -f "$ac_dir/install-sh"; then
2671 ac_install_sh="$ac_aux_dir/install-sh -c"
2673 elif test -f "$ac_dir/install.sh"; then
2675 ac_install_sh="$ac_aux_dir/install.sh -c"
2677 elif test -f "$ac_dir/shtool"; then
2679 ac_install_sh="$ac_aux_dir/shtool install -c"
2683 if test -z "$ac_aux_dir"; then
2684 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2687 # These three variables are undocumented and unsupported,
2688 # and are intended to be withdrawn in a future Autoconf release.
2689 # They can cause serious problems if a builder's source tree is in a directory
2690 # whose full name contains unusual characters.
2691 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2692 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2693 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2696 ac_config_headers="$ac_config_headers lib/config.h"
2702 E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \
2703 | awk '{print $3}' | tr \" " " | awk '{print $1}'`
2704 DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
2706 E2FSPROGS_DAY=`echo $DATE | awk -F- '{print $1}'`
2707 MONTH=`echo $DATE | awk -F- '{print $2}'`
2708 YEAR=`echo $DATE | awk -F- '{print $3}'`
2710 if expr $YEAR ">" 1900 > /dev/null ; then
2711 E2FSPROGS_YEAR=$YEAR
2712 elif expr $YEAR ">" 90 >/dev/null ; then
2713 E2FSPROGS_YEAR=19$YEAR
2715 E2FSPROGS_YEAR=20$YEAR
2719 Jan) MONTH_NUM=01; E2FSPROGS_MONTH="January" ;;
2720 Feb) MONTH_NUM=02; E2FSPROGS_MONTH="February" ;;
2721 Mar) MONTH_NUM=03; E2FSPROGS_MONTH="March" ;;
2722 Apr) MONTH_NUM=04; E2FSPROGS_MONTH="April" ;;
2723 May) MONTH_NUM=05; E2FSPROGS_MONTH="May" ;;
2724 Jun) MONTH_NUM=06; E2FSPROGS_MONTH="June" ;;
2725 Jul) MONTH_NUM=07; E2FSPROGS_MONTH="July" ;;
2726 Aug) MONTH_NUM=08; E2FSPROGS_MONTH="August" ;;
2727 Sep) MONTH_NUM=09; E2FSPROGS_MONTH="September" ;;
2728 Oct) MONTH_NUM=10; E2FSPROGS_MONTH="October" ;;
2729 Nov) MONTH_NUM=11; E2FSPROGS_MONTH="November" ;;
2730 Dec) MONTH_NUM=12; E2FSPROGS_MONTH="December" ;;
2731 *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unknown month $MONTH??" >&5
2732 $as_echo "$as_me: WARNING: Unknown month $MONTH??" >&2;} ;;
2735 base_ver=`echo $E2FSPROGS_VERSION | \
2736 sed -e 's/-WIP//' -e 's/pre-//' -e 's/-PLUS//'`
2738 date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY}
2740 case $E2FSPROGS_VERSION in
2742 E2FSPROGS_PKGVER="$base_ver~WIP-$E2FSPROGS_YEAR-$MONTH_NUM-$E2FSPROGS_DAY"
2745 E2FSPROGS_PKGVER="$base_ver"
2749 unset DATE MONTH YEAR base_ver pre_vers date_spec
2750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&5
2751 $as_echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&6; }
2752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&5
2753 $as_echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&6; }
2759 # Make sure we can run config.sub.
2760 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2761 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2764 $as_echo_n "checking build system type... " >&6; }
2765 if ${ac_cv_build+:} false; then :
2766 $as_echo_n "(cached) " >&6
2768 ac_build_alias=$build_alias
2769 test "x$ac_build_alias" = x &&
2770 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2771 test "x$ac_build_alias" = x &&
2772 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2773 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2774 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2778 $as_echo "$ac_cv_build" >&6; }
2779 case $ac_cv_build in
2781 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2784 ac_save_IFS=$IFS; IFS='-'
2790 # Remember, the first character of IFS is used to create $*,
2791 # except with old shells:
2794 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2798 $as_echo_n "checking host system type... " >&6; }
2799 if ${ac_cv_host+:} false; then :
2800 $as_echo_n "(cached) " >&6
2802 if test "x$host_alias" = x; then
2803 ac_cv_host=$ac_cv_build
2805 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2806 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2811 $as_echo "$ac_cv_host" >&6; }
2814 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2817 ac_save_IFS=$IFS; IFS='-'
2823 # Remember, the first character of IFS is used to create $*,
2824 # except with old shells:
2827 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2832 ac_cpp='$CPP $CPPFLAGS'
2833 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2834 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2835 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2836 if test -n "$ac_tool_prefix"; then
2837 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2838 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2840 $as_echo_n "checking for $ac_word... " >&6; }
2841 if ${ac_cv_prog_CC+:} false; then :
2842 $as_echo_n "(cached) " >&6
2844 if test -n "$CC"; then
2845 ac_cv_prog_CC="$CC" # Let the user override the test.
2847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2851 test -z "$as_dir" && as_dir=.
2852 for ac_exec_ext in '' $ac_executable_extensions; do
2853 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2854 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2865 if test -n "$CC"; then
2866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2867 $as_echo "$CC" >&6; }
2869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2870 $as_echo "no" >&6; }
2875 if test -z "$ac_cv_prog_CC"; then
2877 # Extract the first word of "gcc", so it can be a program name with args.
2878 set dummy gcc; ac_word=$2
2879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2880 $as_echo_n "checking for $ac_word... " >&6; }
2881 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2882 $as_echo_n "(cached) " >&6
2884 if test -n "$ac_ct_CC"; then
2885 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2891 test -z "$as_dir" && as_dir=.
2892 for ac_exec_ext in '' $ac_executable_extensions; do
2893 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2894 ac_cv_prog_ac_ct_CC="gcc"
2895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2904 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2905 if test -n "$ac_ct_CC"; then
2906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2907 $as_echo "$ac_ct_CC" >&6; }
2909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2910 $as_echo "no" >&6; }
2913 if test "x$ac_ct_CC" = x; then
2916 case $cross_compiling:$ac_tool_warned in
2918 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2919 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2920 ac_tool_warned=yes ;;
2928 if test -z "$CC"; then
2929 if test -n "$ac_tool_prefix"; then
2930 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2931 set dummy ${ac_tool_prefix}cc; ac_word=$2
2932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2933 $as_echo_n "checking for $ac_word... " >&6; }
2934 if ${ac_cv_prog_CC+:} false; then :
2935 $as_echo_n "(cached) " >&6
2937 if test -n "$CC"; then
2938 ac_cv_prog_CC="$CC" # Let the user override the test.
2940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2944 test -z "$as_dir" && as_dir=.
2945 for ac_exec_ext in '' $ac_executable_extensions; do
2946 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2947 ac_cv_prog_CC="${ac_tool_prefix}cc"
2948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2958 if test -n "$CC"; then
2959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2960 $as_echo "$CC" >&6; }
2962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2963 $as_echo "no" >&6; }
2969 if test -z "$CC"; then
2970 # Extract the first word of "cc", so it can be a program name with args.
2971 set dummy cc; ac_word=$2
2972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2973 $as_echo_n "checking for $ac_word... " >&6; }
2974 if ${ac_cv_prog_CC+:} false; then :
2975 $as_echo_n "(cached) " >&6
2977 if test -n "$CC"; then
2978 ac_cv_prog_CC="$CC" # Let the user override the test.
2981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2985 test -z "$as_dir" && as_dir=.
2986 for ac_exec_ext in '' $ac_executable_extensions; do
2987 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2988 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2989 ac_prog_rejected=yes
2993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3000 if test $ac_prog_rejected = yes; then
3001 # We found a bogon in the path, so make sure we never use it.
3002 set dummy $ac_cv_prog_CC
3004 if test $# != 0; then
3005 # We chose a different compiler from the bogus one.
3006 # However, it has the same basename, so the bogon will be chosen
3007 # first if we set CC to just the basename; use the full file name.
3009 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3015 if test -n "$CC"; then
3016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3017 $as_echo "$CC" >&6; }
3019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3020 $as_echo "no" >&6; }
3025 if test -z "$CC"; then
3026 if test -n "$ac_tool_prefix"; then
3027 for ac_prog in cl.exe
3029 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3030 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3032 $as_echo_n "checking for $ac_word... " >&6; }
3033 if ${ac_cv_prog_CC+:} false; then :
3034 $as_echo_n "(cached) " >&6
3036 if test -n "$CC"; then
3037 ac_cv_prog_CC="$CC" # Let the user override the test.
3039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3043 test -z "$as_dir" && as_dir=.
3044 for ac_exec_ext in '' $ac_executable_extensions; do
3045 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3046 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3057 if test -n "$CC"; then
3058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3059 $as_echo "$CC" >&6; }
3061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3062 $as_echo "no" >&6; }
3066 test -n "$CC" && break
3069 if test -z "$CC"; then
3071 for ac_prog in cl.exe
3073 # Extract the first word of "$ac_prog", so it can be a program name with args.
3074 set dummy $ac_prog; ac_word=$2
3075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3076 $as_echo_n "checking for $ac_word... " >&6; }
3077 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3078 $as_echo_n "(cached) " >&6
3080 if test -n "$ac_ct_CC"; then
3081 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3087 test -z "$as_dir" && as_dir=.
3088 for ac_exec_ext in '' $ac_executable_extensions; do
3089 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3090 ac_cv_prog_ac_ct_CC="$ac_prog"
3091 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3100 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3101 if test -n "$ac_ct_CC"; then
3102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3103 $as_echo "$ac_ct_CC" >&6; }
3105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3106 $as_echo "no" >&6; }
3110 test -n "$ac_ct_CC" && break
3113 if test "x$ac_ct_CC" = x; then
3116 case $cross_compiling:$ac_tool_warned in
3118 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3119 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3120 ac_tool_warned=yes ;;
3129 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3130 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3131 as_fn_error $? "no acceptable C compiler found in \$PATH
3132 See \`config.log' for more details" "$LINENO" 5; }
3134 # Provide some information about the compiler.
3135 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3138 for ac_option in --version -v -V -qversion; do
3139 { { ac_try="$ac_compiler $ac_option >&5"
3141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3142 *) ac_try_echo=$ac_try;;
3144 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3145 $as_echo "$ac_try_echo"; } >&5
3146 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3148 if test -s conftest.err; then
3150 ... rest of stderr output deleted ...
3151 10q' conftest.err >conftest.er1
3152 cat conftest.er1 >&5
3154 rm -f conftest.er1 conftest.err
3155 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3156 test $ac_status = 0; }
3159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3160 /* end confdefs.h. */
3170 ac_clean_files_save=$ac_clean_files
3171 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3172 # Try to create an executable without -o first, disregard a.out.
3173 # It will help us diagnose broken compilers, and finding out an intuition
3175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3176 $as_echo_n "checking whether the C compiler works... " >&6; }
3177 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3179 # The possible output files:
3180 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3183 for ac_file in $ac_files
3186 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3187 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3192 if { { ac_try="$ac_link_default"
3194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3195 *) ac_try_echo=$ac_try;;
3197 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3198 $as_echo "$ac_try_echo"; } >&5
3199 (eval "$ac_link_default") 2>&5
3201 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3202 test $ac_status = 0; }; then :
3203 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3204 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3205 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3206 # so that the user can short-circuit this test for compilers unknown to
3208 for ac_file in $ac_files ''
3210 test -f "$ac_file" || continue
3212 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3215 # We found the default executable, but exeext='' is most
3219 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3221 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3223 # We set ac_cv_exeext here because the later test for it is not
3224 # safe: cross compilers may not add the suffix if given an `-o'
3225 # argument, so we may need to know it at that point already.
3226 # Even if this section looks crufty: it has the advantage of
3233 test "$ac_cv_exeext" = no && ac_cv_exeext=
3238 if test -z "$ac_file"; then :
3239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3240 $as_echo "no" >&6; }
3241 $as_echo "$as_me: failed program was:" >&5
3242 sed 's/^/| /' conftest.$ac_ext >&5
3244 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3245 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3246 as_fn_error 77 "C compiler cannot create executables
3247 See \`config.log' for more details" "$LINENO" 5; }
3249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3250 $as_echo "yes" >&6; }
3252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3253 $as_echo_n "checking for C compiler default output file name... " >&6; }
3254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3255 $as_echo "$ac_file" >&6; }
3256 ac_exeext=$ac_cv_exeext
3258 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3259 ac_clean_files=$ac_clean_files_save
3260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3261 $as_echo_n "checking for suffix of executables... " >&6; }
3262 if { { ac_try="$ac_link"
3264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3265 *) ac_try_echo=$ac_try;;
3267 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3268 $as_echo "$ac_try_echo"; } >&5
3269 (eval "$ac_link") 2>&5
3271 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3272 test $ac_status = 0; }; then :
3273 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3274 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3275 # work properly (i.e., refer to `conftest.exe'), while it won't with
3277 for ac_file in conftest.exe conftest conftest.*; do
3278 test -f "$ac_file" || continue
3280 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3281 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3287 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3288 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3289 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3290 See \`config.log' for more details" "$LINENO" 5; }
3292 rm -f conftest conftest$ac_cv_exeext
3293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3294 $as_echo "$ac_cv_exeext" >&6; }
3296 rm -f conftest.$ac_ext
3297 EXEEXT=$ac_cv_exeext
3299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3300 /* end confdefs.h. */
3305 FILE *f = fopen ("conftest.out", "w");
3306 return ferror (f) || fclose (f) != 0;
3312 ac_clean_files="$ac_clean_files conftest.out"
3313 # Check that the compiler produces executables we can run. If not, either
3314 # the compiler is broken, or we cross compile.
3315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3316 $as_echo_n "checking whether we are cross compiling... " >&6; }
3317 if test "$cross_compiling" != yes; then
3318 { { ac_try="$ac_link"
3320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3321 *) ac_try_echo=$ac_try;;
3323 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3324 $as_echo "$ac_try_echo"; } >&5
3325 (eval "$ac_link") 2>&5
3327 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3328 test $ac_status = 0; }
3329 if { ac_try='./conftest$ac_cv_exeext'
3330 { { case "(($ac_try" in
3331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3332 *) ac_try_echo=$ac_try;;
3334 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3335 $as_echo "$ac_try_echo"; } >&5
3336 (eval "$ac_try") 2>&5
3338 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3339 test $ac_status = 0; }; }; then
3342 if test "$cross_compiling" = maybe; then
3345 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3346 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3347 as_fn_error $? "cannot run C compiled programs.
3348 If you meant to cross compile, use \`--host'.
3349 See \`config.log' for more details" "$LINENO" 5; }
3353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3354 $as_echo "$cross_compiling" >&6; }
3356 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3357 ac_clean_files=$ac_clean_files_save
3358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3359 $as_echo_n "checking for suffix of object files... " >&6; }
3360 if ${ac_cv_objext+:} false; then :
3361 $as_echo_n "(cached) " >&6
3363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3364 /* end confdefs.h. */
3374 rm -f conftest.o conftest.obj
3375 if { { ac_try="$ac_compile"
3377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3378 *) ac_try_echo=$ac_try;;
3380 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3381 $as_echo "$ac_try_echo"; } >&5
3382 (eval "$ac_compile") 2>&5
3384 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3385 test $ac_status = 0; }; then :
3386 for ac_file in conftest.o conftest.obj conftest.*; do
3387 test -f "$ac_file" || continue;
3389 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3390 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3395 $as_echo "$as_me: failed program was:" >&5
3396 sed 's/^/| /' conftest.$ac_ext >&5
3398 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3399 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3400 as_fn_error $? "cannot compute suffix of object files: cannot compile
3401 See \`config.log' for more details" "$LINENO" 5; }
3403 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3406 $as_echo "$ac_cv_objext" >&6; }
3407 OBJEXT=$ac_cv_objext
3409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3410 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3411 if ${ac_cv_c_compiler_gnu+:} false; then :
3412 $as_echo_n "(cached) " >&6
3414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3415 /* end confdefs.h. */
3428 if ac_fn_c_try_compile "$LINENO"; then :
3433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3434 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3438 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3439 if test $ac_compiler_gnu = yes; then
3444 ac_test_CFLAGS=${CFLAGS+set}
3445 ac_save_CFLAGS=$CFLAGS
3446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3447 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3448 if ${ac_cv_prog_cc_g+:} false; then :
3449 $as_echo_n "(cached) " >&6
3451 ac_save_c_werror_flag=$ac_c_werror_flag
3452 ac_c_werror_flag=yes
3455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3456 /* end confdefs.h. */
3466 if ac_fn_c_try_compile "$LINENO"; then :
3470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3471 /* end confdefs.h. */
3481 if ac_fn_c_try_compile "$LINENO"; then :
3484 ac_c_werror_flag=$ac_save_c_werror_flag
3486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3487 /* end confdefs.h. */
3497 if ac_fn_c_try_compile "$LINENO"; then :
3500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3505 ac_c_werror_flag=$ac_save_c_werror_flag
3507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3508 $as_echo "$ac_cv_prog_cc_g" >&6; }
3509 if test "$ac_test_CFLAGS" = set; then
3510 CFLAGS=$ac_save_CFLAGS
3511 elif test $ac_cv_prog_cc_g = yes; then
3512 if test "$GCC" = yes; then
3518 if test "$GCC" = yes; then
3524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3525 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3526 if ${ac_cv_prog_cc_c89+:} false; then :
3527 $as_echo_n "(cached) " >&6
3529 ac_cv_prog_cc_c89=no
3531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3532 /* end confdefs.h. */
3536 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3537 struct buf { int x; };
3538 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3539 static char *e (p, i)
3545 static char *f (char * (*g) (char **, int), char **p, ...)
3550 s = g (p, va_arg (v,int));
3555 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3556 function prototypes and stuff, but not '\xHH' hex character constants.
3557 These don't provoke an error unfortunately, instead are silently treated
3558 as 'x'. The following induces an error, until -std is added to get
3559 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3560 array size at least. It's necessary to write '\x00'==0 to get something
3561 that's true only with -std. */
3562 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3564 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3565 inside strings and character constants. */
3567 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3569 int test (int i, double x);
3570 struct s1 {int (*f) (int a);};
3571 struct s2 {int (*f) (double a);};
3572 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3578 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3583 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3584 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3586 CC="$ac_save_CC $ac_arg"
3587 if ac_fn_c_try_compile "$LINENO"; then :
3588 ac_cv_prog_cc_c89=$ac_arg
3590 rm -f core conftest.err conftest.$ac_objext
3591 test "x$ac_cv_prog_cc_c89" != "xno" && break
3593 rm -f conftest.$ac_ext
3598 case "x$ac_cv_prog_cc_c89" in
3600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3601 $as_echo "none needed" >&6; } ;;
3603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3604 $as_echo "unsupported" >&6; } ;;
3606 CC="$CC $ac_cv_prog_cc_c89"
3607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3608 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3610 if test "x$ac_cv_prog_cc_c89" != xno; then :
3615 ac_cpp='$CPP $CPPFLAGS'
3616 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3617 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3618 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
3622 $as_echo_n "checking for dlopen in -ldl... " >&6; }
3623 if ${ac_cv_lib_dl_dlopen+:} false; then :
3624 $as_echo_n "(cached) " >&6
3626 ac_check_lib_save_LIBS=$LIBS
3628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3629 /* end confdefs.h. */
3631 /* Override any GCC internal prototype to avoid an error.
3632 Use char because int might match the return type of a GCC
3633 builtin and then its argument prototype would still apply. */
3646 if ac_fn_c_try_link "$LINENO"; then :
3647 ac_cv_lib_dl_dlopen=yes
3649 ac_cv_lib_dl_dlopen=no
3651 rm -f core conftest.err conftest.$ac_objext \
3652 conftest$ac_exeext conftest.$ac_ext
3653 LIBS=$ac_check_lib_save_LIBS
3655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
3656 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
3657 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
3660 $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
3667 # Check whether --with-diet-libc was given.
3668 if test "${with_diet_libc+set}" = set; then :
3669 withval=$with_diet_libc; CC="diet cc -nostdinc"
3671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: CC=$CC" >&5
3672 $as_echo "CC=$CC" >&6; }
3675 # Check whether --with-cc was given.
3676 if test "${with_cc+set}" = set; then :
3677 withval=$with_cc; as_fn_error $? "--with-cc no longer supported; use CC= instead" "$LINENO" 5
3681 # Check whether --with-ccopts was given.
3682 if test "${with_ccopts+set}" = set; then :
3683 withval=$with_ccopts; as_fn_error $? "--with-ccopts no longer supported; use CFLAGS= instead" "$LINENO" 5
3687 # Check whether --with-ldopts was given.
3688 if test "${with_ldopts+set}" = set; then :
3689 withval=$with_ldopts; as_fn_error $? "--with-ldopts no longer supported; use LDFLAGS= instead" "$LINENO" 5
3693 ac_cpp='$CPP $CPPFLAGS'
3694 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3695 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3696 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3697 if test -n "$ac_tool_prefix"; then
3698 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3699 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3701 $as_echo_n "checking for $ac_word... " >&6; }
3702 if ${ac_cv_prog_CC+:} false; then :
3703 $as_echo_n "(cached) " >&6
3705 if test -n "$CC"; then
3706 ac_cv_prog_CC="$CC" # Let the user override the test.
3708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3712 test -z "$as_dir" && as_dir=.
3713 for ac_exec_ext in '' $ac_executable_extensions; do
3714 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3715 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3716 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3726 if test -n "$CC"; then
3727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3728 $as_echo "$CC" >&6; }
3730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3731 $as_echo "no" >&6; }
3736 if test -z "$ac_cv_prog_CC"; then
3738 # Extract the first word of "gcc", so it can be a program name with args.
3739 set dummy gcc; ac_word=$2
3740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3741 $as_echo_n "checking for $ac_word... " >&6; }
3742 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3743 $as_echo_n "(cached) " >&6
3745 if test -n "$ac_ct_CC"; then
3746 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3752 test -z "$as_dir" && as_dir=.
3753 for ac_exec_ext in '' $ac_executable_extensions; do
3754 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3755 ac_cv_prog_ac_ct_CC="gcc"
3756 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3765 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3766 if test -n "$ac_ct_CC"; then
3767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3768 $as_echo "$ac_ct_CC" >&6; }
3770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3771 $as_echo "no" >&6; }
3774 if test "x$ac_ct_CC" = x; then
3777 case $cross_compiling:$ac_tool_warned in
3779 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3780 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3781 ac_tool_warned=yes ;;
3789 if test -z "$CC"; then
3790 if test -n "$ac_tool_prefix"; then
3791 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3792 set dummy ${ac_tool_prefix}cc; ac_word=$2
3793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3794 $as_echo_n "checking for $ac_word... " >&6; }
3795 if ${ac_cv_prog_CC+:} false; then :
3796 $as_echo_n "(cached) " >&6
3798 if test -n "$CC"; then
3799 ac_cv_prog_CC="$CC" # Let the user override the test.
3801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3805 test -z "$as_dir" && as_dir=.
3806 for ac_exec_ext in '' $ac_executable_extensions; do
3807 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3808 ac_cv_prog_CC="${ac_tool_prefix}cc"
3809 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3819 if test -n "$CC"; then
3820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3821 $as_echo "$CC" >&6; }
3823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3824 $as_echo "no" >&6; }
3830 if test -z "$CC"; then
3831 # Extract the first word of "cc", so it can be a program name with args.
3832 set dummy cc; ac_word=$2
3833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3834 $as_echo_n "checking for $ac_word... " >&6; }
3835 if ${ac_cv_prog_CC+:} false; then :
3836 $as_echo_n "(cached) " >&6
3838 if test -n "$CC"; then
3839 ac_cv_prog_CC="$CC" # Let the user override the test.
3842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3846 test -z "$as_dir" && as_dir=.
3847 for ac_exec_ext in '' $ac_executable_extensions; do
3848 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3849 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3850 ac_prog_rejected=yes
3854 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3861 if test $ac_prog_rejected = yes; then
3862 # We found a bogon in the path, so make sure we never use it.
3863 set dummy $ac_cv_prog_CC
3865 if test $# != 0; then
3866 # We chose a different compiler from the bogus one.
3867 # However, it has the same basename, so the bogon will be chosen
3868 # first if we set CC to just the basename; use the full file name.
3870 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3876 if test -n "$CC"; then
3877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3878 $as_echo "$CC" >&6; }
3880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3881 $as_echo "no" >&6; }
3886 if test -z "$CC"; then
3887 if test -n "$ac_tool_prefix"; then
3888 for ac_prog in cl.exe
3890 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3891 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3893 $as_echo_n "checking for $ac_word... " >&6; }
3894 if ${ac_cv_prog_CC+:} false; then :
3895 $as_echo_n "(cached) " >&6
3897 if test -n "$CC"; then
3898 ac_cv_prog_CC="$CC" # Let the user override the test.
3900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3904 test -z "$as_dir" && as_dir=.
3905 for ac_exec_ext in '' $ac_executable_extensions; do
3906 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3907 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3908 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3918 if test -n "$CC"; then
3919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3920 $as_echo "$CC" >&6; }
3922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3923 $as_echo "no" >&6; }
3927 test -n "$CC" && break
3930 if test -z "$CC"; then
3932 for ac_prog in cl.exe
3934 # Extract the first word of "$ac_prog", so it can be a program name with args.
3935 set dummy $ac_prog; ac_word=$2
3936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3937 $as_echo_n "checking for $ac_word... " >&6; }
3938 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3939 $as_echo_n "(cached) " >&6
3941 if test -n "$ac_ct_CC"; then
3942 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3948 test -z "$as_dir" && as_dir=.
3949 for ac_exec_ext in '' $ac_executable_extensions; do
3950 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3951 ac_cv_prog_ac_ct_CC="$ac_prog"
3952 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3961 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3962 if test -n "$ac_ct_CC"; then
3963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3964 $as_echo "$ac_ct_CC" >&6; }
3966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3967 $as_echo "no" >&6; }
3971 test -n "$ac_ct_CC" && break
3974 if test "x$ac_ct_CC" = x; then
3977 case $cross_compiling:$ac_tool_warned in
3979 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3980 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3981 ac_tool_warned=yes ;;
3990 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3991 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3992 as_fn_error $? "no acceptable C compiler found in \$PATH
3993 See \`config.log' for more details" "$LINENO" 5; }
3995 # Provide some information about the compiler.
3996 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3999 for ac_option in --version -v -V -qversion; do
4000 { { ac_try="$ac_compiler $ac_option >&5"
4002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4003 *) ac_try_echo=$ac_try;;
4005 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4006 $as_echo "$ac_try_echo"; } >&5
4007 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4009 if test -s conftest.err; then
4011 ... rest of stderr output deleted ...
4012 10q' conftest.err >conftest.er1
4013 cat conftest.er1 >&5
4015 rm -f conftest.er1 conftest.err
4016 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4017 test $ac_status = 0; }
4020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4021 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4022 if ${ac_cv_c_compiler_gnu+:} false; then :
4023 $as_echo_n "(cached) " >&6
4025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4026 /* end confdefs.h. */
4039 if ac_fn_c_try_compile "$LINENO"; then :
4044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4045 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4049 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4050 if test $ac_compiler_gnu = yes; then
4055 ac_test_CFLAGS=${CFLAGS+set}
4056 ac_save_CFLAGS=$CFLAGS
4057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4058 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4059 if ${ac_cv_prog_cc_g+:} false; then :
4060 $as_echo_n "(cached) " >&6
4062 ac_save_c_werror_flag=$ac_c_werror_flag
4063 ac_c_werror_flag=yes
4066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4067 /* end confdefs.h. */
4077 if ac_fn_c_try_compile "$LINENO"; then :
4081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4082 /* end confdefs.h. */
4092 if ac_fn_c_try_compile "$LINENO"; then :
4095 ac_c_werror_flag=$ac_save_c_werror_flag
4097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4098 /* end confdefs.h. */
4108 if ac_fn_c_try_compile "$LINENO"; then :
4111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4116 ac_c_werror_flag=$ac_save_c_werror_flag
4118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4119 $as_echo "$ac_cv_prog_cc_g" >&6; }
4120 if test "$ac_test_CFLAGS" = set; then
4121 CFLAGS=$ac_save_CFLAGS
4122 elif test $ac_cv_prog_cc_g = yes; then
4123 if test "$GCC" = yes; then
4129 if test "$GCC" = yes; then
4135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4136 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4137 if ${ac_cv_prog_cc_c89+:} false; then :
4138 $as_echo_n "(cached) " >&6
4140 ac_cv_prog_cc_c89=no
4142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4143 /* end confdefs.h. */
4147 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4148 struct buf { int x; };
4149 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4150 static char *e (p, i)
4156 static char *f (char * (*g) (char **, int), char **p, ...)
4161 s = g (p, va_arg (v,int));
4166 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4167 function prototypes and stuff, but not '\xHH' hex character constants.
4168 These don't provoke an error unfortunately, instead are silently treated
4169 as 'x'. The following induces an error, until -std is added to get
4170 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4171 array size at least. It's necessary to write '\x00'==0 to get something
4172 that's true only with -std. */
4173 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4175 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4176 inside strings and character constants. */
4178 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4180 int test (int i, double x);
4181 struct s1 {int (*f) (int a);};
4182 struct s2 {int (*f) (double a);};
4183 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4189 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4194 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4195 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4197 CC="$ac_save_CC $ac_arg"
4198 if ac_fn_c_try_compile "$LINENO"; then :
4199 ac_cv_prog_cc_c89=$ac_arg
4201 rm -f core conftest.err conftest.$ac_objext
4202 test "x$ac_cv_prog_cc_c89" != "xno" && break
4204 rm -f conftest.$ac_ext
4209 case "x$ac_cv_prog_cc_c89" in
4211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4212 $as_echo "none needed" >&6; } ;;
4214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4215 $as_echo "unsupported" >&6; } ;;
4217 CC="$CC $ac_cv_prog_cc_c89"
4218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4219 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4221 if test "x$ac_cv_prog_cc_c89" != xno; then :
4226 ac_cpp='$CPP $CPPFLAGS'
4227 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4228 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4229 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4231 if test "$GCC" = yes; then
4232 RDYNAMIC="-rdynamic"
4236 ac_cpp='$CPP $CPPFLAGS'
4237 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4238 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4239 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4241 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4242 # On Suns, sometimes $CPP names a directory.
4243 if test -n "$CPP" && test -d "$CPP"; then
4246 if test -z "$CPP"; then
4247 if ${ac_cv_prog_CPP+:} false; then :
4248 $as_echo_n "(cached) " >&6
4250 # Double quotes because CPP needs to be expanded
4251 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4254 for ac_c_preproc_warn_flag in '' yes
4256 # Use a header file that comes with gcc, so configuring glibc
4257 # with a fresh cross-compiler works.
4258 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4259 # <limits.h> exists even on freestanding compilers.
4260 # On the NeXT, cc -E runs the code through the compiler's parser,
4261 # not just through cpp. "Syntax error" is here to catch this case.
4262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4263 /* end confdefs.h. */
4265 # include <limits.h>
4267 # include <assert.h>
4271 if ac_fn_c_try_cpp "$LINENO"; then :
4274 # Broken: fails on valid input.
4277 rm -f conftest.err conftest.i conftest.$ac_ext
4279 # OK, works on sane cases. Now check whether nonexistent headers
4280 # can be detected and how.
4281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4282 /* end confdefs.h. */
4283 #include <ac_nonexistent.h>
4285 if ac_fn_c_try_cpp "$LINENO"; then :
4286 # Broken: success on invalid input.
4289 # Passes both tests.
4293 rm -f conftest.err conftest.i conftest.$ac_ext
4296 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4297 rm -f conftest.i conftest.err conftest.$ac_ext
4298 if $ac_preproc_ok; then :
4310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4311 $as_echo "$CPP" >&6; }
4313 for ac_c_preproc_warn_flag in '' yes
4315 # Use a header file that comes with gcc, so configuring glibc
4316 # with a fresh cross-compiler works.
4317 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4318 # <limits.h> exists even on freestanding compilers.
4319 # On the NeXT, cc -E runs the code through the compiler's parser,
4320 # not just through cpp. "Syntax error" is here to catch this case.
4321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4322 /* end confdefs.h. */
4324 # include <limits.h>
4326 # include <assert.h>
4330 if ac_fn_c_try_cpp "$LINENO"; then :
4333 # Broken: fails on valid input.
4336 rm -f conftest.err conftest.i conftest.$ac_ext
4338 # OK, works on sane cases. Now check whether nonexistent headers
4339 # can be detected and how.
4340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4341 /* end confdefs.h. */
4342 #include <ac_nonexistent.h>
4344 if ac_fn_c_try_cpp "$LINENO"; then :
4345 # Broken: success on invalid input.
4348 # Passes both tests.
4352 rm -f conftest.err conftest.i conftest.$ac_ext
4355 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4356 rm -f conftest.i conftest.err conftest.$ac_ext
4357 if $ac_preproc_ok; then :
4360 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4361 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4362 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4363 See \`config.log' for more details" "$LINENO" 5; }
4367 ac_cpp='$CPP $CPPFLAGS'
4368 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4369 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4370 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for additional special compiler flags" >&5
4373 $as_echo_n "checking for additional special compiler flags... " >&6; }
4374 if test "$GCC" = yes
4377 alpha) addcflags="-mieee" ;;
4380 if test "x$addcflags" != x
4382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $addcflags" >&5
4383 $as_echo "$addcflags" >&6; }
4384 CFLAGS="$addcflags $CFLAGS"
4386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (none)" >&5
4387 $as_echo "(none)" >&6; }
4393 # Check whether --with-root-prefix was given.
4394 if test "${with_root_prefix+set}" = set; then :
4395 withval=$with_root_prefix; root_prefix=$withval
4399 # Check whether --enable-maintainer-mode was given.
4400 if test "${enable_maintainer_mode+set}" = set; then :
4401 enableval=$enable_maintainer_mode; if test "$enableval" = "no"
4404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode" >&5
4405 $as_echo "Disabling maintainer mode" >&6; }
4408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling maintainer mode" >&5
4409 $as_echo "Enabling maintainer mode" >&6; }
4414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode by default" >&5
4415 $as_echo "Disabling maintainer mode by default" >&6; }
4420 # Check whether --enable-symlink-install was given.
4421 if test "${enable_symlink_install+set}" = set; then :
4422 enableval=$enable_symlink_install; if test "$enableval" = "no"
4424 LINK_INSTALL_FLAGS=-f
4425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install" >&5
4426 $as_echo "Disabling symlinks for install" >&6; }
4428 LINK_INSTALL_FLAGS=-sf
4429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for install" >&5
4430 $as_echo "Enabling symlinks for install" >&6; }
4434 LINK_INSTALL_FLAGS=-f
4435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install by default" >&5
4436 $as_echo "Disabling symlinks for install by default" >&6; }
4441 relative_symlink_defined=
4442 # Check whether --enable-relative-symlinks was given.
4443 if test "${enable_relative_symlinks+set}" = set; then :
4444 enableval=$enable_relative_symlinks; if test "$enableval" = "no"
4447 relative_symlink_defined=yes
4448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
4449 $as_echo "Disabling relative symlinks for install" >&6; }
4451 SYMLINK_RELATIVE=--relative
4452 relative_symlink_defined=yes
4453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5
4454 $as_echo "Enabling relative symlinks for install" >&6; }
4458 # Check whether --enable-symlink-relative-symlinks was given.
4459 if test "${enable_symlink_relative_symlinks+set}" = set; then :
4460 enableval=$enable_symlink_relative_symlinks; if test "$enableval" = "no"
4462 SYMLINK_RELATIVE=yes
4463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
4464 $as_echo "Disabling relative symlinks for install" >&6; }
4466 SYMLINK_RELATIVE=--relative
4467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5
4468 $as_echo "Enabling relative symlinks for install" >&6; }
4472 if test -z "$relative_symlink_defined"
4475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install by default" >&5
4476 $as_echo "Disabling relative symlinks for install by default" >&6; }
4482 # Check whether --enable-symlink-build was given.
4483 if test "${enable_symlink_build+set}" = set; then :
4484 enableval=$enable_symlink_build; if test "$enableval" = "no"
4487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build" >&5
4488 $as_echo "Disabling symlinks for build" >&6; }
4491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for build" >&5
4492 $as_echo "Enabling symlinks for build" >&6; }
4497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build by default" >&5
4498 $as_echo "Disabling symlinks for build by default" >&6; }
4503 # Check whether --enable-verbose-makecmds was given.
4504 if test "${enable_verbose_makecmds+set}" = set; then :
4505 enableval=$enable_verbose_makecmds; if test "$enableval" = "no"
4507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
4508 $as_echo "Disabling verbose make commands" >&6; }
4513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling verbose make commands" >&5
4514 $as_echo "Enabling verbose make commands" >&6; }
4521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
4522 $as_echo "Disabling verbose make commands" >&6; }
4532 # Check whether --enable-compression was given.
4533 if test "${enable_compression+set}" = set; then :
4534 enableval=$enable_compression; if test "$enableval" = "no"
4536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling compression support" >&5
4537 $as_echo "Disabling compression support" >&6; }
4540 $as_echo "#define ENABLE_COMPRESSION 1" >>confdefs.h
4542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling compression support" >&5
4543 $as_echo "Enabling compression support" >&6; }
4544 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Compression support is experimental" >&5
4545 $as_echo "$as_me: WARNING: Compression support is experimental" >&2;}
4549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling compression support by default" >&5
4550 $as_echo "Disabling compression support by default" >&6; }
4555 # Check whether --enable-htree was given.
4556 if test "${enable_htree+set}" = set; then :
4557 enableval=$enable_htree; if test "$enableval" = "no"
4560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling htree directory support" >&5
4561 $as_echo "Disabling htree directory support" >&6; }
4564 $as_echo "#define ENABLE_HTREE 1" >>confdefs.h
4566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling htree directory support" >&5
4567 $as_echo "Enabling htree directory support" >&6; }
4572 $as_echo "#define ENABLE_HTREE 1" >>confdefs.h
4574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling htree directory support by default" >&5
4575 $as_echo "Enabling htree directory support by default" >&6; }
4580 E2_PKG_CONFIG_STATIC=--static
4583 # Check whether --enable-elf-shlibs was given.
4584 if test "${enable_elf_shlibs+set}" = set; then :
4585 enableval=$enable_elf_shlibs; if test "$enableval" = "no"
4588 MAKEFILE_ELF=/dev/null
4589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries" >&5
4590 $as_echo "Disabling ELF shared libraries" >&6; }
4592 E2_PKG_CONFIG_STATIC=
4594 MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
4597 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
4603 LDFLAG_DYNAMIC='-Wl,-rpath-link,$(top_builddir)/lib'
4604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling ELF shared libraries" >&5
4605 $as_echo "Enabling ELF shared libraries" >&6; }
4609 MAKEFILE_ELF=/dev/null
4611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries by default" >&5
4612 $as_echo "Disabling ELF shared libraries by default" >&6; }
4618 # Check whether --enable-bsd-shlibs was given.
4619 if test "${enable_bsd_shlibs+set}" = set; then :
4620 enableval=$enable_bsd_shlibs; if test "$enableval" = "no"
4623 MAKEFILE_BSDLIB=/dev/null
4624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries" >&5
4625 $as_echo "Disabling BSD shared libraries" >&6; }
4627 E2_PKG_CONFIG_STATIC=
4629 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
4633 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib
4637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling BSD shared libraries" >&5
4638 $as_echo "Enabling BSD shared libraries" >&6; }
4642 MAKEFILE_BSDLIB=/dev/null
4644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries by default" >&5
4645 $as_echo "Disabling BSD shared libraries by default" >&6; }
4651 # Check whether --enable-profile was given.
4652 if test "${enable_profile+set}" = set; then :
4653 enableval=$enable_profile; if test "$enableval" = "no"
4656 MAKEFILE_PROFILE=/dev/null
4657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries" >&5
4658 $as_echo "Disabling profiling libraries" >&6; }
4661 MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
4662 PROFILED_LIB_EXT=_p.a
4663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building profiling libraries" >&5
4664 $as_echo "Building profiling libraries" >&6; }
4669 MAKEFILE_PROFILE=/dev/null
4670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries by default" >&5
4671 $as_echo "Disabling profiling libraries by default" >&6; }
4677 # Check whether --enable-checker was given.
4678 if test "${enable_checker+set}" = set; then :
4679 enableval=$enable_checker; if test "$enableval" = "no"
4682 MAKEFILE_CHECKER=/dev/null
4683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling checker libraries" >&5
4684 $as_echo "Disabling checker libraries" >&6; }
4687 MAKEFILE_CHECKER=$srcdir/lib/Makefile.checker
4688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building checker libraries" >&5
4689 $as_echo "Building checker libraries" >&6; }
4694 MAKEFILE_CHECKER=/dev/null
4695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling checker libraries by default" >&5
4696 $as_echo "Disabling checker libraries by default" >&6; }
4707 # Check whether --enable-jbd-debug was given.
4708 if test "${enable_jbd_debug+set}" = set; then :
4709 enableval=$enable_jbd_debug; if test "$enableval" = "no"
4711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging" >&5
4712 $as_echo "Disabling journal debugging" >&6; }
4715 $as_echo "#define CONFIG_JBD_DEBUG 1" >>confdefs.h
4717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling journal debugging" >&5
4718 $as_echo "Enabling journal debugging" >&6; }
4722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging by default" >&5
4723 $as_echo "Disabling journal debugging by default" >&6; }
4727 # Check whether --enable-blkid-debug was given.
4728 if test "${enable_blkid_debug+set}" = set; then :
4729 enableval=$enable_blkid_debug; if test "$enableval" = "no"
4731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging" >&5
4732 $as_echo "Disabling blkid debugging" >&6; }
4735 $as_echo "#define CONFIG_BLKID_DEBUG 1" >>confdefs.h
4737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling blkid debugging" >&5
4738 $as_echo "Enabling blkid debugging" >&6; }
4742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging by default" >&5
4743 $as_echo "Disabling blkid debugging by default" >&6; }
4747 # Check whether --enable-testio-debug was given.
4748 if test "${enable_testio_debug+set}" = set; then :
4749 enableval=$enable_testio_debug;
4750 if test "$enableval" = "no"
4752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling testio debugging" >&5
4753 $as_echo "Disabling testio debugging" >&6; }
4757 $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
4759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging" >&5
4760 $as_echo "Enabling testio debugging" >&6; }
4764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging by default" >&5
4765 $as_echo "Enabling testio debugging by default" >&6; }
4766 $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
4775 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4776 if test -n "$ac_tool_prefix"; then
4777 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4778 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4780 $as_echo_n "checking for $ac_word... " >&6; }
4781 if ${ac_cv_path_PKG_CONFIG+:} false; then :
4782 $as_echo_n "(cached) " >&6
4786 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4793 test -z "$as_dir" && as_dir=.
4794 for ac_exec_ext in '' $ac_executable_extensions; do
4795 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4796 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4797 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4807 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4808 if test -n "$PKG_CONFIG"; then
4809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4810 $as_echo "$PKG_CONFIG" >&6; }
4812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4813 $as_echo "no" >&6; }
4818 if test -z "$ac_cv_path_PKG_CONFIG"; then
4819 ac_pt_PKG_CONFIG=$PKG_CONFIG
4820 # Extract the first word of "pkg-config", so it can be a program name with args.
4821 set dummy pkg-config; ac_word=$2
4822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4823 $as_echo_n "checking for $ac_word... " >&6; }
4824 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4825 $as_echo_n "(cached) " >&6
4827 case $ac_pt_PKG_CONFIG in
4829 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4836 test -z "$as_dir" && as_dir=.
4837 for ac_exec_ext in '' $ac_executable_extensions; do
4838 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4839 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4850 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4851 if test -n "$ac_pt_PKG_CONFIG"; then
4852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4853 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4856 $as_echo "no" >&6; }
4859 if test "x$ac_pt_PKG_CONFIG" = x; then
4862 case $cross_compiling:$ac_tool_warned in
4864 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4865 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4866 ac_tool_warned=yes ;;
4868 PKG_CONFIG=$ac_pt_PKG_CONFIG
4871 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4875 if test -n "$PKG_CONFIG"; then
4876 _pkg_min_version=0.9.0
4877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4878 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4879 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4881 $as_echo "yes" >&6; }
4883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4884 $as_echo "no" >&6; }
4894 DEPPROFILED_LIBUUID=
4896 # Check whether --enable-libuuid was given.
4897 if test "${enable_libuuid+set}" = set; then :
4898 enableval=$enable_libuuid; if test "$enableval" = "no"
4900 if test -z "$PKG_CONFIG"; then
4901 as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5
4904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
4905 $as_echo_n "checking for uuid_generate in -luuid... " >&6; }
4906 if ${ac_cv_lib_uuid_uuid_generate+:} false; then :
4907 $as_echo_n "(cached) " >&6
4909 ac_check_lib_save_LIBS=$LIBS
4910 LIBS="-luuid $LIBUUID $LIBS"
4911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4912 /* end confdefs.h. */
4914 /* Override any GCC internal prototype to avoid an error.
4915 Use char because int might match the return type of a GCC
4916 builtin and then its argument prototype would still apply. */
4920 char uuid_generate ();
4924 return uuid_generate ();
4929 if ac_fn_c_try_link "$LINENO"; then :
4930 ac_cv_lib_uuid_uuid_generate=yes
4932 ac_cv_lib_uuid_uuid_generate=no
4934 rm -f core conftest.err conftest.$ac_objext \
4935 conftest$ac_exeext conftest.$ac_ext
4936 LIBS=$ac_check_lib_save_LIBS
4938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
4939 $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
4940 if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then :
4941 LIBUUID=`$PKG_CONFIG --libs uuid`;
4942 STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid`
4944 as_fn_error $? "external uuid library not found" "$LINENO" 5
4948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private uuid library" >&5
4949 $as_echo "Disabling private uuid library" >&6; }
4951 LIBUUID='$(LIB)/libuuid'$LIB_EXT
4953 STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
4954 DEPSTATIC_LIBUUID=$STATIC_LIBUUID
4955 PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
4956 DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
4957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library" >&5
4958 $as_echo "Enabling private uuid library" >&6; }
4962 LIBUUID='$(LIB)/libuuid'$LIB_EXT
4964 STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
4965 DEPSTATIC_LIBUUID=$STATIC_LIBUUID
4966 PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
4967 DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
4968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library by default" >&5
4969 $as_echo "Enabling private uuid library by default" >&6; }
4982 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4983 if test -n "$ac_tool_prefix"; then
4984 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4985 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4987 $as_echo_n "checking for $ac_word... " >&6; }
4988 if ${ac_cv_path_PKG_CONFIG+:} false; then :
4989 $as_echo_n "(cached) " >&6
4993 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5000 test -z "$as_dir" && as_dir=.
5001 for ac_exec_ext in '' $ac_executable_extensions; do
5002 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5003 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5004 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5014 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5015 if test -n "$PKG_CONFIG"; then
5016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5017 $as_echo "$PKG_CONFIG" >&6; }
5019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5020 $as_echo "no" >&6; }
5025 if test -z "$ac_cv_path_PKG_CONFIG"; then
5026 ac_pt_PKG_CONFIG=$PKG_CONFIG
5027 # Extract the first word of "pkg-config", so it can be a program name with args.
5028 set dummy pkg-config; ac_word=$2
5029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5030 $as_echo_n "checking for $ac_word... " >&6; }
5031 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
5032 $as_echo_n "(cached) " >&6
5034 case $ac_pt_PKG_CONFIG in
5036 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5043 test -z "$as_dir" && as_dir=.
5044 for ac_exec_ext in '' $ac_executable_extensions; do
5045 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5046 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5057 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5058 if test -n "$ac_pt_PKG_CONFIG"; then
5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5060 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5063 $as_echo "no" >&6; }
5066 if test "x$ac_pt_PKG_CONFIG" = x; then
5069 case $cross_compiling:$ac_tool_warned in
5071 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5072 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5073 ac_tool_warned=yes ;;
5075 PKG_CONFIG=$ac_pt_PKG_CONFIG
5078 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5082 if test -n "$PKG_CONFIG"; then
5083 _pkg_min_version=0.9.0
5084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5085 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5086 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5088 $as_echo "yes" >&6; }
5090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5091 $as_echo "no" >&6; }
5101 DEPPROFILED_LIBBLKID=
5104 # Check whether --enable-libblkid was given.
5105 if test "${enable_libblkid+set}" = set; then :
5106 enableval=$enable_libblkid; if test "$enableval" = "no"
5108 if test -z "$PKG_CONFIG"; then
5109 as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5
5112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
5113 $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
5114 if ${ac_cv_lib_blkid_blkid_get_cache+:} false; then :
5115 $as_echo_n "(cached) " >&6
5117 ac_check_lib_save_LIBS=$LIBS
5118 LIBS="-lblkid $LIBBLKID $LIBS"
5119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5120 /* end confdefs.h. */
5122 /* Override any GCC internal prototype to avoid an error.
5123 Use char because int might match the return type of a GCC
5124 builtin and then its argument prototype would still apply. */
5128 char blkid_get_cache ();
5132 return blkid_get_cache ();
5137 if ac_fn_c_try_link "$LINENO"; then :
5138 ac_cv_lib_blkid_blkid_get_cache=yes
5140 ac_cv_lib_blkid_blkid_get_cache=no
5142 rm -f core conftest.err conftest.$ac_objext \
5143 conftest$ac_exeext conftest.$ac_ext
5144 LIBS=$ac_check_lib_save_LIBS
5146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
5147 $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
5148 if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes; then :
5149 LIBBLKID=`$PKG_CONFIG --libs blkid`;
5150 STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid`
5152 as_fn_error $? "external blkid library not found" "$LINENO" 5
5156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private blkid library" >&5
5157 $as_echo "Disabling private blkid library" >&6; }
5159 LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5160 DEPLIBBLKID=$LIBBLKID
5161 STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5162 DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5163 PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5164 DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
5165 $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
5167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library" >&5
5168 $as_echo "Enabling private blkid library" >&6; }
5172 LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5173 DEPLIBBLKID=$LIBBLKID
5174 STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5175 DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5176 PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5177 DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
5178 $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
5180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library by default" >&5
5181 $as_echo "Enabling private blkid library by default" >&6; }
5194 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5195 if test -n "$ac_tool_prefix"; then
5196 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5197 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5199 $as_echo_n "checking for $ac_word... " >&6; }
5200 if ${ac_cv_path_PKG_CONFIG+:} false; then :
5201 $as_echo_n "(cached) " >&6
5205 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5212 test -z "$as_dir" && as_dir=.
5213 for ac_exec_ext in '' $ac_executable_extensions; do
5214 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5215 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5226 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5227 if test -n "$PKG_CONFIG"; then
5228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5229 $as_echo "$PKG_CONFIG" >&6; }
5231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5232 $as_echo "no" >&6; }
5237 if test -z "$ac_cv_path_PKG_CONFIG"; then
5238 ac_pt_PKG_CONFIG=$PKG_CONFIG
5239 # Extract the first word of "pkg-config", so it can be a program name with args.
5240 set dummy pkg-config; ac_word=$2
5241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5242 $as_echo_n "checking for $ac_word... " >&6; }
5243 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
5244 $as_echo_n "(cached) " >&6
5246 case $ac_pt_PKG_CONFIG in
5248 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5255 test -z "$as_dir" && as_dir=.
5256 for ac_exec_ext in '' $ac_executable_extensions; do
5257 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5258 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5259 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5269 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5270 if test -n "$ac_pt_PKG_CONFIG"; then
5271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5272 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5275 $as_echo "no" >&6; }
5278 if test "x$ac_pt_PKG_CONFIG" = x; then
5281 case $cross_compiling:$ac_tool_warned in
5283 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5284 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5285 ac_tool_warned=yes ;;
5287 PKG_CONFIG=$ac_pt_PKG_CONFIG
5290 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5294 if test -n "$PKG_CONFIG"; then
5295 _pkg_min_version=0.9.0
5296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5297 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5298 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5300 $as_echo "yes" >&6; }
5302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5303 $as_echo "no" >&6; }
5309 # Check whether --enable-quota was given.
5310 if test "${enable_quota+set}" = set; then :
5311 enableval=$enable_quota; if test "$enableval" = "no"
5313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling quota support" >&5
5314 $as_echo "Disabling quota support" >&6; }
5316 $as_echo "#define CONFIG_QUOTA 1" >>confdefs.h
5318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling quota support" >&5
5319 $as_echo "Enabling quota support" >&6; }
5323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling quota support by default" >&5
5324 $as_echo "Disabling quota support by default" >&6; }
5328 LIBQUOTA='$(LIB)/libquota'$LIB_EXT
5329 DEPLIBQUOTA=$LIBQUOTA
5330 STATIC_LIBQUOTA='$(LIB)/libquota'$STATIC_LIB_EXT
5331 DEPSTATIC_LIBQUOTA=$STATIC_LIBQUOTA
5332 PROFILED_LIBQUOTA='$(LIB)/libquota'$PROFILED_LIB_EXT
5333 DEPPROFILED_LIBQUOTA=$PROFILED_LIBQUOTA
5341 # Check whether --enable-debugfs was given.
5342 if test "${enable_debugfs+set}" = set; then :
5343 enableval=$enable_debugfs; if test "$enableval" = "no"
5345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling debugfs support" >&5
5346 $as_echo "Disabling debugfs support" >&6; }
5350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support" >&5
5351 $as_echo "Enabling debugfs support" >&6; }
5355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support by default" >&5
5356 $as_echo "Enabling debugfs support by default" >&6; }
5362 # Check whether --enable-imager was given.
5363 if test "${enable_imager+set}" = set; then :
5364 enableval=$enable_imager; if test "$enableval" = "no"
5366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2image support" >&5
5367 $as_echo "Disabling e2image support" >&6; }
5371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support" >&5
5372 $as_echo "Enabling e2image support" >&6; }
5376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support by default" >&5
5377 $as_echo "Enabling e2image support by default" >&6; }
5383 # Check whether --enable-resizer was given.
5384 if test "${enable_resizer+set}" = set; then :
5385 enableval=$enable_resizer; if test "$enableval" = "no"
5387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2resize support" >&5
5388 $as_echo "Disabling e2resize support" >&6; }
5392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support" >&5
5393 $as_echo "Enabling e2resize support" >&6; }
5397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support by default" >&5
5398 $as_echo "Enabling e2resize support by default" >&6; }
5404 # Check whether --enable-defrag was given.
5405 if test "${enable_defrag+set}" = set; then :
5406 enableval=$enable_defrag; if test "$enableval" = "no"
5408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support" >&5
5409 $as_echo "Disabling e4defrag support" >&6; }
5413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support" >&5
5414 $as_echo "Enabling e4defrag support" >&6; }
5418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support by default" >&5
5419 $as_echo "Enabling e4defrag support by default" >&6; }
5425 # Check whether --enable-fsck was given.
5426 if test "${enable_fsck+set}" = set; then :
5427 enableval=$enable_fsck; if test "$enableval" = "no"
5429 FSCK_PROG='' FSCK_MAN=''
5430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper" >&5
5431 $as_echo "Not building fsck wrapper" >&6; }
5433 FSCK_PROG=fsck FSCK_MAN=fsck.8
5434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper" >&5
5435 $as_echo "Building fsck wrapper" >&6; }
5441 FSCK_PROG='' FSCK_MAN=''
5442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper by default" >&5
5443 $as_echo "Not building fsck wrapper by default" >&6; }
5446 FSCK_PROG=fsck FSCK_MAN=fsck.8
5447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper by default" >&5
5448 $as_echo "Building fsck wrapper by default" >&6; }
5455 # Check whether --enable-e2initrd-helper was given.
5456 if test "${enable_e2initrd_helper+set}" = set; then :
5457 enableval=$enable_e2initrd_helper; if test "$enableval" = "no"
5459 E2INITRD_PROG='' E2INITRD_MAN=''
5460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building e2initrd helper" >&5
5461 $as_echo "Not building e2initrd helper" >&6; }
5463 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
5464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper" >&5
5465 $as_echo "Building e2initrd helper" >&6; }
5469 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
5470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper by default" >&5
5471 $as_echo "Building e2initrd helper by default" >&6; }
5477 # Check whether --enable-tls was given.
5478 if test "${enable_tls+set}" = set; then :
5479 enableval=$enable_tls; if test "$enableval" = "no"
5482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling thread local support" >&5
5483 $as_echo "Disabling thread local support" >&6; }
5486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling thread local support" >&5
5487 $as_echo "Enabling thread local support" >&6; }
5491 if test -n "$WITH_DIET_LIBC"
5494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Diet libc does not support thread local support" >&5
5495 $as_echo "Diet libc does not support thread local support" >&6; }
5498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Try using thread local support by default" >&5
5499 $as_echo "Try using thread local support by default" >&6; }
5504 if test "$try_tls" = "yes"
5507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread local storage (TLS) class" >&5
5508 $as_echo_n "checking for thread local storage (TLS) class... " >&6; }
5509 if ${ac_cv_tls+:} false; then :
5510 $as_echo_n "(cached) " >&6
5513 ax_tls_keywords="__thread __declspec(thread) none"
5514 for ax_tls_keyword in $ax_tls_keywords; do
5515 case $ax_tls_keyword in
5516 none) ac_cv_tls=none ; break ;;
5518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5519 /* end confdefs.h. */
5523 static $ax_tls_keyword int bar;
5534 if ac_fn_c_try_compile "$LINENO"; then :
5535 ac_cv_tls=$ax_tls_keyword ; break
5540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5547 if test "$ac_cv_tls" != "none"; then
5549 cat >>confdefs.h <<_ACEOF
5550 #define TLS $ac_cv_tls
5554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tls" >&5
5555 $as_echo "$ac_cv_tls" >&6; }
5559 # Check whether --enable-uuidd was given.
5560 if test "${enable_uuidd+set}" = set; then :
5561 enableval=$enable_uuidd; if test "$enableval" = "no"
5563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building uuidd" >&5
5564 $as_echo "Not building uuidd" >&6; }
5567 $as_echo "#define USE_UUIDD 1" >>confdefs.h
5570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd" >&5
5571 $as_echo "Building uuidd" >&6; }
5575 $as_echo "#define USE_UUIDD 1" >>confdefs.h
5578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd by default" >&5
5579 $as_echo "Building uuidd by default" >&6; }
5585 # Check whether --enable-mmp was given.
5586 if test "${enable_mmp+set}" = set; then :
5587 enableval=$enable_mmp; if test "$enableval" = "no"
5589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling mmp support" >&5
5590 $as_echo "Disabling mmp support" >&6; }
5592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support" >&5
5593 $as_echo "Enabling mmp support" >&6; }
5594 $as_echo "#define CONFIG_MMP 1" >>confdefs.h
5599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support by default" >&5
5600 $as_echo "Enabling mmp support by default" >&6; }
5601 $as_echo "#define CONFIG_MMP 1" >>confdefs.h
5607 # Check whether --enable-bmap-stats was given.
5608 if test "${enable_bmap_stats+set}" = set; then :
5609 enableval=$enable_bmap_stats; if test "$enableval" = "no"
5611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling bitmap statistics support" >&5
5612 $as_echo "Disabling bitmap statistics support" >&6; }
5614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling bitmap statistics support" >&5
5615 $as_echo "Enabling bitmap statistics support" >&6; }
5616 $as_echo "#define ENABLE_BMAP_STATS 1" >>confdefs.h
5621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling bitmap statistics support by default" >&5
5622 $as_echo "Enabling bitmap statistics support by default" >&6; }
5623 $as_echo "#define ENABLE_BMAP_STATS 1" >>confdefs.h
5629 # Check whether --enable-bmap-stats-ops was given.
5630 if test "${enable_bmap_stats_ops+set}" = set; then :
5631 enableval=$enable_bmap_stats_ops; if test "$enableval" = "no"
5633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling additional bitmap statistics" >&5
5634 $as_echo "Disabling additional bitmap statistics" >&6; }
5636 if test "x${enable_bmap_stats}" = "xno"; then :
5637 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5638 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5639 as_fn_error $? "Error --enable-bmap-stats-ops requires bmap-stats
5640 See \`config.log' for more details" "$LINENO" 5; }
5643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling additional bitmap statistics" >&5
5644 $as_echo "Enabling additional bitmap statistics" >&6; }
5645 $as_echo "#define ENABLE_BMAP_STATS_OPS 1" >>confdefs.h
5650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling additional bitmap statistics by default" >&5
5651 $as_echo "Disabling additional bitmap statistics by default" >&6; }
5655 MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
5657 GETTEXT_PACKAGE=e2fsprogs
5659 VERSION="$E2FSPROGS_VERSION"
5662 cat >>confdefs.h <<_ACEOF
5663 #define PACKAGE "$PACKAGE"
5667 cat >>confdefs.h <<_ACEOF
5668 #define VERSION "$VERSION"
5675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5676 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5678 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5679 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
5680 $as_echo_n "(cached) " >&6
5682 cat >conftest.make <<\_ACEOF
5685 @echo '@@@%%%=$(MAKE)=@@@%%%'
5687 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5688 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5690 eval ac_cv_prog_make_${ac_make}_set=yes;;
5692 eval ac_cv_prog_make_${ac_make}_set=no;;
5696 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5698 $as_echo "yes" >&6; }
5701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5702 $as_echo "no" >&6; }
5703 SET_MAKE="MAKE=${MAKE-make}"
5706 # Find a good install program. We prefer a C program (faster),
5707 # so one script is as good as another. But avoid the broken or
5708 # incompatible versions:
5709 # SysV /etc/install, /usr/sbin/install
5710 # SunOS /usr/etc/install
5711 # IRIX /sbin/install
5713 # AmigaOS /C/install, which installs bootblocks on floppy discs
5714 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5715 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5716 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5717 # OS/2's system install, which has a completely different semantic
5718 # ./install, which can be erroneously created by make from ./install.sh.
5719 # Reject install programs that cannot install multiple files.
5720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
5721 $as_echo_n "checking for a BSD-compatible install... " >&6; }
5722 if test -z "$INSTALL"; then
5723 if ${ac_cv_path_install+:} false; then :
5724 $as_echo_n "(cached) " >&6
5726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5730 test -z "$as_dir" && as_dir=.
5731 # Account for people who put trailing slashes in PATH elements.
5732 case $as_dir/ in #((
5733 ./ | .// | /[cC]/* | \
5734 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5735 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
5738 # OSF1 and SCO ODT 3.0 have their own names for install.
5739 # Don't use installbsd from OSF since it installs stuff as root
5741 for ac_prog in ginstall scoinst install; do
5742 for ac_exec_ext in '' $ac_executable_extensions; do
5743 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5744 if test $ac_prog = install &&
5745 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5746 # AIX install. It has an incompatible calling convention.
5748 elif test $ac_prog = install &&
5749 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5750 # program-specific install script used by HP pwplus--don't use.
5753 rm -rf conftest.one conftest.two conftest.dir
5754 echo one > conftest.one
5755 echo two > conftest.two
5757 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5758 test -s conftest.one && test -s conftest.two &&
5759 test -s conftest.dir/conftest.one &&
5760 test -s conftest.dir/conftest.two
5762 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5775 rm -rf conftest.one conftest.two conftest.dir
5778 if test "${ac_cv_path_install+set}" = set; then
5779 INSTALL=$ac_cv_path_install
5781 # As a last resort, use the slow shell script. Don't cache a
5782 # value for INSTALL within a source directory, because that will
5783 # break other packages using the cache if that directory is
5784 # removed, or if the value is a relative name.
5785 INSTALL=$ac_install_sh
5788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
5789 $as_echo "$INSTALL" >&6; }
5791 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5792 # It thinks the first close brace ends the variable substitution.
5793 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5795 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5797 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5801 if test -n "$ac_aux_dir"; then
5802 case "$ac_aux_dir" in
5803 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
5804 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
5807 if test -z "$MKINSTALLDIRS"; then
5808 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
5813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
5814 $as_echo_n "checking whether NLS is requested... " >&6; }
5815 # Check whether --enable-nls was given.
5816 if test "${enable_nls+set}" = set; then :
5817 enableval=$enable_nls; USE_NLS=$enableval
5822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
5823 $as_echo "$USE_NLS" >&6; }
5830 # Prepare PATH_SEPARATOR.
5831 # The user is always right.
5832 if test "${PATH_SEPARATOR+set}" != set; then
5833 echo "#! /bin/sh" >conf$$.sh
5834 echo "exit 0" >>conf$$.sh
5836 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5844 # Find out how to test for executable files. Don't use a zero-byte file,
5845 # as systems may use methods other than mode bits to determine executability.
5846 cat >conf$$.file <<_ASEOF
5850 chmod +x conf$$.file
5851 if test -x conf$$.file >/dev/null 2>&1; then
5852 ac_executable_p="test -x"
5854 ac_executable_p="test -f"
5858 # Extract the first word of "msgfmt", so it can be a program name with args.
5859 set dummy msgfmt; ac_word=$2
5860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5861 $as_echo_n "checking for $ac_word... " >&6; }
5862 if ${ac_cv_path_MSGFMT+:} false; then :
5863 $as_echo_n "(cached) " >&6
5867 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5870 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5871 for ac_dir in $PATH; do
5873 test -z "$ac_dir" && ac_dir=.
5874 for ac_exec_ext in '' $ac_executable_extensions; do
5875 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5876 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
5877 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5878 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
5885 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
5889 MSGFMT="$ac_cv_path_MSGFMT"
5890 if test "$MSGFMT" != ":"; then
5891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
5892 $as_echo "$MSGFMT" >&6; }
5894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5895 $as_echo "no" >&6; }
5898 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5899 set dummy gmsgfmt; ac_word=$2
5900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5901 $as_echo_n "checking for $ac_word... " >&6; }
5902 if ${ac_cv_path_GMSGFMT+:} false; then :
5903 $as_echo_n "(cached) " >&6
5907 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5914 test -z "$as_dir" && as_dir=.
5915 for ac_exec_ext in '' $ac_executable_extensions; do
5916 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5917 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5925 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5929 GMSGFMT=$ac_cv_path_GMSGFMT
5930 if test -n "$GMSGFMT"; then
5931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
5932 $as_echo "$GMSGFMT" >&6; }
5934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5935 $as_echo "no" >&6; }
5941 # Prepare PATH_SEPARATOR.
5942 # The user is always right.
5943 if test "${PATH_SEPARATOR+set}" != set; then
5944 echo "#! /bin/sh" >conf$$.sh
5945 echo "exit 0" >>conf$$.sh
5947 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5955 # Find out how to test for executable files. Don't use a zero-byte file,
5956 # as systems may use methods other than mode bits to determine executability.
5957 cat >conf$$.file <<_ASEOF
5961 chmod +x conf$$.file
5962 if test -x conf$$.file >/dev/null 2>&1; then
5963 ac_executable_p="test -x"
5965 ac_executable_p="test -f"
5969 # Extract the first word of "xgettext", so it can be a program name with args.
5970 set dummy xgettext; ac_word=$2
5971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5972 $as_echo_n "checking for $ac_word... " >&6; }
5973 if ${ac_cv_path_XGETTEXT+:} false; then :
5974 $as_echo_n "(cached) " >&6
5978 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5981 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5982 for ac_dir in $PATH; do
5984 test -z "$ac_dir" && ac_dir=.
5985 for ac_exec_ext in '' $ac_executable_extensions; do
5986 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5987 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
5988 (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
5989 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
5996 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
6000 XGETTEXT="$ac_cv_path_XGETTEXT"
6001 if test "$XGETTEXT" != ":"; then
6002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
6003 $as_echo "$XGETTEXT" >&6; }
6005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6006 $as_echo "no" >&6; }
6012 # Prepare PATH_SEPARATOR.
6013 # The user is always right.
6014 if test "${PATH_SEPARATOR+set}" != set; then
6015 echo "#! /bin/sh" >conf$$.sh
6016 echo "exit 0" >>conf$$.sh
6018 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6026 # Find out how to test for executable files. Don't use a zero-byte file,
6027 # as systems may use methods other than mode bits to determine executability.
6028 cat >conf$$.file <<_ASEOF
6032 chmod +x conf$$.file
6033 if test -x conf$$.file >/dev/null 2>&1; then
6034 ac_executable_p="test -x"
6036 ac_executable_p="test -f"
6040 # Extract the first word of "msgmerge", so it can be a program name with args.
6041 set dummy msgmerge; ac_word=$2
6042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6043 $as_echo_n "checking for $ac_word... " >&6; }
6044 if ${ac_cv_path_MSGMERGE+:} false; then :
6045 $as_echo_n "(cached) " >&6
6049 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
6052 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6053 for ac_dir in $PATH; do
6055 test -z "$ac_dir" && ac_dir=.
6056 for ac_exec_ext in '' $ac_executable_extensions; do
6057 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6058 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
6059 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
6066 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
6070 MSGMERGE="$ac_cv_path_MSGMERGE"
6071 if test "$MSGMERGE" != ":"; then
6072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
6073 $as_echo "$MSGMERGE" >&6; }
6075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6076 $as_echo "no" >&6; }
6080 if test "$GMSGFMT" != ":"; then
6081 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
6082 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6085 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
6086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
6087 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
6092 if test "$XGETTEXT" != ":"; then
6093 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
6094 (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
6097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
6098 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
6104 ac_config_commands="$ac_config_commands default-1"
6107 if test -n "$ac_tool_prefix"; then
6108 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6109 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6111 $as_echo_n "checking for $ac_word... " >&6; }
6112 if ${ac_cv_prog_RANLIB+:} false; then :
6113 $as_echo_n "(cached) " >&6
6115 if test -n "$RANLIB"; then
6116 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6122 test -z "$as_dir" && as_dir=.
6123 for ac_exec_ext in '' $ac_executable_extensions; do
6124 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6125 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6126 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6135 RANLIB=$ac_cv_prog_RANLIB
6136 if test -n "$RANLIB"; then
6137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6138 $as_echo "$RANLIB" >&6; }
6140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6141 $as_echo "no" >&6; }
6146 if test -z "$ac_cv_prog_RANLIB"; then
6147 ac_ct_RANLIB=$RANLIB
6148 # Extract the first word of "ranlib", so it can be a program name with args.
6149 set dummy ranlib; ac_word=$2
6150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6151 $as_echo_n "checking for $ac_word... " >&6; }
6152 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6153 $as_echo_n "(cached) " >&6
6155 if test -n "$ac_ct_RANLIB"; then
6156 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6162 test -z "$as_dir" && as_dir=.
6163 for ac_exec_ext in '' $ac_executable_extensions; do
6164 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6165 ac_cv_prog_ac_ct_RANLIB="ranlib"
6166 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6175 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6176 if test -n "$ac_ct_RANLIB"; then
6177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6178 $as_echo "$ac_ct_RANLIB" >&6; }
6180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6181 $as_echo "no" >&6; }
6184 if test "x$ac_ct_RANLIB" = x; then
6187 case $cross_compiling:$ac_tool_warned in
6189 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6190 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6191 ac_tool_warned=yes ;;
6193 RANLIB=$ac_ct_RANLIB
6196 RANLIB="$ac_cv_prog_RANLIB"
6200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror in -lcposix" >&5
6201 $as_echo_n "checking for strerror in -lcposix... " >&6; }
6202 if ${ac_cv_lib_cposix_strerror+:} false; then :
6203 $as_echo_n "(cached) " >&6
6205 ac_check_lib_save_LIBS=$LIBS
6206 LIBS="-lcposix $LIBS"
6207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6208 /* end confdefs.h. */
6210 /* Override any GCC internal prototype to avoid an error.
6211 Use char because int might match the return type of a GCC
6212 builtin and then its argument prototype would still apply. */
6225 if ac_fn_c_try_link "$LINENO"; then :
6226 ac_cv_lib_cposix_strerror=yes
6228 ac_cv_lib_cposix_strerror=no
6230 rm -f core conftest.err conftest.$ac_objext \
6231 conftest$ac_exeext conftest.$ac_ext
6232 LIBS=$ac_check_lib_save_LIBS
6234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cposix_strerror" >&5
6235 $as_echo "$ac_cv_lib_cposix_strerror" >&6; }
6236 if test "x$ac_cv_lib_cposix_strerror" = xyes; then :
6237 LIBS="$LIBS -lcposix"
6243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6244 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6245 if ${ac_cv_path_GREP+:} false; then :
6246 $as_echo_n "(cached) " >&6
6248 if test -z "$GREP"; then
6249 ac_path_GREP_found=false
6250 # Loop through the user's path and test for each of PROGNAME-LIST
6251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6252 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6255 test -z "$as_dir" && as_dir=.
6256 for ac_prog in grep ggrep; do
6257 for ac_exec_ext in '' $ac_executable_extensions; do
6258 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6259 as_fn_executable_p "$ac_path_GREP" || continue
6260 # Check for GNU ac_path_GREP and select it if it is found.
6261 # Check for GNU $ac_path_GREP
6262 case `"$ac_path_GREP" --version 2>&1` in
6264 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6267 $as_echo_n 0123456789 >"conftest.in"
6270 cat "conftest.in" "conftest.in" >"conftest.tmp"
6271 mv "conftest.tmp" "conftest.in"
6272 cp "conftest.in" "conftest.nl"
6273 $as_echo 'GREP' >> "conftest.nl"
6274 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6275 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6276 as_fn_arith $ac_count + 1 && ac_count=$as_val
6277 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6278 # Best one so far, save it but keep looking for a better one
6279 ac_cv_path_GREP="$ac_path_GREP"
6280 ac_path_GREP_max=$ac_count
6282 # 10*(2^10) chars as input seems more than enough
6283 test $ac_count -gt 10 && break
6285 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6288 $ac_path_GREP_found && break 3
6293 if test -z "$ac_cv_path_GREP"; then
6294 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6297 ac_cv_path_GREP=$GREP
6301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6302 $as_echo "$ac_cv_path_GREP" >&6; }
6303 GREP="$ac_cv_path_GREP"
6306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6307 $as_echo_n "checking for egrep... " >&6; }
6308 if ${ac_cv_path_EGREP+:} false; then :
6309 $as_echo_n "(cached) " >&6
6311 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6312 then ac_cv_path_EGREP="$GREP -E"
6314 if test -z "$EGREP"; then
6315 ac_path_EGREP_found=false
6316 # Loop through the user's path and test for each of PROGNAME-LIST
6317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6318 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6321 test -z "$as_dir" && as_dir=.
6322 for ac_prog in egrep; do
6323 for ac_exec_ext in '' $ac_executable_extensions; do
6324 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6325 as_fn_executable_p "$ac_path_EGREP" || continue
6326 # Check for GNU ac_path_EGREP and select it if it is found.
6327 # Check for GNU $ac_path_EGREP
6328 case `"$ac_path_EGREP" --version 2>&1` in
6330 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6333 $as_echo_n 0123456789 >"conftest.in"
6336 cat "conftest.in" "conftest.in" >"conftest.tmp"
6337 mv "conftest.tmp" "conftest.in"
6338 cp "conftest.in" "conftest.nl"
6339 $as_echo 'EGREP' >> "conftest.nl"
6340 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6341 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6342 as_fn_arith $ac_count + 1 && ac_count=$as_val
6343 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6344 # Best one so far, save it but keep looking for a better one
6345 ac_cv_path_EGREP="$ac_path_EGREP"
6346 ac_path_EGREP_max=$ac_count
6348 # 10*(2^10) chars as input seems more than enough
6349 test $ac_count -gt 10 && break
6351 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6354 $ac_path_EGREP_found && break 3
6359 if test -z "$ac_cv_path_EGREP"; then
6360 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6363 ac_cv_path_EGREP=$EGREP
6368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6369 $as_echo "$ac_cv_path_EGREP" >&6; }
6370 EGREP="$ac_cv_path_EGREP"
6373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6374 $as_echo_n "checking for ANSI C header files... " >&6; }
6375 if ${ac_cv_header_stdc+:} false; then :
6376 $as_echo_n "(cached) " >&6
6378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6379 /* end confdefs.h. */
6393 if ac_fn_c_try_compile "$LINENO"; then :
6394 ac_cv_header_stdc=yes
6396 ac_cv_header_stdc=no
6398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6400 if test $ac_cv_header_stdc = yes; then
6401 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6403 /* end confdefs.h. */
6407 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6408 $EGREP "memchr" >/dev/null 2>&1; then :
6411 ac_cv_header_stdc=no
6417 if test $ac_cv_header_stdc = yes; then
6418 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6420 /* end confdefs.h. */
6424 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6425 $EGREP "free" >/dev/null 2>&1; then :
6428 ac_cv_header_stdc=no
6434 if test $ac_cv_header_stdc = yes; then
6435 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6436 if test "$cross_compiling" = yes; then :
6439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6440 /* end confdefs.h. */
6443 #if ((' ' & 0x0FF) == 0x020)
6444 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6445 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6447 # define ISLOWER(c) \
6448 (('a' <= (c) && (c) <= 'i') \
6449 || ('j' <= (c) && (c) <= 'r') \
6450 || ('s' <= (c) && (c) <= 'z'))
6451 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6454 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6459 for (i = 0; i < 256; i++)
6460 if (XOR (islower (i), ISLOWER (i))
6461 || toupper (i) != TOUPPER (i))
6466 if ac_fn_c_try_run "$LINENO"; then :
6469 ac_cv_header_stdc=no
6471 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6472 conftest.$ac_objext conftest.beam conftest.$ac_ext
6477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6478 $as_echo "$ac_cv_header_stdc" >&6; }
6479 if test $ac_cv_header_stdc = yes; then
6481 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
6486 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
6487 if ${ac_cv_c_const+:} false; then :
6488 $as_echo_n "(cached) " >&6
6490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6491 /* end confdefs.h. */
6498 /* Ultrix mips cc rejects this sort of thing. */
6499 typedef int charset[2];
6500 const charset cs = { 0, 0 };
6501 /* SunOS 4.1.1 cc rejects this. */
6502 char const *const *pcpcc;
6504 /* NEC SVR4.0.2 mips cc rejects this. */
6505 struct point {int x, y;};
6506 static struct point const zero = {0,0};
6507 /* AIX XL C 1.02.0.0 rejects this.
6508 It does not let you subtract one const X* pointer from another in
6509 an arm of an if-expression whose if-part is not a constant
6511 const char *g = "string";
6512 pcpcc = &g + (g ? g-g : 0);
6513 /* HPUX 7.0 cc rejects these. */
6515 ppc = (char**) pcpcc;
6516 pcpcc = (char const *const *) ppc;
6517 { /* SCO 3.2v4 cc rejects this sort of thing. */
6520 char const *s = 0 ? (char *) 0 : (char const *) 0;
6525 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6527 const int *foo = &x[0];
6530 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6531 typedef const int *iptr;
6535 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
6536 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6537 struct s { int j; const int *ap[3]; } bx;
6538 struct s *b = &bx; b->j = 5;
6540 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6544 return !cs[0] && !zero.x;
6551 if ac_fn_c_try_compile "$LINENO"; then :
6556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
6559 $as_echo "$ac_cv_c_const" >&6; }
6560 if test $ac_cv_c_const = no; then
6562 $as_echo "#define const /**/" >>confdefs.h
6567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed" >&5
6568 $as_echo_n "checking for signed... " >&6; }
6569 if ${bh_cv_c_signed+:} false; then :
6570 $as_echo_n "(cached) " >&6
6572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6573 /* end confdefs.h. */
6583 if ac_fn_c_try_compile "$LINENO"; then :
6588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bh_cv_c_signed" >&5
6591 $as_echo "$bh_cv_c_signed" >&6; }
6592 if test $bh_cv_c_signed = no; then
6594 $as_echo "#define signed /**/" >>confdefs.h
6598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
6599 $as_echo_n "checking for inline... " >&6; }
6600 if ${ac_cv_c_inline+:} false; then :
6601 $as_echo_n "(cached) " >&6
6604 for ac_kw in inline __inline__ __inline; do
6605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6606 /* end confdefs.h. */
6609 static $ac_kw foo_t static_foo () {return 0; }
6610 $ac_kw foo_t foo () {return 0; }
6614 if ac_fn_c_try_compile "$LINENO"; then :
6615 ac_cv_c_inline=$ac_kw
6617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6618 test "$ac_cv_c_inline" != no && break
6622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
6623 $as_echo "$ac_cv_c_inline" >&6; }
6625 case $ac_cv_c_inline in
6628 case $ac_cv_c_inline in
6630 *) ac_val=$ac_cv_c_inline;;
6632 cat >>confdefs.h <<_ACEOF
6634 #define inline $ac_val
6640 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6641 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6642 inttypes.h stdint.h unistd.h
6644 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6645 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6647 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6648 cat >>confdefs.h <<_ACEOF
6649 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6657 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
6658 if test "x$ac_cv_type_off_t" = xyes; then :
6662 cat >>confdefs.h <<_ACEOF
6663 #define off_t long int
6668 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6669 if test "x$ac_cv_type_size_t" = xyes; then :
6673 cat >>confdefs.h <<_ACEOF
6674 #define size_t unsigned int
6680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long" >&5
6681 $as_echo_n "checking for long long... " >&6; }
6682 if ${ac_cv_type_long_long+:} false; then :
6683 $as_echo_n "(cached) " >&6
6685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6686 /* end confdefs.h. */
6687 long long ll = 1LL; int i = 63;
6691 long long llmax = (long long) -1;
6692 return ll << i | ll >> i | llmax / ll | llmax % ll;
6697 if ac_fn_c_try_link "$LINENO"; then :
6698 ac_cv_type_long_long=yes
6700 ac_cv_type_long_long=no
6702 rm -f core conftest.err conftest.$ac_objext \
6703 conftest$ac_exeext conftest.$ac_ext
6705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long" >&5
6706 $as_echo "$ac_cv_type_long_long" >&6; }
6707 if test $ac_cv_type_long_long = yes; then
6709 $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
6714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
6715 $as_echo_n "checking for long double... " >&6; }
6716 if ${gt_cv_c_long_double+:} false; then :
6717 $as_echo_n "(cached) " >&6
6719 if test "$GCC" = yes; then
6720 gt_cv_c_long_double=yes
6722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6723 /* end confdefs.h. */
6725 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
6726 long double foo = 0.0;
6727 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
6728 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
6738 if ac_fn_c_try_compile "$LINENO"; then :
6739 gt_cv_c_long_double=yes
6741 gt_cv_c_long_double=no
6743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_long_double" >&5
6747 $as_echo "$gt_cv_c_long_double" >&6; }
6748 if test $gt_cv_c_long_double = yes; then
6750 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
6755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
6756 $as_echo_n "checking for wchar_t... " >&6; }
6757 if ${gt_cv_c_wchar_t+:} false; then :
6758 $as_echo_n "(cached) " >&6
6760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6761 /* end confdefs.h. */
6763 wchar_t foo = (wchar_t)'\0';
6772 if ac_fn_c_try_compile "$LINENO"; then :
6777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
6780 $as_echo "$gt_cv_c_wchar_t" >&6; }
6781 if test $gt_cv_c_wchar_t = yes; then
6783 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
6788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
6789 $as_echo_n "checking for wint_t... " >&6; }
6790 if ${gt_cv_c_wint_t+:} false; then :
6791 $as_echo_n "(cached) " >&6
6793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6794 /* end confdefs.h. */
6796 wint_t foo = (wchar_t)'\0';
6805 if ac_fn_c_try_compile "$LINENO"; then :
6810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
6813 $as_echo "$gt_cv_c_wint_t" >&6; }
6814 if test $gt_cv_c_wint_t = yes; then
6816 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
6821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
6822 $as_echo_n "checking for inttypes.h... " >&6; }
6823 if ${jm_ac_cv_header_inttypes_h+:} false; then :
6824 $as_echo_n "(cached) " >&6
6826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6827 /* end confdefs.h. */
6828 #include <sys/types.h>
6829 #include <inttypes.h>
6833 uintmax_t i = (uintmax_t) -1;
6838 if ac_fn_c_try_compile "$LINENO"; then :
6839 jm_ac_cv_header_inttypes_h=yes
6841 jm_ac_cv_header_inttypes_h=no
6843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_inttypes_h" >&5
6846 $as_echo "$jm_ac_cv_header_inttypes_h" >&6; }
6847 if test $jm_ac_cv_header_inttypes_h = yes; then
6849 cat >>confdefs.h <<_ACEOF
6850 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
6856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
6857 $as_echo_n "checking for stdint.h... " >&6; }
6858 if ${jm_ac_cv_header_stdint_h+:} false; then :
6859 $as_echo_n "(cached) " >&6
6861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6862 /* end confdefs.h. */
6863 #include <sys/types.h>
6868 uintmax_t i = (uintmax_t) -1;
6873 if ac_fn_c_try_compile "$LINENO"; then :
6874 jm_ac_cv_header_stdint_h=yes
6876 jm_ac_cv_header_stdint_h=no
6878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_stdint_h" >&5
6881 $as_echo "$jm_ac_cv_header_stdint_h" >&6; }
6882 if test $jm_ac_cv_header_stdint_h = yes; then
6884 cat >>confdefs.h <<_ACEOF
6885 #define HAVE_STDINT_H_WITH_UINTMAX 1
6893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
6894 $as_echo_n "checking for intmax_t... " >&6; }
6895 if ${gt_cv_c_intmax_t+:} false; then :
6896 $as_echo_n "(cached) " >&6
6898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6899 /* end confdefs.h. */
6903 #if HAVE_STDINT_H_WITH_UINTMAX
6906 #if HAVE_INTTYPES_H_WITH_UINTMAX
6907 #include <inttypes.h>
6918 if ac_fn_c_try_compile "$LINENO"; then :
6919 gt_cv_c_intmax_t=yes
6923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
6926 $as_echo "$gt_cv_c_intmax_t" >&6; }
6927 if test $gt_cv_c_intmax_t = yes; then
6929 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
6936 $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
6937 if ${gt_cv_func_printf_posix+:} false; then :
6938 $as_echo_n "(cached) " >&6
6941 if test "$cross_compiling" = yes; then :
6943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6944 /* end confdefs.h. */
6946 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
6951 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6952 $EGREP "notposix" >/dev/null 2>&1; then :
6953 gt_cv_func_printf_posix="guessing no"
6955 gt_cv_func_printf_posix="guessing yes"
6961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6962 /* end confdefs.h. */
6966 /* The string "%2$d %1$d", with dollar characters protected from the shell's
6967 dollar expansion (possibly an autoconf bug). */
6968 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
6969 static char buf[100];
6972 sprintf (buf, format, 33, 55);
6973 return (strcmp (buf, "55 33") != 0);
6976 if ac_fn_c_try_run "$LINENO"; then :
6977 gt_cv_func_printf_posix=yes
6979 gt_cv_func_printf_posix=no
6981 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6982 conftest.$ac_objext conftest.beam conftest.$ac_ext
6987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
6988 $as_echo "$gt_cv_func_printf_posix" >&6; }
6989 case $gt_cv_func_printf_posix in
6992 $as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
6997 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6998 # for constant arguments. Useless!
6999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
7000 $as_echo_n "checking for working alloca.h... " >&6; }
7001 if ${ac_cv_working_alloca_h+:} false; then :
7002 $as_echo_n "(cached) " >&6
7004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7005 /* end confdefs.h. */
7010 char *p = (char *) alloca (2 * sizeof (int));
7016 if ac_fn_c_try_link "$LINENO"; then :
7017 ac_cv_working_alloca_h=yes
7019 ac_cv_working_alloca_h=no
7021 rm -f core conftest.err conftest.$ac_objext \
7022 conftest$ac_exeext conftest.$ac_ext
7024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
7025 $as_echo "$ac_cv_working_alloca_h" >&6; }
7026 if test $ac_cv_working_alloca_h = yes; then
7028 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
7032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
7033 $as_echo_n "checking for alloca... " >&6; }
7034 if ${ac_cv_func_alloca_works+:} false; then :
7035 $as_echo_n "(cached) " >&6
7037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7038 /* end confdefs.h. */
7040 # define alloca __builtin_alloca
7043 # include <malloc.h>
7044 # define alloca _alloca
7046 # ifdef HAVE_ALLOCA_H
7047 # include <alloca.h>
7052 # ifndef alloca /* predefined by HP cc +Olibcalls */
7053 void *alloca (size_t);
7063 char *p = (char *) alloca (1);
7069 if ac_fn_c_try_link "$LINENO"; then :
7070 ac_cv_func_alloca_works=yes
7072 ac_cv_func_alloca_works=no
7074 rm -f core conftest.err conftest.$ac_objext \
7075 conftest$ac_exeext conftest.$ac_ext
7077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
7078 $as_echo "$ac_cv_func_alloca_works" >&6; }
7080 if test $ac_cv_func_alloca_works = yes; then
7082 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
7085 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
7086 # that cause trouble. Some versions do not even contain alloca or
7087 # contain a buggy version. If you still want to use their alloca,
7088 # use ar to extract alloca.o from them instead of compiling alloca.c.
7090 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
7092 $as_echo "#define C_ALLOCA 1" >>confdefs.h
7095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
7096 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
7097 if ${ac_cv_os_cray+:} false; then :
7098 $as_echo_n "(cached) " >&6
7100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7101 /* end confdefs.h. */
7102 #if defined CRAY && ! defined CRAY2
7109 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7110 $EGREP "webecray" >/dev/null 2>&1; then :
7118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
7119 $as_echo "$ac_cv_os_cray" >&6; }
7120 if test $ac_cv_os_cray = yes; then
7121 for ac_func in _getb67 GETB67 getb67; do
7122 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7123 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7124 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7126 cat >>confdefs.h <<_ACEOF
7127 #define CRAY_STACKSEG_END $ac_func
7136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
7137 $as_echo_n "checking stack direction for C alloca... " >&6; }
7138 if ${ac_cv_c_stack_direction+:} false; then :
7139 $as_echo_n "(cached) " >&6
7141 if test "$cross_compiling" = yes; then :
7142 ac_cv_c_stack_direction=0
7144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7145 /* end confdefs.h. */
7146 $ac_includes_default
7148 find_stack_direction (int *addr, int depth)
7153 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
7154 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
7159 main (int argc, char **argv)
7161 return find_stack_direction (0, argc + !argv + 20) < 0;
7164 if ac_fn_c_try_run "$LINENO"; then :
7165 ac_cv_c_stack_direction=1
7167 ac_cv_c_stack_direction=-1
7169 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7170 conftest.$ac_objext conftest.beam conftest.$ac_ext
7174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
7175 $as_echo "$ac_cv_c_stack_direction" >&6; }
7176 cat >>confdefs.h <<_ACEOF
7177 #define STACK_DIRECTION $ac_cv_c_stack_direction
7186 for ac_header in $ac_header_list
7188 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7189 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7191 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7192 cat >>confdefs.h <<_ACEOF
7193 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7207 for ac_func in getpagesize
7209 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
7210 if test "x$ac_cv_func_getpagesize" = xyes; then :
7211 cat >>confdefs.h <<_ACEOF
7212 #define HAVE_GETPAGESIZE 1
7218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
7219 $as_echo_n "checking for working mmap... " >&6; }
7220 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
7221 $as_echo_n "(cached) " >&6
7223 if test "$cross_compiling" = yes; then :
7224 ac_cv_func_mmap_fixed_mapped=no
7226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7227 /* end confdefs.h. */
7228 $ac_includes_default
7229 /* malloc might have been renamed as rpl_malloc. */
7232 /* Thanks to Mike Haertel and Jim Avera for this test.
7233 Here is a matrix of mmap possibilities:
7234 mmap private not fixed
7235 mmap private fixed at somewhere currently unmapped
7236 mmap private fixed at somewhere already mapped
7237 mmap shared not fixed
7238 mmap shared fixed at somewhere currently unmapped
7239 mmap shared fixed at somewhere already mapped
7240 For private mappings, we should verify that changes cannot be read()
7241 back from the file, nor mmap's back from the file at a different
7242 address. (There have been systems where private was not correctly
7243 implemented like the infamous i386 svr4.0, and systems where the
7244 VM page cache was not coherent with the file system buffer cache
7245 like early versions of FreeBSD and possibly contemporary NetBSD.)
7246 For shared mappings, we should conversely verify that changes get
7247 propagated back to all the places they're supposed to be.
7249 Grep wants private fixed already mapped.
7250 The main things grep needs to know about mmap are:
7251 * does it exist and is it safe to write into the mmap'd area
7252 * how to use it (BSD variants) */
7255 #include <sys/mman.h>
7257 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7261 /* This mess was copied from the GNU getpagesize.h. */
7262 #ifndef HAVE_GETPAGESIZE
7263 # ifdef _SC_PAGESIZE
7264 # define getpagesize() sysconf(_SC_PAGESIZE)
7265 # else /* no _SC_PAGESIZE */
7266 # ifdef HAVE_SYS_PARAM_H
7267 # include <sys/param.h>
7268 # ifdef EXEC_PAGESIZE
7269 # define getpagesize() EXEC_PAGESIZE
7270 # else /* no EXEC_PAGESIZE */
7272 # define getpagesize() NBPG * CLSIZE
7275 # endif /* no CLSIZE */
7276 # else /* no NBPG */
7278 # define getpagesize() NBPC
7279 # else /* no NBPC */
7281 # define getpagesize() PAGESIZE
7282 # endif /* PAGESIZE */
7283 # endif /* no NBPC */
7284 # endif /* no NBPG */
7285 # endif /* no EXEC_PAGESIZE */
7286 # else /* no HAVE_SYS_PARAM_H */
7287 # define getpagesize() 8192 /* punt totally */
7288 # endif /* no HAVE_SYS_PARAM_H */
7289 # endif /* no _SC_PAGESIZE */
7291 #endif /* no HAVE_GETPAGESIZE */
7296 char *data, *data2, *data3;
7301 pagesize = getpagesize ();
7303 /* First, make a file with some known garbage in it. */
7304 data = (char *) malloc (pagesize);
7307 for (i = 0; i < pagesize; ++i)
7308 *(data + i) = rand ();
7310 fd = creat ("conftest.mmap", 0600);
7313 if (write (fd, data, pagesize) != pagesize)
7317 /* Next, check that the tail of a page is zero-filled. File must have
7318 non-zero length, otherwise we risk SIGBUS for entire page. */
7319 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7323 if (write (fd2, cdata2, 1) != 1)
7325 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7326 if (data2 == MAP_FAILED)
7328 for (i = 0; i < pagesize; ++i)
7332 if (munmap (data2, pagesize))
7335 /* Next, try to mmap the file at a fixed address which already has
7336 something else allocated at it. If we can, also make sure that
7337 we see the same garbage. */
7338 fd = open ("conftest.mmap", O_RDWR);
7341 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7342 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7344 for (i = 0; i < pagesize; ++i)
7345 if (*(data + i) != *(data2 + i))
7348 /* Finally, make sure that changes to the mapped area do not
7349 percolate back to the file as seen by read(). (This is a bug on
7350 some variants of i386 svr4.0.) */
7351 for (i = 0; i < pagesize; ++i)
7352 *(data2 + i) = *(data2 + i) + 1;
7353 data3 = (char *) malloc (pagesize);
7356 if (read (fd, data3, pagesize) != pagesize)
7358 for (i = 0; i < pagesize; ++i)
7359 if (*(data + i) != *(data3 + i))
7365 if ac_fn_c_try_run "$LINENO"; then :
7366 ac_cv_func_mmap_fixed_mapped=yes
7368 ac_cv_func_mmap_fixed_mapped=no
7370 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7371 conftest.$ac_objext conftest.beam conftest.$ac_ext
7375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
7376 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
7377 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7379 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
7382 rm -f conftest.mmap conftest.txt
7385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
7386 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
7387 if ${ac_cv_gnu_library_2_1+:} false; then :
7388 $as_echo_n "(cached) " >&6
7390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7391 /* end confdefs.h. */
7393 #include <features.h>
7394 #ifdef __GNU_LIBRARY__
7395 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
7401 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7402 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
7403 ac_cv_gnu_library_2_1=yes
7405 ac_cv_gnu_library_2_1=no
7412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
7413 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
7415 GLIBC21="$ac_cv_gnu_library_2_1"
7420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
7421 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
7422 if ${gt_cv_int_divbyzero_sigfpe+:} false; then :
7423 $as_echo_n "(cached) " >&6
7426 if test "$cross_compiling" = yes; then :
7428 # Guess based on the CPU.
7430 alpha* | i3456786 | m68k | s390*)
7431 gt_cv_int_divbyzero_sigfpe="guessing yes";;
7433 gt_cv_int_divbyzero_sigfpe="guessing no";;
7437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7438 /* end confdefs.h. */
7445 sigfpe_handler (int sig)
7447 sigfpe_handler (sig) int sig;
7450 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
7451 exit (sig != SIGFPE);
7461 signal (SIGFPE, sigfpe_handler);
7462 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
7463 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
7464 signal (SIGTRAP, sigfpe_handler);
7466 /* Linux/SPARC yields signal SIGILL. */
7467 #if defined (__sparc__) && defined (__linux__)
7468 signal (SIGILL, sigfpe_handler);
7477 if ac_fn_c_try_run "$LINENO"; then :
7478 gt_cv_int_divbyzero_sigfpe=yes
7480 gt_cv_int_divbyzero_sigfpe=no
7482 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7483 conftest.$ac_objext conftest.beam conftest.$ac_ext
7488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
7489 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
7490 case "$gt_cv_int_divbyzero_sigfpe" in
7495 cat >>confdefs.h <<_ACEOF
7496 #define INTDIV0_RAISES_SIGFPE $value
7501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long" >&5
7502 $as_echo_n "checking for unsigned long long... " >&6; }
7503 if ${ac_cv_type_unsigned_long_long+:} false; then :
7504 $as_echo_n "(cached) " >&6
7506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7507 /* end confdefs.h. */
7508 unsigned long long ull = 1ULL; int i = 63;
7512 unsigned long long ullmax = (unsigned long long) -1;
7513 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
7518 if ac_fn_c_try_link "$LINENO"; then :
7519 ac_cv_type_unsigned_long_long=yes
7521 ac_cv_type_unsigned_long_long=no
7523 rm -f core conftest.err conftest.$ac_objext \
7524 conftest$ac_exeext conftest.$ac_ext
7526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long" >&5
7527 $as_echo "$ac_cv_type_unsigned_long_long" >&6; }
7528 if test $ac_cv_type_unsigned_long_long = yes; then
7530 $as_echo "#define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h
7537 if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
7539 test $ac_cv_type_unsigned_long_long = yes \
7540 && ac_type='unsigned long long' \
7541 || ac_type='unsigned long'
7543 cat >>confdefs.h <<_ACEOF
7544 #define uintmax_t $ac_type
7549 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
7554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
7555 $as_echo_n "checking for inttypes.h... " >&6; }
7556 if ${gt_cv_header_inttypes_h+:} false; then :
7557 $as_echo_n "(cached) " >&6
7560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7561 /* end confdefs.h. */
7562 #include <sys/types.h>
7563 #include <inttypes.h>
7572 if ac_fn_c_try_compile "$LINENO"; then :
7573 gt_cv_header_inttypes_h=yes
7575 gt_cv_header_inttypes_h=no
7577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_header_inttypes_h" >&5
7581 $as_echo "$gt_cv_header_inttypes_h" >&6; }
7582 if test $gt_cv_header_inttypes_h = yes; then
7584 cat >>confdefs.h <<_ACEOF
7585 #define HAVE_INTTYPES_H 1
7592 if test $gt_cv_header_inttypes_h = yes; then
7593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
7594 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
7595 if ${gt_cv_inttypes_pri_broken+:} false; then :
7596 $as_echo_n "(cached) " >&6
7599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7600 /* end confdefs.h. */
7601 #include <inttypes.h>
7614 if ac_fn_c_try_compile "$LINENO"; then :
7615 gt_cv_inttypes_pri_broken=no
7617 gt_cv_inttypes_pri_broken=yes
7619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
7623 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
7625 if test "$gt_cv_inttypes_pri_broken" = yes; then
7627 cat >>confdefs.h <<_ACEOF
7628 #define PRI_MACROS_BROKEN 1
7634 for ac_header in stdint.h
7636 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
7637 if test "x$ac_cv_header_stdint_h" = xyes; then :
7638 cat >>confdefs.h <<_ACEOF
7639 #define HAVE_STDINT_H 1
7646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
7647 $as_echo_n "checking for SIZE_MAX... " >&6; }
7649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7650 /* end confdefs.h. */
7661 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7662 $EGREP "Found it" >/dev/null 2>&1; then :
7667 if test -z "$result"; then
7668 if ac_fn_c_compute_int "$LINENO" "~(size_t)0 / 10" "res_hi" "#include <stddef.h>"; then :
7675 if ac_fn_c_compute_int "$LINENO" "~(size_t)0 % 10" "res_lo" "#include <stddef.h>"; then :
7682 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then :
7689 if test "$fits_in_uint" = 1; then
7690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7691 /* end confdefs.h. */
7694 extern unsigned long foo;
7704 if ac_fn_c_try_compile "$LINENO"; then :
7707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7709 if test -z "$result"; then
7710 if test "$fits_in_uint" = 1; then
7711 result="$res_hi$res_lo"U
7713 result="$res_hi$res_lo"UL
7719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
7720 $as_echo "$result" >&6; }
7721 if test "$result" != yes; then
7723 cat >>confdefs.h <<_ACEOF
7724 #define SIZE_MAX $result
7731 for ac_header in stdint.h
7733 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
7734 if test "x$ac_cv_header_stdint_h" = xyes; then :
7735 cat >>confdefs.h <<_ACEOF
7736 #define HAVE_STDINT_H 1
7745 if test "X$prefix" = "XNONE"; then
7746 acl_final_prefix="$ac_default_prefix"
7748 acl_final_prefix="$prefix"
7750 if test "X$exec_prefix" = "XNONE"; then
7751 acl_final_exec_prefix='${prefix}'
7753 acl_final_exec_prefix="$exec_prefix"
7755 acl_save_prefix="$prefix"
7756 prefix="$acl_final_prefix"
7757 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7758 prefix="$acl_save_prefix"
7761 # Check whether --with-gnu-ld was given.
7762 if test "${with_gnu_ld+set}" = set; then :
7763 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7768 # Prepare PATH_SEPARATOR.
7769 # The user is always right.
7770 if test "${PATH_SEPARATOR+set}" != set; then
7771 echo "#! /bin/sh" >conf$$.sh
7772 echo "exit 0" >>conf$$.sh
7774 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7782 if test "$GCC" = yes; then
7783 # Check if gcc -print-prog-name=ld gives a path.
7784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
7785 $as_echo_n "checking for ld used by GCC... " >&6; }
7788 # gcc leaves a trailing carriage return which upsets mingw
7789 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7791 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7794 # Accept absolute paths.
7795 [\\/]* | [A-Za-z]:[\\/]*)
7796 re_direlt='/[^/][^/]*/\.\./'
7797 # Canonicalize the path of ld
7798 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
7799 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
7800 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
7802 test -z "$LD" && LD="$ac_prog"
7805 # If it fails, then pretend we aren't using GCC.
7809 # If it is relative, then search for the first ld in PATH.
7813 elif test "$with_gnu_ld" = yes; then
7814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7815 $as_echo_n "checking for GNU ld... " >&6; }
7817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7818 $as_echo_n "checking for non-GNU ld... " >&6; }
7820 if ${acl_cv_path_LD+:} false; then :
7821 $as_echo_n "(cached) " >&6
7823 if test -z "$LD"; then
7824 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
7825 for ac_dir in $PATH; do
7826 test -z "$ac_dir" && ac_dir=.
7827 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7828 acl_cv_path_LD="$ac_dir/$ac_prog"
7829 # Check to see if the program is GNU ld. I'd rather use --version,
7830 # but apparently some GNU ld's only accept -v.
7831 # Break only if it was the GNU/non-GNU ld that we prefer.
7832 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
7833 *GNU* | *'with BFD'*)
7834 test "$with_gnu_ld" != no && break ;;
7836 test "$with_gnu_ld" != yes && break ;;
7842 acl_cv_path_LD="$LD" # Let the user override the test with a path.
7846 LD="$acl_cv_path_LD"
7847 if test -n "$LD"; then
7848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7849 $as_echo "$LD" >&6; }
7851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7852 $as_echo "no" >&6; }
7854 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7856 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7857 if ${acl_cv_prog_gnu_ld+:} false; then :
7858 $as_echo_n "(cached) " >&6
7860 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
7861 case `$LD -v 2>&1 </dev/null` in
7862 *GNU* | *'with BFD'*)
7863 acl_cv_prog_gnu_ld=yes ;;
7865 acl_cv_prog_gnu_ld=no ;;
7868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
7869 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
7870 with_gnu_ld=$acl_cv_prog_gnu_ld
7874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
7875 $as_echo_n "checking for shared library run path origin... " >&6; }
7876 if ${acl_cv_rpath+:} false; then :
7877 $as_echo_n "(cached) " >&6
7880 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
7881 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
7888 $as_echo "$acl_cv_rpath" >&6; }
7890 libext="$acl_cv_libext"
7891 shlibext="$acl_cv_shlibext"
7892 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
7893 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
7894 hardcode_direct="$acl_cv_hardcode_direct"
7895 hardcode_minus_L="$acl_cv_hardcode_minus_L"
7896 # Check whether --enable-rpath was given.
7897 if test "${enable_rpath+set}" = set; then :
7898 enableval=$enable_rpath; :
7912 acl_save_prefix="$prefix"
7913 prefix="$acl_final_prefix"
7914 acl_save_exec_prefix="$exec_prefix"
7915 exec_prefix="$acl_final_exec_prefix"
7917 eval additional_includedir=\"$includedir\"
7918 eval additional_libdir=\"$libdir\"
7920 exec_prefix="$acl_save_exec_prefix"
7921 prefix="$acl_save_prefix"
7924 # Check whether --with-libiconv-prefix was given.
7925 if test "${with_libiconv_prefix+set}" = set; then :
7926 withval=$with_libiconv_prefix;
7927 if test "X$withval" = "Xno"; then
7930 if test "X$withval" = "X"; then
7932 acl_save_prefix="$prefix"
7933 prefix="$acl_final_prefix"
7934 acl_save_exec_prefix="$exec_prefix"
7935 exec_prefix="$acl_final_exec_prefix"
7937 eval additional_includedir=\"$includedir\"
7938 eval additional_libdir=\"$libdir\"
7940 exec_prefix="$acl_save_exec_prefix"
7941 prefix="$acl_save_prefix"
7944 additional_includedir="$withval/include"
7945 additional_libdir="$withval/lib"
7956 names_already_handled=
7957 names_next_round='iconv '
7958 while test -n "$names_next_round"; do
7959 names_this_round="$names_next_round"
7961 for name in $names_this_round; do
7963 for n in $names_already_handled; do
7964 if test "$n" = "$name"; then
7969 if test -z "$already_handled"; then
7970 names_already_handled="$names_already_handled $name"
7971 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7972 eval value=\"\$HAVE_LIB$uppername\"
7973 if test -n "$value"; then
7974 if test "$value" = yes; then
7975 eval value=\"\$LIB$uppername\"
7976 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
7977 eval value=\"\$LTLIB$uppername\"
7978 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
7987 if test $use_additional = yes; then
7988 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
7989 found_dir="$additional_libdir"
7990 found_so="$additional_libdir/lib$name.$shlibext"
7991 if test -f "$additional_libdir/lib$name.la"; then
7992 found_la="$additional_libdir/lib$name.la"
7995 if test -f "$additional_libdir/lib$name.$libext"; then
7996 found_dir="$additional_libdir"
7997 found_a="$additional_libdir/lib$name.$libext"
7998 if test -f "$additional_libdir/lib$name.la"; then
7999 found_la="$additional_libdir/lib$name.la"
8004 if test "X$found_dir" = "X"; then
8005 for x in $LDFLAGS $LTLIBICONV; do
8007 acl_save_prefix="$prefix"
8008 prefix="$acl_final_prefix"
8009 acl_save_exec_prefix="$exec_prefix"
8010 exec_prefix="$acl_final_exec_prefix"
8012 exec_prefix="$acl_save_exec_prefix"
8013 prefix="$acl_save_prefix"
8017 dir=`echo "X$x" | sed -e 's/^X-L//'`
8018 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
8020 found_so="$dir/lib$name.$shlibext"
8021 if test -f "$dir/lib$name.la"; then
8022 found_la="$dir/lib$name.la"
8025 if test -f "$dir/lib$name.$libext"; then
8027 found_a="$dir/lib$name.$libext"
8028 if test -f "$dir/lib$name.la"; then
8029 found_la="$dir/lib$name.la"
8035 if test "X$found_dir" != "X"; then
8040 if test "X$found_dir" != "X"; then
8041 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
8042 if test "X$found_so" != "X"; then
8043 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
8044 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8047 for x in $ltrpathdirs; do
8048 if test "X$x" = "X$found_dir"; then
8053 if test -z "$haveit"; then
8054 ltrpathdirs="$ltrpathdirs $found_dir"
8056 if test "$hardcode_direct" = yes; then
8057 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8059 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
8060 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8062 for x in $rpathdirs; do
8063 if test "X$x" = "X$found_dir"; then
8068 if test -z "$haveit"; then
8069 rpathdirs="$rpathdirs $found_dir"
8073 for x in $LDFLAGS $LIBICONV; do
8075 acl_save_prefix="$prefix"
8076 prefix="$acl_final_prefix"
8077 acl_save_exec_prefix="$exec_prefix"
8078 exec_prefix="$acl_final_exec_prefix"
8080 exec_prefix="$acl_save_exec_prefix"
8081 prefix="$acl_save_prefix"
8083 if test "X$x" = "X-L$found_dir"; then
8088 if test -z "$haveit"; then
8089 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
8091 if test "$hardcode_minus_L" != no; then
8092 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8094 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8100 if test "X$found_a" != "X"; then
8101 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
8103 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
8106 additional_includedir=
8107 case "$found_dir" in
8109 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
8110 additional_includedir="$basedir/include"
8113 if test "X$additional_includedir" != "X"; then
8114 if test "X$additional_includedir" != "X/usr/include"; then
8116 if test "X$additional_includedir" = "X/usr/local/include"; then
8117 if test -n "$GCC"; then
8119 linux*) haveit=yes;;
8123 if test -z "$haveit"; then
8124 for x in $CPPFLAGS $INCICONV; do
8126 acl_save_prefix="$prefix"
8127 prefix="$acl_final_prefix"
8128 acl_save_exec_prefix="$exec_prefix"
8129 exec_prefix="$acl_final_exec_prefix"
8131 exec_prefix="$acl_save_exec_prefix"
8132 prefix="$acl_save_prefix"
8134 if test "X$x" = "X-I$additional_includedir"; then
8139 if test -z "$haveit"; then
8140 if test -d "$additional_includedir"; then
8141 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
8147 if test -n "$found_la"; then
8148 save_libdir="$libdir"
8150 */* | *\\*) . "$found_la" ;;
8151 *) . "./$found_la" ;;
8153 libdir="$save_libdir"
8154 for dep in $dependency_libs; do
8157 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8158 if test "X$additional_libdir" != "X/usr/lib"; then
8160 if test "X$additional_libdir" = "X/usr/local/lib"; then
8161 if test -n "$GCC"; then
8163 linux*) haveit=yes;;
8167 if test -z "$haveit"; then
8169 for x in $LDFLAGS $LIBICONV; do
8171 acl_save_prefix="$prefix"
8172 prefix="$acl_final_prefix"
8173 acl_save_exec_prefix="$exec_prefix"
8174 exec_prefix="$acl_final_exec_prefix"
8176 exec_prefix="$acl_save_exec_prefix"
8177 prefix="$acl_save_prefix"
8179 if test "X$x" = "X-L$additional_libdir"; then
8184 if test -z "$haveit"; then
8185 if test -d "$additional_libdir"; then
8186 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
8190 for x in $LDFLAGS $LTLIBICONV; do
8192 acl_save_prefix="$prefix"
8193 prefix="$acl_final_prefix"
8194 acl_save_exec_prefix="$exec_prefix"
8195 exec_prefix="$acl_final_exec_prefix"
8197 exec_prefix="$acl_save_exec_prefix"
8198 prefix="$acl_save_prefix"
8200 if test "X$x" = "X-L$additional_libdir"; then
8205 if test -z "$haveit"; then
8206 if test -d "$additional_libdir"; then
8207 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
8214 dir=`echo "X$dep" | sed -e 's/^X-R//'`
8215 if test "$enable_rpath" != no; then
8217 for x in $rpathdirs; do
8218 if test "X$x" = "X$dir"; then
8223 if test -z "$haveit"; then
8224 rpathdirs="$rpathdirs $dir"
8227 for x in $ltrpathdirs; do
8228 if test "X$x" = "X$dir"; then
8233 if test -z "$haveit"; then
8234 ltrpathdirs="$ltrpathdirs $dir"
8239 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8242 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8245 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
8246 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
8252 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8253 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
8259 if test "X$rpathdirs" != "X"; then
8260 if test -n "$hardcode_libdir_separator"; then
8262 for found_dir in $rpathdirs; do
8263 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8265 acl_save_libdir="$libdir"
8267 eval flag=\"$hardcode_libdir_flag_spec\"
8268 libdir="$acl_save_libdir"
8269 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8271 for found_dir in $rpathdirs; do
8272 acl_save_libdir="$libdir"
8274 eval flag=\"$hardcode_libdir_flag_spec\"
8275 libdir="$acl_save_libdir"
8276 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8280 if test "X$ltrpathdirs" != "X"; then
8281 for found_dir in $ltrpathdirs; do
8282 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
8293 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
8294 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
8298 $as_echo "#define ptrdiff_t long" >>confdefs.h
8303 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
8304 stdlib.h string.h unistd.h sys/param.h
8306 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8307 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8308 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8309 cat >>confdefs.h <<_ACEOF
8310 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8317 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
8318 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
8319 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
8322 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8323 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8324 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8325 cat >>confdefs.h <<_ACEOF
8326 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snprintf is declared" >&5
8335 $as_echo_n "checking whether _snprintf is declared... " >&6; }
8336 if ${ac_cv_have_decl__snprintf+:} false; then :
8337 $as_echo_n "(cached) " >&6
8339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8340 /* end confdefs.h. */
8347 char *p = (char *) _snprintf;
8354 if ac_fn_c_try_compile "$LINENO"; then :
8355 ac_cv_have_decl__snprintf=yes
8357 ac_cv_have_decl__snprintf=no
8359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snprintf" >&5
8362 $as_echo "$ac_cv_have_decl__snprintf" >&6; }
8363 if test $ac_cv_have_decl__snprintf = yes; then
8369 cat >>confdefs.h <<_ACEOF
8370 #define HAVE_DECL__SNPRINTF $gt_value
8375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snwprintf is declared" >&5
8376 $as_echo_n "checking whether _snwprintf is declared... " >&6; }
8377 if ${ac_cv_have_decl__snwprintf+:} false; then :
8378 $as_echo_n "(cached) " >&6
8380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8381 /* end confdefs.h. */
8388 char *p = (char *) _snwprintf;
8395 if ac_fn_c_try_compile "$LINENO"; then :
8396 ac_cv_have_decl__snwprintf=yes
8398 ac_cv_have_decl__snwprintf=no
8400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snwprintf" >&5
8403 $as_echo "$ac_cv_have_decl__snwprintf" >&6; }
8404 if test $ac_cv_have_decl__snwprintf = yes; then
8410 cat >>confdefs.h <<_ACEOF
8411 #define HAVE_DECL__SNWPRINTF $gt_value
8417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether feof_unlocked is declared" >&5
8418 $as_echo_n "checking whether feof_unlocked is declared... " >&6; }
8419 if ${ac_cv_have_decl_feof_unlocked+:} false; then :
8420 $as_echo_n "(cached) " >&6
8422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8423 /* end confdefs.h. */
8429 #ifndef feof_unlocked
8430 char *p = (char *) feof_unlocked;
8437 if ac_fn_c_try_compile "$LINENO"; then :
8438 ac_cv_have_decl_feof_unlocked=yes
8440 ac_cv_have_decl_feof_unlocked=no
8442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_feof_unlocked" >&5
8445 $as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
8446 if test $ac_cv_have_decl_feof_unlocked = yes; then
8452 cat >>confdefs.h <<_ACEOF
8453 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
8458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fgets_unlocked is declared" >&5
8459 $as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
8460 if ${ac_cv_have_decl_fgets_unlocked+:} false; then :
8461 $as_echo_n "(cached) " >&6
8463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8464 /* end confdefs.h. */
8470 #ifndef fgets_unlocked
8471 char *p = (char *) fgets_unlocked;
8478 if ac_fn_c_try_compile "$LINENO"; then :
8479 ac_cv_have_decl_fgets_unlocked=yes
8481 ac_cv_have_decl_fgets_unlocked=no
8483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_fgets_unlocked" >&5
8486 $as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
8487 if test $ac_cv_have_decl_fgets_unlocked = yes; then
8493 cat >>confdefs.h <<_ACEOF
8494 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
8499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getc_unlocked is declared" >&5
8500 $as_echo_n "checking whether getc_unlocked is declared... " >&6; }
8501 if ${ac_cv_have_decl_getc_unlocked+:} false; then :
8502 $as_echo_n "(cached) " >&6
8504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8505 /* end confdefs.h. */
8511 #ifndef getc_unlocked
8512 char *p = (char *) getc_unlocked;
8519 if ac_fn_c_try_compile "$LINENO"; then :
8520 ac_cv_have_decl_getc_unlocked=yes
8522 ac_cv_have_decl_getc_unlocked=no
8524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_getc_unlocked" >&5
8527 $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
8528 if test $ac_cv_have_decl_getc_unlocked = yes; then
8534 cat >>confdefs.h <<_ACEOF
8535 #define HAVE_DECL_GETC_UNLOCKED $gt_value
8540 case $gt_cv_func_printf_posix in
8541 *yes) HAVE_POSIX_PRINTF=1 ;;
8542 *) HAVE_POSIX_PRINTF=0 ;;
8545 if test "$ac_cv_func_asprintf" = yes; then
8551 if test "$ac_cv_func_snprintf" = yes; then
8557 if test "$ac_cv_func_wprintf" = yes; then
8569 am_save_CPPFLAGS="$CPPFLAGS"
8571 for element in $INCICONV; do
8573 for x in $CPPFLAGS; do
8575 acl_save_prefix="$prefix"
8576 prefix="$acl_final_prefix"
8577 acl_save_exec_prefix="$exec_prefix"
8578 exec_prefix="$acl_final_exec_prefix"
8580 exec_prefix="$acl_save_exec_prefix"
8581 prefix="$acl_save_prefix"
8583 if test "X$x" = "X$element"; then
8588 if test -z "$haveit"; then
8589 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
8595 $as_echo_n "checking for iconv... " >&6; }
8596 if ${am_cv_func_iconv+:} false; then :
8597 $as_echo_n "(cached) " >&6
8600 am_cv_func_iconv="no, consider installing GNU libiconv"
8602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8603 /* end confdefs.h. */
8609 iconv_t cd = iconv_open("","");
8610 iconv(cd,NULL,NULL,NULL,NULL);
8616 if ac_fn_c_try_link "$LINENO"; then :
8617 am_cv_func_iconv=yes
8619 rm -f core conftest.err conftest.$ac_objext \
8620 conftest$ac_exeext conftest.$ac_ext
8621 if test "$am_cv_func_iconv" != yes; then
8622 am_save_LIBS="$LIBS"
8623 LIBS="$LIBS $LIBICONV"
8624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8625 /* end confdefs.h. */
8631 iconv_t cd = iconv_open("","");
8632 iconv(cd,NULL,NULL,NULL,NULL);
8638 if ac_fn_c_try_link "$LINENO"; then :
8640 am_cv_func_iconv=yes
8642 rm -f core conftest.err conftest.$ac_objext \
8643 conftest$ac_exeext conftest.$ac_ext
8644 LIBS="$am_save_LIBS"
8648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
8649 $as_echo "$am_cv_func_iconv" >&6; }
8650 if test "$am_cv_func_iconv" = yes; then
8652 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
8655 if test "$am_cv_lib_iconv" = yes; then
8656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
8657 $as_echo_n "checking how to link with libiconv... " >&6; }
8658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
8659 $as_echo "$LIBICONV" >&6; }
8661 CPPFLAGS="$am_save_CPPFLAGS"
8668 if test "$am_cv_func_iconv" = yes; then
8669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
8670 $as_echo_n "checking for iconv declaration... " >&6; }
8671 if ${am_cv_proto_iconv+:} false; then :
8672 $as_echo_n "(cached) " >&6
8675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8676 /* end confdefs.h. */
8684 #if defined(__STDC__) || defined(__cplusplus)
8685 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
8698 if ac_fn_c_try_compile "$LINENO"; then :
8699 am_cv_proto_iconv_arg1=""
8701 am_cv_proto_iconv_arg1="const"
8703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8704 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);"
8707 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
8708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
8709 }$am_cv_proto_iconv" >&5
8711 }$am_cv_proto_iconv" >&6; }
8713 cat >>confdefs.h <<_ACEOF
8714 #define ICONV_CONST $am_cv_proto_iconv_arg1
8720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
8721 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
8722 if ${am_cv_langinfo_codeset+:} false; then :
8723 $as_echo_n "(cached) " >&6
8725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8726 /* end confdefs.h. */
8727 #include <langinfo.h>
8731 char* cs = nl_langinfo(CODESET);
8736 if ac_fn_c_try_link "$LINENO"; then :
8737 am_cv_langinfo_codeset=yes
8739 am_cv_langinfo_codeset=no
8741 rm -f core conftest.err conftest.$ac_objext \
8742 conftest$ac_exeext conftest.$ac_ext
8745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
8746 $as_echo "$am_cv_langinfo_codeset" >&6; }
8747 if test $am_cv_langinfo_codeset = yes; then
8749 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
8753 if test $ac_cv_header_locale_h = yes; then
8755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
8756 $as_echo_n "checking for LC_MESSAGES... " >&6; }
8757 if ${am_cv_val_LC_MESSAGES+:} false; then :
8758 $as_echo_n "(cached) " >&6
8760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8761 /* end confdefs.h. */
8771 if ac_fn_c_try_link "$LINENO"; then :
8772 am_cv_val_LC_MESSAGES=yes
8774 am_cv_val_LC_MESSAGES=no
8776 rm -f core conftest.err conftest.$ac_objext \
8777 conftest$ac_exeext conftest.$ac_ext
8779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
8780 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
8781 if test $am_cv_val_LC_MESSAGES = yes; then
8783 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
8789 for ac_prog in bison
8791 # Extract the first word of "$ac_prog", so it can be a program name with args.
8792 set dummy $ac_prog; ac_word=$2
8793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8794 $as_echo_n "checking for $ac_word... " >&6; }
8795 if ${ac_cv_prog_INTLBISON+:} false; then :
8796 $as_echo_n "(cached) " >&6
8798 if test -n "$INTLBISON"; then
8799 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
8801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8805 test -z "$as_dir" && as_dir=.
8806 for ac_exec_ext in '' $ac_executable_extensions; do
8807 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8808 ac_cv_prog_INTLBISON="$ac_prog"
8809 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8818 INTLBISON=$ac_cv_prog_INTLBISON
8819 if test -n "$INTLBISON"; then
8820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
8821 $as_echo "$INTLBISON" >&6; }
8823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8824 $as_echo "no" >&6; }
8828 test -n "$INTLBISON" && break
8831 if test -z "$INTLBISON"; then
8834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
8835 $as_echo_n "checking version of bison... " >&6; }
8836 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
8837 case $ac_prog_version in
8838 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
8839 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
8840 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
8841 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
8843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
8844 $as_echo "$ac_prog_version" >&6; }
8846 if test $ac_verc_fail = yes; then
8865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
8866 $as_echo_n "checking whether NLS is requested... " >&6; }
8867 # Check whether --enable-nls was given.
8868 if test "${enable_nls+set}" = set; then :
8869 enableval=$enable_nls; USE_NLS=$enableval
8874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
8875 $as_echo "$USE_NLS" >&6; }
8880 BUILD_INCLUDED_LIBINTL=no
8881 USE_INCLUDED_LIBINTL=no
8887 if test "$USE_NLS" = "yes"; then
8888 gt_use_preinstalled_gnugettext=no
8890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
8891 $as_echo_n "checking whether included gettext is requested... " >&6; }
8893 # Check whether --with-included-gettext was given.
8894 if test "${with_included_gettext+set}" = set; then :
8895 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
8897 nls_cv_force_use_gnu_gettext=no
8900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
8901 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
8903 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
8904 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
8911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
8912 $as_echo_n "checking for GNU gettext in libc... " >&6; }
8913 if ${gt_cv_func_gnugettext1_libc+:} false; then :
8914 $as_echo_n "(cached) " >&6
8916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8917 /* end confdefs.h. */
8918 #include <libintl.h>
8919 extern int _nl_msg_cat_cntr;
8920 extern int *_nl_domain_bindings;
8924 bindtextdomain ("", "");
8925 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
8930 if ac_fn_c_try_link "$LINENO"; then :
8931 gt_cv_func_gnugettext1_libc=yes
8933 gt_cv_func_gnugettext1_libc=no
8935 rm -f core conftest.err conftest.$ac_objext \
8936 conftest$ac_exeext conftest.$ac_ext
8938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
8939 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
8941 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
8947 acl_save_prefix="$prefix"
8948 prefix="$acl_final_prefix"
8949 acl_save_exec_prefix="$exec_prefix"
8950 exec_prefix="$acl_final_exec_prefix"
8952 eval additional_includedir=\"$includedir\"
8953 eval additional_libdir=\"$libdir\"
8955 exec_prefix="$acl_save_exec_prefix"
8956 prefix="$acl_save_prefix"
8959 # Check whether --with-libintl-prefix was given.
8960 if test "${with_libintl_prefix+set}" = set; then :
8961 withval=$with_libintl_prefix;
8962 if test "X$withval" = "Xno"; then
8965 if test "X$withval" = "X"; then
8967 acl_save_prefix="$prefix"
8968 prefix="$acl_final_prefix"
8969 acl_save_exec_prefix="$exec_prefix"
8970 exec_prefix="$acl_final_exec_prefix"
8972 eval additional_includedir=\"$includedir\"
8973 eval additional_libdir=\"$libdir\"
8975 exec_prefix="$acl_save_exec_prefix"
8976 prefix="$acl_save_prefix"
8979 additional_includedir="$withval/include"
8980 additional_libdir="$withval/lib"
8991 names_already_handled=
8992 names_next_round='intl '
8993 while test -n "$names_next_round"; do
8994 names_this_round="$names_next_round"
8996 for name in $names_this_round; do
8998 for n in $names_already_handled; do
8999 if test "$n" = "$name"; then
9004 if test -z "$already_handled"; then
9005 names_already_handled="$names_already_handled $name"
9006 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9007 eval value=\"\$HAVE_LIB$uppername\"
9008 if test -n "$value"; then
9009 if test "$value" = yes; then
9010 eval value=\"\$LIB$uppername\"
9011 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
9012 eval value=\"\$LTLIB$uppername\"
9013 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
9022 if test $use_additional = yes; then
9023 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9024 found_dir="$additional_libdir"
9025 found_so="$additional_libdir/lib$name.$shlibext"
9026 if test -f "$additional_libdir/lib$name.la"; then
9027 found_la="$additional_libdir/lib$name.la"
9030 if test -f "$additional_libdir/lib$name.$libext"; then
9031 found_dir="$additional_libdir"
9032 found_a="$additional_libdir/lib$name.$libext"
9033 if test -f "$additional_libdir/lib$name.la"; then
9034 found_la="$additional_libdir/lib$name.la"
9039 if test "X$found_dir" = "X"; then
9040 for x in $LDFLAGS $LTLIBINTL; do
9042 acl_save_prefix="$prefix"
9043 prefix="$acl_final_prefix"
9044 acl_save_exec_prefix="$exec_prefix"
9045 exec_prefix="$acl_final_exec_prefix"
9047 exec_prefix="$acl_save_exec_prefix"
9048 prefix="$acl_save_prefix"
9052 dir=`echo "X$x" | sed -e 's/^X-L//'`
9053 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9055 found_so="$dir/lib$name.$shlibext"
9056 if test -f "$dir/lib$name.la"; then
9057 found_la="$dir/lib$name.la"
9060 if test -f "$dir/lib$name.$libext"; then
9062 found_a="$dir/lib$name.$libext"
9063 if test -f "$dir/lib$name.la"; then
9064 found_la="$dir/lib$name.la"
9070 if test "X$found_dir" != "X"; then
9075 if test "X$found_dir" != "X"; then
9076 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
9077 if test "X$found_so" != "X"; then
9078 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9079 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9082 for x in $ltrpathdirs; do
9083 if test "X$x" = "X$found_dir"; then
9088 if test -z "$haveit"; then
9089 ltrpathdirs="$ltrpathdirs $found_dir"
9091 if test "$hardcode_direct" = yes; then
9092 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9094 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9095 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9097 for x in $rpathdirs; do
9098 if test "X$x" = "X$found_dir"; then
9103 if test -z "$haveit"; then
9104 rpathdirs="$rpathdirs $found_dir"
9108 for x in $LDFLAGS $LIBINTL; do
9110 acl_save_prefix="$prefix"
9111 prefix="$acl_final_prefix"
9112 acl_save_exec_prefix="$exec_prefix"
9113 exec_prefix="$acl_final_exec_prefix"
9115 exec_prefix="$acl_save_exec_prefix"
9116 prefix="$acl_save_prefix"
9118 if test "X$x" = "X-L$found_dir"; then
9123 if test -z "$haveit"; then
9124 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
9126 if test "$hardcode_minus_L" != no; then
9127 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9129 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
9135 if test "X$found_a" != "X"; then
9136 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
9138 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
9141 additional_includedir=
9142 case "$found_dir" in
9144 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9145 additional_includedir="$basedir/include"
9148 if test "X$additional_includedir" != "X"; then
9149 if test "X$additional_includedir" != "X/usr/include"; then
9151 if test "X$additional_includedir" = "X/usr/local/include"; then
9152 if test -n "$GCC"; then
9154 linux*) haveit=yes;;
9158 if test -z "$haveit"; then
9159 for x in $CPPFLAGS $INCINTL; do
9161 acl_save_prefix="$prefix"
9162 prefix="$acl_final_prefix"
9163 acl_save_exec_prefix="$exec_prefix"
9164 exec_prefix="$acl_final_exec_prefix"
9166 exec_prefix="$acl_save_exec_prefix"
9167 prefix="$acl_save_prefix"
9169 if test "X$x" = "X-I$additional_includedir"; then
9174 if test -z "$haveit"; then
9175 if test -d "$additional_includedir"; then
9176 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
9182 if test -n "$found_la"; then
9183 save_libdir="$libdir"
9185 */* | *\\*) . "$found_la" ;;
9186 *) . "./$found_la" ;;
9188 libdir="$save_libdir"
9189 for dep in $dependency_libs; do
9192 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9193 if test "X$additional_libdir" != "X/usr/lib"; then
9195 if test "X$additional_libdir" = "X/usr/local/lib"; then
9196 if test -n "$GCC"; then
9198 linux*) haveit=yes;;
9202 if test -z "$haveit"; then
9204 for x in $LDFLAGS $LIBINTL; do
9206 acl_save_prefix="$prefix"
9207 prefix="$acl_final_prefix"
9208 acl_save_exec_prefix="$exec_prefix"
9209 exec_prefix="$acl_final_exec_prefix"
9211 exec_prefix="$acl_save_exec_prefix"
9212 prefix="$acl_save_prefix"
9214 if test "X$x" = "X-L$additional_libdir"; then
9219 if test -z "$haveit"; then
9220 if test -d "$additional_libdir"; then
9221 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
9225 for x in $LDFLAGS $LTLIBINTL; do
9227 acl_save_prefix="$prefix"
9228 prefix="$acl_final_prefix"
9229 acl_save_exec_prefix="$exec_prefix"
9230 exec_prefix="$acl_final_exec_prefix"
9232 exec_prefix="$acl_save_exec_prefix"
9233 prefix="$acl_save_prefix"
9235 if test "X$x" = "X-L$additional_libdir"; then
9240 if test -z "$haveit"; then
9241 if test -d "$additional_libdir"; then
9242 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
9249 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9250 if test "$enable_rpath" != no; then
9252 for x in $rpathdirs; do
9253 if test "X$x" = "X$dir"; then
9258 if test -z "$haveit"; then
9259 rpathdirs="$rpathdirs $dir"
9262 for x in $ltrpathdirs; do
9263 if test "X$x" = "X$dir"; then
9268 if test -z "$haveit"; then
9269 ltrpathdirs="$ltrpathdirs $dir"
9274 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9277 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9280 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
9281 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
9287 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
9288 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
9294 if test "X$rpathdirs" != "X"; then
9295 if test -n "$hardcode_libdir_separator"; then
9297 for found_dir in $rpathdirs; do
9298 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9300 acl_save_libdir="$libdir"
9302 eval flag=\"$hardcode_libdir_flag_spec\"
9303 libdir="$acl_save_libdir"
9304 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
9306 for found_dir in $rpathdirs; do
9307 acl_save_libdir="$libdir"
9309 eval flag=\"$hardcode_libdir_flag_spec\"
9310 libdir="$acl_save_libdir"
9311 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
9315 if test "X$ltrpathdirs" != "X"; then
9316 for found_dir in $ltrpathdirs; do
9317 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
9321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
9322 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
9323 if ${gt_cv_func_gnugettext1_libintl+:} false; then :
9324 $as_echo_n "(cached) " >&6
9326 gt_save_CPPFLAGS="$CPPFLAGS"
9327 CPPFLAGS="$CPPFLAGS $INCINTL"
9328 gt_save_LIBS="$LIBS"
9329 LIBS="$LIBS $LIBINTL"
9330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9331 /* end confdefs.h. */
9332 #include <libintl.h>
9333 extern int _nl_msg_cat_cntr;
9338 const char *_nl_expand_alias ();
9342 bindtextdomain ("", "");
9343 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
9348 if ac_fn_c_try_link "$LINENO"; then :
9349 gt_cv_func_gnugettext1_libintl=yes
9351 gt_cv_func_gnugettext1_libintl=no
9353 rm -f core conftest.err conftest.$ac_objext \
9354 conftest$ac_exeext conftest.$ac_ext
9355 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
9356 LIBS="$LIBS $LIBICONV"
9357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9358 /* end confdefs.h. */
9359 #include <libintl.h>
9360 extern int _nl_msg_cat_cntr;
9365 const char *_nl_expand_alias ();
9369 bindtextdomain ("", "");
9370 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
9375 if ac_fn_c_try_link "$LINENO"; then :
9376 LIBINTL="$LIBINTL $LIBICONV"
9377 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
9378 gt_cv_func_gnugettext1_libintl=yes
9381 rm -f core conftest.err conftest.$ac_objext \
9382 conftest$ac_exeext conftest.$ac_ext
9384 CPPFLAGS="$gt_save_CPPFLAGS"
9385 LIBS="$gt_save_LIBS"
9387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
9388 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
9391 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
9392 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
9393 && test "$PACKAGE" != gettext-runtime \
9394 && test "$PACKAGE" != gettext-tools; }; then
9395 gt_use_preinstalled_gnugettext=yes
9403 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
9404 nls_cv_use_gnu_gettext=yes
9408 if test "$nls_cv_use_gnu_gettext" = "yes"; then
9409 BUILD_INCLUDED_LIBINTL=yes
9410 USE_INCLUDED_LIBINTL=yes
9411 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
9412 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
9413 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
9416 if test "$gt_use_preinstalled_gnugettext" = "yes" \
9417 || test "$nls_cv_use_gnu_gettext" = "yes"; then
9422 if test "$gt_use_preinstalled_gnugettext" = "yes" \
9423 || test "$nls_cv_use_gnu_gettext" = "yes"; then
9425 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
9432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
9433 $as_echo_n "checking whether to use NLS... " >&6; }
9434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
9435 $as_echo "$USE_NLS" >&6; }
9436 if test "$USE_NLS" = "yes"; then
9437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
9438 $as_echo_n "checking where the gettext function comes from... " >&6; }
9439 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
9440 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
9441 gt_source="external libintl"
9446 gt_source="included intl directory"
9448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
9449 $as_echo "$gt_source" >&6; }
9452 if test "$USE_NLS" = "yes"; then
9454 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
9455 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
9456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
9457 $as_echo_n "checking how to link with libintl... " >&6; }
9458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
9459 $as_echo "$LIBINTL" >&6; }
9461 for element in $INCINTL; do
9463 for x in $CPPFLAGS; do
9465 acl_save_prefix="$prefix"
9466 prefix="$acl_final_prefix"
9467 acl_save_exec_prefix="$exec_prefix"
9468 exec_prefix="$acl_final_exec_prefix"
9470 exec_prefix="$acl_save_exec_prefix"
9471 prefix="$acl_save_prefix"
9473 if test "X$x" = "X$element"; then
9478 if test -z "$haveit"; then
9479 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9486 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
9489 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
9497 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
9498 BUILD_INCLUDED_LIBINTL=yes
9506 nls_cv_header_libgt=
9517 if test "$USE_INCLUDED_LIBINTL" = yes; then
9518 INTLOBJS="\$(GETTOBJS)"
9522 INTL_LIBTOOL_SUFFIX_PREFIX=
9534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9535 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
9537 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
9538 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
9539 $as_echo_n "(cached) " >&6
9541 cat >conftest.make <<\_ACEOF
9544 @echo '@@@%%%=$(MAKE)=@@@%%%'
9546 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
9547 case `${MAKE-make} -f conftest.make 2>/dev/null` in
9549 eval ac_cv_prog_make_${ac_make}_set=yes;;
9551 eval ac_cv_prog_make_${ac_make}_set=no;;
9555 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9557 $as_echo "yes" >&6; }
9560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9561 $as_echo "no" >&6; }
9562 SET_MAKE="MAKE=${MAKE-make}"
9565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5
9566 $as_echo_n "checking for GNU make... " >&6; }
9567 if ${_cv_gnu_make_command+:} false; then :
9568 $as_echo_n "(cached) " >&6
9570 _cv_gnu_make_command='' ;
9571 for a in "$MAKE" make gmake gnumake ; do
9572 if test -z "$a" ; then continue ; fi ;
9573 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
9574 _cv_gnu_make_command=$a ;
9580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_cv_gnu_make_command" >&5
9581 $as_echo "$_cv_gnu_make_command" >&6; } ;
9582 if test "x$_cv_gnu_make_command" != "x" ; then
9588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"Not found\"" >&5
9589 $as_echo "\"Not found\"" >&6; };
9594 # Extract the first word of "ln", so it can be a program name with args.
9595 set dummy ln; ac_word=$2
9596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9597 $as_echo_n "checking for $ac_word... " >&6; }
9598 if ${ac_cv_path_LN+:} false; then :
9599 $as_echo_n "(cached) " >&6
9603 ac_cv_path_LN="$LN" # Let the user override the test with a path.
9606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9610 test -z "$as_dir" && as_dir=.
9611 for ac_exec_ext in '' $ac_executable_extensions; do
9612 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9613 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
9614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9621 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
9626 if test -n "$LN"; then
9627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
9628 $as_echo "$LN" >&6; }
9630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9631 $as_echo "no" >&6; }
9635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
9636 $as_echo_n "checking whether ln -s works... " >&6; }
9638 if test "$LN_S" = "ln -s"; then
9639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9640 $as_echo "yes" >&6; }
9642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
9643 $as_echo "no, using $LN_S" >&6; }
9646 # Extract the first word of "mv", so it can be a program name with args.
9647 set dummy mv; ac_word=$2
9648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9649 $as_echo_n "checking for $ac_word... " >&6; }
9650 if ${ac_cv_path_MV+:} false; then :
9651 $as_echo_n "(cached) " >&6
9655 ac_cv_path_MV="$MV" # Let the user override the test with a path.
9658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9662 test -z "$as_dir" && as_dir=.
9663 for ac_exec_ext in '' $ac_executable_extensions; do
9664 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9665 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
9666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9673 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
9678 if test -n "$MV"; then
9679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
9680 $as_echo "$MV" >&6; }
9682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9683 $as_echo "no" >&6; }
9687 # Extract the first word of "cp", so it can be a program name with args.
9688 set dummy cp; ac_word=$2
9689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9690 $as_echo_n "checking for $ac_word... " >&6; }
9691 if ${ac_cv_path_CP+:} false; then :
9692 $as_echo_n "(cached) " >&6
9696 ac_cv_path_CP="$CP" # Let the user override the test with a path.
9699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9703 test -z "$as_dir" && as_dir=.
9704 for ac_exec_ext in '' $ac_executable_extensions; do
9705 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9706 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
9707 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9714 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
9719 if test -n "$CP"; then
9720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
9721 $as_echo "$CP" >&6; }
9723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9724 $as_echo "no" >&6; }
9728 # Extract the first word of "rm", so it can be a program name with args.
9729 set dummy rm; ac_word=$2
9730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9731 $as_echo_n "checking for $ac_word... " >&6; }
9732 if ${ac_cv_path_RM+:} false; then :
9733 $as_echo_n "(cached) " >&6
9737 ac_cv_path_RM="$RM" # Let the user override the test with a path.
9740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9744 test -z "$as_dir" && as_dir=.
9745 for ac_exec_ext in '' $ac_executable_extensions; do
9746 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9747 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
9748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9755 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
9760 if test -n "$RM"; then
9761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
9762 $as_echo "$RM" >&6; }
9764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9765 $as_echo "no" >&6; }
9769 # Extract the first word of "chmod", so it can be a program name with args.
9770 set dummy chmod; ac_word=$2
9771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9772 $as_echo_n "checking for $ac_word... " >&6; }
9773 if ${ac_cv_path_CHMOD+:} false; then :
9774 $as_echo_n "(cached) " >&6
9778 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
9781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9785 test -z "$as_dir" && as_dir=.
9786 for ac_exec_ext in '' $ac_executable_extensions; do
9787 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9788 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
9789 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9796 test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
9800 CHMOD=$ac_cv_path_CHMOD
9801 if test -n "$CHMOD"; then
9802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
9803 $as_echo "$CHMOD" >&6; }
9805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9806 $as_echo "no" >&6; }
9810 for ac_prog in gawk mawk nawk awk
9812 # Extract the first word of "$ac_prog", so it can be a program name with args.
9813 set dummy $ac_prog; ac_word=$2
9814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9815 $as_echo_n "checking for $ac_word... " >&6; }
9816 if ${ac_cv_prog_AWK+:} false; then :
9817 $as_echo_n "(cached) " >&6
9819 if test -n "$AWK"; then
9820 ac_cv_prog_AWK="$AWK" # Let the user override the test.
9822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9826 test -z "$as_dir" && as_dir=.
9827 for ac_exec_ext in '' $ac_executable_extensions; do
9828 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9829 ac_cv_prog_AWK="$ac_prog"
9830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9840 if test -n "$AWK"; then
9841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
9842 $as_echo "$AWK" >&6; }
9844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9845 $as_echo "no" >&6; }
9849 test -n "$AWK" && break
9852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
9853 $as_echo_n "checking for egrep... " >&6; }
9854 if ${ac_cv_path_EGREP+:} false; then :
9855 $as_echo_n "(cached) " >&6
9857 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
9858 then ac_cv_path_EGREP="$GREP -E"
9860 if test -z "$EGREP"; then
9861 ac_path_EGREP_found=false
9862 # Loop through the user's path and test for each of PROGNAME-LIST
9863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9864 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
9867 test -z "$as_dir" && as_dir=.
9868 for ac_prog in egrep; do
9869 for ac_exec_ext in '' $ac_executable_extensions; do
9870 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
9871 as_fn_executable_p "$ac_path_EGREP" || continue
9872 # Check for GNU ac_path_EGREP and select it if it is found.
9873 # Check for GNU $ac_path_EGREP
9874 case `"$ac_path_EGREP" --version 2>&1` in
9876 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
9879 $as_echo_n 0123456789 >"conftest.in"
9882 cat "conftest.in" "conftest.in" >"conftest.tmp"
9883 mv "conftest.tmp" "conftest.in"
9884 cp "conftest.in" "conftest.nl"
9885 $as_echo 'EGREP' >> "conftest.nl"
9886 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
9887 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
9888 as_fn_arith $ac_count + 1 && ac_count=$as_val
9889 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
9890 # Best one so far, save it but keep looking for a better one
9891 ac_cv_path_EGREP="$ac_path_EGREP"
9892 ac_path_EGREP_max=$ac_count
9894 # 10*(2^10) chars as input seems more than enough
9895 test $ac_count -gt 10 && break
9897 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
9900 $ac_path_EGREP_found && break 3
9905 if test -z "$ac_cv_path_EGREP"; then
9906 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
9909 ac_cv_path_EGREP=$EGREP
9914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
9915 $as_echo "$ac_cv_path_EGREP" >&6; }
9916 EGREP="$ac_cv_path_EGREP"
9919 # Extract the first word of "sed", so it can be a program name with args.
9920 set dummy sed; ac_word=$2
9921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9922 $as_echo_n "checking for $ac_word... " >&6; }
9923 if ${ac_cv_path_SED+:} false; then :
9924 $as_echo_n "(cached) " >&6
9928 ac_cv_path_SED="$SED" # Let the user override the test with a path.
9931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9935 test -z "$as_dir" && as_dir=.
9936 for ac_exec_ext in '' $ac_executable_extensions; do
9937 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9938 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
9939 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9946 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
9951 if test -n "$SED"; then
9952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
9953 $as_echo "$SED" >&6; }
9955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9956 $as_echo "no" >&6; }
9960 # Extract the first word of "perl", so it can be a program name with args.
9961 set dummy perl; ac_word=$2
9962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9963 $as_echo_n "checking for $ac_word... " >&6; }
9964 if ${ac_cv_path_PERL+:} false; then :
9965 $as_echo_n "(cached) " >&6
9969 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
9972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9976 test -z "$as_dir" && as_dir=.
9977 for ac_exec_ext in '' $ac_executable_extensions; do
9978 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9979 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
9980 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9987 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
9991 PERL=$ac_cv_path_PERL
9992 if test -n "$PERL"; then
9993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
9994 $as_echo "$PERL" >&6; }
9996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9997 $as_echo "no" >&6; }
10001 # Extract the first word of "ldconfig", so it can be a program name with args.
10002 set dummy ldconfig; ac_word=$2
10003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10004 $as_echo_n "checking for $ac_word... " >&6; }
10005 if ${ac_cv_path_LDCONFIG+:} false; then :
10006 $as_echo_n "(cached) " >&6
10010 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
10013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10014 for as_dir in $PATH
10017 test -z "$as_dir" && as_dir=.
10018 for ac_exec_ext in '' $ac_executable_extensions; do
10019 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10020 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
10021 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10028 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
10032 LDCONFIG=$ac_cv_path_LDCONFIG
10033 if test -n "$LDCONFIG"; then
10034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
10035 $as_echo "$LDCONFIG" >&6; }
10037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10038 $as_echo "no" >&6; }
10042 if test -n "$ac_tool_prefix"; then
10043 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
10044 set dummy ${ac_tool_prefix}ar; ac_word=$2
10045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10046 $as_echo_n "checking for $ac_word... " >&6; }
10047 if ${ac_cv_prog_AR+:} false; then :
10048 $as_echo_n "(cached) " >&6
10050 if test -n "$AR"; then
10051 ac_cv_prog_AR="$AR" # Let the user override the test.
10053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10054 for as_dir in $PATH
10057 test -z "$as_dir" && as_dir=.
10058 for ac_exec_ext in '' $ac_executable_extensions; do
10059 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10060 ac_cv_prog_AR="${ac_tool_prefix}ar"
10061 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10071 if test -n "$AR"; then
10072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10073 $as_echo "$AR" >&6; }
10075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10076 $as_echo "no" >&6; }
10081 if test -z "$ac_cv_prog_AR"; then
10083 # Extract the first word of "ar", so it can be a program name with args.
10084 set dummy ar; ac_word=$2
10085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10086 $as_echo_n "checking for $ac_word... " >&6; }
10087 if ${ac_cv_prog_ac_ct_AR+:} false; then :
10088 $as_echo_n "(cached) " >&6
10090 if test -n "$ac_ct_AR"; then
10091 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
10093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10094 for as_dir in $PATH
10097 test -z "$as_dir" && as_dir=.
10098 for ac_exec_ext in '' $ac_executable_extensions; do
10099 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10100 ac_cv_prog_ac_ct_AR="ar"
10101 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10110 ac_ct_AR=$ac_cv_prog_ac_ct_AR
10111 if test -n "$ac_ct_AR"; then
10112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
10113 $as_echo "$ac_ct_AR" >&6; }
10115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10116 $as_echo "no" >&6; }
10119 if test "x$ac_ct_AR" = x; then
10122 case $cross_compiling:$ac_tool_warned in
10124 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10125 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10126 ac_tool_warned=yes ;;
10131 AR="$ac_cv_prog_AR"
10134 if test -n "$ac_tool_prefix"; then
10135 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
10136 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
10137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10138 $as_echo_n "checking for $ac_word... " >&6; }
10139 if ${ac_cv_prog_RANLIB+:} false; then :
10140 $as_echo_n "(cached) " >&6
10142 if test -n "$RANLIB"; then
10143 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10146 for as_dir in $PATH
10149 test -z "$as_dir" && as_dir=.
10150 for ac_exec_ext in '' $ac_executable_extensions; do
10151 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10152 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
10153 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10162 RANLIB=$ac_cv_prog_RANLIB
10163 if test -n "$RANLIB"; then
10164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
10165 $as_echo "$RANLIB" >&6; }
10167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10168 $as_echo "no" >&6; }
10173 if test -z "$ac_cv_prog_RANLIB"; then
10174 ac_ct_RANLIB=$RANLIB
10175 # Extract the first word of "ranlib", so it can be a program name with args.
10176 set dummy ranlib; ac_word=$2
10177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10178 $as_echo_n "checking for $ac_word... " >&6; }
10179 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
10180 $as_echo_n "(cached) " >&6
10182 if test -n "$ac_ct_RANLIB"; then
10183 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
10185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10186 for as_dir in $PATH
10189 test -z "$as_dir" && as_dir=.
10190 for ac_exec_ext in '' $ac_executable_extensions; do
10191 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10192 ac_cv_prog_ac_ct_RANLIB="ranlib"
10193 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10202 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
10203 if test -n "$ac_ct_RANLIB"; then
10204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
10205 $as_echo "$ac_ct_RANLIB" >&6; }
10207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10208 $as_echo "no" >&6; }
10211 if test "x$ac_ct_RANLIB" = x; then
10214 case $cross_compiling:$ac_tool_warned in
10216 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10217 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10218 ac_tool_warned=yes ;;
10220 RANLIB=$ac_ct_RANLIB
10223 RANLIB="$ac_cv_prog_RANLIB"
10226 if test -n "$ac_tool_prefix"; then
10227 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
10228 set dummy ${ac_tool_prefix}strip; ac_word=$2
10229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10230 $as_echo_n "checking for $ac_word... " >&6; }
10231 if ${ac_cv_prog_STRIP+:} false; then :
10232 $as_echo_n "(cached) " >&6
10234 if test -n "$STRIP"; then
10235 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
10237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10238 for as_dir in $PATH
10241 test -z "$as_dir" && as_dir=.
10242 for ac_exec_ext in '' $ac_executable_extensions; do
10243 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10244 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
10245 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10254 STRIP=$ac_cv_prog_STRIP
10255 if test -n "$STRIP"; then
10256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
10257 $as_echo "$STRIP" >&6; }
10259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10260 $as_echo "no" >&6; }
10265 if test -z "$ac_cv_prog_STRIP"; then
10267 # Extract the first word of "strip", so it can be a program name with args.
10268 set dummy strip; ac_word=$2
10269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10270 $as_echo_n "checking for $ac_word... " >&6; }
10271 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
10272 $as_echo_n "(cached) " >&6
10274 if test -n "$ac_ct_STRIP"; then
10275 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
10277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10278 for as_dir in $PATH
10281 test -z "$as_dir" && as_dir=.
10282 for ac_exec_ext in '' $ac_executable_extensions; do
10283 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10284 ac_cv_prog_ac_ct_STRIP="strip"
10285 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10294 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
10295 if test -n "$ac_ct_STRIP"; then
10296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
10297 $as_echo "$ac_ct_STRIP" >&6; }
10299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10300 $as_echo "no" >&6; }
10303 if test "x$ac_ct_STRIP" = x; then
10306 case $cross_compiling:$ac_tool_warned in
10308 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10309 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10310 ac_tool_warned=yes ;;
10315 STRIP="$ac_cv_prog_STRIP"
10318 # Extract the first word of "makeinfo", so it can be a program name with args.
10319 set dummy makeinfo; ac_word=$2
10320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10321 $as_echo_n "checking for $ac_word... " >&6; }
10322 if ${ac_cv_prog_MAKEINFO+:} false; then :
10323 $as_echo_n "(cached) " >&6
10325 if test -n "$MAKEINFO"; then
10326 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
10328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10329 for as_dir in $PATH
10332 test -z "$as_dir" && as_dir=.
10333 for ac_exec_ext in '' $ac_executable_extensions; do
10334 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10335 ac_cv_prog_MAKEINFO="makeinfo"
10336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10345 MAKEINFO=$ac_cv_prog_MAKEINFO
10346 if test -n "$MAKEINFO"; then
10347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
10348 $as_echo "$MAKEINFO" >&6; }
10350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10351 $as_echo "no" >&6; }
10355 if test "_$MAKEINFO" = "_"; then
10356 MAKEINFO="@echo Makeinfo is missing. Info documentation will not be built.;true"
10358 case "$MAKEINFO" in
10360 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
10361 *** Makeinfo is missing. Info documentation will not be built." >&5
10362 $as_echo "$as_me: WARNING:
10363 *** Makeinfo is missing. Info documentation will not be built." >&2;}
10371 # See if we need a separate native compiler.
10372 if test $cross_compiling = no; then
10376 for ac_prog in gcc cc
10378 # Extract the first word of "$ac_prog", so it can be a program name with args.
10379 set dummy $ac_prog; ac_word=$2
10380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10381 $as_echo_n "checking for $ac_word... " >&6; }
10382 if ${ac_cv_prog_BUILD_CC+:} false; then :
10383 $as_echo_n "(cached) " >&6
10385 if test -n "$BUILD_CC"; then
10386 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
10388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10389 for as_dir in $PATH
10392 test -z "$as_dir" && as_dir=.
10393 for ac_exec_ext in '' $ac_executable_extensions; do
10394 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10395 ac_cv_prog_BUILD_CC="$ac_prog"
10396 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10405 BUILD_CC=$ac_cv_prog_BUILD_CC
10406 if test -n "$BUILD_CC"; then
10407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
10408 $as_echo "$BUILD_CC" >&6; }
10410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10411 $as_echo "no" >&6; }
10415 test -n "$BUILD_CC" && break
10419 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 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
10421 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10422 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10423 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10424 cat >>confdefs.h <<_ACEOF
10425 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10432 for ac_header in sys/disk.h sys/mount.h
10434 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10435 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
10436 #if HAVE_SYS_QUEUE_H
10437 #include <sys/queue.h>
10441 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10442 cat >>confdefs.h <<_ACEOF
10443 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10450 for ac_header in net/if.h
10452 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
10453 #if HAVE_SYS_TYPES_H
10454 #include <sys/types.h>
10456 #if HAVE_SYS_SOCKET
10457 #include <sys/socket.h>
10461 if test "x$ac_cv_header_net_if_h" = xyes; then :
10462 cat >>confdefs.h <<_ACEOF
10463 #define HAVE_NET_IF_H 1
10470 for ac_func in vprintf
10472 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
10473 if test "x$ac_cv_func_vprintf" = xyes; then :
10474 cat >>confdefs.h <<_ACEOF
10475 #define HAVE_VPRINTF 1
10478 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
10479 if test "x$ac_cv_func__doprnt" = xyes; then :
10481 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
10489 ac_fn_c_check_member "$LINENO" "struct dirent" "d_reclen" "ac_cv_member_struct_dirent_d_reclen" "#include <dirent.h>
10491 if test "x$ac_cv_member_struct_dirent_d_reclen" = xyes; then :
10493 $as_echo "#define HAVE_RECLEN_DIRENT 1" >>confdefs.h
10497 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "#include <sys/types.h>
10499 if test "x$ac_cv_type_ssize_t" = xyes; then :
10501 $as_echo "#define HAVE_TYPE_SSIZE_T 1" >>confdefs.h
10505 ac_fn_c_check_decl "$LINENO" "llseek" "ac_cv_have_decl_llseek" "#include <unistd.h>
10507 if test "x$ac_cv_have_decl_llseek" = xyes; then :
10509 $as_echo "#define HAVE_LLSEEK_PROTOTYPE 1" >>confdefs.h
10513 ac_fn_c_check_decl "$LINENO" "lseek64" "ac_cv_have_decl_lseek64" "#define _LARGEFILE_SOURCE
10514 #define _LARGEFILE64_SOURCE
10515 #include <unistd.h>
10517 if test "x$ac_cv_have_decl_lseek64" = xyes; then :
10519 $as_echo "#define HAVE_LSEEK64_PROTOTYPE 1" >>confdefs.h
10523 # The cast to long int works around a bug in the HP C Compiler
10524 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10525 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10526 # This bug is HP SR number 8606223364.
10527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
10528 $as_echo_n "checking size of short... " >&6; }
10529 if ${ac_cv_sizeof_short+:} false; then :
10530 $as_echo_n "(cached) " >&6
10532 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
10535 if test "$ac_cv_type_short" = yes; then
10536 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10537 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10538 as_fn_error 77 "cannot compute sizeof (short)
10539 See \`config.log' for more details" "$LINENO" 5; }
10541 ac_cv_sizeof_short=0
10546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
10547 $as_echo "$ac_cv_sizeof_short" >&6; }
10551 cat >>confdefs.h <<_ACEOF
10552 #define SIZEOF_SHORT $ac_cv_sizeof_short
10556 # The cast to long int works around a bug in the HP C Compiler
10557 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10558 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10559 # This bug is HP SR number 8606223364.
10560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
10561 $as_echo_n "checking size of int... " >&6; }
10562 if ${ac_cv_sizeof_int+:} false; then :
10563 $as_echo_n "(cached) " >&6
10565 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
10568 if test "$ac_cv_type_int" = yes; then
10569 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10570 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10571 as_fn_error 77 "cannot compute sizeof (int)
10572 See \`config.log' for more details" "$LINENO" 5; }
10579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
10580 $as_echo "$ac_cv_sizeof_int" >&6; }
10584 cat >>confdefs.h <<_ACEOF
10585 #define SIZEOF_INT $ac_cv_sizeof_int
10589 # The cast to long int works around a bug in the HP C Compiler
10590 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10591 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10592 # This bug is HP SR number 8606223364.
10593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
10594 $as_echo_n "checking size of long... " >&6; }
10595 if ${ac_cv_sizeof_long+:} false; then :
10596 $as_echo_n "(cached) " >&6
10598 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
10601 if test "$ac_cv_type_long" = yes; then
10602 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10603 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10604 as_fn_error 77 "cannot compute sizeof (long)
10605 See \`config.log' for more details" "$LINENO" 5; }
10607 ac_cv_sizeof_long=0
10612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
10613 $as_echo "$ac_cv_sizeof_long" >&6; }
10617 cat >>confdefs.h <<_ACEOF
10618 #define SIZEOF_LONG $ac_cv_sizeof_long
10622 # The cast to long int works around a bug in the HP C Compiler
10623 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10624 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10625 # This bug is HP SR number 8606223364.
10626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
10627 $as_echo_n "checking size of long long... " >&6; }
10628 if ${ac_cv_sizeof_long_long+:} false; then :
10629 $as_echo_n "(cached) " >&6
10631 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
10634 if test "$ac_cv_type_long_long" = yes; then
10635 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10636 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10637 as_fn_error 77 "cannot compute sizeof (long long)
10638 See \`config.log' for more details" "$LINENO" 5; }
10640 ac_cv_sizeof_long_long=0
10645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
10646 $as_echo "$ac_cv_sizeof_long_long" >&6; }
10650 cat >>confdefs.h <<_ACEOF
10651 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10655 # The cast to long int works around a bug in the HP C Compiler
10656 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10657 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10658 # This bug is HP SR number 8606223364.
10659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
10660 $as_echo_n "checking size of off_t... " >&6; }
10661 if ${ac_cv_sizeof_off_t+:} false; then :
10662 $as_echo_n "(cached) " >&6
10664 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
10667 if test "$ac_cv_type_off_t" = yes; then
10668 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10669 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10670 as_fn_error 77 "cannot compute sizeof (off_t)
10671 See \`config.log' for more details" "$LINENO" 5; }
10673 ac_cv_sizeof_off_t=0
10678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
10679 $as_echo "$ac_cv_sizeof_off_t" >&6; }
10683 cat >>confdefs.h <<_ACEOF
10684 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
10688 SIZEOF_SHORT=$ac_cv_sizeof_short
10689 SIZEOF_INT=$ac_cv_sizeof_int
10690 SIZEOF_LONG=$ac_cv_sizeof_long
10691 SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
10692 SIZEOF_OFF_T=$ac_cv_sizeof_off_t
10698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
10699 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
10700 if ${ac_cv_c_bigendian+:} false; then :
10701 $as_echo_n "(cached) " >&6
10703 ac_cv_c_bigendian=unknown
10704 # See if we're dealing with a universal compiler.
10705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10706 /* end confdefs.h. */
10707 #ifndef __APPLE_CC__
10708 not a universal capable compiler
10713 if ac_fn_c_try_compile "$LINENO"; then :
10715 # Check for potential -arch flags. It is not universal unless
10716 # there are at least two -arch flags with different values.
10719 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
10720 if test -n "$ac_prev"; then
10722 i?86 | x86_64 | ppc | ppc64)
10723 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
10726 ac_cv_c_bigendian=universal
10732 elif test "x$ac_word" = "x-arch"; then
10737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10738 if test $ac_cv_c_bigendian = unknown; then
10739 # See if sys/param.h defines the BYTE_ORDER macro.
10740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10741 /* end confdefs.h. */
10742 #include <sys/types.h>
10743 #include <sys/param.h>
10748 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
10749 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
10751 bogus endian macros
10758 if ac_fn_c_try_compile "$LINENO"; then :
10759 # It does; now see whether it defined to BIG_ENDIAN or not.
10760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10761 /* end confdefs.h. */
10762 #include <sys/types.h>
10763 #include <sys/param.h>
10768 #if BYTE_ORDER != BIG_ENDIAN
10776 if ac_fn_c_try_compile "$LINENO"; then :
10777 ac_cv_c_bigendian=yes
10779 ac_cv_c_bigendian=no
10781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10785 if test $ac_cv_c_bigendian = unknown; then
10786 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
10787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10788 /* end confdefs.h. */
10789 #include <limits.h>
10794 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
10795 bogus endian macros
10802 if ac_fn_c_try_compile "$LINENO"; then :
10803 # It does; now see whether it defined to _BIG_ENDIAN or not.
10804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10805 /* end confdefs.h. */
10806 #include <limits.h>
10811 #ifndef _BIG_ENDIAN
10819 if ac_fn_c_try_compile "$LINENO"; then :
10820 ac_cv_c_bigendian=yes
10822 ac_cv_c_bigendian=no
10824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10828 if test $ac_cv_c_bigendian = unknown; then
10829 # Compile a test program.
10830 if test "$cross_compiling" = yes; then :
10831 # Try to guess by grepping values from an object file.
10832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10833 /* end confdefs.h. */
10834 short int ascii_mm[] =
10835 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
10836 short int ascii_ii[] =
10837 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
10838 int use_ascii (int i) {
10839 return ascii_mm[i] + ascii_ii[i];
10841 short int ebcdic_ii[] =
10842 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
10843 short int ebcdic_mm[] =
10844 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
10845 int use_ebcdic (int i) {
10846 return ebcdic_mm[i] + ebcdic_ii[i];
10853 return use_ascii (foo) == use_ebcdic (foo);
10858 if ac_fn_c_try_compile "$LINENO"; then :
10859 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
10860 ac_cv_c_bigendian=yes
10862 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
10863 if test "$ac_cv_c_bigendian" = unknown; then
10864 ac_cv_c_bigendian=no
10866 # finding both strings is unlikely to happen, but who knows?
10867 ac_cv_c_bigendian=unknown
10871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10874 /* end confdefs.h. */
10875 $ac_includes_default
10880 /* Are we little or big endian? From Harbison&Steele. */
10884 char c[sizeof (long int)];
10887 return u.c[sizeof (long int) - 1] == 1;
10893 if ac_fn_c_try_run "$LINENO"; then :
10894 ac_cv_c_bigendian=no
10896 ac_cv_c_bigendian=yes
10898 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10899 conftest.$ac_objext conftest.beam conftest.$ac_ext
10904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
10905 $as_echo "$ac_cv_c_bigendian" >&6; }
10906 case $ac_cv_c_bigendian in #(
10908 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
10914 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
10918 as_fn_error $? "unknown endianness
10919 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
10922 BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
10923 ASM_TYPES_HEADER=./asm_types.h
10925 echo "/* These defines are needed for the public ext2fs.h header file */" \
10927 if grep HAVE_SYS_TYPES_H confdefs.h > tmp_config.$$; then
10928 uniq tmp_config.$$ >> public_config.h
10930 echo "#undef HAVE_SYS_TYPES_H" >> public_config.h
10932 if grep WORDS_BIGENDIAN confdefs.h > tmp_config.$$; then
10933 uniq tmp_config.$$ >> public_config.h
10935 echo "#undef WORDS_BIGENDIAN" >> public_config.h
10937 rm -f tmp_config.$$
10938 PUBLIC_CONFIG_HEADER=./public_config.h
10940 for ac_header in inttypes.h
10942 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
10943 if test "x$ac_cv_header_inttypes_h" = xyes; then :
10944 cat >>confdefs.h <<_ACEOF
10945 #define HAVE_INTTYPES_H 1
10952 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
10953 if test "x$ac_cv_type_intptr_t" = xyes; then :
10955 cat >>confdefs.h <<_ACEOF
10956 #define HAVE_INTPTR_T 1
10962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat has a st_flags field" >&5
10963 $as_echo_n "checking whether struct stat has a st_flags field... " >&6; }
10964 if ${e2fsprogs_cv_struct_st_flags+:} false; then :
10965 $as_echo_n "(cached) " >&6
10967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10968 /* end confdefs.h. */
10969 #include <sys/stat.h>
10973 struct stat stat; stat.st_flags = 0;
10978 if ac_fn_c_try_compile "$LINENO"; then :
10979 e2fsprogs_cv_struct_st_flags=yes
10981 e2fsprogs_cv_struct_st_flags=no
10983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags" >&5
10987 $as_echo "$e2fsprogs_cv_struct_st_flags" >&6; }
10988 if test "$e2fsprogs_cv_struct_st_flags" = yes; then
10989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether st_flags field is useful" >&5
10990 $as_echo_n "checking whether st_flags field is useful... " >&6; }
10991 if ${e2fsprogs_cv_struct_st_flags_immut+:} false; then :
10992 $as_echo_n "(cached) " >&6
10994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10995 /* end confdefs.h. */
10996 #include <sys/stat.h>
11000 struct stat stat; stat.st_flags |= UF_IMMUTABLE;
11005 if ac_fn_c_try_compile "$LINENO"; then :
11006 e2fsprogs_cv_struct_st_flags_immut=yes
11008 e2fsprogs_cv_struct_st_flags_immut=no
11010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags_immut" >&5
11014 $as_echo "$e2fsprogs_cv_struct_st_flags_immut" >&6; }
11015 if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
11017 $as_echo "#define HAVE_STAT_FLAGS 1" >>confdefs.h
11021 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h>
11022 #include <sys/socket.h>
11024 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
11026 cat >>confdefs.h <<_ACEOF
11027 #define HAVE_SA_LEN 1
11032 if test -n "$BLKID_CMT"; then
11033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing blkid_probe_all" >&5
11034 $as_echo_n "checking for library containing blkid_probe_all... " >&6; }
11035 if ${ac_cv_search_blkid_probe_all+:} false; then :
11036 $as_echo_n "(cached) " >&6
11038 ac_func_search_save_LIBS=$LIBS
11039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11040 /* end confdefs.h. */
11042 /* Override any GCC internal prototype to avoid an error.
11043 Use char because int might match the return type of a GCC
11044 builtin and then its argument prototype would still apply. */
11048 char blkid_probe_all ();
11052 return blkid_probe_all ();
11057 for ac_lib in '' blkid; do
11058 if test -z "$ac_lib"; then
11059 ac_res="none required"
11062 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11064 if ac_fn_c_try_link "$LINENO"; then :
11065 ac_cv_search_blkid_probe_all=$ac_res
11067 rm -f core conftest.err conftest.$ac_objext \
11069 if ${ac_cv_search_blkid_probe_all+:} false; then :
11073 if ${ac_cv_search_blkid_probe_all+:} false; then :
11076 ac_cv_search_blkid_probe_all=no
11078 rm conftest.$ac_ext
11079 LIBS=$ac_func_search_save_LIBS
11081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_blkid_probe_all" >&5
11082 $as_echo "$ac_cv_search_blkid_probe_all" >&6; }
11083 ac_res=$ac_cv_search_blkid_probe_all
11084 if test "$ac_res" != no; then :
11085 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11090 for ac_func in __secure_getenv backtrace blkid_probe_get_topology chflags fallocate fallocate64 fchown fdatasync fstat64 ftruncate64 getdtablesize getmntinfo getpwuid_r getrlimit getrusage jrand48 llseek lseek64 mallinfo mbstowcs memalign mmap msync nanosleep open64 pathconf posix_fadvise posix_memalign prctl setmntent setresgid setresuid srandom strcasecmp strdup strnlen strptime strtoull sync_file_range sysconf usleep utime valloc
11092 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11093 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11094 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11095 cat >>confdefs.h <<_ACEOF
11096 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
11104 $as_echo_n "checking for socket in -lsocket... " >&6; }
11105 if ${ac_cv_lib_socket_socket+:} false; then :
11106 $as_echo_n "(cached) " >&6
11108 ac_check_lib_save_LIBS=$LIBS
11109 LIBS="-lsocket $LIBS"
11110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11111 /* end confdefs.h. */
11113 /* Override any GCC internal prototype to avoid an error.
11114 Use char because int might match the return type of a GCC
11115 builtin and then its argument prototype would still apply. */
11128 if ac_fn_c_try_link "$LINENO"; then :
11129 ac_cv_lib_socket_socket=yes
11131 ac_cv_lib_socket_socket=no
11133 rm -f core conftest.err conftest.$ac_objext \
11134 conftest$ac_exeext conftest.$ac_ext
11135 LIBS=$ac_check_lib_save_LIBS
11137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
11138 $as_echo "$ac_cv_lib_socket_socket" >&6; }
11139 if test "x$ac_cv_lib_socket_socket" = xyes; then :
11140 SOCKET_LIB=-lsocket
11144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for optreset" >&5
11145 $as_echo_n "checking for optreset... " >&6; }
11146 if ${ac_cv_have_optreset+:} false; then :
11147 $as_echo_n "(cached) " >&6
11149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11150 /* end confdefs.h. */
11151 #include <unistd.h>
11154 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11155 $EGREP "optreset" >/dev/null 2>&1; then :
11156 ac_cv_have_optreset=yes
11158 ac_cv_have_optreset=no
11163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_optreset" >&5
11164 $as_echo "$ac_cv_have_optreset" >&6; }
11165 if test $ac_cv_have_optreset = yes; then
11167 $as_echo "#define HAVE_OPTRESET 1" >>confdefs.h
11172 ac_fn_c_check_func "$LINENO" "sem_init" "ac_cv_func_sem_init"
11173 if test "x$ac_cv_func_sem_init" = xyes; then :
11176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lpthread" >&5
11177 $as_echo_n "checking for sem_init in -lpthread... " >&6; }
11178 if ${ac_cv_lib_pthread_sem_init+:} false; then :
11179 $as_echo_n "(cached) " >&6
11181 ac_check_lib_save_LIBS=$LIBS
11182 LIBS="-lpthread $LIBS"
11183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11184 /* end confdefs.h. */
11186 /* Override any GCC internal prototype to avoid an error.
11187 Use char because int might match the return type of a GCC
11188 builtin and then its argument prototype would still apply. */
11196 return sem_init ();
11201 if ac_fn_c_try_link "$LINENO"; then :
11202 ac_cv_lib_pthread_sem_init=yes
11204 ac_cv_lib_pthread_sem_init=no
11206 rm -f core conftest.err conftest.$ac_objext \
11207 conftest$ac_exeext conftest.$ac_ext
11208 LIBS=$ac_check_lib_save_LIBS
11210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_sem_init" >&5
11211 $as_echo "$ac_cv_lib_pthread_sem_init" >&6; }
11212 if test "x$ac_cv_lib_pthread_sem_init" = xyes; then :
11213 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
11215 SEM_INIT_LIB=-lpthread
11217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lrt" >&5
11218 $as_echo_n "checking for sem_init in -lrt... " >&6; }
11219 if ${ac_cv_lib_rt_sem_init+:} false; then :
11220 $as_echo_n "(cached) " >&6
11222 ac_check_lib_save_LIBS=$LIBS
11224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11225 /* end confdefs.h. */
11227 /* Override any GCC internal prototype to avoid an error.
11228 Use char because int might match the return type of a GCC
11229 builtin and then its argument prototype would still apply. */
11237 return sem_init ();
11242 if ac_fn_c_try_link "$LINENO"; then :
11243 ac_cv_lib_rt_sem_init=yes
11245 ac_cv_lib_rt_sem_init=no
11247 rm -f core conftest.err conftest.$ac_objext \
11248 conftest$ac_exeext conftest.$ac_ext
11249 LIBS=$ac_check_lib_save_LIBS
11251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sem_init" >&5
11252 $as_echo "$ac_cv_lib_rt_sem_init" >&6; }
11253 if test "x$ac_cv_lib_rt_sem_init" = xyes; then :
11254 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
11258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lposix4" >&5
11259 $as_echo_n "checking for sem_init in -lposix4... " >&6; }
11260 if ${ac_cv_lib_posix4_sem_init+:} false; then :
11261 $as_echo_n "(cached) " >&6
11263 ac_check_lib_save_LIBS=$LIBS
11264 LIBS="-lposix4 $LIBS"
11265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11266 /* end confdefs.h. */
11268 /* Override any GCC internal prototype to avoid an error.
11269 Use char because int might match the return type of a GCC
11270 builtin and then its argument prototype would still apply. */
11278 return sem_init ();
11283 if ac_fn_c_try_link "$LINENO"; then :
11284 ac_cv_lib_posix4_sem_init=yes
11286 ac_cv_lib_posix4_sem_init=no
11288 rm -f core conftest.err conftest.$ac_objext \
11289 conftest$ac_exeext conftest.$ac_ext
11290 LIBS=$ac_check_lib_save_LIBS
11292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sem_init" >&5
11293 $as_echo "$ac_cv_lib_posix4_sem_init" >&6; }
11294 if test "x$ac_cv_lib_posix4_sem_init" = xyes; then :
11295 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
11297 SEM_INIT_LIB=-lposix4
11306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unified diff option" >&5
11307 $as_echo_n "checking for unified diff option... " >&6; }
11308 if diff -u $0 $0 > /dev/null 2>&1 ; then
11313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNI_DIFF_OPTS" >&5
11314 $as_echo "$UNI_DIFF_OPTS" >&6; }
11319 $as_echo "#define HAVE_EXT2_IOCTLS 1" >>confdefs.h
11339 linux* | gnu* | k*bsd*-gnu)
11340 if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
11342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, root_prefix defaults to ''" >&5
11343 $as_echo "On $host_os systems, root_prefix defaults to ''" >&6; }
11348 linux* | gnu* | k*bsd*-gnu)
11349 if test "$prefix" = NONE ; then
11351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, prefix defaults to /usr" >&5
11352 $as_echo "On $host_os systems, prefix defaults to /usr" >&6; }
11353 if test "$mandir" = '${prefix}/man' ; then
11354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ...and mandir defaults to /usr/share/man" >&5
11355 $as_echo "...and mandir defaults to /usr/share/man" >&6; }
11356 mandir=/usr/share/man
11361 if test "$root_prefix" = NONE ; then
11362 if test "$prefix" = NONE ; then
11363 root_prefix="$ac_default_prefix"
11365 root_prefix="$prefix"
11367 root_bindir=$bindir
11368 root_sbindir=$sbindir
11369 root_libdir=$libdir
11370 root_sysconfdir=$sysconfdir
11372 root_bindir='${root_prefix}/bin'
11373 root_sbindir='${root_prefix}/sbin'
11374 root_libdir='${root_prefix}/lib'
11375 root_sysconfdir='${root_prefix}/etc'
11377 if test "$bindir" != '${exec_prefix}/bin'; then
11378 root_bindir=$bindir
11379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_bindir to $root_bindir" >&5
11380 $as_echo "Setting root_bindir to $root_bindir" >&6; }
11382 if test "$sbindir" != '${exec_prefix}/sbin'; then
11383 root_sbindir=$sbindir
11384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sbindir to $root_sbindir" >&5
11385 $as_echo "Setting root_sbindir to $root_sbindir" >&6; }
11387 if test "$libdir" != '${exec_prefix}/lib'; then
11388 root_libdir=$libdir
11389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_libdir to $root_libdir" >&5
11390 $as_echo "Setting root_libdir to $root_libdir" >&6; }
11392 if test "$sysconfdir" != '${prefix}/etc'; then
11393 root_sysconfdir=$sysconfdir
11394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sysconfdir to $root_sysconfdir" >&5
11395 $as_echo "Setting root_sysconfdir to $root_sysconfdir" >&6; }
11403 # Check whether --with-multiarch was given.
11404 if test "${with_multiarch+set}" = set; then :
11405 withval=$with_multiarch; libdir=$libdir/$withval
11406 root_libdir=$root_libdir/$withval
11409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can link with -static" >&5
11410 $as_echo_n "checking whether we can link with -static... " >&6; }
11411 if ${ac_cv_e2fsprogs_use_static+:} false; then :
11412 $as_echo_n "(cached) " >&6
11414 SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static"
11415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11416 /* end confdefs.h. */
11426 if ac_fn_c_try_link "$LINENO"; then :
11427 ac_cv_e2fsprogs_use_static=yes
11429 ac_cv_e2fsprogs_use_static=no
11431 rm -f core conftest.err conftest.$ac_objext \
11432 conftest$ac_exeext conftest.$ac_ext
11433 LDFLAGS=$SAVE_LDFLAGS
11438 ac_cv_e2fsprogs_use_static=no
11441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_e2fsprogs_use_static" >&5
11442 $as_echo "$ac_cv_e2fsprogs_use_static" >&6; }
11444 if test $ac_cv_e2fsprogs_use_static = yes; then
11445 LDFLAG_STATIC=-static
11450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using Apple Darwin / GNU libintl workaround" >&5
11451 $as_echo "Using Apple Darwin / GNU libintl workaround" >&6; }
11453 $as_echo "#define _INTL_REDIRECT_MACROS 1" >>confdefs.h
11457 SS_DIR=`cd ${srcdir}/lib/ss; pwd`
11458 ET_DIR=`cd ${srcdir}/lib/et; pwd`
11461 if test "$cross_compiling" = yes ; then
11464 DO_TEST_SUITE=check
11467 INCLUDES='-I. -I$(top_builddir)/lib -I$(top_srcdir)/lib'
11468 if test -n "$CPPFLAGS" ; then
11469 INCLUDES="$INCLUDES $CPPFLAGS"
11471 if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
11472 INCLUDES=$INCLUDES' -I$(top_builddir)/intl -I$(top_srcdir)/intl'
11475 if test $cross_compiling = no; then
11476 BUILD_CFLAGS="$CFLAGS $CPPFLAGS"
11477 BUILD_LDFLAGS="$LDFLAGS"
11484 test -d lib || mkdir lib
11485 test -d include || mkdir include
11486 test -d include/linux || mkdir include/linux
11487 test -d include/asm || mkdir include/asm
11488 for i in MCONFIG Makefile e2fsprogs.spec \
11489 util/Makefile util/subst.conf util/gen-tarball util/install-symlink \
11490 lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \
11491 lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \
11492 lib/uuid/Makefile lib/uuid/uuid_types.h \
11493 lib/blkid/Makefile lib/blkid/blkid_types.h lib/quota/Makefile \
11494 lib/ss/ss.pc lib/uuid/uuid.pc lib/et/com_err.pc \
11495 lib/e2p/e2p.pc lib/blkid/blkid.pc lib/ext2fs/ext2fs.pc \
11496 misc/Makefile ext2ed/Makefile e2fsck/Makefile \
11497 debugfs/Makefile tests/Makefile tests/progs/Makefile \
11498 resize/Makefile doc/Makefile intl/Makefile \
11499 intl/libgnuintl.h po/Makefile.in ; do
11500 if test -d `dirname ${srcdir}/$i` ; then
11501 outlist="$outlist $i"
11504 ac_config_files="$ac_config_files $outlist"
11506 cat >confcache <<\_ACEOF
11507 # This file is a shell script that caches the results of configure
11508 # tests run on this system so they can be shared between configure
11509 # scripts and configure runs, see configure's option --config-cache.
11510 # It is not useful on other systems. If it contains results you don't
11511 # want to keep, you may remove or edit it.
11513 # config.status only pays attention to the cache file if you give it
11514 # the --recheck option to rerun configure.
11516 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11517 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11518 # following values.
11522 # The following way of writing the cache mishandles newlines in values,
11523 # but we know of no workaround that is simple, portable, and efficient.
11524 # So, we kill variables containing newlines.
11525 # Ultrix sh set writes to stderr and can't be redirected directly,
11526 # and sets the high bit in the cache file unless we assign to the vars.
11528 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11529 eval ac_val=\$$ac_var
11533 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11534 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11537 _ | IFS | as_nl) ;; #(
11538 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11539 *) { eval $ac_var=; unset $ac_var;} ;;
11545 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11546 *${as_nl}ac_space=\ *)
11547 # `set' does not quote correctly, so add quotes: double-quote
11548 # substitution turns \\\\ into \\, and sed turns \\ into \.
11551 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11554 # `set' quotes correctly as required by POSIX, so do not add quotes.
11555 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11564 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11566 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11568 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11569 if test -w "$cache_file"; then
11570 if test "x$cache_file" != "x/dev/null"; then
11571 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11572 $as_echo "$as_me: updating cache $cache_file" >&6;}
11573 if test ! -f "$cache_file" || test -h "$cache_file"; then
11574 cat confcache >"$cache_file"
11576 case $cache_file in #(
11578 mv -f confcache "$cache_file"$$ &&
11579 mv -f "$cache_file"$$ "$cache_file" ;; #(
11581 mv -f confcache "$cache_file" ;;
11586 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11587 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11592 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11593 # Let make expand exec_prefix.
11594 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11596 DEFS=-DHAVE_CONFIG_H
11601 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11602 # 1. Remove the extension, and $U if already installed.
11603 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11604 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11605 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11606 # will be set to the directory where LIBOBJS objects are built.
11607 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11608 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11610 LIBOBJS=$ac_libobjs
11612 LTLIBOBJS=$ac_ltlibobjs
11617 : "${CONFIG_STATUS=./config.status}"
11619 ac_clean_files_save=$ac_clean_files
11620 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11621 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11622 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11624 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11626 # Generated by $as_me.
11627 # Run this file to recreate the current configuration.
11628 # Compiler output produced by configure, useful for debugging
11629 # configure, is in config.log if it exists.
11632 ac_cs_recheck=false
11635 SHELL=\${CONFIG_SHELL-$SHELL}
11638 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11639 ## -------------------- ##
11640 ## M4sh Initialization. ##
11641 ## -------------------- ##
11643 # Be more Bourne compatible
11644 DUALCASE=1; export DUALCASE # for MKS sh
11645 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11648 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11649 # is contrary to our usage. Disable this feature.
11650 alias -g '${1+"$@"}'='"$@"'
11651 setopt NO_GLOB_SUBST
11653 case `(set -o) 2>/dev/null` in #(
11665 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11666 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11667 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11668 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11669 # Prefer a ksh shell builtin over an external printf program on Solaris,
11670 # but without wasting forks for bash or zsh.
11671 if test -z "$BASH_VERSION$ZSH_VERSION" \
11672 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11673 as_echo='print -r --'
11674 as_echo_n='print -rn --'
11675 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11676 as_echo='printf %s\n'
11677 as_echo_n='printf %s'
11679 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11680 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11681 as_echo_n='/usr/ucb/echo -n'
11683 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11684 as_echo_n_body='eval
11688 expr "X$arg" : "X\\(.*\\)$as_nl";
11689 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11691 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11693 export as_echo_n_body
11694 as_echo_n='sh -c $as_echo_n_body as_echo'
11696 export as_echo_body
11697 as_echo='sh -c $as_echo_body as_echo'
11700 # The user is always right.
11701 if test "${PATH_SEPARATOR+set}" != set; then
11703 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11704 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11711 # We need space, tab and new line, in precisely that order. Quoting is
11712 # there to prevent editors from complaining about space-tab.
11713 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11714 # splitting by setting IFS to empty value.)
11717 # Find who we are. Look in the path if we contain no directory separator.
11720 *[\\/]* ) as_myself=$0 ;;
11721 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11722 for as_dir in $PATH
11725 test -z "$as_dir" && as_dir=.
11726 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11732 # We did not find ourselves, most probably we were run as `sh COMMAND'
11733 # in which case we are not to be found in the path.
11734 if test "x$as_myself" = x; then
11737 if test ! -f "$as_myself"; then
11738 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11742 # Unset variables that we do not need and which cause bugs (e.g. in
11743 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11744 # suppresses any "Segmentation fault" message there. '((' could
11745 # trigger a bug in pdksh 5.2.14.
11746 for as_var in BASH_ENV ENV MAIL MAILPATH
11747 do eval test x\${$as_var+set} = xset \
11748 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11761 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11764 # as_fn_error STATUS ERROR [LINENO LOG_FD]
11765 # ----------------------------------------
11766 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11767 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11768 # script with STATUS, using 1 if that was 0.
11771 as_status=$1; test $as_status -eq 0 && as_status=1
11773 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11774 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11776 $as_echo "$as_me: error: $2" >&2
11777 as_fn_exit $as_status
11781 # as_fn_set_status STATUS
11782 # -----------------------
11783 # Set $? to STATUS, without forking.
11784 as_fn_set_status ()
11787 } # as_fn_set_status
11789 # as_fn_exit STATUS
11790 # -----------------
11791 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11795 as_fn_set_status $1
11801 # Portably unset VAR.
11804 { eval $1=; unset $1;}
11806 as_unset=as_fn_unset
11807 # as_fn_append VAR VALUE
11808 # ----------------------
11809 # Append the text in VALUE to the end of the definition contained in VAR. Take
11810 # advantage of any shell optimizations that allow amortized linear growth over
11811 # repeated appends, instead of the typical quadratic growth present in naive
11813 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11814 eval 'as_fn_append ()
11825 # as_fn_arith ARG...
11826 # ------------------
11827 # Perform arithmetic evaluation on the ARGs, and store the result in the
11828 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11829 # must be portable across $(()) and expr.
11830 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11831 eval 'as_fn_arith ()
11838 as_val=`expr "$@" || test $? -eq 1`
11843 if expr a : '\(a\)' >/dev/null 2>&1 &&
11844 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11850 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11851 as_basename=basename
11856 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11862 as_me=`$as_basename -- "$0" ||
11863 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11864 X"$0" : 'X\(//\)$' \| \
11865 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11867 sed '/^.*\/\([^/][^/]*\)\/*$/{
11881 # Avoid depending upon Character Ranges.
11882 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11883 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11884 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11885 as_cr_digits='0123456789'
11886 as_cr_alnum=$as_cr_Letters$as_cr_digits
11888 ECHO_C= ECHO_N= ECHO_T=
11889 case `echo -n x` in #(((((
11891 case `echo 'xy\c'` in
11892 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11894 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11901 rm -f conf$$ conf$$.exe conf$$.file
11902 if test -d conf$$.dir; then
11903 rm -f conf$$.dir/conf$$.file
11906 mkdir conf$$.dir 2>/dev/null
11908 if (echo >conf$$.file) 2>/dev/null; then
11909 if ln -s conf$$.file conf$$ 2>/dev/null; then
11911 # ... but there are two gotchas:
11912 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11913 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11914 # In both cases, we have to default to `cp -pR'.
11915 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11917 elif ln conf$$.file conf$$ 2>/dev/null; then
11925 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11926 rmdir conf$$.dir 2>/dev/null
11931 # Create "$as_dir" as a directory, including parents if necessary.
11936 -*) as_dir=./$as_dir;;
11938 test -d "$as_dir" || eval $as_mkdir_p || {
11942 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11943 *) as_qdir=$as_dir;;
11945 as_dirs="'$as_qdir' $as_dirs"
11946 as_dir=`$as_dirname -- "$as_dir" ||
11947 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11948 X"$as_dir" : 'X\(//\)[^/]' \| \
11949 X"$as_dir" : 'X\(//\)$' \| \
11950 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11951 $as_echo X"$as_dir" |
11952 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11956 /^X\(\/\/\)[^/].*/{
11969 test -d "$as_dir" && break
11971 test -z "$as_dirs" || eval "mkdir $as_dirs"
11972 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11976 if mkdir -p . 2>/dev/null; then
11977 as_mkdir_p='mkdir -p "$as_dir"'
11979 test -d ./-p && rmdir ./-p
11984 # as_fn_executable_p FILE
11985 # -----------------------
11986 # Test if FILE is an executable regular file.
11987 as_fn_executable_p ()
11989 test -f "$1" && test -x "$1"
11990 } # as_fn_executable_p
11991 as_test_x='test -x'
11992 as_executable_p=as_fn_executable_p
11994 # Sed expression to map a string onto a valid CPP name.
11995 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11997 # Sed expression to map a string onto a valid variable name.
11998 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12002 ## ----------------------------------- ##
12003 ## Main body of $CONFIG_STATUS script. ##
12004 ## ----------------------------------- ##
12006 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12008 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12009 # Save the log message, to keep $0 and so on meaningful, and to
12010 # report actual input values of CONFIG_FILES etc. instead of their
12011 # values after options handling.
12013 This file was extended by $as_me, which was
12014 generated by GNU Autoconf 2.69. Invocation command line was
12016 CONFIG_FILES = $CONFIG_FILES
12017 CONFIG_HEADERS = $CONFIG_HEADERS
12018 CONFIG_LINKS = $CONFIG_LINKS
12019 CONFIG_COMMANDS = $CONFIG_COMMANDS
12022 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12027 case $ac_config_files in *"
12028 "*) set x $ac_config_files; shift; ac_config_files=$*;;
12031 case $ac_config_headers in *"
12032 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12036 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12037 # Files that config.status was made for.
12038 config_files="$ac_config_files"
12039 config_headers="$ac_config_headers"
12040 config_commands="$ac_config_commands"
12044 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12046 \`$as_me' instantiates files and other configuration actions
12047 from templates according to the current configuration. Unless the files
12048 and actions are specified as TAGs, all are instantiated by default.
12050 Usage: $0 [OPTION]... [TAG]...
12052 -h, --help print this help, then exit
12053 -V, --version print version number and configuration settings, then exit
12054 --config print configuration, then exit
12055 -q, --quiet, --silent
12056 do not print progress messages
12057 -d, --debug don't remove temporary files
12058 --recheck update $as_me by reconfiguring in the same conditions
12059 --file=FILE[:TEMPLATE]
12060 instantiate the configuration file FILE
12061 --header=FILE[:TEMPLATE]
12062 instantiate the configuration header FILE
12064 Configuration files:
12067 Configuration headers:
12070 Configuration commands:
12073 Report bugs to the package provider."
12076 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12077 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12080 configured by $0, generated by GNU Autoconf 2.69,
12081 with options \\"\$ac_cs_config\\"
12083 Copyright (C) 2012 Free Software Foundation, Inc.
12084 This config.status script is free software; the Free Software Foundation
12085 gives unlimited permission to copy, distribute and modify it."
12091 test -n "\$AWK" || AWK=awk
12094 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12095 # The default lists apply if the user does not specify any file.
12101 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12102 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12106 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12118 # Handling of the options.
12119 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12121 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12122 $as_echo "$ac_cs_version"; exit ;;
12123 --config | --confi | --conf | --con | --co | --c )
12124 $as_echo "$ac_cs_config"; exit ;;
12125 --debug | --debu | --deb | --de | --d | -d )
12127 --file | --fil | --fi | --f )
12130 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12131 '') as_fn_error $? "missing file argument" ;;
12133 as_fn_append CONFIG_FILES " '$ac_optarg'"
12134 ac_need_defaults=false;;
12135 --header | --heade | --head | --hea )
12138 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12140 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12141 ac_need_defaults=false;;
12143 # Conflict between --help and --header
12144 as_fn_error $? "ambiguous option: \`$1'
12145 Try \`$0 --help' for more information.";;
12146 --help | --hel | -h )
12147 $as_echo "$ac_cs_usage"; exit ;;
12148 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12149 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12152 # This is an error.
12153 -*) as_fn_error $? "unrecognized option: \`$1'
12154 Try \`$0 --help' for more information." ;;
12156 *) as_fn_append ac_config_targets " $1"
12157 ac_need_defaults=false ;;
12163 ac_configure_extra_args=
12165 if $ac_cs_silent; then
12167 ac_configure_extra_args="$ac_configure_extra_args --silent"
12171 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12172 if \$ac_cs_recheck; then
12173 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12175 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12176 CONFIG_SHELL='$SHELL'
12177 export CONFIG_SHELL
12182 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12186 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12187 ## Running $as_me. ##
12193 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12197 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
12198 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
12200 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
12201 # Capture the value of LINGUAS because we need it to compute CATALOGS.
12202 LINGUAS="${LINGUAS-%UNSET%}"
12207 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12209 # Handling of arguments.
12210 for ac_config_target in $ac_config_targets
12212 case $ac_config_target in
12213 "lib/config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/config.h" ;;
12214 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
12215 "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;;
12217 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12222 # If the user did not use the arguments to specify the items to instantiate,
12223 # then the envvar interface is used. Set only those that are not.
12224 # We use the long form for the default assignment because of an extremely
12225 # bizarre bug on SunOS 4.1.3.
12226 if $ac_need_defaults; then
12227 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12228 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12229 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12232 # Have a temporary directory for convenience. Make it in the build tree
12233 # simply because there is no reason against having it here, and in addition,
12234 # creating and moving files from /tmp can sometimes cause problems.
12235 # Hook for its removal unless debugging.
12236 # Note that there is a small window in which the directory will not be cleaned:
12237 # after its creation but before its name has been assigned to `$tmp'.
12241 trap 'exit_status=$?
12242 : "${ac_tmp:=$tmp}"
12243 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12245 trap 'as_fn_exit 1' 1 2 13 15
12247 # Create a (secure) tmp directory for tmp files.
12250 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12254 tmp=./conf$$-$RANDOM
12255 (umask 077 && mkdir "$tmp")
12256 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12259 # Set up the scripts for CONFIG_FILES section.
12260 # No need to generate them if there are no CONFIG_FILES.
12261 # This happens for instance with `./config.status config.h'.
12262 if test -n "$CONFIG_FILES"; then
12264 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
12265 ac_cs_awk_getline=:
12266 ac_cs_awk_pipe_init=
12267 ac_cs_awk_read_file='
12268 while ((getline aline < (F[key])) > 0)
12271 ac_cs_awk_pipe_fini=
12273 ac_cs_awk_getline=false
12274 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
12275 ac_cs_awk_read_file='
12277 print "cat " F[key] " &&"
12278 '$ac_cs_awk_pipe_init
12279 # The final `:' finishes the AND list.
12280 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
12282 ac_cr=`echo X | tr X '\015'`
12283 # On cygwin, bash can eat \r inside `` if the user requested igncr.
12284 # But we know of no other shell where ac_cr would be empty at this
12285 # point, so we can use a bashism as a fallback.
12286 if test "x$ac_cr" = x; then
12287 eval ac_cr=\$\'\\r\'
12289 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12290 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12293 ac_cs_awk_cr=$ac_cr
12296 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12299 # Create commands to substitute file output variables.
12301 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
12302 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
12303 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
12306 } >conf$$files.sh &&
12307 . ./conf$$files.sh ||
12308 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12309 rm -f conf$$files.sh
12312 echo "cat >conf$$subs.awk <<_ACEOF" &&
12313 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12315 } >conf$$subs.sh ||
12316 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12317 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12319 for ac_last_try in false false false false false :; do
12320 . ./conf$$subs.sh ||
12321 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12323 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12324 if test $ac_delim_n = $ac_delim_num; then
12326 elif $ac_last_try; then
12327 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12329 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12332 rm -f conf$$subs.sh
12334 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12335 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12339 s/^/S["/; s/!.*/"]=/
12349 s/\(.\{148\}\)..*/\1/
12351 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12356 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12363 s/\(.\{148\}\)..*/\1/
12365 s/["\\]/\\&/g; s/^/"/; s/$/"/
12369 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12374 ' <conf$$subs.awk | sed '
12379 ' >>$CONFIG_STATUS || ac_write_fail=1
12380 rm -f conf$$subs.awk
12381 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12383 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12384 for (key in S) S_is_set[key] = 1
12386 \$ac_cs_awk_pipe_init
12390 nfields = split(line, field, "@")
12392 len = length(field[1])
12393 for (i = 2; i < nfields; i++) {
12395 keylen = length(key)
12396 if (S_is_set[key]) {
12398 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12399 len += length(value) + length(field[++i])
12404 if (nfields == 3 && !substed) {
12406 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
12407 \$ac_cs_awk_read_file
12413 \$ac_cs_awk_pipe_fini
12416 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12417 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12418 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12421 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12422 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12425 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12426 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12427 # trailing colons and then remove the whole line if VPATH becomes empty
12428 # (actually we leave an empty line to preserve line numbers).
12429 if test "x$srcdir" = x.; then
12430 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
12448 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12449 fi # test -n "$CONFIG_FILES"
12451 # Set up the scripts for CONFIG_HEADERS section.
12452 # No need to generate them if there are no CONFIG_HEADERS.
12453 # This happens for instance with `./config.status Makefile'.
12454 if test -n "$CONFIG_HEADERS"; then
12455 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
12459 # Transform confdefs.h into an awk script `defines.awk', embedded as
12460 # here-document in config.status, that substitutes the proper values into
12461 # config.h.in to produce config.h.
12463 # Create a delimiter string that does not exist in confdefs.h, to ease
12464 # handling of long lines.
12466 for ac_last_try in false false :; do
12467 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12468 if test -z "$ac_tt"; then
12470 elif $ac_last_try; then
12471 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12473 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12477 # For the awk script, D is an array of macro values keyed by name,
12478 # likewise P contains macro parameters if any. Preserve backslash
12479 # newline sequences.
12481 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12483 s/.\{148\}/&'"$ac_delim"'/g
12486 s/^[ ]*#[ ]*define[ ][ ]*/ /
12493 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12495 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12499 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12500 D["\1"]=" \3\\\\\\n"\\/p
12502 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12507 s/.\{148\}/&'"$ac_delim"'/g
12512 s/["\\]/\\&/g; s/^/"/; s/$/"/p
12515 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12517 ' <confdefs.h | sed '
12518 s/'"$ac_delim"'/"\\\
12519 "/g' >>$CONFIG_STATUS || ac_write_fail=1
12521 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12522 for (key in D) D_is_set[key] = 1
12525 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12527 split(line, arg, " ")
12528 if (arg[1] == "#") {
12532 defundef = substr(arg[1], 2)
12535 split(mac1, mac2, "(") #)
12537 prefix = substr(line, 1, index(line, defundef) - 1)
12538 if (D_is_set[macro]) {
12539 # Preserve the white space surrounding the "#".
12540 print prefix "define", macro P[macro] D[macro]
12543 # Replace #undef with comments. This is necessary, for example,
12544 # in the case of _POSIX_SOURCE, which is predefined and required
12545 # on some systems where configure will not decide to define it.
12546 if (defundef == "undef") {
12547 print "/*", prefix defundef, macro, "*/"
12555 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12556 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12557 fi # test -n "$CONFIG_HEADERS"
12560 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
12565 :[FHLC]) ac_mode=$ac_tag; continue;;
12567 case $ac_mode$ac_tag in
12569 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12570 :[FH]-) ac_tag=-:-;;
12571 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12588 -) ac_f="$ac_tmp/stdin";;
12589 *) # Look for the file first in the build tree, then in the source tree
12590 # (if the path is not absolute). The absolute path cannot be DOS-style,
12591 # because $ac_f cannot contain `:'.
12595 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12597 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12599 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12600 as_fn_append ac_file_inputs " '$ac_f'"
12603 # Let's still pretend it is `configure' which instantiates (i.e., don't
12604 # use $as_me), people would be surprised to read:
12605 # /* config.h. Generated by config.status. */
12606 configure_input='Generated from '`
12607 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12609 if test x"$ac_file" != x-; then
12610 configure_input="$ac_file. $configure_input"
12611 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12612 $as_echo "$as_me: creating $ac_file" >&6;}
12614 # Neutralize special characters interpreted by sed in replacement strings.
12615 case $configure_input in #(
12616 *\&* | *\|* | *\\* )
12617 ac_sed_conf_input=`$as_echo "$configure_input" |
12618 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12619 *) ac_sed_conf_input=$configure_input;;
12623 *:-:* | *:-) cat >"$ac_tmp/stdin" \
12624 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12629 ac_dir=`$as_dirname -- "$ac_file" ||
12630 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12631 X"$ac_file" : 'X\(//\)[^/]' \| \
12632 X"$ac_file" : 'X\(//\)$' \| \
12633 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12634 $as_echo X"$ac_file" |
12635 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12639 /^X\(\/\/\)[^/].*/{
12652 as_dir="$ac_dir"; as_fn_mkdir_p
12656 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12658 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12659 # A ".." for each directory in $ac_dir_suffix.
12660 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12661 case $ac_top_builddir_sub in
12662 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12663 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12666 ac_abs_top_builddir=$ac_pwd
12667 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12668 # for backward compatibility:
12669 ac_top_builddir=$ac_top_build_prefix
12672 .) # We are building in place.
12674 ac_top_srcdir=$ac_top_builddir_sub
12675 ac_abs_top_srcdir=$ac_pwd ;;
12676 [\\/]* | ?:[\\/]* ) # Absolute name.
12677 ac_srcdir=$srcdir$ac_dir_suffix;
12678 ac_top_srcdir=$srcdir
12679 ac_abs_top_srcdir=$srcdir ;;
12680 *) # Relative name.
12681 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12682 ac_top_srcdir=$ac_top_build_prefix$srcdir
12683 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12685 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12695 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12696 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12700 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12701 # If the template does not know about datarootdir, expand it.
12702 # FIXME: This hack should be removed a few years after 2.60.
12703 ac_datarootdir_hack=; ac_datarootdir_seen=
12714 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12715 *datarootdir*) ac_datarootdir_seen=yes;;
12716 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12717 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12718 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12720 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12721 ac_datarootdir_hack='
12722 s&@datadir@&$datadir&g
12723 s&@docdir@&$docdir&g
12724 s&@infodir@&$infodir&g
12725 s&@localedir@&$localedir&g
12726 s&@mandir@&$mandir&g
12727 s&\\\${datarootdir}&$datarootdir&g' ;;
12731 # Neutralize VPATH when `$srcdir' = `.'.
12732 # Shell code in configure.ac might set extrasub.
12733 # FIXME: do we really want to maintain this feature?
12734 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12735 ac_sed_extra="$ac_vpsub
12738 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12740 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12741 s|@configure_input@|$ac_sed_conf_input|;t t
12742 s&@top_builddir@&$ac_top_builddir_sub&;t t
12743 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12744 s&@srcdir@&$ac_srcdir&;t t
12745 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12746 s&@top_srcdir@&$ac_top_srcdir&;t t
12747 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12748 s&@builddir@&$ac_builddir&;t t
12749 s&@abs_builddir@&$ac_abs_builddir&;t t
12750 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12751 s&@INSTALL@&$ac_INSTALL&;t t
12752 $ac_datarootdir_hack
12754 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
12755 if $ac_cs_awk_getline; then
12756 $AWK -f "$ac_tmp/subs.awk"
12758 $AWK -f "$ac_tmp/subs.awk" | $SHELL
12760 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12762 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12763 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12764 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
12765 "$ac_tmp/out"`; test -z "$ac_out"; } &&
12766 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12767 which seems to be undefined. Please make sure it is defined" >&5
12768 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12769 which seems to be undefined. Please make sure it is defined" >&2;}
12771 rm -f "$ac_tmp/stdin"
12773 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12774 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12776 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12782 if test x"$ac_file" != x-; then
12784 $as_echo "/* $configure_input */" \
12785 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12786 } >"$ac_tmp/config.h" \
12787 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12788 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12789 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12790 $as_echo "$as_me: $ac_file is unchanged" >&6;}
12793 mv "$ac_tmp/config.h" "$ac_file" \
12794 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12797 $as_echo "/* $configure_input */" \
12798 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12799 || as_fn_error $? "could not create -" "$LINENO" 5
12803 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12804 $as_echo "$as_me: executing $ac_file commands" >&6;}
12809 case $ac_file$ac_mode in
12811 for ac_file in $CONFIG_FILES; do
12812 # Support "outfile[:infile[:infile...]]"
12814 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
12816 # PO directories have a Makefile.in generated from Makefile.in.in.
12817 case "$ac_file" in */Makefile.in)
12818 # Adjust a relative srcdir.
12819 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
12820 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
12821 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
12822 # In autoconf-2.13 it is called $ac_given_srcdir.
12823 # In autoconf-2.50 it is called $srcdir.
12824 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
12825 case "$ac_given_srcdir" in
12826 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
12827 /*) top_srcdir="$ac_given_srcdir" ;;
12828 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
12830 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
12831 rm -f "$ac_dir/POTFILES"
12832 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
12833 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
12834 POMAKEFILEDEPS="POTFILES.in"
12835 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
12836 # on $ac_dir but don't depend on user-specified configuration
12838 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
12839 # The LINGUAS file contains the set of available languages.
12840 if test -n "$OBSOLETE_ALL_LINGUAS"; then
12841 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
12843 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
12844 # Hide the ALL_LINGUAS assigment from automake.
12845 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
12846 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
12848 # The set of available languages was given in configure.in.
12849 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
12852 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
12853 # Compute UPDATEPOFILES
12854 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
12855 # Compute DUMMYPOFILES
12856 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
12858 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
12859 case "$ac_given_srcdir" in
12861 *) srcdirpre='$(srcdir)/' ;;
12867 for lang in $ALL_LINGUAS; do
12868 POFILES="$POFILES $srcdirpre$lang.po"
12869 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
12870 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
12871 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
12873 # CATALOGS depends on both $ac_dir and the user's LINGUAS
12874 # environment variable.
12876 if test -n "$ALL_LINGUAS"; then
12877 for presentlang in $ALL_LINGUAS; do
12879 if test "%UNSET%" != "$LINGUAS"; then
12880 desiredlanguages="$LINGUAS"
12882 desiredlanguages="$ALL_LINGUAS"
12884 for desiredlang in $desiredlanguages; do
12885 # Use the presentlang catalog if desiredlang is
12886 # a. equal to presentlang, or
12887 # b. a variant of presentlang (because in this case,
12888 # presentlang can be used as a fallback for messages
12889 # which are not translated in the desiredlang catalog).
12890 case "$desiredlang" in
12891 "$presentlang"*) useit=yes;;
12894 if test $useit = yes; then
12895 INST_LINGUAS="$INST_LINGUAS $presentlang"
12900 if test -n "$INST_LINGUAS"; then
12901 for lang in $INST_LINGUAS; do
12902 CATALOGS="$CATALOGS $lang.gmo"
12905 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
12906 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"
12907 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
12908 if test -f "$f"; then
12910 *.orig | *.bak | *~) ;;
12911 *) cat "$f" >> "$ac_dir/Makefile" ;;
12926 ac_clean_files=$ac_clean_files_save
12928 test $ac_write_fail = 0 ||
12929 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12932 # configure is writing to config.log, and then calls config.status.
12933 # config.status does its own redirection, appending to config.log.
12934 # Unfortunately, on DOS this fails, as config.log is still kept open
12935 # by configure, so config.status won't be able to write to it; its
12936 # output is simply discarded. So we exec the FD to /dev/null,
12937 # effectively closing config.log, so it can be properly (re)opened and
12938 # appended to by config.status. When coming back to configure, we
12939 # need to make the FD available again.
12940 if test "$no_create" != yes; then
12942 ac_config_status_args=
12943 test "$silent" = yes &&
12944 ac_config_status_args="$ac_config_status_args --quiet"
12946 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12948 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12949 # would make configure fail if this is the last instruction.
12950 $ac_cs_success || as_fn_exit 1
12952 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12953 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12954 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12957 if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi