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
668 INTL_LIBTOOL_SUFFIX_PREFIX
675 BUILD_INCLUDED_LIBINTL
800 program_transform_name
811 ac_subst_files='MCONFIG
818 PUBLIC_CONFIG_HEADER'
820 enable_option_checking
826 enable_maintainer_mode
827 enable_symlink_install
828 enable_relative_symlinks
829 enable_symlink_relative_symlinks
831 enable_verbose_makecmds
849 enable_e2initrd_helper
856 with_included_gettext
860 ac_precious_vars='build_alias
872 # Initialize some variables set by options.
874 ac_init_version=false
875 ac_unrecognized_opts=
877 # The variables have the same names as the options, with
878 # dashes changed to underlines.
886 program_transform_name=s,x,x,
894 # Installation directory options.
895 # These are left unexpanded so users can "make install exec_prefix=/foo"
896 # and all the variables that are supposed to be based on exec_prefix
897 # by default will actually change.
898 # Use braces instead of parens because sh, perl, etc. also accept them.
899 # (The list follows the same order as the GNU Coding Standards.)
900 bindir='${exec_prefix}/bin'
901 sbindir='${exec_prefix}/sbin'
902 libexecdir='${exec_prefix}/libexec'
903 datarootdir='${prefix}/share'
904 datadir='${datarootdir}'
905 sysconfdir='${prefix}/etc'
906 sharedstatedir='${prefix}/com'
907 localstatedir='${prefix}/var'
908 includedir='${prefix}/include'
909 oldincludedir='/usr/include'
910 docdir='${datarootdir}/doc/${PACKAGE}'
911 infodir='${datarootdir}/info'
916 libdir='${exec_prefix}/lib'
917 localedir='${datarootdir}/locale'
918 mandir='${datarootdir}/man'
924 # If the previous option needs an argument, assign it.
925 if test -n "$ac_prev"; then
926 eval $ac_prev=\$ac_option
932 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
937 # Accept the important Cygnus configure options, so we can diagnose typos.
939 case $ac_dashdash$ac_option in
943 -bindir | --bindir | --bindi | --bind | --bin | --bi)
945 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
948 -build | --build | --buil | --bui | --bu)
949 ac_prev=build_alias ;;
950 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
951 build_alias=$ac_optarg ;;
953 -cache-file | --cache-file | --cache-fil | --cache-fi \
954 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
955 ac_prev=cache_file ;;
956 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
957 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
958 cache_file=$ac_optarg ;;
961 cache_file=config.cache ;;
963 -datadir | --datadir | --datadi | --datad)
965 -datadir=* | --datadir=* | --datadi=* | --datad=*)
966 datadir=$ac_optarg ;;
968 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
969 | --dataroo | --dataro | --datar)
970 ac_prev=datarootdir ;;
971 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
972 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
973 datarootdir=$ac_optarg ;;
975 -disable-* | --disable-*)
976 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
977 # Reject names that are not valid shell variable names.
978 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
979 as_fn_error $? "invalid feature name: $ac_useropt"
980 ac_useropt_orig=$ac_useropt
981 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
982 case $ac_user_opts in
986 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
987 ac_unrecognized_sep=', ';;
989 eval enable_$ac_useropt=no ;;
991 -docdir | --docdir | --docdi | --doc | --do)
993 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
996 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
998 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1001 -enable-* | --enable-*)
1002 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1003 # Reject names that are not valid shell variable names.
1004 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1005 as_fn_error $? "invalid feature name: $ac_useropt"
1006 ac_useropt_orig=$ac_useropt
1007 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1008 case $ac_user_opts in
1010 "enable_$ac_useropt"
1012 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1013 ac_unrecognized_sep=', ';;
1015 eval enable_$ac_useropt=\$ac_optarg ;;
1017 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1018 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1019 | --exec | --exe | --ex)
1020 ac_prev=exec_prefix ;;
1021 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1022 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1023 | --exec=* | --exe=* | --ex=*)
1024 exec_prefix=$ac_optarg ;;
1026 -gas | --gas | --ga | --g)
1027 # Obsolete; use --with-gas.
1030 -help | --help | --hel | --he | -h)
1031 ac_init_help=long ;;
1032 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1033 ac_init_help=recursive ;;
1034 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1035 ac_init_help=short ;;
1037 -host | --host | --hos | --ho)
1038 ac_prev=host_alias ;;
1039 -host=* | --host=* | --hos=* | --ho=*)
1040 host_alias=$ac_optarg ;;
1042 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1044 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1046 htmldir=$ac_optarg ;;
1048 -includedir | --includedir | --includedi | --included | --include \
1049 | --includ | --inclu | --incl | --inc)
1050 ac_prev=includedir ;;
1051 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1052 | --includ=* | --inclu=* | --incl=* | --inc=*)
1053 includedir=$ac_optarg ;;
1055 -infodir | --infodir | --infodi | --infod | --info | --inf)
1057 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1058 infodir=$ac_optarg ;;
1060 -libdir | --libdir | --libdi | --libd)
1062 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1063 libdir=$ac_optarg ;;
1065 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1066 | --libexe | --libex | --libe)
1067 ac_prev=libexecdir ;;
1068 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1069 | --libexe=* | --libex=* | --libe=*)
1070 libexecdir=$ac_optarg ;;
1072 -localedir | --localedir | --localedi | --localed | --locale)
1073 ac_prev=localedir ;;
1074 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1075 localedir=$ac_optarg ;;
1077 -localstatedir | --localstatedir | --localstatedi | --localstated \
1078 | --localstate | --localstat | --localsta | --localst | --locals)
1079 ac_prev=localstatedir ;;
1080 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1081 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1082 localstatedir=$ac_optarg ;;
1084 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1086 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1087 mandir=$ac_optarg ;;
1089 -nfp | --nfp | --nf)
1090 # Obsolete; use --without-fp.
1093 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1094 | --no-cr | --no-c | -n)
1097 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1098 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1101 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1102 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1103 | --oldin | --oldi | --old | --ol | --o)
1104 ac_prev=oldincludedir ;;
1105 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1106 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1107 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1108 oldincludedir=$ac_optarg ;;
1110 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1112 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1113 prefix=$ac_optarg ;;
1115 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1116 | --program-pre | --program-pr | --program-p)
1117 ac_prev=program_prefix ;;
1118 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1119 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1120 program_prefix=$ac_optarg ;;
1122 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1123 | --program-suf | --program-su | --program-s)
1124 ac_prev=program_suffix ;;
1125 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1126 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1127 program_suffix=$ac_optarg ;;
1129 -program-transform-name | --program-transform-name \
1130 | --program-transform-nam | --program-transform-na \
1131 | --program-transform-n | --program-transform- \
1132 | --program-transform | --program-transfor \
1133 | --program-transfo | --program-transf \
1134 | --program-trans | --program-tran \
1135 | --progr-tra | --program-tr | --program-t)
1136 ac_prev=program_transform_name ;;
1137 -program-transform-name=* | --program-transform-name=* \
1138 | --program-transform-nam=* | --program-transform-na=* \
1139 | --program-transform-n=* | --program-transform-=* \
1140 | --program-transform=* | --program-transfor=* \
1141 | --program-transfo=* | --program-transf=* \
1142 | --program-trans=* | --program-tran=* \
1143 | --progr-tra=* | --program-tr=* | --program-t=*)
1144 program_transform_name=$ac_optarg ;;
1146 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1148 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1149 pdfdir=$ac_optarg ;;
1151 -psdir | --psdir | --psdi | --psd | --ps)
1153 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1156 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1157 | -silent | --silent | --silen | --sile | --sil)
1160 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1162 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1164 sbindir=$ac_optarg ;;
1166 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1167 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1168 | --sharedst | --shareds | --shared | --share | --shar \
1170 ac_prev=sharedstatedir ;;
1171 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1172 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1173 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1175 sharedstatedir=$ac_optarg ;;
1177 -site | --site | --sit)
1179 -site=* | --site=* | --sit=*)
1182 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1184 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1185 srcdir=$ac_optarg ;;
1187 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1188 | --syscon | --sysco | --sysc | --sys | --sy)
1189 ac_prev=sysconfdir ;;
1190 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1191 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1192 sysconfdir=$ac_optarg ;;
1194 -target | --target | --targe | --targ | --tar | --ta | --t)
1195 ac_prev=target_alias ;;
1196 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1197 target_alias=$ac_optarg ;;
1199 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1202 -version | --version | --versio | --versi | --vers | -V)
1203 ac_init_version=: ;;
1206 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1207 # Reject names that are not valid shell variable names.
1208 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1209 as_fn_error $? "invalid package name: $ac_useropt"
1210 ac_useropt_orig=$ac_useropt
1211 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1212 case $ac_user_opts in
1216 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1217 ac_unrecognized_sep=', ';;
1219 eval with_$ac_useropt=\$ac_optarg ;;
1221 -without-* | --without-*)
1222 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1223 # Reject names that are not valid shell variable names.
1224 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1225 as_fn_error $? "invalid package name: $ac_useropt"
1226 ac_useropt_orig=$ac_useropt
1227 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1228 case $ac_user_opts in
1232 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1233 ac_unrecognized_sep=', ';;
1235 eval with_$ac_useropt=no ;;
1238 # Obsolete; use --with-x.
1241 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1242 | --x-incl | --x-inc | --x-in | --x-i)
1243 ac_prev=x_includes ;;
1244 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1245 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1246 x_includes=$ac_optarg ;;
1248 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1249 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1250 ac_prev=x_libraries ;;
1251 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1252 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1253 x_libraries=$ac_optarg ;;
1255 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1256 Try \`$0 --help' for more information"
1260 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1261 # Reject names that are not valid shell variable names.
1262 case $ac_envvar in #(
1263 '' | [0-9]* | *[!_$as_cr_alnum]* )
1264 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1266 eval $ac_envvar=\$ac_optarg
1267 export $ac_envvar ;;
1270 # FIXME: should be removed in autoconf 3.0.
1271 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1272 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1273 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1274 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1280 if test -n "$ac_prev"; then
1281 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1282 as_fn_error $? "missing argument to $ac_option"
1285 if test -n "$ac_unrecognized_opts"; then
1286 case $enable_option_checking in
1288 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1289 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1293 # Check all directory arguments for consistency.
1294 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1295 datadir sysconfdir sharedstatedir localstatedir includedir \
1296 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1297 libdir localedir mandir
1299 eval ac_val=\$$ac_var
1300 # Remove trailing slashes.
1303 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1304 eval $ac_var=\$ac_val;;
1306 # Be sure to have absolute directory names.
1308 [\\/$]* | ?:[\\/]* ) continue;;
1309 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1311 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1314 # There might be people who depend on the old broken behavior: `$host'
1315 # used to hold the argument of --host etc.
1316 # FIXME: To remove some day.
1319 target=$target_alias
1321 # FIXME: To remove some day.
1322 if test "x$host_alias" != x; then
1323 if test "x$build_alias" = x; then
1324 cross_compiling=maybe
1325 elif test "x$build_alias" != "x$host_alias"; then
1331 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1333 test "$silent" = yes && exec 6>/dev/null
1336 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1337 ac_ls_di=`ls -di .` &&
1338 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1339 as_fn_error $? "working directory cannot be determined"
1340 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1341 as_fn_error $? "pwd does not report name of working directory"
1344 # Find the source files, if location was not specified.
1345 if test -z "$srcdir"; then
1346 ac_srcdir_defaulted=yes
1347 # Try the directory containing this script, then the parent directory.
1348 ac_confdir=`$as_dirname -- "$as_myself" ||
1349 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1350 X"$as_myself" : 'X\(//\)[^/]' \| \
1351 X"$as_myself" : 'X\(//\)$' \| \
1352 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1353 $as_echo X"$as_myself" |
1354 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1372 if test ! -r "$srcdir/$ac_unique_file"; then
1376 ac_srcdir_defaulted=no
1378 if test ! -r "$srcdir/$ac_unique_file"; then
1379 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1380 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1382 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1384 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1386 # When building in place, set srcdir=.
1387 if test "$ac_abs_confdir" = "$ac_pwd"; then
1390 # Remove unnecessary trailing slashes from srcdir.
1391 # Double slashes in file names in object file debugging info
1392 # mess up M-x gdb in Emacs.
1394 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1396 for ac_var in $ac_precious_vars; do
1397 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1398 eval ac_env_${ac_var}_value=\$${ac_var}
1399 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1400 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1404 # Report the --help message.
1406 if test "$ac_init_help" = "long"; then
1407 # Omit some internal or obsolete options to make the list less imposing.
1408 # This message is too long to be a string in the A/UX 3.1 sh.
1410 \`configure' configures this package to adapt to many kinds of systems.
1412 Usage: $0 [OPTION]... [VAR=VALUE]...
1414 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1415 VAR=VALUE. See below for descriptions of some of the useful variables.
1417 Defaults for the options are specified in brackets.
1420 -h, --help display this help and exit
1421 --help=short display options specific to this package
1422 --help=recursive display the short help of all the included packages
1423 -V, --version display version information and exit
1424 -q, --quiet, --silent do not print \`checking ...' messages
1425 --cache-file=FILE cache test results in FILE [disabled]
1426 -C, --config-cache alias for \`--cache-file=config.cache'
1427 -n, --no-create do not create output files
1428 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1430 Installation directories:
1431 --prefix=PREFIX install architecture-independent files in PREFIX
1432 [$ac_default_prefix]
1433 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1436 By default, \`make install' will install all the files in
1437 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1438 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1439 for instance \`--prefix=\$HOME'.
1441 For better control, use the options below.
1443 Fine tuning of the installation directories:
1444 --bindir=DIR user executables [EPREFIX/bin]
1445 --sbindir=DIR system admin executables [EPREFIX/sbin]
1446 --libexecdir=DIR program executables [EPREFIX/libexec]
1447 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1448 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1449 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1450 --libdir=DIR object code libraries [EPREFIX/lib]
1451 --includedir=DIR C header files [PREFIX/include]
1452 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1453 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1454 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1455 --infodir=DIR info documentation [DATAROOTDIR/info]
1456 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1457 --mandir=DIR man documentation [DATAROOTDIR/man]
1458 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1459 --htmldir=DIR html documentation [DOCDIR]
1460 --dvidir=DIR dvi documentation [DOCDIR]
1461 --pdfdir=DIR pdf documentation [DOCDIR]
1462 --psdir=DIR ps documentation [DOCDIR]
1468 --build=BUILD configure for building on BUILD [guessed]
1469 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1473 if test -n "$ac_init_help"; then
1478 --disable-option-checking ignore unrecognized --enable/--with options
1479 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1480 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1481 --enable-maintainer-mode enable makefile rules useful for maintainers
1482 --enable-symlink-install use symlinks when installing instead of hard links
1483 --enable-relative-symlinks use relative symlinks when installing
1485 --enable-symlink-build use symlinks while building instead of hard links
1486 --enable-verbose-makecmds enable verbose make command output
1487 --enable-compression enable EXPERIMENTAL compression support
1488 --enable-htree enable EXPERIMENTAL htree directory support
1489 --enable-elf-shlibs select ELF shared libraries
1490 --enable-bsd-shlibs select BSD shared libraries
1491 --enable-profile build profiling libraries
1492 --enable-checker build checker libraries
1493 --enable-jbd-debug enable journal debugging
1494 --enable-blkid-debug enable blkid debugging
1495 --disable-testio-debug disable the use of the test I/O manager for debugging
1496 --disable-libuuid do not build private uuid library
1497 --disable-libblkid do not build private blkid library
1498 --enable-libquota enable quota support
1499 --disable-debugfs disable support of debugfs program
1500 --disable-imager disable support of e2image program
1501 --disable-resizer disable support of e2resize program
1502 --disable-defrag disable support of e4defrag program
1503 --enable-fsck build fsck wrapper program
1504 --enable-e2initrd-helper build e2initrd-helper program
1505 --disable-tls disable use of thread local support
1506 --disable-uuidd disable building the uuid daemon
1507 --disable-nls do not use Native Language Support
1508 --disable-rpath do not hardcode runtime library paths
1511 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1512 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1513 --with-diet-libc use diet libc
1514 --with-cc no longer supported, use CC= instead
1515 --with-ccopts no longer supported, use CFLAGS= instead
1516 --with-ldopts no longer supported, use LDFLAGS= instead
1517 --with-root-prefix=PREFIX override prefix variable for files to be placed in the root
1518 --with-gnu-ld assume the C compiler uses GNU ld default=no
1519 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1520 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1521 --with-included-gettext use the GNU gettext library included here
1522 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1523 --without-libintl-prefix don't search for libintl in includedir and libdir
1524 --with-multiarch=ARCH specify the multiarch triplet
1526 Some influential environment variables:
1527 CC C compiler command
1528 CFLAGS C compiler flags
1529 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1530 nonstandard directory <lib dir>
1531 LIBS libraries to pass to the linker, e.g. -l<library>
1532 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1533 you have headers in a nonstandard directory <include dir>
1535 PKG_CONFIG path to pkg-config utility
1537 Use these variables to override the choices made by `configure' or to help
1538 it to find libraries and programs with nonstandard names/locations.
1540 Report bugs to the package provider.
1545 if test "$ac_init_help" = "recursive"; then
1546 # If there are subdirs, report their specific --help.
1547 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1548 test -d "$ac_dir" ||
1549 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1554 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1556 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1557 # A ".." for each directory in $ac_dir_suffix.
1558 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1559 case $ac_top_builddir_sub in
1560 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1561 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1564 ac_abs_top_builddir=$ac_pwd
1565 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1566 # for backward compatibility:
1567 ac_top_builddir=$ac_top_build_prefix
1570 .) # We are building in place.
1572 ac_top_srcdir=$ac_top_builddir_sub
1573 ac_abs_top_srcdir=$ac_pwd ;;
1574 [\\/]* | ?:[\\/]* ) # Absolute name.
1575 ac_srcdir=$srcdir$ac_dir_suffix;
1576 ac_top_srcdir=$srcdir
1577 ac_abs_top_srcdir=$srcdir ;;
1579 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1580 ac_top_srcdir=$ac_top_build_prefix$srcdir
1581 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1583 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1585 cd "$ac_dir" || { ac_status=$?; continue; }
1586 # Check for guested configure.
1587 if test -f "$ac_srcdir/configure.gnu"; then
1589 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1590 elif test -f "$ac_srcdir/configure"; then
1592 $SHELL "$ac_srcdir/configure" --help=recursive
1594 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1596 cd "$ac_pwd" || { ac_status=$?; break; }
1600 test -n "$ac_init_help" && exit $ac_status
1601 if $ac_init_version; then
1604 generated by GNU Autoconf 2.69
1606 Copyright (C) 2012 Free Software Foundation, Inc.
1607 This configure script is free software; the Free Software Foundation
1608 gives unlimited permission to copy, distribute and modify it.
1613 ## ------------------------ ##
1614 ## Autoconf initialization. ##
1615 ## ------------------------ ##
1617 # ac_fn_c_try_compile LINENO
1618 # --------------------------
1619 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1620 ac_fn_c_try_compile ()
1622 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1623 rm -f conftest.$ac_objext
1624 if { { ac_try="$ac_compile"
1626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1627 *) ac_try_echo=$ac_try;;
1629 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1630 $as_echo "$ac_try_echo"; } >&5
1631 (eval "$ac_compile") 2>conftest.err
1633 if test -s conftest.err; then
1634 grep -v '^ *+' conftest.err >conftest.er1
1635 cat conftest.er1 >&5
1636 mv -f conftest.er1 conftest.err
1638 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1639 test $ac_status = 0; } && {
1640 test -z "$ac_c_werror_flag" ||
1641 test ! -s conftest.err
1642 } && test -s conftest.$ac_objext; then :
1645 $as_echo "$as_me: failed program was:" >&5
1646 sed 's/^/| /' conftest.$ac_ext >&5
1650 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1651 as_fn_set_status $ac_retval
1653 } # ac_fn_c_try_compile
1655 # ac_fn_c_try_link LINENO
1656 # -----------------------
1657 # Try to link conftest.$ac_ext, and return whether this succeeded.
1660 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1661 rm -f conftest.$ac_objext conftest$ac_exeext
1662 if { { ac_try="$ac_link"
1664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1665 *) ac_try_echo=$ac_try;;
1667 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1668 $as_echo "$ac_try_echo"; } >&5
1669 (eval "$ac_link") 2>conftest.err
1671 if test -s conftest.err; then
1672 grep -v '^ *+' conftest.err >conftest.er1
1673 cat conftest.er1 >&5
1674 mv -f conftest.er1 conftest.err
1676 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1677 test $ac_status = 0; } && {
1678 test -z "$ac_c_werror_flag" ||
1679 test ! -s conftest.err
1680 } && test -s conftest$ac_exeext && {
1681 test "$cross_compiling" = yes ||
1682 test -x conftest$ac_exeext
1686 $as_echo "$as_me: failed program was:" >&5
1687 sed 's/^/| /' conftest.$ac_ext >&5
1691 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1692 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1693 # interfere with the next link command; also delete a directory that is
1694 # left behind by Apple's compiler. We do this before executing the actions.
1695 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1696 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1697 as_fn_set_status $ac_retval
1699 } # ac_fn_c_try_link
1701 # ac_fn_c_try_cpp LINENO
1702 # ----------------------
1703 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1706 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1707 if { { ac_try="$ac_cpp conftest.$ac_ext"
1709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1710 *) ac_try_echo=$ac_try;;
1712 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1713 $as_echo "$ac_try_echo"; } >&5
1714 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1716 if test -s conftest.err; then
1717 grep -v '^ *+' conftest.err >conftest.er1
1718 cat conftest.er1 >&5
1719 mv -f conftest.er1 conftest.err
1721 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1722 test $ac_status = 0; } > conftest.i && {
1723 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1724 test ! -s conftest.err
1728 $as_echo "$as_me: failed program was:" >&5
1729 sed 's/^/| /' conftest.$ac_ext >&5
1733 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1734 as_fn_set_status $ac_retval
1738 # ac_fn_c_try_run LINENO
1739 # ----------------------
1740 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1741 # that executables *can* be run.
1744 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1745 if { { ac_try="$ac_link"
1747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1748 *) ac_try_echo=$ac_try;;
1750 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1751 $as_echo "$ac_try_echo"; } >&5
1752 (eval "$ac_link") 2>&5
1754 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1755 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1756 { { case "(($ac_try" in
1757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1758 *) ac_try_echo=$ac_try;;
1760 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1761 $as_echo "$ac_try_echo"; } >&5
1762 (eval "$ac_try") 2>&5
1764 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1765 test $ac_status = 0; }; }; then :
1768 $as_echo "$as_me: program exited with status $ac_status" >&5
1769 $as_echo "$as_me: failed program was:" >&5
1770 sed 's/^/| /' conftest.$ac_ext >&5
1772 ac_retval=$ac_status
1774 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1775 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1776 as_fn_set_status $ac_retval
1780 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1781 # -------------------------------------------
1782 # Tests whether TYPE exists after having included INCLUDES, setting cache
1783 # variable VAR accordingly.
1784 ac_fn_c_check_type ()
1786 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1788 $as_echo_n "checking for $2... " >&6; }
1789 if eval \${$3+:} false; then :
1790 $as_echo_n "(cached) " >&6
1793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1794 /* end confdefs.h. */
1805 if ac_fn_c_try_compile "$LINENO"; then :
1806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1807 /* end confdefs.h. */
1818 if ac_fn_c_try_compile "$LINENO"; then :
1823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1829 $as_echo "$ac_res" >&6; }
1830 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1832 } # ac_fn_c_check_type
1834 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1835 # -------------------------------------------------------
1836 # Tests whether HEADER exists and can be compiled using the include files in
1837 # INCLUDES, setting the cache variable VAR accordingly.
1838 ac_fn_c_check_header_compile ()
1840 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1842 $as_echo_n "checking for $2... " >&6; }
1843 if eval \${$3+:} false; then :
1844 $as_echo_n "(cached) " >&6
1846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1847 /* end confdefs.h. */
1851 if ac_fn_c_try_compile "$LINENO"; then :
1856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1860 $as_echo "$ac_res" >&6; }
1861 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1863 } # ac_fn_c_check_header_compile
1865 # ac_fn_c_check_func LINENO FUNC VAR
1866 # ----------------------------------
1867 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1868 ac_fn_c_check_func ()
1870 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1872 $as_echo_n "checking for $2... " >&6; }
1873 if eval \${$3+:} false; then :
1874 $as_echo_n "(cached) " >&6
1876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1877 /* end confdefs.h. */
1878 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1879 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1880 #define $2 innocuous_$2
1882 /* System header to define __stub macros and hopefully few prototypes,
1883 which can conflict with char $2 (); below.
1884 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1885 <limits.h> exists even on freestanding compilers. */
1888 # include <limits.h>
1890 # include <assert.h>
1895 /* Override any GCC internal prototype to avoid an error.
1896 Use char because int might match the return type of a GCC
1897 builtin and then its argument prototype would still apply. */
1902 /* The GNU C library defines this for functions which it implements
1903 to always fail with ENOSYS. Some functions are actually named
1904 something starting with __ and the normal name is an alias. */
1905 #if defined __stub_$2 || defined __stub___$2
1917 if ac_fn_c_try_link "$LINENO"; then :
1922 rm -f core conftest.err conftest.$ac_objext \
1923 conftest$ac_exeext conftest.$ac_ext
1926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1927 $as_echo "$ac_res" >&6; }
1928 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1930 } # ac_fn_c_check_func
1932 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1933 # -------------------------------------------------------
1934 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1935 # the include files in INCLUDES and setting the cache variable VAR
1937 ac_fn_c_check_header_mongrel ()
1939 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1940 if eval \${$3+:} false; then :
1941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1942 $as_echo_n "checking for $2... " >&6; }
1943 if eval \${$3+:} false; then :
1944 $as_echo_n "(cached) " >&6
1947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1948 $as_echo "$ac_res" >&6; }
1950 # Is the header compilable?
1951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1952 $as_echo_n "checking $2 usability... " >&6; }
1953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1954 /* end confdefs.h. */
1958 if ac_fn_c_try_compile "$LINENO"; then :
1959 ac_header_compiler=yes
1961 ac_header_compiler=no
1963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1965 $as_echo "$ac_header_compiler" >&6; }
1967 # Is the header present?
1968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1969 $as_echo_n "checking $2 presence... " >&6; }
1970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1971 /* end confdefs.h. */
1974 if ac_fn_c_try_cpp "$LINENO"; then :
1975 ac_header_preproc=yes
1977 ac_header_preproc=no
1979 rm -f conftest.err conftest.i conftest.$ac_ext
1980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1981 $as_echo "$ac_header_preproc" >&6; }
1983 # So? What about this header?
1984 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1986 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1987 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1988 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1989 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1992 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1993 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1994 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1995 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1996 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1997 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1998 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1999 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2000 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2001 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2005 $as_echo_n "checking for $2... " >&6; }
2006 if eval \${$3+:} false; then :
2007 $as_echo_n "(cached) " >&6
2009 eval "$3=\$ac_header_compiler"
2012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2013 $as_echo "$ac_res" >&6; }
2015 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2017 } # ac_fn_c_check_header_mongrel
2019 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2020 # --------------------------------------------
2021 # Tries to find the compile-time value of EXPR in a program that includes
2022 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2024 ac_fn_c_compute_int ()
2026 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2027 if test "$cross_compiling" = yes; then
2028 # Depending upon the size, compute the lo and hi bounds.
2029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2030 /* end confdefs.h. */
2035 static int test_array [1 - 2 * !(($2) >= 0)];
2037 return test_array [0];
2043 if ac_fn_c_try_compile "$LINENO"; then :
2046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2047 /* end confdefs.h. */
2052 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2054 return test_array [0];
2060 if ac_fn_c_try_compile "$LINENO"; then :
2061 ac_hi=$ac_mid; break
2063 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2064 if test $ac_lo -le $ac_mid; then
2068 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2074 /* end confdefs.h. */
2079 static int test_array [1 - 2 * !(($2) < 0)];
2081 return test_array [0];
2087 if ac_fn_c_try_compile "$LINENO"; then :
2090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2091 /* end confdefs.h. */
2096 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2098 return test_array [0];
2104 if ac_fn_c_try_compile "$LINENO"; then :
2105 ac_lo=$ac_mid; break
2107 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2108 if test $ac_mid -le $ac_hi; then
2112 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2122 # Binary search between lo and hi bounds.
2123 while test "x$ac_lo" != "x$ac_hi"; do
2124 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2126 /* end confdefs.h. */
2131 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2133 return test_array [0];
2139 if ac_fn_c_try_compile "$LINENO"; then :
2142 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2147 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2152 /* end confdefs.h. */
2154 static long int longval () { return $2; }
2155 static unsigned long int ulongval () { return $2; }
2162 FILE *f = fopen ("conftest.val", "w");
2167 long int i = longval ();
2170 fprintf (f, "%ld", i);
2174 unsigned long int i = ulongval ();
2177 fprintf (f, "%lu", i);
2179 /* Do not output a trailing newline, as this causes \r\n confusion
2180 on some platforms. */
2181 return ferror (f) || fclose (f) != 0;
2187 if ac_fn_c_try_run "$LINENO"; then :
2188 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2192 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2193 conftest.$ac_objext conftest.beam conftest.$ac_ext
2197 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2198 as_fn_set_status $ac_retval
2200 } # ac_fn_c_compute_int
2202 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2203 # ----------------------------------------------------
2204 # Tries to find if the field MEMBER exists in type AGGR, after including
2205 # INCLUDES, setting cache variable VAR accordingly.
2206 ac_fn_c_check_member ()
2208 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2210 $as_echo_n "checking for $2.$3... " >&6; }
2211 if eval \${$4+:} false; then :
2212 $as_echo_n "(cached) " >&6
2214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2215 /* end confdefs.h. */
2227 if ac_fn_c_try_compile "$LINENO"; then :
2230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2231 /* end confdefs.h. */
2237 if (sizeof ac_aggr.$3)
2243 if ac_fn_c_try_compile "$LINENO"; then :
2248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2254 $as_echo "$ac_res" >&6; }
2255 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2257 } # ac_fn_c_check_member
2259 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2260 # ---------------------------------------------
2261 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2263 ac_fn_c_check_decl ()
2265 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2266 as_decl_name=`echo $2|sed 's/ *(.*//'`
2267 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2269 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2270 if eval \${$3+:} false; then :
2271 $as_echo_n "(cached) " >&6
2273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2274 /* end confdefs.h. */
2279 #ifndef $as_decl_name
2281 (void) $as_decl_use;
2283 (void) $as_decl_name;
2291 if ac_fn_c_try_compile "$LINENO"; then :
2296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2300 $as_echo "$ac_res" >&6; }
2301 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2303 } # ac_fn_c_check_decl
2304 cat >config.log <<_ACEOF
2305 This file contains any messages produced by compilers while
2306 running configure, to aid debugging if configure makes a mistake.
2308 It was created by $as_me, which was
2309 generated by GNU Autoconf 2.69. Invocation command line was
2321 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2322 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2323 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2324 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2325 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2327 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2328 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2330 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2331 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2332 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2333 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2334 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2335 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2336 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2344 test -z "$as_dir" && as_dir=.
2345 $as_echo "PATH: $as_dir"
2361 # Keep a trace of the command line.
2362 # Strip out --no-create and --no-recursion so they do not pile up.
2363 # Strip out --silent because we don't want to record it for future runs.
2364 # Also quote any args containing shell meta-characters.
2365 # Make two passes to allow for proper duplicate-argument suppression.
2369 ac_must_keep_next=false
2375 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2376 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2377 | -silent | --silent | --silen | --sile | --sil)
2380 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2383 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2385 as_fn_append ac_configure_args1 " '$ac_arg'"
2386 if test $ac_must_keep_next = true; then
2387 ac_must_keep_next=false # Got value, back to normal.
2390 *=* | --config-cache | -C | -disable-* | --disable-* \
2391 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2392 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2393 | -with-* | --with-* | -without-* | --without-* | --x)
2394 case "$ac_configure_args0 " in
2395 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2398 -* ) ac_must_keep_next=true ;;
2401 as_fn_append ac_configure_args " '$ac_arg'"
2406 { ac_configure_args0=; unset ac_configure_args0;}
2407 { ac_configure_args1=; unset ac_configure_args1;}
2409 # When interrupted or exit'd, cleanup temporary files, and complete
2410 # config.log. We remove comments because anyway the quotes in there
2411 # would cause problems or look ugly.
2412 # WARNING: Use '\'' to represent an apostrophe within the trap.
2413 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2414 trap 'exit_status=$?
2415 # Save into config.log some information that might help in debugging.
2419 $as_echo "## ---------------- ##
2420 ## Cache variables. ##
2421 ## ---------------- ##"
2423 # The following way of writing the cache mishandles newlines in values,
2425 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2426 eval ac_val=\$$ac_var
2430 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2431 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2434 _ | IFS | as_nl) ;; #(
2435 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2436 *) { eval $ac_var=; unset $ac_var;} ;;
2441 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2442 *${as_nl}ac_space=\ *)
2444 "s/'\''/'\''\\\\'\'''\''/g;
2445 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2448 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2455 $as_echo "## ----------------- ##
2456 ## Output variables. ##
2457 ## ----------------- ##"
2459 for ac_var in $ac_subst_vars
2461 eval ac_val=\$$ac_var
2463 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2465 $as_echo "$ac_var='\''$ac_val'\''"
2469 if test -n "$ac_subst_files"; then
2470 $as_echo "## ------------------- ##
2471 ## File substitutions. ##
2472 ## ------------------- ##"
2474 for ac_var in $ac_subst_files
2476 eval ac_val=\$$ac_var
2478 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2480 $as_echo "$ac_var='\''$ac_val'\''"
2485 if test -s confdefs.h; then
2486 $as_echo "## ----------- ##
2493 test "$ac_signal" != 0 &&
2494 $as_echo "$as_me: caught signal $ac_signal"
2495 $as_echo "$as_me: exit $exit_status"
2497 rm -f core *.core core.conftest.* &&
2498 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2501 for ac_signal in 1 2 13 15; do
2502 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2506 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2507 rm -f -r conftest* confdefs.h
2509 $as_echo "/* confdefs.h */" > confdefs.h
2511 # Predefined preprocessor variables.
2513 cat >>confdefs.h <<_ACEOF
2514 #define PACKAGE_NAME "$PACKAGE_NAME"
2517 cat >>confdefs.h <<_ACEOF
2518 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2521 cat >>confdefs.h <<_ACEOF
2522 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2525 cat >>confdefs.h <<_ACEOF
2526 #define PACKAGE_STRING "$PACKAGE_STRING"
2529 cat >>confdefs.h <<_ACEOF
2530 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2533 cat >>confdefs.h <<_ACEOF
2534 #define PACKAGE_URL "$PACKAGE_URL"
2538 # Let the site file select an alternate cache file if it wants to.
2539 # Prefer an explicitly selected file to automatically selected ones.
2542 if test -n "$CONFIG_SITE"; then
2543 # We do not want a PATH search for config.site.
2544 case $CONFIG_SITE in #((
2545 -*) ac_site_file1=./$CONFIG_SITE;;
2546 */*) ac_site_file1=$CONFIG_SITE;;
2547 *) ac_site_file1=./$CONFIG_SITE;;
2549 elif test "x$prefix" != xNONE; then
2550 ac_site_file1=$prefix/share/config.site
2551 ac_site_file2=$prefix/etc/config.site
2553 ac_site_file1=$ac_default_prefix/share/config.site
2554 ac_site_file2=$ac_default_prefix/etc/config.site
2556 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2558 test "x$ac_site_file" = xNONE && continue
2559 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2560 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2561 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2562 sed 's/^/| /' "$ac_site_file" >&5
2564 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2565 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2566 as_fn_error $? "failed to load site script $ac_site_file
2567 See \`config.log' for more details" "$LINENO" 5; }
2571 if test -r "$cache_file"; then
2572 # Some versions of bash will fail to source /dev/null (special files
2573 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2574 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2575 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2576 $as_echo "$as_me: loading cache $cache_file" >&6;}
2578 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2579 *) . "./$cache_file";;
2583 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2584 $as_echo "$as_me: creating cache $cache_file" >&6;}
2588 as_fn_append ac_header_list " stdlib.h"
2589 as_fn_append ac_header_list " unistd.h"
2590 as_fn_append ac_header_list " sys/param.h"
2591 # Check that the precious variables saved in the cache have kept the same
2593 ac_cache_corrupted=false
2594 for ac_var in $ac_precious_vars; do
2595 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2596 eval ac_new_set=\$ac_env_${ac_var}_set
2597 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2598 eval ac_new_val=\$ac_env_${ac_var}_value
2599 case $ac_old_set,$ac_new_set in
2601 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2602 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2603 ac_cache_corrupted=: ;;
2605 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2606 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2607 ac_cache_corrupted=: ;;
2610 if test "x$ac_old_val" != "x$ac_new_val"; then
2611 # differences in whitespace do not lead to failure.
2612 ac_old_val_w=`echo x $ac_old_val`
2613 ac_new_val_w=`echo x $ac_new_val`
2614 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2615 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2616 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2617 ac_cache_corrupted=:
2619 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2620 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2621 eval $ac_var=\$ac_old_val
2623 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2624 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2625 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2626 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2629 # Pass precious variables to config.status.
2630 if test "$ac_new_set" = set; then
2632 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2633 *) ac_arg=$ac_var=$ac_new_val ;;
2635 case " $ac_configure_args " in
2636 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2637 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2641 if $ac_cache_corrupted; then
2642 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2643 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2644 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2645 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2646 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2648 ## -------------------- ##
2649 ## Main body of script. ##
2650 ## -------------------- ##
2653 ac_cpp='$CPP $CPPFLAGS'
2654 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2655 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2656 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2661 for ac_dir in config "$srcdir"/config; do
2662 if test -f "$ac_dir/install-sh"; then
2664 ac_install_sh="$ac_aux_dir/install-sh -c"
2666 elif test -f "$ac_dir/install.sh"; then
2668 ac_install_sh="$ac_aux_dir/install.sh -c"
2670 elif test -f "$ac_dir/shtool"; then
2672 ac_install_sh="$ac_aux_dir/shtool install -c"
2676 if test -z "$ac_aux_dir"; then
2677 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2680 # These three variables are undocumented and unsupported,
2681 # and are intended to be withdrawn in a future Autoconf release.
2682 # They can cause serious problems if a builder's source tree is in a directory
2683 # whose full name contains unusual characters.
2684 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2685 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2686 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2689 ac_config_headers="$ac_config_headers lib/config.h"
2695 E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \
2696 | awk '{print $3}' | tr \" " " | awk '{print $1}'`
2697 DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
2699 E2FSPROGS_DAY=`echo $DATE | awk -F- '{print $1}'`
2700 MONTH=`echo $DATE | awk -F- '{print $2}'`
2701 YEAR=`echo $DATE | awk -F- '{print $3}'`
2703 if expr $YEAR ">" 1900 > /dev/null ; then
2704 E2FSPROGS_YEAR=$YEAR
2705 elif expr $YEAR ">" 90 >/dev/null ; then
2706 E2FSPROGS_YEAR=19$YEAR
2708 E2FSPROGS_YEAR=20$YEAR
2712 Jan) MONTH_NUM=01; E2FSPROGS_MONTH="January" ;;
2713 Feb) MONTH_NUM=02; E2FSPROGS_MONTH="February" ;;
2714 Mar) MONTH_NUM=03; E2FSPROGS_MONTH="March" ;;
2715 Apr) MONTH_NUM=04; E2FSPROGS_MONTH="April" ;;
2716 May) MONTH_NUM=05; E2FSPROGS_MONTH="May" ;;
2717 Jun) MONTH_NUM=06; E2FSPROGS_MONTH="June" ;;
2718 Jul) MONTH_NUM=07; E2FSPROGS_MONTH="July" ;;
2719 Aug) MONTH_NUM=08; E2FSPROGS_MONTH="August" ;;
2720 Sep) MONTH_NUM=09; E2FSPROGS_MONTH="September" ;;
2721 Oct) MONTH_NUM=10; E2FSPROGS_MONTH="October" ;;
2722 Nov) MONTH_NUM=11; E2FSPROGS_MONTH="November" ;;
2723 Dec) MONTH_NUM=12; E2FSPROGS_MONTH="December" ;;
2724 *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unknown month $MONTH??" >&5
2725 $as_echo "$as_me: WARNING: Unknown month $MONTH??" >&2;} ;;
2728 base_ver=`echo $E2FSPROGS_VERSION | \
2729 sed -e 's/-WIP//' -e 's/pre-//' -e 's/-PLUS//'`
2731 date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY}
2733 case $E2FSPROGS_VERSION in
2735 E2FSPROGS_PKGVER="$base_ver~WIP-$E2FSPROGS_YEAR-$MONTH_NUM-$E2FSPROGS_DAY"
2738 E2FSPROGS_PKGVER="$base_ver"
2742 unset DATE MONTH YEAR base_ver pre_vers date_spec
2743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&5
2744 $as_echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&6; }
2745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&5
2746 $as_echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&6; }
2752 # Make sure we can run config.sub.
2753 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2754 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2757 $as_echo_n "checking build system type... " >&6; }
2758 if ${ac_cv_build+:} false; then :
2759 $as_echo_n "(cached) " >&6
2761 ac_build_alias=$build_alias
2762 test "x$ac_build_alias" = x &&
2763 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2764 test "x$ac_build_alias" = x &&
2765 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2766 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2767 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2771 $as_echo "$ac_cv_build" >&6; }
2772 case $ac_cv_build in
2774 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2777 ac_save_IFS=$IFS; IFS='-'
2783 # Remember, the first character of IFS is used to create $*,
2784 # except with old shells:
2787 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2791 $as_echo_n "checking host system type... " >&6; }
2792 if ${ac_cv_host+:} false; then :
2793 $as_echo_n "(cached) " >&6
2795 if test "x$host_alias" = x; then
2796 ac_cv_host=$ac_cv_build
2798 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2799 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2804 $as_echo "$ac_cv_host" >&6; }
2807 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2810 ac_save_IFS=$IFS; IFS='-'
2816 # Remember, the first character of IFS is used to create $*,
2817 # except with old shells:
2820 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2825 ac_cpp='$CPP $CPPFLAGS'
2826 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2827 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2828 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2829 if test -n "$ac_tool_prefix"; then
2830 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2831 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2833 $as_echo_n "checking for $ac_word... " >&6; }
2834 if ${ac_cv_prog_CC+:} false; then :
2835 $as_echo_n "(cached) " >&6
2837 if test -n "$CC"; then
2838 ac_cv_prog_CC="$CC" # Let the user override the test.
2840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2844 test -z "$as_dir" && as_dir=.
2845 for ac_exec_ext in '' $ac_executable_extensions; do
2846 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2847 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2848 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2858 if test -n "$CC"; then
2859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2860 $as_echo "$CC" >&6; }
2862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2863 $as_echo "no" >&6; }
2868 if test -z "$ac_cv_prog_CC"; then
2870 # Extract the first word of "gcc", so it can be a program name with args.
2871 set dummy gcc; ac_word=$2
2872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2873 $as_echo_n "checking for $ac_word... " >&6; }
2874 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2875 $as_echo_n "(cached) " >&6
2877 if test -n "$ac_ct_CC"; then
2878 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2884 test -z "$as_dir" && as_dir=.
2885 for ac_exec_ext in '' $ac_executable_extensions; do
2886 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2887 ac_cv_prog_ac_ct_CC="gcc"
2888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2897 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2898 if test -n "$ac_ct_CC"; then
2899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2900 $as_echo "$ac_ct_CC" >&6; }
2902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2903 $as_echo "no" >&6; }
2906 if test "x$ac_ct_CC" = x; then
2909 case $cross_compiling:$ac_tool_warned in
2911 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2912 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2913 ac_tool_warned=yes ;;
2921 if test -z "$CC"; then
2922 if test -n "$ac_tool_prefix"; then
2923 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2924 set dummy ${ac_tool_prefix}cc; ac_word=$2
2925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2926 $as_echo_n "checking for $ac_word... " >&6; }
2927 if ${ac_cv_prog_CC+:} false; then :
2928 $as_echo_n "(cached) " >&6
2930 if test -n "$CC"; then
2931 ac_cv_prog_CC="$CC" # Let the user override the test.
2933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2937 test -z "$as_dir" && as_dir=.
2938 for ac_exec_ext in '' $ac_executable_extensions; do
2939 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2940 ac_cv_prog_CC="${ac_tool_prefix}cc"
2941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2951 if test -n "$CC"; then
2952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2953 $as_echo "$CC" >&6; }
2955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2956 $as_echo "no" >&6; }
2962 if test -z "$CC"; then
2963 # Extract the first word of "cc", so it can be a program name with args.
2964 set dummy cc; ac_word=$2
2965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2966 $as_echo_n "checking for $ac_word... " >&6; }
2967 if ${ac_cv_prog_CC+:} false; then :
2968 $as_echo_n "(cached) " >&6
2970 if test -n "$CC"; then
2971 ac_cv_prog_CC="$CC" # Let the user override the test.
2974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2978 test -z "$as_dir" && as_dir=.
2979 for ac_exec_ext in '' $ac_executable_extensions; do
2980 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2981 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2982 ac_prog_rejected=yes
2986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2993 if test $ac_prog_rejected = yes; then
2994 # We found a bogon in the path, so make sure we never use it.
2995 set dummy $ac_cv_prog_CC
2997 if test $# != 0; then
2998 # We chose a different compiler from the bogus one.
2999 # However, it has the same basename, so the bogon will be chosen
3000 # first if we set CC to just the basename; use the full file name.
3002 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3008 if test -n "$CC"; then
3009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3010 $as_echo "$CC" >&6; }
3012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3013 $as_echo "no" >&6; }
3018 if test -z "$CC"; then
3019 if test -n "$ac_tool_prefix"; then
3020 for ac_prog in cl.exe
3022 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3023 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3025 $as_echo_n "checking for $ac_word... " >&6; }
3026 if ${ac_cv_prog_CC+:} false; then :
3027 $as_echo_n "(cached) " >&6
3029 if test -n "$CC"; then
3030 ac_cv_prog_CC="$CC" # Let the user override the test.
3032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3036 test -z "$as_dir" && as_dir=.
3037 for ac_exec_ext in '' $ac_executable_extensions; do
3038 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3039 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3040 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3050 if test -n "$CC"; then
3051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3052 $as_echo "$CC" >&6; }
3054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3055 $as_echo "no" >&6; }
3059 test -n "$CC" && break
3062 if test -z "$CC"; then
3064 for ac_prog in cl.exe
3066 # Extract the first word of "$ac_prog", so it can be a program name with args.
3067 set dummy $ac_prog; ac_word=$2
3068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3069 $as_echo_n "checking for $ac_word... " >&6; }
3070 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3071 $as_echo_n "(cached) " >&6
3073 if test -n "$ac_ct_CC"; then
3074 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3080 test -z "$as_dir" && as_dir=.
3081 for ac_exec_ext in '' $ac_executable_extensions; do
3082 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3083 ac_cv_prog_ac_ct_CC="$ac_prog"
3084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3093 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3094 if test -n "$ac_ct_CC"; then
3095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3096 $as_echo "$ac_ct_CC" >&6; }
3098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3099 $as_echo "no" >&6; }
3103 test -n "$ac_ct_CC" && break
3106 if test "x$ac_ct_CC" = x; then
3109 case $cross_compiling:$ac_tool_warned in
3111 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3112 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3113 ac_tool_warned=yes ;;
3122 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3123 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3124 as_fn_error $? "no acceptable C compiler found in \$PATH
3125 See \`config.log' for more details" "$LINENO" 5; }
3127 # Provide some information about the compiler.
3128 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3131 for ac_option in --version -v -V -qversion; do
3132 { { ac_try="$ac_compiler $ac_option >&5"
3134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3135 *) ac_try_echo=$ac_try;;
3137 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3138 $as_echo "$ac_try_echo"; } >&5
3139 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3141 if test -s conftest.err; then
3143 ... rest of stderr output deleted ...
3144 10q' conftest.err >conftest.er1
3145 cat conftest.er1 >&5
3147 rm -f conftest.er1 conftest.err
3148 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3149 test $ac_status = 0; }
3152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3153 /* end confdefs.h. */
3163 ac_clean_files_save=$ac_clean_files
3164 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3165 # Try to create an executable without -o first, disregard a.out.
3166 # It will help us diagnose broken compilers, and finding out an intuition
3168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3169 $as_echo_n "checking whether the C compiler works... " >&6; }
3170 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3172 # The possible output files:
3173 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3176 for ac_file in $ac_files
3179 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3180 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3185 if { { ac_try="$ac_link_default"
3187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3188 *) ac_try_echo=$ac_try;;
3190 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3191 $as_echo "$ac_try_echo"; } >&5
3192 (eval "$ac_link_default") 2>&5
3194 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3195 test $ac_status = 0; }; then :
3196 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3197 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3198 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3199 # so that the user can short-circuit this test for compilers unknown to
3201 for ac_file in $ac_files ''
3203 test -f "$ac_file" || continue
3205 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3208 # We found the default executable, but exeext='' is most
3212 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3214 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3216 # We set ac_cv_exeext here because the later test for it is not
3217 # safe: cross compilers may not add the suffix if given an `-o'
3218 # argument, so we may need to know it at that point already.
3219 # Even if this section looks crufty: it has the advantage of
3226 test "$ac_cv_exeext" = no && ac_cv_exeext=
3231 if test -z "$ac_file"; then :
3232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3233 $as_echo "no" >&6; }
3234 $as_echo "$as_me: failed program was:" >&5
3235 sed 's/^/| /' conftest.$ac_ext >&5
3237 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3238 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3239 as_fn_error 77 "C compiler cannot create executables
3240 See \`config.log' for more details" "$LINENO" 5; }
3242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3243 $as_echo "yes" >&6; }
3245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3246 $as_echo_n "checking for C compiler default output file name... " >&6; }
3247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3248 $as_echo "$ac_file" >&6; }
3249 ac_exeext=$ac_cv_exeext
3251 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3252 ac_clean_files=$ac_clean_files_save
3253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3254 $as_echo_n "checking for suffix of executables... " >&6; }
3255 if { { ac_try="$ac_link"
3257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3258 *) ac_try_echo=$ac_try;;
3260 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3261 $as_echo "$ac_try_echo"; } >&5
3262 (eval "$ac_link") 2>&5
3264 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3265 test $ac_status = 0; }; then :
3266 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3267 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3268 # work properly (i.e., refer to `conftest.exe'), while it won't with
3270 for ac_file in conftest.exe conftest conftest.*; do
3271 test -f "$ac_file" || continue
3273 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3274 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3280 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3281 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3282 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3283 See \`config.log' for more details" "$LINENO" 5; }
3285 rm -f conftest conftest$ac_cv_exeext
3286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3287 $as_echo "$ac_cv_exeext" >&6; }
3289 rm -f conftest.$ac_ext
3290 EXEEXT=$ac_cv_exeext
3292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3293 /* end confdefs.h. */
3298 FILE *f = fopen ("conftest.out", "w");
3299 return ferror (f) || fclose (f) != 0;
3305 ac_clean_files="$ac_clean_files conftest.out"
3306 # Check that the compiler produces executables we can run. If not, either
3307 # the compiler is broken, or we cross compile.
3308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3309 $as_echo_n "checking whether we are cross compiling... " >&6; }
3310 if test "$cross_compiling" != yes; then
3311 { { ac_try="$ac_link"
3313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3314 *) ac_try_echo=$ac_try;;
3316 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3317 $as_echo "$ac_try_echo"; } >&5
3318 (eval "$ac_link") 2>&5
3320 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3321 test $ac_status = 0; }
3322 if { ac_try='./conftest$ac_cv_exeext'
3323 { { case "(($ac_try" in
3324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3325 *) ac_try_echo=$ac_try;;
3327 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3328 $as_echo "$ac_try_echo"; } >&5
3329 (eval "$ac_try") 2>&5
3331 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3332 test $ac_status = 0; }; }; then
3335 if test "$cross_compiling" = maybe; then
3338 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3339 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3340 as_fn_error $? "cannot run C compiled programs.
3341 If you meant to cross compile, use \`--host'.
3342 See \`config.log' for more details" "$LINENO" 5; }
3346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3347 $as_echo "$cross_compiling" >&6; }
3349 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3350 ac_clean_files=$ac_clean_files_save
3351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3352 $as_echo_n "checking for suffix of object files... " >&6; }
3353 if ${ac_cv_objext+:} false; then :
3354 $as_echo_n "(cached) " >&6
3356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3357 /* end confdefs.h. */
3367 rm -f conftest.o conftest.obj
3368 if { { ac_try="$ac_compile"
3370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3371 *) ac_try_echo=$ac_try;;
3373 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3374 $as_echo "$ac_try_echo"; } >&5
3375 (eval "$ac_compile") 2>&5
3377 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3378 test $ac_status = 0; }; then :
3379 for ac_file in conftest.o conftest.obj conftest.*; do
3380 test -f "$ac_file" || continue;
3382 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3383 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3388 $as_echo "$as_me: failed program was:" >&5
3389 sed 's/^/| /' conftest.$ac_ext >&5
3391 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3392 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3393 as_fn_error $? "cannot compute suffix of object files: cannot compile
3394 See \`config.log' for more details" "$LINENO" 5; }
3396 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3399 $as_echo "$ac_cv_objext" >&6; }
3400 OBJEXT=$ac_cv_objext
3402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3403 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3404 if ${ac_cv_c_compiler_gnu+:} false; then :
3405 $as_echo_n "(cached) " >&6
3407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3408 /* end confdefs.h. */
3421 if ac_fn_c_try_compile "$LINENO"; then :
3426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3427 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3431 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3432 if test $ac_compiler_gnu = yes; then
3437 ac_test_CFLAGS=${CFLAGS+set}
3438 ac_save_CFLAGS=$CFLAGS
3439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3440 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3441 if ${ac_cv_prog_cc_g+:} false; then :
3442 $as_echo_n "(cached) " >&6
3444 ac_save_c_werror_flag=$ac_c_werror_flag
3445 ac_c_werror_flag=yes
3448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3449 /* end confdefs.h. */
3459 if ac_fn_c_try_compile "$LINENO"; then :
3463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3464 /* end confdefs.h. */
3474 if ac_fn_c_try_compile "$LINENO"; then :
3477 ac_c_werror_flag=$ac_save_c_werror_flag
3479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3480 /* end confdefs.h. */
3490 if ac_fn_c_try_compile "$LINENO"; then :
3493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3498 ac_c_werror_flag=$ac_save_c_werror_flag
3500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3501 $as_echo "$ac_cv_prog_cc_g" >&6; }
3502 if test "$ac_test_CFLAGS" = set; then
3503 CFLAGS=$ac_save_CFLAGS
3504 elif test $ac_cv_prog_cc_g = yes; then
3505 if test "$GCC" = yes; then
3511 if test "$GCC" = yes; then
3517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3518 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3519 if ${ac_cv_prog_cc_c89+:} false; then :
3520 $as_echo_n "(cached) " >&6
3522 ac_cv_prog_cc_c89=no
3524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3525 /* end confdefs.h. */
3529 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3530 struct buf { int x; };
3531 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3532 static char *e (p, i)
3538 static char *f (char * (*g) (char **, int), char **p, ...)
3543 s = g (p, va_arg (v,int));
3548 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3549 function prototypes and stuff, but not '\xHH' hex character constants.
3550 These don't provoke an error unfortunately, instead are silently treated
3551 as 'x'. The following induces an error, until -std is added to get
3552 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3553 array size at least. It's necessary to write '\x00'==0 to get something
3554 that's true only with -std. */
3555 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3557 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3558 inside strings and character constants. */
3560 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3562 int test (int i, double x);
3563 struct s1 {int (*f) (int a);};
3564 struct s2 {int (*f) (double a);};
3565 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3571 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3576 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3577 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3579 CC="$ac_save_CC $ac_arg"
3580 if ac_fn_c_try_compile "$LINENO"; then :
3581 ac_cv_prog_cc_c89=$ac_arg
3583 rm -f core conftest.err conftest.$ac_objext
3584 test "x$ac_cv_prog_cc_c89" != "xno" && break
3586 rm -f conftest.$ac_ext
3591 case "x$ac_cv_prog_cc_c89" in
3593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3594 $as_echo "none needed" >&6; } ;;
3596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3597 $as_echo "unsupported" >&6; } ;;
3599 CC="$CC $ac_cv_prog_cc_c89"
3600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3601 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3603 if test "x$ac_cv_prog_cc_c89" != xno; then :
3608 ac_cpp='$CPP $CPPFLAGS'
3609 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3610 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3611 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
3615 $as_echo_n "checking for dlopen in -ldl... " >&6; }
3616 if ${ac_cv_lib_dl_dlopen+:} false; then :
3617 $as_echo_n "(cached) " >&6
3619 ac_check_lib_save_LIBS=$LIBS
3621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3622 /* end confdefs.h. */
3624 /* Override any GCC internal prototype to avoid an error.
3625 Use char because int might match the return type of a GCC
3626 builtin and then its argument prototype would still apply. */
3639 if ac_fn_c_try_link "$LINENO"; then :
3640 ac_cv_lib_dl_dlopen=yes
3642 ac_cv_lib_dl_dlopen=no
3644 rm -f core conftest.err conftest.$ac_objext \
3645 conftest$ac_exeext conftest.$ac_ext
3646 LIBS=$ac_check_lib_save_LIBS
3648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
3649 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
3650 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
3653 $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
3660 # Check whether --with-diet-libc was given.
3661 if test "${with_diet_libc+set}" = set; then :
3662 withval=$with_diet_libc; CC="diet cc -nostdinc"
3664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: CC=$CC" >&5
3665 $as_echo "CC=$CC" >&6; }
3668 # Check whether --with-cc was given.
3669 if test "${with_cc+set}" = set; then :
3670 withval=$with_cc; as_fn_error $? "--with-cc no longer supported; use CC= instead" "$LINENO" 5
3674 # Check whether --with-ccopts was given.
3675 if test "${with_ccopts+set}" = set; then :
3676 withval=$with_ccopts; as_fn_error $? "--with-ccopts no longer supported; use CFLAGS= instead" "$LINENO" 5
3680 # Check whether --with-ldopts was given.
3681 if test "${with_ldopts+set}" = set; then :
3682 withval=$with_ldopts; as_fn_error $? "--with-ldopts no longer supported; use LDFLAGS= instead" "$LINENO" 5
3686 ac_cpp='$CPP $CPPFLAGS'
3687 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3688 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3689 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3690 if test -n "$ac_tool_prefix"; then
3691 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3692 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3694 $as_echo_n "checking for $ac_word... " >&6; }
3695 if ${ac_cv_prog_CC+:} false; then :
3696 $as_echo_n "(cached) " >&6
3698 if test -n "$CC"; then
3699 ac_cv_prog_CC="$CC" # Let the user override the test.
3701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3705 test -z "$as_dir" && as_dir=.
3706 for ac_exec_ext in '' $ac_executable_extensions; do
3707 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3708 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3719 if test -n "$CC"; then
3720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3721 $as_echo "$CC" >&6; }
3723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3724 $as_echo "no" >&6; }
3729 if test -z "$ac_cv_prog_CC"; then
3731 # Extract the first word of "gcc", so it can be a program name with args.
3732 set dummy gcc; ac_word=$2
3733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3734 $as_echo_n "checking for $ac_word... " >&6; }
3735 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3736 $as_echo_n "(cached) " >&6
3738 if test -n "$ac_ct_CC"; then
3739 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3745 test -z "$as_dir" && as_dir=.
3746 for ac_exec_ext in '' $ac_executable_extensions; do
3747 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3748 ac_cv_prog_ac_ct_CC="gcc"
3749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3758 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3759 if test -n "$ac_ct_CC"; then
3760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3761 $as_echo "$ac_ct_CC" >&6; }
3763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3764 $as_echo "no" >&6; }
3767 if test "x$ac_ct_CC" = x; then
3770 case $cross_compiling:$ac_tool_warned in
3772 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3773 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3774 ac_tool_warned=yes ;;
3782 if test -z "$CC"; then
3783 if test -n "$ac_tool_prefix"; then
3784 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3785 set dummy ${ac_tool_prefix}cc; ac_word=$2
3786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3787 $as_echo_n "checking for $ac_word... " >&6; }
3788 if ${ac_cv_prog_CC+:} false; then :
3789 $as_echo_n "(cached) " >&6
3791 if test -n "$CC"; then
3792 ac_cv_prog_CC="$CC" # Let the user override the test.
3794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3798 test -z "$as_dir" && as_dir=.
3799 for ac_exec_ext in '' $ac_executable_extensions; do
3800 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3801 ac_cv_prog_CC="${ac_tool_prefix}cc"
3802 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3812 if test -n "$CC"; then
3813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3814 $as_echo "$CC" >&6; }
3816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3817 $as_echo "no" >&6; }
3823 if test -z "$CC"; then
3824 # Extract the first word of "cc", so it can be a program name with args.
3825 set dummy cc; ac_word=$2
3826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3827 $as_echo_n "checking for $ac_word... " >&6; }
3828 if ${ac_cv_prog_CC+:} false; then :
3829 $as_echo_n "(cached) " >&6
3831 if test -n "$CC"; then
3832 ac_cv_prog_CC="$CC" # Let the user override the test.
3835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3839 test -z "$as_dir" && as_dir=.
3840 for ac_exec_ext in '' $ac_executable_extensions; do
3841 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3842 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3843 ac_prog_rejected=yes
3847 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3854 if test $ac_prog_rejected = yes; then
3855 # We found a bogon in the path, so make sure we never use it.
3856 set dummy $ac_cv_prog_CC
3858 if test $# != 0; then
3859 # We chose a different compiler from the bogus one.
3860 # However, it has the same basename, so the bogon will be chosen
3861 # first if we set CC to just the basename; use the full file name.
3863 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3869 if test -n "$CC"; then
3870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3871 $as_echo "$CC" >&6; }
3873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3874 $as_echo "no" >&6; }
3879 if test -z "$CC"; then
3880 if test -n "$ac_tool_prefix"; then
3881 for ac_prog in cl.exe
3883 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3884 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3886 $as_echo_n "checking for $ac_word... " >&6; }
3887 if ${ac_cv_prog_CC+:} false; then :
3888 $as_echo_n "(cached) " >&6
3890 if test -n "$CC"; then
3891 ac_cv_prog_CC="$CC" # Let the user override the test.
3893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3897 test -z "$as_dir" && as_dir=.
3898 for ac_exec_ext in '' $ac_executable_extensions; do
3899 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3900 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3911 if test -n "$CC"; then
3912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3913 $as_echo "$CC" >&6; }
3915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3916 $as_echo "no" >&6; }
3920 test -n "$CC" && break
3923 if test -z "$CC"; then
3925 for ac_prog in cl.exe
3927 # Extract the first word of "$ac_prog", so it can be a program name with args.
3928 set dummy $ac_prog; ac_word=$2
3929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3930 $as_echo_n "checking for $ac_word... " >&6; }
3931 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3932 $as_echo_n "(cached) " >&6
3934 if test -n "$ac_ct_CC"; then
3935 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3941 test -z "$as_dir" && as_dir=.
3942 for ac_exec_ext in '' $ac_executable_extensions; do
3943 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3944 ac_cv_prog_ac_ct_CC="$ac_prog"
3945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3954 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3955 if test -n "$ac_ct_CC"; then
3956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3957 $as_echo "$ac_ct_CC" >&6; }
3959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3960 $as_echo "no" >&6; }
3964 test -n "$ac_ct_CC" && break
3967 if test "x$ac_ct_CC" = x; then
3970 case $cross_compiling:$ac_tool_warned in
3972 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3973 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3974 ac_tool_warned=yes ;;
3983 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3984 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3985 as_fn_error $? "no acceptable C compiler found in \$PATH
3986 See \`config.log' for more details" "$LINENO" 5; }
3988 # Provide some information about the compiler.
3989 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3992 for ac_option in --version -v -V -qversion; do
3993 { { ac_try="$ac_compiler $ac_option >&5"
3995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3996 *) ac_try_echo=$ac_try;;
3998 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3999 $as_echo "$ac_try_echo"; } >&5
4000 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4002 if test -s conftest.err; then
4004 ... rest of stderr output deleted ...
4005 10q' conftest.err >conftest.er1
4006 cat conftest.er1 >&5
4008 rm -f conftest.er1 conftest.err
4009 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4010 test $ac_status = 0; }
4013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4014 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4015 if ${ac_cv_c_compiler_gnu+:} false; then :
4016 $as_echo_n "(cached) " >&6
4018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4019 /* end confdefs.h. */
4032 if ac_fn_c_try_compile "$LINENO"; then :
4037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4038 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4042 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4043 if test $ac_compiler_gnu = yes; then
4048 ac_test_CFLAGS=${CFLAGS+set}
4049 ac_save_CFLAGS=$CFLAGS
4050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4051 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4052 if ${ac_cv_prog_cc_g+:} false; then :
4053 $as_echo_n "(cached) " >&6
4055 ac_save_c_werror_flag=$ac_c_werror_flag
4056 ac_c_werror_flag=yes
4059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4060 /* end confdefs.h. */
4070 if ac_fn_c_try_compile "$LINENO"; then :
4074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4075 /* end confdefs.h. */
4085 if ac_fn_c_try_compile "$LINENO"; then :
4088 ac_c_werror_flag=$ac_save_c_werror_flag
4090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4091 /* end confdefs.h. */
4101 if ac_fn_c_try_compile "$LINENO"; then :
4104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4109 ac_c_werror_flag=$ac_save_c_werror_flag
4111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4112 $as_echo "$ac_cv_prog_cc_g" >&6; }
4113 if test "$ac_test_CFLAGS" = set; then
4114 CFLAGS=$ac_save_CFLAGS
4115 elif test $ac_cv_prog_cc_g = yes; then
4116 if test "$GCC" = yes; then
4122 if test "$GCC" = yes; then
4128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4129 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4130 if ${ac_cv_prog_cc_c89+:} false; then :
4131 $as_echo_n "(cached) " >&6
4133 ac_cv_prog_cc_c89=no
4135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4136 /* end confdefs.h. */
4140 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4141 struct buf { int x; };
4142 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4143 static char *e (p, i)
4149 static char *f (char * (*g) (char **, int), char **p, ...)
4154 s = g (p, va_arg (v,int));
4159 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4160 function prototypes and stuff, but not '\xHH' hex character constants.
4161 These don't provoke an error unfortunately, instead are silently treated
4162 as 'x'. The following induces an error, until -std is added to get
4163 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4164 array size at least. It's necessary to write '\x00'==0 to get something
4165 that's true only with -std. */
4166 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4168 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4169 inside strings and character constants. */
4171 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4173 int test (int i, double x);
4174 struct s1 {int (*f) (int a);};
4175 struct s2 {int (*f) (double a);};
4176 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4182 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4187 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4188 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4190 CC="$ac_save_CC $ac_arg"
4191 if ac_fn_c_try_compile "$LINENO"; then :
4192 ac_cv_prog_cc_c89=$ac_arg
4194 rm -f core conftest.err conftest.$ac_objext
4195 test "x$ac_cv_prog_cc_c89" != "xno" && break
4197 rm -f conftest.$ac_ext
4202 case "x$ac_cv_prog_cc_c89" in
4204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4205 $as_echo "none needed" >&6; } ;;
4207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4208 $as_echo "unsupported" >&6; } ;;
4210 CC="$CC $ac_cv_prog_cc_c89"
4211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4212 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4214 if test "x$ac_cv_prog_cc_c89" != xno; then :
4219 ac_cpp='$CPP $CPPFLAGS'
4220 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4221 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4222 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4224 if test "$GCC" = yes; then
4225 RDYNAMIC="-rdynamic"
4229 ac_cpp='$CPP $CPPFLAGS'
4230 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4231 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4232 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4234 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4235 # On Suns, sometimes $CPP names a directory.
4236 if test -n "$CPP" && test -d "$CPP"; then
4239 if test -z "$CPP"; then
4240 if ${ac_cv_prog_CPP+:} false; then :
4241 $as_echo_n "(cached) " >&6
4243 # Double quotes because CPP needs to be expanded
4244 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4247 for ac_c_preproc_warn_flag in '' yes
4249 # Use a header file that comes with gcc, so configuring glibc
4250 # with a fresh cross-compiler works.
4251 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4252 # <limits.h> exists even on freestanding compilers.
4253 # On the NeXT, cc -E runs the code through the compiler's parser,
4254 # not just through cpp. "Syntax error" is here to catch this case.
4255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4256 /* end confdefs.h. */
4258 # include <limits.h>
4260 # include <assert.h>
4264 if ac_fn_c_try_cpp "$LINENO"; then :
4267 # Broken: fails on valid input.
4270 rm -f conftest.err conftest.i conftest.$ac_ext
4272 # OK, works on sane cases. Now check whether nonexistent headers
4273 # can be detected and how.
4274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4275 /* end confdefs.h. */
4276 #include <ac_nonexistent.h>
4278 if ac_fn_c_try_cpp "$LINENO"; then :
4279 # Broken: success on invalid input.
4282 # Passes both tests.
4286 rm -f conftest.err conftest.i conftest.$ac_ext
4289 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4290 rm -f conftest.i conftest.err conftest.$ac_ext
4291 if $ac_preproc_ok; then :
4303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4304 $as_echo "$CPP" >&6; }
4306 for ac_c_preproc_warn_flag in '' yes
4308 # Use a header file that comes with gcc, so configuring glibc
4309 # with a fresh cross-compiler works.
4310 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4311 # <limits.h> exists even on freestanding compilers.
4312 # On the NeXT, cc -E runs the code through the compiler's parser,
4313 # not just through cpp. "Syntax error" is here to catch this case.
4314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4315 /* end confdefs.h. */
4317 # include <limits.h>
4319 # include <assert.h>
4323 if ac_fn_c_try_cpp "$LINENO"; then :
4326 # Broken: fails on valid input.
4329 rm -f conftest.err conftest.i conftest.$ac_ext
4331 # OK, works on sane cases. Now check whether nonexistent headers
4332 # can be detected and how.
4333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4334 /* end confdefs.h. */
4335 #include <ac_nonexistent.h>
4337 if ac_fn_c_try_cpp "$LINENO"; then :
4338 # Broken: success on invalid input.
4341 # Passes both tests.
4345 rm -f conftest.err conftest.i conftest.$ac_ext
4348 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4349 rm -f conftest.i conftest.err conftest.$ac_ext
4350 if $ac_preproc_ok; then :
4353 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4354 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4355 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4356 See \`config.log' for more details" "$LINENO" 5; }
4360 ac_cpp='$CPP $CPPFLAGS'
4361 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4362 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4363 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for additional special compiler flags" >&5
4366 $as_echo_n "checking for additional special compiler flags... " >&6; }
4367 if test "$GCC" = yes
4370 alpha) addcflags="-mieee" ;;
4373 if test "x$addcflags" != x
4375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $addcflags" >&5
4376 $as_echo "$addcflags" >&6; }
4377 CFLAGS="$addcflags $CFLAGS"
4379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (none)" >&5
4380 $as_echo "(none)" >&6; }
4386 # Check whether --with-root-prefix was given.
4387 if test "${with_root_prefix+set}" = set; then :
4388 withval=$with_root_prefix; root_prefix=$withval
4392 # Check whether --enable-maintainer-mode was given.
4393 if test "${enable_maintainer_mode+set}" = set; then :
4394 enableval=$enable_maintainer_mode; if test "$enableval" = "no"
4397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode" >&5
4398 $as_echo "Disabling maintainer mode" >&6; }
4401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling maintainer mode" >&5
4402 $as_echo "Enabling maintainer mode" >&6; }
4407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode by default" >&5
4408 $as_echo "Disabling maintainer mode by default" >&6; }
4413 # Check whether --enable-symlink-install was given.
4414 if test "${enable_symlink_install+set}" = set; then :
4415 enableval=$enable_symlink_install; if test "$enableval" = "no"
4417 LINK_INSTALL_FLAGS=-f
4418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install" >&5
4419 $as_echo "Disabling symlinks for install" >&6; }
4421 LINK_INSTALL_FLAGS=-sf
4422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for install" >&5
4423 $as_echo "Enabling symlinks for install" >&6; }
4427 LINK_INSTALL_FLAGS=-f
4428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install by default" >&5
4429 $as_echo "Disabling symlinks for install by default" >&6; }
4434 relative_symlink_defined=
4435 # Check whether --enable-relative-symlinks was given.
4436 if test "${enable_relative_symlinks+set}" = set; then :
4437 enableval=$enable_relative_symlinks; if test "$enableval" = "no"
4440 relative_symlink_defined=yes
4441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
4442 $as_echo "Disabling relative symlinks for install" >&6; }
4444 SYMLINK_RELATIVE=--relative
4445 relative_symlink_defined=yes
4446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5
4447 $as_echo "Enabling relative symlinks for install" >&6; }
4451 # Check whether --enable-symlink-relative-symlinks was given.
4452 if test "${enable_symlink_relative_symlinks+set}" = set; then :
4453 enableval=$enable_symlink_relative_symlinks; if test "$enableval" = "no"
4455 SYMLINK_RELATIVE=yes
4456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
4457 $as_echo "Disabling relative symlinks for install" >&6; }
4459 SYMLINK_RELATIVE=--relative
4460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5
4461 $as_echo "Enabling relative symlinks for install" >&6; }
4465 if test -z "$relative_symlink_defined"
4468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install by default" >&5
4469 $as_echo "Disabling relative symlinks for install by default" >&6; }
4475 # Check whether --enable-symlink-build was given.
4476 if test "${enable_symlink_build+set}" = set; then :
4477 enableval=$enable_symlink_build; if test "$enableval" = "no"
4480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build" >&5
4481 $as_echo "Disabling symlinks for build" >&6; }
4484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for build" >&5
4485 $as_echo "Enabling symlinks for build" >&6; }
4490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build by default" >&5
4491 $as_echo "Disabling symlinks for build by default" >&6; }
4496 # Check whether --enable-verbose-makecmds was given.
4497 if test "${enable_verbose_makecmds+set}" = set; then :
4498 enableval=$enable_verbose_makecmds; if test "$enableval" = "no"
4500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
4501 $as_echo "Disabling verbose make commands" >&6; }
4506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling verbose make commands" >&5
4507 $as_echo "Enabling verbose make commands" >&6; }
4514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
4515 $as_echo "Disabling verbose make commands" >&6; }
4525 # Check whether --enable-compression was given.
4526 if test "${enable_compression+set}" = set; then :
4527 enableval=$enable_compression; if test "$enableval" = "no"
4529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling compression support" >&5
4530 $as_echo "Disabling compression support" >&6; }
4533 $as_echo "#define ENABLE_COMPRESSION 1" >>confdefs.h
4535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling compression support" >&5
4536 $as_echo "Enabling compression support" >&6; }
4537 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Compression support is experimental" >&5
4538 $as_echo "$as_me: WARNING: Compression support is experimental" >&2;}
4542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling compression support by default" >&5
4543 $as_echo "Disabling compression support by default" >&6; }
4548 # Check whether --enable-htree was given.
4549 if test "${enable_htree+set}" = set; then :
4550 enableval=$enable_htree; if test "$enableval" = "no"
4553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling htree directory support" >&5
4554 $as_echo "Disabling htree directory support" >&6; }
4557 $as_echo "#define ENABLE_HTREE 1" >>confdefs.h
4559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling htree directory support" >&5
4560 $as_echo "Enabling htree directory support" >&6; }
4565 $as_echo "#define ENABLE_HTREE 1" >>confdefs.h
4567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling htree directory support by default" >&5
4568 $as_echo "Enabling htree directory support by default" >&6; }
4573 E2_PKG_CONFIG_STATIC=--static
4576 # Check whether --enable-elf-shlibs was given.
4577 if test "${enable_elf_shlibs+set}" = set; then :
4578 enableval=$enable_elf_shlibs; if test "$enableval" = "no"
4581 MAKEFILE_ELF=/dev/null
4582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries" >&5
4583 $as_echo "Disabling ELF shared libraries" >&6; }
4585 E2_PKG_CONFIG_STATIC=
4587 MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
4590 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
4596 LDFLAG_DYNAMIC='-Wl,-rpath-link,$(top_builddir)/lib'
4597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling ELF shared libraries" >&5
4598 $as_echo "Enabling ELF shared libraries" >&6; }
4602 MAKEFILE_ELF=/dev/null
4604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries by default" >&5
4605 $as_echo "Disabling ELF shared libraries by default" >&6; }
4611 # Check whether --enable-bsd-shlibs was given.
4612 if test "${enable_bsd_shlibs+set}" = set; then :
4613 enableval=$enable_bsd_shlibs; if test "$enableval" = "no"
4616 MAKEFILE_BSDLIB=/dev/null
4617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries" >&5
4618 $as_echo "Disabling BSD shared libraries" >&6; }
4620 E2_PKG_CONFIG_STATIC=
4622 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
4626 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib
4630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling BSD shared libraries" >&5
4631 $as_echo "Enabling BSD shared libraries" >&6; }
4635 MAKEFILE_BSDLIB=/dev/null
4637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries by default" >&5
4638 $as_echo "Disabling BSD shared libraries by default" >&6; }
4644 # Check whether --enable-profile was given.
4645 if test "${enable_profile+set}" = set; then :
4646 enableval=$enable_profile; if test "$enableval" = "no"
4649 MAKEFILE_PROFILE=/dev/null
4650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries" >&5
4651 $as_echo "Disabling profiling libraries" >&6; }
4654 MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
4655 PROFILED_LIB_EXT=_p.a
4656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building profiling libraries" >&5
4657 $as_echo "Building profiling libraries" >&6; }
4662 MAKEFILE_PROFILE=/dev/null
4663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries by default" >&5
4664 $as_echo "Disabling profiling libraries by default" >&6; }
4670 # Check whether --enable-checker was given.
4671 if test "${enable_checker+set}" = set; then :
4672 enableval=$enable_checker; if test "$enableval" = "no"
4675 MAKEFILE_CHECKER=/dev/null
4676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling checker libraries" >&5
4677 $as_echo "Disabling checker libraries" >&6; }
4680 MAKEFILE_CHECKER=$srcdir/lib/Makefile.checker
4681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building checker libraries" >&5
4682 $as_echo "Building checker libraries" >&6; }
4687 MAKEFILE_CHECKER=/dev/null
4688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling checker libraries by default" >&5
4689 $as_echo "Disabling checker libraries by default" >&6; }
4700 # Check whether --enable-jbd-debug was given.
4701 if test "${enable_jbd_debug+set}" = set; then :
4702 enableval=$enable_jbd_debug; if test "$enableval" = "no"
4704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging" >&5
4705 $as_echo "Disabling journal debugging" >&6; }
4708 $as_echo "#define CONFIG_JBD_DEBUG 1" >>confdefs.h
4710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling journal debugging" >&5
4711 $as_echo "Enabling journal debugging" >&6; }
4715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging by default" >&5
4716 $as_echo "Disabling journal debugging by default" >&6; }
4720 # Check whether --enable-blkid-debug was given.
4721 if test "${enable_blkid_debug+set}" = set; then :
4722 enableval=$enable_blkid_debug; if test "$enableval" = "no"
4724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging" >&5
4725 $as_echo "Disabling blkid debugging" >&6; }
4728 $as_echo "#define CONFIG_BLKID_DEBUG 1" >>confdefs.h
4730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling blkid debugging" >&5
4731 $as_echo "Enabling blkid debugging" >&6; }
4735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging by default" >&5
4736 $as_echo "Disabling blkid debugging by default" >&6; }
4740 # Check whether --enable-testio-debug was given.
4741 if test "${enable_testio_debug+set}" = set; then :
4742 enableval=$enable_testio_debug;
4743 if test "$enableval" = "no"
4745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling testio debugging" >&5
4746 $as_echo "Disabling testio debugging" >&6; }
4750 $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
4752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging" >&5
4753 $as_echo "Enabling testio debugging" >&6; }
4757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging by default" >&5
4758 $as_echo "Enabling testio debugging by default" >&6; }
4759 $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
4768 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4769 if test -n "$ac_tool_prefix"; then
4770 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4771 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4773 $as_echo_n "checking for $ac_word... " >&6; }
4774 if ${ac_cv_path_PKG_CONFIG+:} false; then :
4775 $as_echo_n "(cached) " >&6
4779 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4786 test -z "$as_dir" && as_dir=.
4787 for ac_exec_ext in '' $ac_executable_extensions; do
4788 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4789 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4800 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4801 if test -n "$PKG_CONFIG"; then
4802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4803 $as_echo "$PKG_CONFIG" >&6; }
4805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4806 $as_echo "no" >&6; }
4811 if test -z "$ac_cv_path_PKG_CONFIG"; then
4812 ac_pt_PKG_CONFIG=$PKG_CONFIG
4813 # Extract the first word of "pkg-config", so it can be a program name with args.
4814 set dummy pkg-config; ac_word=$2
4815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4816 $as_echo_n "checking for $ac_word... " >&6; }
4817 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4818 $as_echo_n "(cached) " >&6
4820 case $ac_pt_PKG_CONFIG in
4822 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4829 test -z "$as_dir" && as_dir=.
4830 for ac_exec_ext in '' $ac_executable_extensions; do
4831 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4832 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4843 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4844 if test -n "$ac_pt_PKG_CONFIG"; then
4845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4846 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4849 $as_echo "no" >&6; }
4852 if test "x$ac_pt_PKG_CONFIG" = x; then
4855 case $cross_compiling:$ac_tool_warned in
4857 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4858 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4859 ac_tool_warned=yes ;;
4861 PKG_CONFIG=$ac_pt_PKG_CONFIG
4864 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4868 if test -n "$PKG_CONFIG"; then
4869 _pkg_min_version=0.9.0
4870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4871 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4872 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4874 $as_echo "yes" >&6; }
4876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4877 $as_echo "no" >&6; }
4887 DEPPROFILED_LIBUUID=
4889 # Check whether --enable-libuuid was given.
4890 if test "${enable_libuuid+set}" = set; then :
4891 enableval=$enable_libuuid; if test "$enableval" = "no"
4893 if test -z "$PKG_CONFIG"; then
4894 as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5
4897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
4898 $as_echo_n "checking for uuid_generate in -luuid... " >&6; }
4899 if ${ac_cv_lib_uuid_uuid_generate+:} false; then :
4900 $as_echo_n "(cached) " >&6
4902 ac_check_lib_save_LIBS=$LIBS
4903 LIBS="-luuid $LIBUUID $LIBS"
4904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4905 /* end confdefs.h. */
4907 /* Override any GCC internal prototype to avoid an error.
4908 Use char because int might match the return type of a GCC
4909 builtin and then its argument prototype would still apply. */
4913 char uuid_generate ();
4917 return uuid_generate ();
4922 if ac_fn_c_try_link "$LINENO"; then :
4923 ac_cv_lib_uuid_uuid_generate=yes
4925 ac_cv_lib_uuid_uuid_generate=no
4927 rm -f core conftest.err conftest.$ac_objext \
4928 conftest$ac_exeext conftest.$ac_ext
4929 LIBS=$ac_check_lib_save_LIBS
4931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
4932 $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
4933 if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then :
4934 LIBUUID=`$PKG_CONFIG --libs uuid`;
4935 STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid`
4937 as_fn_error $? "external uuid library not found" "$LINENO" 5
4941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private uuid library" >&5
4942 $as_echo "Disabling private uuid library" >&6; }
4944 LIBUUID='$(LIB)/libuuid'$LIB_EXT
4946 STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
4947 DEPSTATIC_LIBUUID=$STATIC_LIBUUID
4948 PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
4949 DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
4950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library" >&5
4951 $as_echo "Enabling private uuid library" >&6; }
4955 LIBUUID='$(LIB)/libuuid'$LIB_EXT
4957 STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
4958 DEPSTATIC_LIBUUID=$STATIC_LIBUUID
4959 PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
4960 DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
4961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library by default" >&5
4962 $as_echo "Enabling private uuid library by default" >&6; }
4975 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4976 if test -n "$ac_tool_prefix"; then
4977 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4978 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4980 $as_echo_n "checking for $ac_word... " >&6; }
4981 if ${ac_cv_path_PKG_CONFIG+:} false; then :
4982 $as_echo_n "(cached) " >&6
4986 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4993 test -z "$as_dir" && as_dir=.
4994 for ac_exec_ext in '' $ac_executable_extensions; do
4995 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4996 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4997 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5007 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5008 if test -n "$PKG_CONFIG"; then
5009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5010 $as_echo "$PKG_CONFIG" >&6; }
5012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5013 $as_echo "no" >&6; }
5018 if test -z "$ac_cv_path_PKG_CONFIG"; then
5019 ac_pt_PKG_CONFIG=$PKG_CONFIG
5020 # Extract the first word of "pkg-config", so it can be a program name with args.
5021 set dummy pkg-config; ac_word=$2
5022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5023 $as_echo_n "checking for $ac_word... " >&6; }
5024 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
5025 $as_echo_n "(cached) " >&6
5027 case $ac_pt_PKG_CONFIG in
5029 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5036 test -z "$as_dir" && as_dir=.
5037 for ac_exec_ext in '' $ac_executable_extensions; do
5038 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5039 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5040 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5050 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5051 if test -n "$ac_pt_PKG_CONFIG"; then
5052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5053 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5056 $as_echo "no" >&6; }
5059 if test "x$ac_pt_PKG_CONFIG" = x; then
5062 case $cross_compiling:$ac_tool_warned in
5064 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5065 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5066 ac_tool_warned=yes ;;
5068 PKG_CONFIG=$ac_pt_PKG_CONFIG
5071 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5075 if test -n "$PKG_CONFIG"; then
5076 _pkg_min_version=0.9.0
5077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5078 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5079 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5081 $as_echo "yes" >&6; }
5083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5084 $as_echo "no" >&6; }
5094 DEPPROFILED_LIBBLKID=
5097 # Check whether --enable-libblkid was given.
5098 if test "${enable_libblkid+set}" = set; then :
5099 enableval=$enable_libblkid; if test "$enableval" = "no"
5101 if test -z "$PKG_CONFIG"; then
5102 as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5
5105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
5106 $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
5107 if ${ac_cv_lib_blkid_blkid_get_cache+:} false; then :
5108 $as_echo_n "(cached) " >&6
5110 ac_check_lib_save_LIBS=$LIBS
5111 LIBS="-lblkid $LIBBLKID $LIBS"
5112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5113 /* end confdefs.h. */
5115 /* Override any GCC internal prototype to avoid an error.
5116 Use char because int might match the return type of a GCC
5117 builtin and then its argument prototype would still apply. */
5121 char blkid_get_cache ();
5125 return blkid_get_cache ();
5130 if ac_fn_c_try_link "$LINENO"; then :
5131 ac_cv_lib_blkid_blkid_get_cache=yes
5133 ac_cv_lib_blkid_blkid_get_cache=no
5135 rm -f core conftest.err conftest.$ac_objext \
5136 conftest$ac_exeext conftest.$ac_ext
5137 LIBS=$ac_check_lib_save_LIBS
5139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
5140 $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
5141 if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes; then :
5142 LIBBLKID=`$PKG_CONFIG --libs blkid`;
5143 STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid`
5145 as_fn_error $? "external blkid library not found" "$LINENO" 5
5149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private blkid library" >&5
5150 $as_echo "Disabling private blkid library" >&6; }
5152 LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5153 DEPLIBBLKID=$LIBBLKID
5154 STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5155 DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5156 PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5157 DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
5158 $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
5160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library" >&5
5161 $as_echo "Enabling private blkid library" >&6; }
5165 LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5166 DEPLIBBLKID=$LIBBLKID
5167 STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5168 DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5169 PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5170 DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
5171 $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
5173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library by default" >&5
5174 $as_echo "Enabling private blkid library by default" >&6; }
5187 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5188 if test -n "$ac_tool_prefix"; then
5189 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5190 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5192 $as_echo_n "checking for $ac_word... " >&6; }
5193 if ${ac_cv_path_PKG_CONFIG+:} false; then :
5194 $as_echo_n "(cached) " >&6
5198 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5205 test -z "$as_dir" && as_dir=.
5206 for ac_exec_ext in '' $ac_executable_extensions; do
5207 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5208 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5209 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5219 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5220 if test -n "$PKG_CONFIG"; then
5221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5222 $as_echo "$PKG_CONFIG" >&6; }
5224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5225 $as_echo "no" >&6; }
5230 if test -z "$ac_cv_path_PKG_CONFIG"; then
5231 ac_pt_PKG_CONFIG=$PKG_CONFIG
5232 # Extract the first word of "pkg-config", so it can be a program name with args.
5233 set dummy pkg-config; ac_word=$2
5234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5235 $as_echo_n "checking for $ac_word... " >&6; }
5236 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
5237 $as_echo_n "(cached) " >&6
5239 case $ac_pt_PKG_CONFIG in
5241 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5248 test -z "$as_dir" && as_dir=.
5249 for ac_exec_ext in '' $ac_executable_extensions; do
5250 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5251 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5262 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5263 if test -n "$ac_pt_PKG_CONFIG"; then
5264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5265 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5268 $as_echo "no" >&6; }
5271 if test "x$ac_pt_PKG_CONFIG" = x; then
5274 case $cross_compiling:$ac_tool_warned in
5276 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5277 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5278 ac_tool_warned=yes ;;
5280 PKG_CONFIG=$ac_pt_PKG_CONFIG
5283 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5287 if test -n "$PKG_CONFIG"; then
5288 _pkg_min_version=0.9.0
5289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5290 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5291 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5293 $as_echo "yes" >&6; }
5295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5296 $as_echo "no" >&6; }
5302 # Check whether --enable-quota was given.
5303 if test "${enable_quota+set}" = set; then :
5304 enableval=$enable_quota; if test "$enableval" = "no"
5306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling quota support" >&5
5307 $as_echo "Disabling quota support" >&6; }
5309 $as_echo "#define CONFIG_QUOTA 1" >>confdefs.h
5311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling quota support" >&5
5312 $as_echo "Enabling quota support" >&6; }
5316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling quota support by default" >&5
5317 $as_echo "Disabling quota support by default" >&6; }
5321 LIBQUOTA='$(LIB)/libquota'$LIB_EXT
5322 DEPLIBQUOTA=$LIBQUOTA
5323 STATIC_LIBQUOTA='$(LIB)/libquota'$STATIC_LIB_EXT
5324 DEPSTATIC_LIBQUOTA=$STATIC_LIBQUOTA
5325 PROFILED_LIBQUOTA='$(LIB)/libquota'$PROFILED_LIB_EXT
5326 DEPPROFILED_LIBQUOTA=$PROFILED_LIBQUOTA
5334 # Check whether --enable-debugfs was given.
5335 if test "${enable_debugfs+set}" = set; then :
5336 enableval=$enable_debugfs; if test "$enableval" = "no"
5338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling debugfs support" >&5
5339 $as_echo "Disabling debugfs support" >&6; }
5343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support" >&5
5344 $as_echo "Enabling debugfs support" >&6; }
5348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support by default" >&5
5349 $as_echo "Enabling debugfs support by default" >&6; }
5355 # Check whether --enable-imager was given.
5356 if test "${enable_imager+set}" = set; then :
5357 enableval=$enable_imager; if test "$enableval" = "no"
5359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2image support" >&5
5360 $as_echo "Disabling e2image support" >&6; }
5364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support" >&5
5365 $as_echo "Enabling e2image support" >&6; }
5369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support by default" >&5
5370 $as_echo "Enabling e2image support by default" >&6; }
5376 # Check whether --enable-resizer was given.
5377 if test "${enable_resizer+set}" = set; then :
5378 enableval=$enable_resizer; if test "$enableval" = "no"
5380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2resize support" >&5
5381 $as_echo "Disabling e2resize support" >&6; }
5385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support" >&5
5386 $as_echo "Enabling e2resize support" >&6; }
5390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support by default" >&5
5391 $as_echo "Enabling e2resize support by default" >&6; }
5397 # Check whether --enable-defrag was given.
5398 if test "${enable_defrag+set}" = set; then :
5399 enableval=$enable_defrag; if test "$enableval" = "no"
5401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support" >&5
5402 $as_echo "Disabling e4defrag support" >&6; }
5406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support" >&5
5407 $as_echo "Enabling e4defrag support" >&6; }
5411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support by default" >&5
5412 $as_echo "Enabling e4defrag support by default" >&6; }
5418 # Check whether --enable-fsck was given.
5419 if test "${enable_fsck+set}" = set; then :
5420 enableval=$enable_fsck; if test "$enableval" = "no"
5422 FSCK_PROG='' FSCK_MAN=''
5423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper" >&5
5424 $as_echo "Not building fsck wrapper" >&6; }
5426 FSCK_PROG=fsck FSCK_MAN=fsck.8
5427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper" >&5
5428 $as_echo "Building fsck wrapper" >&6; }
5434 FSCK_PROG='' FSCK_MAN=''
5435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper by default" >&5
5436 $as_echo "Not building fsck wrapper by default" >&6; }
5439 FSCK_PROG=fsck FSCK_MAN=fsck.8
5440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper by default" >&5
5441 $as_echo "Building fsck wrapper by default" >&6; }
5448 # Check whether --enable-e2initrd-helper was given.
5449 if test "${enable_e2initrd_helper+set}" = set; then :
5450 enableval=$enable_e2initrd_helper; if test "$enableval" = "no"
5452 E2INITRD_PROG='' E2INITRD_MAN=''
5453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building e2initrd helper" >&5
5454 $as_echo "Not building e2initrd helper" >&6; }
5456 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
5457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper" >&5
5458 $as_echo "Building e2initrd helper" >&6; }
5462 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
5463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper by default" >&5
5464 $as_echo "Building e2initrd helper by default" >&6; }
5470 # Check whether --enable-tls was given.
5471 if test "${enable_tls+set}" = set; then :
5472 enableval=$enable_tls; if test "$enableval" = "no"
5475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling thread local support" >&5
5476 $as_echo "Disabling thread local support" >&6; }
5479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling thread local support" >&5
5480 $as_echo "Enabling thread local support" >&6; }
5484 if test -n "$WITH_DIET_LIBC"
5487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Diet libc does not support thread local support" >&5
5488 $as_echo "Diet libc does not support thread local support" >&6; }
5491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Try using thread local support by default" >&5
5492 $as_echo "Try using thread local support by default" >&6; }
5497 if test "$try_tls" = "yes"
5500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread local storage (TLS) class" >&5
5501 $as_echo_n "checking for thread local storage (TLS) class... " >&6; }
5502 if ${ac_cv_tls+:} false; then :
5503 $as_echo_n "(cached) " >&6
5506 ax_tls_keywords="__thread __declspec(thread) none"
5507 for ax_tls_keyword in $ax_tls_keywords; do
5508 case $ax_tls_keyword in
5509 none) ac_cv_tls=none ; break ;;
5511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5512 /* end confdefs.h. */
5516 static $ax_tls_keyword int bar;
5527 if ac_fn_c_try_compile "$LINENO"; then :
5528 ac_cv_tls=$ax_tls_keyword ; break
5533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5540 if test "$ac_cv_tls" != "none"; then
5542 cat >>confdefs.h <<_ACEOF
5543 #define TLS $ac_cv_tls
5547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tls" >&5
5548 $as_echo "$ac_cv_tls" >&6; }
5552 # Check whether --enable-uuidd was given.
5553 if test "${enable_uuidd+set}" = set; then :
5554 enableval=$enable_uuidd; if test "$enableval" = "no"
5556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building uuidd" >&5
5557 $as_echo "Not building uuidd" >&6; }
5560 $as_echo "#define USE_UUIDD 1" >>confdefs.h
5563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd" >&5
5564 $as_echo "Building uuidd" >&6; }
5568 $as_echo "#define USE_UUIDD 1" >>confdefs.h
5571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd by default" >&5
5572 $as_echo "Building uuidd by default" >&6; }
5577 MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
5579 GETTEXT_PACKAGE=e2fsprogs
5581 VERSION="$E2FSPROGS_VERSION"
5584 cat >>confdefs.h <<_ACEOF
5585 #define PACKAGE "$PACKAGE"
5589 cat >>confdefs.h <<_ACEOF
5590 #define VERSION "$VERSION"
5597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5598 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5600 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5601 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
5602 $as_echo_n "(cached) " >&6
5604 cat >conftest.make <<\_ACEOF
5607 @echo '@@@%%%=$(MAKE)=@@@%%%'
5609 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5610 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5612 eval ac_cv_prog_make_${ac_make}_set=yes;;
5614 eval ac_cv_prog_make_${ac_make}_set=no;;
5618 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5620 $as_echo "yes" >&6; }
5623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5624 $as_echo "no" >&6; }
5625 SET_MAKE="MAKE=${MAKE-make}"
5628 # Find a good install program. We prefer a C program (faster),
5629 # so one script is as good as another. But avoid the broken or
5630 # incompatible versions:
5631 # SysV /etc/install, /usr/sbin/install
5632 # SunOS /usr/etc/install
5633 # IRIX /sbin/install
5635 # AmigaOS /C/install, which installs bootblocks on floppy discs
5636 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5637 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5638 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5639 # OS/2's system install, which has a completely different semantic
5640 # ./install, which can be erroneously created by make from ./install.sh.
5641 # Reject install programs that cannot install multiple files.
5642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
5643 $as_echo_n "checking for a BSD-compatible install... " >&6; }
5644 if test -z "$INSTALL"; then
5645 if ${ac_cv_path_install+:} false; then :
5646 $as_echo_n "(cached) " >&6
5648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5652 test -z "$as_dir" && as_dir=.
5653 # Account for people who put trailing slashes in PATH elements.
5654 case $as_dir/ in #((
5655 ./ | .// | /[cC]/* | \
5656 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5657 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
5660 # OSF1 and SCO ODT 3.0 have their own names for install.
5661 # Don't use installbsd from OSF since it installs stuff as root
5663 for ac_prog in ginstall scoinst install; do
5664 for ac_exec_ext in '' $ac_executable_extensions; do
5665 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5666 if test $ac_prog = install &&
5667 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5668 # AIX install. It has an incompatible calling convention.
5670 elif test $ac_prog = install &&
5671 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5672 # program-specific install script used by HP pwplus--don't use.
5675 rm -rf conftest.one conftest.two conftest.dir
5676 echo one > conftest.one
5677 echo two > conftest.two
5679 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5680 test -s conftest.one && test -s conftest.two &&
5681 test -s conftest.dir/conftest.one &&
5682 test -s conftest.dir/conftest.two
5684 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5697 rm -rf conftest.one conftest.two conftest.dir
5700 if test "${ac_cv_path_install+set}" = set; then
5701 INSTALL=$ac_cv_path_install
5703 # As a last resort, use the slow shell script. Don't cache a
5704 # value for INSTALL within a source directory, because that will
5705 # break other packages using the cache if that directory is
5706 # removed, or if the value is a relative name.
5707 INSTALL=$ac_install_sh
5710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
5711 $as_echo "$INSTALL" >&6; }
5713 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5714 # It thinks the first close brace ends the variable substitution.
5715 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5717 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5719 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5723 if test -n "$ac_aux_dir"; then
5724 case "$ac_aux_dir" in
5725 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
5726 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
5729 if test -z "$MKINSTALLDIRS"; then
5730 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
5735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
5736 $as_echo_n "checking whether NLS is requested... " >&6; }
5737 # Check whether --enable-nls was given.
5738 if test "${enable_nls+set}" = set; then :
5739 enableval=$enable_nls; USE_NLS=$enableval
5744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
5745 $as_echo "$USE_NLS" >&6; }
5752 # Prepare PATH_SEPARATOR.
5753 # The user is always right.
5754 if test "${PATH_SEPARATOR+set}" != set; then
5755 echo "#! /bin/sh" >conf$$.sh
5756 echo "exit 0" >>conf$$.sh
5758 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5766 # Find out how to test for executable files. Don't use a zero-byte file,
5767 # as systems may use methods other than mode bits to determine executability.
5768 cat >conf$$.file <<_ASEOF
5772 chmod +x conf$$.file
5773 if test -x conf$$.file >/dev/null 2>&1; then
5774 ac_executable_p="test -x"
5776 ac_executable_p="test -f"
5780 # Extract the first word of "msgfmt", so it can be a program name with args.
5781 set dummy msgfmt; ac_word=$2
5782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5783 $as_echo_n "checking for $ac_word... " >&6; }
5784 if ${ac_cv_path_MSGFMT+:} false; then :
5785 $as_echo_n "(cached) " >&6
5789 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5792 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5793 for ac_dir in $PATH; do
5795 test -z "$ac_dir" && ac_dir=.
5796 for ac_exec_ext in '' $ac_executable_extensions; do
5797 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5798 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
5799 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5800 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
5807 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
5811 MSGFMT="$ac_cv_path_MSGFMT"
5812 if test "$MSGFMT" != ":"; then
5813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
5814 $as_echo "$MSGFMT" >&6; }
5816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5817 $as_echo "no" >&6; }
5820 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5821 set dummy gmsgfmt; ac_word=$2
5822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5823 $as_echo_n "checking for $ac_word... " >&6; }
5824 if ${ac_cv_path_GMSGFMT+:} false; then :
5825 $as_echo_n "(cached) " >&6
5829 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5836 test -z "$as_dir" && as_dir=.
5837 for ac_exec_ext in '' $ac_executable_extensions; do
5838 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5839 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5847 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5851 GMSGFMT=$ac_cv_path_GMSGFMT
5852 if test -n "$GMSGFMT"; then
5853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
5854 $as_echo "$GMSGFMT" >&6; }
5856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5857 $as_echo "no" >&6; }
5863 # Prepare PATH_SEPARATOR.
5864 # The user is always right.
5865 if test "${PATH_SEPARATOR+set}" != set; then
5866 echo "#! /bin/sh" >conf$$.sh
5867 echo "exit 0" >>conf$$.sh
5869 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5877 # Find out how to test for executable files. Don't use a zero-byte file,
5878 # as systems may use methods other than mode bits to determine executability.
5879 cat >conf$$.file <<_ASEOF
5883 chmod +x conf$$.file
5884 if test -x conf$$.file >/dev/null 2>&1; then
5885 ac_executable_p="test -x"
5887 ac_executable_p="test -f"
5891 # Extract the first word of "xgettext", so it can be a program name with args.
5892 set dummy xgettext; ac_word=$2
5893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5894 $as_echo_n "checking for $ac_word... " >&6; }
5895 if ${ac_cv_path_XGETTEXT+:} false; then :
5896 $as_echo_n "(cached) " >&6
5900 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5903 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5904 for ac_dir in $PATH; do
5906 test -z "$ac_dir" && ac_dir=.
5907 for ac_exec_ext in '' $ac_executable_extensions; do
5908 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5909 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
5910 (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
5911 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
5918 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5922 XGETTEXT="$ac_cv_path_XGETTEXT"
5923 if test "$XGETTEXT" != ":"; then
5924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
5925 $as_echo "$XGETTEXT" >&6; }
5927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5928 $as_echo "no" >&6; }
5934 # Prepare PATH_SEPARATOR.
5935 # The user is always right.
5936 if test "${PATH_SEPARATOR+set}" != set; then
5937 echo "#! /bin/sh" >conf$$.sh
5938 echo "exit 0" >>conf$$.sh
5940 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5948 # Find out how to test for executable files. Don't use a zero-byte file,
5949 # as systems may use methods other than mode bits to determine executability.
5950 cat >conf$$.file <<_ASEOF
5954 chmod +x conf$$.file
5955 if test -x conf$$.file >/dev/null 2>&1; then
5956 ac_executable_p="test -x"
5958 ac_executable_p="test -f"
5962 # Extract the first word of "msgmerge", so it can be a program name with args.
5963 set dummy msgmerge; ac_word=$2
5964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5965 $as_echo_n "checking for $ac_word... " >&6; }
5966 if ${ac_cv_path_MSGMERGE+:} false; then :
5967 $as_echo_n "(cached) " >&6
5971 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
5974 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5975 for ac_dir in $PATH; do
5977 test -z "$ac_dir" && ac_dir=.
5978 for ac_exec_ext in '' $ac_executable_extensions; do
5979 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5980 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
5981 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
5988 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
5992 MSGMERGE="$ac_cv_path_MSGMERGE"
5993 if test "$MSGMERGE" != ":"; then
5994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
5995 $as_echo "$MSGMERGE" >&6; }
5997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5998 $as_echo "no" >&6; }
6002 if test "$GMSGFMT" != ":"; then
6003 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
6004 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6007 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
6008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
6009 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
6014 if test "$XGETTEXT" != ":"; then
6015 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
6016 (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
6019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
6020 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
6026 ac_config_commands="$ac_config_commands default-1"
6029 if test -n "$ac_tool_prefix"; then
6030 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6031 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6033 $as_echo_n "checking for $ac_word... " >&6; }
6034 if ${ac_cv_prog_RANLIB+:} false; then :
6035 $as_echo_n "(cached) " >&6
6037 if test -n "$RANLIB"; then
6038 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6044 test -z "$as_dir" && as_dir=.
6045 for ac_exec_ext in '' $ac_executable_extensions; do
6046 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6047 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6048 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6057 RANLIB=$ac_cv_prog_RANLIB
6058 if test -n "$RANLIB"; then
6059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6060 $as_echo "$RANLIB" >&6; }
6062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6063 $as_echo "no" >&6; }
6068 if test -z "$ac_cv_prog_RANLIB"; then
6069 ac_ct_RANLIB=$RANLIB
6070 # Extract the first word of "ranlib", so it can be a program name with args.
6071 set dummy ranlib; ac_word=$2
6072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6073 $as_echo_n "checking for $ac_word... " >&6; }
6074 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6075 $as_echo_n "(cached) " >&6
6077 if test -n "$ac_ct_RANLIB"; then
6078 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6084 test -z "$as_dir" && as_dir=.
6085 for ac_exec_ext in '' $ac_executable_extensions; do
6086 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6087 ac_cv_prog_ac_ct_RANLIB="ranlib"
6088 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6097 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6098 if test -n "$ac_ct_RANLIB"; then
6099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6100 $as_echo "$ac_ct_RANLIB" >&6; }
6102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6103 $as_echo "no" >&6; }
6106 if test "x$ac_ct_RANLIB" = x; then
6109 case $cross_compiling:$ac_tool_warned in
6111 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6112 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6113 ac_tool_warned=yes ;;
6115 RANLIB=$ac_ct_RANLIB
6118 RANLIB="$ac_cv_prog_RANLIB"
6122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror in -lcposix" >&5
6123 $as_echo_n "checking for strerror in -lcposix... " >&6; }
6124 if ${ac_cv_lib_cposix_strerror+:} false; then :
6125 $as_echo_n "(cached) " >&6
6127 ac_check_lib_save_LIBS=$LIBS
6128 LIBS="-lcposix $LIBS"
6129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6130 /* end confdefs.h. */
6132 /* Override any GCC internal prototype to avoid an error.
6133 Use char because int might match the return type of a GCC
6134 builtin and then its argument prototype would still apply. */
6147 if ac_fn_c_try_link "$LINENO"; then :
6148 ac_cv_lib_cposix_strerror=yes
6150 ac_cv_lib_cposix_strerror=no
6152 rm -f core conftest.err conftest.$ac_objext \
6153 conftest$ac_exeext conftest.$ac_ext
6154 LIBS=$ac_check_lib_save_LIBS
6156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cposix_strerror" >&5
6157 $as_echo "$ac_cv_lib_cposix_strerror" >&6; }
6158 if test "x$ac_cv_lib_cposix_strerror" = xyes; then :
6159 LIBS="$LIBS -lcposix"
6165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6166 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6167 if ${ac_cv_path_GREP+:} false; then :
6168 $as_echo_n "(cached) " >&6
6170 if test -z "$GREP"; then
6171 ac_path_GREP_found=false
6172 # Loop through the user's path and test for each of PROGNAME-LIST
6173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6174 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6177 test -z "$as_dir" && as_dir=.
6178 for ac_prog in grep ggrep; do
6179 for ac_exec_ext in '' $ac_executable_extensions; do
6180 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6181 as_fn_executable_p "$ac_path_GREP" || continue
6182 # Check for GNU ac_path_GREP and select it if it is found.
6183 # Check for GNU $ac_path_GREP
6184 case `"$ac_path_GREP" --version 2>&1` in
6186 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6189 $as_echo_n 0123456789 >"conftest.in"
6192 cat "conftest.in" "conftest.in" >"conftest.tmp"
6193 mv "conftest.tmp" "conftest.in"
6194 cp "conftest.in" "conftest.nl"
6195 $as_echo 'GREP' >> "conftest.nl"
6196 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6197 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6198 as_fn_arith $ac_count + 1 && ac_count=$as_val
6199 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6200 # Best one so far, save it but keep looking for a better one
6201 ac_cv_path_GREP="$ac_path_GREP"
6202 ac_path_GREP_max=$ac_count
6204 # 10*(2^10) chars as input seems more than enough
6205 test $ac_count -gt 10 && break
6207 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6210 $ac_path_GREP_found && break 3
6215 if test -z "$ac_cv_path_GREP"; then
6216 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6219 ac_cv_path_GREP=$GREP
6223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6224 $as_echo "$ac_cv_path_GREP" >&6; }
6225 GREP="$ac_cv_path_GREP"
6228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6229 $as_echo_n "checking for egrep... " >&6; }
6230 if ${ac_cv_path_EGREP+:} false; then :
6231 $as_echo_n "(cached) " >&6
6233 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6234 then ac_cv_path_EGREP="$GREP -E"
6236 if test -z "$EGREP"; then
6237 ac_path_EGREP_found=false
6238 # Loop through the user's path and test for each of PROGNAME-LIST
6239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6240 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6243 test -z "$as_dir" && as_dir=.
6244 for ac_prog in egrep; do
6245 for ac_exec_ext in '' $ac_executable_extensions; do
6246 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6247 as_fn_executable_p "$ac_path_EGREP" || continue
6248 # Check for GNU ac_path_EGREP and select it if it is found.
6249 # Check for GNU $ac_path_EGREP
6250 case `"$ac_path_EGREP" --version 2>&1` in
6252 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6255 $as_echo_n 0123456789 >"conftest.in"
6258 cat "conftest.in" "conftest.in" >"conftest.tmp"
6259 mv "conftest.tmp" "conftest.in"
6260 cp "conftest.in" "conftest.nl"
6261 $as_echo 'EGREP' >> "conftest.nl"
6262 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6263 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6264 as_fn_arith $ac_count + 1 && ac_count=$as_val
6265 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6266 # Best one so far, save it but keep looking for a better one
6267 ac_cv_path_EGREP="$ac_path_EGREP"
6268 ac_path_EGREP_max=$ac_count
6270 # 10*(2^10) chars as input seems more than enough
6271 test $ac_count -gt 10 && break
6273 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6276 $ac_path_EGREP_found && break 3
6281 if test -z "$ac_cv_path_EGREP"; then
6282 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6285 ac_cv_path_EGREP=$EGREP
6290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6291 $as_echo "$ac_cv_path_EGREP" >&6; }
6292 EGREP="$ac_cv_path_EGREP"
6295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6296 $as_echo_n "checking for ANSI C header files... " >&6; }
6297 if ${ac_cv_header_stdc+:} false; then :
6298 $as_echo_n "(cached) " >&6
6300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6301 /* end confdefs.h. */
6315 if ac_fn_c_try_compile "$LINENO"; then :
6316 ac_cv_header_stdc=yes
6318 ac_cv_header_stdc=no
6320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6322 if test $ac_cv_header_stdc = yes; then
6323 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6325 /* end confdefs.h. */
6329 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6330 $EGREP "memchr" >/dev/null 2>&1; then :
6333 ac_cv_header_stdc=no
6339 if test $ac_cv_header_stdc = yes; then
6340 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6342 /* end confdefs.h. */
6346 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6347 $EGREP "free" >/dev/null 2>&1; then :
6350 ac_cv_header_stdc=no
6356 if test $ac_cv_header_stdc = yes; then
6357 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6358 if test "$cross_compiling" = yes; then :
6361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6362 /* end confdefs.h. */
6365 #if ((' ' & 0x0FF) == 0x020)
6366 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6367 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6369 # define ISLOWER(c) \
6370 (('a' <= (c) && (c) <= 'i') \
6371 || ('j' <= (c) && (c) <= 'r') \
6372 || ('s' <= (c) && (c) <= 'z'))
6373 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6376 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6381 for (i = 0; i < 256; i++)
6382 if (XOR (islower (i), ISLOWER (i))
6383 || toupper (i) != TOUPPER (i))
6388 if ac_fn_c_try_run "$LINENO"; then :
6391 ac_cv_header_stdc=no
6393 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6394 conftest.$ac_objext conftest.beam conftest.$ac_ext
6399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6400 $as_echo "$ac_cv_header_stdc" >&6; }
6401 if test $ac_cv_header_stdc = yes; then
6403 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
6408 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
6409 if ${ac_cv_c_const+:} false; then :
6410 $as_echo_n "(cached) " >&6
6412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6413 /* end confdefs.h. */
6420 /* Ultrix mips cc rejects this sort of thing. */
6421 typedef int charset[2];
6422 const charset cs = { 0, 0 };
6423 /* SunOS 4.1.1 cc rejects this. */
6424 char const *const *pcpcc;
6426 /* NEC SVR4.0.2 mips cc rejects this. */
6427 struct point {int x, y;};
6428 static struct point const zero = {0,0};
6429 /* AIX XL C 1.02.0.0 rejects this.
6430 It does not let you subtract one const X* pointer from another in
6431 an arm of an if-expression whose if-part is not a constant
6433 const char *g = "string";
6434 pcpcc = &g + (g ? g-g : 0);
6435 /* HPUX 7.0 cc rejects these. */
6437 ppc = (char**) pcpcc;
6438 pcpcc = (char const *const *) ppc;
6439 { /* SCO 3.2v4 cc rejects this sort of thing. */
6442 char const *s = 0 ? (char *) 0 : (char const *) 0;
6447 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6449 const int *foo = &x[0];
6452 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6453 typedef const int *iptr;
6457 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
6458 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6459 struct s { int j; const int *ap[3]; } bx;
6460 struct s *b = &bx; b->j = 5;
6462 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6466 return !cs[0] && !zero.x;
6473 if ac_fn_c_try_compile "$LINENO"; then :
6478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
6481 $as_echo "$ac_cv_c_const" >&6; }
6482 if test $ac_cv_c_const = no; then
6484 $as_echo "#define const /**/" >>confdefs.h
6489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed" >&5
6490 $as_echo_n "checking for signed... " >&6; }
6491 if ${bh_cv_c_signed+:} false; then :
6492 $as_echo_n "(cached) " >&6
6494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6495 /* end confdefs.h. */
6505 if ac_fn_c_try_compile "$LINENO"; then :
6510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bh_cv_c_signed" >&5
6513 $as_echo "$bh_cv_c_signed" >&6; }
6514 if test $bh_cv_c_signed = no; then
6516 $as_echo "#define signed /**/" >>confdefs.h
6520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
6521 $as_echo_n "checking for inline... " >&6; }
6522 if ${ac_cv_c_inline+:} false; then :
6523 $as_echo_n "(cached) " >&6
6526 for ac_kw in inline __inline__ __inline; do
6527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6528 /* end confdefs.h. */
6531 static $ac_kw foo_t static_foo () {return 0; }
6532 $ac_kw foo_t foo () {return 0; }
6536 if ac_fn_c_try_compile "$LINENO"; then :
6537 ac_cv_c_inline=$ac_kw
6539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6540 test "$ac_cv_c_inline" != no && break
6544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
6545 $as_echo "$ac_cv_c_inline" >&6; }
6547 case $ac_cv_c_inline in
6550 case $ac_cv_c_inline in
6552 *) ac_val=$ac_cv_c_inline;;
6554 cat >>confdefs.h <<_ACEOF
6556 #define inline $ac_val
6562 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6563 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6564 inttypes.h stdint.h unistd.h
6566 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6567 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6569 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6570 cat >>confdefs.h <<_ACEOF
6571 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6579 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
6580 if test "x$ac_cv_type_off_t" = xyes; then :
6584 cat >>confdefs.h <<_ACEOF
6585 #define off_t long int
6590 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6591 if test "x$ac_cv_type_size_t" = xyes; then :
6595 cat >>confdefs.h <<_ACEOF
6596 #define size_t unsigned int
6602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long" >&5
6603 $as_echo_n "checking for long long... " >&6; }
6604 if ${ac_cv_type_long_long+:} false; then :
6605 $as_echo_n "(cached) " >&6
6607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6608 /* end confdefs.h. */
6609 long long ll = 1LL; int i = 63;
6613 long long llmax = (long long) -1;
6614 return ll << i | ll >> i | llmax / ll | llmax % ll;
6619 if ac_fn_c_try_link "$LINENO"; then :
6620 ac_cv_type_long_long=yes
6622 ac_cv_type_long_long=no
6624 rm -f core conftest.err conftest.$ac_objext \
6625 conftest$ac_exeext conftest.$ac_ext
6627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long" >&5
6628 $as_echo "$ac_cv_type_long_long" >&6; }
6629 if test $ac_cv_type_long_long = yes; then
6631 $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
6636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
6637 $as_echo_n "checking for long double... " >&6; }
6638 if ${gt_cv_c_long_double+:} false; then :
6639 $as_echo_n "(cached) " >&6
6641 if test "$GCC" = yes; then
6642 gt_cv_c_long_double=yes
6644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6645 /* end confdefs.h. */
6647 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
6648 long double foo = 0.0;
6649 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
6650 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
6660 if ac_fn_c_try_compile "$LINENO"; then :
6661 gt_cv_c_long_double=yes
6663 gt_cv_c_long_double=no
6665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_long_double" >&5
6669 $as_echo "$gt_cv_c_long_double" >&6; }
6670 if test $gt_cv_c_long_double = yes; then
6672 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
6677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
6678 $as_echo_n "checking for wchar_t... " >&6; }
6679 if ${gt_cv_c_wchar_t+:} false; then :
6680 $as_echo_n "(cached) " >&6
6682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6683 /* end confdefs.h. */
6685 wchar_t foo = (wchar_t)'\0';
6694 if ac_fn_c_try_compile "$LINENO"; then :
6699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
6702 $as_echo "$gt_cv_c_wchar_t" >&6; }
6703 if test $gt_cv_c_wchar_t = yes; then
6705 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
6710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
6711 $as_echo_n "checking for wint_t... " >&6; }
6712 if ${gt_cv_c_wint_t+:} false; then :
6713 $as_echo_n "(cached) " >&6
6715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6716 /* end confdefs.h. */
6718 wint_t foo = (wchar_t)'\0';
6727 if ac_fn_c_try_compile "$LINENO"; then :
6732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
6735 $as_echo "$gt_cv_c_wint_t" >&6; }
6736 if test $gt_cv_c_wint_t = yes; then
6738 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
6743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
6744 $as_echo_n "checking for inttypes.h... " >&6; }
6745 if ${jm_ac_cv_header_inttypes_h+:} false; then :
6746 $as_echo_n "(cached) " >&6
6748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6749 /* end confdefs.h. */
6750 #include <sys/types.h>
6751 #include <inttypes.h>
6755 uintmax_t i = (uintmax_t) -1;
6760 if ac_fn_c_try_compile "$LINENO"; then :
6761 jm_ac_cv_header_inttypes_h=yes
6763 jm_ac_cv_header_inttypes_h=no
6765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_inttypes_h" >&5
6768 $as_echo "$jm_ac_cv_header_inttypes_h" >&6; }
6769 if test $jm_ac_cv_header_inttypes_h = yes; then
6771 cat >>confdefs.h <<_ACEOF
6772 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
6778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
6779 $as_echo_n "checking for stdint.h... " >&6; }
6780 if ${jm_ac_cv_header_stdint_h+:} false; then :
6781 $as_echo_n "(cached) " >&6
6783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6784 /* end confdefs.h. */
6785 #include <sys/types.h>
6790 uintmax_t i = (uintmax_t) -1;
6795 if ac_fn_c_try_compile "$LINENO"; then :
6796 jm_ac_cv_header_stdint_h=yes
6798 jm_ac_cv_header_stdint_h=no
6800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_stdint_h" >&5
6803 $as_echo "$jm_ac_cv_header_stdint_h" >&6; }
6804 if test $jm_ac_cv_header_stdint_h = yes; then
6806 cat >>confdefs.h <<_ACEOF
6807 #define HAVE_STDINT_H_WITH_UINTMAX 1
6815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
6816 $as_echo_n "checking for intmax_t... " >&6; }
6817 if ${gt_cv_c_intmax_t+:} false; then :
6818 $as_echo_n "(cached) " >&6
6820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6821 /* end confdefs.h. */
6825 #if HAVE_STDINT_H_WITH_UINTMAX
6828 #if HAVE_INTTYPES_H_WITH_UINTMAX
6829 #include <inttypes.h>
6840 if ac_fn_c_try_compile "$LINENO"; then :
6841 gt_cv_c_intmax_t=yes
6845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
6848 $as_echo "$gt_cv_c_intmax_t" >&6; }
6849 if test $gt_cv_c_intmax_t = yes; then
6851 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
6858 $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
6859 if ${gt_cv_func_printf_posix+:} false; then :
6860 $as_echo_n "(cached) " >&6
6863 if test "$cross_compiling" = yes; then :
6865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6866 /* end confdefs.h. */
6868 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
6873 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6874 $EGREP "notposix" >/dev/null 2>&1; then :
6875 gt_cv_func_printf_posix="guessing no"
6877 gt_cv_func_printf_posix="guessing yes"
6883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6884 /* end confdefs.h. */
6888 /* The string "%2$d %1$d", with dollar characters protected from the shell's
6889 dollar expansion (possibly an autoconf bug). */
6890 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
6891 static char buf[100];
6894 sprintf (buf, format, 33, 55);
6895 return (strcmp (buf, "55 33") != 0);
6898 if ac_fn_c_try_run "$LINENO"; then :
6899 gt_cv_func_printf_posix=yes
6901 gt_cv_func_printf_posix=no
6903 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6904 conftest.$ac_objext conftest.beam conftest.$ac_ext
6909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
6910 $as_echo "$gt_cv_func_printf_posix" >&6; }
6911 case $gt_cv_func_printf_posix in
6914 $as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
6919 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6920 # for constant arguments. Useless!
6921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
6922 $as_echo_n "checking for working alloca.h... " >&6; }
6923 if ${ac_cv_working_alloca_h+:} false; then :
6924 $as_echo_n "(cached) " >&6
6926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6927 /* end confdefs.h. */
6932 char *p = (char *) alloca (2 * sizeof (int));
6938 if ac_fn_c_try_link "$LINENO"; then :
6939 ac_cv_working_alloca_h=yes
6941 ac_cv_working_alloca_h=no
6943 rm -f core conftest.err conftest.$ac_objext \
6944 conftest$ac_exeext conftest.$ac_ext
6946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
6947 $as_echo "$ac_cv_working_alloca_h" >&6; }
6948 if test $ac_cv_working_alloca_h = yes; then
6950 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
6954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
6955 $as_echo_n "checking for alloca... " >&6; }
6956 if ${ac_cv_func_alloca_works+:} false; then :
6957 $as_echo_n "(cached) " >&6
6959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6960 /* end confdefs.h. */
6962 # define alloca __builtin_alloca
6965 # include <malloc.h>
6966 # define alloca _alloca
6968 # ifdef HAVE_ALLOCA_H
6969 # include <alloca.h>
6974 # ifndef alloca /* predefined by HP cc +Olibcalls */
6975 void *alloca (size_t);
6985 char *p = (char *) alloca (1);
6991 if ac_fn_c_try_link "$LINENO"; then :
6992 ac_cv_func_alloca_works=yes
6994 ac_cv_func_alloca_works=no
6996 rm -f core conftest.err conftest.$ac_objext \
6997 conftest$ac_exeext conftest.$ac_ext
6999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
7000 $as_echo "$ac_cv_func_alloca_works" >&6; }
7002 if test $ac_cv_func_alloca_works = yes; then
7004 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
7007 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
7008 # that cause trouble. Some versions do not even contain alloca or
7009 # contain a buggy version. If you still want to use their alloca,
7010 # use ar to extract alloca.o from them instead of compiling alloca.c.
7012 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
7014 $as_echo "#define C_ALLOCA 1" >>confdefs.h
7017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
7018 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
7019 if ${ac_cv_os_cray+:} false; then :
7020 $as_echo_n "(cached) " >&6
7022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7023 /* end confdefs.h. */
7024 #if defined CRAY && ! defined CRAY2
7031 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7032 $EGREP "webecray" >/dev/null 2>&1; then :
7040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
7041 $as_echo "$ac_cv_os_cray" >&6; }
7042 if test $ac_cv_os_cray = yes; then
7043 for ac_func in _getb67 GETB67 getb67; do
7044 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7045 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7046 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7048 cat >>confdefs.h <<_ACEOF
7049 #define CRAY_STACKSEG_END $ac_func
7058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
7059 $as_echo_n "checking stack direction for C alloca... " >&6; }
7060 if ${ac_cv_c_stack_direction+:} false; then :
7061 $as_echo_n "(cached) " >&6
7063 if test "$cross_compiling" = yes; then :
7064 ac_cv_c_stack_direction=0
7066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7067 /* end confdefs.h. */
7068 $ac_includes_default
7070 find_stack_direction (int *addr, int depth)
7075 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
7076 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
7081 main (int argc, char **argv)
7083 return find_stack_direction (0, argc + !argv + 20) < 0;
7086 if ac_fn_c_try_run "$LINENO"; then :
7087 ac_cv_c_stack_direction=1
7089 ac_cv_c_stack_direction=-1
7091 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7092 conftest.$ac_objext conftest.beam conftest.$ac_ext
7096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
7097 $as_echo "$ac_cv_c_stack_direction" >&6; }
7098 cat >>confdefs.h <<_ACEOF
7099 #define STACK_DIRECTION $ac_cv_c_stack_direction
7108 for ac_header in $ac_header_list
7110 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7111 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7113 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7114 cat >>confdefs.h <<_ACEOF
7115 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7129 for ac_func in getpagesize
7131 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
7132 if test "x$ac_cv_func_getpagesize" = xyes; then :
7133 cat >>confdefs.h <<_ACEOF
7134 #define HAVE_GETPAGESIZE 1
7140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
7141 $as_echo_n "checking for working mmap... " >&6; }
7142 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
7143 $as_echo_n "(cached) " >&6
7145 if test "$cross_compiling" = yes; then :
7146 ac_cv_func_mmap_fixed_mapped=no
7148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7149 /* end confdefs.h. */
7150 $ac_includes_default
7151 /* malloc might have been renamed as rpl_malloc. */
7154 /* Thanks to Mike Haertel and Jim Avera for this test.
7155 Here is a matrix of mmap possibilities:
7156 mmap private not fixed
7157 mmap private fixed at somewhere currently unmapped
7158 mmap private fixed at somewhere already mapped
7159 mmap shared not fixed
7160 mmap shared fixed at somewhere currently unmapped
7161 mmap shared fixed at somewhere already mapped
7162 For private mappings, we should verify that changes cannot be read()
7163 back from the file, nor mmap's back from the file at a different
7164 address. (There have been systems where private was not correctly
7165 implemented like the infamous i386 svr4.0, and systems where the
7166 VM page cache was not coherent with the file system buffer cache
7167 like early versions of FreeBSD and possibly contemporary NetBSD.)
7168 For shared mappings, we should conversely verify that changes get
7169 propagated back to all the places they're supposed to be.
7171 Grep wants private fixed already mapped.
7172 The main things grep needs to know about mmap are:
7173 * does it exist and is it safe to write into the mmap'd area
7174 * how to use it (BSD variants) */
7177 #include <sys/mman.h>
7179 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7183 /* This mess was copied from the GNU getpagesize.h. */
7184 #ifndef HAVE_GETPAGESIZE
7185 # ifdef _SC_PAGESIZE
7186 # define getpagesize() sysconf(_SC_PAGESIZE)
7187 # else /* no _SC_PAGESIZE */
7188 # ifdef HAVE_SYS_PARAM_H
7189 # include <sys/param.h>
7190 # ifdef EXEC_PAGESIZE
7191 # define getpagesize() EXEC_PAGESIZE
7192 # else /* no EXEC_PAGESIZE */
7194 # define getpagesize() NBPG * CLSIZE
7197 # endif /* no CLSIZE */
7198 # else /* no NBPG */
7200 # define getpagesize() NBPC
7201 # else /* no NBPC */
7203 # define getpagesize() PAGESIZE
7204 # endif /* PAGESIZE */
7205 # endif /* no NBPC */
7206 # endif /* no NBPG */
7207 # endif /* no EXEC_PAGESIZE */
7208 # else /* no HAVE_SYS_PARAM_H */
7209 # define getpagesize() 8192 /* punt totally */
7210 # endif /* no HAVE_SYS_PARAM_H */
7211 # endif /* no _SC_PAGESIZE */
7213 #endif /* no HAVE_GETPAGESIZE */
7218 char *data, *data2, *data3;
7223 pagesize = getpagesize ();
7225 /* First, make a file with some known garbage in it. */
7226 data = (char *) malloc (pagesize);
7229 for (i = 0; i < pagesize; ++i)
7230 *(data + i) = rand ();
7232 fd = creat ("conftest.mmap", 0600);
7235 if (write (fd, data, pagesize) != pagesize)
7239 /* Next, check that the tail of a page is zero-filled. File must have
7240 non-zero length, otherwise we risk SIGBUS for entire page. */
7241 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7245 if (write (fd2, cdata2, 1) != 1)
7247 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7248 if (data2 == MAP_FAILED)
7250 for (i = 0; i < pagesize; ++i)
7254 if (munmap (data2, pagesize))
7257 /* Next, try to mmap the file at a fixed address which already has
7258 something else allocated at it. If we can, also make sure that
7259 we see the same garbage. */
7260 fd = open ("conftest.mmap", O_RDWR);
7263 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7264 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7266 for (i = 0; i < pagesize; ++i)
7267 if (*(data + i) != *(data2 + i))
7270 /* Finally, make sure that changes to the mapped area do not
7271 percolate back to the file as seen by read(). (This is a bug on
7272 some variants of i386 svr4.0.) */
7273 for (i = 0; i < pagesize; ++i)
7274 *(data2 + i) = *(data2 + i) + 1;
7275 data3 = (char *) malloc (pagesize);
7278 if (read (fd, data3, pagesize) != pagesize)
7280 for (i = 0; i < pagesize; ++i)
7281 if (*(data + i) != *(data3 + i))
7287 if ac_fn_c_try_run "$LINENO"; then :
7288 ac_cv_func_mmap_fixed_mapped=yes
7290 ac_cv_func_mmap_fixed_mapped=no
7292 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7293 conftest.$ac_objext conftest.beam conftest.$ac_ext
7297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
7298 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
7299 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7301 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
7304 rm -f conftest.mmap conftest.txt
7307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
7308 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
7309 if ${ac_cv_gnu_library_2_1+:} false; then :
7310 $as_echo_n "(cached) " >&6
7312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7313 /* end confdefs.h. */
7315 #include <features.h>
7316 #ifdef __GNU_LIBRARY__
7317 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
7323 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7324 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
7325 ac_cv_gnu_library_2_1=yes
7327 ac_cv_gnu_library_2_1=no
7334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
7335 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
7337 GLIBC21="$ac_cv_gnu_library_2_1"
7342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
7343 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
7344 if ${gt_cv_int_divbyzero_sigfpe+:} false; then :
7345 $as_echo_n "(cached) " >&6
7348 if test "$cross_compiling" = yes; then :
7350 # Guess based on the CPU.
7352 alpha* | i3456786 | m68k | s390*)
7353 gt_cv_int_divbyzero_sigfpe="guessing yes";;
7355 gt_cv_int_divbyzero_sigfpe="guessing no";;
7359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7360 /* end confdefs.h. */
7367 sigfpe_handler (int sig)
7369 sigfpe_handler (sig) int sig;
7372 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
7373 exit (sig != SIGFPE);
7383 signal (SIGFPE, sigfpe_handler);
7384 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
7385 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
7386 signal (SIGTRAP, sigfpe_handler);
7388 /* Linux/SPARC yields signal SIGILL. */
7389 #if defined (__sparc__) && defined (__linux__)
7390 signal (SIGILL, sigfpe_handler);
7399 if ac_fn_c_try_run "$LINENO"; then :
7400 gt_cv_int_divbyzero_sigfpe=yes
7402 gt_cv_int_divbyzero_sigfpe=no
7404 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7405 conftest.$ac_objext conftest.beam conftest.$ac_ext
7410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
7411 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
7412 case "$gt_cv_int_divbyzero_sigfpe" in
7417 cat >>confdefs.h <<_ACEOF
7418 #define INTDIV0_RAISES_SIGFPE $value
7423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long" >&5
7424 $as_echo_n "checking for unsigned long long... " >&6; }
7425 if ${ac_cv_type_unsigned_long_long+:} false; then :
7426 $as_echo_n "(cached) " >&6
7428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7429 /* end confdefs.h. */
7430 unsigned long long ull = 1ULL; int i = 63;
7434 unsigned long long ullmax = (unsigned long long) -1;
7435 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
7440 if ac_fn_c_try_link "$LINENO"; then :
7441 ac_cv_type_unsigned_long_long=yes
7443 ac_cv_type_unsigned_long_long=no
7445 rm -f core conftest.err conftest.$ac_objext \
7446 conftest$ac_exeext conftest.$ac_ext
7448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long" >&5
7449 $as_echo "$ac_cv_type_unsigned_long_long" >&6; }
7450 if test $ac_cv_type_unsigned_long_long = yes; then
7452 $as_echo "#define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h
7459 if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
7461 test $ac_cv_type_unsigned_long_long = yes \
7462 && ac_type='unsigned long long' \
7463 || ac_type='unsigned long'
7465 cat >>confdefs.h <<_ACEOF
7466 #define uintmax_t $ac_type
7471 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
7476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
7477 $as_echo_n "checking for inttypes.h... " >&6; }
7478 if ${gt_cv_header_inttypes_h+:} false; then :
7479 $as_echo_n "(cached) " >&6
7482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7483 /* end confdefs.h. */
7484 #include <sys/types.h>
7485 #include <inttypes.h>
7494 if ac_fn_c_try_compile "$LINENO"; then :
7495 gt_cv_header_inttypes_h=yes
7497 gt_cv_header_inttypes_h=no
7499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_header_inttypes_h" >&5
7503 $as_echo "$gt_cv_header_inttypes_h" >&6; }
7504 if test $gt_cv_header_inttypes_h = yes; then
7506 cat >>confdefs.h <<_ACEOF
7507 #define HAVE_INTTYPES_H 1
7514 if test $gt_cv_header_inttypes_h = yes; then
7515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
7516 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
7517 if ${gt_cv_inttypes_pri_broken+:} false; then :
7518 $as_echo_n "(cached) " >&6
7521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7522 /* end confdefs.h. */
7523 #include <inttypes.h>
7536 if ac_fn_c_try_compile "$LINENO"; then :
7537 gt_cv_inttypes_pri_broken=no
7539 gt_cv_inttypes_pri_broken=yes
7541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
7545 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
7547 if test "$gt_cv_inttypes_pri_broken" = yes; then
7549 cat >>confdefs.h <<_ACEOF
7550 #define PRI_MACROS_BROKEN 1
7556 for ac_header in stdint.h
7558 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
7559 if test "x$ac_cv_header_stdint_h" = xyes; then :
7560 cat >>confdefs.h <<_ACEOF
7561 #define HAVE_STDINT_H 1
7568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
7569 $as_echo_n "checking for SIZE_MAX... " >&6; }
7571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7572 /* end confdefs.h. */
7583 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7584 $EGREP "Found it" >/dev/null 2>&1; then :
7589 if test -z "$result"; then
7590 if ac_fn_c_compute_int "$LINENO" "~(size_t)0 / 10" "res_hi" "#include <stddef.h>"; then :
7597 if ac_fn_c_compute_int "$LINENO" "~(size_t)0 % 10" "res_lo" "#include <stddef.h>"; then :
7604 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then :
7611 if test "$fits_in_uint" = 1; then
7612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7613 /* end confdefs.h. */
7616 extern unsigned long foo;
7626 if ac_fn_c_try_compile "$LINENO"; then :
7629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7631 if test -z "$result"; then
7632 if test "$fits_in_uint" = 1; then
7633 result="$res_hi$res_lo"U
7635 result="$res_hi$res_lo"UL
7641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
7642 $as_echo "$result" >&6; }
7643 if test "$result" != yes; then
7645 cat >>confdefs.h <<_ACEOF
7646 #define SIZE_MAX $result
7653 for ac_header in stdint.h
7655 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
7656 if test "x$ac_cv_header_stdint_h" = xyes; then :
7657 cat >>confdefs.h <<_ACEOF
7658 #define HAVE_STDINT_H 1
7667 if test "X$prefix" = "XNONE"; then
7668 acl_final_prefix="$ac_default_prefix"
7670 acl_final_prefix="$prefix"
7672 if test "X$exec_prefix" = "XNONE"; then
7673 acl_final_exec_prefix='${prefix}'
7675 acl_final_exec_prefix="$exec_prefix"
7677 acl_save_prefix="$prefix"
7678 prefix="$acl_final_prefix"
7679 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7680 prefix="$acl_save_prefix"
7683 # Check whether --with-gnu-ld was given.
7684 if test "${with_gnu_ld+set}" = set; then :
7685 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7690 # Prepare PATH_SEPARATOR.
7691 # The user is always right.
7692 if test "${PATH_SEPARATOR+set}" != set; then
7693 echo "#! /bin/sh" >conf$$.sh
7694 echo "exit 0" >>conf$$.sh
7696 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7704 if test "$GCC" = yes; then
7705 # Check if gcc -print-prog-name=ld gives a path.
7706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
7707 $as_echo_n "checking for ld used by GCC... " >&6; }
7710 # gcc leaves a trailing carriage return which upsets mingw
7711 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7713 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7716 # Accept absolute paths.
7717 [\\/]* | [A-Za-z]:[\\/]*)
7718 re_direlt='/[^/][^/]*/\.\./'
7719 # Canonicalize the path of ld
7720 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
7721 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
7722 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
7724 test -z "$LD" && LD="$ac_prog"
7727 # If it fails, then pretend we aren't using GCC.
7731 # If it is relative, then search for the first ld in PATH.
7735 elif test "$with_gnu_ld" = yes; then
7736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7737 $as_echo_n "checking for GNU ld... " >&6; }
7739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7740 $as_echo_n "checking for non-GNU ld... " >&6; }
7742 if ${acl_cv_path_LD+:} false; then :
7743 $as_echo_n "(cached) " >&6
7745 if test -z "$LD"; then
7746 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
7747 for ac_dir in $PATH; do
7748 test -z "$ac_dir" && ac_dir=.
7749 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7750 acl_cv_path_LD="$ac_dir/$ac_prog"
7751 # Check to see if the program is GNU ld. I'd rather use --version,
7752 # but apparently some GNU ld's only accept -v.
7753 # Break only if it was the GNU/non-GNU ld that we prefer.
7754 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
7755 *GNU* | *'with BFD'*)
7756 test "$with_gnu_ld" != no && break ;;
7758 test "$with_gnu_ld" != yes && break ;;
7764 acl_cv_path_LD="$LD" # Let the user override the test with a path.
7768 LD="$acl_cv_path_LD"
7769 if test -n "$LD"; then
7770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7771 $as_echo "$LD" >&6; }
7773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7774 $as_echo "no" >&6; }
7776 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7778 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7779 if ${acl_cv_prog_gnu_ld+:} false; then :
7780 $as_echo_n "(cached) " >&6
7782 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
7783 case `$LD -v 2>&1 </dev/null` in
7784 *GNU* | *'with BFD'*)
7785 acl_cv_prog_gnu_ld=yes ;;
7787 acl_cv_prog_gnu_ld=no ;;
7790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
7791 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
7792 with_gnu_ld=$acl_cv_prog_gnu_ld
7796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
7797 $as_echo_n "checking for shared library run path origin... " >&6; }
7798 if ${acl_cv_rpath+:} false; then :
7799 $as_echo_n "(cached) " >&6
7802 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
7803 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
7810 $as_echo "$acl_cv_rpath" >&6; }
7812 libext="$acl_cv_libext"
7813 shlibext="$acl_cv_shlibext"
7814 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
7815 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
7816 hardcode_direct="$acl_cv_hardcode_direct"
7817 hardcode_minus_L="$acl_cv_hardcode_minus_L"
7818 # Check whether --enable-rpath was given.
7819 if test "${enable_rpath+set}" = set; then :
7820 enableval=$enable_rpath; :
7834 acl_save_prefix="$prefix"
7835 prefix="$acl_final_prefix"
7836 acl_save_exec_prefix="$exec_prefix"
7837 exec_prefix="$acl_final_exec_prefix"
7839 eval additional_includedir=\"$includedir\"
7840 eval additional_libdir=\"$libdir\"
7842 exec_prefix="$acl_save_exec_prefix"
7843 prefix="$acl_save_prefix"
7846 # Check whether --with-libiconv-prefix was given.
7847 if test "${with_libiconv_prefix+set}" = set; then :
7848 withval=$with_libiconv_prefix;
7849 if test "X$withval" = "Xno"; then
7852 if test "X$withval" = "X"; then
7854 acl_save_prefix="$prefix"
7855 prefix="$acl_final_prefix"
7856 acl_save_exec_prefix="$exec_prefix"
7857 exec_prefix="$acl_final_exec_prefix"
7859 eval additional_includedir=\"$includedir\"
7860 eval additional_libdir=\"$libdir\"
7862 exec_prefix="$acl_save_exec_prefix"
7863 prefix="$acl_save_prefix"
7866 additional_includedir="$withval/include"
7867 additional_libdir="$withval/lib"
7878 names_already_handled=
7879 names_next_round='iconv '
7880 while test -n "$names_next_round"; do
7881 names_this_round="$names_next_round"
7883 for name in $names_this_round; do
7885 for n in $names_already_handled; do
7886 if test "$n" = "$name"; then
7891 if test -z "$already_handled"; then
7892 names_already_handled="$names_already_handled $name"
7893 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7894 eval value=\"\$HAVE_LIB$uppername\"
7895 if test -n "$value"; then
7896 if test "$value" = yes; then
7897 eval value=\"\$LIB$uppername\"
7898 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
7899 eval value=\"\$LTLIB$uppername\"
7900 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
7909 if test $use_additional = yes; then
7910 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
7911 found_dir="$additional_libdir"
7912 found_so="$additional_libdir/lib$name.$shlibext"
7913 if test -f "$additional_libdir/lib$name.la"; then
7914 found_la="$additional_libdir/lib$name.la"
7917 if test -f "$additional_libdir/lib$name.$libext"; then
7918 found_dir="$additional_libdir"
7919 found_a="$additional_libdir/lib$name.$libext"
7920 if test -f "$additional_libdir/lib$name.la"; then
7921 found_la="$additional_libdir/lib$name.la"
7926 if test "X$found_dir" = "X"; then
7927 for x in $LDFLAGS $LTLIBICONV; do
7929 acl_save_prefix="$prefix"
7930 prefix="$acl_final_prefix"
7931 acl_save_exec_prefix="$exec_prefix"
7932 exec_prefix="$acl_final_exec_prefix"
7934 exec_prefix="$acl_save_exec_prefix"
7935 prefix="$acl_save_prefix"
7939 dir=`echo "X$x" | sed -e 's/^X-L//'`
7940 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
7942 found_so="$dir/lib$name.$shlibext"
7943 if test -f "$dir/lib$name.la"; then
7944 found_la="$dir/lib$name.la"
7947 if test -f "$dir/lib$name.$libext"; then
7949 found_a="$dir/lib$name.$libext"
7950 if test -f "$dir/lib$name.la"; then
7951 found_la="$dir/lib$name.la"
7957 if test "X$found_dir" != "X"; then
7962 if test "X$found_dir" != "X"; then
7963 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
7964 if test "X$found_so" != "X"; then
7965 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
7966 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7969 for x in $ltrpathdirs; do
7970 if test "X$x" = "X$found_dir"; then
7975 if test -z "$haveit"; then
7976 ltrpathdirs="$ltrpathdirs $found_dir"
7978 if test "$hardcode_direct" = yes; then
7979 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7981 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
7982 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7984 for x in $rpathdirs; do
7985 if test "X$x" = "X$found_dir"; then
7990 if test -z "$haveit"; then
7991 rpathdirs="$rpathdirs $found_dir"
7995 for x in $LDFLAGS $LIBICONV; do
7997 acl_save_prefix="$prefix"
7998 prefix="$acl_final_prefix"
7999 acl_save_exec_prefix="$exec_prefix"
8000 exec_prefix="$acl_final_exec_prefix"
8002 exec_prefix="$acl_save_exec_prefix"
8003 prefix="$acl_save_prefix"
8005 if test "X$x" = "X-L$found_dir"; then
8010 if test -z "$haveit"; then
8011 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
8013 if test "$hardcode_minus_L" != no; then
8014 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8016 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8022 if test "X$found_a" != "X"; then
8023 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
8025 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
8028 additional_includedir=
8029 case "$found_dir" in
8031 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
8032 additional_includedir="$basedir/include"
8035 if test "X$additional_includedir" != "X"; then
8036 if test "X$additional_includedir" != "X/usr/include"; then
8038 if test "X$additional_includedir" = "X/usr/local/include"; then
8039 if test -n "$GCC"; then
8041 linux*) haveit=yes;;
8045 if test -z "$haveit"; then
8046 for x in $CPPFLAGS $INCICONV; do
8048 acl_save_prefix="$prefix"
8049 prefix="$acl_final_prefix"
8050 acl_save_exec_prefix="$exec_prefix"
8051 exec_prefix="$acl_final_exec_prefix"
8053 exec_prefix="$acl_save_exec_prefix"
8054 prefix="$acl_save_prefix"
8056 if test "X$x" = "X-I$additional_includedir"; then
8061 if test -z "$haveit"; then
8062 if test -d "$additional_includedir"; then
8063 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
8069 if test -n "$found_la"; then
8070 save_libdir="$libdir"
8072 */* | *\\*) . "$found_la" ;;
8073 *) . "./$found_la" ;;
8075 libdir="$save_libdir"
8076 for dep in $dependency_libs; do
8079 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8080 if test "X$additional_libdir" != "X/usr/lib"; then
8082 if test "X$additional_libdir" = "X/usr/local/lib"; then
8083 if test -n "$GCC"; then
8085 linux*) haveit=yes;;
8089 if test -z "$haveit"; then
8091 for x in $LDFLAGS $LIBICONV; do
8093 acl_save_prefix="$prefix"
8094 prefix="$acl_final_prefix"
8095 acl_save_exec_prefix="$exec_prefix"
8096 exec_prefix="$acl_final_exec_prefix"
8098 exec_prefix="$acl_save_exec_prefix"
8099 prefix="$acl_save_prefix"
8101 if test "X$x" = "X-L$additional_libdir"; then
8106 if test -z "$haveit"; then
8107 if test -d "$additional_libdir"; then
8108 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
8112 for x in $LDFLAGS $LTLIBICONV; do
8114 acl_save_prefix="$prefix"
8115 prefix="$acl_final_prefix"
8116 acl_save_exec_prefix="$exec_prefix"
8117 exec_prefix="$acl_final_exec_prefix"
8119 exec_prefix="$acl_save_exec_prefix"
8120 prefix="$acl_save_prefix"
8122 if test "X$x" = "X-L$additional_libdir"; then
8127 if test -z "$haveit"; then
8128 if test -d "$additional_libdir"; then
8129 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
8136 dir=`echo "X$dep" | sed -e 's/^X-R//'`
8137 if test "$enable_rpath" != no; then
8139 for x in $rpathdirs; do
8140 if test "X$x" = "X$dir"; then
8145 if test -z "$haveit"; then
8146 rpathdirs="$rpathdirs $dir"
8149 for x in $ltrpathdirs; do
8150 if test "X$x" = "X$dir"; then
8155 if test -z "$haveit"; then
8156 ltrpathdirs="$ltrpathdirs $dir"
8161 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8164 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8167 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
8168 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
8174 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8175 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
8181 if test "X$rpathdirs" != "X"; then
8182 if test -n "$hardcode_libdir_separator"; then
8184 for found_dir in $rpathdirs; do
8185 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8187 acl_save_libdir="$libdir"
8189 eval flag=\"$hardcode_libdir_flag_spec\"
8190 libdir="$acl_save_libdir"
8191 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8193 for found_dir in $rpathdirs; do
8194 acl_save_libdir="$libdir"
8196 eval flag=\"$hardcode_libdir_flag_spec\"
8197 libdir="$acl_save_libdir"
8198 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8202 if test "X$ltrpathdirs" != "X"; then
8203 for found_dir in $ltrpathdirs; do
8204 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
8215 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
8216 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
8220 $as_echo "#define ptrdiff_t long" >>confdefs.h
8225 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
8226 stdlib.h string.h unistd.h sys/param.h
8228 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8229 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8230 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8231 cat >>confdefs.h <<_ACEOF
8232 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8239 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
8240 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
8241 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
8244 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8245 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8246 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8247 cat >>confdefs.h <<_ACEOF
8248 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snprintf is declared" >&5
8257 $as_echo_n "checking whether _snprintf is declared... " >&6; }
8258 if ${ac_cv_have_decl__snprintf+:} false; then :
8259 $as_echo_n "(cached) " >&6
8261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8262 /* end confdefs.h. */
8269 char *p = (char *) _snprintf;
8276 if ac_fn_c_try_compile "$LINENO"; then :
8277 ac_cv_have_decl__snprintf=yes
8279 ac_cv_have_decl__snprintf=no
8281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snprintf" >&5
8284 $as_echo "$ac_cv_have_decl__snprintf" >&6; }
8285 if test $ac_cv_have_decl__snprintf = yes; then
8291 cat >>confdefs.h <<_ACEOF
8292 #define HAVE_DECL__SNPRINTF $gt_value
8297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snwprintf is declared" >&5
8298 $as_echo_n "checking whether _snwprintf is declared... " >&6; }
8299 if ${ac_cv_have_decl__snwprintf+:} false; then :
8300 $as_echo_n "(cached) " >&6
8302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8303 /* end confdefs.h. */
8310 char *p = (char *) _snwprintf;
8317 if ac_fn_c_try_compile "$LINENO"; then :
8318 ac_cv_have_decl__snwprintf=yes
8320 ac_cv_have_decl__snwprintf=no
8322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snwprintf" >&5
8325 $as_echo "$ac_cv_have_decl__snwprintf" >&6; }
8326 if test $ac_cv_have_decl__snwprintf = yes; then
8332 cat >>confdefs.h <<_ACEOF
8333 #define HAVE_DECL__SNWPRINTF $gt_value
8339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether feof_unlocked is declared" >&5
8340 $as_echo_n "checking whether feof_unlocked is declared... " >&6; }
8341 if ${ac_cv_have_decl_feof_unlocked+:} false; then :
8342 $as_echo_n "(cached) " >&6
8344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8345 /* end confdefs.h. */
8351 #ifndef feof_unlocked
8352 char *p = (char *) feof_unlocked;
8359 if ac_fn_c_try_compile "$LINENO"; then :
8360 ac_cv_have_decl_feof_unlocked=yes
8362 ac_cv_have_decl_feof_unlocked=no
8364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_feof_unlocked" >&5
8367 $as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
8368 if test $ac_cv_have_decl_feof_unlocked = yes; then
8374 cat >>confdefs.h <<_ACEOF
8375 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
8380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fgets_unlocked is declared" >&5
8381 $as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
8382 if ${ac_cv_have_decl_fgets_unlocked+:} false; then :
8383 $as_echo_n "(cached) " >&6
8385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8386 /* end confdefs.h. */
8392 #ifndef fgets_unlocked
8393 char *p = (char *) fgets_unlocked;
8400 if ac_fn_c_try_compile "$LINENO"; then :
8401 ac_cv_have_decl_fgets_unlocked=yes
8403 ac_cv_have_decl_fgets_unlocked=no
8405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_fgets_unlocked" >&5
8408 $as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
8409 if test $ac_cv_have_decl_fgets_unlocked = yes; then
8415 cat >>confdefs.h <<_ACEOF
8416 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
8421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getc_unlocked is declared" >&5
8422 $as_echo_n "checking whether getc_unlocked is declared... " >&6; }
8423 if ${ac_cv_have_decl_getc_unlocked+:} false; then :
8424 $as_echo_n "(cached) " >&6
8426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8427 /* end confdefs.h. */
8433 #ifndef getc_unlocked
8434 char *p = (char *) getc_unlocked;
8441 if ac_fn_c_try_compile "$LINENO"; then :
8442 ac_cv_have_decl_getc_unlocked=yes
8444 ac_cv_have_decl_getc_unlocked=no
8446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_getc_unlocked" >&5
8449 $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
8450 if test $ac_cv_have_decl_getc_unlocked = yes; then
8456 cat >>confdefs.h <<_ACEOF
8457 #define HAVE_DECL_GETC_UNLOCKED $gt_value
8462 case $gt_cv_func_printf_posix in
8463 *yes) HAVE_POSIX_PRINTF=1 ;;
8464 *) HAVE_POSIX_PRINTF=0 ;;
8467 if test "$ac_cv_func_asprintf" = yes; then
8473 if test "$ac_cv_func_snprintf" = yes; then
8479 if test "$ac_cv_func_wprintf" = yes; then
8491 am_save_CPPFLAGS="$CPPFLAGS"
8493 for element in $INCICONV; do
8495 for x in $CPPFLAGS; do
8497 acl_save_prefix="$prefix"
8498 prefix="$acl_final_prefix"
8499 acl_save_exec_prefix="$exec_prefix"
8500 exec_prefix="$acl_final_exec_prefix"
8502 exec_prefix="$acl_save_exec_prefix"
8503 prefix="$acl_save_prefix"
8505 if test "X$x" = "X$element"; then
8510 if test -z "$haveit"; then
8511 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
8517 $as_echo_n "checking for iconv... " >&6; }
8518 if ${am_cv_func_iconv+:} false; then :
8519 $as_echo_n "(cached) " >&6
8522 am_cv_func_iconv="no, consider installing GNU libiconv"
8524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8525 /* end confdefs.h. */
8531 iconv_t cd = iconv_open("","");
8532 iconv(cd,NULL,NULL,NULL,NULL);
8538 if ac_fn_c_try_link "$LINENO"; then :
8539 am_cv_func_iconv=yes
8541 rm -f core conftest.err conftest.$ac_objext \
8542 conftest$ac_exeext conftest.$ac_ext
8543 if test "$am_cv_func_iconv" != yes; then
8544 am_save_LIBS="$LIBS"
8545 LIBS="$LIBS $LIBICONV"
8546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8547 /* end confdefs.h. */
8553 iconv_t cd = iconv_open("","");
8554 iconv(cd,NULL,NULL,NULL,NULL);
8560 if ac_fn_c_try_link "$LINENO"; then :
8562 am_cv_func_iconv=yes
8564 rm -f core conftest.err conftest.$ac_objext \
8565 conftest$ac_exeext conftest.$ac_ext
8566 LIBS="$am_save_LIBS"
8570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
8571 $as_echo "$am_cv_func_iconv" >&6; }
8572 if test "$am_cv_func_iconv" = yes; then
8574 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
8577 if test "$am_cv_lib_iconv" = yes; then
8578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
8579 $as_echo_n "checking how to link with libiconv... " >&6; }
8580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
8581 $as_echo "$LIBICONV" >&6; }
8583 CPPFLAGS="$am_save_CPPFLAGS"
8590 if test "$am_cv_func_iconv" = yes; then
8591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
8592 $as_echo_n "checking for iconv declaration... " >&6; }
8593 if ${am_cv_proto_iconv+:} false; then :
8594 $as_echo_n "(cached) " >&6
8597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8598 /* end confdefs.h. */
8606 #if defined(__STDC__) || defined(__cplusplus)
8607 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
8620 if ac_fn_c_try_compile "$LINENO"; then :
8621 am_cv_proto_iconv_arg1=""
8623 am_cv_proto_iconv_arg1="const"
8625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8626 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);"
8629 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
8630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
8631 }$am_cv_proto_iconv" >&5
8633 }$am_cv_proto_iconv" >&6; }
8635 cat >>confdefs.h <<_ACEOF
8636 #define ICONV_CONST $am_cv_proto_iconv_arg1
8642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
8643 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
8644 if ${am_cv_langinfo_codeset+:} false; then :
8645 $as_echo_n "(cached) " >&6
8647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8648 /* end confdefs.h. */
8649 #include <langinfo.h>
8653 char* cs = nl_langinfo(CODESET);
8658 if ac_fn_c_try_link "$LINENO"; then :
8659 am_cv_langinfo_codeset=yes
8661 am_cv_langinfo_codeset=no
8663 rm -f core conftest.err conftest.$ac_objext \
8664 conftest$ac_exeext conftest.$ac_ext
8667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
8668 $as_echo "$am_cv_langinfo_codeset" >&6; }
8669 if test $am_cv_langinfo_codeset = yes; then
8671 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
8675 if test $ac_cv_header_locale_h = yes; then
8677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
8678 $as_echo_n "checking for LC_MESSAGES... " >&6; }
8679 if ${am_cv_val_LC_MESSAGES+:} false; then :
8680 $as_echo_n "(cached) " >&6
8682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8683 /* end confdefs.h. */
8693 if ac_fn_c_try_link "$LINENO"; then :
8694 am_cv_val_LC_MESSAGES=yes
8696 am_cv_val_LC_MESSAGES=no
8698 rm -f core conftest.err conftest.$ac_objext \
8699 conftest$ac_exeext conftest.$ac_ext
8701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
8702 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
8703 if test $am_cv_val_LC_MESSAGES = yes; then
8705 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
8711 for ac_prog in bison
8713 # Extract the first word of "$ac_prog", so it can be a program name with args.
8714 set dummy $ac_prog; ac_word=$2
8715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8716 $as_echo_n "checking for $ac_word... " >&6; }
8717 if ${ac_cv_prog_INTLBISON+:} false; then :
8718 $as_echo_n "(cached) " >&6
8720 if test -n "$INTLBISON"; then
8721 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
8723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8727 test -z "$as_dir" && as_dir=.
8728 for ac_exec_ext in '' $ac_executable_extensions; do
8729 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8730 ac_cv_prog_INTLBISON="$ac_prog"
8731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8740 INTLBISON=$ac_cv_prog_INTLBISON
8741 if test -n "$INTLBISON"; then
8742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
8743 $as_echo "$INTLBISON" >&6; }
8745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8746 $as_echo "no" >&6; }
8750 test -n "$INTLBISON" && break
8753 if test -z "$INTLBISON"; then
8756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
8757 $as_echo_n "checking version of bison... " >&6; }
8758 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
8759 case $ac_prog_version in
8760 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
8761 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
8762 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
8763 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
8765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
8766 $as_echo "$ac_prog_version" >&6; }
8768 if test $ac_verc_fail = yes; then
8787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
8788 $as_echo_n "checking whether NLS is requested... " >&6; }
8789 # Check whether --enable-nls was given.
8790 if test "${enable_nls+set}" = set; then :
8791 enableval=$enable_nls; USE_NLS=$enableval
8796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
8797 $as_echo "$USE_NLS" >&6; }
8802 BUILD_INCLUDED_LIBINTL=no
8803 USE_INCLUDED_LIBINTL=no
8809 if test "$USE_NLS" = "yes"; then
8810 gt_use_preinstalled_gnugettext=no
8812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
8813 $as_echo_n "checking whether included gettext is requested... " >&6; }
8815 # Check whether --with-included-gettext was given.
8816 if test "${with_included_gettext+set}" = set; then :
8817 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
8819 nls_cv_force_use_gnu_gettext=no
8822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
8823 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
8825 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
8826 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
8833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
8834 $as_echo_n "checking for GNU gettext in libc... " >&6; }
8835 if ${gt_cv_func_gnugettext1_libc+:} false; then :
8836 $as_echo_n "(cached) " >&6
8838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8839 /* end confdefs.h. */
8840 #include <libintl.h>
8841 extern int _nl_msg_cat_cntr;
8842 extern int *_nl_domain_bindings;
8846 bindtextdomain ("", "");
8847 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
8852 if ac_fn_c_try_link "$LINENO"; then :
8853 gt_cv_func_gnugettext1_libc=yes
8855 gt_cv_func_gnugettext1_libc=no
8857 rm -f core conftest.err conftest.$ac_objext \
8858 conftest$ac_exeext conftest.$ac_ext
8860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
8861 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
8863 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
8869 acl_save_prefix="$prefix"
8870 prefix="$acl_final_prefix"
8871 acl_save_exec_prefix="$exec_prefix"
8872 exec_prefix="$acl_final_exec_prefix"
8874 eval additional_includedir=\"$includedir\"
8875 eval additional_libdir=\"$libdir\"
8877 exec_prefix="$acl_save_exec_prefix"
8878 prefix="$acl_save_prefix"
8881 # Check whether --with-libintl-prefix was given.
8882 if test "${with_libintl_prefix+set}" = set; then :
8883 withval=$with_libintl_prefix;
8884 if test "X$withval" = "Xno"; then
8887 if test "X$withval" = "X"; then
8889 acl_save_prefix="$prefix"
8890 prefix="$acl_final_prefix"
8891 acl_save_exec_prefix="$exec_prefix"
8892 exec_prefix="$acl_final_exec_prefix"
8894 eval additional_includedir=\"$includedir\"
8895 eval additional_libdir=\"$libdir\"
8897 exec_prefix="$acl_save_exec_prefix"
8898 prefix="$acl_save_prefix"
8901 additional_includedir="$withval/include"
8902 additional_libdir="$withval/lib"
8913 names_already_handled=
8914 names_next_round='intl '
8915 while test -n "$names_next_round"; do
8916 names_this_round="$names_next_round"
8918 for name in $names_this_round; do
8920 for n in $names_already_handled; do
8921 if test "$n" = "$name"; then
8926 if test -z "$already_handled"; then
8927 names_already_handled="$names_already_handled $name"
8928 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
8929 eval value=\"\$HAVE_LIB$uppername\"
8930 if test -n "$value"; then
8931 if test "$value" = yes; then
8932 eval value=\"\$LIB$uppername\"
8933 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
8934 eval value=\"\$LTLIB$uppername\"
8935 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
8944 if test $use_additional = yes; then
8945 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
8946 found_dir="$additional_libdir"
8947 found_so="$additional_libdir/lib$name.$shlibext"
8948 if test -f "$additional_libdir/lib$name.la"; then
8949 found_la="$additional_libdir/lib$name.la"
8952 if test -f "$additional_libdir/lib$name.$libext"; then
8953 found_dir="$additional_libdir"
8954 found_a="$additional_libdir/lib$name.$libext"
8955 if test -f "$additional_libdir/lib$name.la"; then
8956 found_la="$additional_libdir/lib$name.la"
8961 if test "X$found_dir" = "X"; then
8962 for x in $LDFLAGS $LTLIBINTL; do
8964 acl_save_prefix="$prefix"
8965 prefix="$acl_final_prefix"
8966 acl_save_exec_prefix="$exec_prefix"
8967 exec_prefix="$acl_final_exec_prefix"
8969 exec_prefix="$acl_save_exec_prefix"
8970 prefix="$acl_save_prefix"
8974 dir=`echo "X$x" | sed -e 's/^X-L//'`
8975 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
8977 found_so="$dir/lib$name.$shlibext"
8978 if test -f "$dir/lib$name.la"; then
8979 found_la="$dir/lib$name.la"
8982 if test -f "$dir/lib$name.$libext"; then
8984 found_a="$dir/lib$name.$libext"
8985 if test -f "$dir/lib$name.la"; then
8986 found_la="$dir/lib$name.la"
8992 if test "X$found_dir" != "X"; then
8997 if test "X$found_dir" != "X"; then
8998 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
8999 if test "X$found_so" != "X"; then
9000 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9001 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9004 for x in $ltrpathdirs; do
9005 if test "X$x" = "X$found_dir"; then
9010 if test -z "$haveit"; then
9011 ltrpathdirs="$ltrpathdirs $found_dir"
9013 if test "$hardcode_direct" = yes; then
9014 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9016 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9017 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9019 for x in $rpathdirs; do
9020 if test "X$x" = "X$found_dir"; then
9025 if test -z "$haveit"; then
9026 rpathdirs="$rpathdirs $found_dir"
9030 for x in $LDFLAGS $LIBINTL; do
9032 acl_save_prefix="$prefix"
9033 prefix="$acl_final_prefix"
9034 acl_save_exec_prefix="$exec_prefix"
9035 exec_prefix="$acl_final_exec_prefix"
9037 exec_prefix="$acl_save_exec_prefix"
9038 prefix="$acl_save_prefix"
9040 if test "X$x" = "X-L$found_dir"; then
9045 if test -z "$haveit"; then
9046 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
9048 if test "$hardcode_minus_L" != no; then
9049 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9051 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
9057 if test "X$found_a" != "X"; then
9058 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
9060 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
9063 additional_includedir=
9064 case "$found_dir" in
9066 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9067 additional_includedir="$basedir/include"
9070 if test "X$additional_includedir" != "X"; then
9071 if test "X$additional_includedir" != "X/usr/include"; then
9073 if test "X$additional_includedir" = "X/usr/local/include"; then
9074 if test -n "$GCC"; then
9076 linux*) haveit=yes;;
9080 if test -z "$haveit"; then
9081 for x in $CPPFLAGS $INCINTL; do
9083 acl_save_prefix="$prefix"
9084 prefix="$acl_final_prefix"
9085 acl_save_exec_prefix="$exec_prefix"
9086 exec_prefix="$acl_final_exec_prefix"
9088 exec_prefix="$acl_save_exec_prefix"
9089 prefix="$acl_save_prefix"
9091 if test "X$x" = "X-I$additional_includedir"; then
9096 if test -z "$haveit"; then
9097 if test -d "$additional_includedir"; then
9098 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
9104 if test -n "$found_la"; then
9105 save_libdir="$libdir"
9107 */* | *\\*) . "$found_la" ;;
9108 *) . "./$found_la" ;;
9110 libdir="$save_libdir"
9111 for dep in $dependency_libs; do
9114 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9115 if test "X$additional_libdir" != "X/usr/lib"; then
9117 if test "X$additional_libdir" = "X/usr/local/lib"; then
9118 if test -n "$GCC"; then
9120 linux*) haveit=yes;;
9124 if test -z "$haveit"; then
9126 for x in $LDFLAGS $LIBINTL; do
9128 acl_save_prefix="$prefix"
9129 prefix="$acl_final_prefix"
9130 acl_save_exec_prefix="$exec_prefix"
9131 exec_prefix="$acl_final_exec_prefix"
9133 exec_prefix="$acl_save_exec_prefix"
9134 prefix="$acl_save_prefix"
9136 if test "X$x" = "X-L$additional_libdir"; then
9141 if test -z "$haveit"; then
9142 if test -d "$additional_libdir"; then
9143 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
9147 for x in $LDFLAGS $LTLIBINTL; do
9149 acl_save_prefix="$prefix"
9150 prefix="$acl_final_prefix"
9151 acl_save_exec_prefix="$exec_prefix"
9152 exec_prefix="$acl_final_exec_prefix"
9154 exec_prefix="$acl_save_exec_prefix"
9155 prefix="$acl_save_prefix"
9157 if test "X$x" = "X-L$additional_libdir"; then
9162 if test -z "$haveit"; then
9163 if test -d "$additional_libdir"; then
9164 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
9171 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9172 if test "$enable_rpath" != no; then
9174 for x in $rpathdirs; do
9175 if test "X$x" = "X$dir"; then
9180 if test -z "$haveit"; then
9181 rpathdirs="$rpathdirs $dir"
9184 for x in $ltrpathdirs; do
9185 if test "X$x" = "X$dir"; then
9190 if test -z "$haveit"; then
9191 ltrpathdirs="$ltrpathdirs $dir"
9196 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9199 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9202 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
9203 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
9209 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
9210 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
9216 if test "X$rpathdirs" != "X"; then
9217 if test -n "$hardcode_libdir_separator"; then
9219 for found_dir in $rpathdirs; do
9220 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9222 acl_save_libdir="$libdir"
9224 eval flag=\"$hardcode_libdir_flag_spec\"
9225 libdir="$acl_save_libdir"
9226 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
9228 for found_dir in $rpathdirs; do
9229 acl_save_libdir="$libdir"
9231 eval flag=\"$hardcode_libdir_flag_spec\"
9232 libdir="$acl_save_libdir"
9233 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
9237 if test "X$ltrpathdirs" != "X"; then
9238 for found_dir in $ltrpathdirs; do
9239 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
9243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
9244 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
9245 if ${gt_cv_func_gnugettext1_libintl+:} false; then :
9246 $as_echo_n "(cached) " >&6
9248 gt_save_CPPFLAGS="$CPPFLAGS"
9249 CPPFLAGS="$CPPFLAGS $INCINTL"
9250 gt_save_LIBS="$LIBS"
9251 LIBS="$LIBS $LIBINTL"
9252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9253 /* end confdefs.h. */
9254 #include <libintl.h>
9255 extern int _nl_msg_cat_cntr;
9260 const char *_nl_expand_alias ();
9264 bindtextdomain ("", "");
9265 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
9270 if ac_fn_c_try_link "$LINENO"; then :
9271 gt_cv_func_gnugettext1_libintl=yes
9273 gt_cv_func_gnugettext1_libintl=no
9275 rm -f core conftest.err conftest.$ac_objext \
9276 conftest$ac_exeext conftest.$ac_ext
9277 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
9278 LIBS="$LIBS $LIBICONV"
9279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9280 /* end confdefs.h. */
9281 #include <libintl.h>
9282 extern int _nl_msg_cat_cntr;
9287 const char *_nl_expand_alias ();
9291 bindtextdomain ("", "");
9292 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
9297 if ac_fn_c_try_link "$LINENO"; then :
9298 LIBINTL="$LIBINTL $LIBICONV"
9299 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
9300 gt_cv_func_gnugettext1_libintl=yes
9303 rm -f core conftest.err conftest.$ac_objext \
9304 conftest$ac_exeext conftest.$ac_ext
9306 CPPFLAGS="$gt_save_CPPFLAGS"
9307 LIBS="$gt_save_LIBS"
9309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
9310 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
9313 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
9314 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
9315 && test "$PACKAGE" != gettext-runtime \
9316 && test "$PACKAGE" != gettext-tools; }; then
9317 gt_use_preinstalled_gnugettext=yes
9325 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
9326 nls_cv_use_gnu_gettext=yes
9330 if test "$nls_cv_use_gnu_gettext" = "yes"; then
9331 BUILD_INCLUDED_LIBINTL=yes
9332 USE_INCLUDED_LIBINTL=yes
9333 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
9334 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
9335 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
9338 if test "$gt_use_preinstalled_gnugettext" = "yes" \
9339 || test "$nls_cv_use_gnu_gettext" = "yes"; then
9344 if test "$gt_use_preinstalled_gnugettext" = "yes" \
9345 || test "$nls_cv_use_gnu_gettext" = "yes"; then
9347 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
9354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
9355 $as_echo_n "checking whether to use NLS... " >&6; }
9356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
9357 $as_echo "$USE_NLS" >&6; }
9358 if test "$USE_NLS" = "yes"; then
9359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
9360 $as_echo_n "checking where the gettext function comes from... " >&6; }
9361 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
9362 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
9363 gt_source="external libintl"
9368 gt_source="included intl directory"
9370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
9371 $as_echo "$gt_source" >&6; }
9374 if test "$USE_NLS" = "yes"; then
9376 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
9377 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
9378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
9379 $as_echo_n "checking how to link with libintl... " >&6; }
9380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
9381 $as_echo "$LIBINTL" >&6; }
9383 for element in $INCINTL; do
9385 for x in $CPPFLAGS; do
9387 acl_save_prefix="$prefix"
9388 prefix="$acl_final_prefix"
9389 acl_save_exec_prefix="$exec_prefix"
9390 exec_prefix="$acl_final_exec_prefix"
9392 exec_prefix="$acl_save_exec_prefix"
9393 prefix="$acl_save_prefix"
9395 if test "X$x" = "X$element"; then
9400 if test -z "$haveit"; then
9401 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9408 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
9411 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
9419 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
9420 BUILD_INCLUDED_LIBINTL=yes
9428 nls_cv_header_libgt=
9439 if test "$USE_INCLUDED_LIBINTL" = yes; then
9440 INTLOBJS="\$(GETTOBJS)"
9444 INTL_LIBTOOL_SUFFIX_PREFIX=
9456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9457 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
9459 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
9460 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
9461 $as_echo_n "(cached) " >&6
9463 cat >conftest.make <<\_ACEOF
9466 @echo '@@@%%%=$(MAKE)=@@@%%%'
9468 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
9469 case `${MAKE-make} -f conftest.make 2>/dev/null` in
9471 eval ac_cv_prog_make_${ac_make}_set=yes;;
9473 eval ac_cv_prog_make_${ac_make}_set=no;;
9477 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9479 $as_echo "yes" >&6; }
9482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9483 $as_echo "no" >&6; }
9484 SET_MAKE="MAKE=${MAKE-make}"
9487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5
9488 $as_echo_n "checking for GNU make... " >&6; }
9489 if ${_cv_gnu_make_command+:} false; then :
9490 $as_echo_n "(cached) " >&6
9492 _cv_gnu_make_command='' ;
9493 for a in "$MAKE" make gmake gnumake ; do
9494 if test -z "$a" ; then continue ; fi ;
9495 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
9496 _cv_gnu_make_command=$a ;
9502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_cv_gnu_make_command" >&5
9503 $as_echo "$_cv_gnu_make_command" >&6; } ;
9504 if test "x$_cv_gnu_make_command" != "x" ; then
9510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"Not found\"" >&5
9511 $as_echo "\"Not found\"" >&6; };
9516 # Extract the first word of "ln", so it can be a program name with args.
9517 set dummy ln; ac_word=$2
9518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9519 $as_echo_n "checking for $ac_word... " >&6; }
9520 if ${ac_cv_path_LN+:} false; then :
9521 $as_echo_n "(cached) " >&6
9525 ac_cv_path_LN="$LN" # Let the user override the test with a path.
9528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9532 test -z "$as_dir" && as_dir=.
9533 for ac_exec_ext in '' $ac_executable_extensions; do
9534 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9535 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
9536 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9543 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
9548 if test -n "$LN"; then
9549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
9550 $as_echo "$LN" >&6; }
9552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9553 $as_echo "no" >&6; }
9557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
9558 $as_echo_n "checking whether ln -s works... " >&6; }
9560 if test "$LN_S" = "ln -s"; then
9561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9562 $as_echo "yes" >&6; }
9564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
9565 $as_echo "no, using $LN_S" >&6; }
9568 # Extract the first word of "mv", so it can be a program name with args.
9569 set dummy mv; ac_word=$2
9570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9571 $as_echo_n "checking for $ac_word... " >&6; }
9572 if ${ac_cv_path_MV+:} false; then :
9573 $as_echo_n "(cached) " >&6
9577 ac_cv_path_MV="$MV" # Let the user override the test with a path.
9580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9584 test -z "$as_dir" && as_dir=.
9585 for ac_exec_ext in '' $ac_executable_extensions; do
9586 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9587 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
9588 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9595 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
9600 if test -n "$MV"; then
9601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
9602 $as_echo "$MV" >&6; }
9604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9605 $as_echo "no" >&6; }
9609 # Extract the first word of "cp", so it can be a program name with args.
9610 set dummy cp; ac_word=$2
9611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9612 $as_echo_n "checking for $ac_word... " >&6; }
9613 if ${ac_cv_path_CP+:} false; then :
9614 $as_echo_n "(cached) " >&6
9618 ac_cv_path_CP="$CP" # Let the user override the test with a path.
9621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9625 test -z "$as_dir" && as_dir=.
9626 for ac_exec_ext in '' $ac_executable_extensions; do
9627 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9628 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
9629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9636 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
9641 if test -n "$CP"; then
9642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
9643 $as_echo "$CP" >&6; }
9645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9646 $as_echo "no" >&6; }
9650 # Extract the first word of "rm", so it can be a program name with args.
9651 set dummy rm; ac_word=$2
9652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9653 $as_echo_n "checking for $ac_word... " >&6; }
9654 if ${ac_cv_path_RM+:} false; then :
9655 $as_echo_n "(cached) " >&6
9659 ac_cv_path_RM="$RM" # Let the user override the test with a path.
9662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9666 test -z "$as_dir" && as_dir=.
9667 for ac_exec_ext in '' $ac_executable_extensions; do
9668 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9669 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
9670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9677 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
9682 if test -n "$RM"; then
9683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
9684 $as_echo "$RM" >&6; }
9686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9687 $as_echo "no" >&6; }
9691 # Extract the first word of "chmod", so it can be a program name with args.
9692 set dummy chmod; ac_word=$2
9693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9694 $as_echo_n "checking for $ac_word... " >&6; }
9695 if ${ac_cv_path_CHMOD+:} false; then :
9696 $as_echo_n "(cached) " >&6
9700 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
9703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9707 test -z "$as_dir" && as_dir=.
9708 for ac_exec_ext in '' $ac_executable_extensions; do
9709 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9710 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
9711 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9718 test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
9722 CHMOD=$ac_cv_path_CHMOD
9723 if test -n "$CHMOD"; then
9724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
9725 $as_echo "$CHMOD" >&6; }
9727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9728 $as_echo "no" >&6; }
9732 for ac_prog in gawk mawk nawk awk
9734 # Extract the first word of "$ac_prog", so it can be a program name with args.
9735 set dummy $ac_prog; ac_word=$2
9736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9737 $as_echo_n "checking for $ac_word... " >&6; }
9738 if ${ac_cv_prog_AWK+:} false; then :
9739 $as_echo_n "(cached) " >&6
9741 if test -n "$AWK"; then
9742 ac_cv_prog_AWK="$AWK" # Let the user override the test.
9744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9748 test -z "$as_dir" && as_dir=.
9749 for ac_exec_ext in '' $ac_executable_extensions; do
9750 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9751 ac_cv_prog_AWK="$ac_prog"
9752 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9762 if test -n "$AWK"; then
9763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
9764 $as_echo "$AWK" >&6; }
9766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9767 $as_echo "no" >&6; }
9771 test -n "$AWK" && break
9774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
9775 $as_echo_n "checking for egrep... " >&6; }
9776 if ${ac_cv_path_EGREP+:} false; then :
9777 $as_echo_n "(cached) " >&6
9779 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
9780 then ac_cv_path_EGREP="$GREP -E"
9782 if test -z "$EGREP"; then
9783 ac_path_EGREP_found=false
9784 # Loop through the user's path and test for each of PROGNAME-LIST
9785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9786 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
9789 test -z "$as_dir" && as_dir=.
9790 for ac_prog in egrep; do
9791 for ac_exec_ext in '' $ac_executable_extensions; do
9792 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
9793 as_fn_executable_p "$ac_path_EGREP" || continue
9794 # Check for GNU ac_path_EGREP and select it if it is found.
9795 # Check for GNU $ac_path_EGREP
9796 case `"$ac_path_EGREP" --version 2>&1` in
9798 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
9801 $as_echo_n 0123456789 >"conftest.in"
9804 cat "conftest.in" "conftest.in" >"conftest.tmp"
9805 mv "conftest.tmp" "conftest.in"
9806 cp "conftest.in" "conftest.nl"
9807 $as_echo 'EGREP' >> "conftest.nl"
9808 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
9809 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
9810 as_fn_arith $ac_count + 1 && ac_count=$as_val
9811 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
9812 # Best one so far, save it but keep looking for a better one
9813 ac_cv_path_EGREP="$ac_path_EGREP"
9814 ac_path_EGREP_max=$ac_count
9816 # 10*(2^10) chars as input seems more than enough
9817 test $ac_count -gt 10 && break
9819 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
9822 $ac_path_EGREP_found && break 3
9827 if test -z "$ac_cv_path_EGREP"; then
9828 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
9831 ac_cv_path_EGREP=$EGREP
9836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
9837 $as_echo "$ac_cv_path_EGREP" >&6; }
9838 EGREP="$ac_cv_path_EGREP"
9841 # Extract the first word of "sed", so it can be a program name with args.
9842 set dummy sed; ac_word=$2
9843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9844 $as_echo_n "checking for $ac_word... " >&6; }
9845 if ${ac_cv_path_SED+:} false; then :
9846 $as_echo_n "(cached) " >&6
9850 ac_cv_path_SED="$SED" # Let the user override the test with a path.
9853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9857 test -z "$as_dir" && as_dir=.
9858 for ac_exec_ext in '' $ac_executable_extensions; do
9859 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9860 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
9861 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9868 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
9873 if test -n "$SED"; then
9874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
9875 $as_echo "$SED" >&6; }
9877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9878 $as_echo "no" >&6; }
9882 # Extract the first word of "perl", so it can be a program name with args.
9883 set dummy perl; ac_word=$2
9884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9885 $as_echo_n "checking for $ac_word... " >&6; }
9886 if ${ac_cv_path_PERL+:} false; then :
9887 $as_echo_n "(cached) " >&6
9891 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
9894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9898 test -z "$as_dir" && as_dir=.
9899 for ac_exec_ext in '' $ac_executable_extensions; do
9900 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9901 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
9902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9909 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
9913 PERL=$ac_cv_path_PERL
9914 if test -n "$PERL"; then
9915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
9916 $as_echo "$PERL" >&6; }
9918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9919 $as_echo "no" >&6; }
9923 # Extract the first word of "ldconfig", so it can be a program name with args.
9924 set dummy ldconfig; ac_word=$2
9925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9926 $as_echo_n "checking for $ac_word... " >&6; }
9927 if ${ac_cv_path_LDCONFIG+:} false; then :
9928 $as_echo_n "(cached) " >&6
9932 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
9935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9939 test -z "$as_dir" && as_dir=.
9940 for ac_exec_ext in '' $ac_executable_extensions; do
9941 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9942 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
9943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9950 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
9954 LDCONFIG=$ac_cv_path_LDCONFIG
9955 if test -n "$LDCONFIG"; then
9956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
9957 $as_echo "$LDCONFIG" >&6; }
9959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9960 $as_echo "no" >&6; }
9964 if test -n "$ac_tool_prefix"; then
9965 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
9966 set dummy ${ac_tool_prefix}ar; ac_word=$2
9967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9968 $as_echo_n "checking for $ac_word... " >&6; }
9969 if ${ac_cv_prog_AR+:} false; then :
9970 $as_echo_n "(cached) " >&6
9972 if test -n "$AR"; then
9973 ac_cv_prog_AR="$AR" # Let the user override the test.
9975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9979 test -z "$as_dir" && as_dir=.
9980 for ac_exec_ext in '' $ac_executable_extensions; do
9981 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9982 ac_cv_prog_AR="${ac_tool_prefix}ar"
9983 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9993 if test -n "$AR"; then
9994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
9995 $as_echo "$AR" >&6; }
9997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9998 $as_echo "no" >&6; }
10003 if test -z "$ac_cv_prog_AR"; then
10005 # Extract the first word of "ar", so it can be a program name with args.
10006 set dummy ar; ac_word=$2
10007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10008 $as_echo_n "checking for $ac_word... " >&6; }
10009 if ${ac_cv_prog_ac_ct_AR+:} false; then :
10010 $as_echo_n "(cached) " >&6
10012 if test -n "$ac_ct_AR"; then
10013 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
10015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10016 for as_dir in $PATH
10019 test -z "$as_dir" && as_dir=.
10020 for ac_exec_ext in '' $ac_executable_extensions; do
10021 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10022 ac_cv_prog_ac_ct_AR="ar"
10023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10032 ac_ct_AR=$ac_cv_prog_ac_ct_AR
10033 if test -n "$ac_ct_AR"; then
10034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
10035 $as_echo "$ac_ct_AR" >&6; }
10037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10038 $as_echo "no" >&6; }
10041 if test "x$ac_ct_AR" = x; then
10044 case $cross_compiling:$ac_tool_warned in
10046 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10047 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10048 ac_tool_warned=yes ;;
10053 AR="$ac_cv_prog_AR"
10056 if test -n "$ac_tool_prefix"; then
10057 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
10058 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
10059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10060 $as_echo_n "checking for $ac_word... " >&6; }
10061 if ${ac_cv_prog_RANLIB+:} false; then :
10062 $as_echo_n "(cached) " >&6
10064 if test -n "$RANLIB"; then
10065 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10068 for as_dir in $PATH
10071 test -z "$as_dir" && as_dir=.
10072 for ac_exec_ext in '' $ac_executable_extensions; do
10073 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10074 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
10075 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10084 RANLIB=$ac_cv_prog_RANLIB
10085 if test -n "$RANLIB"; then
10086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
10087 $as_echo "$RANLIB" >&6; }
10089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10090 $as_echo "no" >&6; }
10095 if test -z "$ac_cv_prog_RANLIB"; then
10096 ac_ct_RANLIB=$RANLIB
10097 # Extract the first word of "ranlib", so it can be a program name with args.
10098 set dummy ranlib; ac_word=$2
10099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10100 $as_echo_n "checking for $ac_word... " >&6; }
10101 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
10102 $as_echo_n "(cached) " >&6
10104 if test -n "$ac_ct_RANLIB"; then
10105 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
10107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10108 for as_dir in $PATH
10111 test -z "$as_dir" && as_dir=.
10112 for ac_exec_ext in '' $ac_executable_extensions; do
10113 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10114 ac_cv_prog_ac_ct_RANLIB="ranlib"
10115 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10124 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
10125 if test -n "$ac_ct_RANLIB"; then
10126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
10127 $as_echo "$ac_ct_RANLIB" >&6; }
10129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10130 $as_echo "no" >&6; }
10133 if test "x$ac_ct_RANLIB" = x; then
10136 case $cross_compiling:$ac_tool_warned in
10138 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10139 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10140 ac_tool_warned=yes ;;
10142 RANLIB=$ac_ct_RANLIB
10145 RANLIB="$ac_cv_prog_RANLIB"
10148 if test -n "$ac_tool_prefix"; then
10149 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
10150 set dummy ${ac_tool_prefix}strip; ac_word=$2
10151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10152 $as_echo_n "checking for $ac_word... " >&6; }
10153 if ${ac_cv_prog_STRIP+:} false; then :
10154 $as_echo_n "(cached) " >&6
10156 if test -n "$STRIP"; then
10157 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
10159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10160 for as_dir in $PATH
10163 test -z "$as_dir" && as_dir=.
10164 for ac_exec_ext in '' $ac_executable_extensions; do
10165 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10166 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
10167 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10176 STRIP=$ac_cv_prog_STRIP
10177 if test -n "$STRIP"; then
10178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
10179 $as_echo "$STRIP" >&6; }
10181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10182 $as_echo "no" >&6; }
10187 if test -z "$ac_cv_prog_STRIP"; then
10189 # Extract the first word of "strip", so it can be a program name with args.
10190 set dummy strip; ac_word=$2
10191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10192 $as_echo_n "checking for $ac_word... " >&6; }
10193 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
10194 $as_echo_n "(cached) " >&6
10196 if test -n "$ac_ct_STRIP"; then
10197 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
10199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10200 for as_dir in $PATH
10203 test -z "$as_dir" && as_dir=.
10204 for ac_exec_ext in '' $ac_executable_extensions; do
10205 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10206 ac_cv_prog_ac_ct_STRIP="strip"
10207 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10216 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
10217 if test -n "$ac_ct_STRIP"; then
10218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
10219 $as_echo "$ac_ct_STRIP" >&6; }
10221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10222 $as_echo "no" >&6; }
10225 if test "x$ac_ct_STRIP" = x; then
10228 case $cross_compiling:$ac_tool_warned in
10230 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10231 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10232 ac_tool_warned=yes ;;
10237 STRIP="$ac_cv_prog_STRIP"
10240 # Extract the first word of "makeinfo", so it can be a program name with args.
10241 set dummy makeinfo; ac_word=$2
10242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10243 $as_echo_n "checking for $ac_word... " >&6; }
10244 if ${ac_cv_prog_MAKEINFO+:} false; then :
10245 $as_echo_n "(cached) " >&6
10247 if test -n "$MAKEINFO"; then
10248 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
10250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10251 for as_dir in $PATH
10254 test -z "$as_dir" && as_dir=.
10255 for ac_exec_ext in '' $ac_executable_extensions; do
10256 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10257 ac_cv_prog_MAKEINFO="makeinfo"
10258 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10267 MAKEINFO=$ac_cv_prog_MAKEINFO
10268 if test -n "$MAKEINFO"; then
10269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
10270 $as_echo "$MAKEINFO" >&6; }
10272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10273 $as_echo "no" >&6; }
10277 if test "_$MAKEINFO" = "_"; then
10278 MAKEINFO="@echo Makeinfo is missing. Info documentation will not be built.;true"
10280 case "$MAKEINFO" in
10282 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
10283 *** Makeinfo is missing. Info documentation will not be built." >&5
10284 $as_echo "$as_me: WARNING:
10285 *** Makeinfo is missing. Info documentation will not be built." >&2;}
10293 # See if we need a separate native compiler.
10294 if test $cross_compiling = no; then
10298 for ac_prog in gcc cc
10300 # Extract the first word of "$ac_prog", so it can be a program name with args.
10301 set dummy $ac_prog; ac_word=$2
10302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10303 $as_echo_n "checking for $ac_word... " >&6; }
10304 if ${ac_cv_prog_BUILD_CC+:} false; then :
10305 $as_echo_n "(cached) " >&6
10307 if test -n "$BUILD_CC"; then
10308 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
10310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10311 for as_dir in $PATH
10314 test -z "$as_dir" && as_dir=.
10315 for ac_exec_ext in '' $ac_executable_extensions; do
10316 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10317 ac_cv_prog_BUILD_CC="$ac_prog"
10318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10327 BUILD_CC=$ac_cv_prog_BUILD_CC
10328 if test -n "$BUILD_CC"; then
10329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
10330 $as_echo "$BUILD_CC" >&6; }
10332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10333 $as_echo "no" >&6; }
10337 test -n "$BUILD_CC" && break
10341 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
10343 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10344 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10345 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10346 cat >>confdefs.h <<_ACEOF
10347 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10354 for ac_header in sys/disk.h sys/mount.h
10356 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10357 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
10358 #if HAVE_SYS_QUEUE_H
10359 #include <sys/queue.h>
10363 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10364 cat >>confdefs.h <<_ACEOF
10365 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10372 for ac_header in net/if.h
10374 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
10375 #if HAVE_SYS_TYPES_H
10376 #include <sys/types.h>
10378 #if HAVE_SYS_SOCKET
10379 #include <sys/socket.h>
10383 if test "x$ac_cv_header_net_if_h" = xyes; then :
10384 cat >>confdefs.h <<_ACEOF
10385 #define HAVE_NET_IF_H 1
10392 for ac_func in vprintf
10394 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
10395 if test "x$ac_cv_func_vprintf" = xyes; then :
10396 cat >>confdefs.h <<_ACEOF
10397 #define HAVE_VPRINTF 1
10400 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
10401 if test "x$ac_cv_func__doprnt" = xyes; then :
10403 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
10411 ac_fn_c_check_member "$LINENO" "struct dirent" "d_reclen" "ac_cv_member_struct_dirent_d_reclen" "#include <dirent.h>
10413 if test "x$ac_cv_member_struct_dirent_d_reclen" = xyes; then :
10415 $as_echo "#define HAVE_RECLEN_DIRENT 1" >>confdefs.h
10419 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "#include <sys/types.h>
10421 if test "x$ac_cv_type_ssize_t" = xyes; then :
10423 $as_echo "#define HAVE_TYPE_SSIZE_T 1" >>confdefs.h
10427 ac_fn_c_check_decl "$LINENO" "llseek" "ac_cv_have_decl_llseek" "#include <unistd.h>
10429 if test "x$ac_cv_have_decl_llseek" = xyes; then :
10431 $as_echo "#define HAVE_LLSEEK_PROTOTYPE 1" >>confdefs.h
10435 ac_fn_c_check_decl "$LINENO" "lseek64" "ac_cv_have_decl_lseek64" "#define _LARGEFILE_SOURCE
10436 #define _LARGEFILE64_SOURCE
10437 #include <unistd.h>
10439 if test "x$ac_cv_have_decl_lseek64" = xyes; then :
10441 $as_echo "#define HAVE_LSEEK64_PROTOTYPE 1" >>confdefs.h
10445 # The cast to long int works around a bug in the HP C Compiler
10446 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10447 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10448 # This bug is HP SR number 8606223364.
10449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
10450 $as_echo_n "checking size of short... " >&6; }
10451 if ${ac_cv_sizeof_short+:} false; then :
10452 $as_echo_n "(cached) " >&6
10454 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
10457 if test "$ac_cv_type_short" = yes; then
10458 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10459 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10460 as_fn_error 77 "cannot compute sizeof (short)
10461 See \`config.log' for more details" "$LINENO" 5; }
10463 ac_cv_sizeof_short=0
10468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
10469 $as_echo "$ac_cv_sizeof_short" >&6; }
10473 cat >>confdefs.h <<_ACEOF
10474 #define SIZEOF_SHORT $ac_cv_sizeof_short
10478 # The cast to long int works around a bug in the HP C Compiler
10479 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10480 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10481 # This bug is HP SR number 8606223364.
10482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
10483 $as_echo_n "checking size of int... " >&6; }
10484 if ${ac_cv_sizeof_int+:} false; then :
10485 $as_echo_n "(cached) " >&6
10487 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
10490 if test "$ac_cv_type_int" = yes; then
10491 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10492 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10493 as_fn_error 77 "cannot compute sizeof (int)
10494 See \`config.log' for more details" "$LINENO" 5; }
10501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
10502 $as_echo "$ac_cv_sizeof_int" >&6; }
10506 cat >>confdefs.h <<_ACEOF
10507 #define SIZEOF_INT $ac_cv_sizeof_int
10511 # The cast to long int works around a bug in the HP C Compiler
10512 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10513 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10514 # This bug is HP SR number 8606223364.
10515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
10516 $as_echo_n "checking size of long... " >&6; }
10517 if ${ac_cv_sizeof_long+:} false; then :
10518 $as_echo_n "(cached) " >&6
10520 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
10523 if test "$ac_cv_type_long" = yes; then
10524 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10525 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10526 as_fn_error 77 "cannot compute sizeof (long)
10527 See \`config.log' for more details" "$LINENO" 5; }
10529 ac_cv_sizeof_long=0
10534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
10535 $as_echo "$ac_cv_sizeof_long" >&6; }
10539 cat >>confdefs.h <<_ACEOF
10540 #define SIZEOF_LONG $ac_cv_sizeof_long
10544 # The cast to long int works around a bug in the HP C Compiler
10545 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10546 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10547 # This bug is HP SR number 8606223364.
10548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
10549 $as_echo_n "checking size of long long... " >&6; }
10550 if ${ac_cv_sizeof_long_long+:} false; then :
10551 $as_echo_n "(cached) " >&6
10553 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
10556 if test "$ac_cv_type_long_long" = yes; then
10557 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10558 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10559 as_fn_error 77 "cannot compute sizeof (long long)
10560 See \`config.log' for more details" "$LINENO" 5; }
10562 ac_cv_sizeof_long_long=0
10567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
10568 $as_echo "$ac_cv_sizeof_long_long" >&6; }
10572 cat >>confdefs.h <<_ACEOF
10573 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10577 SIZEOF_SHORT=$ac_cv_sizeof_short
10578 SIZEOF_INT=$ac_cv_sizeof_int
10579 SIZEOF_LONG=$ac_cv_sizeof_long
10580 SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
10585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
10586 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
10587 if ${ac_cv_c_bigendian+:} false; then :
10588 $as_echo_n "(cached) " >&6
10590 ac_cv_c_bigendian=unknown
10591 # See if we're dealing with a universal compiler.
10592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10593 /* end confdefs.h. */
10594 #ifndef __APPLE_CC__
10595 not a universal capable compiler
10600 if ac_fn_c_try_compile "$LINENO"; then :
10602 # Check for potential -arch flags. It is not universal unless
10603 # there are at least two -arch flags with different values.
10606 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
10607 if test -n "$ac_prev"; then
10609 i?86 | x86_64 | ppc | ppc64)
10610 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
10613 ac_cv_c_bigendian=universal
10619 elif test "x$ac_word" = "x-arch"; then
10624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10625 if test $ac_cv_c_bigendian = unknown; then
10626 # See if sys/param.h defines the BYTE_ORDER macro.
10627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10628 /* end confdefs.h. */
10629 #include <sys/types.h>
10630 #include <sys/param.h>
10635 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
10636 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
10638 bogus endian macros
10645 if ac_fn_c_try_compile "$LINENO"; then :
10646 # It does; now see whether it defined to BIG_ENDIAN or not.
10647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10648 /* end confdefs.h. */
10649 #include <sys/types.h>
10650 #include <sys/param.h>
10655 #if BYTE_ORDER != BIG_ENDIAN
10663 if ac_fn_c_try_compile "$LINENO"; then :
10664 ac_cv_c_bigendian=yes
10666 ac_cv_c_bigendian=no
10668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10672 if test $ac_cv_c_bigendian = unknown; then
10673 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
10674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10675 /* end confdefs.h. */
10676 #include <limits.h>
10681 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
10682 bogus endian macros
10689 if ac_fn_c_try_compile "$LINENO"; then :
10690 # It does; now see whether it defined to _BIG_ENDIAN or not.
10691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10692 /* end confdefs.h. */
10693 #include <limits.h>
10698 #ifndef _BIG_ENDIAN
10706 if ac_fn_c_try_compile "$LINENO"; then :
10707 ac_cv_c_bigendian=yes
10709 ac_cv_c_bigendian=no
10711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10715 if test $ac_cv_c_bigendian = unknown; then
10716 # Compile a test program.
10717 if test "$cross_compiling" = yes; then :
10718 # Try to guess by grepping values from an object file.
10719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10720 /* end confdefs.h. */
10721 short int ascii_mm[] =
10722 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
10723 short int ascii_ii[] =
10724 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
10725 int use_ascii (int i) {
10726 return ascii_mm[i] + ascii_ii[i];
10728 short int ebcdic_ii[] =
10729 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
10730 short int ebcdic_mm[] =
10731 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
10732 int use_ebcdic (int i) {
10733 return ebcdic_mm[i] + ebcdic_ii[i];
10740 return use_ascii (foo) == use_ebcdic (foo);
10745 if ac_fn_c_try_compile "$LINENO"; then :
10746 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
10747 ac_cv_c_bigendian=yes
10749 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
10750 if test "$ac_cv_c_bigendian" = unknown; then
10751 ac_cv_c_bigendian=no
10753 # finding both strings is unlikely to happen, but who knows?
10754 ac_cv_c_bigendian=unknown
10758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10761 /* end confdefs.h. */
10762 $ac_includes_default
10767 /* Are we little or big endian? From Harbison&Steele. */
10771 char c[sizeof (long int)];
10774 return u.c[sizeof (long int) - 1] == 1;
10780 if ac_fn_c_try_run "$LINENO"; then :
10781 ac_cv_c_bigendian=no
10783 ac_cv_c_bigendian=yes
10785 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10786 conftest.$ac_objext conftest.beam conftest.$ac_ext
10791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
10792 $as_echo "$ac_cv_c_bigendian" >&6; }
10793 case $ac_cv_c_bigendian in #(
10795 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
10801 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
10805 as_fn_error $? "unknown endianness
10806 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
10809 BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
10810 ASM_TYPES_HEADER=./asm_types.h
10812 echo "/* These defines are needed for the public ext2fs.h header file */" \
10814 if grep HAVE_SYS_TYPES_H confdefs.h > tmp_config.$$; then
10815 uniq tmp_config.$$ >> public_config.h
10817 echo "#undef HAVE_SYS_TYPES_H" >> public_config.h
10819 if grep WORDS_BIGENDIAN confdefs.h > tmp_config.$$; then
10820 uniq tmp_config.$$ >> public_config.h
10822 echo "#undef WORDS_BIGENDIAN" >> public_config.h
10824 rm -f tmp_config.$$
10825 PUBLIC_CONFIG_HEADER=./public_config.h
10827 for ac_header in inttypes.h
10829 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
10830 if test "x$ac_cv_header_inttypes_h" = xyes; then :
10831 cat >>confdefs.h <<_ACEOF
10832 #define HAVE_INTTYPES_H 1
10839 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
10840 if test "x$ac_cv_type_intptr_t" = xyes; then :
10842 cat >>confdefs.h <<_ACEOF
10843 #define HAVE_INTPTR_T 1
10849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat has a st_flags field" >&5
10850 $as_echo_n "checking whether struct stat has a st_flags field... " >&6; }
10851 if ${e2fsprogs_cv_struct_st_flags+:} false; then :
10852 $as_echo_n "(cached) " >&6
10854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10855 /* end confdefs.h. */
10856 #include <sys/stat.h>
10860 struct stat stat; stat.st_flags = 0;
10865 if ac_fn_c_try_compile "$LINENO"; then :
10866 e2fsprogs_cv_struct_st_flags=yes
10868 e2fsprogs_cv_struct_st_flags=no
10870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags" >&5
10874 $as_echo "$e2fsprogs_cv_struct_st_flags" >&6; }
10875 if test "$e2fsprogs_cv_struct_st_flags" = yes; then
10876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether st_flags field is useful" >&5
10877 $as_echo_n "checking whether st_flags field is useful... " >&6; }
10878 if ${e2fsprogs_cv_struct_st_flags_immut+:} false; then :
10879 $as_echo_n "(cached) " >&6
10881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10882 /* end confdefs.h. */
10883 #include <sys/stat.h>
10887 struct stat stat; stat.st_flags |= UF_IMMUTABLE;
10892 if ac_fn_c_try_compile "$LINENO"; then :
10893 e2fsprogs_cv_struct_st_flags_immut=yes
10895 e2fsprogs_cv_struct_st_flags_immut=no
10897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags_immut" >&5
10901 $as_echo "$e2fsprogs_cv_struct_st_flags_immut" >&6; }
10902 if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
10904 $as_echo "#define HAVE_STAT_FLAGS 1" >>confdefs.h
10908 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h>
10909 #include <sys/socket.h>
10911 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
10913 cat >>confdefs.h <<_ACEOF
10914 #define HAVE_SA_LEN 1
10919 if test -n "$BLKID_CMT"; then
10920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing blkid_probe_all" >&5
10921 $as_echo_n "checking for library containing blkid_probe_all... " >&6; }
10922 if ${ac_cv_search_blkid_probe_all+:} false; then :
10923 $as_echo_n "(cached) " >&6
10925 ac_func_search_save_LIBS=$LIBS
10926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10927 /* end confdefs.h. */
10929 /* Override any GCC internal prototype to avoid an error.
10930 Use char because int might match the return type of a GCC
10931 builtin and then its argument prototype would still apply. */
10935 char blkid_probe_all ();
10939 return blkid_probe_all ();
10944 for ac_lib in '' blkid; do
10945 if test -z "$ac_lib"; then
10946 ac_res="none required"
10949 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10951 if ac_fn_c_try_link "$LINENO"; then :
10952 ac_cv_search_blkid_probe_all=$ac_res
10954 rm -f core conftest.err conftest.$ac_objext \
10956 if ${ac_cv_search_blkid_probe_all+:} false; then :
10960 if ${ac_cv_search_blkid_probe_all+:} false; then :
10963 ac_cv_search_blkid_probe_all=no
10965 rm conftest.$ac_ext
10966 LIBS=$ac_func_search_save_LIBS
10968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_blkid_probe_all" >&5
10969 $as_echo "$ac_cv_search_blkid_probe_all" >&6; }
10970 ac_res=$ac_cv_search_blkid_probe_all
10971 if test "$ac_res" != no; then :
10972 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10977 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
10979 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10980 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10981 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10982 cat >>confdefs.h <<_ACEOF
10983 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
10991 $as_echo_n "checking for socket in -lsocket... " >&6; }
10992 if ${ac_cv_lib_socket_socket+:} false; then :
10993 $as_echo_n "(cached) " >&6
10995 ac_check_lib_save_LIBS=$LIBS
10996 LIBS="-lsocket $LIBS"
10997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10998 /* end confdefs.h. */
11000 /* Override any GCC internal prototype to avoid an error.
11001 Use char because int might match the return type of a GCC
11002 builtin and then its argument prototype would still apply. */
11015 if ac_fn_c_try_link "$LINENO"; then :
11016 ac_cv_lib_socket_socket=yes
11018 ac_cv_lib_socket_socket=no
11020 rm -f core conftest.err conftest.$ac_objext \
11021 conftest$ac_exeext conftest.$ac_ext
11022 LIBS=$ac_check_lib_save_LIBS
11024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
11025 $as_echo "$ac_cv_lib_socket_socket" >&6; }
11026 if test "x$ac_cv_lib_socket_socket" = xyes; then :
11027 SOCKET_LIB=-lsocket
11031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for optreset" >&5
11032 $as_echo_n "checking for optreset... " >&6; }
11033 if ${ac_cv_have_optreset+:} false; then :
11034 $as_echo_n "(cached) " >&6
11036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11037 /* end confdefs.h. */
11038 #include <unistd.h>
11041 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11042 $EGREP "optreset" >/dev/null 2>&1; then :
11043 ac_cv_have_optreset=yes
11045 ac_cv_have_optreset=no
11050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_optreset" >&5
11051 $as_echo "$ac_cv_have_optreset" >&6; }
11052 if test $ac_cv_have_optreset = yes; then
11054 $as_echo "#define HAVE_OPTRESET 1" >>confdefs.h
11059 ac_fn_c_check_func "$LINENO" "sem_init" "ac_cv_func_sem_init"
11060 if test "x$ac_cv_func_sem_init" = xyes; then :
11063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lpthread" >&5
11064 $as_echo_n "checking for sem_init in -lpthread... " >&6; }
11065 if ${ac_cv_lib_pthread_sem_init+:} false; then :
11066 $as_echo_n "(cached) " >&6
11068 ac_check_lib_save_LIBS=$LIBS
11069 LIBS="-lpthread $LIBS"
11070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11071 /* end confdefs.h. */
11073 /* Override any GCC internal prototype to avoid an error.
11074 Use char because int might match the return type of a GCC
11075 builtin and then its argument prototype would still apply. */
11083 return sem_init ();
11088 if ac_fn_c_try_link "$LINENO"; then :
11089 ac_cv_lib_pthread_sem_init=yes
11091 ac_cv_lib_pthread_sem_init=no
11093 rm -f core conftest.err conftest.$ac_objext \
11094 conftest$ac_exeext conftest.$ac_ext
11095 LIBS=$ac_check_lib_save_LIBS
11097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_sem_init" >&5
11098 $as_echo "$ac_cv_lib_pthread_sem_init" >&6; }
11099 if test "x$ac_cv_lib_pthread_sem_init" = xyes; then :
11100 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
11102 SEM_INIT_LIB=-lpthread
11104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lrt" >&5
11105 $as_echo_n "checking for sem_init in -lrt... " >&6; }
11106 if ${ac_cv_lib_rt_sem_init+:} false; then :
11107 $as_echo_n "(cached) " >&6
11109 ac_check_lib_save_LIBS=$LIBS
11111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11112 /* end confdefs.h. */
11114 /* Override any GCC internal prototype to avoid an error.
11115 Use char because int might match the return type of a GCC
11116 builtin and then its argument prototype would still apply. */
11124 return sem_init ();
11129 if ac_fn_c_try_link "$LINENO"; then :
11130 ac_cv_lib_rt_sem_init=yes
11132 ac_cv_lib_rt_sem_init=no
11134 rm -f core conftest.err conftest.$ac_objext \
11135 conftest$ac_exeext conftest.$ac_ext
11136 LIBS=$ac_check_lib_save_LIBS
11138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sem_init" >&5
11139 $as_echo "$ac_cv_lib_rt_sem_init" >&6; }
11140 if test "x$ac_cv_lib_rt_sem_init" = xyes; then :
11141 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
11145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lposix4" >&5
11146 $as_echo_n "checking for sem_init in -lposix4... " >&6; }
11147 if ${ac_cv_lib_posix4_sem_init+:} false; then :
11148 $as_echo_n "(cached) " >&6
11150 ac_check_lib_save_LIBS=$LIBS
11151 LIBS="-lposix4 $LIBS"
11152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11153 /* end confdefs.h. */
11155 /* Override any GCC internal prototype to avoid an error.
11156 Use char because int might match the return type of a GCC
11157 builtin and then its argument prototype would still apply. */
11165 return sem_init ();
11170 if ac_fn_c_try_link "$LINENO"; then :
11171 ac_cv_lib_posix4_sem_init=yes
11173 ac_cv_lib_posix4_sem_init=no
11175 rm -f core conftest.err conftest.$ac_objext \
11176 conftest$ac_exeext conftest.$ac_ext
11177 LIBS=$ac_check_lib_save_LIBS
11179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sem_init" >&5
11180 $as_echo "$ac_cv_lib_posix4_sem_init" >&6; }
11181 if test "x$ac_cv_lib_posix4_sem_init" = xyes; then :
11182 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
11184 SEM_INIT_LIB=-lposix4
11193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unified diff option" >&5
11194 $as_echo_n "checking for unified diff option... " >&6; }
11195 if diff -u $0 $0 > /dev/null 2>&1 ; then
11200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNI_DIFF_OPTS" >&5
11201 $as_echo "$UNI_DIFF_OPTS" >&6; }
11206 $as_echo "#define HAVE_EXT2_IOCTLS 1" >>confdefs.h
11226 linux* | gnu* | k*bsd*-gnu)
11227 if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
11229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, root_prefix defaults to ''" >&5
11230 $as_echo "On $host_os systems, root_prefix defaults to ''" >&6; }
11235 linux* | gnu* | k*bsd*-gnu)
11236 if test "$prefix" = NONE ; then
11238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, prefix defaults to /usr" >&5
11239 $as_echo "On $host_os systems, prefix defaults to /usr" >&6; }
11240 if test "$mandir" = '${prefix}/man' ; then
11241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ...and mandir defaults to /usr/share/man" >&5
11242 $as_echo "...and mandir defaults to /usr/share/man" >&6; }
11243 mandir=/usr/share/man
11248 if test "$root_prefix" = NONE ; then
11249 if test "$prefix" = NONE ; then
11250 root_prefix="$ac_default_prefix"
11252 root_prefix="$prefix"
11254 root_bindir=$bindir
11255 root_sbindir=$sbindir
11256 root_libdir=$libdir
11257 root_sysconfdir=$sysconfdir
11259 root_bindir='${root_prefix}/bin'
11260 root_sbindir='${root_prefix}/sbin'
11261 root_libdir='${root_prefix}/lib'
11262 root_sysconfdir='${root_prefix}/etc'
11264 if test "$bindir" != '${exec_prefix}/bin'; then
11265 root_bindir=$bindir
11266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_bindir to $root_bindir" >&5
11267 $as_echo "Setting root_bindir to $root_bindir" >&6; }
11269 if test "$sbindir" != '${exec_prefix}/sbin'; then
11270 root_sbindir=$sbindir
11271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sbindir to $root_sbindir" >&5
11272 $as_echo "Setting root_sbindir to $root_sbindir" >&6; }
11274 if test "$libdir" != '${exec_prefix}/lib'; then
11275 root_libdir=$libdir
11276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_libdir to $root_libdir" >&5
11277 $as_echo "Setting root_libdir to $root_libdir" >&6; }
11279 if test "$sysconfdir" != '${prefix}/etc'; then
11280 root_sysconfdir=$sysconfdir
11281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sysconfdir to $root_sysconfdir" >&5
11282 $as_echo "Setting root_sysconfdir to $root_sysconfdir" >&6; }
11290 # Check whether --with-multiarch was given.
11291 if test "${with_multiarch+set}" = set; then :
11292 withval=$with_multiarch; libdir=$libdir/$withval
11293 root_libdir=$root_libdir/$withval
11296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linker accepts -static" >&5
11297 $as_echo_n "checking whether linker accepts -static... " >&6; }
11298 if ${ac_cv_e2fsprogs_use_static+:} false; then :
11299 $as_echo_n "(cached) " >&6
11301 SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static"
11302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11303 /* end confdefs.h. */
11313 if ac_fn_c_try_link "$LINENO"; then :
11314 ac_cv_e2fsprogs_use_static=yes
11316 ac_cv_e2fsprogs_use_static=no
11318 rm -f core conftest.err conftest.$ac_objext \
11319 conftest$ac_exeext conftest.$ac_ext
11320 LDFLAGS=$SAVE_LDFLAGS
11325 ac_cv_e2fsprogs_use_static=no
11328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_e2fsprogs_use_static" >&5
11329 $as_echo "$ac_cv_e2fsprogs_use_static" >&6; }
11331 if test $ac_cv_e2fsprogs_use_static = yes; then
11332 LDFLAG_STATIC=-static
11337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using Apple Darwin / GNU libintl workaround" >&5
11338 $as_echo "Using Apple Darwin / GNU libintl workaround" >&6; }
11340 $as_echo "#define _INTL_REDIRECT_MACROS 1" >>confdefs.h
11344 SS_DIR=`cd ${srcdir}/lib/ss; pwd`
11345 ET_DIR=`cd ${srcdir}/lib/et; pwd`
11348 if test "$cross_compiling" = yes ; then
11351 DO_TEST_SUITE=check
11354 INCLUDES='-I. -I$(top_builddir)/lib -I$(top_srcdir)/lib'
11355 if test -n "$CPPFLAGS" ; then
11356 INCLUDES="$INCLUDES $CPPFLAGS"
11358 if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
11359 INCLUDES=$INCLUDES' -I$(top_builddir)/intl -I$(top_srcdir)/intl'
11362 if test $cross_compiling = no; then
11363 BUILD_CFLAGS="$CFLAGS $CPPFLAGS"
11364 BUILD_LDFLAGS="$LDFLAGS"
11371 test -d lib || mkdir lib
11372 test -d include || mkdir include
11373 test -d include/linux || mkdir include/linux
11374 test -d include/asm || mkdir include/asm
11375 for i in MCONFIG Makefile e2fsprogs.spec \
11376 util/Makefile util/subst.conf util/gen-tarball util/install-symlink \
11377 lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \
11378 lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \
11379 lib/uuid/Makefile lib/uuid/uuid_types.h \
11380 lib/blkid/Makefile lib/blkid/blkid_types.h lib/quota/Makefile \
11381 lib/ss/ss.pc lib/uuid/uuid.pc lib/et/com_err.pc \
11382 lib/e2p/e2p.pc lib/blkid/blkid.pc lib/ext2fs/ext2fs.pc \
11383 misc/Makefile ext2ed/Makefile e2fsck/Makefile \
11384 debugfs/Makefile tests/Makefile tests/progs/Makefile \
11385 resize/Makefile doc/Makefile intl/Makefile \
11386 intl/libgnuintl.h po/Makefile.in ; do
11387 if test -d `dirname ${srcdir}/$i` ; then
11388 outlist="$outlist $i"
11391 ac_config_files="$ac_config_files $outlist"
11393 cat >confcache <<\_ACEOF
11394 # This file is a shell script that caches the results of configure
11395 # tests run on this system so they can be shared between configure
11396 # scripts and configure runs, see configure's option --config-cache.
11397 # It is not useful on other systems. If it contains results you don't
11398 # want to keep, you may remove or edit it.
11400 # config.status only pays attention to the cache file if you give it
11401 # the --recheck option to rerun configure.
11403 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11404 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11405 # following values.
11409 # The following way of writing the cache mishandles newlines in values,
11410 # but we know of no workaround that is simple, portable, and efficient.
11411 # So, we kill variables containing newlines.
11412 # Ultrix sh set writes to stderr and can't be redirected directly,
11413 # and sets the high bit in the cache file unless we assign to the vars.
11415 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11416 eval ac_val=\$$ac_var
11420 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11421 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11424 _ | IFS | as_nl) ;; #(
11425 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11426 *) { eval $ac_var=; unset $ac_var;} ;;
11432 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11433 *${as_nl}ac_space=\ *)
11434 # `set' does not quote correctly, so add quotes: double-quote
11435 # substitution turns \\\\ into \\, and sed turns \\ into \.
11438 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11441 # `set' quotes correctly as required by POSIX, so do not add quotes.
11442 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11451 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11453 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11455 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11456 if test -w "$cache_file"; then
11457 if test "x$cache_file" != "x/dev/null"; then
11458 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11459 $as_echo "$as_me: updating cache $cache_file" >&6;}
11460 if test ! -f "$cache_file" || test -h "$cache_file"; then
11461 cat confcache >"$cache_file"
11463 case $cache_file in #(
11465 mv -f confcache "$cache_file"$$ &&
11466 mv -f "$cache_file"$$ "$cache_file" ;; #(
11468 mv -f confcache "$cache_file" ;;
11473 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11474 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11479 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11480 # Let make expand exec_prefix.
11481 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11483 DEFS=-DHAVE_CONFIG_H
11488 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11489 # 1. Remove the extension, and $U if already installed.
11490 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11491 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11492 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11493 # will be set to the directory where LIBOBJS objects are built.
11494 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11495 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11497 LIBOBJS=$ac_libobjs
11499 LTLIBOBJS=$ac_ltlibobjs
11504 : "${CONFIG_STATUS=./config.status}"
11506 ac_clean_files_save=$ac_clean_files
11507 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11508 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11509 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11511 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11513 # Generated by $as_me.
11514 # Run this file to recreate the current configuration.
11515 # Compiler output produced by configure, useful for debugging
11516 # configure, is in config.log if it exists.
11519 ac_cs_recheck=false
11522 SHELL=\${CONFIG_SHELL-$SHELL}
11525 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11526 ## -------------------- ##
11527 ## M4sh Initialization. ##
11528 ## -------------------- ##
11530 # Be more Bourne compatible
11531 DUALCASE=1; export DUALCASE # for MKS sh
11532 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11535 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11536 # is contrary to our usage. Disable this feature.
11537 alias -g '${1+"$@"}'='"$@"'
11538 setopt NO_GLOB_SUBST
11540 case `(set -o) 2>/dev/null` in #(
11552 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11553 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11554 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11555 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11556 # Prefer a ksh shell builtin over an external printf program on Solaris,
11557 # but without wasting forks for bash or zsh.
11558 if test -z "$BASH_VERSION$ZSH_VERSION" \
11559 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11560 as_echo='print -r --'
11561 as_echo_n='print -rn --'
11562 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11563 as_echo='printf %s\n'
11564 as_echo_n='printf %s'
11566 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11567 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11568 as_echo_n='/usr/ucb/echo -n'
11570 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11571 as_echo_n_body='eval
11575 expr "X$arg" : "X\\(.*\\)$as_nl";
11576 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11578 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11580 export as_echo_n_body
11581 as_echo_n='sh -c $as_echo_n_body as_echo'
11583 export as_echo_body
11584 as_echo='sh -c $as_echo_body as_echo'
11587 # The user is always right.
11588 if test "${PATH_SEPARATOR+set}" != set; then
11590 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11591 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11598 # We need space, tab and new line, in precisely that order. Quoting is
11599 # there to prevent editors from complaining about space-tab.
11600 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11601 # splitting by setting IFS to empty value.)
11604 # Find who we are. Look in the path if we contain no directory separator.
11607 *[\\/]* ) as_myself=$0 ;;
11608 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11609 for as_dir in $PATH
11612 test -z "$as_dir" && as_dir=.
11613 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11619 # We did not find ourselves, most probably we were run as `sh COMMAND'
11620 # in which case we are not to be found in the path.
11621 if test "x$as_myself" = x; then
11624 if test ! -f "$as_myself"; then
11625 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11629 # Unset variables that we do not need and which cause bugs (e.g. in
11630 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11631 # suppresses any "Segmentation fault" message there. '((' could
11632 # trigger a bug in pdksh 5.2.14.
11633 for as_var in BASH_ENV ENV MAIL MAILPATH
11634 do eval test x\${$as_var+set} = xset \
11635 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11648 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11651 # as_fn_error STATUS ERROR [LINENO LOG_FD]
11652 # ----------------------------------------
11653 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11654 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11655 # script with STATUS, using 1 if that was 0.
11658 as_status=$1; test $as_status -eq 0 && as_status=1
11660 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11661 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11663 $as_echo "$as_me: error: $2" >&2
11664 as_fn_exit $as_status
11668 # as_fn_set_status STATUS
11669 # -----------------------
11670 # Set $? to STATUS, without forking.
11671 as_fn_set_status ()
11674 } # as_fn_set_status
11676 # as_fn_exit STATUS
11677 # -----------------
11678 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11682 as_fn_set_status $1
11688 # Portably unset VAR.
11691 { eval $1=; unset $1;}
11693 as_unset=as_fn_unset
11694 # as_fn_append VAR VALUE
11695 # ----------------------
11696 # Append the text in VALUE to the end of the definition contained in VAR. Take
11697 # advantage of any shell optimizations that allow amortized linear growth over
11698 # repeated appends, instead of the typical quadratic growth present in naive
11700 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11701 eval 'as_fn_append ()
11712 # as_fn_arith ARG...
11713 # ------------------
11714 # Perform arithmetic evaluation on the ARGs, and store the result in the
11715 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11716 # must be portable across $(()) and expr.
11717 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11718 eval 'as_fn_arith ()
11725 as_val=`expr "$@" || test $? -eq 1`
11730 if expr a : '\(a\)' >/dev/null 2>&1 &&
11731 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11737 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11738 as_basename=basename
11743 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11749 as_me=`$as_basename -- "$0" ||
11750 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11751 X"$0" : 'X\(//\)$' \| \
11752 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11754 sed '/^.*\/\([^/][^/]*\)\/*$/{
11768 # Avoid depending upon Character Ranges.
11769 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11770 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11771 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11772 as_cr_digits='0123456789'
11773 as_cr_alnum=$as_cr_Letters$as_cr_digits
11775 ECHO_C= ECHO_N= ECHO_T=
11776 case `echo -n x` in #(((((
11778 case `echo 'xy\c'` in
11779 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11781 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11788 rm -f conf$$ conf$$.exe conf$$.file
11789 if test -d conf$$.dir; then
11790 rm -f conf$$.dir/conf$$.file
11793 mkdir conf$$.dir 2>/dev/null
11795 if (echo >conf$$.file) 2>/dev/null; then
11796 if ln -s conf$$.file conf$$ 2>/dev/null; then
11798 # ... but there are two gotchas:
11799 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11800 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11801 # In both cases, we have to default to `cp -pR'.
11802 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11804 elif ln conf$$.file conf$$ 2>/dev/null; then
11812 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11813 rmdir conf$$.dir 2>/dev/null
11818 # Create "$as_dir" as a directory, including parents if necessary.
11823 -*) as_dir=./$as_dir;;
11825 test -d "$as_dir" || eval $as_mkdir_p || {
11829 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11830 *) as_qdir=$as_dir;;
11832 as_dirs="'$as_qdir' $as_dirs"
11833 as_dir=`$as_dirname -- "$as_dir" ||
11834 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11835 X"$as_dir" : 'X\(//\)[^/]' \| \
11836 X"$as_dir" : 'X\(//\)$' \| \
11837 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11838 $as_echo X"$as_dir" |
11839 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11843 /^X\(\/\/\)[^/].*/{
11856 test -d "$as_dir" && break
11858 test -z "$as_dirs" || eval "mkdir $as_dirs"
11859 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11863 if mkdir -p . 2>/dev/null; then
11864 as_mkdir_p='mkdir -p "$as_dir"'
11866 test -d ./-p && rmdir ./-p
11871 # as_fn_executable_p FILE
11872 # -----------------------
11873 # Test if FILE is an executable regular file.
11874 as_fn_executable_p ()
11876 test -f "$1" && test -x "$1"
11877 } # as_fn_executable_p
11878 as_test_x='test -x'
11879 as_executable_p=as_fn_executable_p
11881 # Sed expression to map a string onto a valid CPP name.
11882 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11884 # Sed expression to map a string onto a valid variable name.
11885 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11889 ## ----------------------------------- ##
11890 ## Main body of $CONFIG_STATUS script. ##
11891 ## ----------------------------------- ##
11893 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11895 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11896 # Save the log message, to keep $0 and so on meaningful, and to
11897 # report actual input values of CONFIG_FILES etc. instead of their
11898 # values after options handling.
11900 This file was extended by $as_me, which was
11901 generated by GNU Autoconf 2.69. Invocation command line was
11903 CONFIG_FILES = $CONFIG_FILES
11904 CONFIG_HEADERS = $CONFIG_HEADERS
11905 CONFIG_LINKS = $CONFIG_LINKS
11906 CONFIG_COMMANDS = $CONFIG_COMMANDS
11909 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11914 case $ac_config_files in *"
11915 "*) set x $ac_config_files; shift; ac_config_files=$*;;
11918 case $ac_config_headers in *"
11919 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11923 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11924 # Files that config.status was made for.
11925 config_files="$ac_config_files"
11926 config_headers="$ac_config_headers"
11927 config_commands="$ac_config_commands"
11931 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11933 \`$as_me' instantiates files and other configuration actions
11934 from templates according to the current configuration. Unless the files
11935 and actions are specified as TAGs, all are instantiated by default.
11937 Usage: $0 [OPTION]... [TAG]...
11939 -h, --help print this help, then exit
11940 -V, --version print version number and configuration settings, then exit
11941 --config print configuration, then exit
11942 -q, --quiet, --silent
11943 do not print progress messages
11944 -d, --debug don't remove temporary files
11945 --recheck update $as_me by reconfiguring in the same conditions
11946 --file=FILE[:TEMPLATE]
11947 instantiate the configuration file FILE
11948 --header=FILE[:TEMPLATE]
11949 instantiate the configuration header FILE
11951 Configuration files:
11954 Configuration headers:
11957 Configuration commands:
11960 Report bugs to the package provider."
11963 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11964 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11967 configured by $0, generated by GNU Autoconf 2.69,
11968 with options \\"\$ac_cs_config\\"
11970 Copyright (C) 2012 Free Software Foundation, Inc.
11971 This config.status script is free software; the Free Software Foundation
11972 gives unlimited permission to copy, distribute and modify it."
11978 test -n "\$AWK" || AWK=awk
11981 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11982 # The default lists apply if the user does not specify any file.
11988 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11989 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11993 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12005 # Handling of the options.
12006 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12008 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12009 $as_echo "$ac_cs_version"; exit ;;
12010 --config | --confi | --conf | --con | --co | --c )
12011 $as_echo "$ac_cs_config"; exit ;;
12012 --debug | --debu | --deb | --de | --d | -d )
12014 --file | --fil | --fi | --f )
12017 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12018 '') as_fn_error $? "missing file argument" ;;
12020 as_fn_append CONFIG_FILES " '$ac_optarg'"
12021 ac_need_defaults=false;;
12022 --header | --heade | --head | --hea )
12025 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12027 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12028 ac_need_defaults=false;;
12030 # Conflict between --help and --header
12031 as_fn_error $? "ambiguous option: \`$1'
12032 Try \`$0 --help' for more information.";;
12033 --help | --hel | -h )
12034 $as_echo "$ac_cs_usage"; exit ;;
12035 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12036 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12039 # This is an error.
12040 -*) as_fn_error $? "unrecognized option: \`$1'
12041 Try \`$0 --help' for more information." ;;
12043 *) as_fn_append ac_config_targets " $1"
12044 ac_need_defaults=false ;;
12050 ac_configure_extra_args=
12052 if $ac_cs_silent; then
12054 ac_configure_extra_args="$ac_configure_extra_args --silent"
12058 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12059 if \$ac_cs_recheck; then
12060 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12062 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12063 CONFIG_SHELL='$SHELL'
12064 export CONFIG_SHELL
12069 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12073 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12074 ## Running $as_me. ##
12080 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12084 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
12085 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
12087 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
12088 # Capture the value of LINGUAS because we need it to compute CATALOGS.
12089 LINGUAS="${LINGUAS-%UNSET%}"
12094 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12096 # Handling of arguments.
12097 for ac_config_target in $ac_config_targets
12099 case $ac_config_target in
12100 "lib/config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/config.h" ;;
12101 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
12102 "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;;
12104 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12109 # If the user did not use the arguments to specify the items to instantiate,
12110 # then the envvar interface is used. Set only those that are not.
12111 # We use the long form for the default assignment because of an extremely
12112 # bizarre bug on SunOS 4.1.3.
12113 if $ac_need_defaults; then
12114 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12115 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12116 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12119 # Have a temporary directory for convenience. Make it in the build tree
12120 # simply because there is no reason against having it here, and in addition,
12121 # creating and moving files from /tmp can sometimes cause problems.
12122 # Hook for its removal unless debugging.
12123 # Note that there is a small window in which the directory will not be cleaned:
12124 # after its creation but before its name has been assigned to `$tmp'.
12128 trap 'exit_status=$?
12129 : "${ac_tmp:=$tmp}"
12130 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12132 trap 'as_fn_exit 1' 1 2 13 15
12134 # Create a (secure) tmp directory for tmp files.
12137 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12141 tmp=./conf$$-$RANDOM
12142 (umask 077 && mkdir "$tmp")
12143 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12146 # Set up the scripts for CONFIG_FILES section.
12147 # No need to generate them if there are no CONFIG_FILES.
12148 # This happens for instance with `./config.status config.h'.
12149 if test -n "$CONFIG_FILES"; then
12151 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
12152 ac_cs_awk_getline=:
12153 ac_cs_awk_pipe_init=
12154 ac_cs_awk_read_file='
12155 while ((getline aline < (F[key])) > 0)
12158 ac_cs_awk_pipe_fini=
12160 ac_cs_awk_getline=false
12161 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
12162 ac_cs_awk_read_file='
12164 print "cat " F[key] " &&"
12165 '$ac_cs_awk_pipe_init
12166 # The final `:' finishes the AND list.
12167 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
12169 ac_cr=`echo X | tr X '\015'`
12170 # On cygwin, bash can eat \r inside `` if the user requested igncr.
12171 # But we know of no other shell where ac_cr would be empty at this
12172 # point, so we can use a bashism as a fallback.
12173 if test "x$ac_cr" = x; then
12174 eval ac_cr=\$\'\\r\'
12176 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12177 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12180 ac_cs_awk_cr=$ac_cr
12183 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12186 # Create commands to substitute file output variables.
12188 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
12189 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
12190 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
12193 } >conf$$files.sh &&
12194 . ./conf$$files.sh ||
12195 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12196 rm -f conf$$files.sh
12199 echo "cat >conf$$subs.awk <<_ACEOF" &&
12200 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12202 } >conf$$subs.sh ||
12203 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12204 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12206 for ac_last_try in false false false false false :; do
12207 . ./conf$$subs.sh ||
12208 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12210 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12211 if test $ac_delim_n = $ac_delim_num; then
12213 elif $ac_last_try; then
12214 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12216 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12219 rm -f conf$$subs.sh
12221 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12222 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12226 s/^/S["/; s/!.*/"]=/
12236 s/\(.\{148\}\)..*/\1/
12238 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12243 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12250 s/\(.\{148\}\)..*/\1/
12252 s/["\\]/\\&/g; s/^/"/; s/$/"/
12256 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12261 ' <conf$$subs.awk | sed '
12266 ' >>$CONFIG_STATUS || ac_write_fail=1
12267 rm -f conf$$subs.awk
12268 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12270 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12271 for (key in S) S_is_set[key] = 1
12273 \$ac_cs_awk_pipe_init
12277 nfields = split(line, field, "@")
12279 len = length(field[1])
12280 for (i = 2; i < nfields; i++) {
12282 keylen = length(key)
12283 if (S_is_set[key]) {
12285 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12286 len += length(value) + length(field[++i])
12291 if (nfields == 3 && !substed) {
12293 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
12294 \$ac_cs_awk_read_file
12300 \$ac_cs_awk_pipe_fini
12303 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12304 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12305 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12308 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12309 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12312 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12313 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12314 # trailing colons and then remove the whole line if VPATH becomes empty
12315 # (actually we leave an empty line to preserve line numbers).
12316 if test "x$srcdir" = x.; then
12317 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
12335 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12336 fi # test -n "$CONFIG_FILES"
12338 # Set up the scripts for CONFIG_HEADERS section.
12339 # No need to generate them if there are no CONFIG_HEADERS.
12340 # This happens for instance with `./config.status Makefile'.
12341 if test -n "$CONFIG_HEADERS"; then
12342 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
12346 # Transform confdefs.h into an awk script `defines.awk', embedded as
12347 # here-document in config.status, that substitutes the proper values into
12348 # config.h.in to produce config.h.
12350 # Create a delimiter string that does not exist in confdefs.h, to ease
12351 # handling of long lines.
12353 for ac_last_try in false false :; do
12354 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12355 if test -z "$ac_tt"; then
12357 elif $ac_last_try; then
12358 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12360 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12364 # For the awk script, D is an array of macro values keyed by name,
12365 # likewise P contains macro parameters if any. Preserve backslash
12366 # newline sequences.
12368 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12370 s/.\{148\}/&'"$ac_delim"'/g
12373 s/^[ ]*#[ ]*define[ ][ ]*/ /
12380 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12382 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12386 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12387 D["\1"]=" \3\\\\\\n"\\/p
12389 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12394 s/.\{148\}/&'"$ac_delim"'/g
12399 s/["\\]/\\&/g; s/^/"/; s/$/"/p
12402 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12404 ' <confdefs.h | sed '
12405 s/'"$ac_delim"'/"\\\
12406 "/g' >>$CONFIG_STATUS || ac_write_fail=1
12408 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12409 for (key in D) D_is_set[key] = 1
12412 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12414 split(line, arg, " ")
12415 if (arg[1] == "#") {
12419 defundef = substr(arg[1], 2)
12422 split(mac1, mac2, "(") #)
12424 prefix = substr(line, 1, index(line, defundef) - 1)
12425 if (D_is_set[macro]) {
12426 # Preserve the white space surrounding the "#".
12427 print prefix "define", macro P[macro] D[macro]
12430 # Replace #undef with comments. This is necessary, for example,
12431 # in the case of _POSIX_SOURCE, which is predefined and required
12432 # on some systems where configure will not decide to define it.
12433 if (defundef == "undef") {
12434 print "/*", prefix defundef, macro, "*/"
12442 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12443 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12444 fi # test -n "$CONFIG_HEADERS"
12447 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
12452 :[FHLC]) ac_mode=$ac_tag; continue;;
12454 case $ac_mode$ac_tag in
12456 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12457 :[FH]-) ac_tag=-:-;;
12458 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12475 -) ac_f="$ac_tmp/stdin";;
12476 *) # Look for the file first in the build tree, then in the source tree
12477 # (if the path is not absolute). The absolute path cannot be DOS-style,
12478 # because $ac_f cannot contain `:'.
12482 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12484 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12486 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12487 as_fn_append ac_file_inputs " '$ac_f'"
12490 # Let's still pretend it is `configure' which instantiates (i.e., don't
12491 # use $as_me), people would be surprised to read:
12492 # /* config.h. Generated by config.status. */
12493 configure_input='Generated from '`
12494 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12496 if test x"$ac_file" != x-; then
12497 configure_input="$ac_file. $configure_input"
12498 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12499 $as_echo "$as_me: creating $ac_file" >&6;}
12501 # Neutralize special characters interpreted by sed in replacement strings.
12502 case $configure_input in #(
12503 *\&* | *\|* | *\\* )
12504 ac_sed_conf_input=`$as_echo "$configure_input" |
12505 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12506 *) ac_sed_conf_input=$configure_input;;
12510 *:-:* | *:-) cat >"$ac_tmp/stdin" \
12511 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12516 ac_dir=`$as_dirname -- "$ac_file" ||
12517 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12518 X"$ac_file" : 'X\(//\)[^/]' \| \
12519 X"$ac_file" : 'X\(//\)$' \| \
12520 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12521 $as_echo X"$ac_file" |
12522 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12526 /^X\(\/\/\)[^/].*/{
12539 as_dir="$ac_dir"; as_fn_mkdir_p
12543 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12545 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12546 # A ".." for each directory in $ac_dir_suffix.
12547 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12548 case $ac_top_builddir_sub in
12549 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12550 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12553 ac_abs_top_builddir=$ac_pwd
12554 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12555 # for backward compatibility:
12556 ac_top_builddir=$ac_top_build_prefix
12559 .) # We are building in place.
12561 ac_top_srcdir=$ac_top_builddir_sub
12562 ac_abs_top_srcdir=$ac_pwd ;;
12563 [\\/]* | ?:[\\/]* ) # Absolute name.
12564 ac_srcdir=$srcdir$ac_dir_suffix;
12565 ac_top_srcdir=$srcdir
12566 ac_abs_top_srcdir=$srcdir ;;
12567 *) # Relative name.
12568 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12569 ac_top_srcdir=$ac_top_build_prefix$srcdir
12570 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12572 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12582 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12583 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12587 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12588 # If the template does not know about datarootdir, expand it.
12589 # FIXME: This hack should be removed a few years after 2.60.
12590 ac_datarootdir_hack=; ac_datarootdir_seen=
12601 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12602 *datarootdir*) ac_datarootdir_seen=yes;;
12603 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12604 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12605 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12607 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12608 ac_datarootdir_hack='
12609 s&@datadir@&$datadir&g
12610 s&@docdir@&$docdir&g
12611 s&@infodir@&$infodir&g
12612 s&@localedir@&$localedir&g
12613 s&@mandir@&$mandir&g
12614 s&\\\${datarootdir}&$datarootdir&g' ;;
12618 # Neutralize VPATH when `$srcdir' = `.'.
12619 # Shell code in configure.ac might set extrasub.
12620 # FIXME: do we really want to maintain this feature?
12621 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12622 ac_sed_extra="$ac_vpsub
12625 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12627 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12628 s|@configure_input@|$ac_sed_conf_input|;t t
12629 s&@top_builddir@&$ac_top_builddir_sub&;t t
12630 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12631 s&@srcdir@&$ac_srcdir&;t t
12632 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12633 s&@top_srcdir@&$ac_top_srcdir&;t t
12634 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12635 s&@builddir@&$ac_builddir&;t t
12636 s&@abs_builddir@&$ac_abs_builddir&;t t
12637 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12638 s&@INSTALL@&$ac_INSTALL&;t t
12639 $ac_datarootdir_hack
12641 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
12642 if $ac_cs_awk_getline; then
12643 $AWK -f "$ac_tmp/subs.awk"
12645 $AWK -f "$ac_tmp/subs.awk" | $SHELL
12647 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12649 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12650 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12651 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
12652 "$ac_tmp/out"`; test -z "$ac_out"; } &&
12653 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12654 which seems to be undefined. Please make sure it is defined" >&5
12655 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12656 which seems to be undefined. Please make sure it is defined" >&2;}
12658 rm -f "$ac_tmp/stdin"
12660 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12661 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12663 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12669 if test x"$ac_file" != x-; then
12671 $as_echo "/* $configure_input */" \
12672 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12673 } >"$ac_tmp/config.h" \
12674 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12675 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12676 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12677 $as_echo "$as_me: $ac_file is unchanged" >&6;}
12680 mv "$ac_tmp/config.h" "$ac_file" \
12681 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12684 $as_echo "/* $configure_input */" \
12685 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12686 || as_fn_error $? "could not create -" "$LINENO" 5
12690 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12691 $as_echo "$as_me: executing $ac_file commands" >&6;}
12696 case $ac_file$ac_mode in
12698 for ac_file in $CONFIG_FILES; do
12699 # Support "outfile[:infile[:infile...]]"
12701 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
12703 # PO directories have a Makefile.in generated from Makefile.in.in.
12704 case "$ac_file" in */Makefile.in)
12705 # Adjust a relative srcdir.
12706 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
12707 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
12708 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
12709 # In autoconf-2.13 it is called $ac_given_srcdir.
12710 # In autoconf-2.50 it is called $srcdir.
12711 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
12712 case "$ac_given_srcdir" in
12713 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
12714 /*) top_srcdir="$ac_given_srcdir" ;;
12715 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
12717 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
12718 rm -f "$ac_dir/POTFILES"
12719 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
12720 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
12721 POMAKEFILEDEPS="POTFILES.in"
12722 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
12723 # on $ac_dir but don't depend on user-specified configuration
12725 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
12726 # The LINGUAS file contains the set of available languages.
12727 if test -n "$OBSOLETE_ALL_LINGUAS"; then
12728 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
12730 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
12731 # Hide the ALL_LINGUAS assigment from automake.
12732 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
12733 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
12735 # The set of available languages was given in configure.in.
12736 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
12739 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
12740 # Compute UPDATEPOFILES
12741 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
12742 # Compute DUMMYPOFILES
12743 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
12745 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
12746 case "$ac_given_srcdir" in
12748 *) srcdirpre='$(srcdir)/' ;;
12754 for lang in $ALL_LINGUAS; do
12755 POFILES="$POFILES $srcdirpre$lang.po"
12756 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
12757 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
12758 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
12760 # CATALOGS depends on both $ac_dir and the user's LINGUAS
12761 # environment variable.
12763 if test -n "$ALL_LINGUAS"; then
12764 for presentlang in $ALL_LINGUAS; do
12766 if test "%UNSET%" != "$LINGUAS"; then
12767 desiredlanguages="$LINGUAS"
12769 desiredlanguages="$ALL_LINGUAS"
12771 for desiredlang in $desiredlanguages; do
12772 # Use the presentlang catalog if desiredlang is
12773 # a. equal to presentlang, or
12774 # b. a variant of presentlang (because in this case,
12775 # presentlang can be used as a fallback for messages
12776 # which are not translated in the desiredlang catalog).
12777 case "$desiredlang" in
12778 "$presentlang"*) useit=yes;;
12781 if test $useit = yes; then
12782 INST_LINGUAS="$INST_LINGUAS $presentlang"
12787 if test -n "$INST_LINGUAS"; then
12788 for lang in $INST_LINGUAS; do
12789 CATALOGS="$CATALOGS $lang.gmo"
12792 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
12793 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"
12794 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
12795 if test -f "$f"; then
12797 *.orig | *.bak | *~) ;;
12798 *) cat "$f" >> "$ac_dir/Makefile" ;;
12813 ac_clean_files=$ac_clean_files_save
12815 test $ac_write_fail = 0 ||
12816 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12819 # configure is writing to config.log, and then calls config.status.
12820 # config.status does its own redirection, appending to config.log.
12821 # Unfortunately, on DOS this fails, as config.log is still kept open
12822 # by configure, so config.status won't be able to write to it; its
12823 # output is simply discarded. So we exec the FD to /dev/null,
12824 # effectively closing config.log, so it can be properly (re)opened and
12825 # appended to by config.status. When coming back to configure, we
12826 # need to make the FD available again.
12827 if test "$no_create" != yes; then
12829 ac_config_status_args=
12830 test "$silent" = yes &&
12831 ac_config_status_args="$ac_config_status_args --quiet"
12833 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12835 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12836 # would make configure fail if this is the last instruction.
12837 $ac_cs_success || as_fn_exit 1
12839 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12840 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12841 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12844 if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi