2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in #(
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 as_echo_n='sh -c $as_echo_n_body as_echo'
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
89 # Find who we are. Look in the path if we contain no directory separator.
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
147 *v*x* | *x*v* ) as_opts=-vx ;;
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 case \`(set -o) 2>/dev/null\` in #(
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1"
200 if (eval "$as_required") 2>/dev/null; then :
205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
210 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213 test -z "$as_dir" && as_dir=.
217 for as_base in sh bash ksh sh5; do
218 # Try only shells that exist, to save several forks.
219 as_shell=$as_dir/$as_base
220 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222 CONFIG_SHELL=$as_shell as_have_required=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
231 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233 CONFIG_SHELL=$SHELL as_have_required=yes
238 if test "x$CONFIG_SHELL" != x; then :
240 # We cannot yet assume a decent shell, so we have to provide a
241 # neutralization value for shells without unset; and this also
242 # works around shells that cannot unset nonexistent variables.
243 # Preserve -v and -x to the replacement shell.
246 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
248 *v*x* | *x*v* ) as_opts=-vx ;;
253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254 # Admittedly, this is quite paranoid, since all the known shells bail
255 # out after a failed `exec'.
256 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
260 if test x$as_have_required = xno; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x${ZSH_VERSION+set} = xset ; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268 $0: including any error possibly output before this
269 $0: message. Then install a modern shell, or manually run
270 $0: the script under such a shell if you do have one."
276 SHELL=${CONFIG_SHELL-/bin/sh}
278 # Unset more variables known to interfere with behavior of common tools.
279 CLICOLOR_FORCE= GREP_OPTIONS=
280 unset CLICOLOR_FORCE GREP_OPTIONS
282 ## --------------------- ##
283 ## M4sh Shell Functions. ##
284 ## --------------------- ##
287 # Portably unset VAR.
290 { eval $1=; unset $1;}
294 # as_fn_set_status STATUS
295 # -----------------------
296 # Set $? to STATUS, without forking.
304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
314 # Create "$as_dir" as a directory, including parents if necessary.
319 -*) as_dir=./$as_dir;;
321 test -d "$as_dir" || eval $as_mkdir_p || {
325 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
328 as_dirs="'$as_qdir' $as_dirs"
329 as_dir=`$as_dirname -- "$as_dir" ||
330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334 $as_echo X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
352 test -d "$as_dir" && break
354 test -z "$as_dirs" || eval "mkdir $as_dirs"
355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
360 # as_fn_executable_p FILE
361 # -----------------------
362 # Test if FILE is an executable regular file.
363 as_fn_executable_p ()
365 test -f "$1" && test -x "$1"
366 } # as_fn_executable_p
367 # as_fn_append VAR VALUE
368 # ----------------------
369 # Append the text in VALUE to the end of the definition contained in VAR. Take
370 # advantage of any shell optimizations that allow amortized linear growth over
371 # repeated appends, instead of the typical quadratic growth present in naive
373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374 eval 'as_fn_append ()
387 # Perform arithmetic evaluation on the ARGs, and store the result in the
388 # global $as_val. Take advantage of shells that can avoid forks. The arguments
389 # must be portable across $(()) and expr.
390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
398 as_val=`expr "$@" || test $? -eq 1`
403 # as_fn_error STATUS ERROR [LINENO LOG_FD]
404 # ----------------------------------------
405 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407 # script with STATUS, using 1 if that was 0.
410 as_status=$1; test $as_status -eq 0 && as_status=1
412 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
415 $as_echo "$as_me: error: $2" >&2
416 as_fn_exit $as_status
419 if expr a : '\(a\)' >/dev/null 2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001; then
426 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
432 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
438 as_me=`$as_basename -- "$0" ||
439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
443 sed '/^.*\/\([^/][^/]*\)\/*$/{
457 # Avoid depending upon Character Ranges.
458 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461 as_cr_digits='0123456789'
462 as_cr_alnum=$as_cr_Letters$as_cr_digits
465 as_lineno_1=$LINENO as_lineno_1a=$LINENO
466 as_lineno_2=$LINENO as_lineno_2a=$LINENO
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
485 chmod +x "$as_me.lineno" ||
486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec=no; export _as_can_reexec
492 # Don't try to exec as it changes $[0], causing all sort of problems
493 # (the dirname of $[0] is not the place where we might find the
494 # original and so on. Autoconf is especially sensitive to this).
496 # Exit status is that of the last command.
500 ECHO_C= ECHO_N= ECHO_T=
501 case `echo -n x` in #(((((
503 case `echo 'xy\c'` in
504 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
513 rm -f conf$$ conf$$.exe conf$$.file
514 if test -d conf$$.dir; then
515 rm -f conf$$.dir/conf$$.file
518 mkdir conf$$.dir 2>/dev/null
520 if (echo >conf$$.file) 2>/dev/null; then
521 if ln -s conf$$.file conf$$ 2>/dev/null; then
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526 # In both cases, we have to default to `cp -pR'.
527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
529 elif ln conf$$.file conf$$ 2>/dev/null; then
537 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538 rmdir conf$$.dir 2>/dev/null
540 if mkdir -p . 2>/dev/null; then
541 as_mkdir_p='mkdir -p "$as_dir"'
543 test -d ./-p && rmdir ./-p
548 as_executable_p=as_fn_executable_p
550 # Sed expression to map a string onto a valid CPP name.
551 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
553 # Sed expression to map a string onto a valid variable name.
554 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
557 test -n "$DJDIR" || exec 7<&0 </dev/null
561 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562 # so uname gets run too.
563 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
568 ac_default_prefix=/usr/local
570 ac_config_libobj_dir=.
577 # Identity of this package.
585 ac_unique_file="version.h"
586 # Factoring default headers for most tests.
587 ac_includes_default="\
589 #ifdef HAVE_SYS_TYPES_H
590 # include <sys/types.h>
592 #ifdef HAVE_SYS_STAT_H
593 # include <sys/stat.h>
599 # ifdef HAVE_STDLIB_H
604 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
609 #ifdef HAVE_STRINGS_H
610 # include <strings.h>
612 #ifdef HAVE_INTTYPES_H
613 # include <inttypes.h>
623 ac_subst_vars='LTLIBOBJS
669 INTL_LIBTOOL_SUFFIX_PREFIX
676 BUILD_INCLUDED_LIBINTL
802 program_transform_name
813 ac_subst_files='MCONFIG
820 PUBLIC_CONFIG_HEADER'
822 enable_option_checking
828 enable_maintainer_mode
829 enable_symlink_install
830 enable_relative_symlinks
831 enable_symlink_relative_symlinks
833 enable_verbose_makecmds
853 enable_e2initrd_helper
860 with_included_gettext
864 ac_precious_vars='build_alias
876 # Initialize some variables set by options.
878 ac_init_version=false
879 ac_unrecognized_opts=
881 # The variables have the same names as the options, with
882 # dashes changed to underlines.
890 program_transform_name=s,x,x,
898 # Installation directory options.
899 # These are left unexpanded so users can "make install exec_prefix=/foo"
900 # and all the variables that are supposed to be based on exec_prefix
901 # by default will actually change.
902 # Use braces instead of parens because sh, perl, etc. also accept them.
903 # (The list follows the same order as the GNU Coding Standards.)
904 bindir='${exec_prefix}/bin'
905 sbindir='${exec_prefix}/sbin'
906 libexecdir='${exec_prefix}/libexec'
907 datarootdir='${prefix}/share'
908 datadir='${datarootdir}'
909 sysconfdir='${prefix}/etc'
910 sharedstatedir='${prefix}/com'
911 localstatedir='${prefix}/var'
912 includedir='${prefix}/include'
913 oldincludedir='/usr/include'
914 docdir='${datarootdir}/doc/${PACKAGE}'
915 infodir='${datarootdir}/info'
920 libdir='${exec_prefix}/lib'
921 localedir='${datarootdir}/locale'
922 mandir='${datarootdir}/man'
928 # If the previous option needs an argument, assign it.
929 if test -n "$ac_prev"; then
930 eval $ac_prev=\$ac_option
936 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
941 # Accept the important Cygnus configure options, so we can diagnose typos.
943 case $ac_dashdash$ac_option in
947 -bindir | --bindir | --bindi | --bind | --bin | --bi)
949 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
952 -build | --build | --buil | --bui | --bu)
953 ac_prev=build_alias ;;
954 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
955 build_alias=$ac_optarg ;;
957 -cache-file | --cache-file | --cache-fil | --cache-fi \
958 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
959 ac_prev=cache_file ;;
960 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
961 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
962 cache_file=$ac_optarg ;;
965 cache_file=config.cache ;;
967 -datadir | --datadir | --datadi | --datad)
969 -datadir=* | --datadir=* | --datadi=* | --datad=*)
970 datadir=$ac_optarg ;;
972 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
973 | --dataroo | --dataro | --datar)
974 ac_prev=datarootdir ;;
975 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
976 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
977 datarootdir=$ac_optarg ;;
979 -disable-* | --disable-*)
980 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
981 # Reject names that are not valid shell variable names.
982 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
983 as_fn_error $? "invalid feature name: $ac_useropt"
984 ac_useropt_orig=$ac_useropt
985 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
986 case $ac_user_opts in
990 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
991 ac_unrecognized_sep=', ';;
993 eval enable_$ac_useropt=no ;;
995 -docdir | --docdir | --docdi | --doc | --do)
997 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1000 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1002 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1003 dvidir=$ac_optarg ;;
1005 -enable-* | --enable-*)
1006 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1007 # Reject names that are not valid shell variable names.
1008 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1009 as_fn_error $? "invalid feature name: $ac_useropt"
1010 ac_useropt_orig=$ac_useropt
1011 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1012 case $ac_user_opts in
1014 "enable_$ac_useropt"
1016 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1017 ac_unrecognized_sep=', ';;
1019 eval enable_$ac_useropt=\$ac_optarg ;;
1021 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1022 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1023 | --exec | --exe | --ex)
1024 ac_prev=exec_prefix ;;
1025 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1026 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1027 | --exec=* | --exe=* | --ex=*)
1028 exec_prefix=$ac_optarg ;;
1030 -gas | --gas | --ga | --g)
1031 # Obsolete; use --with-gas.
1034 -help | --help | --hel | --he | -h)
1035 ac_init_help=long ;;
1036 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1037 ac_init_help=recursive ;;
1038 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1039 ac_init_help=short ;;
1041 -host | --host | --hos | --ho)
1042 ac_prev=host_alias ;;
1043 -host=* | --host=* | --hos=* | --ho=*)
1044 host_alias=$ac_optarg ;;
1046 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1048 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1050 htmldir=$ac_optarg ;;
1052 -includedir | --includedir | --includedi | --included | --include \
1053 | --includ | --inclu | --incl | --inc)
1054 ac_prev=includedir ;;
1055 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1056 | --includ=* | --inclu=* | --incl=* | --inc=*)
1057 includedir=$ac_optarg ;;
1059 -infodir | --infodir | --infodi | --infod | --info | --inf)
1061 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1062 infodir=$ac_optarg ;;
1064 -libdir | --libdir | --libdi | --libd)
1066 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1067 libdir=$ac_optarg ;;
1069 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1070 | --libexe | --libex | --libe)
1071 ac_prev=libexecdir ;;
1072 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1073 | --libexe=* | --libex=* | --libe=*)
1074 libexecdir=$ac_optarg ;;
1076 -localedir | --localedir | --localedi | --localed | --locale)
1077 ac_prev=localedir ;;
1078 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1079 localedir=$ac_optarg ;;
1081 -localstatedir | --localstatedir | --localstatedi | --localstated \
1082 | --localstate | --localstat | --localsta | --localst | --locals)
1083 ac_prev=localstatedir ;;
1084 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1085 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1086 localstatedir=$ac_optarg ;;
1088 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1090 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1091 mandir=$ac_optarg ;;
1093 -nfp | --nfp | --nf)
1094 # Obsolete; use --without-fp.
1097 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1098 | --no-cr | --no-c | -n)
1101 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1102 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1105 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1106 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1107 | --oldin | --oldi | --old | --ol | --o)
1108 ac_prev=oldincludedir ;;
1109 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1110 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1111 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1112 oldincludedir=$ac_optarg ;;
1114 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1116 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1117 prefix=$ac_optarg ;;
1119 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1120 | --program-pre | --program-pr | --program-p)
1121 ac_prev=program_prefix ;;
1122 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1123 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1124 program_prefix=$ac_optarg ;;
1126 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1127 | --program-suf | --program-su | --program-s)
1128 ac_prev=program_suffix ;;
1129 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1130 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1131 program_suffix=$ac_optarg ;;
1133 -program-transform-name | --program-transform-name \
1134 | --program-transform-nam | --program-transform-na \
1135 | --program-transform-n | --program-transform- \
1136 | --program-transform | --program-transfor \
1137 | --program-transfo | --program-transf \
1138 | --program-trans | --program-tran \
1139 | --progr-tra | --program-tr | --program-t)
1140 ac_prev=program_transform_name ;;
1141 -program-transform-name=* | --program-transform-name=* \
1142 | --program-transform-nam=* | --program-transform-na=* \
1143 | --program-transform-n=* | --program-transform-=* \
1144 | --program-transform=* | --program-transfor=* \
1145 | --program-transfo=* | --program-transf=* \
1146 | --program-trans=* | --program-tran=* \
1147 | --progr-tra=* | --program-tr=* | --program-t=*)
1148 program_transform_name=$ac_optarg ;;
1150 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1152 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1153 pdfdir=$ac_optarg ;;
1155 -psdir | --psdir | --psdi | --psd | --ps)
1157 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1160 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1161 | -silent | --silent | --silen | --sile | --sil)
1164 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1166 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1168 sbindir=$ac_optarg ;;
1170 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1171 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1172 | --sharedst | --shareds | --shared | --share | --shar \
1174 ac_prev=sharedstatedir ;;
1175 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1176 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1177 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1179 sharedstatedir=$ac_optarg ;;
1181 -site | --site | --sit)
1183 -site=* | --site=* | --sit=*)
1186 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1188 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1189 srcdir=$ac_optarg ;;
1191 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1192 | --syscon | --sysco | --sysc | --sys | --sy)
1193 ac_prev=sysconfdir ;;
1194 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1195 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1196 sysconfdir=$ac_optarg ;;
1198 -target | --target | --targe | --targ | --tar | --ta | --t)
1199 ac_prev=target_alias ;;
1200 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1201 target_alias=$ac_optarg ;;
1203 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1206 -version | --version | --versio | --versi | --vers | -V)
1207 ac_init_version=: ;;
1210 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1211 # Reject names that are not valid shell variable names.
1212 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1213 as_fn_error $? "invalid package name: $ac_useropt"
1214 ac_useropt_orig=$ac_useropt
1215 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1216 case $ac_user_opts in
1220 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1221 ac_unrecognized_sep=', ';;
1223 eval with_$ac_useropt=\$ac_optarg ;;
1225 -without-* | --without-*)
1226 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1227 # Reject names that are not valid shell variable names.
1228 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1229 as_fn_error $? "invalid package name: $ac_useropt"
1230 ac_useropt_orig=$ac_useropt
1231 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1232 case $ac_user_opts in
1236 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1237 ac_unrecognized_sep=', ';;
1239 eval with_$ac_useropt=no ;;
1242 # Obsolete; use --with-x.
1245 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1246 | --x-incl | --x-inc | --x-in | --x-i)
1247 ac_prev=x_includes ;;
1248 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1249 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1250 x_includes=$ac_optarg ;;
1252 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1253 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1254 ac_prev=x_libraries ;;
1255 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1256 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1257 x_libraries=$ac_optarg ;;
1259 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1260 Try \`$0 --help' for more information"
1264 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1265 # Reject names that are not valid shell variable names.
1266 case $ac_envvar in #(
1267 '' | [0-9]* | *[!_$as_cr_alnum]* )
1268 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1270 eval $ac_envvar=\$ac_optarg
1271 export $ac_envvar ;;
1274 # FIXME: should be removed in autoconf 3.0.
1275 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1276 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1277 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1278 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1284 if test -n "$ac_prev"; then
1285 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1286 as_fn_error $? "missing argument to $ac_option"
1289 if test -n "$ac_unrecognized_opts"; then
1290 case $enable_option_checking in
1292 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1293 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1297 # Check all directory arguments for consistency.
1298 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1299 datadir sysconfdir sharedstatedir localstatedir includedir \
1300 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1301 libdir localedir mandir
1303 eval ac_val=\$$ac_var
1304 # Remove trailing slashes.
1307 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1308 eval $ac_var=\$ac_val;;
1310 # Be sure to have absolute directory names.
1312 [\\/$]* | ?:[\\/]* ) continue;;
1313 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1315 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1318 # There might be people who depend on the old broken behavior: `$host'
1319 # used to hold the argument of --host etc.
1320 # FIXME: To remove some day.
1323 target=$target_alias
1325 # FIXME: To remove some day.
1326 if test "x$host_alias" != x; then
1327 if test "x$build_alias" = x; then
1328 cross_compiling=maybe
1329 elif test "x$build_alias" != "x$host_alias"; then
1335 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1337 test "$silent" = yes && exec 6>/dev/null
1340 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1341 ac_ls_di=`ls -di .` &&
1342 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1343 as_fn_error $? "working directory cannot be determined"
1344 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1345 as_fn_error $? "pwd does not report name of working directory"
1348 # Find the source files, if location was not specified.
1349 if test -z "$srcdir"; then
1350 ac_srcdir_defaulted=yes
1351 # Try the directory containing this script, then the parent directory.
1352 ac_confdir=`$as_dirname -- "$as_myself" ||
1353 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1354 X"$as_myself" : 'X\(//\)[^/]' \| \
1355 X"$as_myself" : 'X\(//\)$' \| \
1356 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1357 $as_echo X"$as_myself" |
1358 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1376 if test ! -r "$srcdir/$ac_unique_file"; then
1380 ac_srcdir_defaulted=no
1382 if test ! -r "$srcdir/$ac_unique_file"; then
1383 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1384 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1386 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1388 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1390 # When building in place, set srcdir=.
1391 if test "$ac_abs_confdir" = "$ac_pwd"; then
1394 # Remove unnecessary trailing slashes from srcdir.
1395 # Double slashes in file names in object file debugging info
1396 # mess up M-x gdb in Emacs.
1398 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1400 for ac_var in $ac_precious_vars; do
1401 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1402 eval ac_env_${ac_var}_value=\$${ac_var}
1403 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1404 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1408 # Report the --help message.
1410 if test "$ac_init_help" = "long"; then
1411 # Omit some internal or obsolete options to make the list less imposing.
1412 # This message is too long to be a string in the A/UX 3.1 sh.
1414 \`configure' configures this package to adapt to many kinds of systems.
1416 Usage: $0 [OPTION]... [VAR=VALUE]...
1418 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1419 VAR=VALUE. See below for descriptions of some of the useful variables.
1421 Defaults for the options are specified in brackets.
1424 -h, --help display this help and exit
1425 --help=short display options specific to this package
1426 --help=recursive display the short help of all the included packages
1427 -V, --version display version information and exit
1428 -q, --quiet, --silent do not print \`checking ...' messages
1429 --cache-file=FILE cache test results in FILE [disabled]
1430 -C, --config-cache alias for \`--cache-file=config.cache'
1431 -n, --no-create do not create output files
1432 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1434 Installation directories:
1435 --prefix=PREFIX install architecture-independent files in PREFIX
1436 [$ac_default_prefix]
1437 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1440 By default, \`make install' will install all the files in
1441 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1442 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1443 for instance \`--prefix=\$HOME'.
1445 For better control, use the options below.
1447 Fine tuning of the installation directories:
1448 --bindir=DIR user executables [EPREFIX/bin]
1449 --sbindir=DIR system admin executables [EPREFIX/sbin]
1450 --libexecdir=DIR program executables [EPREFIX/libexec]
1451 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1452 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1453 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1454 --libdir=DIR object code libraries [EPREFIX/lib]
1455 --includedir=DIR C header files [PREFIX/include]
1456 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1457 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1458 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1459 --infodir=DIR info documentation [DATAROOTDIR/info]
1460 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1461 --mandir=DIR man documentation [DATAROOTDIR/man]
1462 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1463 --htmldir=DIR html documentation [DOCDIR]
1464 --dvidir=DIR dvi documentation [DOCDIR]
1465 --pdfdir=DIR pdf documentation [DOCDIR]
1466 --psdir=DIR ps documentation [DOCDIR]
1472 --build=BUILD configure for building on BUILD [guessed]
1473 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1477 if test -n "$ac_init_help"; then
1482 --disable-option-checking ignore unrecognized --enable/--with options
1483 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1484 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1485 --enable-maintainer-mode enable makefile rules useful for maintainers
1486 --enable-symlink-install use symlinks when installing instead of hard links
1487 --enable-relative-symlinks use relative symlinks when installing
1489 --enable-symlink-build use symlinks while building instead of hard links
1490 --enable-verbose-makecmds enable verbose make command output
1491 --enable-compression enable EXPERIMENTAL compression support
1492 --enable-htree enable EXPERIMENTAL htree directory support
1493 --enable-elf-shlibs select ELF shared libraries
1494 --enable-bsd-shlibs select BSD shared libraries
1495 --enable-profile build profiling libraries
1496 --enable-gcov build for coverage testing using gcov
1497 --enable-checker build checker libraries
1498 --enable-jbd-debug enable journal debugging
1499 --enable-blkid-debug enable blkid debugging
1500 --disable-testio-debug disable the use of the test I/O manager for debugging
1501 --disable-libuuid do not build private uuid library
1502 --disable-libblkid do not build private blkid library
1503 --enable-quota enable quota support
1504 --disable-backtrace disable use backtrace
1505 --disable-debugfs disable support of debugfs program
1506 --disable-imager disable support of e2image program
1507 --disable-resizer disable support of e2resize program
1508 --disable-defrag disable support of e4defrag program
1509 --enable-fsck build fsck wrapper program
1510 --enable-e2initrd-helper build e2initrd-helper program
1511 --disable-tls disable use of thread local support
1512 --disable-uuidd disable building the uuid daemon
1513 --disable-nls do not use Native Language Support
1514 --disable-rpath do not hardcode runtime library paths
1517 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1518 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1519 --with-diet-libc use diet libc
1520 --with-cc no longer supported, use CC= instead
1521 --with-ccopts no longer supported, use CFLAGS= instead
1522 --with-ldopts no longer supported, use LDFLAGS= instead
1523 --with-root-prefix=PREFIX override prefix variable for files to be placed in the root
1524 --with-gnu-ld assume the C compiler uses GNU ld default=no
1525 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1526 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1527 --with-included-gettext use the GNU gettext library included here
1528 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1529 --without-libintl-prefix don't search for libintl in includedir and libdir
1530 --with-multiarch=ARCH specify the multiarch triplet
1532 Some influential environment variables:
1533 CC C compiler command
1534 CFLAGS C compiler flags
1535 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1536 nonstandard directory <lib dir>
1537 LIBS libraries to pass to the linker, e.g. -l<library>
1538 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1539 you have headers in a nonstandard directory <include dir>
1541 PKG_CONFIG path to pkg-config utility
1543 Use these variables to override the choices made by `configure' or to help
1544 it to find libraries and programs with nonstandard names/locations.
1546 Report bugs to the package provider.
1551 if test "$ac_init_help" = "recursive"; then
1552 # If there are subdirs, report their specific --help.
1553 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1554 test -d "$ac_dir" ||
1555 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1560 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1562 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1563 # A ".." for each directory in $ac_dir_suffix.
1564 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1565 case $ac_top_builddir_sub in
1566 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1567 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1570 ac_abs_top_builddir=$ac_pwd
1571 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1572 # for backward compatibility:
1573 ac_top_builddir=$ac_top_build_prefix
1576 .) # We are building in place.
1578 ac_top_srcdir=$ac_top_builddir_sub
1579 ac_abs_top_srcdir=$ac_pwd ;;
1580 [\\/]* | ?:[\\/]* ) # Absolute name.
1581 ac_srcdir=$srcdir$ac_dir_suffix;
1582 ac_top_srcdir=$srcdir
1583 ac_abs_top_srcdir=$srcdir ;;
1585 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1586 ac_top_srcdir=$ac_top_build_prefix$srcdir
1587 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1589 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1591 cd "$ac_dir" || { ac_status=$?; continue; }
1592 # Check for guested configure.
1593 if test -f "$ac_srcdir/configure.gnu"; then
1595 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1596 elif test -f "$ac_srcdir/configure"; then
1598 $SHELL "$ac_srcdir/configure" --help=recursive
1600 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1602 cd "$ac_pwd" || { ac_status=$?; break; }
1606 test -n "$ac_init_help" && exit $ac_status
1607 if $ac_init_version; then
1610 generated by GNU Autoconf 2.69
1612 Copyright (C) 2012 Free Software Foundation, Inc.
1613 This configure script is free software; the Free Software Foundation
1614 gives unlimited permission to copy, distribute and modify it.
1619 ## ------------------------ ##
1620 ## Autoconf initialization. ##
1621 ## ------------------------ ##
1623 # ac_fn_c_try_compile LINENO
1624 # --------------------------
1625 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1626 ac_fn_c_try_compile ()
1628 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1629 rm -f conftest.$ac_objext
1630 if { { ac_try="$ac_compile"
1632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1633 *) ac_try_echo=$ac_try;;
1635 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1636 $as_echo "$ac_try_echo"; } >&5
1637 (eval "$ac_compile") 2>conftest.err
1639 if test -s conftest.err; then
1640 grep -v '^ *+' conftest.err >conftest.er1
1641 cat conftest.er1 >&5
1642 mv -f conftest.er1 conftest.err
1644 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1645 test $ac_status = 0; } && {
1646 test -z "$ac_c_werror_flag" ||
1647 test ! -s conftest.err
1648 } && test -s conftest.$ac_objext; then :
1651 $as_echo "$as_me: failed program was:" >&5
1652 sed 's/^/| /' conftest.$ac_ext >&5
1656 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1657 as_fn_set_status $ac_retval
1659 } # ac_fn_c_try_compile
1661 # ac_fn_c_try_link LINENO
1662 # -----------------------
1663 # Try to link conftest.$ac_ext, and return whether this succeeded.
1666 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1667 rm -f conftest.$ac_objext conftest$ac_exeext
1668 if { { ac_try="$ac_link"
1670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1671 *) ac_try_echo=$ac_try;;
1673 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1674 $as_echo "$ac_try_echo"; } >&5
1675 (eval "$ac_link") 2>conftest.err
1677 if test -s conftest.err; then
1678 grep -v '^ *+' conftest.err >conftest.er1
1679 cat conftest.er1 >&5
1680 mv -f conftest.er1 conftest.err
1682 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1683 test $ac_status = 0; } && {
1684 test -z "$ac_c_werror_flag" ||
1685 test ! -s conftest.err
1686 } && test -s conftest$ac_exeext && {
1687 test "$cross_compiling" = yes ||
1688 test -x conftest$ac_exeext
1692 $as_echo "$as_me: failed program was:" >&5
1693 sed 's/^/| /' conftest.$ac_ext >&5
1697 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1698 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1699 # interfere with the next link command; also delete a directory that is
1700 # left behind by Apple's compiler. We do this before executing the actions.
1701 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1702 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1703 as_fn_set_status $ac_retval
1705 } # ac_fn_c_try_link
1707 # ac_fn_c_try_cpp LINENO
1708 # ----------------------
1709 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1712 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1713 if { { ac_try="$ac_cpp conftest.$ac_ext"
1715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1716 *) ac_try_echo=$ac_try;;
1718 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1719 $as_echo "$ac_try_echo"; } >&5
1720 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1722 if test -s conftest.err; then
1723 grep -v '^ *+' conftest.err >conftest.er1
1724 cat conftest.er1 >&5
1725 mv -f conftest.er1 conftest.err
1727 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1728 test $ac_status = 0; } > conftest.i && {
1729 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1730 test ! -s conftest.err
1734 $as_echo "$as_me: failed program was:" >&5
1735 sed 's/^/| /' conftest.$ac_ext >&5
1739 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1740 as_fn_set_status $ac_retval
1744 # ac_fn_c_try_run LINENO
1745 # ----------------------
1746 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1747 # that executables *can* be run.
1750 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1751 if { { ac_try="$ac_link"
1753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1754 *) ac_try_echo=$ac_try;;
1756 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1757 $as_echo "$ac_try_echo"; } >&5
1758 (eval "$ac_link") 2>&5
1760 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1761 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1762 { { case "(($ac_try" in
1763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1764 *) ac_try_echo=$ac_try;;
1766 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1767 $as_echo "$ac_try_echo"; } >&5
1768 (eval "$ac_try") 2>&5
1770 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1771 test $ac_status = 0; }; }; then :
1774 $as_echo "$as_me: program exited with status $ac_status" >&5
1775 $as_echo "$as_me: failed program was:" >&5
1776 sed 's/^/| /' conftest.$ac_ext >&5
1778 ac_retval=$ac_status
1780 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1781 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1782 as_fn_set_status $ac_retval
1786 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1787 # -------------------------------------------
1788 # Tests whether TYPE exists after having included INCLUDES, setting cache
1789 # variable VAR accordingly.
1790 ac_fn_c_check_type ()
1792 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1794 $as_echo_n "checking for $2... " >&6; }
1795 if eval \${$3+:} false; then :
1796 $as_echo_n "(cached) " >&6
1799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1800 /* end confdefs.h. */
1811 if ac_fn_c_try_compile "$LINENO"; then :
1812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1813 /* end confdefs.h. */
1824 if ac_fn_c_try_compile "$LINENO"; then :
1829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1835 $as_echo "$ac_res" >&6; }
1836 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1838 } # ac_fn_c_check_type
1840 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1841 # -------------------------------------------------------
1842 # Tests whether HEADER exists and can be compiled using the include files in
1843 # INCLUDES, setting the cache variable VAR accordingly.
1844 ac_fn_c_check_header_compile ()
1846 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1848 $as_echo_n "checking for $2... " >&6; }
1849 if eval \${$3+:} false; then :
1850 $as_echo_n "(cached) " >&6
1852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1853 /* end confdefs.h. */
1857 if ac_fn_c_try_compile "$LINENO"; then :
1862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1866 $as_echo "$ac_res" >&6; }
1867 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1869 } # ac_fn_c_check_header_compile
1871 # ac_fn_c_check_func LINENO FUNC VAR
1872 # ----------------------------------
1873 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1874 ac_fn_c_check_func ()
1876 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1878 $as_echo_n "checking for $2... " >&6; }
1879 if eval \${$3+:} false; then :
1880 $as_echo_n "(cached) " >&6
1882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1883 /* end confdefs.h. */
1884 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1885 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1886 #define $2 innocuous_$2
1888 /* System header to define __stub macros and hopefully few prototypes,
1889 which can conflict with char $2 (); below.
1890 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1891 <limits.h> exists even on freestanding compilers. */
1894 # include <limits.h>
1896 # include <assert.h>
1901 /* Override any GCC internal prototype to avoid an error.
1902 Use char because int might match the return type of a GCC
1903 builtin and then its argument prototype would still apply. */
1908 /* The GNU C library defines this for functions which it implements
1909 to always fail with ENOSYS. Some functions are actually named
1910 something starting with __ and the normal name is an alias. */
1911 #if defined __stub_$2 || defined __stub___$2
1923 if ac_fn_c_try_link "$LINENO"; then :
1928 rm -f core conftest.err conftest.$ac_objext \
1929 conftest$ac_exeext conftest.$ac_ext
1932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1933 $as_echo "$ac_res" >&6; }
1934 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1936 } # ac_fn_c_check_func
1938 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1939 # -------------------------------------------------------
1940 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1941 # the include files in INCLUDES and setting the cache variable VAR
1943 ac_fn_c_check_header_mongrel ()
1945 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1946 if eval \${$3+:} false; then :
1947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1948 $as_echo_n "checking for $2... " >&6; }
1949 if eval \${$3+:} false; then :
1950 $as_echo_n "(cached) " >&6
1953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1954 $as_echo "$ac_res" >&6; }
1956 # Is the header compilable?
1957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1958 $as_echo_n "checking $2 usability... " >&6; }
1959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1960 /* end confdefs.h. */
1964 if ac_fn_c_try_compile "$LINENO"; then :
1965 ac_header_compiler=yes
1967 ac_header_compiler=no
1969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1971 $as_echo "$ac_header_compiler" >&6; }
1973 # Is the header present?
1974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1975 $as_echo_n "checking $2 presence... " >&6; }
1976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1977 /* end confdefs.h. */
1980 if ac_fn_c_try_cpp "$LINENO"; then :
1981 ac_header_preproc=yes
1983 ac_header_preproc=no
1985 rm -f conftest.err conftest.i conftest.$ac_ext
1986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1987 $as_echo "$ac_header_preproc" >&6; }
1989 # So? What about this header?
1990 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1992 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1993 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1994 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1995 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1998 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1999 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2000 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2001 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2002 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2003 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2004 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2005 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2006 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2007 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2011 $as_echo_n "checking for $2... " >&6; }
2012 if eval \${$3+:} false; then :
2013 $as_echo_n "(cached) " >&6
2015 eval "$3=\$ac_header_compiler"
2018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2019 $as_echo "$ac_res" >&6; }
2021 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2023 } # ac_fn_c_check_header_mongrel
2025 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2026 # --------------------------------------------
2027 # Tries to find the compile-time value of EXPR in a program that includes
2028 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2030 ac_fn_c_compute_int ()
2032 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2033 if test "$cross_compiling" = yes; then
2034 # Depending upon the size, compute the lo and hi bounds.
2035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2036 /* end confdefs.h. */
2041 static int test_array [1 - 2 * !(($2) >= 0)];
2043 return test_array [0];
2049 if ac_fn_c_try_compile "$LINENO"; then :
2052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2053 /* end confdefs.h. */
2058 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2060 return test_array [0];
2066 if ac_fn_c_try_compile "$LINENO"; then :
2067 ac_hi=$ac_mid; break
2069 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2070 if test $ac_lo -le $ac_mid; then
2074 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2080 /* end confdefs.h. */
2085 static int test_array [1 - 2 * !(($2) < 0)];
2087 return test_array [0];
2093 if ac_fn_c_try_compile "$LINENO"; then :
2096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2097 /* end confdefs.h. */
2102 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2104 return test_array [0];
2110 if ac_fn_c_try_compile "$LINENO"; then :
2111 ac_lo=$ac_mid; break
2113 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2114 if test $ac_mid -le $ac_hi; then
2118 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2128 # Binary search between lo and hi bounds.
2129 while test "x$ac_lo" != "x$ac_hi"; do
2130 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2132 /* end confdefs.h. */
2137 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2139 return test_array [0];
2145 if ac_fn_c_try_compile "$LINENO"; then :
2148 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2153 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2158 /* end confdefs.h. */
2160 static long int longval () { return $2; }
2161 static unsigned long int ulongval () { return $2; }
2168 FILE *f = fopen ("conftest.val", "w");
2173 long int i = longval ();
2176 fprintf (f, "%ld", i);
2180 unsigned long int i = ulongval ();
2183 fprintf (f, "%lu", i);
2185 /* Do not output a trailing newline, as this causes \r\n confusion
2186 on some platforms. */
2187 return ferror (f) || fclose (f) != 0;
2193 if ac_fn_c_try_run "$LINENO"; then :
2194 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2198 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2199 conftest.$ac_objext conftest.beam conftest.$ac_ext
2203 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2204 as_fn_set_status $ac_retval
2206 } # ac_fn_c_compute_int
2208 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2209 # ----------------------------------------------------
2210 # Tries to find if the field MEMBER exists in type AGGR, after including
2211 # INCLUDES, setting cache variable VAR accordingly.
2212 ac_fn_c_check_member ()
2214 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2216 $as_echo_n "checking for $2.$3... " >&6; }
2217 if eval \${$4+:} false; then :
2218 $as_echo_n "(cached) " >&6
2220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2221 /* end confdefs.h. */
2233 if ac_fn_c_try_compile "$LINENO"; then :
2236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2237 /* end confdefs.h. */
2243 if (sizeof ac_aggr.$3)
2249 if ac_fn_c_try_compile "$LINENO"; then :
2254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2260 $as_echo "$ac_res" >&6; }
2261 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2263 } # ac_fn_c_check_member
2265 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2266 # ---------------------------------------------
2267 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2269 ac_fn_c_check_decl ()
2271 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2272 as_decl_name=`echo $2|sed 's/ *(.*//'`
2273 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2275 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2276 if eval \${$3+:} false; then :
2277 $as_echo_n "(cached) " >&6
2279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2280 /* end confdefs.h. */
2285 #ifndef $as_decl_name
2287 (void) $as_decl_use;
2289 (void) $as_decl_name;
2297 if ac_fn_c_try_compile "$LINENO"; then :
2302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2306 $as_echo "$ac_res" >&6; }
2307 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2309 } # ac_fn_c_check_decl
2310 cat >config.log <<_ACEOF
2311 This file contains any messages produced by compilers while
2312 running configure, to aid debugging if configure makes a mistake.
2314 It was created by $as_me, which was
2315 generated by GNU Autoconf 2.69. Invocation command line was
2327 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2328 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2329 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2330 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2331 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2333 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2334 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2336 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2337 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2338 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2339 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2340 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2341 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2342 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2350 test -z "$as_dir" && as_dir=.
2351 $as_echo "PATH: $as_dir"
2367 # Keep a trace of the command line.
2368 # Strip out --no-create and --no-recursion so they do not pile up.
2369 # Strip out --silent because we don't want to record it for future runs.
2370 # Also quote any args containing shell meta-characters.
2371 # Make two passes to allow for proper duplicate-argument suppression.
2375 ac_must_keep_next=false
2381 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2382 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2383 | -silent | --silent | --silen | --sile | --sil)
2386 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2389 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2391 as_fn_append ac_configure_args1 " '$ac_arg'"
2392 if test $ac_must_keep_next = true; then
2393 ac_must_keep_next=false # Got value, back to normal.
2396 *=* | --config-cache | -C | -disable-* | --disable-* \
2397 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2398 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2399 | -with-* | --with-* | -without-* | --without-* | --x)
2400 case "$ac_configure_args0 " in
2401 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2404 -* ) ac_must_keep_next=true ;;
2407 as_fn_append ac_configure_args " '$ac_arg'"
2412 { ac_configure_args0=; unset ac_configure_args0;}
2413 { ac_configure_args1=; unset ac_configure_args1;}
2415 # When interrupted or exit'd, cleanup temporary files, and complete
2416 # config.log. We remove comments because anyway the quotes in there
2417 # would cause problems or look ugly.
2418 # WARNING: Use '\'' to represent an apostrophe within the trap.
2419 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2420 trap 'exit_status=$?
2421 # Save into config.log some information that might help in debugging.
2425 $as_echo "## ---------------- ##
2426 ## Cache variables. ##
2427 ## ---------------- ##"
2429 # The following way of writing the cache mishandles newlines in values,
2431 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2432 eval ac_val=\$$ac_var
2436 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2437 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2440 _ | IFS | as_nl) ;; #(
2441 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2442 *) { eval $ac_var=; unset $ac_var;} ;;
2447 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2448 *${as_nl}ac_space=\ *)
2450 "s/'\''/'\''\\\\'\'''\''/g;
2451 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2454 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2461 $as_echo "## ----------------- ##
2462 ## Output variables. ##
2463 ## ----------------- ##"
2465 for ac_var in $ac_subst_vars
2467 eval ac_val=\$$ac_var
2469 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2471 $as_echo "$ac_var='\''$ac_val'\''"
2475 if test -n "$ac_subst_files"; then
2476 $as_echo "## ------------------- ##
2477 ## File substitutions. ##
2478 ## ------------------- ##"
2480 for ac_var in $ac_subst_files
2482 eval ac_val=\$$ac_var
2484 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2486 $as_echo "$ac_var='\''$ac_val'\''"
2491 if test -s confdefs.h; then
2492 $as_echo "## ----------- ##
2499 test "$ac_signal" != 0 &&
2500 $as_echo "$as_me: caught signal $ac_signal"
2501 $as_echo "$as_me: exit $exit_status"
2503 rm -f core *.core core.conftest.* &&
2504 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2507 for ac_signal in 1 2 13 15; do
2508 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2512 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2513 rm -f -r conftest* confdefs.h
2515 $as_echo "/* confdefs.h */" > confdefs.h
2517 # Predefined preprocessor variables.
2519 cat >>confdefs.h <<_ACEOF
2520 #define PACKAGE_NAME "$PACKAGE_NAME"
2523 cat >>confdefs.h <<_ACEOF
2524 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2527 cat >>confdefs.h <<_ACEOF
2528 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2531 cat >>confdefs.h <<_ACEOF
2532 #define PACKAGE_STRING "$PACKAGE_STRING"
2535 cat >>confdefs.h <<_ACEOF
2536 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2539 cat >>confdefs.h <<_ACEOF
2540 #define PACKAGE_URL "$PACKAGE_URL"
2544 # Let the site file select an alternate cache file if it wants to.
2545 # Prefer an explicitly selected file to automatically selected ones.
2548 if test -n "$CONFIG_SITE"; then
2549 # We do not want a PATH search for config.site.
2550 case $CONFIG_SITE in #((
2551 -*) ac_site_file1=./$CONFIG_SITE;;
2552 */*) ac_site_file1=$CONFIG_SITE;;
2553 *) ac_site_file1=./$CONFIG_SITE;;
2555 elif test "x$prefix" != xNONE; then
2556 ac_site_file1=$prefix/share/config.site
2557 ac_site_file2=$prefix/etc/config.site
2559 ac_site_file1=$ac_default_prefix/share/config.site
2560 ac_site_file2=$ac_default_prefix/etc/config.site
2562 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2564 test "x$ac_site_file" = xNONE && continue
2565 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2566 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2567 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2568 sed 's/^/| /' "$ac_site_file" >&5
2570 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2571 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2572 as_fn_error $? "failed to load site script $ac_site_file
2573 See \`config.log' for more details" "$LINENO" 5; }
2577 if test -r "$cache_file"; then
2578 # Some versions of bash will fail to source /dev/null (special files
2579 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2580 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2581 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2582 $as_echo "$as_me: loading cache $cache_file" >&6;}
2584 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2585 *) . "./$cache_file";;
2589 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2590 $as_echo "$as_me: creating cache $cache_file" >&6;}
2594 as_fn_append ac_header_list " stdlib.h"
2595 as_fn_append ac_header_list " unistd.h"
2596 as_fn_append ac_header_list " sys/param.h"
2597 # Check that the precious variables saved in the cache have kept the same
2599 ac_cache_corrupted=false
2600 for ac_var in $ac_precious_vars; do
2601 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2602 eval ac_new_set=\$ac_env_${ac_var}_set
2603 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2604 eval ac_new_val=\$ac_env_${ac_var}_value
2605 case $ac_old_set,$ac_new_set in
2607 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2608 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2609 ac_cache_corrupted=: ;;
2611 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2612 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2613 ac_cache_corrupted=: ;;
2616 if test "x$ac_old_val" != "x$ac_new_val"; then
2617 # differences in whitespace do not lead to failure.
2618 ac_old_val_w=`echo x $ac_old_val`
2619 ac_new_val_w=`echo x $ac_new_val`
2620 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2621 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2622 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2623 ac_cache_corrupted=:
2625 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2626 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2627 eval $ac_var=\$ac_old_val
2629 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2630 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2631 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2632 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2635 # Pass precious variables to config.status.
2636 if test "$ac_new_set" = set; then
2638 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2639 *) ac_arg=$ac_var=$ac_new_val ;;
2641 case " $ac_configure_args " in
2642 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2643 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2647 if $ac_cache_corrupted; then
2648 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2649 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2650 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2651 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2652 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2654 ## -------------------- ##
2655 ## Main body of script. ##
2656 ## -------------------- ##
2659 ac_cpp='$CPP $CPPFLAGS'
2660 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2661 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2662 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2667 for ac_dir in config "$srcdir"/config; do
2668 if test -f "$ac_dir/install-sh"; then
2670 ac_install_sh="$ac_aux_dir/install-sh -c"
2672 elif test -f "$ac_dir/install.sh"; then
2674 ac_install_sh="$ac_aux_dir/install.sh -c"
2676 elif test -f "$ac_dir/shtool"; then
2678 ac_install_sh="$ac_aux_dir/shtool install -c"
2682 if test -z "$ac_aux_dir"; then
2683 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2686 # These three variables are undocumented and unsupported,
2687 # and are intended to be withdrawn in a future Autoconf release.
2688 # They can cause serious problems if a builder's source tree is in a directory
2689 # whose full name contains unusual characters.
2690 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2691 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2692 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2695 ac_config_headers="$ac_config_headers lib/config.h"
2701 E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \
2702 | awk '{print $3}' | tr \" " " | awk '{print $1}'`
2703 DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
2705 E2FSPROGS_DAY=`echo $DATE | awk -F- '{print $1}'`
2706 MONTH=`echo $DATE | awk -F- '{print $2}'`
2707 YEAR=`echo $DATE | awk -F- '{print $3}'`
2709 if expr $YEAR ">" 1900 > /dev/null ; then
2710 E2FSPROGS_YEAR=$YEAR
2711 elif expr $YEAR ">" 90 >/dev/null ; then
2712 E2FSPROGS_YEAR=19$YEAR
2714 E2FSPROGS_YEAR=20$YEAR
2718 Jan) MONTH_NUM=01; E2FSPROGS_MONTH="January" ;;
2719 Feb) MONTH_NUM=02; E2FSPROGS_MONTH="February" ;;
2720 Mar) MONTH_NUM=03; E2FSPROGS_MONTH="March" ;;
2721 Apr) MONTH_NUM=04; E2FSPROGS_MONTH="April" ;;
2722 May) MONTH_NUM=05; E2FSPROGS_MONTH="May" ;;
2723 Jun) MONTH_NUM=06; E2FSPROGS_MONTH="June" ;;
2724 Jul) MONTH_NUM=07; E2FSPROGS_MONTH="July" ;;
2725 Aug) MONTH_NUM=08; E2FSPROGS_MONTH="August" ;;
2726 Sep) MONTH_NUM=09; E2FSPROGS_MONTH="September" ;;
2727 Oct) MONTH_NUM=10; E2FSPROGS_MONTH="October" ;;
2728 Nov) MONTH_NUM=11; E2FSPROGS_MONTH="November" ;;
2729 Dec) MONTH_NUM=12; E2FSPROGS_MONTH="December" ;;
2730 *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unknown month $MONTH??" >&5
2731 $as_echo "$as_me: WARNING: Unknown month $MONTH??" >&2;} ;;
2734 base_ver=`echo $E2FSPROGS_VERSION | \
2735 sed -e 's/-WIP//' -e 's/pre-//' -e 's/-PLUS//'`
2737 date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY}
2739 case $E2FSPROGS_VERSION in
2741 E2FSPROGS_PKGVER="$base_ver~WIP-$E2FSPROGS_YEAR-$MONTH_NUM-$E2FSPROGS_DAY"
2744 E2FSPROGS_PKGVER="$base_ver"
2748 unset DATE MONTH YEAR base_ver pre_vers date_spec
2749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&5
2750 $as_echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&6; }
2751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&5
2752 $as_echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&6; }
2760 # Check whether --with-diet-libc was given.
2761 if test "${with_diet_libc+set}" = set; then :
2762 withval=$with_diet_libc; CC="diet cc -nostdinc"
2768 LIBS="$LIBS -lcompat"
2770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: CC=$CC" >&5
2771 $as_echo "CC=$CC" >&6; }
2773 # Make sure we can run config.sub.
2774 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2775 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2778 $as_echo_n "checking build system type... " >&6; }
2779 if ${ac_cv_build+:} false; then :
2780 $as_echo_n "(cached) " >&6
2782 ac_build_alias=$build_alias
2783 test "x$ac_build_alias" = x &&
2784 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2785 test "x$ac_build_alias" = x &&
2786 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2787 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2788 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2792 $as_echo "$ac_cv_build" >&6; }
2793 case $ac_cv_build in
2795 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2798 ac_save_IFS=$IFS; IFS='-'
2804 # Remember, the first character of IFS is used to create $*,
2805 # except with old shells:
2808 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2812 $as_echo_n "checking host system type... " >&6; }
2813 if ${ac_cv_host+:} false; then :
2814 $as_echo_n "(cached) " >&6
2816 if test "x$host_alias" = x; then
2817 ac_cv_host=$ac_cv_build
2819 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2820 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2825 $as_echo "$ac_cv_host" >&6; }
2828 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2831 ac_save_IFS=$IFS; IFS='-'
2837 # Remember, the first character of IFS is used to create $*,
2838 # except with old shells:
2841 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2846 ac_cpp='$CPP $CPPFLAGS'
2847 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2848 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2849 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2850 if test -n "$ac_tool_prefix"; then
2851 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2852 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2854 $as_echo_n "checking for $ac_word... " >&6; }
2855 if ${ac_cv_prog_CC+:} false; then :
2856 $as_echo_n "(cached) " >&6
2858 if test -n "$CC"; then
2859 ac_cv_prog_CC="$CC" # Let the user override the test.
2861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2865 test -z "$as_dir" && as_dir=.
2866 for ac_exec_ext in '' $ac_executable_extensions; do
2867 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2868 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2879 if test -n "$CC"; then
2880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2881 $as_echo "$CC" >&6; }
2883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2884 $as_echo "no" >&6; }
2889 if test -z "$ac_cv_prog_CC"; then
2891 # Extract the first word of "gcc", so it can be a program name with args.
2892 set dummy gcc; ac_word=$2
2893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2894 $as_echo_n "checking for $ac_word... " >&6; }
2895 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2896 $as_echo_n "(cached) " >&6
2898 if test -n "$ac_ct_CC"; then
2899 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2905 test -z "$as_dir" && as_dir=.
2906 for ac_exec_ext in '' $ac_executable_extensions; do
2907 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2908 ac_cv_prog_ac_ct_CC="gcc"
2909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2918 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2919 if test -n "$ac_ct_CC"; then
2920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2921 $as_echo "$ac_ct_CC" >&6; }
2923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2924 $as_echo "no" >&6; }
2927 if test "x$ac_ct_CC" = x; then
2930 case $cross_compiling:$ac_tool_warned in
2932 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2933 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2934 ac_tool_warned=yes ;;
2942 if test -z "$CC"; then
2943 if test -n "$ac_tool_prefix"; then
2944 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2945 set dummy ${ac_tool_prefix}cc; ac_word=$2
2946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2947 $as_echo_n "checking for $ac_word... " >&6; }
2948 if ${ac_cv_prog_CC+:} false; then :
2949 $as_echo_n "(cached) " >&6
2951 if test -n "$CC"; then
2952 ac_cv_prog_CC="$CC" # Let the user override the test.
2954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2958 test -z "$as_dir" && as_dir=.
2959 for ac_exec_ext in '' $ac_executable_extensions; do
2960 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2961 ac_cv_prog_CC="${ac_tool_prefix}cc"
2962 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2972 if test -n "$CC"; then
2973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2974 $as_echo "$CC" >&6; }
2976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2977 $as_echo "no" >&6; }
2983 if test -z "$CC"; then
2984 # Extract the first word of "cc", so it can be a program name with args.
2985 set dummy cc; ac_word=$2
2986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2987 $as_echo_n "checking for $ac_word... " >&6; }
2988 if ${ac_cv_prog_CC+:} false; then :
2989 $as_echo_n "(cached) " >&6
2991 if test -n "$CC"; then
2992 ac_cv_prog_CC="$CC" # Let the user override the test.
2995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2999 test -z "$as_dir" && as_dir=.
3000 for ac_exec_ext in '' $ac_executable_extensions; do
3001 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3002 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3003 ac_prog_rejected=yes
3007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3014 if test $ac_prog_rejected = yes; then
3015 # We found a bogon in the path, so make sure we never use it.
3016 set dummy $ac_cv_prog_CC
3018 if test $# != 0; then
3019 # We chose a different compiler from the bogus one.
3020 # However, it has the same basename, so the bogon will be chosen
3021 # first if we set CC to just the basename; use the full file name.
3023 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3029 if test -n "$CC"; then
3030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3031 $as_echo "$CC" >&6; }
3033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3034 $as_echo "no" >&6; }
3039 if test -z "$CC"; then
3040 if test -n "$ac_tool_prefix"; then
3041 for ac_prog in cl.exe
3043 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3044 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3046 $as_echo_n "checking for $ac_word... " >&6; }
3047 if ${ac_cv_prog_CC+:} false; then :
3048 $as_echo_n "(cached) " >&6
3050 if test -n "$CC"; then
3051 ac_cv_prog_CC="$CC" # Let the user override the test.
3053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3057 test -z "$as_dir" && as_dir=.
3058 for ac_exec_ext in '' $ac_executable_extensions; do
3059 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3060 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3061 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3071 if test -n "$CC"; then
3072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3073 $as_echo "$CC" >&6; }
3075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3076 $as_echo "no" >&6; }
3080 test -n "$CC" && break
3083 if test -z "$CC"; then
3085 for ac_prog in cl.exe
3087 # Extract the first word of "$ac_prog", so it can be a program name with args.
3088 set dummy $ac_prog; ac_word=$2
3089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3090 $as_echo_n "checking for $ac_word... " >&6; }
3091 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3092 $as_echo_n "(cached) " >&6
3094 if test -n "$ac_ct_CC"; then
3095 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3101 test -z "$as_dir" && as_dir=.
3102 for ac_exec_ext in '' $ac_executable_extensions; do
3103 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3104 ac_cv_prog_ac_ct_CC="$ac_prog"
3105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3114 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3115 if test -n "$ac_ct_CC"; then
3116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3117 $as_echo "$ac_ct_CC" >&6; }
3119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3120 $as_echo "no" >&6; }
3124 test -n "$ac_ct_CC" && break
3127 if test "x$ac_ct_CC" = x; then
3130 case $cross_compiling:$ac_tool_warned in
3132 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3133 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3134 ac_tool_warned=yes ;;
3143 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3144 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3145 as_fn_error $? "no acceptable C compiler found in \$PATH
3146 See \`config.log' for more details" "$LINENO" 5; }
3148 # Provide some information about the compiler.
3149 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3152 for ac_option in --version -v -V -qversion; do
3153 { { ac_try="$ac_compiler $ac_option >&5"
3155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3156 *) ac_try_echo=$ac_try;;
3158 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3159 $as_echo "$ac_try_echo"; } >&5
3160 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3162 if test -s conftest.err; then
3164 ... rest of stderr output deleted ...
3165 10q' conftest.err >conftest.er1
3166 cat conftest.er1 >&5
3168 rm -f conftest.er1 conftest.err
3169 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3170 test $ac_status = 0; }
3173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3174 /* end confdefs.h. */
3184 ac_clean_files_save=$ac_clean_files
3185 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3186 # Try to create an executable without -o first, disregard a.out.
3187 # It will help us diagnose broken compilers, and finding out an intuition
3189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3190 $as_echo_n "checking whether the C compiler works... " >&6; }
3191 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3193 # The possible output files:
3194 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3197 for ac_file in $ac_files
3200 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3201 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3206 if { { ac_try="$ac_link_default"
3208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3209 *) ac_try_echo=$ac_try;;
3211 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3212 $as_echo "$ac_try_echo"; } >&5
3213 (eval "$ac_link_default") 2>&5
3215 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3216 test $ac_status = 0; }; then :
3217 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3218 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3219 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3220 # so that the user can short-circuit this test for compilers unknown to
3222 for ac_file in $ac_files ''
3224 test -f "$ac_file" || continue
3226 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3229 # We found the default executable, but exeext='' is most
3233 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3235 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3237 # We set ac_cv_exeext here because the later test for it is not
3238 # safe: cross compilers may not add the suffix if given an `-o'
3239 # argument, so we may need to know it at that point already.
3240 # Even if this section looks crufty: it has the advantage of
3247 test "$ac_cv_exeext" = no && ac_cv_exeext=
3252 if test -z "$ac_file"; then :
3253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3254 $as_echo "no" >&6; }
3255 $as_echo "$as_me: failed program was:" >&5
3256 sed 's/^/| /' conftest.$ac_ext >&5
3258 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3259 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3260 as_fn_error 77 "C compiler cannot create executables
3261 See \`config.log' for more details" "$LINENO" 5; }
3263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3264 $as_echo "yes" >&6; }
3266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3267 $as_echo_n "checking for C compiler default output file name... " >&6; }
3268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3269 $as_echo "$ac_file" >&6; }
3270 ac_exeext=$ac_cv_exeext
3272 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3273 ac_clean_files=$ac_clean_files_save
3274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3275 $as_echo_n "checking for suffix of executables... " >&6; }
3276 if { { ac_try="$ac_link"
3278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3279 *) ac_try_echo=$ac_try;;
3281 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3282 $as_echo "$ac_try_echo"; } >&5
3283 (eval "$ac_link") 2>&5
3285 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3286 test $ac_status = 0; }; then :
3287 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3288 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3289 # work properly (i.e., refer to `conftest.exe'), while it won't with
3291 for ac_file in conftest.exe conftest conftest.*; do
3292 test -f "$ac_file" || continue
3294 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3295 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3301 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3302 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3303 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3304 See \`config.log' for more details" "$LINENO" 5; }
3306 rm -f conftest conftest$ac_cv_exeext
3307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3308 $as_echo "$ac_cv_exeext" >&6; }
3310 rm -f conftest.$ac_ext
3311 EXEEXT=$ac_cv_exeext
3313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3314 /* end confdefs.h. */
3319 FILE *f = fopen ("conftest.out", "w");
3320 return ferror (f) || fclose (f) != 0;
3326 ac_clean_files="$ac_clean_files conftest.out"
3327 # Check that the compiler produces executables we can run. If not, either
3328 # the compiler is broken, or we cross compile.
3329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3330 $as_echo_n "checking whether we are cross compiling... " >&6; }
3331 if test "$cross_compiling" != yes; then
3332 { { ac_try="$ac_link"
3334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3335 *) ac_try_echo=$ac_try;;
3337 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3338 $as_echo "$ac_try_echo"; } >&5
3339 (eval "$ac_link") 2>&5
3341 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3342 test $ac_status = 0; }
3343 if { ac_try='./conftest$ac_cv_exeext'
3344 { { case "(($ac_try" in
3345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3346 *) ac_try_echo=$ac_try;;
3348 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3349 $as_echo "$ac_try_echo"; } >&5
3350 (eval "$ac_try") 2>&5
3352 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3353 test $ac_status = 0; }; }; then
3356 if test "$cross_compiling" = maybe; then
3359 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3360 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3361 as_fn_error $? "cannot run C compiled programs.
3362 If you meant to cross compile, use \`--host'.
3363 See \`config.log' for more details" "$LINENO" 5; }
3367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3368 $as_echo "$cross_compiling" >&6; }
3370 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3371 ac_clean_files=$ac_clean_files_save
3372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3373 $as_echo_n "checking for suffix of object files... " >&6; }
3374 if ${ac_cv_objext+:} false; then :
3375 $as_echo_n "(cached) " >&6
3377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3378 /* end confdefs.h. */
3388 rm -f conftest.o conftest.obj
3389 if { { ac_try="$ac_compile"
3391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3392 *) ac_try_echo=$ac_try;;
3394 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3395 $as_echo "$ac_try_echo"; } >&5
3396 (eval "$ac_compile") 2>&5
3398 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3399 test $ac_status = 0; }; then :
3400 for ac_file in conftest.o conftest.obj conftest.*; do
3401 test -f "$ac_file" || continue;
3403 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3404 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3409 $as_echo "$as_me: failed program was:" >&5
3410 sed 's/^/| /' conftest.$ac_ext >&5
3412 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3413 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3414 as_fn_error $? "cannot compute suffix of object files: cannot compile
3415 See \`config.log' for more details" "$LINENO" 5; }
3417 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3420 $as_echo "$ac_cv_objext" >&6; }
3421 OBJEXT=$ac_cv_objext
3423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3424 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3425 if ${ac_cv_c_compiler_gnu+:} false; then :
3426 $as_echo_n "(cached) " >&6
3428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3429 /* end confdefs.h. */
3442 if ac_fn_c_try_compile "$LINENO"; then :
3447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3448 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3452 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3453 if test $ac_compiler_gnu = yes; then
3458 ac_test_CFLAGS=${CFLAGS+set}
3459 ac_save_CFLAGS=$CFLAGS
3460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3461 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3462 if ${ac_cv_prog_cc_g+:} false; then :
3463 $as_echo_n "(cached) " >&6
3465 ac_save_c_werror_flag=$ac_c_werror_flag
3466 ac_c_werror_flag=yes
3469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3470 /* end confdefs.h. */
3480 if ac_fn_c_try_compile "$LINENO"; then :
3484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3485 /* end confdefs.h. */
3495 if ac_fn_c_try_compile "$LINENO"; then :
3498 ac_c_werror_flag=$ac_save_c_werror_flag
3500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3501 /* end confdefs.h. */
3511 if ac_fn_c_try_compile "$LINENO"; then :
3514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3519 ac_c_werror_flag=$ac_save_c_werror_flag
3521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3522 $as_echo "$ac_cv_prog_cc_g" >&6; }
3523 if test "$ac_test_CFLAGS" = set; then
3524 CFLAGS=$ac_save_CFLAGS
3525 elif test $ac_cv_prog_cc_g = yes; then
3526 if test "$GCC" = yes; then
3532 if test "$GCC" = yes; then
3538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3539 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3540 if ${ac_cv_prog_cc_c89+:} false; then :
3541 $as_echo_n "(cached) " >&6
3543 ac_cv_prog_cc_c89=no
3545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3546 /* end confdefs.h. */
3550 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3551 struct buf { int x; };
3552 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3553 static char *e (p, i)
3559 static char *f (char * (*g) (char **, int), char **p, ...)
3564 s = g (p, va_arg (v,int));
3569 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3570 function prototypes and stuff, but not '\xHH' hex character constants.
3571 These don't provoke an error unfortunately, instead are silently treated
3572 as 'x'. The following induces an error, until -std is added to get
3573 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3574 array size at least. It's necessary to write '\x00'==0 to get something
3575 that's true only with -std. */
3576 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3578 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3579 inside strings and character constants. */
3581 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3583 int test (int i, double x);
3584 struct s1 {int (*f) (int a);};
3585 struct s2 {int (*f) (double a);};
3586 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3592 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3597 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3598 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3600 CC="$ac_save_CC $ac_arg"
3601 if ac_fn_c_try_compile "$LINENO"; then :
3602 ac_cv_prog_cc_c89=$ac_arg
3604 rm -f core conftest.err conftest.$ac_objext
3605 test "x$ac_cv_prog_cc_c89" != "xno" && break
3607 rm -f conftest.$ac_ext
3612 case "x$ac_cv_prog_cc_c89" in
3614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3615 $as_echo "none needed" >&6; } ;;
3617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3618 $as_echo "unsupported" >&6; } ;;
3620 CC="$CC $ac_cv_prog_cc_c89"
3621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3622 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3624 if test "x$ac_cv_prog_cc_c89" != xno; then :
3629 ac_cpp='$CPP $CPPFLAGS'
3630 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3631 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3632 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
3636 $as_echo_n "checking for dlopen in -ldl... " >&6; }
3637 if ${ac_cv_lib_dl_dlopen+:} false; then :
3638 $as_echo_n "(cached) " >&6
3640 ac_check_lib_save_LIBS=$LIBS
3642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3643 /* end confdefs.h. */
3645 /* Override any GCC internal prototype to avoid an error.
3646 Use char because int might match the return type of a GCC
3647 builtin and then its argument prototype would still apply. */
3660 if ac_fn_c_try_link "$LINENO"; then :
3661 ac_cv_lib_dl_dlopen=yes
3663 ac_cv_lib_dl_dlopen=no
3665 rm -f core conftest.err conftest.$ac_objext \
3666 conftest$ac_exeext conftest.$ac_ext
3667 LIBS=$ac_check_lib_save_LIBS
3669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
3670 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
3671 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
3674 $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
3680 # Check whether --with-cc was given.
3681 if test "${with_cc+set}" = set; then :
3682 withval=$with_cc; as_fn_error $? "--with-cc no longer supported; use CC= instead" "$LINENO" 5
3686 # Check whether --with-ccopts was given.
3687 if test "${with_ccopts+set}" = set; then :
3688 withval=$with_ccopts; as_fn_error $? "--with-ccopts no longer supported; use CFLAGS= instead" "$LINENO" 5
3692 # Check whether --with-ldopts was given.
3693 if test "${with_ldopts+set}" = set; then :
3694 withval=$with_ldopts; as_fn_error $? "--with-ldopts no longer supported; use LDFLAGS= instead" "$LINENO" 5
3698 ac_cpp='$CPP $CPPFLAGS'
3699 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3700 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3701 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3702 if test -n "$ac_tool_prefix"; then
3703 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3704 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3706 $as_echo_n "checking for $ac_word... " >&6; }
3707 if ${ac_cv_prog_CC+:} false; then :
3708 $as_echo_n "(cached) " >&6
3710 if test -n "$CC"; then
3711 ac_cv_prog_CC="$CC" # Let the user override the test.
3713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3717 test -z "$as_dir" && as_dir=.
3718 for ac_exec_ext in '' $ac_executable_extensions; do
3719 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3720 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3721 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3731 if test -n "$CC"; then
3732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3733 $as_echo "$CC" >&6; }
3735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3736 $as_echo "no" >&6; }
3741 if test -z "$ac_cv_prog_CC"; then
3743 # Extract the first word of "gcc", so it can be a program name with args.
3744 set dummy gcc; ac_word=$2
3745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3746 $as_echo_n "checking for $ac_word... " >&6; }
3747 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3748 $as_echo_n "(cached) " >&6
3750 if test -n "$ac_ct_CC"; then
3751 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3757 test -z "$as_dir" && as_dir=.
3758 for ac_exec_ext in '' $ac_executable_extensions; do
3759 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3760 ac_cv_prog_ac_ct_CC="gcc"
3761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3770 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3771 if test -n "$ac_ct_CC"; then
3772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3773 $as_echo "$ac_ct_CC" >&6; }
3775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3776 $as_echo "no" >&6; }
3779 if test "x$ac_ct_CC" = x; then
3782 case $cross_compiling:$ac_tool_warned in
3784 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3785 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3786 ac_tool_warned=yes ;;
3794 if test -z "$CC"; then
3795 if test -n "$ac_tool_prefix"; then
3796 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3797 set dummy ${ac_tool_prefix}cc; ac_word=$2
3798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3799 $as_echo_n "checking for $ac_word... " >&6; }
3800 if ${ac_cv_prog_CC+:} false; then :
3801 $as_echo_n "(cached) " >&6
3803 if test -n "$CC"; then
3804 ac_cv_prog_CC="$CC" # Let the user override the test.
3806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3810 test -z "$as_dir" && as_dir=.
3811 for ac_exec_ext in '' $ac_executable_extensions; do
3812 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3813 ac_cv_prog_CC="${ac_tool_prefix}cc"
3814 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3824 if test -n "$CC"; then
3825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3826 $as_echo "$CC" >&6; }
3828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3829 $as_echo "no" >&6; }
3835 if test -z "$CC"; then
3836 # Extract the first word of "cc", so it can be a program name with args.
3837 set dummy cc; ac_word=$2
3838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3839 $as_echo_n "checking for $ac_word... " >&6; }
3840 if ${ac_cv_prog_CC+:} false; then :
3841 $as_echo_n "(cached) " >&6
3843 if test -n "$CC"; then
3844 ac_cv_prog_CC="$CC" # Let the user override the test.
3847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3851 test -z "$as_dir" && as_dir=.
3852 for ac_exec_ext in '' $ac_executable_extensions; do
3853 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3854 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3855 ac_prog_rejected=yes
3859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3866 if test $ac_prog_rejected = yes; then
3867 # We found a bogon in the path, so make sure we never use it.
3868 set dummy $ac_cv_prog_CC
3870 if test $# != 0; then
3871 # We chose a different compiler from the bogus one.
3872 # However, it has the same basename, so the bogon will be chosen
3873 # first if we set CC to just the basename; use the full file name.
3875 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3881 if test -n "$CC"; then
3882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3883 $as_echo "$CC" >&6; }
3885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3886 $as_echo "no" >&6; }
3891 if test -z "$CC"; then
3892 if test -n "$ac_tool_prefix"; then
3893 for ac_prog in cl.exe
3895 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3896 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3898 $as_echo_n "checking for $ac_word... " >&6; }
3899 if ${ac_cv_prog_CC+:} false; then :
3900 $as_echo_n "(cached) " >&6
3902 if test -n "$CC"; then
3903 ac_cv_prog_CC="$CC" # Let the user override the test.
3905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3909 test -z "$as_dir" && as_dir=.
3910 for ac_exec_ext in '' $ac_executable_extensions; do
3911 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3912 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3923 if test -n "$CC"; then
3924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3925 $as_echo "$CC" >&6; }
3927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3928 $as_echo "no" >&6; }
3932 test -n "$CC" && break
3935 if test -z "$CC"; then
3937 for ac_prog in cl.exe
3939 # Extract the first word of "$ac_prog", so it can be a program name with args.
3940 set dummy $ac_prog; ac_word=$2
3941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3942 $as_echo_n "checking for $ac_word... " >&6; }
3943 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3944 $as_echo_n "(cached) " >&6
3946 if test -n "$ac_ct_CC"; then
3947 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3953 test -z "$as_dir" && as_dir=.
3954 for ac_exec_ext in '' $ac_executable_extensions; do
3955 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3956 ac_cv_prog_ac_ct_CC="$ac_prog"
3957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3966 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3967 if test -n "$ac_ct_CC"; then
3968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3969 $as_echo "$ac_ct_CC" >&6; }
3971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3972 $as_echo "no" >&6; }
3976 test -n "$ac_ct_CC" && break
3979 if test "x$ac_ct_CC" = x; then
3982 case $cross_compiling:$ac_tool_warned in
3984 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3985 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3986 ac_tool_warned=yes ;;
3995 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3996 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3997 as_fn_error $? "no acceptable C compiler found in \$PATH
3998 See \`config.log' for more details" "$LINENO" 5; }
4000 # Provide some information about the compiler.
4001 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4004 for ac_option in --version -v -V -qversion; do
4005 { { ac_try="$ac_compiler $ac_option >&5"
4007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4008 *) ac_try_echo=$ac_try;;
4010 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4011 $as_echo "$ac_try_echo"; } >&5
4012 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4014 if test -s conftest.err; then
4016 ... rest of stderr output deleted ...
4017 10q' conftest.err >conftest.er1
4018 cat conftest.er1 >&5
4020 rm -f conftest.er1 conftest.err
4021 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4022 test $ac_status = 0; }
4025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4026 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4027 if ${ac_cv_c_compiler_gnu+:} false; then :
4028 $as_echo_n "(cached) " >&6
4030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4031 /* end confdefs.h. */
4044 if ac_fn_c_try_compile "$LINENO"; then :
4049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4050 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4054 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4055 if test $ac_compiler_gnu = yes; then
4060 ac_test_CFLAGS=${CFLAGS+set}
4061 ac_save_CFLAGS=$CFLAGS
4062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4063 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4064 if ${ac_cv_prog_cc_g+:} false; then :
4065 $as_echo_n "(cached) " >&6
4067 ac_save_c_werror_flag=$ac_c_werror_flag
4068 ac_c_werror_flag=yes
4071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4072 /* end confdefs.h. */
4082 if ac_fn_c_try_compile "$LINENO"; then :
4086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4087 /* end confdefs.h. */
4097 if ac_fn_c_try_compile "$LINENO"; then :
4100 ac_c_werror_flag=$ac_save_c_werror_flag
4102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4103 /* end confdefs.h. */
4113 if ac_fn_c_try_compile "$LINENO"; then :
4116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4121 ac_c_werror_flag=$ac_save_c_werror_flag
4123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4124 $as_echo "$ac_cv_prog_cc_g" >&6; }
4125 if test "$ac_test_CFLAGS" = set; then
4126 CFLAGS=$ac_save_CFLAGS
4127 elif test $ac_cv_prog_cc_g = yes; then
4128 if test "$GCC" = yes; then
4134 if test "$GCC" = yes; then
4140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4141 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4142 if ${ac_cv_prog_cc_c89+:} false; then :
4143 $as_echo_n "(cached) " >&6
4145 ac_cv_prog_cc_c89=no
4147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4148 /* end confdefs.h. */
4152 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4153 struct buf { int x; };
4154 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4155 static char *e (p, i)
4161 static char *f (char * (*g) (char **, int), char **p, ...)
4166 s = g (p, va_arg (v,int));
4171 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4172 function prototypes and stuff, but not '\xHH' hex character constants.
4173 These don't provoke an error unfortunately, instead are silently treated
4174 as 'x'. The following induces an error, until -std is added to get
4175 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4176 array size at least. It's necessary to write '\x00'==0 to get something
4177 that's true only with -std. */
4178 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4180 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4181 inside strings and character constants. */
4183 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4185 int test (int i, double x);
4186 struct s1 {int (*f) (int a);};
4187 struct s2 {int (*f) (double a);};
4188 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4194 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4199 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4200 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4202 CC="$ac_save_CC $ac_arg"
4203 if ac_fn_c_try_compile "$LINENO"; then :
4204 ac_cv_prog_cc_c89=$ac_arg
4206 rm -f core conftest.err conftest.$ac_objext
4207 test "x$ac_cv_prog_cc_c89" != "xno" && break
4209 rm -f conftest.$ac_ext
4214 case "x$ac_cv_prog_cc_c89" in
4216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4217 $as_echo "none needed" >&6; } ;;
4219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4220 $as_echo "unsupported" >&6; } ;;
4222 CC="$CC $ac_cv_prog_cc_c89"
4223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4224 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4226 if test "x$ac_cv_prog_cc_c89" != xno; then :
4231 ac_cpp='$CPP $CPPFLAGS'
4232 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4233 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4234 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4236 if test "$GCC" = yes; then
4237 RDYNAMIC="-rdynamic"
4241 ac_cpp='$CPP $CPPFLAGS'
4242 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4243 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4244 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4246 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4247 # On Suns, sometimes $CPP names a directory.
4248 if test -n "$CPP" && test -d "$CPP"; then
4251 if test -z "$CPP"; then
4252 if ${ac_cv_prog_CPP+:} false; then :
4253 $as_echo_n "(cached) " >&6
4255 # Double quotes because CPP needs to be expanded
4256 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4259 for ac_c_preproc_warn_flag in '' yes
4261 # Use a header file that comes with gcc, so configuring glibc
4262 # with a fresh cross-compiler works.
4263 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4264 # <limits.h> exists even on freestanding compilers.
4265 # On the NeXT, cc -E runs the code through the compiler's parser,
4266 # not just through cpp. "Syntax error" is here to catch this case.
4267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4268 /* end confdefs.h. */
4270 # include <limits.h>
4272 # include <assert.h>
4276 if ac_fn_c_try_cpp "$LINENO"; then :
4279 # Broken: fails on valid input.
4282 rm -f conftest.err conftest.i conftest.$ac_ext
4284 # OK, works on sane cases. Now check whether nonexistent headers
4285 # can be detected and how.
4286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4287 /* end confdefs.h. */
4288 #include <ac_nonexistent.h>
4290 if ac_fn_c_try_cpp "$LINENO"; then :
4291 # Broken: success on invalid input.
4294 # Passes both tests.
4298 rm -f conftest.err conftest.i conftest.$ac_ext
4301 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4302 rm -f conftest.i conftest.err conftest.$ac_ext
4303 if $ac_preproc_ok; then :
4315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4316 $as_echo "$CPP" >&6; }
4318 for ac_c_preproc_warn_flag in '' yes
4320 # Use a header file that comes with gcc, so configuring glibc
4321 # with a fresh cross-compiler works.
4322 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4323 # <limits.h> exists even on freestanding compilers.
4324 # On the NeXT, cc -E runs the code through the compiler's parser,
4325 # not just through cpp. "Syntax error" is here to catch this case.
4326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4327 /* end confdefs.h. */
4329 # include <limits.h>
4331 # include <assert.h>
4335 if ac_fn_c_try_cpp "$LINENO"; then :
4338 # Broken: fails on valid input.
4341 rm -f conftest.err conftest.i conftest.$ac_ext
4343 # OK, works on sane cases. Now check whether nonexistent headers
4344 # can be detected and how.
4345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4346 /* end confdefs.h. */
4347 #include <ac_nonexistent.h>
4349 if ac_fn_c_try_cpp "$LINENO"; then :
4350 # Broken: success on invalid input.
4353 # Passes both tests.
4357 rm -f conftest.err conftest.i conftest.$ac_ext
4360 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4361 rm -f conftest.i conftest.err conftest.$ac_ext
4362 if $ac_preproc_ok; then :
4365 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4366 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4367 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4368 See \`config.log' for more details" "$LINENO" 5; }
4372 ac_cpp='$CPP $CPPFLAGS'
4373 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4374 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4375 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for additional special compiler flags" >&5
4378 $as_echo_n "checking for additional special compiler flags... " >&6; }
4379 if test "$GCC" = yes
4382 alpha) addcflags="-mieee" ;;
4385 if test "x$addcflags" != x
4387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $addcflags" >&5
4388 $as_echo "$addcflags" >&6; }
4389 CFLAGS="$addcflags $CFLAGS"
4391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (none)" >&5
4392 $as_echo "(none)" >&6; }
4398 # Check whether --with-root-prefix was given.
4399 if test "${with_root_prefix+set}" = set; then :
4400 withval=$with_root_prefix; root_prefix=$withval
4404 # Check whether --enable-maintainer-mode was given.
4405 if test "${enable_maintainer_mode+set}" = set; then :
4406 enableval=$enable_maintainer_mode; if test "$enableval" = "no"
4409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode" >&5
4410 $as_echo "Disabling maintainer mode" >&6; }
4413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling maintainer mode" >&5
4414 $as_echo "Enabling maintainer mode" >&6; }
4419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode by default" >&5
4420 $as_echo "Disabling maintainer mode by default" >&6; }
4425 # Check whether --enable-symlink-install was given.
4426 if test "${enable_symlink_install+set}" = set; then :
4427 enableval=$enable_symlink_install; if test "$enableval" = "no"
4429 LINK_INSTALL_FLAGS=-f
4430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install" >&5
4431 $as_echo "Disabling symlinks for install" >&6; }
4433 LINK_INSTALL_FLAGS=-sf
4434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for install" >&5
4435 $as_echo "Enabling symlinks for install" >&6; }
4439 LINK_INSTALL_FLAGS=-f
4440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install by default" >&5
4441 $as_echo "Disabling symlinks for install by default" >&6; }
4446 relative_symlink_defined=
4447 # Check whether --enable-relative-symlinks was given.
4448 if test "${enable_relative_symlinks+set}" = set; then :
4449 enableval=$enable_relative_symlinks; if test "$enableval" = "no"
4452 relative_symlink_defined=yes
4453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
4454 $as_echo "Disabling relative symlinks for install" >&6; }
4456 SYMLINK_RELATIVE=--relative
4457 relative_symlink_defined=yes
4458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5
4459 $as_echo "Enabling relative symlinks for install" >&6; }
4463 # Check whether --enable-symlink-relative-symlinks was given.
4464 if test "${enable_symlink_relative_symlinks+set}" = set; then :
4465 enableval=$enable_symlink_relative_symlinks; if test "$enableval" = "no"
4467 SYMLINK_RELATIVE=yes
4468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
4469 $as_echo "Disabling relative symlinks for install" >&6; }
4471 SYMLINK_RELATIVE=--relative
4472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5
4473 $as_echo "Enabling relative symlinks for install" >&6; }
4477 if test -z "$relative_symlink_defined"
4480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install by default" >&5
4481 $as_echo "Disabling relative symlinks for install by default" >&6; }
4487 # Check whether --enable-symlink-build was given.
4488 if test "${enable_symlink_build+set}" = set; then :
4489 enableval=$enable_symlink_build; if test "$enableval" = "no"
4492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build" >&5
4493 $as_echo "Disabling symlinks for build" >&6; }
4496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for build" >&5
4497 $as_echo "Enabling symlinks for build" >&6; }
4502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build by default" >&5
4503 $as_echo "Disabling symlinks for build by default" >&6; }
4508 # Check whether --enable-verbose-makecmds was given.
4509 if test "${enable_verbose_makecmds+set}" = set; then :
4510 enableval=$enable_verbose_makecmds; if test "$enableval" = "no"
4512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
4513 $as_echo "Disabling verbose make commands" >&6; }
4518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling verbose make commands" >&5
4519 $as_echo "Enabling verbose make commands" >&6; }
4526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
4527 $as_echo "Disabling verbose make commands" >&6; }
4537 # Check whether --enable-compression was given.
4538 if test "${enable_compression+set}" = set; then :
4539 enableval=$enable_compression; if test "$enableval" = "no"
4541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling compression support" >&5
4542 $as_echo "Disabling compression support" >&6; }
4545 $as_echo "#define ENABLE_COMPRESSION 1" >>confdefs.h
4547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling compression support" >&5
4548 $as_echo "Enabling compression support" >&6; }
4549 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Compression support is experimental" >&5
4550 $as_echo "$as_me: WARNING: Compression support is experimental" >&2;}
4554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling compression support by default" >&5
4555 $as_echo "Disabling compression support by default" >&6; }
4560 # Check whether --enable-htree was given.
4561 if test "${enable_htree+set}" = set; then :
4562 enableval=$enable_htree; if test "$enableval" = "no"
4565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling htree directory support" >&5
4566 $as_echo "Disabling htree directory support" >&6; }
4569 $as_echo "#define ENABLE_HTREE 1" >>confdefs.h
4571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling htree directory support" >&5
4572 $as_echo "Enabling htree directory support" >&6; }
4577 $as_echo "#define ENABLE_HTREE 1" >>confdefs.h
4579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling htree directory support by default" >&5
4580 $as_echo "Enabling htree directory support by default" >&6; }
4585 E2_PKG_CONFIG_STATIC=--static
4588 # Check whether --enable-elf-shlibs was given.
4589 if test "${enable_elf_shlibs+set}" = set; then :
4590 enableval=$enable_elf_shlibs; if test "$enableval" = "no"
4593 MAKEFILE_ELF=/dev/null
4594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries" >&5
4595 $as_echo "Disabling ELF shared libraries" >&6; }
4597 E2_PKG_CONFIG_STATIC=
4599 MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
4602 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
4608 LDFLAG_DYNAMIC='-Wl,-rpath-link,$(top_builddir)/lib'
4609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling ELF shared libraries" >&5
4610 $as_echo "Enabling ELF shared libraries" >&6; }
4614 MAKEFILE_ELF=/dev/null
4616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries by default" >&5
4617 $as_echo "Disabling ELF shared libraries by default" >&6; }
4623 # Check whether --enable-bsd-shlibs was given.
4624 if test "${enable_bsd_shlibs+set}" = set; then :
4625 enableval=$enable_bsd_shlibs; if test "$enableval" = "no"
4628 MAKEFILE_BSDLIB=/dev/null
4629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries" >&5
4630 $as_echo "Disabling BSD shared libraries" >&6; }
4632 E2_PKG_CONFIG_STATIC=
4634 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
4638 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib
4642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling BSD shared libraries" >&5
4643 $as_echo "Enabling BSD shared libraries" >&6; }
4647 MAKEFILE_BSDLIB=/dev/null
4649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries by default" >&5
4650 $as_echo "Disabling BSD shared libraries by default" >&6; }
4656 # Check whether --enable-profile was given.
4657 if test "${enable_profile+set}" = set; then :
4658 enableval=$enable_profile; if test "$enableval" = "no"
4661 MAKEFILE_PROFILE=/dev/null
4662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries" >&5
4663 $as_echo "Disabling profiling libraries" >&6; }
4666 MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
4667 PROFILED_LIB_EXT=_p.a
4668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building profiling libraries" >&5
4669 $as_echo "Building profiling libraries" >&6; }
4674 MAKEFILE_PROFILE=/dev/null
4675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries by default" >&5
4676 $as_echo "Disabling profiling libraries by default" >&6; }
4682 # Check whether --enable-gcov was given.
4683 if test "${enable_gcov+set}" = set; then :
4684 enableval=$enable_gcov; if test "$enableval" = "yes"
4686 CFLAGS="-g -fprofile-arcs -ftest-coverage"
4687 LDFLAGS="-fprofile-arcs -ftest-coverage"
4688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling gcov support" >&5
4689 $as_echo "Enabling gcov support" >&6; }
4694 # Check whether --enable-checker was given.
4695 if test "${enable_checker+set}" = set; then :
4696 enableval=$enable_checker; if test "$enableval" = "no"
4699 MAKEFILE_CHECKER=/dev/null
4700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling checker libraries" >&5
4701 $as_echo "Disabling checker libraries" >&6; }
4704 MAKEFILE_CHECKER=$srcdir/lib/Makefile.checker
4705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building checker libraries" >&5
4706 $as_echo "Building checker libraries" >&6; }
4711 MAKEFILE_CHECKER=/dev/null
4712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling checker libraries by default" >&5
4713 $as_echo "Disabling checker libraries by default" >&6; }
4724 # Check whether --enable-jbd-debug was given.
4725 if test "${enable_jbd_debug+set}" = set; then :
4726 enableval=$enable_jbd_debug; if test "$enableval" = "no"
4728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging" >&5
4729 $as_echo "Disabling journal debugging" >&6; }
4732 $as_echo "#define CONFIG_JBD_DEBUG 1" >>confdefs.h
4734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling journal debugging" >&5
4735 $as_echo "Enabling journal debugging" >&6; }
4739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging by default" >&5
4740 $as_echo "Disabling journal debugging by default" >&6; }
4744 # Check whether --enable-blkid-debug was given.
4745 if test "${enable_blkid_debug+set}" = set; then :
4746 enableval=$enable_blkid_debug; if test "$enableval" = "no"
4748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging" >&5
4749 $as_echo "Disabling blkid debugging" >&6; }
4752 $as_echo "#define CONFIG_BLKID_DEBUG 1" >>confdefs.h
4754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling blkid debugging" >&5
4755 $as_echo "Enabling blkid debugging" >&6; }
4759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging by default" >&5
4760 $as_echo "Disabling blkid debugging by default" >&6; }
4764 # Check whether --enable-testio-debug was given.
4765 if test "${enable_testio_debug+set}" = set; then :
4766 enableval=$enable_testio_debug;
4767 if test "$enableval" = "no"
4769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling testio debugging" >&5
4770 $as_echo "Disabling testio debugging" >&6; }
4774 $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
4776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging" >&5
4777 $as_echo "Enabling testio debugging" >&6; }
4781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging by default" >&5
4782 $as_echo "Enabling testio debugging by default" >&6; }
4783 $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
4792 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4793 if test -n "$ac_tool_prefix"; then
4794 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4795 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4797 $as_echo_n "checking for $ac_word... " >&6; }
4798 if ${ac_cv_path_PKG_CONFIG+:} false; then :
4799 $as_echo_n "(cached) " >&6
4803 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4810 test -z "$as_dir" && as_dir=.
4811 for ac_exec_ext in '' $ac_executable_extensions; do
4812 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4813 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4814 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4824 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4825 if test -n "$PKG_CONFIG"; then
4826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4827 $as_echo "$PKG_CONFIG" >&6; }
4829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4830 $as_echo "no" >&6; }
4835 if test -z "$ac_cv_path_PKG_CONFIG"; then
4836 ac_pt_PKG_CONFIG=$PKG_CONFIG
4837 # Extract the first word of "pkg-config", so it can be a program name with args.
4838 set dummy pkg-config; ac_word=$2
4839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4840 $as_echo_n "checking for $ac_word... " >&6; }
4841 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4842 $as_echo_n "(cached) " >&6
4844 case $ac_pt_PKG_CONFIG in
4846 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4853 test -z "$as_dir" && as_dir=.
4854 for ac_exec_ext in '' $ac_executable_extensions; do
4855 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4856 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4857 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4867 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4868 if test -n "$ac_pt_PKG_CONFIG"; then
4869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4870 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4873 $as_echo "no" >&6; }
4876 if test "x$ac_pt_PKG_CONFIG" = x; then
4879 case $cross_compiling:$ac_tool_warned in
4881 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4882 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4883 ac_tool_warned=yes ;;
4885 PKG_CONFIG=$ac_pt_PKG_CONFIG
4888 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4892 if test -n "$PKG_CONFIG"; then
4893 _pkg_min_version=0.9.0
4894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4895 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4896 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4898 $as_echo "yes" >&6; }
4900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4901 $as_echo "no" >&6; }
4911 DEPPROFILED_LIBUUID=
4913 # Check whether --enable-libuuid was given.
4914 if test "${enable_libuuid+set}" = set; then :
4915 enableval=$enable_libuuid; if test "$enableval" = "no"
4917 if test -z "$PKG_CONFIG"; then
4918 as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5
4921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
4922 $as_echo_n "checking for uuid_generate in -luuid... " >&6; }
4923 if ${ac_cv_lib_uuid_uuid_generate+:} false; then :
4924 $as_echo_n "(cached) " >&6
4926 ac_check_lib_save_LIBS=$LIBS
4927 LIBS="-luuid $LIBUUID $LIBS"
4928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4929 /* end confdefs.h. */
4931 /* Override any GCC internal prototype to avoid an error.
4932 Use char because int might match the return type of a GCC
4933 builtin and then its argument prototype would still apply. */
4937 char uuid_generate ();
4941 return uuid_generate ();
4946 if ac_fn_c_try_link "$LINENO"; then :
4947 ac_cv_lib_uuid_uuid_generate=yes
4949 ac_cv_lib_uuid_uuid_generate=no
4951 rm -f core conftest.err conftest.$ac_objext \
4952 conftest$ac_exeext conftest.$ac_ext
4953 LIBS=$ac_check_lib_save_LIBS
4955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
4956 $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
4957 if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then :
4958 LIBUUID=`$PKG_CONFIG --libs uuid`;
4959 STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid`
4961 as_fn_error $? "external uuid library not found" "$LINENO" 5
4965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private uuid library" >&5
4966 $as_echo "Disabling private uuid library" >&6; }
4968 LIBUUID='$(LIB)/libuuid'$LIB_EXT
4970 STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
4971 DEPSTATIC_LIBUUID=$STATIC_LIBUUID
4972 PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
4973 DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
4974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library" >&5
4975 $as_echo "Enabling private uuid library" >&6; }
4979 LIBUUID='$(LIB)/libuuid'$LIB_EXT
4981 STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
4982 DEPSTATIC_LIBUUID=$STATIC_LIBUUID
4983 PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
4984 DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
4985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library by default" >&5
4986 $as_echo "Enabling private uuid library by default" >&6; }
4999 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5000 if test -n "$ac_tool_prefix"; then
5001 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5002 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5004 $as_echo_n "checking for $ac_word... " >&6; }
5005 if ${ac_cv_path_PKG_CONFIG+:} false; then :
5006 $as_echo_n "(cached) " >&6
5010 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5017 test -z "$as_dir" && as_dir=.
5018 for ac_exec_ext in '' $ac_executable_extensions; do
5019 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5020 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5021 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5031 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5032 if test -n "$PKG_CONFIG"; then
5033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5034 $as_echo "$PKG_CONFIG" >&6; }
5036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5037 $as_echo "no" >&6; }
5042 if test -z "$ac_cv_path_PKG_CONFIG"; then
5043 ac_pt_PKG_CONFIG=$PKG_CONFIG
5044 # Extract the first word of "pkg-config", so it can be a program name with args.
5045 set dummy pkg-config; ac_word=$2
5046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5047 $as_echo_n "checking for $ac_word... " >&6; }
5048 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
5049 $as_echo_n "(cached) " >&6
5051 case $ac_pt_PKG_CONFIG in
5053 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5060 test -z "$as_dir" && as_dir=.
5061 for ac_exec_ext in '' $ac_executable_extensions; do
5062 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5063 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5074 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5075 if test -n "$ac_pt_PKG_CONFIG"; then
5076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5077 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5080 $as_echo "no" >&6; }
5083 if test "x$ac_pt_PKG_CONFIG" = x; then
5086 case $cross_compiling:$ac_tool_warned in
5088 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5089 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5090 ac_tool_warned=yes ;;
5092 PKG_CONFIG=$ac_pt_PKG_CONFIG
5095 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5099 if test -n "$PKG_CONFIG"; then
5100 _pkg_min_version=0.9.0
5101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5102 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5103 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5105 $as_echo "yes" >&6; }
5107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5108 $as_echo "no" >&6; }
5118 DEPPROFILED_LIBBLKID=
5121 # Check whether --enable-libblkid was given.
5122 if test "${enable_libblkid+set}" = set; then :
5123 enableval=$enable_libblkid; if test "$enableval" = "no"
5125 if test -z "$PKG_CONFIG"; then
5126 as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5
5129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
5130 $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
5131 if ${ac_cv_lib_blkid_blkid_get_cache+:} false; then :
5132 $as_echo_n "(cached) " >&6
5134 ac_check_lib_save_LIBS=$LIBS
5135 LIBS="-lblkid $LIBBLKID $LIBS"
5136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5137 /* end confdefs.h. */
5139 /* Override any GCC internal prototype to avoid an error.
5140 Use char because int might match the return type of a GCC
5141 builtin and then its argument prototype would still apply. */
5145 char blkid_get_cache ();
5149 return blkid_get_cache ();
5154 if ac_fn_c_try_link "$LINENO"; then :
5155 ac_cv_lib_blkid_blkid_get_cache=yes
5157 ac_cv_lib_blkid_blkid_get_cache=no
5159 rm -f core conftest.err conftest.$ac_objext \
5160 conftest$ac_exeext conftest.$ac_ext
5161 LIBS=$ac_check_lib_save_LIBS
5163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
5164 $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
5165 if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes; then :
5166 LIBBLKID=`$PKG_CONFIG --libs blkid`;
5167 STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid`
5169 as_fn_error $? "external blkid library not found" "$LINENO" 5
5173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private blkid library" >&5
5174 $as_echo "Disabling private blkid library" >&6; }
5176 LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5177 DEPLIBBLKID=$LIBBLKID
5178 STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5179 DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5180 PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5181 DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
5182 $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
5184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library" >&5
5185 $as_echo "Enabling private blkid library" >&6; }
5189 LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5190 DEPLIBBLKID=$LIBBLKID
5191 STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5192 DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5193 PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5194 DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
5195 $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
5197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library by default" >&5
5198 $as_echo "Enabling private blkid library by default" >&6; }
5209 QUOTA_MAN_COMMENT='.\"'
5214 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5215 if test -n "$ac_tool_prefix"; then
5216 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5217 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5219 $as_echo_n "checking for $ac_word... " >&6; }
5220 if ${ac_cv_path_PKG_CONFIG+:} false; then :
5221 $as_echo_n "(cached) " >&6
5225 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5232 test -z "$as_dir" && as_dir=.
5233 for ac_exec_ext in '' $ac_executable_extensions; do
5234 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5235 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5236 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5246 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5247 if test -n "$PKG_CONFIG"; then
5248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5249 $as_echo "$PKG_CONFIG" >&6; }
5251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5252 $as_echo "no" >&6; }
5257 if test -z "$ac_cv_path_PKG_CONFIG"; then
5258 ac_pt_PKG_CONFIG=$PKG_CONFIG
5259 # Extract the first word of "pkg-config", so it can be a program name with args.
5260 set dummy pkg-config; ac_word=$2
5261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5262 $as_echo_n "checking for $ac_word... " >&6; }
5263 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
5264 $as_echo_n "(cached) " >&6
5266 case $ac_pt_PKG_CONFIG in
5268 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5275 test -z "$as_dir" && as_dir=.
5276 for ac_exec_ext in '' $ac_executable_extensions; do
5277 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5278 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5279 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5289 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5290 if test -n "$ac_pt_PKG_CONFIG"; then
5291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5292 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5295 $as_echo "no" >&6; }
5298 if test "x$ac_pt_PKG_CONFIG" = x; then
5301 case $cross_compiling:$ac_tool_warned in
5303 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5304 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5305 ac_tool_warned=yes ;;
5307 PKG_CONFIG=$ac_pt_PKG_CONFIG
5310 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5314 if test -n "$PKG_CONFIG"; then
5315 _pkg_min_version=0.9.0
5316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5317 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5318 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5320 $as_echo "yes" >&6; }
5322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5323 $as_echo "no" >&6; }
5329 # Check whether --enable-quota was given.
5330 if test "${enable_quota+set}" = set; then :
5331 enableval=$enable_quota; if test "$enableval" = "no"
5334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling quota support" >&5
5335 $as_echo "Disabling quota support" >&6; }
5338 $as_echo "#define CONFIG_QUOTA 1" >>confdefs.h
5340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling quota support" >&5
5341 $as_echo "Enabling quota support" >&6; }
5342 QUOTA_MAN_COMMENT=""
5348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling quota support by default" >&5
5349 $as_echo "Disabling quota support by default" >&6; }
5353 LIBQUOTA='$(LIB)/libquota'$LIB_EXT
5354 DEPLIBQUOTA=$LIBQUOTA
5355 STATIC_LIBQUOTA='$(LIB)/libquota'$STATIC_LIB_EXT
5356 DEPSTATIC_LIBQUOTA=$STATIC_LIBQUOTA
5357 PROFILED_LIBQUOTA='$(LIB)/libquota'$PROFILED_LIB_EXT
5358 DEPPROFILED_LIBQUOTA=$PROFILED_LIBQUOTA
5367 # Check whether --enable-backtrace was given.
5368 if test "${enable_backtrace+set}" = set; then :
5369 enableval=$enable_backtrace; if test "$enableval" = "no"
5371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling use of backtrace" >&5
5372 $as_echo "Disabling use of backtrace" >&6; }
5373 $as_echo "#define DISABLE_BACKTRACE 1" >>confdefs.h
5376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace" >&5
5377 $as_echo "Enabling use of backtrace" >&6; }
5381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace by default" >&5
5382 $as_echo "Enabling use of backtrace by default" >&6; }
5386 # Check whether --enable-debugfs was given.
5387 if test "${enable_debugfs+set}" = set; then :
5388 enableval=$enable_debugfs; if test "$enableval" = "no"
5390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling debugfs support" >&5
5391 $as_echo "Disabling debugfs support" >&6; }
5395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support" >&5
5396 $as_echo "Enabling debugfs support" >&6; }
5400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support by default" >&5
5401 $as_echo "Enabling debugfs support by default" >&6; }
5407 # Check whether --enable-imager was given.
5408 if test "${enable_imager+set}" = set; then :
5409 enableval=$enable_imager; if test "$enableval" = "no"
5411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2image support" >&5
5412 $as_echo "Disabling e2image support" >&6; }
5416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support" >&5
5417 $as_echo "Enabling e2image support" >&6; }
5421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support by default" >&5
5422 $as_echo "Enabling e2image support by default" >&6; }
5428 # Check whether --enable-resizer was given.
5429 if test "${enable_resizer+set}" = set; then :
5430 enableval=$enable_resizer; if test "$enableval" = "no"
5432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2resize support" >&5
5433 $as_echo "Disabling e2resize support" >&6; }
5437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support" >&5
5438 $as_echo "Enabling e2resize support" >&6; }
5442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support by default" >&5
5443 $as_echo "Enabling e2resize support by default" >&6; }
5449 # Check whether --enable-defrag was given.
5450 if test "${enable_defrag+set}" = set; then :
5451 enableval=$enable_defrag; if test "$enableval" = "no"
5453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support" >&5
5454 $as_echo "Disabling e4defrag support" >&6; }
5458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support" >&5
5459 $as_echo "Enabling e4defrag support" >&6; }
5463 if test -z "$WITH_DIET_LIBC"
5465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support by default" >&5
5466 $as_echo "Enabling e4defrag support by default" >&6; }
5469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support by default" >&5
5470 $as_echo "Disabling e4defrag support by default" >&6; }
5477 # Check whether --enable-fsck was given.
5478 if test "${enable_fsck+set}" = set; then :
5479 enableval=$enable_fsck; if test "$enableval" = "no"
5481 FSCK_PROG='' FSCK_MAN=''
5482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper" >&5
5483 $as_echo "Not building fsck wrapper" >&6; }
5485 FSCK_PROG=fsck FSCK_MAN=fsck.8
5486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper" >&5
5487 $as_echo "Building fsck wrapper" >&6; }
5493 FSCK_PROG='' FSCK_MAN=''
5494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper by default" >&5
5495 $as_echo "Not building fsck wrapper by default" >&6; }
5498 FSCK_PROG=fsck FSCK_MAN=fsck.8
5499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper by default" >&5
5500 $as_echo "Building fsck wrapper by default" >&6; }
5507 # Check whether --enable-e2initrd-helper was given.
5508 if test "${enable_e2initrd_helper+set}" = set; then :
5509 enableval=$enable_e2initrd_helper; if test "$enableval" = "no"
5511 E2INITRD_PROG='' E2INITRD_MAN=''
5512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building e2initrd helper" >&5
5513 $as_echo "Not building e2initrd helper" >&6; }
5515 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
5516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper" >&5
5517 $as_echo "Building e2initrd helper" >&6; }
5521 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
5522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper by default" >&5
5523 $as_echo "Building e2initrd helper by default" >&6; }
5529 # Check whether --enable-tls was given.
5530 if test "${enable_tls+set}" = set; then :
5531 enableval=$enable_tls; if test "$enableval" = "no"
5534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling thread local support" >&5
5535 $as_echo "Disabling thread local support" >&6; }
5538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling thread local support" >&5
5539 $as_echo "Enabling thread local support" >&6; }
5543 if test -n "$WITH_DIET_LIBC"
5546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Diet libc does not support thread local support" >&5
5547 $as_echo "Diet libc does not support thread local support" >&6; }
5550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Try using thread local support by default" >&5
5551 $as_echo "Try using thread local support by default" >&6; }
5556 if test "$try_tls" = "yes"
5559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread local storage (TLS) class" >&5
5560 $as_echo_n "checking for thread local storage (TLS) class... " >&6; }
5561 if ${ac_cv_tls+:} false; then :
5562 $as_echo_n "(cached) " >&6
5565 ax_tls_keywords="__thread __declspec(thread) none"
5566 for ax_tls_keyword in $ax_tls_keywords; do
5567 case $ax_tls_keyword in
5568 none) ac_cv_tls=none ; break ;;
5570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5571 /* end confdefs.h. */
5575 static $ax_tls_keyword int bar;
5586 if ac_fn_c_try_compile "$LINENO"; then :
5587 ac_cv_tls=$ax_tls_keyword ; break
5592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5599 if test "$ac_cv_tls" != "none"; then
5601 cat >>confdefs.h <<_ACEOF
5602 #define TLS $ac_cv_tls
5606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tls" >&5
5607 $as_echo "$ac_cv_tls" >&6; }
5611 # Check whether --enable-uuidd was given.
5612 if test "${enable_uuidd+set}" = set; then :
5613 enableval=$enable_uuidd; if test "$enableval" = "no"
5615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building uuidd" >&5
5616 $as_echo "Not building uuidd" >&6; }
5619 $as_echo "#define USE_UUIDD 1" >>confdefs.h
5622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd" >&5
5623 $as_echo "Building uuidd" >&6; }
5627 $as_echo "#define USE_UUIDD 1" >>confdefs.h
5630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd by default" >&5
5631 $as_echo "Building uuidd by default" >&6; }
5636 MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
5638 GETTEXT_PACKAGE=e2fsprogs
5640 VERSION="$E2FSPROGS_VERSION"
5643 cat >>confdefs.h <<_ACEOF
5644 #define PACKAGE "$PACKAGE"
5648 cat >>confdefs.h <<_ACEOF
5649 #define VERSION "$VERSION"
5656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5657 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5659 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5660 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
5661 $as_echo_n "(cached) " >&6
5663 cat >conftest.make <<\_ACEOF
5666 @echo '@@@%%%=$(MAKE)=@@@%%%'
5668 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5669 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5671 eval ac_cv_prog_make_${ac_make}_set=yes;;
5673 eval ac_cv_prog_make_${ac_make}_set=no;;
5677 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5679 $as_echo "yes" >&6; }
5682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5683 $as_echo "no" >&6; }
5684 SET_MAKE="MAKE=${MAKE-make}"
5687 # Find a good install program. We prefer a C program (faster),
5688 # so one script is as good as another. But avoid the broken or
5689 # incompatible versions:
5690 # SysV /etc/install, /usr/sbin/install
5691 # SunOS /usr/etc/install
5692 # IRIX /sbin/install
5694 # AmigaOS /C/install, which installs bootblocks on floppy discs
5695 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5696 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5697 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5698 # OS/2's system install, which has a completely different semantic
5699 # ./install, which can be erroneously created by make from ./install.sh.
5700 # Reject install programs that cannot install multiple files.
5701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
5702 $as_echo_n "checking for a BSD-compatible install... " >&6; }
5703 if test -z "$INSTALL"; then
5704 if ${ac_cv_path_install+:} false; then :
5705 $as_echo_n "(cached) " >&6
5707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5711 test -z "$as_dir" && as_dir=.
5712 # Account for people who put trailing slashes in PATH elements.
5713 case $as_dir/ in #((
5714 ./ | .// | /[cC]/* | \
5715 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5716 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
5719 # OSF1 and SCO ODT 3.0 have their own names for install.
5720 # Don't use installbsd from OSF since it installs stuff as root
5722 for ac_prog in ginstall scoinst install; do
5723 for ac_exec_ext in '' $ac_executable_extensions; do
5724 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5725 if test $ac_prog = install &&
5726 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5727 # AIX install. It has an incompatible calling convention.
5729 elif test $ac_prog = install &&
5730 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5731 # program-specific install script used by HP pwplus--don't use.
5734 rm -rf conftest.one conftest.two conftest.dir
5735 echo one > conftest.one
5736 echo two > conftest.two
5738 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5739 test -s conftest.one && test -s conftest.two &&
5740 test -s conftest.dir/conftest.one &&
5741 test -s conftest.dir/conftest.two
5743 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5756 rm -rf conftest.one conftest.two conftest.dir
5759 if test "${ac_cv_path_install+set}" = set; then
5760 INSTALL=$ac_cv_path_install
5762 # As a last resort, use the slow shell script. Don't cache a
5763 # value for INSTALL within a source directory, because that will
5764 # break other packages using the cache if that directory is
5765 # removed, or if the value is a relative name.
5766 INSTALL=$ac_install_sh
5769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
5770 $as_echo "$INSTALL" >&6; }
5772 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5773 # It thinks the first close brace ends the variable substitution.
5774 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5776 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5778 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5782 if test -n "$ac_aux_dir"; then
5783 case "$ac_aux_dir" in
5784 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
5785 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
5788 if test -z "$MKINSTALLDIRS"; then
5789 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
5794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
5795 $as_echo_n "checking whether NLS is requested... " >&6; }
5796 # Check whether --enable-nls was given.
5797 if test "${enable_nls+set}" = set; then :
5798 enableval=$enable_nls; USE_NLS=$enableval
5803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
5804 $as_echo "$USE_NLS" >&6; }
5811 # Prepare PATH_SEPARATOR.
5812 # The user is always right.
5813 if test "${PATH_SEPARATOR+set}" != set; then
5814 echo "#! /bin/sh" >conf$$.sh
5815 echo "exit 0" >>conf$$.sh
5817 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5825 # Find out how to test for executable files. Don't use a zero-byte file,
5826 # as systems may use methods other than mode bits to determine executability.
5827 cat >conf$$.file <<_ASEOF
5831 chmod +x conf$$.file
5832 if test -x conf$$.file >/dev/null 2>&1; then
5833 ac_executable_p="test -x"
5835 ac_executable_p="test -f"
5839 # Extract the first word of "msgfmt", so it can be a program name with args.
5840 set dummy msgfmt; ac_word=$2
5841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5842 $as_echo_n "checking for $ac_word... " >&6; }
5843 if ${ac_cv_path_MSGFMT+:} false; then :
5844 $as_echo_n "(cached) " >&6
5848 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5851 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5852 for ac_dir in $PATH; do
5854 test -z "$ac_dir" && ac_dir=.
5855 for ac_exec_ext in '' $ac_executable_extensions; do
5856 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5857 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
5858 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5859 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
5866 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
5870 MSGFMT="$ac_cv_path_MSGFMT"
5871 if test "$MSGFMT" != ":"; then
5872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
5873 $as_echo "$MSGFMT" >&6; }
5875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5876 $as_echo "no" >&6; }
5879 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5880 set dummy gmsgfmt; ac_word=$2
5881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5882 $as_echo_n "checking for $ac_word... " >&6; }
5883 if ${ac_cv_path_GMSGFMT+:} false; then :
5884 $as_echo_n "(cached) " >&6
5888 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5895 test -z "$as_dir" && as_dir=.
5896 for ac_exec_ext in '' $ac_executable_extensions; do
5897 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5898 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5906 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5910 GMSGFMT=$ac_cv_path_GMSGFMT
5911 if test -n "$GMSGFMT"; then
5912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
5913 $as_echo "$GMSGFMT" >&6; }
5915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5916 $as_echo "no" >&6; }
5922 # Prepare PATH_SEPARATOR.
5923 # The user is always right.
5924 if test "${PATH_SEPARATOR+set}" != set; then
5925 echo "#! /bin/sh" >conf$$.sh
5926 echo "exit 0" >>conf$$.sh
5928 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5936 # Find out how to test for executable files. Don't use a zero-byte file,
5937 # as systems may use methods other than mode bits to determine executability.
5938 cat >conf$$.file <<_ASEOF
5942 chmod +x conf$$.file
5943 if test -x conf$$.file >/dev/null 2>&1; then
5944 ac_executable_p="test -x"
5946 ac_executable_p="test -f"
5950 # Extract the first word of "xgettext", so it can be a program name with args.
5951 set dummy xgettext; ac_word=$2
5952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5953 $as_echo_n "checking for $ac_word... " >&6; }
5954 if ${ac_cv_path_XGETTEXT+:} false; then :
5955 $as_echo_n "(cached) " >&6
5959 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5962 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5963 for ac_dir in $PATH; do
5965 test -z "$ac_dir" && ac_dir=.
5966 for ac_exec_ext in '' $ac_executable_extensions; do
5967 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5968 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
5969 (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
5970 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
5977 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5981 XGETTEXT="$ac_cv_path_XGETTEXT"
5982 if test "$XGETTEXT" != ":"; then
5983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
5984 $as_echo "$XGETTEXT" >&6; }
5986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5987 $as_echo "no" >&6; }
5993 # Prepare PATH_SEPARATOR.
5994 # The user is always right.
5995 if test "${PATH_SEPARATOR+set}" != set; then
5996 echo "#! /bin/sh" >conf$$.sh
5997 echo "exit 0" >>conf$$.sh
5999 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6007 # Find out how to test for executable files. Don't use a zero-byte file,
6008 # as systems may use methods other than mode bits to determine executability.
6009 cat >conf$$.file <<_ASEOF
6013 chmod +x conf$$.file
6014 if test -x conf$$.file >/dev/null 2>&1; then
6015 ac_executable_p="test -x"
6017 ac_executable_p="test -f"
6021 # Extract the first word of "msgmerge", so it can be a program name with args.
6022 set dummy msgmerge; ac_word=$2
6023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6024 $as_echo_n "checking for $ac_word... " >&6; }
6025 if ${ac_cv_path_MSGMERGE+:} false; then :
6026 $as_echo_n "(cached) " >&6
6030 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
6033 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6034 for ac_dir in $PATH; do
6036 test -z "$ac_dir" && ac_dir=.
6037 for ac_exec_ext in '' $ac_executable_extensions; do
6038 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6039 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
6040 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
6047 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
6051 MSGMERGE="$ac_cv_path_MSGMERGE"
6052 if test "$MSGMERGE" != ":"; then
6053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
6054 $as_echo "$MSGMERGE" >&6; }
6056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6057 $as_echo "no" >&6; }
6061 if test "$GMSGFMT" != ":"; then
6062 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
6063 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6066 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
6067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
6068 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
6073 if test "$XGETTEXT" != ":"; then
6074 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
6075 (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
6078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
6079 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
6085 ac_config_commands="$ac_config_commands default-1"
6088 if test -n "$ac_tool_prefix"; then
6089 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6090 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6092 $as_echo_n "checking for $ac_word... " >&6; }
6093 if ${ac_cv_prog_RANLIB+:} false; then :
6094 $as_echo_n "(cached) " >&6
6096 if test -n "$RANLIB"; then
6097 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6103 test -z "$as_dir" && as_dir=.
6104 for ac_exec_ext in '' $ac_executable_extensions; do
6105 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6106 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6107 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6116 RANLIB=$ac_cv_prog_RANLIB
6117 if test -n "$RANLIB"; then
6118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6119 $as_echo "$RANLIB" >&6; }
6121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6122 $as_echo "no" >&6; }
6127 if test -z "$ac_cv_prog_RANLIB"; then
6128 ac_ct_RANLIB=$RANLIB
6129 # Extract the first word of "ranlib", so it can be a program name with args.
6130 set dummy ranlib; ac_word=$2
6131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6132 $as_echo_n "checking for $ac_word... " >&6; }
6133 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6134 $as_echo_n "(cached) " >&6
6136 if test -n "$ac_ct_RANLIB"; then
6137 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6143 test -z "$as_dir" && as_dir=.
6144 for ac_exec_ext in '' $ac_executable_extensions; do
6145 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6146 ac_cv_prog_ac_ct_RANLIB="ranlib"
6147 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6156 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6157 if test -n "$ac_ct_RANLIB"; then
6158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6159 $as_echo "$ac_ct_RANLIB" >&6; }
6161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6162 $as_echo "no" >&6; }
6165 if test "x$ac_ct_RANLIB" = x; then
6168 case $cross_compiling:$ac_tool_warned in
6170 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6171 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6172 ac_tool_warned=yes ;;
6174 RANLIB=$ac_ct_RANLIB
6177 RANLIB="$ac_cv_prog_RANLIB"
6181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror in -lcposix" >&5
6182 $as_echo_n "checking for strerror in -lcposix... " >&6; }
6183 if ${ac_cv_lib_cposix_strerror+:} false; then :
6184 $as_echo_n "(cached) " >&6
6186 ac_check_lib_save_LIBS=$LIBS
6187 LIBS="-lcposix $LIBS"
6188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6189 /* end confdefs.h. */
6191 /* Override any GCC internal prototype to avoid an error.
6192 Use char because int might match the return type of a GCC
6193 builtin and then its argument prototype would still apply. */
6206 if ac_fn_c_try_link "$LINENO"; then :
6207 ac_cv_lib_cposix_strerror=yes
6209 ac_cv_lib_cposix_strerror=no
6211 rm -f core conftest.err conftest.$ac_objext \
6212 conftest$ac_exeext conftest.$ac_ext
6213 LIBS=$ac_check_lib_save_LIBS
6215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cposix_strerror" >&5
6216 $as_echo "$ac_cv_lib_cposix_strerror" >&6; }
6217 if test "x$ac_cv_lib_cposix_strerror" = xyes; then :
6218 LIBS="$LIBS -lcposix"
6224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6225 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6226 if ${ac_cv_path_GREP+:} false; then :
6227 $as_echo_n "(cached) " >&6
6229 if test -z "$GREP"; then
6230 ac_path_GREP_found=false
6231 # Loop through the user's path and test for each of PROGNAME-LIST
6232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6233 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6236 test -z "$as_dir" && as_dir=.
6237 for ac_prog in grep ggrep; do
6238 for ac_exec_ext in '' $ac_executable_extensions; do
6239 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6240 as_fn_executable_p "$ac_path_GREP" || continue
6241 # Check for GNU ac_path_GREP and select it if it is found.
6242 # Check for GNU $ac_path_GREP
6243 case `"$ac_path_GREP" --version 2>&1` in
6245 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6248 $as_echo_n 0123456789 >"conftest.in"
6251 cat "conftest.in" "conftest.in" >"conftest.tmp"
6252 mv "conftest.tmp" "conftest.in"
6253 cp "conftest.in" "conftest.nl"
6254 $as_echo 'GREP' >> "conftest.nl"
6255 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6256 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6257 as_fn_arith $ac_count + 1 && ac_count=$as_val
6258 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6259 # Best one so far, save it but keep looking for a better one
6260 ac_cv_path_GREP="$ac_path_GREP"
6261 ac_path_GREP_max=$ac_count
6263 # 10*(2^10) chars as input seems more than enough
6264 test $ac_count -gt 10 && break
6266 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6269 $ac_path_GREP_found && break 3
6274 if test -z "$ac_cv_path_GREP"; then
6275 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6278 ac_cv_path_GREP=$GREP
6282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6283 $as_echo "$ac_cv_path_GREP" >&6; }
6284 GREP="$ac_cv_path_GREP"
6287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6288 $as_echo_n "checking for egrep... " >&6; }
6289 if ${ac_cv_path_EGREP+:} false; then :
6290 $as_echo_n "(cached) " >&6
6292 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6293 then ac_cv_path_EGREP="$GREP -E"
6295 if test -z "$EGREP"; then
6296 ac_path_EGREP_found=false
6297 # Loop through the user's path and test for each of PROGNAME-LIST
6298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6299 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6302 test -z "$as_dir" && as_dir=.
6303 for ac_prog in egrep; do
6304 for ac_exec_ext in '' $ac_executable_extensions; do
6305 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6306 as_fn_executable_p "$ac_path_EGREP" || continue
6307 # Check for GNU ac_path_EGREP and select it if it is found.
6308 # Check for GNU $ac_path_EGREP
6309 case `"$ac_path_EGREP" --version 2>&1` in
6311 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6314 $as_echo_n 0123456789 >"conftest.in"
6317 cat "conftest.in" "conftest.in" >"conftest.tmp"
6318 mv "conftest.tmp" "conftest.in"
6319 cp "conftest.in" "conftest.nl"
6320 $as_echo 'EGREP' >> "conftest.nl"
6321 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6322 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6323 as_fn_arith $ac_count + 1 && ac_count=$as_val
6324 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6325 # Best one so far, save it but keep looking for a better one
6326 ac_cv_path_EGREP="$ac_path_EGREP"
6327 ac_path_EGREP_max=$ac_count
6329 # 10*(2^10) chars as input seems more than enough
6330 test $ac_count -gt 10 && break
6332 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6335 $ac_path_EGREP_found && break 3
6340 if test -z "$ac_cv_path_EGREP"; then
6341 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6344 ac_cv_path_EGREP=$EGREP
6349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6350 $as_echo "$ac_cv_path_EGREP" >&6; }
6351 EGREP="$ac_cv_path_EGREP"
6354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6355 $as_echo_n "checking for ANSI C header files... " >&6; }
6356 if ${ac_cv_header_stdc+:} false; then :
6357 $as_echo_n "(cached) " >&6
6359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6360 /* end confdefs.h. */
6374 if ac_fn_c_try_compile "$LINENO"; then :
6375 ac_cv_header_stdc=yes
6377 ac_cv_header_stdc=no
6379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6381 if test $ac_cv_header_stdc = yes; then
6382 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6384 /* end confdefs.h. */
6388 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6389 $EGREP "memchr" >/dev/null 2>&1; then :
6392 ac_cv_header_stdc=no
6398 if test $ac_cv_header_stdc = yes; then
6399 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6401 /* end confdefs.h. */
6405 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6406 $EGREP "free" >/dev/null 2>&1; then :
6409 ac_cv_header_stdc=no
6415 if test $ac_cv_header_stdc = yes; then
6416 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6417 if test "$cross_compiling" = yes; then :
6420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6421 /* end confdefs.h. */
6424 #if ((' ' & 0x0FF) == 0x020)
6425 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6426 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6428 # define ISLOWER(c) \
6429 (('a' <= (c) && (c) <= 'i') \
6430 || ('j' <= (c) && (c) <= 'r') \
6431 || ('s' <= (c) && (c) <= 'z'))
6432 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6435 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6440 for (i = 0; i < 256; i++)
6441 if (XOR (islower (i), ISLOWER (i))
6442 || toupper (i) != TOUPPER (i))
6447 if ac_fn_c_try_run "$LINENO"; then :
6450 ac_cv_header_stdc=no
6452 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6453 conftest.$ac_objext conftest.beam conftest.$ac_ext
6458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6459 $as_echo "$ac_cv_header_stdc" >&6; }
6460 if test $ac_cv_header_stdc = yes; then
6462 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
6467 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
6468 if ${ac_cv_c_const+:} false; then :
6469 $as_echo_n "(cached) " >&6
6471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6472 /* end confdefs.h. */
6479 /* Ultrix mips cc rejects this sort of thing. */
6480 typedef int charset[2];
6481 const charset cs = { 0, 0 };
6482 /* SunOS 4.1.1 cc rejects this. */
6483 char const *const *pcpcc;
6485 /* NEC SVR4.0.2 mips cc rejects this. */
6486 struct point {int x, y;};
6487 static struct point const zero = {0,0};
6488 /* AIX XL C 1.02.0.0 rejects this.
6489 It does not let you subtract one const X* pointer from another in
6490 an arm of an if-expression whose if-part is not a constant
6492 const char *g = "string";
6493 pcpcc = &g + (g ? g-g : 0);
6494 /* HPUX 7.0 cc rejects these. */
6496 ppc = (char**) pcpcc;
6497 pcpcc = (char const *const *) ppc;
6498 { /* SCO 3.2v4 cc rejects this sort of thing. */
6501 char const *s = 0 ? (char *) 0 : (char const *) 0;
6506 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6508 const int *foo = &x[0];
6511 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6512 typedef const int *iptr;
6516 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
6517 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6518 struct s { int j; const int *ap[3]; } bx;
6519 struct s *b = &bx; b->j = 5;
6521 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6525 return !cs[0] && !zero.x;
6532 if ac_fn_c_try_compile "$LINENO"; then :
6537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
6540 $as_echo "$ac_cv_c_const" >&6; }
6541 if test $ac_cv_c_const = no; then
6543 $as_echo "#define const /**/" >>confdefs.h
6548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed" >&5
6549 $as_echo_n "checking for signed... " >&6; }
6550 if ${bh_cv_c_signed+:} false; then :
6551 $as_echo_n "(cached) " >&6
6553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6554 /* end confdefs.h. */
6564 if ac_fn_c_try_compile "$LINENO"; then :
6569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bh_cv_c_signed" >&5
6572 $as_echo "$bh_cv_c_signed" >&6; }
6573 if test $bh_cv_c_signed = no; then
6575 $as_echo "#define signed /**/" >>confdefs.h
6579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
6580 $as_echo_n "checking for inline... " >&6; }
6581 if ${ac_cv_c_inline+:} false; then :
6582 $as_echo_n "(cached) " >&6
6585 for ac_kw in inline __inline__ __inline; do
6586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6587 /* end confdefs.h. */
6590 static $ac_kw foo_t static_foo () {return 0; }
6591 $ac_kw foo_t foo () {return 0; }
6595 if ac_fn_c_try_compile "$LINENO"; then :
6596 ac_cv_c_inline=$ac_kw
6598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6599 test "$ac_cv_c_inline" != no && break
6603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
6604 $as_echo "$ac_cv_c_inline" >&6; }
6606 case $ac_cv_c_inline in
6609 case $ac_cv_c_inline in
6611 *) ac_val=$ac_cv_c_inline;;
6613 cat >>confdefs.h <<_ACEOF
6615 #define inline $ac_val
6621 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6622 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6623 inttypes.h stdint.h unistd.h
6625 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6626 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6628 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6629 cat >>confdefs.h <<_ACEOF
6630 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6638 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
6639 if test "x$ac_cv_type_off_t" = xyes; then :
6643 cat >>confdefs.h <<_ACEOF
6644 #define off_t long int
6649 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6650 if test "x$ac_cv_type_size_t" = xyes; then :
6654 cat >>confdefs.h <<_ACEOF
6655 #define size_t unsigned int
6661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long" >&5
6662 $as_echo_n "checking for long long... " >&6; }
6663 if ${ac_cv_type_long_long+:} false; then :
6664 $as_echo_n "(cached) " >&6
6666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6667 /* end confdefs.h. */
6668 long long ll = 1LL; int i = 63;
6672 long long llmax = (long long) -1;
6673 return ll << i | ll >> i | llmax / ll | llmax % ll;
6678 if ac_fn_c_try_link "$LINENO"; then :
6679 ac_cv_type_long_long=yes
6681 ac_cv_type_long_long=no
6683 rm -f core conftest.err conftest.$ac_objext \
6684 conftest$ac_exeext conftest.$ac_ext
6686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long" >&5
6687 $as_echo "$ac_cv_type_long_long" >&6; }
6688 if test $ac_cv_type_long_long = yes; then
6690 $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
6695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
6696 $as_echo_n "checking for long double... " >&6; }
6697 if ${gt_cv_c_long_double+:} false; then :
6698 $as_echo_n "(cached) " >&6
6700 if test "$GCC" = yes; then
6701 gt_cv_c_long_double=yes
6703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6704 /* end confdefs.h. */
6706 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
6707 long double foo = 0.0;
6708 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
6709 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
6719 if ac_fn_c_try_compile "$LINENO"; then :
6720 gt_cv_c_long_double=yes
6722 gt_cv_c_long_double=no
6724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_long_double" >&5
6728 $as_echo "$gt_cv_c_long_double" >&6; }
6729 if test $gt_cv_c_long_double = yes; then
6731 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
6736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
6737 $as_echo_n "checking for wchar_t... " >&6; }
6738 if ${gt_cv_c_wchar_t+:} false; then :
6739 $as_echo_n "(cached) " >&6
6741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6742 /* end confdefs.h. */
6744 wchar_t foo = (wchar_t)'\0';
6753 if ac_fn_c_try_compile "$LINENO"; then :
6758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
6761 $as_echo "$gt_cv_c_wchar_t" >&6; }
6762 if test $gt_cv_c_wchar_t = yes; then
6764 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
6769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
6770 $as_echo_n "checking for wint_t... " >&6; }
6771 if ${gt_cv_c_wint_t+:} false; then :
6772 $as_echo_n "(cached) " >&6
6774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6775 /* end confdefs.h. */
6777 wint_t foo = (wchar_t)'\0';
6786 if ac_fn_c_try_compile "$LINENO"; then :
6791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
6794 $as_echo "$gt_cv_c_wint_t" >&6; }
6795 if test $gt_cv_c_wint_t = yes; then
6797 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
6802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
6803 $as_echo_n "checking for inttypes.h... " >&6; }
6804 if ${jm_ac_cv_header_inttypes_h+:} false; then :
6805 $as_echo_n "(cached) " >&6
6807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6808 /* end confdefs.h. */
6809 #include <sys/types.h>
6810 #include <inttypes.h>
6814 uintmax_t i = (uintmax_t) -1;
6819 if ac_fn_c_try_compile "$LINENO"; then :
6820 jm_ac_cv_header_inttypes_h=yes
6822 jm_ac_cv_header_inttypes_h=no
6824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_inttypes_h" >&5
6827 $as_echo "$jm_ac_cv_header_inttypes_h" >&6; }
6828 if test $jm_ac_cv_header_inttypes_h = yes; then
6830 cat >>confdefs.h <<_ACEOF
6831 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
6837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
6838 $as_echo_n "checking for stdint.h... " >&6; }
6839 if ${jm_ac_cv_header_stdint_h+:} false; then :
6840 $as_echo_n "(cached) " >&6
6842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6843 /* end confdefs.h. */
6844 #include <sys/types.h>
6849 uintmax_t i = (uintmax_t) -1;
6854 if ac_fn_c_try_compile "$LINENO"; then :
6855 jm_ac_cv_header_stdint_h=yes
6857 jm_ac_cv_header_stdint_h=no
6859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_stdint_h" >&5
6862 $as_echo "$jm_ac_cv_header_stdint_h" >&6; }
6863 if test $jm_ac_cv_header_stdint_h = yes; then
6865 cat >>confdefs.h <<_ACEOF
6866 #define HAVE_STDINT_H_WITH_UINTMAX 1
6874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
6875 $as_echo_n "checking for intmax_t... " >&6; }
6876 if ${gt_cv_c_intmax_t+:} false; then :
6877 $as_echo_n "(cached) " >&6
6879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6880 /* end confdefs.h. */
6884 #if HAVE_STDINT_H_WITH_UINTMAX
6887 #if HAVE_INTTYPES_H_WITH_UINTMAX
6888 #include <inttypes.h>
6899 if ac_fn_c_try_compile "$LINENO"; then :
6900 gt_cv_c_intmax_t=yes
6904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
6907 $as_echo "$gt_cv_c_intmax_t" >&6; }
6908 if test $gt_cv_c_intmax_t = yes; then
6910 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
6917 $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
6918 if ${gt_cv_func_printf_posix+:} false; then :
6919 $as_echo_n "(cached) " >&6
6922 if test "$cross_compiling" = yes; then :
6924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6925 /* end confdefs.h. */
6927 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
6932 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6933 $EGREP "notposix" >/dev/null 2>&1; then :
6934 gt_cv_func_printf_posix="guessing no"
6936 gt_cv_func_printf_posix="guessing yes"
6942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6943 /* end confdefs.h. */
6947 /* The string "%2$d %1$d", with dollar characters protected from the shell's
6948 dollar expansion (possibly an autoconf bug). */
6949 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
6950 static char buf[100];
6953 sprintf (buf, format, 33, 55);
6954 return (strcmp (buf, "55 33") != 0);
6957 if ac_fn_c_try_run "$LINENO"; then :
6958 gt_cv_func_printf_posix=yes
6960 gt_cv_func_printf_posix=no
6962 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6963 conftest.$ac_objext conftest.beam conftest.$ac_ext
6968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
6969 $as_echo "$gt_cv_func_printf_posix" >&6; }
6970 case $gt_cv_func_printf_posix in
6973 $as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
6978 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6979 # for constant arguments. Useless!
6980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
6981 $as_echo_n "checking for working alloca.h... " >&6; }
6982 if ${ac_cv_working_alloca_h+:} false; then :
6983 $as_echo_n "(cached) " >&6
6985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6986 /* end confdefs.h. */
6991 char *p = (char *) alloca (2 * sizeof (int));
6997 if ac_fn_c_try_link "$LINENO"; then :
6998 ac_cv_working_alloca_h=yes
7000 ac_cv_working_alloca_h=no
7002 rm -f core conftest.err conftest.$ac_objext \
7003 conftest$ac_exeext conftest.$ac_ext
7005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
7006 $as_echo "$ac_cv_working_alloca_h" >&6; }
7007 if test $ac_cv_working_alloca_h = yes; then
7009 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
7013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
7014 $as_echo_n "checking for alloca... " >&6; }
7015 if ${ac_cv_func_alloca_works+:} false; then :
7016 $as_echo_n "(cached) " >&6
7018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7019 /* end confdefs.h. */
7021 # define alloca __builtin_alloca
7024 # include <malloc.h>
7025 # define alloca _alloca
7027 # ifdef HAVE_ALLOCA_H
7028 # include <alloca.h>
7033 # ifndef alloca /* predefined by HP cc +Olibcalls */
7034 void *alloca (size_t);
7044 char *p = (char *) alloca (1);
7050 if ac_fn_c_try_link "$LINENO"; then :
7051 ac_cv_func_alloca_works=yes
7053 ac_cv_func_alloca_works=no
7055 rm -f core conftest.err conftest.$ac_objext \
7056 conftest$ac_exeext conftest.$ac_ext
7058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
7059 $as_echo "$ac_cv_func_alloca_works" >&6; }
7061 if test $ac_cv_func_alloca_works = yes; then
7063 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
7066 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
7067 # that cause trouble. Some versions do not even contain alloca or
7068 # contain a buggy version. If you still want to use their alloca,
7069 # use ar to extract alloca.o from them instead of compiling alloca.c.
7071 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
7073 $as_echo "#define C_ALLOCA 1" >>confdefs.h
7076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
7077 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
7078 if ${ac_cv_os_cray+:} false; then :
7079 $as_echo_n "(cached) " >&6
7081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7082 /* end confdefs.h. */
7083 #if defined CRAY && ! defined CRAY2
7090 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7091 $EGREP "webecray" >/dev/null 2>&1; then :
7099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
7100 $as_echo "$ac_cv_os_cray" >&6; }
7101 if test $ac_cv_os_cray = yes; then
7102 for ac_func in _getb67 GETB67 getb67; do
7103 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7104 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7105 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7107 cat >>confdefs.h <<_ACEOF
7108 #define CRAY_STACKSEG_END $ac_func
7117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
7118 $as_echo_n "checking stack direction for C alloca... " >&6; }
7119 if ${ac_cv_c_stack_direction+:} false; then :
7120 $as_echo_n "(cached) " >&6
7122 if test "$cross_compiling" = yes; then :
7123 ac_cv_c_stack_direction=0
7125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7126 /* end confdefs.h. */
7127 $ac_includes_default
7129 find_stack_direction (int *addr, int depth)
7134 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
7135 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
7140 main (int argc, char **argv)
7142 return find_stack_direction (0, argc + !argv + 20) < 0;
7145 if ac_fn_c_try_run "$LINENO"; then :
7146 ac_cv_c_stack_direction=1
7148 ac_cv_c_stack_direction=-1
7150 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7151 conftest.$ac_objext conftest.beam conftest.$ac_ext
7155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
7156 $as_echo "$ac_cv_c_stack_direction" >&6; }
7157 cat >>confdefs.h <<_ACEOF
7158 #define STACK_DIRECTION $ac_cv_c_stack_direction
7167 for ac_header in $ac_header_list
7169 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7170 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7172 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7173 cat >>confdefs.h <<_ACEOF
7174 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7188 for ac_func in getpagesize
7190 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
7191 if test "x$ac_cv_func_getpagesize" = xyes; then :
7192 cat >>confdefs.h <<_ACEOF
7193 #define HAVE_GETPAGESIZE 1
7199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
7200 $as_echo_n "checking for working mmap... " >&6; }
7201 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
7202 $as_echo_n "(cached) " >&6
7204 if test "$cross_compiling" = yes; then :
7205 ac_cv_func_mmap_fixed_mapped=no
7207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7208 /* end confdefs.h. */
7209 $ac_includes_default
7210 /* malloc might have been renamed as rpl_malloc. */
7213 /* Thanks to Mike Haertel and Jim Avera for this test.
7214 Here is a matrix of mmap possibilities:
7215 mmap private not fixed
7216 mmap private fixed at somewhere currently unmapped
7217 mmap private fixed at somewhere already mapped
7218 mmap shared not fixed
7219 mmap shared fixed at somewhere currently unmapped
7220 mmap shared fixed at somewhere already mapped
7221 For private mappings, we should verify that changes cannot be read()
7222 back from the file, nor mmap's back from the file at a different
7223 address. (There have been systems where private was not correctly
7224 implemented like the infamous i386 svr4.0, and systems where the
7225 VM page cache was not coherent with the file system buffer cache
7226 like early versions of FreeBSD and possibly contemporary NetBSD.)
7227 For shared mappings, we should conversely verify that changes get
7228 propagated back to all the places they're supposed to be.
7230 Grep wants private fixed already mapped.
7231 The main things grep needs to know about mmap are:
7232 * does it exist and is it safe to write into the mmap'd area
7233 * how to use it (BSD variants) */
7236 #include <sys/mman.h>
7238 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7242 /* This mess was copied from the GNU getpagesize.h. */
7243 #ifndef HAVE_GETPAGESIZE
7244 # ifdef _SC_PAGESIZE
7245 # define getpagesize() sysconf(_SC_PAGESIZE)
7246 # else /* no _SC_PAGESIZE */
7247 # ifdef HAVE_SYS_PARAM_H
7248 # include <sys/param.h>
7249 # ifdef EXEC_PAGESIZE
7250 # define getpagesize() EXEC_PAGESIZE
7251 # else /* no EXEC_PAGESIZE */
7253 # define getpagesize() NBPG * CLSIZE
7256 # endif /* no CLSIZE */
7257 # else /* no NBPG */
7259 # define getpagesize() NBPC
7260 # else /* no NBPC */
7262 # define getpagesize() PAGESIZE
7263 # endif /* PAGESIZE */
7264 # endif /* no NBPC */
7265 # endif /* no NBPG */
7266 # endif /* no EXEC_PAGESIZE */
7267 # else /* no HAVE_SYS_PARAM_H */
7268 # define getpagesize() 8192 /* punt totally */
7269 # endif /* no HAVE_SYS_PARAM_H */
7270 # endif /* no _SC_PAGESIZE */
7272 #endif /* no HAVE_GETPAGESIZE */
7277 char *data, *data2, *data3;
7282 pagesize = getpagesize ();
7284 /* First, make a file with some known garbage in it. */
7285 data = (char *) malloc (pagesize);
7288 for (i = 0; i < pagesize; ++i)
7289 *(data + i) = rand ();
7291 fd = creat ("conftest.mmap", 0600);
7294 if (write (fd, data, pagesize) != pagesize)
7298 /* Next, check that the tail of a page is zero-filled. File must have
7299 non-zero length, otherwise we risk SIGBUS for entire page. */
7300 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7304 if (write (fd2, cdata2, 1) != 1)
7306 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7307 if (data2 == MAP_FAILED)
7309 for (i = 0; i < pagesize; ++i)
7313 if (munmap (data2, pagesize))
7316 /* Next, try to mmap the file at a fixed address which already has
7317 something else allocated at it. If we can, also make sure that
7318 we see the same garbage. */
7319 fd = open ("conftest.mmap", O_RDWR);
7322 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7323 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7325 for (i = 0; i < pagesize; ++i)
7326 if (*(data + i) != *(data2 + i))
7329 /* Finally, make sure that changes to the mapped area do not
7330 percolate back to the file as seen by read(). (This is a bug on
7331 some variants of i386 svr4.0.) */
7332 for (i = 0; i < pagesize; ++i)
7333 *(data2 + i) = *(data2 + i) + 1;
7334 data3 = (char *) malloc (pagesize);
7337 if (read (fd, data3, pagesize) != pagesize)
7339 for (i = 0; i < pagesize; ++i)
7340 if (*(data + i) != *(data3 + i))
7346 if ac_fn_c_try_run "$LINENO"; then :
7347 ac_cv_func_mmap_fixed_mapped=yes
7349 ac_cv_func_mmap_fixed_mapped=no
7351 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7352 conftest.$ac_objext conftest.beam conftest.$ac_ext
7356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
7357 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
7358 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7360 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
7363 rm -f conftest.mmap conftest.txt
7366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
7367 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
7368 if ${ac_cv_gnu_library_2_1+:} false; then :
7369 $as_echo_n "(cached) " >&6
7371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7372 /* end confdefs.h. */
7374 #include <features.h>
7375 #ifdef __GNU_LIBRARY__
7376 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
7382 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7383 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
7384 ac_cv_gnu_library_2_1=yes
7386 ac_cv_gnu_library_2_1=no
7393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
7394 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
7396 GLIBC21="$ac_cv_gnu_library_2_1"
7401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
7402 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
7403 if ${gt_cv_int_divbyzero_sigfpe+:} false; then :
7404 $as_echo_n "(cached) " >&6
7407 if test "$cross_compiling" = yes; then :
7409 # Guess based on the CPU.
7411 alpha* | i3456786 | m68k | s390*)
7412 gt_cv_int_divbyzero_sigfpe="guessing yes";;
7414 gt_cv_int_divbyzero_sigfpe="guessing no";;
7418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7419 /* end confdefs.h. */
7426 sigfpe_handler (int sig)
7428 sigfpe_handler (sig) int sig;
7431 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
7432 exit (sig != SIGFPE);
7442 signal (SIGFPE, sigfpe_handler);
7443 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
7444 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
7445 signal (SIGTRAP, sigfpe_handler);
7447 /* Linux/SPARC yields signal SIGILL. */
7448 #if defined (__sparc__) && defined (__linux__)
7449 signal (SIGILL, sigfpe_handler);
7458 if ac_fn_c_try_run "$LINENO"; then :
7459 gt_cv_int_divbyzero_sigfpe=yes
7461 gt_cv_int_divbyzero_sigfpe=no
7463 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7464 conftest.$ac_objext conftest.beam conftest.$ac_ext
7469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
7470 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
7471 case "$gt_cv_int_divbyzero_sigfpe" in
7476 cat >>confdefs.h <<_ACEOF
7477 #define INTDIV0_RAISES_SIGFPE $value
7482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long" >&5
7483 $as_echo_n "checking for unsigned long long... " >&6; }
7484 if ${ac_cv_type_unsigned_long_long+:} false; then :
7485 $as_echo_n "(cached) " >&6
7487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7488 /* end confdefs.h. */
7489 unsigned long long ull = 1ULL; int i = 63;
7493 unsigned long long ullmax = (unsigned long long) -1;
7494 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
7499 if ac_fn_c_try_link "$LINENO"; then :
7500 ac_cv_type_unsigned_long_long=yes
7502 ac_cv_type_unsigned_long_long=no
7504 rm -f core conftest.err conftest.$ac_objext \
7505 conftest$ac_exeext conftest.$ac_ext
7507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long" >&5
7508 $as_echo "$ac_cv_type_unsigned_long_long" >&6; }
7509 if test $ac_cv_type_unsigned_long_long = yes; then
7511 $as_echo "#define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h
7518 if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
7520 test $ac_cv_type_unsigned_long_long = yes \
7521 && ac_type='unsigned long long' \
7522 || ac_type='unsigned long'
7524 cat >>confdefs.h <<_ACEOF
7525 #define uintmax_t $ac_type
7530 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
7535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
7536 $as_echo_n "checking for inttypes.h... " >&6; }
7537 if ${gt_cv_header_inttypes_h+:} false; then :
7538 $as_echo_n "(cached) " >&6
7541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7542 /* end confdefs.h. */
7543 #include <sys/types.h>
7544 #include <inttypes.h>
7553 if ac_fn_c_try_compile "$LINENO"; then :
7554 gt_cv_header_inttypes_h=yes
7556 gt_cv_header_inttypes_h=no
7558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_header_inttypes_h" >&5
7562 $as_echo "$gt_cv_header_inttypes_h" >&6; }
7563 if test $gt_cv_header_inttypes_h = yes; then
7565 cat >>confdefs.h <<_ACEOF
7566 #define HAVE_INTTYPES_H 1
7573 if test $gt_cv_header_inttypes_h = yes; then
7574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
7575 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
7576 if ${gt_cv_inttypes_pri_broken+:} false; then :
7577 $as_echo_n "(cached) " >&6
7580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7581 /* end confdefs.h. */
7582 #include <inttypes.h>
7595 if ac_fn_c_try_compile "$LINENO"; then :
7596 gt_cv_inttypes_pri_broken=no
7598 gt_cv_inttypes_pri_broken=yes
7600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
7604 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
7606 if test "$gt_cv_inttypes_pri_broken" = yes; then
7608 cat >>confdefs.h <<_ACEOF
7609 #define PRI_MACROS_BROKEN 1
7615 for ac_header in stdint.h
7617 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
7618 if test "x$ac_cv_header_stdint_h" = xyes; then :
7619 cat >>confdefs.h <<_ACEOF
7620 #define HAVE_STDINT_H 1
7627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
7628 $as_echo_n "checking for SIZE_MAX... " >&6; }
7630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7631 /* end confdefs.h. */
7642 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7643 $EGREP "Found it" >/dev/null 2>&1; then :
7648 if test -z "$result"; then
7649 if ac_fn_c_compute_int "$LINENO" "~(size_t)0 / 10" "res_hi" "#include <stddef.h>"; then :
7656 if ac_fn_c_compute_int "$LINENO" "~(size_t)0 % 10" "res_lo" "#include <stddef.h>"; then :
7663 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then :
7670 if test "$fits_in_uint" = 1; then
7671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7672 /* end confdefs.h. */
7675 extern unsigned long foo;
7685 if ac_fn_c_try_compile "$LINENO"; then :
7688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7690 if test -z "$result"; then
7691 if test "$fits_in_uint" = 1; then
7692 result="$res_hi$res_lo"U
7694 result="$res_hi$res_lo"UL
7700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
7701 $as_echo "$result" >&6; }
7702 if test "$result" != yes; then
7704 cat >>confdefs.h <<_ACEOF
7705 #define SIZE_MAX $result
7712 for ac_header in stdint.h
7714 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
7715 if test "x$ac_cv_header_stdint_h" = xyes; then :
7716 cat >>confdefs.h <<_ACEOF
7717 #define HAVE_STDINT_H 1
7726 if test "X$prefix" = "XNONE"; then
7727 acl_final_prefix="$ac_default_prefix"
7729 acl_final_prefix="$prefix"
7731 if test "X$exec_prefix" = "XNONE"; then
7732 acl_final_exec_prefix='${prefix}'
7734 acl_final_exec_prefix="$exec_prefix"
7736 acl_save_prefix="$prefix"
7737 prefix="$acl_final_prefix"
7738 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7739 prefix="$acl_save_prefix"
7742 # Check whether --with-gnu-ld was given.
7743 if test "${with_gnu_ld+set}" = set; then :
7744 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7749 # Prepare PATH_SEPARATOR.
7750 # The user is always right.
7751 if test "${PATH_SEPARATOR+set}" != set; then
7752 echo "#! /bin/sh" >conf$$.sh
7753 echo "exit 0" >>conf$$.sh
7755 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7763 if test "$GCC" = yes; then
7764 # Check if gcc -print-prog-name=ld gives a path.
7765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
7766 $as_echo_n "checking for ld used by GCC... " >&6; }
7769 # gcc leaves a trailing carriage return which upsets mingw
7770 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7772 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7775 # Accept absolute paths.
7776 [\\/]* | [A-Za-z]:[\\/]*)
7777 re_direlt='/[^/][^/]*/\.\./'
7778 # Canonicalize the path of ld
7779 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
7780 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
7781 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
7783 test -z "$LD" && LD="$ac_prog"
7786 # If it fails, then pretend we aren't using GCC.
7790 # If it is relative, then search for the first ld in PATH.
7794 elif test "$with_gnu_ld" = yes; then
7795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7796 $as_echo_n "checking for GNU ld... " >&6; }
7798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7799 $as_echo_n "checking for non-GNU ld... " >&6; }
7801 if ${acl_cv_path_LD+:} false; then :
7802 $as_echo_n "(cached) " >&6
7804 if test -z "$LD"; then
7805 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
7806 for ac_dir in $PATH; do
7807 test -z "$ac_dir" && ac_dir=.
7808 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7809 acl_cv_path_LD="$ac_dir/$ac_prog"
7810 # Check to see if the program is GNU ld. I'd rather use --version,
7811 # but apparently some GNU ld's only accept -v.
7812 # Break only if it was the GNU/non-GNU ld that we prefer.
7813 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
7814 *GNU* | *'with BFD'*)
7815 test "$with_gnu_ld" != no && break ;;
7817 test "$with_gnu_ld" != yes && break ;;
7823 acl_cv_path_LD="$LD" # Let the user override the test with a path.
7827 LD="$acl_cv_path_LD"
7828 if test -n "$LD"; then
7829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7830 $as_echo "$LD" >&6; }
7832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7833 $as_echo "no" >&6; }
7835 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7837 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7838 if ${acl_cv_prog_gnu_ld+:} false; then :
7839 $as_echo_n "(cached) " >&6
7841 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
7842 case `$LD -v 2>&1 </dev/null` in
7843 *GNU* | *'with BFD'*)
7844 acl_cv_prog_gnu_ld=yes ;;
7846 acl_cv_prog_gnu_ld=no ;;
7849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
7850 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
7851 with_gnu_ld=$acl_cv_prog_gnu_ld
7855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
7856 $as_echo_n "checking for shared library run path origin... " >&6; }
7857 if ${acl_cv_rpath+:} false; then :
7858 $as_echo_n "(cached) " >&6
7861 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
7862 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
7869 $as_echo "$acl_cv_rpath" >&6; }
7871 libext="$acl_cv_libext"
7872 shlibext="$acl_cv_shlibext"
7873 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
7874 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
7875 hardcode_direct="$acl_cv_hardcode_direct"
7876 hardcode_minus_L="$acl_cv_hardcode_minus_L"
7877 # Check whether --enable-rpath was given.
7878 if test "${enable_rpath+set}" = set; then :
7879 enableval=$enable_rpath; :
7893 acl_save_prefix="$prefix"
7894 prefix="$acl_final_prefix"
7895 acl_save_exec_prefix="$exec_prefix"
7896 exec_prefix="$acl_final_exec_prefix"
7898 eval additional_includedir=\"$includedir\"
7899 eval additional_libdir=\"$libdir\"
7901 exec_prefix="$acl_save_exec_prefix"
7902 prefix="$acl_save_prefix"
7905 # Check whether --with-libiconv-prefix was given.
7906 if test "${with_libiconv_prefix+set}" = set; then :
7907 withval=$with_libiconv_prefix;
7908 if test "X$withval" = "Xno"; then
7911 if test "X$withval" = "X"; then
7913 acl_save_prefix="$prefix"
7914 prefix="$acl_final_prefix"
7915 acl_save_exec_prefix="$exec_prefix"
7916 exec_prefix="$acl_final_exec_prefix"
7918 eval additional_includedir=\"$includedir\"
7919 eval additional_libdir=\"$libdir\"
7921 exec_prefix="$acl_save_exec_prefix"
7922 prefix="$acl_save_prefix"
7925 additional_includedir="$withval/include"
7926 additional_libdir="$withval/lib"
7937 names_already_handled=
7938 names_next_round='iconv '
7939 while test -n "$names_next_round"; do
7940 names_this_round="$names_next_round"
7942 for name in $names_this_round; do
7944 for n in $names_already_handled; do
7945 if test "$n" = "$name"; then
7950 if test -z "$already_handled"; then
7951 names_already_handled="$names_already_handled $name"
7952 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7953 eval value=\"\$HAVE_LIB$uppername\"
7954 if test -n "$value"; then
7955 if test "$value" = yes; then
7956 eval value=\"\$LIB$uppername\"
7957 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
7958 eval value=\"\$LTLIB$uppername\"
7959 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
7968 if test $use_additional = yes; then
7969 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
7970 found_dir="$additional_libdir"
7971 found_so="$additional_libdir/lib$name.$shlibext"
7972 if test -f "$additional_libdir/lib$name.la"; then
7973 found_la="$additional_libdir/lib$name.la"
7976 if test -f "$additional_libdir/lib$name.$libext"; then
7977 found_dir="$additional_libdir"
7978 found_a="$additional_libdir/lib$name.$libext"
7979 if test -f "$additional_libdir/lib$name.la"; then
7980 found_la="$additional_libdir/lib$name.la"
7985 if test "X$found_dir" = "X"; then
7986 for x in $LDFLAGS $LTLIBICONV; do
7988 acl_save_prefix="$prefix"
7989 prefix="$acl_final_prefix"
7990 acl_save_exec_prefix="$exec_prefix"
7991 exec_prefix="$acl_final_exec_prefix"
7993 exec_prefix="$acl_save_exec_prefix"
7994 prefix="$acl_save_prefix"
7998 dir=`echo "X$x" | sed -e 's/^X-L//'`
7999 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
8001 found_so="$dir/lib$name.$shlibext"
8002 if test -f "$dir/lib$name.la"; then
8003 found_la="$dir/lib$name.la"
8006 if test -f "$dir/lib$name.$libext"; then
8008 found_a="$dir/lib$name.$libext"
8009 if test -f "$dir/lib$name.la"; then
8010 found_la="$dir/lib$name.la"
8016 if test "X$found_dir" != "X"; then
8021 if test "X$found_dir" != "X"; then
8022 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
8023 if test "X$found_so" != "X"; then
8024 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
8025 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8028 for x in $ltrpathdirs; do
8029 if test "X$x" = "X$found_dir"; then
8034 if test -z "$haveit"; then
8035 ltrpathdirs="$ltrpathdirs $found_dir"
8037 if test "$hardcode_direct" = yes; then
8038 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8040 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
8041 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8043 for x in $rpathdirs; do
8044 if test "X$x" = "X$found_dir"; then
8049 if test -z "$haveit"; then
8050 rpathdirs="$rpathdirs $found_dir"
8054 for x in $LDFLAGS $LIBICONV; do
8056 acl_save_prefix="$prefix"
8057 prefix="$acl_final_prefix"
8058 acl_save_exec_prefix="$exec_prefix"
8059 exec_prefix="$acl_final_exec_prefix"
8061 exec_prefix="$acl_save_exec_prefix"
8062 prefix="$acl_save_prefix"
8064 if test "X$x" = "X-L$found_dir"; then
8069 if test -z "$haveit"; then
8070 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
8072 if test "$hardcode_minus_L" != no; then
8073 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8075 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8081 if test "X$found_a" != "X"; then
8082 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
8084 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
8087 additional_includedir=
8088 case "$found_dir" in
8090 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
8091 additional_includedir="$basedir/include"
8094 if test "X$additional_includedir" != "X"; then
8095 if test "X$additional_includedir" != "X/usr/include"; then
8097 if test "X$additional_includedir" = "X/usr/local/include"; then
8098 if test -n "$GCC"; then
8100 linux*) haveit=yes;;
8104 if test -z "$haveit"; then
8105 for x in $CPPFLAGS $INCICONV; do
8107 acl_save_prefix="$prefix"
8108 prefix="$acl_final_prefix"
8109 acl_save_exec_prefix="$exec_prefix"
8110 exec_prefix="$acl_final_exec_prefix"
8112 exec_prefix="$acl_save_exec_prefix"
8113 prefix="$acl_save_prefix"
8115 if test "X$x" = "X-I$additional_includedir"; then
8120 if test -z "$haveit"; then
8121 if test -d "$additional_includedir"; then
8122 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
8128 if test -n "$found_la"; then
8129 save_libdir="$libdir"
8131 */* | *\\*) . "$found_la" ;;
8132 *) . "./$found_la" ;;
8134 libdir="$save_libdir"
8135 for dep in $dependency_libs; do
8138 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8139 if test "X$additional_libdir" != "X/usr/lib"; then
8141 if test "X$additional_libdir" = "X/usr/local/lib"; then
8142 if test -n "$GCC"; then
8144 linux*) haveit=yes;;
8148 if test -z "$haveit"; then
8150 for x in $LDFLAGS $LIBICONV; do
8152 acl_save_prefix="$prefix"
8153 prefix="$acl_final_prefix"
8154 acl_save_exec_prefix="$exec_prefix"
8155 exec_prefix="$acl_final_exec_prefix"
8157 exec_prefix="$acl_save_exec_prefix"
8158 prefix="$acl_save_prefix"
8160 if test "X$x" = "X-L$additional_libdir"; then
8165 if test -z "$haveit"; then
8166 if test -d "$additional_libdir"; then
8167 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
8171 for x in $LDFLAGS $LTLIBICONV; do
8173 acl_save_prefix="$prefix"
8174 prefix="$acl_final_prefix"
8175 acl_save_exec_prefix="$exec_prefix"
8176 exec_prefix="$acl_final_exec_prefix"
8178 exec_prefix="$acl_save_exec_prefix"
8179 prefix="$acl_save_prefix"
8181 if test "X$x" = "X-L$additional_libdir"; then
8186 if test -z "$haveit"; then
8187 if test -d "$additional_libdir"; then
8188 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
8195 dir=`echo "X$dep" | sed -e 's/^X-R//'`
8196 if test "$enable_rpath" != no; then
8198 for x in $rpathdirs; do
8199 if test "X$x" = "X$dir"; then
8204 if test -z "$haveit"; then
8205 rpathdirs="$rpathdirs $dir"
8208 for x in $ltrpathdirs; do
8209 if test "X$x" = "X$dir"; then
8214 if test -z "$haveit"; then
8215 ltrpathdirs="$ltrpathdirs $dir"
8220 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8223 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8226 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
8227 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
8233 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8234 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
8240 if test "X$rpathdirs" != "X"; then
8241 if test -n "$hardcode_libdir_separator"; then
8243 for found_dir in $rpathdirs; do
8244 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8246 acl_save_libdir="$libdir"
8248 eval flag=\"$hardcode_libdir_flag_spec\"
8249 libdir="$acl_save_libdir"
8250 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8252 for found_dir in $rpathdirs; do
8253 acl_save_libdir="$libdir"
8255 eval flag=\"$hardcode_libdir_flag_spec\"
8256 libdir="$acl_save_libdir"
8257 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8261 if test "X$ltrpathdirs" != "X"; then
8262 for found_dir in $ltrpathdirs; do
8263 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
8274 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
8275 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
8279 $as_echo "#define ptrdiff_t long" >>confdefs.h
8284 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
8285 stdlib.h string.h unistd.h sys/param.h
8287 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8288 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8289 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8290 cat >>confdefs.h <<_ACEOF
8291 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8298 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
8299 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
8300 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
8303 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8304 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8305 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8306 cat >>confdefs.h <<_ACEOF
8307 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snprintf is declared" >&5
8316 $as_echo_n "checking whether _snprintf is declared... " >&6; }
8317 if ${ac_cv_have_decl__snprintf+:} false; then :
8318 $as_echo_n "(cached) " >&6
8320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8321 /* end confdefs.h. */
8328 char *p = (char *) _snprintf;
8335 if ac_fn_c_try_compile "$LINENO"; then :
8336 ac_cv_have_decl__snprintf=yes
8338 ac_cv_have_decl__snprintf=no
8340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snprintf" >&5
8343 $as_echo "$ac_cv_have_decl__snprintf" >&6; }
8344 if test $ac_cv_have_decl__snprintf = yes; then
8350 cat >>confdefs.h <<_ACEOF
8351 #define HAVE_DECL__SNPRINTF $gt_value
8356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snwprintf is declared" >&5
8357 $as_echo_n "checking whether _snwprintf is declared... " >&6; }
8358 if ${ac_cv_have_decl__snwprintf+:} false; then :
8359 $as_echo_n "(cached) " >&6
8361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8362 /* end confdefs.h. */
8369 char *p = (char *) _snwprintf;
8376 if ac_fn_c_try_compile "$LINENO"; then :
8377 ac_cv_have_decl__snwprintf=yes
8379 ac_cv_have_decl__snwprintf=no
8381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snwprintf" >&5
8384 $as_echo "$ac_cv_have_decl__snwprintf" >&6; }
8385 if test $ac_cv_have_decl__snwprintf = yes; then
8391 cat >>confdefs.h <<_ACEOF
8392 #define HAVE_DECL__SNWPRINTF $gt_value
8398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether feof_unlocked is declared" >&5
8399 $as_echo_n "checking whether feof_unlocked is declared... " >&6; }
8400 if ${ac_cv_have_decl_feof_unlocked+:} false; then :
8401 $as_echo_n "(cached) " >&6
8403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8404 /* end confdefs.h. */
8410 #ifndef feof_unlocked
8411 char *p = (char *) feof_unlocked;
8418 if ac_fn_c_try_compile "$LINENO"; then :
8419 ac_cv_have_decl_feof_unlocked=yes
8421 ac_cv_have_decl_feof_unlocked=no
8423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_feof_unlocked" >&5
8426 $as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
8427 if test $ac_cv_have_decl_feof_unlocked = yes; then
8433 cat >>confdefs.h <<_ACEOF
8434 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
8439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fgets_unlocked is declared" >&5
8440 $as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
8441 if ${ac_cv_have_decl_fgets_unlocked+:} false; then :
8442 $as_echo_n "(cached) " >&6
8444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8445 /* end confdefs.h. */
8451 #ifndef fgets_unlocked
8452 char *p = (char *) fgets_unlocked;
8459 if ac_fn_c_try_compile "$LINENO"; then :
8460 ac_cv_have_decl_fgets_unlocked=yes
8462 ac_cv_have_decl_fgets_unlocked=no
8464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_fgets_unlocked" >&5
8467 $as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
8468 if test $ac_cv_have_decl_fgets_unlocked = yes; then
8474 cat >>confdefs.h <<_ACEOF
8475 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
8480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getc_unlocked is declared" >&5
8481 $as_echo_n "checking whether getc_unlocked is declared... " >&6; }
8482 if ${ac_cv_have_decl_getc_unlocked+:} false; then :
8483 $as_echo_n "(cached) " >&6
8485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8486 /* end confdefs.h. */
8492 #ifndef getc_unlocked
8493 char *p = (char *) getc_unlocked;
8500 if ac_fn_c_try_compile "$LINENO"; then :
8501 ac_cv_have_decl_getc_unlocked=yes
8503 ac_cv_have_decl_getc_unlocked=no
8505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_getc_unlocked" >&5
8508 $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
8509 if test $ac_cv_have_decl_getc_unlocked = yes; then
8515 cat >>confdefs.h <<_ACEOF
8516 #define HAVE_DECL_GETC_UNLOCKED $gt_value
8521 case $gt_cv_func_printf_posix in
8522 *yes) HAVE_POSIX_PRINTF=1 ;;
8523 *) HAVE_POSIX_PRINTF=0 ;;
8526 if test "$ac_cv_func_asprintf" = yes; then
8532 if test "$ac_cv_func_snprintf" = yes; then
8538 if test "$ac_cv_func_wprintf" = yes; then
8550 am_save_CPPFLAGS="$CPPFLAGS"
8552 for element in $INCICONV; do
8554 for x in $CPPFLAGS; do
8556 acl_save_prefix="$prefix"
8557 prefix="$acl_final_prefix"
8558 acl_save_exec_prefix="$exec_prefix"
8559 exec_prefix="$acl_final_exec_prefix"
8561 exec_prefix="$acl_save_exec_prefix"
8562 prefix="$acl_save_prefix"
8564 if test "X$x" = "X$element"; then
8569 if test -z "$haveit"; then
8570 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
8576 $as_echo_n "checking for iconv... " >&6; }
8577 if ${am_cv_func_iconv+:} false; then :
8578 $as_echo_n "(cached) " >&6
8581 am_cv_func_iconv="no, consider installing GNU libiconv"
8583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8584 /* end confdefs.h. */
8590 iconv_t cd = iconv_open("","");
8591 iconv(cd,NULL,NULL,NULL,NULL);
8597 if ac_fn_c_try_link "$LINENO"; then :
8598 am_cv_func_iconv=yes
8600 rm -f core conftest.err conftest.$ac_objext \
8601 conftest$ac_exeext conftest.$ac_ext
8602 if test "$am_cv_func_iconv" != yes; then
8603 am_save_LIBS="$LIBS"
8604 LIBS="$LIBS $LIBICONV"
8605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8606 /* end confdefs.h. */
8612 iconv_t cd = iconv_open("","");
8613 iconv(cd,NULL,NULL,NULL,NULL);
8619 if ac_fn_c_try_link "$LINENO"; then :
8621 am_cv_func_iconv=yes
8623 rm -f core conftest.err conftest.$ac_objext \
8624 conftest$ac_exeext conftest.$ac_ext
8625 LIBS="$am_save_LIBS"
8629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
8630 $as_echo "$am_cv_func_iconv" >&6; }
8631 if test "$am_cv_func_iconv" = yes; then
8633 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
8636 if test "$am_cv_lib_iconv" = yes; then
8637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
8638 $as_echo_n "checking how to link with libiconv... " >&6; }
8639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
8640 $as_echo "$LIBICONV" >&6; }
8642 CPPFLAGS="$am_save_CPPFLAGS"
8649 if test "$am_cv_func_iconv" = yes; then
8650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
8651 $as_echo_n "checking for iconv declaration... " >&6; }
8652 if ${am_cv_proto_iconv+:} false; then :
8653 $as_echo_n "(cached) " >&6
8656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8657 /* end confdefs.h. */
8665 #if defined(__STDC__) || defined(__cplusplus)
8666 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
8679 if ac_fn_c_try_compile "$LINENO"; then :
8680 am_cv_proto_iconv_arg1=""
8682 am_cv_proto_iconv_arg1="const"
8684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8685 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);"
8688 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
8689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
8690 }$am_cv_proto_iconv" >&5
8692 }$am_cv_proto_iconv" >&6; }
8694 cat >>confdefs.h <<_ACEOF
8695 #define ICONV_CONST $am_cv_proto_iconv_arg1
8701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
8702 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
8703 if ${am_cv_langinfo_codeset+:} false; then :
8704 $as_echo_n "(cached) " >&6
8706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8707 /* end confdefs.h. */
8708 #include <langinfo.h>
8712 char* cs = nl_langinfo(CODESET);
8717 if ac_fn_c_try_link "$LINENO"; then :
8718 am_cv_langinfo_codeset=yes
8720 am_cv_langinfo_codeset=no
8722 rm -f core conftest.err conftest.$ac_objext \
8723 conftest$ac_exeext conftest.$ac_ext
8726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
8727 $as_echo "$am_cv_langinfo_codeset" >&6; }
8728 if test $am_cv_langinfo_codeset = yes; then
8730 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
8734 if test $ac_cv_header_locale_h = yes; then
8736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
8737 $as_echo_n "checking for LC_MESSAGES... " >&6; }
8738 if ${am_cv_val_LC_MESSAGES+:} false; then :
8739 $as_echo_n "(cached) " >&6
8741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8742 /* end confdefs.h. */
8752 if ac_fn_c_try_link "$LINENO"; then :
8753 am_cv_val_LC_MESSAGES=yes
8755 am_cv_val_LC_MESSAGES=no
8757 rm -f core conftest.err conftest.$ac_objext \
8758 conftest$ac_exeext conftest.$ac_ext
8760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
8761 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
8762 if test $am_cv_val_LC_MESSAGES = yes; then
8764 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
8770 for ac_prog in bison
8772 # Extract the first word of "$ac_prog", so it can be a program name with args.
8773 set dummy $ac_prog; ac_word=$2
8774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8775 $as_echo_n "checking for $ac_word... " >&6; }
8776 if ${ac_cv_prog_INTLBISON+:} false; then :
8777 $as_echo_n "(cached) " >&6
8779 if test -n "$INTLBISON"; then
8780 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
8782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8786 test -z "$as_dir" && as_dir=.
8787 for ac_exec_ext in '' $ac_executable_extensions; do
8788 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8789 ac_cv_prog_INTLBISON="$ac_prog"
8790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8799 INTLBISON=$ac_cv_prog_INTLBISON
8800 if test -n "$INTLBISON"; then
8801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
8802 $as_echo "$INTLBISON" >&6; }
8804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8805 $as_echo "no" >&6; }
8809 test -n "$INTLBISON" && break
8812 if test -z "$INTLBISON"; then
8815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
8816 $as_echo_n "checking version of bison... " >&6; }
8817 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
8818 case $ac_prog_version in
8819 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
8820 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
8821 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
8822 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
8824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
8825 $as_echo "$ac_prog_version" >&6; }
8827 if test $ac_verc_fail = yes; then
8846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
8847 $as_echo_n "checking whether NLS is requested... " >&6; }
8848 # Check whether --enable-nls was given.
8849 if test "${enable_nls+set}" = set; then :
8850 enableval=$enable_nls; USE_NLS=$enableval
8855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
8856 $as_echo "$USE_NLS" >&6; }
8861 BUILD_INCLUDED_LIBINTL=no
8862 USE_INCLUDED_LIBINTL=no
8868 if test "$USE_NLS" = "yes"; then
8869 gt_use_preinstalled_gnugettext=no
8871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
8872 $as_echo_n "checking whether included gettext is requested... " >&6; }
8874 # Check whether --with-included-gettext was given.
8875 if test "${with_included_gettext+set}" = set; then :
8876 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
8878 nls_cv_force_use_gnu_gettext=no
8881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
8882 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
8884 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
8885 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
8892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
8893 $as_echo_n "checking for GNU gettext in libc... " >&6; }
8894 if ${gt_cv_func_gnugettext1_libc+:} false; then :
8895 $as_echo_n "(cached) " >&6
8897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8898 /* end confdefs.h. */
8899 #include <libintl.h>
8900 extern int _nl_msg_cat_cntr;
8901 extern int *_nl_domain_bindings;
8905 bindtextdomain ("", "");
8906 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
8911 if ac_fn_c_try_link "$LINENO"; then :
8912 gt_cv_func_gnugettext1_libc=yes
8914 gt_cv_func_gnugettext1_libc=no
8916 rm -f core conftest.err conftest.$ac_objext \
8917 conftest$ac_exeext conftest.$ac_ext
8919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
8920 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
8922 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
8928 acl_save_prefix="$prefix"
8929 prefix="$acl_final_prefix"
8930 acl_save_exec_prefix="$exec_prefix"
8931 exec_prefix="$acl_final_exec_prefix"
8933 eval additional_includedir=\"$includedir\"
8934 eval additional_libdir=\"$libdir\"
8936 exec_prefix="$acl_save_exec_prefix"
8937 prefix="$acl_save_prefix"
8940 # Check whether --with-libintl-prefix was given.
8941 if test "${with_libintl_prefix+set}" = set; then :
8942 withval=$with_libintl_prefix;
8943 if test "X$withval" = "Xno"; then
8946 if test "X$withval" = "X"; then
8948 acl_save_prefix="$prefix"
8949 prefix="$acl_final_prefix"
8950 acl_save_exec_prefix="$exec_prefix"
8951 exec_prefix="$acl_final_exec_prefix"
8953 eval additional_includedir=\"$includedir\"
8954 eval additional_libdir=\"$libdir\"
8956 exec_prefix="$acl_save_exec_prefix"
8957 prefix="$acl_save_prefix"
8960 additional_includedir="$withval/include"
8961 additional_libdir="$withval/lib"
8972 names_already_handled=
8973 names_next_round='intl '
8974 while test -n "$names_next_round"; do
8975 names_this_round="$names_next_round"
8977 for name in $names_this_round; do
8979 for n in $names_already_handled; do
8980 if test "$n" = "$name"; then
8985 if test -z "$already_handled"; then
8986 names_already_handled="$names_already_handled $name"
8987 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
8988 eval value=\"\$HAVE_LIB$uppername\"
8989 if test -n "$value"; then
8990 if test "$value" = yes; then
8991 eval value=\"\$LIB$uppername\"
8992 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
8993 eval value=\"\$LTLIB$uppername\"
8994 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
9003 if test $use_additional = yes; then
9004 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9005 found_dir="$additional_libdir"
9006 found_so="$additional_libdir/lib$name.$shlibext"
9007 if test -f "$additional_libdir/lib$name.la"; then
9008 found_la="$additional_libdir/lib$name.la"
9011 if test -f "$additional_libdir/lib$name.$libext"; then
9012 found_dir="$additional_libdir"
9013 found_a="$additional_libdir/lib$name.$libext"
9014 if test -f "$additional_libdir/lib$name.la"; then
9015 found_la="$additional_libdir/lib$name.la"
9020 if test "X$found_dir" = "X"; then
9021 for x in $LDFLAGS $LTLIBINTL; do
9023 acl_save_prefix="$prefix"
9024 prefix="$acl_final_prefix"
9025 acl_save_exec_prefix="$exec_prefix"
9026 exec_prefix="$acl_final_exec_prefix"
9028 exec_prefix="$acl_save_exec_prefix"
9029 prefix="$acl_save_prefix"
9033 dir=`echo "X$x" | sed -e 's/^X-L//'`
9034 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9036 found_so="$dir/lib$name.$shlibext"
9037 if test -f "$dir/lib$name.la"; then
9038 found_la="$dir/lib$name.la"
9041 if test -f "$dir/lib$name.$libext"; then
9043 found_a="$dir/lib$name.$libext"
9044 if test -f "$dir/lib$name.la"; then
9045 found_la="$dir/lib$name.la"
9051 if test "X$found_dir" != "X"; then
9056 if test "X$found_dir" != "X"; then
9057 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
9058 if test "X$found_so" != "X"; then
9059 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9060 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9063 for x in $ltrpathdirs; do
9064 if test "X$x" = "X$found_dir"; then
9069 if test -z "$haveit"; then
9070 ltrpathdirs="$ltrpathdirs $found_dir"
9072 if test "$hardcode_direct" = yes; then
9073 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9075 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9076 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9078 for x in $rpathdirs; do
9079 if test "X$x" = "X$found_dir"; then
9084 if test -z "$haveit"; then
9085 rpathdirs="$rpathdirs $found_dir"
9089 for x in $LDFLAGS $LIBINTL; do
9091 acl_save_prefix="$prefix"
9092 prefix="$acl_final_prefix"
9093 acl_save_exec_prefix="$exec_prefix"
9094 exec_prefix="$acl_final_exec_prefix"
9096 exec_prefix="$acl_save_exec_prefix"
9097 prefix="$acl_save_prefix"
9099 if test "X$x" = "X-L$found_dir"; then
9104 if test -z "$haveit"; then
9105 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
9107 if test "$hardcode_minus_L" != no; then
9108 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9110 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
9116 if test "X$found_a" != "X"; then
9117 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
9119 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
9122 additional_includedir=
9123 case "$found_dir" in
9125 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9126 additional_includedir="$basedir/include"
9129 if test "X$additional_includedir" != "X"; then
9130 if test "X$additional_includedir" != "X/usr/include"; then
9132 if test "X$additional_includedir" = "X/usr/local/include"; then
9133 if test -n "$GCC"; then
9135 linux*) haveit=yes;;
9139 if test -z "$haveit"; then
9140 for x in $CPPFLAGS $INCINTL; do
9142 acl_save_prefix="$prefix"
9143 prefix="$acl_final_prefix"
9144 acl_save_exec_prefix="$exec_prefix"
9145 exec_prefix="$acl_final_exec_prefix"
9147 exec_prefix="$acl_save_exec_prefix"
9148 prefix="$acl_save_prefix"
9150 if test "X$x" = "X-I$additional_includedir"; then
9155 if test -z "$haveit"; then
9156 if test -d "$additional_includedir"; then
9157 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
9163 if test -n "$found_la"; then
9164 save_libdir="$libdir"
9166 */* | *\\*) . "$found_la" ;;
9167 *) . "./$found_la" ;;
9169 libdir="$save_libdir"
9170 for dep in $dependency_libs; do
9173 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9174 if test "X$additional_libdir" != "X/usr/lib"; then
9176 if test "X$additional_libdir" = "X/usr/local/lib"; then
9177 if test -n "$GCC"; then
9179 linux*) haveit=yes;;
9183 if test -z "$haveit"; then
9185 for x in $LDFLAGS $LIBINTL; do
9187 acl_save_prefix="$prefix"
9188 prefix="$acl_final_prefix"
9189 acl_save_exec_prefix="$exec_prefix"
9190 exec_prefix="$acl_final_exec_prefix"
9192 exec_prefix="$acl_save_exec_prefix"
9193 prefix="$acl_save_prefix"
9195 if test "X$x" = "X-L$additional_libdir"; then
9200 if test -z "$haveit"; then
9201 if test -d "$additional_libdir"; then
9202 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
9206 for x in $LDFLAGS $LTLIBINTL; do
9208 acl_save_prefix="$prefix"
9209 prefix="$acl_final_prefix"
9210 acl_save_exec_prefix="$exec_prefix"
9211 exec_prefix="$acl_final_exec_prefix"
9213 exec_prefix="$acl_save_exec_prefix"
9214 prefix="$acl_save_prefix"
9216 if test "X$x" = "X-L$additional_libdir"; then
9221 if test -z "$haveit"; then
9222 if test -d "$additional_libdir"; then
9223 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
9230 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9231 if test "$enable_rpath" != no; then
9233 for x in $rpathdirs; do
9234 if test "X$x" = "X$dir"; then
9239 if test -z "$haveit"; then
9240 rpathdirs="$rpathdirs $dir"
9243 for x in $ltrpathdirs; do
9244 if test "X$x" = "X$dir"; then
9249 if test -z "$haveit"; then
9250 ltrpathdirs="$ltrpathdirs $dir"
9255 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9258 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9261 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
9262 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
9268 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
9269 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
9275 if test "X$rpathdirs" != "X"; then
9276 if test -n "$hardcode_libdir_separator"; then
9278 for found_dir in $rpathdirs; do
9279 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9281 acl_save_libdir="$libdir"
9283 eval flag=\"$hardcode_libdir_flag_spec\"
9284 libdir="$acl_save_libdir"
9285 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
9287 for found_dir in $rpathdirs; do
9288 acl_save_libdir="$libdir"
9290 eval flag=\"$hardcode_libdir_flag_spec\"
9291 libdir="$acl_save_libdir"
9292 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
9296 if test "X$ltrpathdirs" != "X"; then
9297 for found_dir in $ltrpathdirs; do
9298 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
9302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
9303 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
9304 if ${gt_cv_func_gnugettext1_libintl+:} false; then :
9305 $as_echo_n "(cached) " >&6
9307 gt_save_CPPFLAGS="$CPPFLAGS"
9308 CPPFLAGS="$CPPFLAGS $INCINTL"
9309 gt_save_LIBS="$LIBS"
9310 LIBS="$LIBS $LIBINTL"
9311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9312 /* end confdefs.h. */
9313 #include <libintl.h>
9314 extern int _nl_msg_cat_cntr;
9319 const char *_nl_expand_alias ();
9323 bindtextdomain ("", "");
9324 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
9329 if ac_fn_c_try_link "$LINENO"; then :
9330 gt_cv_func_gnugettext1_libintl=yes
9332 gt_cv_func_gnugettext1_libintl=no
9334 rm -f core conftest.err conftest.$ac_objext \
9335 conftest$ac_exeext conftest.$ac_ext
9336 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
9337 LIBS="$LIBS $LIBICONV"
9338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9339 /* end confdefs.h. */
9340 #include <libintl.h>
9341 extern int _nl_msg_cat_cntr;
9346 const char *_nl_expand_alias ();
9350 bindtextdomain ("", "");
9351 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
9356 if ac_fn_c_try_link "$LINENO"; then :
9357 LIBINTL="$LIBINTL $LIBICONV"
9358 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
9359 gt_cv_func_gnugettext1_libintl=yes
9362 rm -f core conftest.err conftest.$ac_objext \
9363 conftest$ac_exeext conftest.$ac_ext
9365 CPPFLAGS="$gt_save_CPPFLAGS"
9366 LIBS="$gt_save_LIBS"
9368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
9369 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
9372 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
9373 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
9374 && test "$PACKAGE" != gettext-runtime \
9375 && test "$PACKAGE" != gettext-tools; }; then
9376 gt_use_preinstalled_gnugettext=yes
9384 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
9385 nls_cv_use_gnu_gettext=yes
9389 if test "$nls_cv_use_gnu_gettext" = "yes"; then
9390 BUILD_INCLUDED_LIBINTL=yes
9391 USE_INCLUDED_LIBINTL=yes
9392 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
9393 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
9394 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
9397 if test "$gt_use_preinstalled_gnugettext" = "yes" \
9398 || test "$nls_cv_use_gnu_gettext" = "yes"; then
9403 if test "$gt_use_preinstalled_gnugettext" = "yes" \
9404 || test "$nls_cv_use_gnu_gettext" = "yes"; then
9406 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
9413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
9414 $as_echo_n "checking whether to use NLS... " >&6; }
9415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
9416 $as_echo "$USE_NLS" >&6; }
9417 if test "$USE_NLS" = "yes"; then
9418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
9419 $as_echo_n "checking where the gettext function comes from... " >&6; }
9420 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
9421 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
9422 gt_source="external libintl"
9427 gt_source="included intl directory"
9429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
9430 $as_echo "$gt_source" >&6; }
9433 if test "$USE_NLS" = "yes"; then
9435 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
9436 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
9437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
9438 $as_echo_n "checking how to link with libintl... " >&6; }
9439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
9440 $as_echo "$LIBINTL" >&6; }
9442 for element in $INCINTL; do
9444 for x in $CPPFLAGS; do
9446 acl_save_prefix="$prefix"
9447 prefix="$acl_final_prefix"
9448 acl_save_exec_prefix="$exec_prefix"
9449 exec_prefix="$acl_final_exec_prefix"
9451 exec_prefix="$acl_save_exec_prefix"
9452 prefix="$acl_save_prefix"
9454 if test "X$x" = "X$element"; then
9459 if test -z "$haveit"; then
9460 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9467 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
9470 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
9478 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
9479 BUILD_INCLUDED_LIBINTL=yes
9487 nls_cv_header_libgt=
9498 if test "$USE_INCLUDED_LIBINTL" = yes; then
9499 INTLOBJS="\$(GETTOBJS)"
9503 INTL_LIBTOOL_SUFFIX_PREFIX=
9515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9516 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
9518 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
9519 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
9520 $as_echo_n "(cached) " >&6
9522 cat >conftest.make <<\_ACEOF
9525 @echo '@@@%%%=$(MAKE)=@@@%%%'
9527 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
9528 case `${MAKE-make} -f conftest.make 2>/dev/null` in
9530 eval ac_cv_prog_make_${ac_make}_set=yes;;
9532 eval ac_cv_prog_make_${ac_make}_set=no;;
9536 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9538 $as_echo "yes" >&6; }
9541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9542 $as_echo "no" >&6; }
9543 SET_MAKE="MAKE=${MAKE-make}"
9546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5
9547 $as_echo_n "checking for GNU make... " >&6; }
9548 if ${_cv_gnu_make_command+:} false; then :
9549 $as_echo_n "(cached) " >&6
9551 _cv_gnu_make_command='' ;
9552 for a in "$MAKE" make gmake gnumake ; do
9553 if test -z "$a" ; then continue ; fi ;
9554 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
9555 _cv_gnu_make_command=$a ;
9561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_cv_gnu_make_command" >&5
9562 $as_echo "$_cv_gnu_make_command" >&6; } ;
9563 if test "x$_cv_gnu_make_command" != "x" ; then
9569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"Not found\"" >&5
9570 $as_echo "\"Not found\"" >&6; };
9575 # Extract the first word of "ln", so it can be a program name with args.
9576 set dummy ln; ac_word=$2
9577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9578 $as_echo_n "checking for $ac_word... " >&6; }
9579 if ${ac_cv_path_LN+:} false; then :
9580 $as_echo_n "(cached) " >&6
9584 ac_cv_path_LN="$LN" # Let the user override the test with a path.
9587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9591 test -z "$as_dir" && as_dir=.
9592 for ac_exec_ext in '' $ac_executable_extensions; do
9593 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9594 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
9595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9602 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
9607 if test -n "$LN"; then
9608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
9609 $as_echo "$LN" >&6; }
9611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9612 $as_echo "no" >&6; }
9616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
9617 $as_echo_n "checking whether ln -s works... " >&6; }
9619 if test "$LN_S" = "ln -s"; then
9620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9621 $as_echo "yes" >&6; }
9623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
9624 $as_echo "no, using $LN_S" >&6; }
9627 # Extract the first word of "mv", so it can be a program name with args.
9628 set dummy mv; ac_word=$2
9629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9630 $as_echo_n "checking for $ac_word... " >&6; }
9631 if ${ac_cv_path_MV+:} false; then :
9632 $as_echo_n "(cached) " >&6
9636 ac_cv_path_MV="$MV" # Let the user override the test with a path.
9639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9643 test -z "$as_dir" && as_dir=.
9644 for ac_exec_ext in '' $ac_executable_extensions; do
9645 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9646 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
9647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9654 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
9659 if test -n "$MV"; then
9660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
9661 $as_echo "$MV" >&6; }
9663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9664 $as_echo "no" >&6; }
9668 # Extract the first word of "cp", so it can be a program name with args.
9669 set dummy cp; ac_word=$2
9670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9671 $as_echo_n "checking for $ac_word... " >&6; }
9672 if ${ac_cv_path_CP+:} false; then :
9673 $as_echo_n "(cached) " >&6
9677 ac_cv_path_CP="$CP" # Let the user override the test with a path.
9680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9684 test -z "$as_dir" && as_dir=.
9685 for ac_exec_ext in '' $ac_executable_extensions; do
9686 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9687 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
9688 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9695 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
9700 if test -n "$CP"; then
9701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
9702 $as_echo "$CP" >&6; }
9704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9705 $as_echo "no" >&6; }
9709 # Extract the first word of "rm", so it can be a program name with args.
9710 set dummy rm; ac_word=$2
9711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9712 $as_echo_n "checking for $ac_word... " >&6; }
9713 if ${ac_cv_path_RM+:} false; then :
9714 $as_echo_n "(cached) " >&6
9718 ac_cv_path_RM="$RM" # Let the user override the test with a path.
9721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9725 test -z "$as_dir" && as_dir=.
9726 for ac_exec_ext in '' $ac_executable_extensions; do
9727 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9728 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
9729 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9736 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
9741 if test -n "$RM"; then
9742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
9743 $as_echo "$RM" >&6; }
9745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9746 $as_echo "no" >&6; }
9750 # Extract the first word of "chmod", so it can be a program name with args.
9751 set dummy chmod; ac_word=$2
9752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9753 $as_echo_n "checking for $ac_word... " >&6; }
9754 if ${ac_cv_path_CHMOD+:} false; then :
9755 $as_echo_n "(cached) " >&6
9759 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
9762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9766 test -z "$as_dir" && as_dir=.
9767 for ac_exec_ext in '' $ac_executable_extensions; do
9768 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9769 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
9770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9777 test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
9781 CHMOD=$ac_cv_path_CHMOD
9782 if test -n "$CHMOD"; then
9783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
9784 $as_echo "$CHMOD" >&6; }
9786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9787 $as_echo "no" >&6; }
9791 for ac_prog in gawk mawk nawk awk
9793 # Extract the first word of "$ac_prog", so it can be a program name with args.
9794 set dummy $ac_prog; ac_word=$2
9795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9796 $as_echo_n "checking for $ac_word... " >&6; }
9797 if ${ac_cv_prog_AWK+:} false; then :
9798 $as_echo_n "(cached) " >&6
9800 if test -n "$AWK"; then
9801 ac_cv_prog_AWK="$AWK" # Let the user override the test.
9803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9807 test -z "$as_dir" && as_dir=.
9808 for ac_exec_ext in '' $ac_executable_extensions; do
9809 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9810 ac_cv_prog_AWK="$ac_prog"
9811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9821 if test -n "$AWK"; then
9822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
9823 $as_echo "$AWK" >&6; }
9825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9826 $as_echo "no" >&6; }
9830 test -n "$AWK" && break
9833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
9834 $as_echo_n "checking for egrep... " >&6; }
9835 if ${ac_cv_path_EGREP+:} false; then :
9836 $as_echo_n "(cached) " >&6
9838 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
9839 then ac_cv_path_EGREP="$GREP -E"
9841 if test -z "$EGREP"; then
9842 ac_path_EGREP_found=false
9843 # Loop through the user's path and test for each of PROGNAME-LIST
9844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9845 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
9848 test -z "$as_dir" && as_dir=.
9849 for ac_prog in egrep; do
9850 for ac_exec_ext in '' $ac_executable_extensions; do
9851 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
9852 as_fn_executable_p "$ac_path_EGREP" || continue
9853 # Check for GNU ac_path_EGREP and select it if it is found.
9854 # Check for GNU $ac_path_EGREP
9855 case `"$ac_path_EGREP" --version 2>&1` in
9857 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
9860 $as_echo_n 0123456789 >"conftest.in"
9863 cat "conftest.in" "conftest.in" >"conftest.tmp"
9864 mv "conftest.tmp" "conftest.in"
9865 cp "conftest.in" "conftest.nl"
9866 $as_echo 'EGREP' >> "conftest.nl"
9867 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
9868 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
9869 as_fn_arith $ac_count + 1 && ac_count=$as_val
9870 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
9871 # Best one so far, save it but keep looking for a better one
9872 ac_cv_path_EGREP="$ac_path_EGREP"
9873 ac_path_EGREP_max=$ac_count
9875 # 10*(2^10) chars as input seems more than enough
9876 test $ac_count -gt 10 && break
9878 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
9881 $ac_path_EGREP_found && break 3
9886 if test -z "$ac_cv_path_EGREP"; then
9887 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
9890 ac_cv_path_EGREP=$EGREP
9895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
9896 $as_echo "$ac_cv_path_EGREP" >&6; }
9897 EGREP="$ac_cv_path_EGREP"
9900 # Extract the first word of "sed", so it can be a program name with args.
9901 set dummy sed; ac_word=$2
9902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9903 $as_echo_n "checking for $ac_word... " >&6; }
9904 if ${ac_cv_path_SED+:} false; then :
9905 $as_echo_n "(cached) " >&6
9909 ac_cv_path_SED="$SED" # Let the user override the test with a path.
9912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9916 test -z "$as_dir" && as_dir=.
9917 for ac_exec_ext in '' $ac_executable_extensions; do
9918 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9919 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
9920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9927 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
9932 if test -n "$SED"; then
9933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
9934 $as_echo "$SED" >&6; }
9936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9937 $as_echo "no" >&6; }
9941 # Extract the first word of "perl", so it can be a program name with args.
9942 set dummy perl; ac_word=$2
9943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9944 $as_echo_n "checking for $ac_word... " >&6; }
9945 if ${ac_cv_path_PERL+:} false; then :
9946 $as_echo_n "(cached) " >&6
9950 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
9953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9957 test -z "$as_dir" && as_dir=.
9958 for ac_exec_ext in '' $ac_executable_extensions; do
9959 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9960 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
9961 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9968 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
9972 PERL=$ac_cv_path_PERL
9973 if test -n "$PERL"; then
9974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
9975 $as_echo "$PERL" >&6; }
9977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9978 $as_echo "no" >&6; }
9982 # Extract the first word of "ldconfig", so it can be a program name with args.
9983 set dummy ldconfig; ac_word=$2
9984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9985 $as_echo_n "checking for $ac_word... " >&6; }
9986 if ${ac_cv_path_LDCONFIG+:} false; then :
9987 $as_echo_n "(cached) " >&6
9991 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
9994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9998 test -z "$as_dir" && as_dir=.
9999 for ac_exec_ext in '' $ac_executable_extensions; do
10000 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10001 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
10002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10009 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
10013 LDCONFIG=$ac_cv_path_LDCONFIG
10014 if test -n "$LDCONFIG"; then
10015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
10016 $as_echo "$LDCONFIG" >&6; }
10018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10019 $as_echo "no" >&6; }
10023 if test -n "$ac_tool_prefix"; then
10024 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
10025 set dummy ${ac_tool_prefix}ar; ac_word=$2
10026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10027 $as_echo_n "checking for $ac_word... " >&6; }
10028 if ${ac_cv_prog_AR+:} false; then :
10029 $as_echo_n "(cached) " >&6
10031 if test -n "$AR"; then
10032 ac_cv_prog_AR="$AR" # Let the user override the test.
10034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10035 for as_dir in $PATH
10038 test -z "$as_dir" && as_dir=.
10039 for ac_exec_ext in '' $ac_executable_extensions; do
10040 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10041 ac_cv_prog_AR="${ac_tool_prefix}ar"
10042 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10052 if test -n "$AR"; then
10053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10054 $as_echo "$AR" >&6; }
10056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10057 $as_echo "no" >&6; }
10062 if test -z "$ac_cv_prog_AR"; then
10064 # Extract the first word of "ar", so it can be a program name with args.
10065 set dummy ar; ac_word=$2
10066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10067 $as_echo_n "checking for $ac_word... " >&6; }
10068 if ${ac_cv_prog_ac_ct_AR+:} false; then :
10069 $as_echo_n "(cached) " >&6
10071 if test -n "$ac_ct_AR"; then
10072 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
10074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10075 for as_dir in $PATH
10078 test -z "$as_dir" && as_dir=.
10079 for ac_exec_ext in '' $ac_executable_extensions; do
10080 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10081 ac_cv_prog_ac_ct_AR="ar"
10082 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10091 ac_ct_AR=$ac_cv_prog_ac_ct_AR
10092 if test -n "$ac_ct_AR"; then
10093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
10094 $as_echo "$ac_ct_AR" >&6; }
10096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10097 $as_echo "no" >&6; }
10100 if test "x$ac_ct_AR" = x; then
10103 case $cross_compiling:$ac_tool_warned in
10105 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10106 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10107 ac_tool_warned=yes ;;
10112 AR="$ac_cv_prog_AR"
10115 if test -n "$ac_tool_prefix"; then
10116 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
10117 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
10118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10119 $as_echo_n "checking for $ac_word... " >&6; }
10120 if ${ac_cv_prog_RANLIB+:} false; then :
10121 $as_echo_n "(cached) " >&6
10123 if test -n "$RANLIB"; then
10124 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10127 for as_dir in $PATH
10130 test -z "$as_dir" && as_dir=.
10131 for ac_exec_ext in '' $ac_executable_extensions; do
10132 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10133 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
10134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10143 RANLIB=$ac_cv_prog_RANLIB
10144 if test -n "$RANLIB"; then
10145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
10146 $as_echo "$RANLIB" >&6; }
10148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10149 $as_echo "no" >&6; }
10154 if test -z "$ac_cv_prog_RANLIB"; then
10155 ac_ct_RANLIB=$RANLIB
10156 # Extract the first word of "ranlib", so it can be a program name with args.
10157 set dummy ranlib; ac_word=$2
10158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10159 $as_echo_n "checking for $ac_word... " >&6; }
10160 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
10161 $as_echo_n "(cached) " >&6
10163 if test -n "$ac_ct_RANLIB"; then
10164 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
10166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10167 for as_dir in $PATH
10170 test -z "$as_dir" && as_dir=.
10171 for ac_exec_ext in '' $ac_executable_extensions; do
10172 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10173 ac_cv_prog_ac_ct_RANLIB="ranlib"
10174 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10183 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
10184 if test -n "$ac_ct_RANLIB"; then
10185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
10186 $as_echo "$ac_ct_RANLIB" >&6; }
10188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10189 $as_echo "no" >&6; }
10192 if test "x$ac_ct_RANLIB" = x; then
10195 case $cross_compiling:$ac_tool_warned in
10197 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10198 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10199 ac_tool_warned=yes ;;
10201 RANLIB=$ac_ct_RANLIB
10204 RANLIB="$ac_cv_prog_RANLIB"
10207 if test -n "$ac_tool_prefix"; then
10208 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
10209 set dummy ${ac_tool_prefix}strip; ac_word=$2
10210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10211 $as_echo_n "checking for $ac_word... " >&6; }
10212 if ${ac_cv_prog_STRIP+:} false; then :
10213 $as_echo_n "(cached) " >&6
10215 if test -n "$STRIP"; then
10216 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
10218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10219 for as_dir in $PATH
10222 test -z "$as_dir" && as_dir=.
10223 for ac_exec_ext in '' $ac_executable_extensions; do
10224 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10225 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
10226 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10235 STRIP=$ac_cv_prog_STRIP
10236 if test -n "$STRIP"; then
10237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
10238 $as_echo "$STRIP" >&6; }
10240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10241 $as_echo "no" >&6; }
10246 if test -z "$ac_cv_prog_STRIP"; then
10248 # Extract the first word of "strip", so it can be a program name with args.
10249 set dummy strip; ac_word=$2
10250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10251 $as_echo_n "checking for $ac_word... " >&6; }
10252 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
10253 $as_echo_n "(cached) " >&6
10255 if test -n "$ac_ct_STRIP"; then
10256 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
10258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10259 for as_dir in $PATH
10262 test -z "$as_dir" && as_dir=.
10263 for ac_exec_ext in '' $ac_executable_extensions; do
10264 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10265 ac_cv_prog_ac_ct_STRIP="strip"
10266 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10275 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
10276 if test -n "$ac_ct_STRIP"; then
10277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
10278 $as_echo "$ac_ct_STRIP" >&6; }
10280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10281 $as_echo "no" >&6; }
10284 if test "x$ac_ct_STRIP" = x; then
10287 case $cross_compiling:$ac_tool_warned in
10289 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10290 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10291 ac_tool_warned=yes ;;
10296 STRIP="$ac_cv_prog_STRIP"
10299 # Extract the first word of "makeinfo", so it can be a program name with args.
10300 set dummy makeinfo; ac_word=$2
10301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10302 $as_echo_n "checking for $ac_word... " >&6; }
10303 if ${ac_cv_prog_MAKEINFO+:} false; then :
10304 $as_echo_n "(cached) " >&6
10306 if test -n "$MAKEINFO"; then
10307 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
10309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10310 for as_dir in $PATH
10313 test -z "$as_dir" && as_dir=.
10314 for ac_exec_ext in '' $ac_executable_extensions; do
10315 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10316 ac_cv_prog_MAKEINFO="makeinfo"
10317 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10326 MAKEINFO=$ac_cv_prog_MAKEINFO
10327 if test -n "$MAKEINFO"; then
10328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
10329 $as_echo "$MAKEINFO" >&6; }
10331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10332 $as_echo "no" >&6; }
10336 if test "_$MAKEINFO" = "_"; then
10337 MAKEINFO="@echo Makeinfo is missing. Info documentation will not be built.;true"
10339 case "$MAKEINFO" in
10341 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
10342 *** Makeinfo is missing. Info documentation will not be built." >&5
10343 $as_echo "$as_me: WARNING:
10344 *** Makeinfo is missing. Info documentation will not be built." >&2;}
10352 # See if we need a separate native compiler.
10353 if test $cross_compiling = no; then
10357 for ac_prog in gcc cc
10359 # Extract the first word of "$ac_prog", so it can be a program name with args.
10360 set dummy $ac_prog; ac_word=$2
10361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10362 $as_echo_n "checking for $ac_word... " >&6; }
10363 if ${ac_cv_prog_BUILD_CC+:} false; then :
10364 $as_echo_n "(cached) " >&6
10366 if test -n "$BUILD_CC"; then
10367 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
10369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10370 for as_dir in $PATH
10373 test -z "$as_dir" && as_dir=.
10374 for ac_exec_ext in '' $ac_executable_extensions; do
10375 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10376 ac_cv_prog_BUILD_CC="$ac_prog"
10377 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10386 BUILD_CC=$ac_cv_prog_BUILD_CC
10387 if test -n "$BUILD_CC"; then
10388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
10389 $as_echo "$BUILD_CC" >&6; }
10391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10392 $as_echo "no" >&6; }
10396 test -n "$BUILD_CC" && break
10400 for ac_header in dirent.h errno.h execinfo.h getopt.h malloc.h mntent.h paths.h semaphore.h setjmp.h signal.h stdarg.h stdint.h stdlib.h termios.h termio.h unistd.h utime.h linux/falloc.h linux/fd.h linux/major.h linux/loop.h net/if_dl.h netinet/in.h sys/disklabel.h sys/file.h sys/ioctl.h sys/mkdev.h sys/mman.h sys/prctl.h sys/queue.h sys/resource.h sys/select.h sys/socket.h sys/sockio.h sys/stat.h sys/syscall.h sys/sysmacros.h sys/time.h sys/types.h sys/un.h sys/wait.h
10402 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10403 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10404 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10405 cat >>confdefs.h <<_ACEOF
10406 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10413 for ac_header in sys/disk.h sys/mount.h
10415 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10416 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
10417 #if HAVE_SYS_QUEUE_H
10418 #include <sys/queue.h>
10422 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10423 cat >>confdefs.h <<_ACEOF
10424 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10431 for ac_header in net/if.h
10433 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
10434 #if HAVE_SYS_TYPES_H
10435 #include <sys/types.h>
10437 #if HAVE_SYS_SOCKET
10438 #include <sys/socket.h>
10442 if test "x$ac_cv_header_net_if_h" = xyes; then :
10443 cat >>confdefs.h <<_ACEOF
10444 #define HAVE_NET_IF_H 1
10451 for ac_func in vprintf
10453 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
10454 if test "x$ac_cv_func_vprintf" = xyes; then :
10455 cat >>confdefs.h <<_ACEOF
10456 #define HAVE_VPRINTF 1
10459 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
10460 if test "x$ac_cv_func__doprnt" = xyes; then :
10462 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
10470 ac_fn_c_check_member "$LINENO" "struct dirent" "d_reclen" "ac_cv_member_struct_dirent_d_reclen" "#include <dirent.h>
10472 if test "x$ac_cv_member_struct_dirent_d_reclen" = xyes; then :
10474 $as_echo "#define HAVE_RECLEN_DIRENT 1" >>confdefs.h
10478 ac_fn_c_check_member "$LINENO" "struct stat" "st_atim" "ac_cv_member_struct_stat_st_atim" "$ac_includes_default"
10479 if test "x$ac_cv_member_struct_stat_st_atim" = xyes; then :
10481 cat >>confdefs.h <<_ACEOF
10482 #define HAVE_STRUCT_STAT_ST_ATIM 1
10488 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "#include <sys/types.h>
10490 if test "x$ac_cv_type_ssize_t" = xyes; then :
10492 $as_echo "#define HAVE_TYPE_SSIZE_T 1" >>confdefs.h
10496 ac_fn_c_check_decl "$LINENO" "llseek" "ac_cv_have_decl_llseek" "#include <unistd.h>
10498 if test "x$ac_cv_have_decl_llseek" = xyes; then :
10500 $as_echo "#define HAVE_LLSEEK_PROTOTYPE 1" >>confdefs.h
10504 ac_fn_c_check_decl "$LINENO" "lseek64" "ac_cv_have_decl_lseek64" "#define _LARGEFILE_SOURCE
10505 #define _LARGEFILE64_SOURCE
10506 #include <unistd.h>
10508 if test "x$ac_cv_have_decl_lseek64" = xyes; then :
10510 $as_echo "#define HAVE_LSEEK64_PROTOTYPE 1" >>confdefs.h
10514 # The cast to long int works around a bug in the HP C Compiler
10515 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10516 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10517 # This bug is HP SR number 8606223364.
10518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
10519 $as_echo_n "checking size of short... " >&6; }
10520 if ${ac_cv_sizeof_short+:} false; then :
10521 $as_echo_n "(cached) " >&6
10523 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
10526 if test "$ac_cv_type_short" = yes; then
10527 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10528 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10529 as_fn_error 77 "cannot compute sizeof (short)
10530 See \`config.log' for more details" "$LINENO" 5; }
10532 ac_cv_sizeof_short=0
10537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
10538 $as_echo "$ac_cv_sizeof_short" >&6; }
10542 cat >>confdefs.h <<_ACEOF
10543 #define SIZEOF_SHORT $ac_cv_sizeof_short
10547 # The cast to long int works around a bug in the HP C Compiler
10548 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10549 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10550 # This bug is HP SR number 8606223364.
10551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
10552 $as_echo_n "checking size of int... " >&6; }
10553 if ${ac_cv_sizeof_int+:} false; then :
10554 $as_echo_n "(cached) " >&6
10556 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
10559 if test "$ac_cv_type_int" = yes; then
10560 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10561 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10562 as_fn_error 77 "cannot compute sizeof (int)
10563 See \`config.log' for more details" "$LINENO" 5; }
10570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
10571 $as_echo "$ac_cv_sizeof_int" >&6; }
10575 cat >>confdefs.h <<_ACEOF
10576 #define SIZEOF_INT $ac_cv_sizeof_int
10580 # The cast to long int works around a bug in the HP C Compiler
10581 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10582 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10583 # This bug is HP SR number 8606223364.
10584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
10585 $as_echo_n "checking size of long... " >&6; }
10586 if ${ac_cv_sizeof_long+:} false; then :
10587 $as_echo_n "(cached) " >&6
10589 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
10592 if test "$ac_cv_type_long" = yes; then
10593 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10594 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10595 as_fn_error 77 "cannot compute sizeof (long)
10596 See \`config.log' for more details" "$LINENO" 5; }
10598 ac_cv_sizeof_long=0
10603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
10604 $as_echo "$ac_cv_sizeof_long" >&6; }
10608 cat >>confdefs.h <<_ACEOF
10609 #define SIZEOF_LONG $ac_cv_sizeof_long
10613 # The cast to long int works around a bug in the HP C Compiler
10614 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10615 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10616 # This bug is HP SR number 8606223364.
10617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
10618 $as_echo_n "checking size of long long... " >&6; }
10619 if ${ac_cv_sizeof_long_long+:} false; then :
10620 $as_echo_n "(cached) " >&6
10622 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
10625 if test "$ac_cv_type_long_long" = yes; then
10626 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10627 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10628 as_fn_error 77 "cannot compute sizeof (long long)
10629 See \`config.log' for more details" "$LINENO" 5; }
10631 ac_cv_sizeof_long_long=0
10636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
10637 $as_echo "$ac_cv_sizeof_long_long" >&6; }
10641 cat >>confdefs.h <<_ACEOF
10642 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10646 # The cast to long int works around a bug in the HP C Compiler
10647 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10648 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10649 # This bug is HP SR number 8606223364.
10650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
10651 $as_echo_n "checking size of off_t... " >&6; }
10652 if ${ac_cv_sizeof_off_t+:} false; then :
10653 $as_echo_n "(cached) " >&6
10655 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
10658 if test "$ac_cv_type_off_t" = yes; then
10659 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10660 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10661 as_fn_error 77 "cannot compute sizeof (off_t)
10662 See \`config.log' for more details" "$LINENO" 5; }
10664 ac_cv_sizeof_off_t=0
10669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
10670 $as_echo "$ac_cv_sizeof_off_t" >&6; }
10674 cat >>confdefs.h <<_ACEOF
10675 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
10679 SIZEOF_SHORT=$ac_cv_sizeof_short
10680 SIZEOF_INT=$ac_cv_sizeof_int
10681 SIZEOF_LONG=$ac_cv_sizeof_long
10682 SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
10683 SIZEOF_OFF_T=$ac_cv_sizeof_off_t
10689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
10690 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
10691 if ${ac_cv_c_bigendian+:} false; then :
10692 $as_echo_n "(cached) " >&6
10694 ac_cv_c_bigendian=unknown
10695 # See if we're dealing with a universal compiler.
10696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10697 /* end confdefs.h. */
10698 #ifndef __APPLE_CC__
10699 not a universal capable compiler
10704 if ac_fn_c_try_compile "$LINENO"; then :
10706 # Check for potential -arch flags. It is not universal unless
10707 # there are at least two -arch flags with different values.
10710 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
10711 if test -n "$ac_prev"; then
10713 i?86 | x86_64 | ppc | ppc64)
10714 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
10717 ac_cv_c_bigendian=universal
10723 elif test "x$ac_word" = "x-arch"; then
10728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10729 if test $ac_cv_c_bigendian = unknown; then
10730 # See if sys/param.h defines the BYTE_ORDER macro.
10731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10732 /* end confdefs.h. */
10733 #include <sys/types.h>
10734 #include <sys/param.h>
10739 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
10740 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
10742 bogus endian macros
10749 if ac_fn_c_try_compile "$LINENO"; then :
10750 # It does; now see whether it defined to BIG_ENDIAN or not.
10751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10752 /* end confdefs.h. */
10753 #include <sys/types.h>
10754 #include <sys/param.h>
10759 #if BYTE_ORDER != BIG_ENDIAN
10767 if ac_fn_c_try_compile "$LINENO"; then :
10768 ac_cv_c_bigendian=yes
10770 ac_cv_c_bigendian=no
10772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10776 if test $ac_cv_c_bigendian = unknown; then
10777 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
10778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10779 /* end confdefs.h. */
10780 #include <limits.h>
10785 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
10786 bogus endian macros
10793 if ac_fn_c_try_compile "$LINENO"; then :
10794 # It does; now see whether it defined to _BIG_ENDIAN or not.
10795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10796 /* end confdefs.h. */
10797 #include <limits.h>
10802 #ifndef _BIG_ENDIAN
10810 if ac_fn_c_try_compile "$LINENO"; then :
10811 ac_cv_c_bigendian=yes
10813 ac_cv_c_bigendian=no
10815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10819 if test $ac_cv_c_bigendian = unknown; then
10820 # Compile a test program.
10821 if test "$cross_compiling" = yes; then :
10822 # Try to guess by grepping values from an object file.
10823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10824 /* end confdefs.h. */
10825 short int ascii_mm[] =
10826 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
10827 short int ascii_ii[] =
10828 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
10829 int use_ascii (int i) {
10830 return ascii_mm[i] + ascii_ii[i];
10832 short int ebcdic_ii[] =
10833 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
10834 short int ebcdic_mm[] =
10835 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
10836 int use_ebcdic (int i) {
10837 return ebcdic_mm[i] + ebcdic_ii[i];
10844 return use_ascii (foo) == use_ebcdic (foo);
10849 if ac_fn_c_try_compile "$LINENO"; then :
10850 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
10851 ac_cv_c_bigendian=yes
10853 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
10854 if test "$ac_cv_c_bigendian" = unknown; then
10855 ac_cv_c_bigendian=no
10857 # finding both strings is unlikely to happen, but who knows?
10858 ac_cv_c_bigendian=unknown
10862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10865 /* end confdefs.h. */
10866 $ac_includes_default
10871 /* Are we little or big endian? From Harbison&Steele. */
10875 char c[sizeof (long int)];
10878 return u.c[sizeof (long int) - 1] == 1;
10884 if ac_fn_c_try_run "$LINENO"; then :
10885 ac_cv_c_bigendian=no
10887 ac_cv_c_bigendian=yes
10889 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10890 conftest.$ac_objext conftest.beam conftest.$ac_ext
10895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
10896 $as_echo "$ac_cv_c_bigendian" >&6; }
10897 case $ac_cv_c_bigendian in #(
10899 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
10905 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
10909 as_fn_error $? "unknown endianness
10910 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
10913 BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
10914 ASM_TYPES_HEADER=./asm_types.h
10916 echo "/* These defines are needed for the public ext2fs.h header file */" \
10918 if grep HAVE_SYS_TYPES_H confdefs.h > tmp_config.$$; then
10919 uniq tmp_config.$$ >> public_config.h
10921 echo "#undef HAVE_SYS_TYPES_H" >> public_config.h
10923 if grep WORDS_BIGENDIAN confdefs.h > tmp_config.$$; then
10924 uniq tmp_config.$$ >> public_config.h
10926 echo "#undef WORDS_BIGENDIAN" >> public_config.h
10928 rm -f tmp_config.$$
10929 PUBLIC_CONFIG_HEADER=./public_config.h
10931 for ac_header in inttypes.h
10933 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
10934 if test "x$ac_cv_header_inttypes_h" = xyes; then :
10935 cat >>confdefs.h <<_ACEOF
10936 #define HAVE_INTTYPES_H 1
10943 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
10944 if test "x$ac_cv_type_intptr_t" = xyes; then :
10946 cat >>confdefs.h <<_ACEOF
10947 #define HAVE_INTPTR_T 1
10953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat has a st_flags field" >&5
10954 $as_echo_n "checking whether struct stat has a st_flags field... " >&6; }
10955 if ${e2fsprogs_cv_struct_st_flags+:} false; then :
10956 $as_echo_n "(cached) " >&6
10958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10959 /* end confdefs.h. */
10960 #include <sys/stat.h>
10964 struct stat stat; stat.st_flags = 0;
10969 if ac_fn_c_try_compile "$LINENO"; then :
10970 e2fsprogs_cv_struct_st_flags=yes
10972 e2fsprogs_cv_struct_st_flags=no
10974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags" >&5
10978 $as_echo "$e2fsprogs_cv_struct_st_flags" >&6; }
10979 if test "$e2fsprogs_cv_struct_st_flags" = yes; then
10980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether st_flags field is useful" >&5
10981 $as_echo_n "checking whether st_flags field is useful... " >&6; }
10982 if ${e2fsprogs_cv_struct_st_flags_immut+:} false; then :
10983 $as_echo_n "(cached) " >&6
10985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10986 /* end confdefs.h. */
10987 #include <sys/stat.h>
10991 struct stat stat; stat.st_flags |= UF_IMMUTABLE;
10996 if ac_fn_c_try_compile "$LINENO"; then :
10997 e2fsprogs_cv_struct_st_flags_immut=yes
10999 e2fsprogs_cv_struct_st_flags_immut=no
11001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags_immut" >&5
11005 $as_echo "$e2fsprogs_cv_struct_st_flags_immut" >&6; }
11006 if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
11008 $as_echo "#define HAVE_STAT_FLAGS 1" >>confdefs.h
11012 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h>
11013 #include <sys/socket.h>
11015 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
11017 cat >>confdefs.h <<_ACEOF
11018 #define HAVE_SA_LEN 1
11023 if test -n "$BLKID_CMT"; then
11024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing blkid_probe_all" >&5
11025 $as_echo_n "checking for library containing blkid_probe_all... " >&6; }
11026 if ${ac_cv_search_blkid_probe_all+:} false; then :
11027 $as_echo_n "(cached) " >&6
11029 ac_func_search_save_LIBS=$LIBS
11030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11031 /* end confdefs.h. */
11033 /* Override any GCC internal prototype to avoid an error.
11034 Use char because int might match the return type of a GCC
11035 builtin and then its argument prototype would still apply. */
11039 char blkid_probe_all ();
11043 return blkid_probe_all ();
11048 for ac_lib in '' blkid; do
11049 if test -z "$ac_lib"; then
11050 ac_res="none required"
11053 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11055 if ac_fn_c_try_link "$LINENO"; then :
11056 ac_cv_search_blkid_probe_all=$ac_res
11058 rm -f core conftest.err conftest.$ac_objext \
11060 if ${ac_cv_search_blkid_probe_all+:} false; then :
11064 if ${ac_cv_search_blkid_probe_all+:} false; then :
11067 ac_cv_search_blkid_probe_all=no
11069 rm conftest.$ac_ext
11070 LIBS=$ac_func_search_save_LIBS
11072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_blkid_probe_all" >&5
11073 $as_echo "$ac_cv_search_blkid_probe_all" >&6; }
11074 ac_res=$ac_cv_search_blkid_probe_all
11075 if test "$ac_res" != no; then :
11076 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11081 for ac_func in __secure_getenv backtrace blkid_probe_get_topology chflags fadvise64 fallocate fallocate64 fchown fdatasync fstat64 ftruncate64 futimes getcwd getdtablesize getmntinfo getpwuid_r getrlimit getrusage jrand48 llseek lseek64 mallinfo mbstowcs memalign mempcpy mmap msync nanosleep open64 pathconf posix_fadvise posix_fadvise64 posix_memalign prctl secure_getenv setmntent setresgid setresuid srandom stpcpy strcasecmp strdup strnlen strptime strtoull sync_file_range sysconf usleep utime valloc
11083 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11084 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11085 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11086 cat >>confdefs.h <<_ACEOF
11087 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
11095 $as_echo_n "checking for socket in -lsocket... " >&6; }
11096 if ${ac_cv_lib_socket_socket+:} false; then :
11097 $as_echo_n "(cached) " >&6
11099 ac_check_lib_save_LIBS=$LIBS
11100 LIBS="-lsocket $LIBS"
11101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11102 /* end confdefs.h. */
11104 /* Override any GCC internal prototype to avoid an error.
11105 Use char because int might match the return type of a GCC
11106 builtin and then its argument prototype would still apply. */
11119 if ac_fn_c_try_link "$LINENO"; then :
11120 ac_cv_lib_socket_socket=yes
11122 ac_cv_lib_socket_socket=no
11124 rm -f core conftest.err conftest.$ac_objext \
11125 conftest$ac_exeext conftest.$ac_ext
11126 LIBS=$ac_check_lib_save_LIBS
11128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
11129 $as_echo "$ac_cv_lib_socket_socket" >&6; }
11130 if test "x$ac_cv_lib_socket_socket" = xyes; then :
11131 SOCKET_LIB=-lsocket
11135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for optreset" >&5
11136 $as_echo_n "checking for optreset... " >&6; }
11137 if ${ac_cv_have_optreset+:} false; then :
11138 $as_echo_n "(cached) " >&6
11140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11141 /* end confdefs.h. */
11142 #include <unistd.h>
11145 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11146 $EGREP "optreset" >/dev/null 2>&1; then :
11147 ac_cv_have_optreset=yes
11149 ac_cv_have_optreset=no
11154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_optreset" >&5
11155 $as_echo "$ac_cv_have_optreset" >&6; }
11156 if test $ac_cv_have_optreset = yes; then
11158 $as_echo "#define HAVE_OPTRESET 1" >>confdefs.h
11163 ac_fn_c_check_func "$LINENO" "sem_init" "ac_cv_func_sem_init"
11164 if test "x$ac_cv_func_sem_init" = xyes; then :
11167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lpthread" >&5
11168 $as_echo_n "checking for sem_init in -lpthread... " >&6; }
11169 if ${ac_cv_lib_pthread_sem_init+:} false; then :
11170 $as_echo_n "(cached) " >&6
11172 ac_check_lib_save_LIBS=$LIBS
11173 LIBS="-lpthread $LIBS"
11174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11175 /* end confdefs.h. */
11177 /* Override any GCC internal prototype to avoid an error.
11178 Use char because int might match the return type of a GCC
11179 builtin and then its argument prototype would still apply. */
11187 return sem_init ();
11192 if ac_fn_c_try_link "$LINENO"; then :
11193 ac_cv_lib_pthread_sem_init=yes
11195 ac_cv_lib_pthread_sem_init=no
11197 rm -f core conftest.err conftest.$ac_objext \
11198 conftest$ac_exeext conftest.$ac_ext
11199 LIBS=$ac_check_lib_save_LIBS
11201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_sem_init" >&5
11202 $as_echo "$ac_cv_lib_pthread_sem_init" >&6; }
11203 if test "x$ac_cv_lib_pthread_sem_init" = xyes; then :
11204 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
11206 SEM_INIT_LIB=-lpthread
11208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lrt" >&5
11209 $as_echo_n "checking for sem_init in -lrt... " >&6; }
11210 if ${ac_cv_lib_rt_sem_init+:} false; then :
11211 $as_echo_n "(cached) " >&6
11213 ac_check_lib_save_LIBS=$LIBS
11215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11216 /* end confdefs.h. */
11218 /* Override any GCC internal prototype to avoid an error.
11219 Use char because int might match the return type of a GCC
11220 builtin and then its argument prototype would still apply. */
11228 return sem_init ();
11233 if ac_fn_c_try_link "$LINENO"; then :
11234 ac_cv_lib_rt_sem_init=yes
11236 ac_cv_lib_rt_sem_init=no
11238 rm -f core conftest.err conftest.$ac_objext \
11239 conftest$ac_exeext conftest.$ac_ext
11240 LIBS=$ac_check_lib_save_LIBS
11242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sem_init" >&5
11243 $as_echo "$ac_cv_lib_rt_sem_init" >&6; }
11244 if test "x$ac_cv_lib_rt_sem_init" = xyes; then :
11245 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
11249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lposix4" >&5
11250 $as_echo_n "checking for sem_init in -lposix4... " >&6; }
11251 if ${ac_cv_lib_posix4_sem_init+:} false; then :
11252 $as_echo_n "(cached) " >&6
11254 ac_check_lib_save_LIBS=$LIBS
11255 LIBS="-lposix4 $LIBS"
11256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11257 /* end confdefs.h. */
11259 /* Override any GCC internal prototype to avoid an error.
11260 Use char because int might match the return type of a GCC
11261 builtin and then its argument prototype would still apply. */
11269 return sem_init ();
11274 if ac_fn_c_try_link "$LINENO"; then :
11275 ac_cv_lib_posix4_sem_init=yes
11277 ac_cv_lib_posix4_sem_init=no
11279 rm -f core conftest.err conftest.$ac_objext \
11280 conftest$ac_exeext conftest.$ac_ext
11281 LIBS=$ac_check_lib_save_LIBS
11283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sem_init" >&5
11284 $as_echo "$ac_cv_lib_posix4_sem_init" >&6; }
11285 if test "x$ac_cv_lib_posix4_sem_init" = xyes; then :
11286 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
11288 SEM_INIT_LIB=-lposix4
11297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unified diff option" >&5
11298 $as_echo_n "checking for unified diff option... " >&6; }
11299 if diff -u $0 $0 > /dev/null 2>&1 ; then
11304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNI_DIFF_OPTS" >&5
11305 $as_echo "$UNI_DIFF_OPTS" >&6; }
11310 $as_echo "#define HAVE_EXT2_IOCTLS 1" >>confdefs.h
11330 linux* | gnu* | k*bsd*-gnu)
11331 if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
11333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, root_prefix defaults to ''" >&5
11334 $as_echo "On $host_os systems, root_prefix defaults to ''" >&6; }
11339 linux* | gnu* | k*bsd*-gnu)
11340 if test "$prefix" = NONE ; then
11342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, prefix defaults to /usr" >&5
11343 $as_echo "On $host_os systems, prefix defaults to /usr" >&6; }
11344 if test "$mandir" = '${prefix}/man' ; then
11345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ...and mandir defaults to /usr/share/man" >&5
11346 $as_echo "...and mandir defaults to /usr/share/man" >&6; }
11347 mandir=/usr/share/man
11352 if test "$root_prefix" = NONE ; then
11353 if test "$prefix" = NONE ; then
11354 root_prefix="$ac_default_prefix"
11356 root_prefix="$prefix"
11358 root_bindir=$bindir
11359 root_sbindir=$sbindir
11360 root_libdir=$libdir
11361 root_sysconfdir=$sysconfdir
11363 root_bindir='${root_prefix}/bin'
11364 root_sbindir='${root_prefix}/sbin'
11365 root_libdir='${root_prefix}/lib'
11366 root_sysconfdir='${root_prefix}/etc'
11368 if test "$bindir" != '${exec_prefix}/bin'; then
11369 root_bindir=$bindir
11370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_bindir to $root_bindir" >&5
11371 $as_echo "Setting root_bindir to $root_bindir" >&6; }
11373 if test "$sbindir" != '${exec_prefix}/sbin'; then
11374 root_sbindir=$sbindir
11375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sbindir to $root_sbindir" >&5
11376 $as_echo "Setting root_sbindir to $root_sbindir" >&6; }
11378 if test "$libdir" != '${exec_prefix}/lib'; then
11379 root_libdir=$libdir
11380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_libdir to $root_libdir" >&5
11381 $as_echo "Setting root_libdir to $root_libdir" >&6; }
11383 if test "$sysconfdir" != '${prefix}/etc'; then
11384 root_sysconfdir=$sysconfdir
11385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sysconfdir to $root_sysconfdir" >&5
11386 $as_echo "Setting root_sysconfdir to $root_sysconfdir" >&6; }
11394 # Check whether --with-multiarch was given.
11395 if test "${with_multiarch+set}" = set; then :
11396 withval=$with_multiarch; if test "$withval" = "lib64"; then
11400 libdir=$libdir/$withval
11401 root_libdir=$root_libdir/$withval
11405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can link with -static" >&5
11406 $as_echo_n "checking whether we can link with -static... " >&6; }
11407 if ${ac_cv_e2fsprogs_use_static+:} false; then :
11408 $as_echo_n "(cached) " >&6
11410 SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static"
11411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11412 /* end confdefs.h. */
11422 if ac_fn_c_try_link "$LINENO"; then :
11423 ac_cv_e2fsprogs_use_static=yes
11425 ac_cv_e2fsprogs_use_static=no
11427 rm -f core conftest.err conftest.$ac_objext \
11428 conftest$ac_exeext conftest.$ac_ext
11429 LDFLAGS=$SAVE_LDFLAGS
11434 ac_cv_e2fsprogs_use_static=no
11437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_e2fsprogs_use_static" >&5
11438 $as_echo "$ac_cv_e2fsprogs_use_static" >&6; }
11440 if test $ac_cv_e2fsprogs_use_static = yes; then
11441 LDFLAG_STATIC=-static
11446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using Apple Darwin / GNU libintl workaround" >&5
11447 $as_echo "Using Apple Darwin / GNU libintl workaround" >&6; }
11449 $as_echo "#define _INTL_REDIRECT_MACROS 1" >>confdefs.h
11453 SS_DIR=`cd ${srcdir}/lib/ss; pwd`
11454 ET_DIR=`cd ${srcdir}/lib/et; pwd`
11457 if test "$cross_compiling" = yes ; then
11460 DO_TEST_SUITE=check
11463 INCLUDES='-I. -I$(top_builddir)/lib -I$(top_srcdir)/lib'
11464 if test -n "$CPPFLAGS" ; then
11465 INCLUDES="$INCLUDES $CPPFLAGS"
11467 if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
11468 INCLUDES=$INCLUDES' -I$(top_builddir)/intl -I$(top_srcdir)/intl'
11470 if test -n "$WITH_DIET_LIBC" ; then
11471 INCLUDES="$INCLUDES -D_REENTRANT"
11474 if test $cross_compiling = no; then
11475 BUILD_CFLAGS="$CFLAGS $CPPFLAGS $INCLUDES -DHAVE_CONFIG_H"
11476 BUILD_LDFLAGS="$LDFLAGS"
11483 test -d lib || mkdir lib
11484 test -d include || mkdir include
11485 test -d include/linux || mkdir include/linux
11486 test -d include/asm || mkdir include/asm
11487 for i in MCONFIG Makefile e2fsprogs.spec \
11488 util/Makefile util/subst.conf util/gen-tarball util/install-symlink \
11489 lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \
11490 lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \
11491 lib/uuid/Makefile lib/uuid/uuid_types.h \
11492 lib/blkid/Makefile lib/blkid/blkid_types.h lib/quota/Makefile \
11493 lib/ss/ss.pc lib/uuid/uuid.pc lib/et/com_err.pc \
11494 lib/e2p/e2p.pc lib/blkid/blkid.pc lib/ext2fs/ext2fs.pc \
11495 misc/Makefile ext2ed/Makefile e2fsck/Makefile \
11496 debugfs/Makefile tests/Makefile tests/progs/Makefile \
11497 resize/Makefile doc/Makefile intl/Makefile \
11498 intl/libgnuintl.h po/Makefile.in ; do
11499 if test -d `dirname ${srcdir}/$i` ; then
11500 outlist="$outlist $i"
11503 ac_config_files="$ac_config_files $outlist"
11505 cat >confcache <<\_ACEOF
11506 # This file is a shell script that caches the results of configure
11507 # tests run on this system so they can be shared between configure
11508 # scripts and configure runs, see configure's option --config-cache.
11509 # It is not useful on other systems. If it contains results you don't
11510 # want to keep, you may remove or edit it.
11512 # config.status only pays attention to the cache file if you give it
11513 # the --recheck option to rerun configure.
11515 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11516 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11517 # following values.
11521 # The following way of writing the cache mishandles newlines in values,
11522 # but we know of no workaround that is simple, portable, and efficient.
11523 # So, we kill variables containing newlines.
11524 # Ultrix sh set writes to stderr and can't be redirected directly,
11525 # and sets the high bit in the cache file unless we assign to the vars.
11527 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11528 eval ac_val=\$$ac_var
11532 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11533 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11536 _ | IFS | as_nl) ;; #(
11537 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11538 *) { eval $ac_var=; unset $ac_var;} ;;
11544 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11545 *${as_nl}ac_space=\ *)
11546 # `set' does not quote correctly, so add quotes: double-quote
11547 # substitution turns \\\\ into \\, and sed turns \\ into \.
11550 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11553 # `set' quotes correctly as required by POSIX, so do not add quotes.
11554 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11563 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11565 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11567 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11568 if test -w "$cache_file"; then
11569 if test "x$cache_file" != "x/dev/null"; then
11570 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11571 $as_echo "$as_me: updating cache $cache_file" >&6;}
11572 if test ! -f "$cache_file" || test -h "$cache_file"; then
11573 cat confcache >"$cache_file"
11575 case $cache_file in #(
11577 mv -f confcache "$cache_file"$$ &&
11578 mv -f "$cache_file"$$ "$cache_file" ;; #(
11580 mv -f confcache "$cache_file" ;;
11585 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11586 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11591 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11592 # Let make expand exec_prefix.
11593 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11595 DEFS=-DHAVE_CONFIG_H
11600 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11601 # 1. Remove the extension, and $U if already installed.
11602 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11603 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11604 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11605 # will be set to the directory where LIBOBJS objects are built.
11606 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11607 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11609 LIBOBJS=$ac_libobjs
11611 LTLIBOBJS=$ac_ltlibobjs
11616 : "${CONFIG_STATUS=./config.status}"
11618 ac_clean_files_save=$ac_clean_files
11619 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11620 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11621 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11623 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11625 # Generated by $as_me.
11626 # Run this file to recreate the current configuration.
11627 # Compiler output produced by configure, useful for debugging
11628 # configure, is in config.log if it exists.
11631 ac_cs_recheck=false
11634 SHELL=\${CONFIG_SHELL-$SHELL}
11637 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11638 ## -------------------- ##
11639 ## M4sh Initialization. ##
11640 ## -------------------- ##
11642 # Be more Bourne compatible
11643 DUALCASE=1; export DUALCASE # for MKS sh
11644 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11647 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11648 # is contrary to our usage. Disable this feature.
11649 alias -g '${1+"$@"}'='"$@"'
11650 setopt NO_GLOB_SUBST
11652 case `(set -o) 2>/dev/null` in #(
11664 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11665 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11666 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11667 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11668 # Prefer a ksh shell builtin over an external printf program on Solaris,
11669 # but without wasting forks for bash or zsh.
11670 if test -z "$BASH_VERSION$ZSH_VERSION" \
11671 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11672 as_echo='print -r --'
11673 as_echo_n='print -rn --'
11674 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11675 as_echo='printf %s\n'
11676 as_echo_n='printf %s'
11678 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11679 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11680 as_echo_n='/usr/ucb/echo -n'
11682 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11683 as_echo_n_body='eval
11687 expr "X$arg" : "X\\(.*\\)$as_nl";
11688 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11690 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11692 export as_echo_n_body
11693 as_echo_n='sh -c $as_echo_n_body as_echo'
11695 export as_echo_body
11696 as_echo='sh -c $as_echo_body as_echo'
11699 # The user is always right.
11700 if test "${PATH_SEPARATOR+set}" != set; then
11702 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11703 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11710 # We need space, tab and new line, in precisely that order. Quoting is
11711 # there to prevent editors from complaining about space-tab.
11712 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11713 # splitting by setting IFS to empty value.)
11716 # Find who we are. Look in the path if we contain no directory separator.
11719 *[\\/]* ) as_myself=$0 ;;
11720 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11721 for as_dir in $PATH
11724 test -z "$as_dir" && as_dir=.
11725 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11731 # We did not find ourselves, most probably we were run as `sh COMMAND'
11732 # in which case we are not to be found in the path.
11733 if test "x$as_myself" = x; then
11736 if test ! -f "$as_myself"; then
11737 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11741 # Unset variables that we do not need and which cause bugs (e.g. in
11742 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11743 # suppresses any "Segmentation fault" message there. '((' could
11744 # trigger a bug in pdksh 5.2.14.
11745 for as_var in BASH_ENV ENV MAIL MAILPATH
11746 do eval test x\${$as_var+set} = xset \
11747 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11760 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11763 # as_fn_error STATUS ERROR [LINENO LOG_FD]
11764 # ----------------------------------------
11765 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11766 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11767 # script with STATUS, using 1 if that was 0.
11770 as_status=$1; test $as_status -eq 0 && as_status=1
11772 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11773 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11775 $as_echo "$as_me: error: $2" >&2
11776 as_fn_exit $as_status
11780 # as_fn_set_status STATUS
11781 # -----------------------
11782 # Set $? to STATUS, without forking.
11783 as_fn_set_status ()
11786 } # as_fn_set_status
11788 # as_fn_exit STATUS
11789 # -----------------
11790 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11794 as_fn_set_status $1
11800 # Portably unset VAR.
11803 { eval $1=; unset $1;}
11805 as_unset=as_fn_unset
11806 # as_fn_append VAR VALUE
11807 # ----------------------
11808 # Append the text in VALUE to the end of the definition contained in VAR. Take
11809 # advantage of any shell optimizations that allow amortized linear growth over
11810 # repeated appends, instead of the typical quadratic growth present in naive
11812 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11813 eval 'as_fn_append ()
11824 # as_fn_arith ARG...
11825 # ------------------
11826 # Perform arithmetic evaluation on the ARGs, and store the result in the
11827 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11828 # must be portable across $(()) and expr.
11829 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11830 eval 'as_fn_arith ()
11837 as_val=`expr "$@" || test $? -eq 1`
11842 if expr a : '\(a\)' >/dev/null 2>&1 &&
11843 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11849 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11850 as_basename=basename
11855 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11861 as_me=`$as_basename -- "$0" ||
11862 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11863 X"$0" : 'X\(//\)$' \| \
11864 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11866 sed '/^.*\/\([^/][^/]*\)\/*$/{
11880 # Avoid depending upon Character Ranges.
11881 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11882 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11883 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11884 as_cr_digits='0123456789'
11885 as_cr_alnum=$as_cr_Letters$as_cr_digits
11887 ECHO_C= ECHO_N= ECHO_T=
11888 case `echo -n x` in #(((((
11890 case `echo 'xy\c'` in
11891 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11893 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11900 rm -f conf$$ conf$$.exe conf$$.file
11901 if test -d conf$$.dir; then
11902 rm -f conf$$.dir/conf$$.file
11905 mkdir conf$$.dir 2>/dev/null
11907 if (echo >conf$$.file) 2>/dev/null; then
11908 if ln -s conf$$.file conf$$ 2>/dev/null; then
11910 # ... but there are two gotchas:
11911 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11912 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11913 # In both cases, we have to default to `cp -pR'.
11914 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11916 elif ln conf$$.file conf$$ 2>/dev/null; then
11924 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11925 rmdir conf$$.dir 2>/dev/null
11930 # Create "$as_dir" as a directory, including parents if necessary.
11935 -*) as_dir=./$as_dir;;
11937 test -d "$as_dir" || eval $as_mkdir_p || {
11941 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11942 *) as_qdir=$as_dir;;
11944 as_dirs="'$as_qdir' $as_dirs"
11945 as_dir=`$as_dirname -- "$as_dir" ||
11946 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11947 X"$as_dir" : 'X\(//\)[^/]' \| \
11948 X"$as_dir" : 'X\(//\)$' \| \
11949 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11950 $as_echo X"$as_dir" |
11951 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11955 /^X\(\/\/\)[^/].*/{
11968 test -d "$as_dir" && break
11970 test -z "$as_dirs" || eval "mkdir $as_dirs"
11971 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11975 if mkdir -p . 2>/dev/null; then
11976 as_mkdir_p='mkdir -p "$as_dir"'
11978 test -d ./-p && rmdir ./-p
11983 # as_fn_executable_p FILE
11984 # -----------------------
11985 # Test if FILE is an executable regular file.
11986 as_fn_executable_p ()
11988 test -f "$1" && test -x "$1"
11989 } # as_fn_executable_p
11990 as_test_x='test -x'
11991 as_executable_p=as_fn_executable_p
11993 # Sed expression to map a string onto a valid CPP name.
11994 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11996 # Sed expression to map a string onto a valid variable name.
11997 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12001 ## ----------------------------------- ##
12002 ## Main body of $CONFIG_STATUS script. ##
12003 ## ----------------------------------- ##
12005 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12007 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12008 # Save the log message, to keep $0 and so on meaningful, and to
12009 # report actual input values of CONFIG_FILES etc. instead of their
12010 # values after options handling.
12012 This file was extended by $as_me, which was
12013 generated by GNU Autoconf 2.69. Invocation command line was
12015 CONFIG_FILES = $CONFIG_FILES
12016 CONFIG_HEADERS = $CONFIG_HEADERS
12017 CONFIG_LINKS = $CONFIG_LINKS
12018 CONFIG_COMMANDS = $CONFIG_COMMANDS
12021 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12026 case $ac_config_files in *"
12027 "*) set x $ac_config_files; shift; ac_config_files=$*;;
12030 case $ac_config_headers in *"
12031 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12035 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12036 # Files that config.status was made for.
12037 config_files="$ac_config_files"
12038 config_headers="$ac_config_headers"
12039 config_commands="$ac_config_commands"
12043 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12045 \`$as_me' instantiates files and other configuration actions
12046 from templates according to the current configuration. Unless the files
12047 and actions are specified as TAGs, all are instantiated by default.
12049 Usage: $0 [OPTION]... [TAG]...
12051 -h, --help print this help, then exit
12052 -V, --version print version number and configuration settings, then exit
12053 --config print configuration, then exit
12054 -q, --quiet, --silent
12055 do not print progress messages
12056 -d, --debug don't remove temporary files
12057 --recheck update $as_me by reconfiguring in the same conditions
12058 --file=FILE[:TEMPLATE]
12059 instantiate the configuration file FILE
12060 --header=FILE[:TEMPLATE]
12061 instantiate the configuration header FILE
12063 Configuration files:
12066 Configuration headers:
12069 Configuration commands:
12072 Report bugs to the package provider."
12075 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12076 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12079 configured by $0, generated by GNU Autoconf 2.69,
12080 with options \\"\$ac_cs_config\\"
12082 Copyright (C) 2012 Free Software Foundation, Inc.
12083 This config.status script is free software; the Free Software Foundation
12084 gives unlimited permission to copy, distribute and modify it."
12090 test -n "\$AWK" || AWK=awk
12093 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12094 # The default lists apply if the user does not specify any file.
12100 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12101 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12105 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12117 # Handling of the options.
12118 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12120 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12121 $as_echo "$ac_cs_version"; exit ;;
12122 --config | --confi | --conf | --con | --co | --c )
12123 $as_echo "$ac_cs_config"; exit ;;
12124 --debug | --debu | --deb | --de | --d | -d )
12126 --file | --fil | --fi | --f )
12129 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12130 '') as_fn_error $? "missing file argument" ;;
12132 as_fn_append CONFIG_FILES " '$ac_optarg'"
12133 ac_need_defaults=false;;
12134 --header | --heade | --head | --hea )
12137 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12139 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12140 ac_need_defaults=false;;
12142 # Conflict between --help and --header
12143 as_fn_error $? "ambiguous option: \`$1'
12144 Try \`$0 --help' for more information.";;
12145 --help | --hel | -h )
12146 $as_echo "$ac_cs_usage"; exit ;;
12147 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12148 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12151 # This is an error.
12152 -*) as_fn_error $? "unrecognized option: \`$1'
12153 Try \`$0 --help' for more information." ;;
12155 *) as_fn_append ac_config_targets " $1"
12156 ac_need_defaults=false ;;
12162 ac_configure_extra_args=
12164 if $ac_cs_silent; then
12166 ac_configure_extra_args="$ac_configure_extra_args --silent"
12170 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12171 if \$ac_cs_recheck; then
12172 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12174 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12175 CONFIG_SHELL='$SHELL'
12176 export CONFIG_SHELL
12181 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12185 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12186 ## Running $as_me. ##
12192 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12196 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
12197 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
12199 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
12200 # Capture the value of LINGUAS because we need it to compute CATALOGS.
12201 LINGUAS="${LINGUAS-%UNSET%}"
12206 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12208 # Handling of arguments.
12209 for ac_config_target in $ac_config_targets
12211 case $ac_config_target in
12212 "lib/config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/config.h" ;;
12213 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
12214 "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;;
12216 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12221 # If the user did not use the arguments to specify the items to instantiate,
12222 # then the envvar interface is used. Set only those that are not.
12223 # We use the long form for the default assignment because of an extremely
12224 # bizarre bug on SunOS 4.1.3.
12225 if $ac_need_defaults; then
12226 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12227 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12228 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12231 # Have a temporary directory for convenience. Make it in the build tree
12232 # simply because there is no reason against having it here, and in addition,
12233 # creating and moving files from /tmp can sometimes cause problems.
12234 # Hook for its removal unless debugging.
12235 # Note that there is a small window in which the directory will not be cleaned:
12236 # after its creation but before its name has been assigned to `$tmp'.
12240 trap 'exit_status=$?
12241 : "${ac_tmp:=$tmp}"
12242 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12244 trap 'as_fn_exit 1' 1 2 13 15
12246 # Create a (secure) tmp directory for tmp files.
12249 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12253 tmp=./conf$$-$RANDOM
12254 (umask 077 && mkdir "$tmp")
12255 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12258 # Set up the scripts for CONFIG_FILES section.
12259 # No need to generate them if there are no CONFIG_FILES.
12260 # This happens for instance with `./config.status config.h'.
12261 if test -n "$CONFIG_FILES"; then
12263 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
12264 ac_cs_awk_getline=:
12265 ac_cs_awk_pipe_init=
12266 ac_cs_awk_read_file='
12267 while ((getline aline < (F[key])) > 0)
12270 ac_cs_awk_pipe_fini=
12272 ac_cs_awk_getline=false
12273 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
12274 ac_cs_awk_read_file='
12276 print "cat " F[key] " &&"
12277 '$ac_cs_awk_pipe_init
12278 # The final `:' finishes the AND list.
12279 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
12281 ac_cr=`echo X | tr X '\015'`
12282 # On cygwin, bash can eat \r inside `` if the user requested igncr.
12283 # But we know of no other shell where ac_cr would be empty at this
12284 # point, so we can use a bashism as a fallback.
12285 if test "x$ac_cr" = x; then
12286 eval ac_cr=\$\'\\r\'
12288 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12289 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12292 ac_cs_awk_cr=$ac_cr
12295 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12298 # Create commands to substitute file output variables.
12300 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
12301 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
12302 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
12305 } >conf$$files.sh &&
12306 . ./conf$$files.sh ||
12307 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12308 rm -f conf$$files.sh
12311 echo "cat >conf$$subs.awk <<_ACEOF" &&
12312 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12314 } >conf$$subs.sh ||
12315 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12316 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12318 for ac_last_try in false false false false false :; do
12319 . ./conf$$subs.sh ||
12320 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12322 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12323 if test $ac_delim_n = $ac_delim_num; then
12325 elif $ac_last_try; then
12326 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12328 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12331 rm -f conf$$subs.sh
12333 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12334 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12338 s/^/S["/; s/!.*/"]=/
12348 s/\(.\{148\}\)..*/\1/
12350 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12355 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12362 s/\(.\{148\}\)..*/\1/
12364 s/["\\]/\\&/g; s/^/"/; s/$/"/
12368 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12373 ' <conf$$subs.awk | sed '
12378 ' >>$CONFIG_STATUS || ac_write_fail=1
12379 rm -f conf$$subs.awk
12380 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12382 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12383 for (key in S) S_is_set[key] = 1
12385 \$ac_cs_awk_pipe_init
12389 nfields = split(line, field, "@")
12391 len = length(field[1])
12392 for (i = 2; i < nfields; i++) {
12394 keylen = length(key)
12395 if (S_is_set[key]) {
12397 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12398 len += length(value) + length(field[++i])
12403 if (nfields == 3 && !substed) {
12405 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
12406 \$ac_cs_awk_read_file
12412 \$ac_cs_awk_pipe_fini
12415 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12416 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12417 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12420 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12421 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12424 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12425 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12426 # trailing colons and then remove the whole line if VPATH becomes empty
12427 # (actually we leave an empty line to preserve line numbers).
12428 if test "x$srcdir" = x.; then
12429 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
12447 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12448 fi # test -n "$CONFIG_FILES"
12450 # Set up the scripts for CONFIG_HEADERS section.
12451 # No need to generate them if there are no CONFIG_HEADERS.
12452 # This happens for instance with `./config.status Makefile'.
12453 if test -n "$CONFIG_HEADERS"; then
12454 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
12458 # Transform confdefs.h into an awk script `defines.awk', embedded as
12459 # here-document in config.status, that substitutes the proper values into
12460 # config.h.in to produce config.h.
12462 # Create a delimiter string that does not exist in confdefs.h, to ease
12463 # handling of long lines.
12465 for ac_last_try in false false :; do
12466 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12467 if test -z "$ac_tt"; then
12469 elif $ac_last_try; then
12470 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12472 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12476 # For the awk script, D is an array of macro values keyed by name,
12477 # likewise P contains macro parameters if any. Preserve backslash
12478 # newline sequences.
12480 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12482 s/.\{148\}/&'"$ac_delim"'/g
12485 s/^[ ]*#[ ]*define[ ][ ]*/ /
12492 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12494 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12498 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12499 D["\1"]=" \3\\\\\\n"\\/p
12501 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12506 s/.\{148\}/&'"$ac_delim"'/g
12511 s/["\\]/\\&/g; s/^/"/; s/$/"/p
12514 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12516 ' <confdefs.h | sed '
12517 s/'"$ac_delim"'/"\\\
12518 "/g' >>$CONFIG_STATUS || ac_write_fail=1
12520 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12521 for (key in D) D_is_set[key] = 1
12524 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12526 split(line, arg, " ")
12527 if (arg[1] == "#") {
12531 defundef = substr(arg[1], 2)
12534 split(mac1, mac2, "(") #)
12536 prefix = substr(line, 1, index(line, defundef) - 1)
12537 if (D_is_set[macro]) {
12538 # Preserve the white space surrounding the "#".
12539 print prefix "define", macro P[macro] D[macro]
12542 # Replace #undef with comments. This is necessary, for example,
12543 # in the case of _POSIX_SOURCE, which is predefined and required
12544 # on some systems where configure will not decide to define it.
12545 if (defundef == "undef") {
12546 print "/*", prefix defundef, macro, "*/"
12554 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12555 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12556 fi # test -n "$CONFIG_HEADERS"
12559 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
12564 :[FHLC]) ac_mode=$ac_tag; continue;;
12566 case $ac_mode$ac_tag in
12568 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12569 :[FH]-) ac_tag=-:-;;
12570 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12587 -) ac_f="$ac_tmp/stdin";;
12588 *) # Look for the file first in the build tree, then in the source tree
12589 # (if the path is not absolute). The absolute path cannot be DOS-style,
12590 # because $ac_f cannot contain `:'.
12594 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12596 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12598 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12599 as_fn_append ac_file_inputs " '$ac_f'"
12602 # Let's still pretend it is `configure' which instantiates (i.e., don't
12603 # use $as_me), people would be surprised to read:
12604 # /* config.h. Generated by config.status. */
12605 configure_input='Generated from '`
12606 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12608 if test x"$ac_file" != x-; then
12609 configure_input="$ac_file. $configure_input"
12610 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12611 $as_echo "$as_me: creating $ac_file" >&6;}
12613 # Neutralize special characters interpreted by sed in replacement strings.
12614 case $configure_input in #(
12615 *\&* | *\|* | *\\* )
12616 ac_sed_conf_input=`$as_echo "$configure_input" |
12617 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12618 *) ac_sed_conf_input=$configure_input;;
12622 *:-:* | *:-) cat >"$ac_tmp/stdin" \
12623 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12628 ac_dir=`$as_dirname -- "$ac_file" ||
12629 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12630 X"$ac_file" : 'X\(//\)[^/]' \| \
12631 X"$ac_file" : 'X\(//\)$' \| \
12632 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12633 $as_echo X"$ac_file" |
12634 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12638 /^X\(\/\/\)[^/].*/{
12651 as_dir="$ac_dir"; as_fn_mkdir_p
12655 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12657 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12658 # A ".." for each directory in $ac_dir_suffix.
12659 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12660 case $ac_top_builddir_sub in
12661 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12662 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12665 ac_abs_top_builddir=$ac_pwd
12666 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12667 # for backward compatibility:
12668 ac_top_builddir=$ac_top_build_prefix
12671 .) # We are building in place.
12673 ac_top_srcdir=$ac_top_builddir_sub
12674 ac_abs_top_srcdir=$ac_pwd ;;
12675 [\\/]* | ?:[\\/]* ) # Absolute name.
12676 ac_srcdir=$srcdir$ac_dir_suffix;
12677 ac_top_srcdir=$srcdir
12678 ac_abs_top_srcdir=$srcdir ;;
12679 *) # Relative name.
12680 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12681 ac_top_srcdir=$ac_top_build_prefix$srcdir
12682 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12684 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12694 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12695 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12699 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12700 # If the template does not know about datarootdir, expand it.
12701 # FIXME: This hack should be removed a few years after 2.60.
12702 ac_datarootdir_hack=; ac_datarootdir_seen=
12713 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12714 *datarootdir*) ac_datarootdir_seen=yes;;
12715 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12716 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12717 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12719 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12720 ac_datarootdir_hack='
12721 s&@datadir@&$datadir&g
12722 s&@docdir@&$docdir&g
12723 s&@infodir@&$infodir&g
12724 s&@localedir@&$localedir&g
12725 s&@mandir@&$mandir&g
12726 s&\\\${datarootdir}&$datarootdir&g' ;;
12730 # Neutralize VPATH when `$srcdir' = `.'.
12731 # Shell code in configure.ac might set extrasub.
12732 # FIXME: do we really want to maintain this feature?
12733 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12734 ac_sed_extra="$ac_vpsub
12737 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12739 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12740 s|@configure_input@|$ac_sed_conf_input|;t t
12741 s&@top_builddir@&$ac_top_builddir_sub&;t t
12742 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12743 s&@srcdir@&$ac_srcdir&;t t
12744 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12745 s&@top_srcdir@&$ac_top_srcdir&;t t
12746 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12747 s&@builddir@&$ac_builddir&;t t
12748 s&@abs_builddir@&$ac_abs_builddir&;t t
12749 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12750 s&@INSTALL@&$ac_INSTALL&;t t
12751 $ac_datarootdir_hack
12753 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
12754 if $ac_cs_awk_getline; then
12755 $AWK -f "$ac_tmp/subs.awk"
12757 $AWK -f "$ac_tmp/subs.awk" | $SHELL
12759 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12761 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12762 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12763 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
12764 "$ac_tmp/out"`; test -z "$ac_out"; } &&
12765 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12766 which seems to be undefined. Please make sure it is defined" >&5
12767 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12768 which seems to be undefined. Please make sure it is defined" >&2;}
12770 rm -f "$ac_tmp/stdin"
12772 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12773 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12775 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12781 if test x"$ac_file" != x-; then
12783 $as_echo "/* $configure_input */" \
12784 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12785 } >"$ac_tmp/config.h" \
12786 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12787 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12788 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12789 $as_echo "$as_me: $ac_file is unchanged" >&6;}
12792 mv "$ac_tmp/config.h" "$ac_file" \
12793 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12796 $as_echo "/* $configure_input */" \
12797 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12798 || as_fn_error $? "could not create -" "$LINENO" 5
12802 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12803 $as_echo "$as_me: executing $ac_file commands" >&6;}
12808 case $ac_file$ac_mode in
12810 for ac_file in $CONFIG_FILES; do
12811 # Support "outfile[:infile[:infile...]]"
12813 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
12815 # PO directories have a Makefile.in generated from Makefile.in.in.
12816 case "$ac_file" in */Makefile.in)
12817 # Adjust a relative srcdir.
12818 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
12819 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
12820 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
12821 # In autoconf-2.13 it is called $ac_given_srcdir.
12822 # In autoconf-2.50 it is called $srcdir.
12823 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
12824 case "$ac_given_srcdir" in
12825 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
12826 /*) top_srcdir="$ac_given_srcdir" ;;
12827 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
12829 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
12830 rm -f "$ac_dir/POTFILES"
12831 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
12832 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
12833 POMAKEFILEDEPS="POTFILES.in"
12834 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
12835 # on $ac_dir but don't depend on user-specified configuration
12837 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
12838 # The LINGUAS file contains the set of available languages.
12839 if test -n "$OBSOLETE_ALL_LINGUAS"; then
12840 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
12842 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
12843 # Hide the ALL_LINGUAS assigment from automake.
12844 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
12845 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
12847 # The set of available languages was given in configure.in.
12848 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
12851 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
12852 # Compute UPDATEPOFILES
12853 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
12854 # Compute DUMMYPOFILES
12855 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
12857 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
12858 case "$ac_given_srcdir" in
12860 *) srcdirpre='$(srcdir)/' ;;
12866 for lang in $ALL_LINGUAS; do
12867 POFILES="$POFILES $srcdirpre$lang.po"
12868 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
12869 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
12870 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
12872 # CATALOGS depends on both $ac_dir and the user's LINGUAS
12873 # environment variable.
12875 if test -n "$ALL_LINGUAS"; then
12876 for presentlang in $ALL_LINGUAS; do
12878 if test "%UNSET%" != "$LINGUAS"; then
12879 desiredlanguages="$LINGUAS"
12881 desiredlanguages="$ALL_LINGUAS"
12883 for desiredlang in $desiredlanguages; do
12884 # Use the presentlang catalog if desiredlang is
12885 # a. equal to presentlang, or
12886 # b. a variant of presentlang (because in this case,
12887 # presentlang can be used as a fallback for messages
12888 # which are not translated in the desiredlang catalog).
12889 case "$desiredlang" in
12890 "$presentlang"*) useit=yes;;
12893 if test $useit = yes; then
12894 INST_LINGUAS="$INST_LINGUAS $presentlang"
12899 if test -n "$INST_LINGUAS"; then
12900 for lang in $INST_LINGUAS; do
12901 CATALOGS="$CATALOGS $lang.gmo"
12904 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
12905 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"
12906 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
12907 if test -f "$f"; then
12909 *.orig | *.bak | *~) ;;
12910 *) cat "$f" >> "$ac_dir/Makefile" ;;
12925 ac_clean_files=$ac_clean_files_save
12927 test $ac_write_fail = 0 ||
12928 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12931 # configure is writing to config.log, and then calls config.status.
12932 # config.status does its own redirection, appending to config.log.
12933 # Unfortunately, on DOS this fails, as config.log is still kept open
12934 # by configure, so config.status won't be able to write to it; its
12935 # output is simply discarded. So we exec the FD to /dev/null,
12936 # effectively closing config.log, so it can be properly (re)opened and
12937 # appended to by config.status. When coming back to configure, we
12938 # need to make the FD available again.
12939 if test "$no_create" != yes; then
12941 ac_config_status_args=
12942 test "$silent" = yes &&
12943 ac_config_status_args="$ac_config_status_args --quiet"
12945 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12947 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12948 # would make configure fail if this is the last instruction.
12949 $ac_cs_success || as_fn_exit 1
12951 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12952 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12953 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12956 if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi