2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65.
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 as_echo_n='sh -c $as_echo_n_body as_echo'
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
91 # Find who we are. Look in the path if we contain no directory separator.
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x; then
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there. '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\${$as_var+set} = xset \
121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136 if test "x$CONFIG_SHELL" = x; then
137 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
145 case \`(set -o) 2>/dev/null\` in #(
153 as_required="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167 exitcode=1; echo positional parameters were not saved.
169 test x\$exitcode = x0 || exit 1"
170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174 test \$(( 1 + 1 )) = 2 || exit 1"
175 if (eval "$as_required") 2>/dev/null; then :
180 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
185 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
188 test -z "$as_dir" && as_dir=.
192 for as_base in sh bash ksh sh5; do
193 # Try only shells that exist, to save several forks.
194 as_shell=$as_dir/$as_base
195 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 CONFIG_SHELL=$as_shell as_have_required=yes
198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
206 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208 CONFIG_SHELL=$SHELL as_have_required=yes
213 if test "x$CONFIG_SHELL" != x; then :
214 # We cannot yet assume a decent shell, so we have to provide a
215 # neutralization value for shells without unset; and this also
216 # works around shells that cannot unset nonexistent variables.
219 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224 if test x$as_have_required = xno; then :
225 $as_echo "$0: This script requires a shell more modern than all"
226 $as_echo "$0: the shells that I found on your system."
227 if test x${ZSH_VERSION+set} = xset ; then
228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
231 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
232 $0: including any error possibly output before this
233 $0: message. Then install a modern shell, or manually run
234 $0: the script under such a shell if you do have one."
240 SHELL=${CONFIG_SHELL-/bin/sh}
242 # Unset more variables known to interfere with behavior of common tools.
243 CLICOLOR_FORCE= GREP_OPTIONS=
244 unset CLICOLOR_FORCE GREP_OPTIONS
246 ## --------------------- ##
247 ## M4sh Shell Functions. ##
248 ## --------------------- ##
251 # Portably unset VAR.
254 { eval $1=; unset $1;}
258 # as_fn_set_status STATUS
259 # -----------------------
260 # Set $? to STATUS, without forking.
268 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
278 # Create "$as_dir" as a directory, including parents if necessary.
283 -*) as_dir=./$as_dir;;
285 test -d "$as_dir" || eval $as_mkdir_p || {
289 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
292 as_dirs="'$as_qdir' $as_dirs"
293 as_dir=`$as_dirname -- "$as_dir" ||
294 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
295 X"$as_dir" : 'X\(//\)[^/]' \| \
296 X"$as_dir" : 'X\(//\)$' \| \
297 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
298 $as_echo X"$as_dir" |
299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
316 test -d "$as_dir" && break
318 test -z "$as_dirs" || eval "mkdir $as_dirs"
319 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
323 # as_fn_append VAR VALUE
324 # ----------------------
325 # Append the text in VALUE to the end of the definition contained in VAR. Take
326 # advantage of any shell optimizations that allow amortized linear growth over
327 # repeated appends, instead of the typical quadratic growth present in naive
329 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
330 eval 'as_fn_append ()
343 # Perform arithmetic evaluation on the ARGs, and store the result in the
344 # global $as_val. Take advantage of shells that can avoid forks. The arguments
345 # must be portable across $(()) and expr.
346 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
354 as_val=`expr "$@" || test $? -eq 1`
359 # as_fn_error ERROR [LINENO LOG_FD]
360 # ---------------------------------
361 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
362 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
363 # script with status $?, using 1 if that was 0.
366 as_status=$?; test $as_status -eq 0 && as_status=1
368 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
369 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
371 $as_echo "$as_me: error: $1" >&2
372 as_fn_exit $as_status
375 if expr a : '\(a\)' >/dev/null 2>&1 &&
376 test "X`expr 00001 : '.*\(...\)'`" = X001; then
382 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
388 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
394 as_me=`$as_basename -- "$0" ||
395 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
396 X"$0" : 'X\(//\)$' \| \
397 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
399 sed '/^.*\/\([^/][^/]*\)\/*$/{
413 # Avoid depending upon Character Ranges.
414 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
415 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
416 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
417 as_cr_digits='0123456789'
418 as_cr_alnum=$as_cr_Letters$as_cr_digits
421 as_lineno_1=$LINENO as_lineno_1a=$LINENO
422 as_lineno_2=$LINENO as_lineno_2a=$LINENO
423 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
424 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
425 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
437 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
441 chmod +x "$as_me.lineno" ||
442 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
444 # Don't try to exec as it changes $[0], causing all sort of problems
445 # (the dirname of $[0] is not the place where we might find the
446 # original and so on. Autoconf is especially sensitive to this).
448 # Exit status is that of the last command.
452 ECHO_C= ECHO_N= ECHO_T=
453 case `echo -n x` in #(((((
455 case `echo 'xy\c'` in
456 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
458 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
465 rm -f conf$$ conf$$.exe conf$$.file
466 if test -d conf$$.dir; then
467 rm -f conf$$.dir/conf$$.file
470 mkdir conf$$.dir 2>/dev/null
472 if (echo >conf$$.file) 2>/dev/null; then
473 if ln -s conf$$.file conf$$ 2>/dev/null; then
475 # ... but there are two gotchas:
476 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
477 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
478 # In both cases, we have to default to `cp -p'.
479 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
481 elif ln conf$$.file conf$$ 2>/dev/null; then
489 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
490 rmdir conf$$.dir 2>/dev/null
492 if mkdir -p . 2>/dev/null; then
493 as_mkdir_p='mkdir -p "$as_dir"'
495 test -d ./-p && rmdir ./-p
499 if test -x / >/dev/null 2>&1; then
502 if ls -dL / >/dev/null 2>&1; then
509 if test -d "$1"; then
515 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
516 ???[sx]*):;;*)false;;esac;fi
520 as_executable_p=$as_test_x
522 # Sed expression to map a string onto a valid CPP name.
523 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
525 # Sed expression to map a string onto a valid variable name.
526 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
529 test -n "$DJDIR" || exec 7<&0 </dev/null
533 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
534 # so uname gets run too.
535 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
540 ac_default_prefix=/usr/local
542 ac_config_libobj_dir=.
549 # Identity of this package.
557 ac_unique_file="version.h"
558 # Factoring default headers for most tests.
559 ac_includes_default="\
561 #ifdef HAVE_SYS_TYPES_H
562 # include <sys/types.h>
564 #ifdef HAVE_SYS_STAT_H
565 # include <sys/stat.h>
571 # ifdef HAVE_STDLIB_H
576 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
581 #ifdef HAVE_STRINGS_H
582 # include <strings.h>
584 #ifdef HAVE_INTTYPES_H
585 # include <inttypes.h>
595 ac_subst_vars='LTLIBOBJS
641 INTL_LIBTOOL_SUFFIX_PREFIX
648 BUILD_INCLUDED_LIBINTL
773 program_transform_name
784 ac_subst_files='MCONFIG
790 PUBLIC_CONFIG_HEADER'
792 enable_option_checking
798 enable_maintainer_mode
799 enable_symlink_install
800 enable_relative_symlinks
801 enable_symlink_relative_symlinks
803 enable_verbose_makecmds
822 enable_e2initrd_helper
829 with_included_gettext
833 ac_precious_vars='build_alias
845 # Initialize some variables set by options.
847 ac_init_version=false
848 ac_unrecognized_opts=
850 # The variables have the same names as the options, with
851 # dashes changed to underlines.
859 program_transform_name=s,x,x,
867 # Installation directory options.
868 # These are left unexpanded so users can "make install exec_prefix=/foo"
869 # and all the variables that are supposed to be based on exec_prefix
870 # by default will actually change.
871 # Use braces instead of parens because sh, perl, etc. also accept them.
872 # (The list follows the same order as the GNU Coding Standards.)
873 bindir='${exec_prefix}/bin'
874 sbindir='${exec_prefix}/sbin'
875 libexecdir='${exec_prefix}/libexec'
876 datarootdir='${prefix}/share'
877 datadir='${datarootdir}'
878 sysconfdir='${prefix}/etc'
879 sharedstatedir='${prefix}/com'
880 localstatedir='${prefix}/var'
881 includedir='${prefix}/include'
882 oldincludedir='/usr/include'
883 docdir='${datarootdir}/doc/${PACKAGE}'
884 infodir='${datarootdir}/info'
889 libdir='${exec_prefix}/lib'
890 localedir='${datarootdir}/locale'
891 mandir='${datarootdir}/man'
897 # If the previous option needs an argument, assign it.
898 if test -n "$ac_prev"; then
899 eval $ac_prev=\$ac_option
905 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
909 # Accept the important Cygnus configure options, so we can diagnose typos.
911 case $ac_dashdash$ac_option in
915 -bindir | --bindir | --bindi | --bind | --bin | --bi)
917 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
920 -build | --build | --buil | --bui | --bu)
921 ac_prev=build_alias ;;
922 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
923 build_alias=$ac_optarg ;;
925 -cache-file | --cache-file | --cache-fil | --cache-fi \
926 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
927 ac_prev=cache_file ;;
928 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
929 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
930 cache_file=$ac_optarg ;;
933 cache_file=config.cache ;;
935 -datadir | --datadir | --datadi | --datad)
937 -datadir=* | --datadir=* | --datadi=* | --datad=*)
938 datadir=$ac_optarg ;;
940 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
941 | --dataroo | --dataro | --datar)
942 ac_prev=datarootdir ;;
943 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
944 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
945 datarootdir=$ac_optarg ;;
947 -disable-* | --disable-*)
948 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
949 # Reject names that are not valid shell variable names.
950 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
951 as_fn_error "invalid feature name: $ac_useropt"
952 ac_useropt_orig=$ac_useropt
953 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
954 case $ac_user_opts in
958 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
959 ac_unrecognized_sep=', ';;
961 eval enable_$ac_useropt=no ;;
963 -docdir | --docdir | --docdi | --doc | --do)
965 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
968 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
970 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
973 -enable-* | --enable-*)
974 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
975 # Reject names that are not valid shell variable names.
976 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
977 as_fn_error "invalid feature name: $ac_useropt"
978 ac_useropt_orig=$ac_useropt
979 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
980 case $ac_user_opts in
984 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
985 ac_unrecognized_sep=', ';;
987 eval enable_$ac_useropt=\$ac_optarg ;;
989 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
990 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
991 | --exec | --exe | --ex)
992 ac_prev=exec_prefix ;;
993 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
994 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
995 | --exec=* | --exe=* | --ex=*)
996 exec_prefix=$ac_optarg ;;
998 -gas | --gas | --ga | --g)
999 # Obsolete; use --with-gas.
1002 -help | --help | --hel | --he | -h)
1003 ac_init_help=long ;;
1004 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1005 ac_init_help=recursive ;;
1006 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1007 ac_init_help=short ;;
1009 -host | --host | --hos | --ho)
1010 ac_prev=host_alias ;;
1011 -host=* | --host=* | --hos=* | --ho=*)
1012 host_alias=$ac_optarg ;;
1014 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1016 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1018 htmldir=$ac_optarg ;;
1020 -includedir | --includedir | --includedi | --included | --include \
1021 | --includ | --inclu | --incl | --inc)
1022 ac_prev=includedir ;;
1023 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1024 | --includ=* | --inclu=* | --incl=* | --inc=*)
1025 includedir=$ac_optarg ;;
1027 -infodir | --infodir | --infodi | --infod | --info | --inf)
1029 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1030 infodir=$ac_optarg ;;
1032 -libdir | --libdir | --libdi | --libd)
1034 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1035 libdir=$ac_optarg ;;
1037 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1038 | --libexe | --libex | --libe)
1039 ac_prev=libexecdir ;;
1040 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1041 | --libexe=* | --libex=* | --libe=*)
1042 libexecdir=$ac_optarg ;;
1044 -localedir | --localedir | --localedi | --localed | --locale)
1045 ac_prev=localedir ;;
1046 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1047 localedir=$ac_optarg ;;
1049 -localstatedir | --localstatedir | --localstatedi | --localstated \
1050 | --localstate | --localstat | --localsta | --localst | --locals)
1051 ac_prev=localstatedir ;;
1052 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1053 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1054 localstatedir=$ac_optarg ;;
1056 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1058 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1059 mandir=$ac_optarg ;;
1061 -nfp | --nfp | --nf)
1062 # Obsolete; use --without-fp.
1065 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1066 | --no-cr | --no-c | -n)
1069 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1070 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1073 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1074 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1075 | --oldin | --oldi | --old | --ol | --o)
1076 ac_prev=oldincludedir ;;
1077 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1078 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1079 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1080 oldincludedir=$ac_optarg ;;
1082 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1084 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1085 prefix=$ac_optarg ;;
1087 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1088 | --program-pre | --program-pr | --program-p)
1089 ac_prev=program_prefix ;;
1090 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1091 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1092 program_prefix=$ac_optarg ;;
1094 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1095 | --program-suf | --program-su | --program-s)
1096 ac_prev=program_suffix ;;
1097 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1098 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1099 program_suffix=$ac_optarg ;;
1101 -program-transform-name | --program-transform-name \
1102 | --program-transform-nam | --program-transform-na \
1103 | --program-transform-n | --program-transform- \
1104 | --program-transform | --program-transfor \
1105 | --program-transfo | --program-transf \
1106 | --program-trans | --program-tran \
1107 | --progr-tra | --program-tr | --program-t)
1108 ac_prev=program_transform_name ;;
1109 -program-transform-name=* | --program-transform-name=* \
1110 | --program-transform-nam=* | --program-transform-na=* \
1111 | --program-transform-n=* | --program-transform-=* \
1112 | --program-transform=* | --program-transfor=* \
1113 | --program-transfo=* | --program-transf=* \
1114 | --program-trans=* | --program-tran=* \
1115 | --progr-tra=* | --program-tr=* | --program-t=*)
1116 program_transform_name=$ac_optarg ;;
1118 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1120 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1121 pdfdir=$ac_optarg ;;
1123 -psdir | --psdir | --psdi | --psd | --ps)
1125 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1128 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1129 | -silent | --silent | --silen | --sile | --sil)
1132 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1134 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1136 sbindir=$ac_optarg ;;
1138 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1139 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1140 | --sharedst | --shareds | --shared | --share | --shar \
1142 ac_prev=sharedstatedir ;;
1143 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1144 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1145 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1147 sharedstatedir=$ac_optarg ;;
1149 -site | --site | --sit)
1151 -site=* | --site=* | --sit=*)
1154 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1156 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1157 srcdir=$ac_optarg ;;
1159 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1160 | --syscon | --sysco | --sysc | --sys | --sy)
1161 ac_prev=sysconfdir ;;
1162 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1163 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1164 sysconfdir=$ac_optarg ;;
1166 -target | --target | --targe | --targ | --tar | --ta | --t)
1167 ac_prev=target_alias ;;
1168 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1169 target_alias=$ac_optarg ;;
1171 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1174 -version | --version | --versio | --versi | --vers | -V)
1175 ac_init_version=: ;;
1178 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1179 # Reject names that are not valid shell variable names.
1180 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1181 as_fn_error "invalid package name: $ac_useropt"
1182 ac_useropt_orig=$ac_useropt
1183 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1184 case $ac_user_opts in
1188 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1189 ac_unrecognized_sep=', ';;
1191 eval with_$ac_useropt=\$ac_optarg ;;
1193 -without-* | --without-*)
1194 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1195 # Reject names that are not valid shell variable names.
1196 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1197 as_fn_error "invalid package name: $ac_useropt"
1198 ac_useropt_orig=$ac_useropt
1199 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1200 case $ac_user_opts in
1204 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1205 ac_unrecognized_sep=', ';;
1207 eval with_$ac_useropt=no ;;
1210 # Obsolete; use --with-x.
1213 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1214 | --x-incl | --x-inc | --x-in | --x-i)
1215 ac_prev=x_includes ;;
1216 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1217 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1218 x_includes=$ac_optarg ;;
1220 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1221 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1222 ac_prev=x_libraries ;;
1223 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1224 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1225 x_libraries=$ac_optarg ;;
1227 -*) as_fn_error "unrecognized option: \`$ac_option'
1228 Try \`$0 --help' for more information."
1232 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1233 # Reject names that are not valid shell variable names.
1234 case $ac_envvar in #(
1235 '' | [0-9]* | *[!_$as_cr_alnum]* )
1236 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1238 eval $ac_envvar=\$ac_optarg
1239 export $ac_envvar ;;
1242 # FIXME: should be removed in autoconf 3.0.
1243 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1244 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1245 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1246 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1252 if test -n "$ac_prev"; then
1253 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1254 as_fn_error "missing argument to $ac_option"
1257 if test -n "$ac_unrecognized_opts"; then
1258 case $enable_option_checking in
1260 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1261 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1265 # Check all directory arguments for consistency.
1266 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1267 datadir sysconfdir sharedstatedir localstatedir includedir \
1268 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1269 libdir localedir mandir
1271 eval ac_val=\$$ac_var
1272 # Remove trailing slashes.
1275 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1276 eval $ac_var=\$ac_val;;
1278 # Be sure to have absolute directory names.
1280 [\\/$]* | ?:[\\/]* ) continue;;
1281 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1283 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1286 # There might be people who depend on the old broken behavior: `$host'
1287 # used to hold the argument of --host etc.
1288 # FIXME: To remove some day.
1291 target=$target_alias
1293 # FIXME: To remove some day.
1294 if test "x$host_alias" != x; then
1295 if test "x$build_alias" = x; then
1296 cross_compiling=maybe
1297 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1298 If a cross compiler is detected then cross compile mode will be used." >&2
1299 elif test "x$build_alias" != "x$host_alias"; then
1305 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1307 test "$silent" = yes && exec 6>/dev/null
1310 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1311 ac_ls_di=`ls -di .` &&
1312 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1313 as_fn_error "working directory cannot be determined"
1314 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1315 as_fn_error "pwd does not report name of working directory"
1318 # Find the source files, if location was not specified.
1319 if test -z "$srcdir"; then
1320 ac_srcdir_defaulted=yes
1321 # Try the directory containing this script, then the parent directory.
1322 ac_confdir=`$as_dirname -- "$as_myself" ||
1323 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1324 X"$as_myself" : 'X\(//\)[^/]' \| \
1325 X"$as_myself" : 'X\(//\)$' \| \
1326 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1327 $as_echo X"$as_myself" |
1328 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1346 if test ! -r "$srcdir/$ac_unique_file"; then
1350 ac_srcdir_defaulted=no
1352 if test ! -r "$srcdir/$ac_unique_file"; then
1353 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1354 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1356 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1358 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1360 # When building in place, set srcdir=.
1361 if test "$ac_abs_confdir" = "$ac_pwd"; then
1364 # Remove unnecessary trailing slashes from srcdir.
1365 # Double slashes in file names in object file debugging info
1366 # mess up M-x gdb in Emacs.
1368 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1370 for ac_var in $ac_precious_vars; do
1371 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1372 eval ac_env_${ac_var}_value=\$${ac_var}
1373 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1374 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1378 # Report the --help message.
1380 if test "$ac_init_help" = "long"; then
1381 # Omit some internal or obsolete options to make the list less imposing.
1382 # This message is too long to be a string in the A/UX 3.1 sh.
1384 \`configure' configures this package to adapt to many kinds of systems.
1386 Usage: $0 [OPTION]... [VAR=VALUE]...
1388 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1389 VAR=VALUE. See below for descriptions of some of the useful variables.
1391 Defaults for the options are specified in brackets.
1394 -h, --help display this help and exit
1395 --help=short display options specific to this package
1396 --help=recursive display the short help of all the included packages
1397 -V, --version display version information and exit
1398 -q, --quiet, --silent do not print \`checking...' messages
1399 --cache-file=FILE cache test results in FILE [disabled]
1400 -C, --config-cache alias for \`--cache-file=config.cache'
1401 -n, --no-create do not create output files
1402 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1404 Installation directories:
1405 --prefix=PREFIX install architecture-independent files in PREFIX
1406 [$ac_default_prefix]
1407 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1410 By default, \`make install' will install all the files in
1411 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1412 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1413 for instance \`--prefix=\$HOME'.
1415 For better control, use the options below.
1417 Fine tuning of the installation directories:
1418 --bindir=DIR user executables [EPREFIX/bin]
1419 --sbindir=DIR system admin executables [EPREFIX/sbin]
1420 --libexecdir=DIR program executables [EPREFIX/libexec]
1421 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1422 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1423 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1424 --libdir=DIR object code libraries [EPREFIX/lib]
1425 --includedir=DIR C header files [PREFIX/include]
1426 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1427 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1428 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1429 --infodir=DIR info documentation [DATAROOTDIR/info]
1430 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1431 --mandir=DIR man documentation [DATAROOTDIR/man]
1432 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1433 --htmldir=DIR html documentation [DOCDIR]
1434 --dvidir=DIR dvi documentation [DOCDIR]
1435 --pdfdir=DIR pdf documentation [DOCDIR]
1436 --psdir=DIR ps documentation [DOCDIR]
1442 --build=BUILD configure for building on BUILD [guessed]
1443 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1447 if test -n "$ac_init_help"; then
1452 --disable-option-checking ignore unrecognized --enable/--with options
1453 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1454 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1455 --enable-maintainer-mode enable makefile rules useful for maintainers
1456 --enable-symlink-install use symlinks when installing instead of hard links
1457 --enable-relative-symlinks use relative symlinks when installing
1459 --enable-symlink-build use symlinks while building instead of hard links
1460 --enable-verbose-makecmds enable verbose make command output
1461 --enable-compression enable EXPERIMENTAL compression support
1462 --enable-htree enable EXPERIMENTAL htree directory support
1463 --enable-elf-shlibs select ELF shared libraries
1464 --enable-bsd-shlibs select BSD shared libraries
1465 --enable-profile build profiling libraries
1466 --enable-gcov build for coverage testing using gcov
1467 --enable-jbd-debug enable journal debugging
1468 --enable-blkid-debug enable blkid debugging
1469 --disable-testio-debug disable the use of the test I/O manager for debugging
1470 --disable-libuuid do not build private uuid library
1471 --disable-libblkid do not build private blkid library
1472 --enable-quota enable quota support
1473 --disable-backtrace disable use backtrace
1474 --disable-debugfs disable support of debugfs program
1475 --disable-imager disable support of e2image program
1476 --disable-resizer disable support of e2resize program
1477 --disable-defrag disable support of e4defrag program
1478 --enable-fsck build fsck wrapper program
1479 --enable-e2initrd-helper build e2initrd-helper program
1480 --disable-tls disable use of thread local support
1481 --disable-uuidd disable building the uuid daemon
1482 --disable-nls do not use Native Language Support
1483 --disable-rpath do not hardcode runtime library paths
1486 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1487 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1488 --with-diet-libc use diet libc
1489 --with-cc no longer supported, use CC= instead
1490 --with-ccopts no longer supported, use CFLAGS= instead
1491 --with-ldopts no longer supported, use LDFLAGS= instead
1492 --with-root-prefix=PREFIX override prefix variable for files to be placed in the root
1493 --with-gnu-ld assume the C compiler uses GNU ld default=no
1494 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1495 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1496 --with-included-gettext use the GNU gettext library included here
1497 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1498 --without-libintl-prefix don't search for libintl in includedir and libdir
1499 --with-multiarch=ARCH specify the multiarch triplet
1501 Some influential environment variables:
1502 CC C compiler command
1503 CFLAGS C compiler flags
1504 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1505 nonstandard directory <lib dir>
1506 LIBS libraries to pass to the linker, e.g. -l<library>
1507 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1508 you have headers in a nonstandard directory <include dir>
1510 PKG_CONFIG path to pkg-config utility
1512 Use these variables to override the choices made by `configure' or to help
1513 it to find libraries and programs with nonstandard names/locations.
1515 Report bugs to the package provider.
1520 if test "$ac_init_help" = "recursive"; then
1521 # If there are subdirs, report their specific --help.
1522 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1523 test -d "$ac_dir" ||
1524 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1529 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1531 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1532 # A ".." for each directory in $ac_dir_suffix.
1533 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1534 case $ac_top_builddir_sub in
1535 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1536 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1539 ac_abs_top_builddir=$ac_pwd
1540 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1541 # for backward compatibility:
1542 ac_top_builddir=$ac_top_build_prefix
1545 .) # We are building in place.
1547 ac_top_srcdir=$ac_top_builddir_sub
1548 ac_abs_top_srcdir=$ac_pwd ;;
1549 [\\/]* | ?:[\\/]* ) # Absolute name.
1550 ac_srcdir=$srcdir$ac_dir_suffix;
1551 ac_top_srcdir=$srcdir
1552 ac_abs_top_srcdir=$srcdir ;;
1554 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1555 ac_top_srcdir=$ac_top_build_prefix$srcdir
1556 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1558 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1560 cd "$ac_dir" || { ac_status=$?; continue; }
1561 # Check for guested configure.
1562 if test -f "$ac_srcdir/configure.gnu"; then
1564 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1565 elif test -f "$ac_srcdir/configure"; then
1567 $SHELL "$ac_srcdir/configure" --help=recursive
1569 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1571 cd "$ac_pwd" || { ac_status=$?; break; }
1575 test -n "$ac_init_help" && exit $ac_status
1576 if $ac_init_version; then
1579 generated by GNU Autoconf 2.65
1581 Copyright (C) 2009 Free Software Foundation, Inc.
1582 This configure script is free software; the Free Software Foundation
1583 gives unlimited permission to copy, distribute and modify it.
1588 ## ------------------------ ##
1589 ## Autoconf initialization. ##
1590 ## ------------------------ ##
1592 # ac_fn_c_try_compile LINENO
1593 # --------------------------
1594 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1595 ac_fn_c_try_compile ()
1597 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1598 rm -f conftest.$ac_objext
1599 if { { ac_try="$ac_compile"
1601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1602 *) ac_try_echo=$ac_try;;
1604 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1605 $as_echo "$ac_try_echo"; } >&5
1606 (eval "$ac_compile") 2>conftest.err
1608 if test -s conftest.err; then
1609 grep -v '^ *+' conftest.err >conftest.er1
1610 cat conftest.er1 >&5
1611 mv -f conftest.er1 conftest.err
1613 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1614 test $ac_status = 0; } && {
1615 test -z "$ac_c_werror_flag" ||
1616 test ! -s conftest.err
1617 } && test -s conftest.$ac_objext; then :
1620 $as_echo "$as_me: failed program was:" >&5
1621 sed 's/^/| /' conftest.$ac_ext >&5
1625 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1626 as_fn_set_status $ac_retval
1628 } # ac_fn_c_try_compile
1630 # ac_fn_c_try_link LINENO
1631 # -----------------------
1632 # Try to link conftest.$ac_ext, and return whether this succeeded.
1635 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1636 rm -f conftest.$ac_objext conftest$ac_exeext
1637 if { { ac_try="$ac_link"
1639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1640 *) ac_try_echo=$ac_try;;
1642 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1643 $as_echo "$ac_try_echo"; } >&5
1644 (eval "$ac_link") 2>conftest.err
1646 if test -s conftest.err; then
1647 grep -v '^ *+' conftest.err >conftest.er1
1648 cat conftest.er1 >&5
1649 mv -f conftest.er1 conftest.err
1651 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1652 test $ac_status = 0; } && {
1653 test -z "$ac_c_werror_flag" ||
1654 test ! -s conftest.err
1655 } && test -s conftest$ac_exeext && {
1656 test "$cross_compiling" = yes ||
1657 $as_test_x conftest$ac_exeext
1661 $as_echo "$as_me: failed program was:" >&5
1662 sed 's/^/| /' conftest.$ac_ext >&5
1666 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1667 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1668 # interfere with the next link command; also delete a directory that is
1669 # left behind by Apple's compiler. We do this before executing the actions.
1670 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1671 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1672 as_fn_set_status $ac_retval
1674 } # ac_fn_c_try_link
1676 # ac_fn_c_try_cpp LINENO
1677 # ----------------------
1678 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1681 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1682 if { { ac_try="$ac_cpp conftest.$ac_ext"
1684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1685 *) ac_try_echo=$ac_try;;
1687 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1688 $as_echo "$ac_try_echo"; } >&5
1689 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1691 if test -s conftest.err; then
1692 grep -v '^ *+' conftest.err >conftest.er1
1693 cat conftest.er1 >&5
1694 mv -f conftest.er1 conftest.err
1696 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1697 test $ac_status = 0; } >/dev/null && {
1698 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1699 test ! -s conftest.err
1703 $as_echo "$as_me: failed program was:" >&5
1704 sed 's/^/| /' conftest.$ac_ext >&5
1708 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1709 as_fn_set_status $ac_retval
1713 # ac_fn_c_try_run LINENO
1714 # ----------------------
1715 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1716 # that executables *can* be run.
1719 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1720 if { { ac_try="$ac_link"
1722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1723 *) ac_try_echo=$ac_try;;
1725 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1726 $as_echo "$ac_try_echo"; } >&5
1727 (eval "$ac_link") 2>&5
1729 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1730 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1731 { { case "(($ac_try" in
1732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1733 *) ac_try_echo=$ac_try;;
1735 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1736 $as_echo "$ac_try_echo"; } >&5
1737 (eval "$ac_try") 2>&5
1739 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1740 test $ac_status = 0; }; }; then :
1743 $as_echo "$as_me: program exited with status $ac_status" >&5
1744 $as_echo "$as_me: failed program was:" >&5
1745 sed 's/^/| /' conftest.$ac_ext >&5
1747 ac_retval=$ac_status
1749 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1750 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1751 as_fn_set_status $ac_retval
1755 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1756 # -------------------------------------------
1757 # Tests whether TYPE exists after having included INCLUDES, setting cache
1758 # variable VAR accordingly.
1759 ac_fn_c_check_type ()
1761 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1763 $as_echo_n "checking for $2... " >&6; }
1764 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1765 $as_echo_n "(cached) " >&6
1768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1769 /* end confdefs.h. */
1780 if ac_fn_c_try_compile "$LINENO"; then :
1781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1782 /* end confdefs.h. */
1793 if ac_fn_c_try_compile "$LINENO"; then :
1798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1804 $as_echo "$ac_res" >&6; }
1805 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1807 } # ac_fn_c_check_type
1809 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1810 # -------------------------------------------------------
1811 # Tests whether HEADER exists and can be compiled using the include files in
1812 # INCLUDES, setting the cache variable VAR accordingly.
1813 ac_fn_c_check_header_compile ()
1815 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1817 $as_echo_n "checking for $2... " >&6; }
1818 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1819 $as_echo_n "(cached) " >&6
1821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1822 /* end confdefs.h. */
1826 if ac_fn_c_try_compile "$LINENO"; then :
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; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1838 } # ac_fn_c_check_header_compile
1840 # ac_fn_c_check_func LINENO FUNC VAR
1841 # ----------------------------------
1842 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1843 ac_fn_c_check_func ()
1845 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1847 $as_echo_n "checking for $2... " >&6; }
1848 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1849 $as_echo_n "(cached) " >&6
1851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1852 /* end confdefs.h. */
1853 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1854 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1855 #define $2 innocuous_$2
1857 /* System header to define __stub macros and hopefully few prototypes,
1858 which can conflict with char $2 (); below.
1859 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1860 <limits.h> exists even on freestanding compilers. */
1863 # include <limits.h>
1865 # include <assert.h>
1870 /* Override any GCC internal prototype to avoid an error.
1871 Use char because int might match the return type of a GCC
1872 builtin and then its argument prototype would still apply. */
1877 /* The GNU C library defines this for functions which it implements
1878 to always fail with ENOSYS. Some functions are actually named
1879 something starting with __ and the normal name is an alias. */
1880 #if defined __stub_$2 || defined __stub___$2
1892 if ac_fn_c_try_link "$LINENO"; then :
1897 rm -f core conftest.err conftest.$ac_objext \
1898 conftest$ac_exeext conftest.$ac_ext
1901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1902 $as_echo "$ac_res" >&6; }
1903 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1905 } # ac_fn_c_check_func
1907 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1908 # -------------------------------------------------------
1909 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1910 # the include files in INCLUDES and setting the cache variable VAR
1912 ac_fn_c_check_header_mongrel ()
1914 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1915 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1917 $as_echo_n "checking for $2... " >&6; }
1918 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1919 $as_echo_n "(cached) " >&6
1922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1923 $as_echo "$ac_res" >&6; }
1925 # Is the header compilable?
1926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1927 $as_echo_n "checking $2 usability... " >&6; }
1928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1929 /* end confdefs.h. */
1933 if ac_fn_c_try_compile "$LINENO"; then :
1934 ac_header_compiler=yes
1936 ac_header_compiler=no
1938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1940 $as_echo "$ac_header_compiler" >&6; }
1942 # Is the header present?
1943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1944 $as_echo_n "checking $2 presence... " >&6; }
1945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1946 /* end confdefs.h. */
1949 if ac_fn_c_try_cpp "$LINENO"; then :
1950 ac_header_preproc=yes
1952 ac_header_preproc=no
1954 rm -f conftest.err conftest.$ac_ext
1955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1956 $as_echo "$ac_header_preproc" >&6; }
1958 # So? What about this header?
1959 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1961 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1962 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1963 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1964 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1968 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1969 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1970 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1971 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1972 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1973 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1974 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1975 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1976 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1980 $as_echo_n "checking for $2... " >&6; }
1981 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1982 $as_echo_n "(cached) " >&6
1984 eval "$3=\$ac_header_compiler"
1987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1988 $as_echo "$ac_res" >&6; }
1990 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1992 } # ac_fn_c_check_header_mongrel
1994 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1995 # --------------------------------------------
1996 # Tries to find the compile-time value of EXPR in a program that includes
1997 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1999 ac_fn_c_compute_int ()
2001 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2002 if test "$cross_compiling" = yes; then
2003 # Depending upon the size, compute the lo and hi bounds.
2004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2005 /* end confdefs.h. */
2010 static int test_array [1 - 2 * !(($2) >= 0)];
2017 if ac_fn_c_try_compile "$LINENO"; then :
2020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2021 /* end confdefs.h. */
2026 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2033 if ac_fn_c_try_compile "$LINENO"; then :
2034 ac_hi=$ac_mid; break
2036 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2037 if test $ac_lo -le $ac_mid; then
2041 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2047 /* end confdefs.h. */
2052 static int test_array [1 - 2 * !(($2) < 0)];
2059 if ac_fn_c_try_compile "$LINENO"; then :
2062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2063 /* end confdefs.h. */
2068 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2075 if ac_fn_c_try_compile "$LINENO"; then :
2076 ac_lo=$ac_mid; break
2078 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2079 if test $ac_mid -le $ac_hi; then
2083 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2093 # Binary search between lo and hi bounds.
2094 while test "x$ac_lo" != "x$ac_hi"; do
2095 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2097 /* end confdefs.h. */
2102 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2109 if ac_fn_c_try_compile "$LINENO"; then :
2112 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2117 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2122 /* end confdefs.h. */
2124 static long int longval () { return $2; }
2125 static unsigned long int ulongval () { return $2; }
2132 FILE *f = fopen ("conftest.val", "w");
2137 long int i = longval ();
2140 fprintf (f, "%ld", i);
2144 unsigned long int i = ulongval ();
2147 fprintf (f, "%lu", i);
2149 /* Do not output a trailing newline, as this causes \r\n confusion
2150 on some platforms. */
2151 return ferror (f) || fclose (f) != 0;
2157 if ac_fn_c_try_run "$LINENO"; then :
2158 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2162 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2163 conftest.$ac_objext conftest.beam conftest.$ac_ext
2167 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2168 as_fn_set_status $ac_retval
2170 } # ac_fn_c_compute_int
2172 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2173 # ----------------------------------------------------
2174 # Tries to find if the field MEMBER exists in type AGGR, after including
2175 # INCLUDES, setting cache variable VAR accordingly.
2176 ac_fn_c_check_member ()
2178 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2180 $as_echo_n "checking for $2.$3... " >&6; }
2181 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2182 $as_echo_n "(cached) " >&6
2184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2185 /* end confdefs.h. */
2197 if ac_fn_c_try_compile "$LINENO"; then :
2200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2201 /* end confdefs.h. */
2207 if (sizeof ac_aggr.$3)
2213 if ac_fn_c_try_compile "$LINENO"; then :
2218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2224 $as_echo "$ac_res" >&6; }
2225 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2227 } # ac_fn_c_check_member
2229 # ac_fn_c_check_decl LINENO SYMBOL VAR
2230 # ------------------------------------
2231 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2232 ac_fn_c_check_decl ()
2234 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2236 $as_echo_n "checking whether $2 is declared... " >&6; }
2237 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2238 $as_echo_n "(cached) " >&6
2240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2241 /* end confdefs.h. */
2254 if ac_fn_c_try_compile "$LINENO"; then :
2259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2263 $as_echo "$ac_res" >&6; }
2264 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2266 } # ac_fn_c_check_decl
2267 cat >config.log <<_ACEOF
2268 This file contains any messages produced by compilers while
2269 running configure, to aid debugging if configure makes a mistake.
2271 It was created by $as_me, which was
2272 generated by GNU Autoconf 2.65. Invocation command line was
2284 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2285 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2286 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2287 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2288 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2290 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2291 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2293 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2294 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2295 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2296 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2297 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2298 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2299 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2307 test -z "$as_dir" && as_dir=.
2308 $as_echo "PATH: $as_dir"
2324 # Keep a trace of the command line.
2325 # Strip out --no-create and --no-recursion so they do not pile up.
2326 # Strip out --silent because we don't want to record it for future runs.
2327 # Also quote any args containing shell meta-characters.
2328 # Make two passes to allow for proper duplicate-argument suppression.
2332 ac_must_keep_next=false
2338 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2339 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2340 | -silent | --silent | --silen | --sile | --sil)
2343 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2346 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2348 as_fn_append ac_configure_args1 " '$ac_arg'"
2349 if test $ac_must_keep_next = true; then
2350 ac_must_keep_next=false # Got value, back to normal.
2353 *=* | --config-cache | -C | -disable-* | --disable-* \
2354 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2355 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2356 | -with-* | --with-* | -without-* | --without-* | --x)
2357 case "$ac_configure_args0 " in
2358 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2361 -* ) ac_must_keep_next=true ;;
2364 as_fn_append ac_configure_args " '$ac_arg'"
2369 { ac_configure_args0=; unset ac_configure_args0;}
2370 { ac_configure_args1=; unset ac_configure_args1;}
2372 # When interrupted or exit'd, cleanup temporary files, and complete
2373 # config.log. We remove comments because anyway the quotes in there
2374 # would cause problems or look ugly.
2375 # WARNING: Use '\'' to represent an apostrophe within the trap.
2376 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2377 trap 'exit_status=$?
2378 # Save into config.log some information that might help in debugging.
2383 ## ---------------- ##
2384 ## Cache variables. ##
2385 ## ---------------- ##
2388 # The following way of writing the cache mishandles newlines in values,
2390 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2391 eval ac_val=\$$ac_var
2395 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2396 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2399 _ | IFS | as_nl) ;; #(
2400 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2401 *) { eval $ac_var=; unset $ac_var;} ;;
2406 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2407 *${as_nl}ac_space=\ *)
2409 "s/'\''/'\''\\\\'\'''\''/g;
2410 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2413 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2421 ## ----------------- ##
2422 ## Output variables. ##
2423 ## ----------------- ##
2426 for ac_var in $ac_subst_vars
2428 eval ac_val=\$$ac_var
2430 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2432 $as_echo "$ac_var='\''$ac_val'\''"
2436 if test -n "$ac_subst_files"; then
2438 ## ------------------- ##
2439 ## File substitutions. ##
2440 ## ------------------- ##
2443 for ac_var in $ac_subst_files
2445 eval ac_val=\$$ac_var
2447 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2449 $as_echo "$ac_var='\''$ac_val'\''"
2454 if test -s confdefs.h; then
2464 test "$ac_signal" != 0 &&
2465 $as_echo "$as_me: caught signal $ac_signal"
2466 $as_echo "$as_me: exit $exit_status"
2468 rm -f core *.core core.conftest.* &&
2469 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2472 for ac_signal in 1 2 13 15; do
2473 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2477 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2478 rm -f -r conftest* confdefs.h
2480 $as_echo "/* confdefs.h */" > confdefs.h
2482 # Predefined preprocessor variables.
2484 cat >>confdefs.h <<_ACEOF
2485 #define PACKAGE_NAME "$PACKAGE_NAME"
2488 cat >>confdefs.h <<_ACEOF
2489 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2492 cat >>confdefs.h <<_ACEOF
2493 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2496 cat >>confdefs.h <<_ACEOF
2497 #define PACKAGE_STRING "$PACKAGE_STRING"
2500 cat >>confdefs.h <<_ACEOF
2501 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2504 cat >>confdefs.h <<_ACEOF
2505 #define PACKAGE_URL "$PACKAGE_URL"
2509 # Let the site file select an alternate cache file if it wants to.
2510 # Prefer an explicitly selected file to automatically selected ones.
2513 if test -n "$CONFIG_SITE"; then
2514 ac_site_file1=$CONFIG_SITE
2515 elif test "x$prefix" != xNONE; then
2516 ac_site_file1=$prefix/share/config.site
2517 ac_site_file2=$prefix/etc/config.site
2519 ac_site_file1=$ac_default_prefix/share/config.site
2520 ac_site_file2=$ac_default_prefix/etc/config.site
2522 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2524 test "x$ac_site_file" = xNONE && continue
2525 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2526 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2527 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2528 sed 's/^/| /' "$ac_site_file" >&5
2533 if test -r "$cache_file"; then
2534 # Some versions of bash will fail to source /dev/null (special files
2535 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2536 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2537 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2538 $as_echo "$as_me: loading cache $cache_file" >&6;}
2540 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2541 *) . "./$cache_file";;
2545 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2546 $as_echo "$as_me: creating cache $cache_file" >&6;}
2550 as_fn_append ac_header_list " stdlib.h"
2551 as_fn_append ac_header_list " unistd.h"
2552 as_fn_append ac_header_list " sys/param.h"
2553 # Check that the precious variables saved in the cache have kept the same
2555 ac_cache_corrupted=false
2556 for ac_var in $ac_precious_vars; do
2557 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2558 eval ac_new_set=\$ac_env_${ac_var}_set
2559 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2560 eval ac_new_val=\$ac_env_${ac_var}_value
2561 case $ac_old_set,$ac_new_set in
2563 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2564 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2565 ac_cache_corrupted=: ;;
2567 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2568 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2569 ac_cache_corrupted=: ;;
2572 if test "x$ac_old_val" != "x$ac_new_val"; then
2573 # differences in whitespace do not lead to failure.
2574 ac_old_val_w=`echo x $ac_old_val`
2575 ac_new_val_w=`echo x $ac_new_val`
2576 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2577 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2578 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2579 ac_cache_corrupted=:
2581 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2582 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2583 eval $ac_var=\$ac_old_val
2585 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2586 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2587 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2588 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2591 # Pass precious variables to config.status.
2592 if test "$ac_new_set" = set; then
2594 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2595 *) ac_arg=$ac_var=$ac_new_val ;;
2597 case " $ac_configure_args " in
2598 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2599 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2603 if $ac_cache_corrupted; then
2604 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2605 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2606 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2607 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2608 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2610 ## -------------------- ##
2611 ## Main body of script. ##
2612 ## -------------------- ##
2615 ac_cpp='$CPP $CPPFLAGS'
2616 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2617 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2618 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2623 for ac_dir in config "$srcdir"/config; do
2624 for ac_t in install-sh install.sh shtool; do
2625 if test -f "$ac_dir/$ac_t"; then
2627 ac_install_sh="$ac_aux_dir/$ac_t -c"
2632 if test -z "$ac_aux_dir"; then
2633 as_fn_error "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2636 # These three variables are undocumented and unsupported,
2637 # and are intended to be withdrawn in a future Autoconf release.
2638 # They can cause serious problems if a builder's source tree is in a directory
2639 # whose full name contains unusual characters.
2640 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2641 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2642 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2645 ac_config_headers="$ac_config_headers lib/config.h"
2651 E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \
2652 | awk '{print $3}' | tr \" " " | awk '{print $1}'`
2653 DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
2655 E2FSPROGS_DAY=`echo $DATE | awk -F- '{print $1}'`
2656 MONTH=`echo $DATE | awk -F- '{print $2}'`
2657 YEAR=`echo $DATE | awk -F- '{print $3}'`
2659 if expr $YEAR ">" 1900 > /dev/null ; then
2660 E2FSPROGS_YEAR=$YEAR
2661 elif expr $YEAR ">" 90 >/dev/null ; then
2662 E2FSPROGS_YEAR=19$YEAR
2664 E2FSPROGS_YEAR=20$YEAR
2668 Jan) MONTH_NUM=01; E2FSPROGS_MONTH="January" ;;
2669 Feb) MONTH_NUM=02; E2FSPROGS_MONTH="February" ;;
2670 Mar) MONTH_NUM=03; E2FSPROGS_MONTH="March" ;;
2671 Apr) MONTH_NUM=04; E2FSPROGS_MONTH="April" ;;
2672 May) MONTH_NUM=05; E2FSPROGS_MONTH="May" ;;
2673 Jun) MONTH_NUM=06; E2FSPROGS_MONTH="June" ;;
2674 Jul) MONTH_NUM=07; E2FSPROGS_MONTH="July" ;;
2675 Aug) MONTH_NUM=08; E2FSPROGS_MONTH="August" ;;
2676 Sep) MONTH_NUM=09; E2FSPROGS_MONTH="September" ;;
2677 Oct) MONTH_NUM=10; E2FSPROGS_MONTH="October" ;;
2678 Nov) MONTH_NUM=11; E2FSPROGS_MONTH="November" ;;
2679 Dec) MONTH_NUM=12; E2FSPROGS_MONTH="December" ;;
2680 *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unknown month $MONTH??" >&5
2681 $as_echo "$as_me: WARNING: Unknown month $MONTH??" >&2;} ;;
2684 base_ver=`echo $E2FSPROGS_VERSION | \
2685 sed -e 's/-WIP//' -e 's/pre-//' -e 's/-PLUS//'`
2687 date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY}
2689 case $E2FSPROGS_VERSION in
2691 E2FSPROGS_PKGVER="$base_ver~WIP-$E2FSPROGS_YEAR-$MONTH_NUM-$E2FSPROGS_DAY"
2694 E2FSPROGS_PKGVER="$base_ver"
2698 unset DATE MONTH YEAR base_ver pre_vers date_spec
2699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&5
2700 $as_echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&6; }
2701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&5
2702 $as_echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&6; }
2710 # Check whether --with-diet-libc was given.
2711 if test "${with_diet_libc+set}" = set; then :
2712 withval=$with_diet_libc; CC="diet cc -nostdinc"
2718 LIBS="$LIBS -lcompat"
2720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: CC=$CC" >&5
2721 $as_echo "CC=$CC" >&6; }
2723 # Make sure we can run config.sub.
2724 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2725 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2728 $as_echo_n "checking build system type... " >&6; }
2729 if test "${ac_cv_build+set}" = set; then :
2730 $as_echo_n "(cached) " >&6
2732 ac_build_alias=$build_alias
2733 test "x$ac_build_alias" = x &&
2734 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2735 test "x$ac_build_alias" = x &&
2736 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2737 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2738 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2742 $as_echo "$ac_cv_build" >&6; }
2743 case $ac_cv_build in
2745 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2748 ac_save_IFS=$IFS; IFS='-'
2754 # Remember, the first character of IFS is used to create $*,
2755 # except with old shells:
2758 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2762 $as_echo_n "checking host system type... " >&6; }
2763 if test "${ac_cv_host+set}" = set; then :
2764 $as_echo_n "(cached) " >&6
2766 if test "x$host_alias" = x; then
2767 ac_cv_host=$ac_cv_build
2769 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2770 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2775 $as_echo "$ac_cv_host" >&6; }
2778 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2781 ac_save_IFS=$IFS; IFS='-'
2787 # Remember, the first character of IFS is used to create $*,
2788 # except with old shells:
2791 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2796 ac_cpp='$CPP $CPPFLAGS'
2797 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2798 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2799 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2800 if test -n "$ac_tool_prefix"; then
2801 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2802 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2804 $as_echo_n "checking for $ac_word... " >&6; }
2805 if test "${ac_cv_prog_CC+set}" = set; then :
2806 $as_echo_n "(cached) " >&6
2808 if test -n "$CC"; then
2809 ac_cv_prog_CC="$CC" # Let the user override the test.
2811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2815 test -z "$as_dir" && as_dir=.
2816 for ac_exec_ext in '' $ac_executable_extensions; do
2817 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2818 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2819 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2829 if test -n "$CC"; then
2830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2831 $as_echo "$CC" >&6; }
2833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2834 $as_echo "no" >&6; }
2839 if test -z "$ac_cv_prog_CC"; then
2841 # Extract the first word of "gcc", so it can be a program name with args.
2842 set dummy gcc; ac_word=$2
2843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2844 $as_echo_n "checking for $ac_word... " >&6; }
2845 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2846 $as_echo_n "(cached) " >&6
2848 if test -n "$ac_ct_CC"; then
2849 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2855 test -z "$as_dir" && as_dir=.
2856 for ac_exec_ext in '' $ac_executable_extensions; do
2857 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2858 ac_cv_prog_ac_ct_CC="gcc"
2859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2868 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2869 if test -n "$ac_ct_CC"; then
2870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2871 $as_echo "$ac_ct_CC" >&6; }
2873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2874 $as_echo "no" >&6; }
2877 if test "x$ac_ct_CC" = x; then
2880 case $cross_compiling:$ac_tool_warned in
2882 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2883 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2884 ac_tool_warned=yes ;;
2892 if test -z "$CC"; then
2893 if test -n "$ac_tool_prefix"; then
2894 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2895 set dummy ${ac_tool_prefix}cc; ac_word=$2
2896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2897 $as_echo_n "checking for $ac_word... " >&6; }
2898 if test "${ac_cv_prog_CC+set}" = set; then :
2899 $as_echo_n "(cached) " >&6
2901 if test -n "$CC"; then
2902 ac_cv_prog_CC="$CC" # Let the user override the test.
2904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2908 test -z "$as_dir" && as_dir=.
2909 for ac_exec_ext in '' $ac_executable_extensions; do
2910 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2911 ac_cv_prog_CC="${ac_tool_prefix}cc"
2912 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2922 if test -n "$CC"; then
2923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2924 $as_echo "$CC" >&6; }
2926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2927 $as_echo "no" >&6; }
2933 if test -z "$CC"; then
2934 # Extract the first word of "cc", so it can be a program name with args.
2935 set dummy cc; ac_word=$2
2936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2937 $as_echo_n "checking for $ac_word... " >&6; }
2938 if test "${ac_cv_prog_CC+set}" = set; then :
2939 $as_echo_n "(cached) " >&6
2941 if test -n "$CC"; then
2942 ac_cv_prog_CC="$CC" # Let the user override the test.
2945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2949 test -z "$as_dir" && as_dir=.
2950 for ac_exec_ext in '' $ac_executable_extensions; do
2951 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2952 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2953 ac_prog_rejected=yes
2957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2964 if test $ac_prog_rejected = yes; then
2965 # We found a bogon in the path, so make sure we never use it.
2966 set dummy $ac_cv_prog_CC
2968 if test $# != 0; then
2969 # We chose a different compiler from the bogus one.
2970 # However, it has the same basename, so the bogon will be chosen
2971 # first if we set CC to just the basename; use the full file name.
2973 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2979 if test -n "$CC"; then
2980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2981 $as_echo "$CC" >&6; }
2983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2984 $as_echo "no" >&6; }
2989 if test -z "$CC"; then
2990 if test -n "$ac_tool_prefix"; then
2991 for ac_prog in cl.exe
2993 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2994 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2996 $as_echo_n "checking for $ac_word... " >&6; }
2997 if test "${ac_cv_prog_CC+set}" = set; then :
2998 $as_echo_n "(cached) " >&6
3000 if test -n "$CC"; then
3001 ac_cv_prog_CC="$CC" # Let the user override the test.
3003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3007 test -z "$as_dir" && as_dir=.
3008 for ac_exec_ext in '' $ac_executable_extensions; do
3009 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3010 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3011 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3021 if test -n "$CC"; then
3022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3023 $as_echo "$CC" >&6; }
3025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3026 $as_echo "no" >&6; }
3030 test -n "$CC" && break
3033 if test -z "$CC"; then
3035 for ac_prog in cl.exe
3037 # Extract the first word of "$ac_prog", so it can be a program name with args.
3038 set dummy $ac_prog; ac_word=$2
3039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3040 $as_echo_n "checking for $ac_word... " >&6; }
3041 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3042 $as_echo_n "(cached) " >&6
3044 if test -n "$ac_ct_CC"; then
3045 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3051 test -z "$as_dir" && as_dir=.
3052 for ac_exec_ext in '' $ac_executable_extensions; do
3053 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3054 ac_cv_prog_ac_ct_CC="$ac_prog"
3055 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3064 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3065 if test -n "$ac_ct_CC"; then
3066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3067 $as_echo "$ac_ct_CC" >&6; }
3069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3070 $as_echo "no" >&6; }
3074 test -n "$ac_ct_CC" && break
3077 if test "x$ac_ct_CC" = x; then
3080 case $cross_compiling:$ac_tool_warned in
3082 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3083 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3084 ac_tool_warned=yes ;;
3093 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3094 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3095 as_fn_error "no acceptable C compiler found in \$PATH
3096 See \`config.log' for more details." "$LINENO" 5; }
3098 # Provide some information about the compiler.
3099 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3102 for ac_option in --version -v -V -qversion; do
3103 { { ac_try="$ac_compiler $ac_option >&5"
3105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3106 *) ac_try_echo=$ac_try;;
3108 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3109 $as_echo "$ac_try_echo"; } >&5
3110 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3112 if test -s conftest.err; then
3114 ... rest of stderr output deleted ...
3115 10q' conftest.err >conftest.er1
3116 cat conftest.er1 >&5
3118 rm -f conftest.er1 conftest.err
3119 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3120 test $ac_status = 0; }
3123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3124 /* end confdefs.h. */
3134 ac_clean_files_save=$ac_clean_files
3135 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3136 # Try to create an executable without -o first, disregard a.out.
3137 # It will help us diagnose broken compilers, and finding out an intuition
3139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3140 $as_echo_n "checking whether the C compiler works... " >&6; }
3141 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3143 # The possible output files:
3144 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3147 for ac_file in $ac_files
3150 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3151 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3156 if { { ac_try="$ac_link_default"
3158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3159 *) ac_try_echo=$ac_try;;
3161 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3162 $as_echo "$ac_try_echo"; } >&5
3163 (eval "$ac_link_default") 2>&5
3165 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3166 test $ac_status = 0; }; then :
3167 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3168 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3169 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3170 # so that the user can short-circuit this test for compilers unknown to
3172 for ac_file in $ac_files ''
3174 test -f "$ac_file" || continue
3176 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3179 # We found the default executable, but exeext='' is most
3183 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3185 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3187 # We set ac_cv_exeext here because the later test for it is not
3188 # safe: cross compilers may not add the suffix if given an `-o'
3189 # argument, so we may need to know it at that point already.
3190 # Even if this section looks crufty: it has the advantage of
3197 test "$ac_cv_exeext" = no && ac_cv_exeext=
3202 if test -z "$ac_file"; then :
3203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3204 $as_echo "no" >&6; }
3205 $as_echo "$as_me: failed program was:" >&5
3206 sed 's/^/| /' conftest.$ac_ext >&5
3208 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3209 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3210 { as_fn_set_status 77
3211 as_fn_error "C compiler cannot create executables
3212 See \`config.log' for more details." "$LINENO" 5; }; }
3214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3215 $as_echo "yes" >&6; }
3217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3218 $as_echo_n "checking for C compiler default output file name... " >&6; }
3219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3220 $as_echo "$ac_file" >&6; }
3221 ac_exeext=$ac_cv_exeext
3223 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3224 ac_clean_files=$ac_clean_files_save
3225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3226 $as_echo_n "checking for suffix of executables... " >&6; }
3227 if { { ac_try="$ac_link"
3229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3230 *) ac_try_echo=$ac_try;;
3232 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3233 $as_echo "$ac_try_echo"; } >&5
3234 (eval "$ac_link") 2>&5
3236 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3237 test $ac_status = 0; }; then :
3238 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3239 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3240 # work properly (i.e., refer to `conftest.exe'), while it won't with
3242 for ac_file in conftest.exe conftest conftest.*; do
3243 test -f "$ac_file" || continue
3245 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3246 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3252 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3253 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3254 as_fn_error "cannot compute suffix of executables: cannot compile and link
3255 See \`config.log' for more details." "$LINENO" 5; }
3257 rm -f conftest conftest$ac_cv_exeext
3258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3259 $as_echo "$ac_cv_exeext" >&6; }
3261 rm -f conftest.$ac_ext
3262 EXEEXT=$ac_cv_exeext
3264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3265 /* end confdefs.h. */
3270 FILE *f = fopen ("conftest.out", "w");
3271 return ferror (f) || fclose (f) != 0;
3277 ac_clean_files="$ac_clean_files conftest.out"
3278 # Check that the compiler produces executables we can run. If not, either
3279 # the compiler is broken, or we cross compile.
3280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3281 $as_echo_n "checking whether we are cross compiling... " >&6; }
3282 if test "$cross_compiling" != yes; then
3283 { { ac_try="$ac_link"
3285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3286 *) ac_try_echo=$ac_try;;
3288 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3289 $as_echo "$ac_try_echo"; } >&5
3290 (eval "$ac_link") 2>&5
3292 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3293 test $ac_status = 0; }
3294 if { ac_try='./conftest$ac_cv_exeext'
3295 { { case "(($ac_try" in
3296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3297 *) ac_try_echo=$ac_try;;
3299 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3300 $as_echo "$ac_try_echo"; } >&5
3301 (eval "$ac_try") 2>&5
3303 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3304 test $ac_status = 0; }; }; then
3307 if test "$cross_compiling" = maybe; then
3310 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3311 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3312 as_fn_error "cannot run C compiled programs.
3313 If you meant to cross compile, use \`--host'.
3314 See \`config.log' for more details." "$LINENO" 5; }
3318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3319 $as_echo "$cross_compiling" >&6; }
3321 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3322 ac_clean_files=$ac_clean_files_save
3323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3324 $as_echo_n "checking for suffix of object files... " >&6; }
3325 if test "${ac_cv_objext+set}" = set; then :
3326 $as_echo_n "(cached) " >&6
3328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3329 /* end confdefs.h. */
3339 rm -f conftest.o conftest.obj
3340 if { { ac_try="$ac_compile"
3342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3343 *) ac_try_echo=$ac_try;;
3345 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3346 $as_echo "$ac_try_echo"; } >&5
3347 (eval "$ac_compile") 2>&5
3349 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3350 test $ac_status = 0; }; then :
3351 for ac_file in conftest.o conftest.obj conftest.*; do
3352 test -f "$ac_file" || continue;
3354 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3355 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3360 $as_echo "$as_me: failed program was:" >&5
3361 sed 's/^/| /' conftest.$ac_ext >&5
3363 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3364 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3365 as_fn_error "cannot compute suffix of object files: cannot compile
3366 See \`config.log' for more details." "$LINENO" 5; }
3368 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3371 $as_echo "$ac_cv_objext" >&6; }
3372 OBJEXT=$ac_cv_objext
3374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3375 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3376 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3377 $as_echo_n "(cached) " >&6
3379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3380 /* end confdefs.h. */
3393 if ac_fn_c_try_compile "$LINENO"; then :
3398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3399 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3403 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3404 if test $ac_compiler_gnu = yes; then
3409 ac_test_CFLAGS=${CFLAGS+set}
3410 ac_save_CFLAGS=$CFLAGS
3411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3412 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3413 if test "${ac_cv_prog_cc_g+set}" = set; then :
3414 $as_echo_n "(cached) " >&6
3416 ac_save_c_werror_flag=$ac_c_werror_flag
3417 ac_c_werror_flag=yes
3420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3421 /* end confdefs.h. */
3431 if ac_fn_c_try_compile "$LINENO"; then :
3435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3436 /* end confdefs.h. */
3446 if ac_fn_c_try_compile "$LINENO"; then :
3449 ac_c_werror_flag=$ac_save_c_werror_flag
3451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3452 /* end confdefs.h. */
3462 if ac_fn_c_try_compile "$LINENO"; then :
3465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3470 ac_c_werror_flag=$ac_save_c_werror_flag
3472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3473 $as_echo "$ac_cv_prog_cc_g" >&6; }
3474 if test "$ac_test_CFLAGS" = set; then
3475 CFLAGS=$ac_save_CFLAGS
3476 elif test $ac_cv_prog_cc_g = yes; then
3477 if test "$GCC" = yes; then
3483 if test "$GCC" = yes; then
3489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3490 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3491 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3492 $as_echo_n "(cached) " >&6
3494 ac_cv_prog_cc_c89=no
3496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3497 /* end confdefs.h. */
3500 #include <sys/types.h>
3501 #include <sys/stat.h>
3502 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3503 struct buf { int x; };
3504 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3505 static char *e (p, i)
3511 static char *f (char * (*g) (char **, int), char **p, ...)
3516 s = g (p, va_arg (v,int));
3521 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3522 function prototypes and stuff, but not '\xHH' hex character constants.
3523 These don't provoke an error unfortunately, instead are silently treated
3524 as 'x'. The following induces an error, until -std is added to get
3525 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3526 array size at least. It's necessary to write '\x00'==0 to get something
3527 that's true only with -std. */
3528 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3530 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3531 inside strings and character constants. */
3533 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3535 int test (int i, double x);
3536 struct s1 {int (*f) (int a);};
3537 struct s2 {int (*f) (double a);};
3538 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3544 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3549 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3550 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3552 CC="$ac_save_CC $ac_arg"
3553 if ac_fn_c_try_compile "$LINENO"; then :
3554 ac_cv_prog_cc_c89=$ac_arg
3556 rm -f core conftest.err conftest.$ac_objext
3557 test "x$ac_cv_prog_cc_c89" != "xno" && break
3559 rm -f conftest.$ac_ext
3564 case "x$ac_cv_prog_cc_c89" in
3566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3567 $as_echo "none needed" >&6; } ;;
3569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3570 $as_echo "unsupported" >&6; } ;;
3572 CC="$CC $ac_cv_prog_cc_c89"
3573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3574 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3576 if test "x$ac_cv_prog_cc_c89" != xno; then :
3581 ac_cpp='$CPP $CPPFLAGS'
3582 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3583 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3584 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
3588 $as_echo_n "checking for dlopen in -ldl... " >&6; }
3589 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
3590 $as_echo_n "(cached) " >&6
3592 ac_check_lib_save_LIBS=$LIBS
3594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3595 /* end confdefs.h. */
3597 /* Override any GCC internal prototype to avoid an error.
3598 Use char because int might match the return type of a GCC
3599 builtin and then its argument prototype would still apply. */
3612 if ac_fn_c_try_link "$LINENO"; then :
3613 ac_cv_lib_dl_dlopen=yes
3615 ac_cv_lib_dl_dlopen=no
3617 rm -f core conftest.err conftest.$ac_objext \
3618 conftest$ac_exeext conftest.$ac_ext
3619 LIBS=$ac_check_lib_save_LIBS
3621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
3622 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
3623 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
3626 $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
3632 # Check whether --with-cc was given.
3633 if test "${with_cc+set}" = set; then :
3634 withval=$with_cc; as_fn_error "--with-cc no longer supported; use CC= instead" "$LINENO" 5
3638 # Check whether --with-ccopts was given.
3639 if test "${with_ccopts+set}" = set; then :
3640 withval=$with_ccopts; as_fn_error "--with-ccopts no longer supported; use CFLAGS= instead" "$LINENO" 5
3644 # Check whether --with-ldopts was given.
3645 if test "${with_ldopts+set}" = set; then :
3646 withval=$with_ldopts; as_fn_error "--with-ldopts no longer supported; use LDFLAGS= instead" "$LINENO" 5
3650 ac_cpp='$CPP $CPPFLAGS'
3651 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3652 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3653 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3654 if test -n "$ac_tool_prefix"; then
3655 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3656 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3658 $as_echo_n "checking for $ac_word... " >&6; }
3659 if test "${ac_cv_prog_CC+set}" = set; then :
3660 $as_echo_n "(cached) " >&6
3662 if test -n "$CC"; then
3663 ac_cv_prog_CC="$CC" # Let the user override the test.
3665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3669 test -z "$as_dir" && as_dir=.
3670 for ac_exec_ext in '' $ac_executable_extensions; do
3671 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3672 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3673 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3683 if test -n "$CC"; then
3684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3685 $as_echo "$CC" >&6; }
3687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3688 $as_echo "no" >&6; }
3693 if test -z "$ac_cv_prog_CC"; then
3695 # Extract the first word of "gcc", so it can be a program name with args.
3696 set dummy gcc; ac_word=$2
3697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3698 $as_echo_n "checking for $ac_word... " >&6; }
3699 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3700 $as_echo_n "(cached) " >&6
3702 if test -n "$ac_ct_CC"; then
3703 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3709 test -z "$as_dir" && as_dir=.
3710 for ac_exec_ext in '' $ac_executable_extensions; do
3711 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3712 ac_cv_prog_ac_ct_CC="gcc"
3713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3722 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3723 if test -n "$ac_ct_CC"; then
3724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3725 $as_echo "$ac_ct_CC" >&6; }
3727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3728 $as_echo "no" >&6; }
3731 if test "x$ac_ct_CC" = x; then
3734 case $cross_compiling:$ac_tool_warned in
3736 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3737 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3738 ac_tool_warned=yes ;;
3746 if test -z "$CC"; then
3747 if test -n "$ac_tool_prefix"; then
3748 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3749 set dummy ${ac_tool_prefix}cc; ac_word=$2
3750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3751 $as_echo_n "checking for $ac_word... " >&6; }
3752 if test "${ac_cv_prog_CC+set}" = set; then :
3753 $as_echo_n "(cached) " >&6
3755 if test -n "$CC"; then
3756 ac_cv_prog_CC="$CC" # Let the user override the test.
3758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3762 test -z "$as_dir" && as_dir=.
3763 for ac_exec_ext in '' $ac_executable_extensions; do
3764 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3765 ac_cv_prog_CC="${ac_tool_prefix}cc"
3766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3776 if test -n "$CC"; then
3777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3778 $as_echo "$CC" >&6; }
3780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3781 $as_echo "no" >&6; }
3787 if test -z "$CC"; then
3788 # Extract the first word of "cc", so it can be a program name with args.
3789 set dummy cc; ac_word=$2
3790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3791 $as_echo_n "checking for $ac_word... " >&6; }
3792 if test "${ac_cv_prog_CC+set}" = set; then :
3793 $as_echo_n "(cached) " >&6
3795 if test -n "$CC"; then
3796 ac_cv_prog_CC="$CC" # Let the user override the test.
3799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3803 test -z "$as_dir" && as_dir=.
3804 for ac_exec_ext in '' $ac_executable_extensions; do
3805 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3806 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3807 ac_prog_rejected=yes
3811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3818 if test $ac_prog_rejected = yes; then
3819 # We found a bogon in the path, so make sure we never use it.
3820 set dummy $ac_cv_prog_CC
3822 if test $# != 0; then
3823 # We chose a different compiler from the bogus one.
3824 # However, it has the same basename, so the bogon will be chosen
3825 # first if we set CC to just the basename; use the full file name.
3827 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3833 if test -n "$CC"; then
3834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3835 $as_echo "$CC" >&6; }
3837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3838 $as_echo "no" >&6; }
3843 if test -z "$CC"; then
3844 if test -n "$ac_tool_prefix"; then
3845 for ac_prog in cl.exe
3847 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3848 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3850 $as_echo_n "checking for $ac_word... " >&6; }
3851 if test "${ac_cv_prog_CC+set}" = set; then :
3852 $as_echo_n "(cached) " >&6
3854 if test -n "$CC"; then
3855 ac_cv_prog_CC="$CC" # Let the user override the test.
3857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3861 test -z "$as_dir" && as_dir=.
3862 for ac_exec_ext in '' $ac_executable_extensions; do
3863 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3864 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3865 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3875 if test -n "$CC"; then
3876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3877 $as_echo "$CC" >&6; }
3879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3880 $as_echo "no" >&6; }
3884 test -n "$CC" && break
3887 if test -z "$CC"; then
3889 for ac_prog in cl.exe
3891 # Extract the first word of "$ac_prog", so it can be a program name with args.
3892 set dummy $ac_prog; ac_word=$2
3893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3894 $as_echo_n "checking for $ac_word... " >&6; }
3895 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3896 $as_echo_n "(cached) " >&6
3898 if test -n "$ac_ct_CC"; then
3899 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3905 test -z "$as_dir" && as_dir=.
3906 for ac_exec_ext in '' $ac_executable_extensions; do
3907 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3908 ac_cv_prog_ac_ct_CC="$ac_prog"
3909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3918 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3919 if test -n "$ac_ct_CC"; then
3920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3921 $as_echo "$ac_ct_CC" >&6; }
3923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3924 $as_echo "no" >&6; }
3928 test -n "$ac_ct_CC" && break
3931 if test "x$ac_ct_CC" = x; then
3934 case $cross_compiling:$ac_tool_warned in
3936 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3937 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3938 ac_tool_warned=yes ;;
3947 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3948 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3949 as_fn_error "no acceptable C compiler found in \$PATH
3950 See \`config.log' for more details." "$LINENO" 5; }
3952 # Provide some information about the compiler.
3953 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3956 for ac_option in --version -v -V -qversion; do
3957 { { ac_try="$ac_compiler $ac_option >&5"
3959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3960 *) ac_try_echo=$ac_try;;
3962 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3963 $as_echo "$ac_try_echo"; } >&5
3964 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3966 if test -s conftest.err; then
3968 ... rest of stderr output deleted ...
3969 10q' conftest.err >conftest.er1
3970 cat conftest.er1 >&5
3972 rm -f conftest.er1 conftest.err
3973 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3974 test $ac_status = 0; }
3977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3978 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3979 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3980 $as_echo_n "(cached) " >&6
3982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3983 /* end confdefs.h. */
3996 if ac_fn_c_try_compile "$LINENO"; then :
4001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4002 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4006 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4007 if test $ac_compiler_gnu = yes; then
4012 ac_test_CFLAGS=${CFLAGS+set}
4013 ac_save_CFLAGS=$CFLAGS
4014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4015 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4016 if test "${ac_cv_prog_cc_g+set}" = set; then :
4017 $as_echo_n "(cached) " >&6
4019 ac_save_c_werror_flag=$ac_c_werror_flag
4020 ac_c_werror_flag=yes
4023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4024 /* end confdefs.h. */
4034 if ac_fn_c_try_compile "$LINENO"; then :
4038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4039 /* end confdefs.h. */
4049 if ac_fn_c_try_compile "$LINENO"; then :
4052 ac_c_werror_flag=$ac_save_c_werror_flag
4054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4055 /* end confdefs.h. */
4065 if ac_fn_c_try_compile "$LINENO"; then :
4068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4073 ac_c_werror_flag=$ac_save_c_werror_flag
4075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4076 $as_echo "$ac_cv_prog_cc_g" >&6; }
4077 if test "$ac_test_CFLAGS" = set; then
4078 CFLAGS=$ac_save_CFLAGS
4079 elif test $ac_cv_prog_cc_g = yes; then
4080 if test "$GCC" = yes; then
4086 if test "$GCC" = yes; then
4092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4093 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4094 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4095 $as_echo_n "(cached) " >&6
4097 ac_cv_prog_cc_c89=no
4099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4100 /* end confdefs.h. */
4103 #include <sys/types.h>
4104 #include <sys/stat.h>
4105 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4106 struct buf { int x; };
4107 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4108 static char *e (p, i)
4114 static char *f (char * (*g) (char **, int), char **p, ...)
4119 s = g (p, va_arg (v,int));
4124 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4125 function prototypes and stuff, but not '\xHH' hex character constants.
4126 These don't provoke an error unfortunately, instead are silently treated
4127 as 'x'. The following induces an error, until -std is added to get
4128 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4129 array size at least. It's necessary to write '\x00'==0 to get something
4130 that's true only with -std. */
4131 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4133 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4134 inside strings and character constants. */
4136 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4138 int test (int i, double x);
4139 struct s1 {int (*f) (int a);};
4140 struct s2 {int (*f) (double a);};
4141 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4147 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4152 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4153 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4155 CC="$ac_save_CC $ac_arg"
4156 if ac_fn_c_try_compile "$LINENO"; then :
4157 ac_cv_prog_cc_c89=$ac_arg
4159 rm -f core conftest.err conftest.$ac_objext
4160 test "x$ac_cv_prog_cc_c89" != "xno" && break
4162 rm -f conftest.$ac_ext
4167 case "x$ac_cv_prog_cc_c89" in
4169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4170 $as_echo "none needed" >&6; } ;;
4172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4173 $as_echo "unsupported" >&6; } ;;
4175 CC="$CC $ac_cv_prog_cc_c89"
4176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4177 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4179 if test "x$ac_cv_prog_cc_c89" != xno; then :
4184 ac_cpp='$CPP $CPPFLAGS'
4185 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4186 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4187 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4189 if test "$GCC" = yes; then
4190 RDYNAMIC="-rdynamic"
4194 ac_cpp='$CPP $CPPFLAGS'
4195 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4196 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4197 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4199 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4200 # On Suns, sometimes $CPP names a directory.
4201 if test -n "$CPP" && test -d "$CPP"; then
4204 if test -z "$CPP"; then
4205 if test "${ac_cv_prog_CPP+set}" = set; then :
4206 $as_echo_n "(cached) " >&6
4208 # Double quotes because CPP needs to be expanded
4209 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4212 for ac_c_preproc_warn_flag in '' yes
4214 # Use a header file that comes with gcc, so configuring glibc
4215 # with a fresh cross-compiler works.
4216 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4217 # <limits.h> exists even on freestanding compilers.
4218 # On the NeXT, cc -E runs the code through the compiler's parser,
4219 # not just through cpp. "Syntax error" is here to catch this case.
4220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4221 /* end confdefs.h. */
4223 # include <limits.h>
4225 # include <assert.h>
4229 if ac_fn_c_try_cpp "$LINENO"; then :
4232 # Broken: fails on valid input.
4235 rm -f conftest.err conftest.$ac_ext
4237 # OK, works on sane cases. Now check whether nonexistent headers
4238 # can be detected and how.
4239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4240 /* end confdefs.h. */
4241 #include <ac_nonexistent.h>
4243 if ac_fn_c_try_cpp "$LINENO"; then :
4244 # Broken: success on invalid input.
4247 # Passes both tests.
4251 rm -f conftest.err conftest.$ac_ext
4254 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4255 rm -f conftest.err conftest.$ac_ext
4256 if $ac_preproc_ok; then :
4268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4269 $as_echo "$CPP" >&6; }
4271 for ac_c_preproc_warn_flag in '' yes
4273 # Use a header file that comes with gcc, so configuring glibc
4274 # with a fresh cross-compiler works.
4275 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4276 # <limits.h> exists even on freestanding compilers.
4277 # On the NeXT, cc -E runs the code through the compiler's parser,
4278 # not just through cpp. "Syntax error" is here to catch this case.
4279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4280 /* end confdefs.h. */
4282 # include <limits.h>
4284 # include <assert.h>
4288 if ac_fn_c_try_cpp "$LINENO"; then :
4291 # Broken: fails on valid input.
4294 rm -f conftest.err conftest.$ac_ext
4296 # OK, works on sane cases. Now check whether nonexistent headers
4297 # can be detected and how.
4298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4299 /* end confdefs.h. */
4300 #include <ac_nonexistent.h>
4302 if ac_fn_c_try_cpp "$LINENO"; then :
4303 # Broken: success on invalid input.
4306 # Passes both tests.
4310 rm -f conftest.err conftest.$ac_ext
4313 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4314 rm -f conftest.err conftest.$ac_ext
4315 if $ac_preproc_ok; then :
4318 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4319 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4320 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4321 See \`config.log' for more details." "$LINENO" 5; }
4325 ac_cpp='$CPP $CPPFLAGS'
4326 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4327 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4328 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for additional special compiler flags" >&5
4331 $as_echo_n "checking for additional special compiler flags... " >&6; }
4332 if test "$GCC" = yes
4335 alpha) addcflags="-mieee" ;;
4338 if test "x$addcflags" != x
4340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $addcflags" >&5
4341 $as_echo "$addcflags" >&6; }
4342 CFLAGS="$addcflags $CFLAGS"
4344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (none)" >&5
4345 $as_echo "(none)" >&6; }
4351 # Check whether --with-root-prefix was given.
4352 if test "${with_root_prefix+set}" = set; then :
4353 withval=$with_root_prefix; root_prefix=$withval
4357 # Check whether --enable-maintainer-mode was given.
4358 if test "${enable_maintainer_mode+set}" = set; then :
4359 enableval=$enable_maintainer_mode; if test "$enableval" = "no"
4362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode" >&5
4363 $as_echo "Disabling maintainer mode" >&6; }
4366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling maintainer mode" >&5
4367 $as_echo "Enabling maintainer mode" >&6; }
4372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode by default" >&5
4373 $as_echo "Disabling maintainer mode by default" >&6; }
4378 # Check whether --enable-symlink-install was given.
4379 if test "${enable_symlink_install+set}" = set; then :
4380 enableval=$enable_symlink_install; if test "$enableval" = "no"
4382 LINK_INSTALL_FLAGS=-f
4383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install" >&5
4384 $as_echo "Disabling symlinks for install" >&6; }
4386 LINK_INSTALL_FLAGS=-sf
4387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for install" >&5
4388 $as_echo "Enabling symlinks for install" >&6; }
4392 LINK_INSTALL_FLAGS=-f
4393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install by default" >&5
4394 $as_echo "Disabling symlinks for install by default" >&6; }
4399 relative_symlink_defined=
4400 # Check whether --enable-relative-symlinks was given.
4401 if test "${enable_relative_symlinks+set}" = set; then :
4402 enableval=$enable_relative_symlinks; if test "$enableval" = "no"
4405 relative_symlink_defined=yes
4406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
4407 $as_echo "Disabling relative symlinks for install" >&6; }
4409 SYMLINK_RELATIVE=--relative
4410 relative_symlink_defined=yes
4411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5
4412 $as_echo "Enabling relative symlinks for install" >&6; }
4416 # Check whether --enable-symlink-relative-symlinks was given.
4417 if test "${enable_symlink_relative_symlinks+set}" = set; then :
4418 enableval=$enable_symlink_relative_symlinks; if test "$enableval" = "no"
4420 SYMLINK_RELATIVE=yes
4421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
4422 $as_echo "Disabling relative symlinks for install" >&6; }
4424 SYMLINK_RELATIVE=--relative
4425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5
4426 $as_echo "Enabling relative symlinks for install" >&6; }
4430 if test -z "$relative_symlink_defined"
4433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install by default" >&5
4434 $as_echo "Disabling relative symlinks for install by default" >&6; }
4440 # Check whether --enable-symlink-build was given.
4441 if test "${enable_symlink_build+set}" = set; then :
4442 enableval=$enable_symlink_build; if test "$enableval" = "no"
4445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build" >&5
4446 $as_echo "Disabling symlinks for build" >&6; }
4449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for build" >&5
4450 $as_echo "Enabling symlinks for build" >&6; }
4455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build by default" >&5
4456 $as_echo "Disabling symlinks for build by default" >&6; }
4461 # Check whether --enable-verbose-makecmds was given.
4462 if test "${enable_verbose_makecmds+set}" = set; then :
4463 enableval=$enable_verbose_makecmds; if test "$enableval" = "no"
4465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
4466 $as_echo "Disabling verbose make commands" >&6; }
4471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling verbose make commands" >&5
4472 $as_echo "Enabling verbose make commands" >&6; }
4479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
4480 $as_echo "Disabling verbose make commands" >&6; }
4490 # Check whether --enable-compression was given.
4491 if test "${enable_compression+set}" = set; then :
4492 enableval=$enable_compression; if test "$enableval" = "no"
4494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling compression support" >&5
4495 $as_echo "Disabling compression support" >&6; }
4498 $as_echo "#define ENABLE_COMPRESSION 1" >>confdefs.h
4500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling compression support" >&5
4501 $as_echo "Enabling compression support" >&6; }
4502 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Compression support is experimental" >&5
4503 $as_echo "$as_me: WARNING: Compression support is experimental" >&2;}
4507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling compression support by default" >&5
4508 $as_echo "Disabling compression support by default" >&6; }
4513 # Check whether --enable-htree was given.
4514 if test "${enable_htree+set}" = set; then :
4515 enableval=$enable_htree; if test "$enableval" = "no"
4518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling htree directory support" >&5
4519 $as_echo "Disabling htree directory support" >&6; }
4522 $as_echo "#define ENABLE_HTREE 1" >>confdefs.h
4524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling htree directory support" >&5
4525 $as_echo "Enabling htree directory support" >&6; }
4530 $as_echo "#define ENABLE_HTREE 1" >>confdefs.h
4532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling htree directory support by default" >&5
4533 $as_echo "Enabling htree directory support by default" >&6; }
4538 E2_PKG_CONFIG_STATIC=--static
4541 # Check whether --enable-elf-shlibs was given.
4542 if test "${enable_elf_shlibs+set}" = set; then :
4543 enableval=$enable_elf_shlibs; if test "$enableval" = "no"
4546 MAKEFILE_ELF=/dev/null
4547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries" >&5
4548 $as_echo "Disabling ELF shared libraries" >&6; }
4550 E2_PKG_CONFIG_STATIC=
4552 MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
4555 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
4561 LDFLAG_DYNAMIC='-Wl,-rpath-link,$(top_builddir)/lib'
4562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling ELF shared libraries" >&5
4563 $as_echo "Enabling ELF shared libraries" >&6; }
4567 MAKEFILE_ELF=/dev/null
4569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries by default" >&5
4570 $as_echo "Disabling ELF shared libraries by default" >&6; }
4576 # Check whether --enable-bsd-shlibs was given.
4577 if test "${enable_bsd_shlibs+set}" = set; then :
4578 enableval=$enable_bsd_shlibs; if test "$enableval" = "no"
4581 MAKEFILE_BSDLIB=/dev/null
4582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries" >&5
4583 $as_echo "Disabling BSD shared libraries" >&6; }
4585 E2_PKG_CONFIG_STATIC=
4587 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
4591 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib
4595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling BSD shared libraries" >&5
4596 $as_echo "Enabling BSD shared libraries" >&6; }
4600 MAKEFILE_BSDLIB=/dev/null
4602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries by default" >&5
4603 $as_echo "Disabling BSD shared libraries by default" >&6; }
4609 # Check whether --enable-profile was given.
4610 if test "${enable_profile+set}" = set; then :
4611 enableval=$enable_profile; if test "$enableval" = "no"
4614 MAKEFILE_PROFILE=/dev/null
4615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries" >&5
4616 $as_echo "Disabling profiling libraries" >&6; }
4619 MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
4620 PROFILED_LIB_EXT=_p.a
4621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building profiling libraries" >&5
4622 $as_echo "Building profiling libraries" >&6; }
4627 MAKEFILE_PROFILE=/dev/null
4628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries by default" >&5
4629 $as_echo "Disabling profiling libraries by default" >&6; }
4635 # Check whether --enable-gcov was given.
4636 if test "${enable_gcov+set}" = set; then :
4637 enableval=$enable_gcov; if test "$enableval" = "yes"
4639 CFLAGS="-g -fprofile-arcs -ftest-coverage"
4640 LDFLAGS="-fprofile-arcs -ftest-coverage"
4641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling gcov support" >&5
4642 $as_echo "Enabling gcov support" >&6; }
4653 # Check whether --enable-jbd-debug was given.
4654 if test "${enable_jbd_debug+set}" = set; then :
4655 enableval=$enable_jbd_debug; if test "$enableval" = "no"
4657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging" >&5
4658 $as_echo "Disabling journal debugging" >&6; }
4661 $as_echo "#define CONFIG_JBD_DEBUG 1" >>confdefs.h
4663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling journal debugging" >&5
4664 $as_echo "Enabling journal debugging" >&6; }
4668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging by default" >&5
4669 $as_echo "Disabling journal debugging by default" >&6; }
4673 # Check whether --enable-blkid-debug was given.
4674 if test "${enable_blkid_debug+set}" = set; then :
4675 enableval=$enable_blkid_debug; if test "$enableval" = "no"
4677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging" >&5
4678 $as_echo "Disabling blkid debugging" >&6; }
4681 $as_echo "#define CONFIG_BLKID_DEBUG 1" >>confdefs.h
4683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling blkid debugging" >&5
4684 $as_echo "Enabling blkid debugging" >&6; }
4688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging by default" >&5
4689 $as_echo "Disabling blkid debugging by default" >&6; }
4693 # Check whether --enable-testio-debug was given.
4694 if test "${enable_testio_debug+set}" = set; then :
4695 enableval=$enable_testio_debug;
4696 if test "$enableval" = "no"
4698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling testio debugging" >&5
4699 $as_echo "Disabling testio debugging" >&6; }
4703 $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
4705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging" >&5
4706 $as_echo "Enabling testio debugging" >&6; }
4710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging by default" >&5
4711 $as_echo "Enabling testio debugging by default" >&6; }
4712 $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
4721 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4722 if test -n "$ac_tool_prefix"; then
4723 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4724 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4726 $as_echo_n "checking for $ac_word... " >&6; }
4727 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
4728 $as_echo_n "(cached) " >&6
4732 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4739 test -z "$as_dir" && as_dir=.
4740 for ac_exec_ext in '' $ac_executable_extensions; do
4741 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4742 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4743 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4753 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4754 if test -n "$PKG_CONFIG"; then
4755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4756 $as_echo "$PKG_CONFIG" >&6; }
4758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4759 $as_echo "no" >&6; }
4764 if test -z "$ac_cv_path_PKG_CONFIG"; then
4765 ac_pt_PKG_CONFIG=$PKG_CONFIG
4766 # Extract the first word of "pkg-config", so it can be a program name with args.
4767 set dummy pkg-config; ac_word=$2
4768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4769 $as_echo_n "checking for $ac_word... " >&6; }
4770 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
4771 $as_echo_n "(cached) " >&6
4773 case $ac_pt_PKG_CONFIG in
4775 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4782 test -z "$as_dir" && as_dir=.
4783 for ac_exec_ext in '' $ac_executable_extensions; do
4784 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4785 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4786 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4796 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4797 if test -n "$ac_pt_PKG_CONFIG"; then
4798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4799 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4802 $as_echo "no" >&6; }
4805 if test "x$ac_pt_PKG_CONFIG" = x; then
4808 case $cross_compiling:$ac_tool_warned in
4810 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4811 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4812 ac_tool_warned=yes ;;
4814 PKG_CONFIG=$ac_pt_PKG_CONFIG
4817 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4821 if test -n "$PKG_CONFIG"; then
4822 _pkg_min_version=0.9.0
4823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4824 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4825 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4827 $as_echo "yes" >&6; }
4829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4830 $as_echo "no" >&6; }
4840 DEPPROFILED_LIBUUID=
4842 # Check whether --enable-libuuid was given.
4843 if test "${enable_libuuid+set}" = set; then :
4844 enableval=$enable_libuuid; if test "$enableval" = "no"
4846 if test -z "$PKG_CONFIG"; then
4847 as_fn_error "pkg-config not installed; please install it." "$LINENO" 5
4850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
4851 $as_echo_n "checking for uuid_generate in -luuid... " >&6; }
4852 if test "${ac_cv_lib_uuid_uuid_generate+set}" = set; then :
4853 $as_echo_n "(cached) " >&6
4855 ac_check_lib_save_LIBS=$LIBS
4857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4858 /* end confdefs.h. */
4860 /* Override any GCC internal prototype to avoid an error.
4861 Use char because int might match the return type of a GCC
4862 builtin and then its argument prototype would still apply. */
4866 char uuid_generate ();
4870 return uuid_generate ();
4875 if ac_fn_c_try_link "$LINENO"; then :
4876 ac_cv_lib_uuid_uuid_generate=yes
4878 ac_cv_lib_uuid_uuid_generate=no
4880 rm -f core conftest.err conftest.$ac_objext \
4881 conftest$ac_exeext conftest.$ac_ext
4882 LIBS=$ac_check_lib_save_LIBS
4884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
4885 $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
4886 if test "x$ac_cv_lib_uuid_uuid_generate" = x""yes; then :
4887 LIBUUID=`$PKG_CONFIG --libs uuid`;
4888 STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid`
4890 as_fn_error "external uuid library not found" "$LINENO" 5
4893 PROFILED_LIBUUID=$LIBUUID
4895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private uuid library" >&5
4896 $as_echo "Disabling private uuid library" >&6; }
4898 LIBUUID='$(LIB)/libuuid'$LIB_EXT
4900 STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
4901 DEPSTATIC_LIBUUID=$STATIC_LIBUUID
4902 PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
4903 DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
4904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library" >&5
4905 $as_echo "Enabling private uuid library" >&6; }
4909 LIBUUID='$(LIB)/libuuid'$LIB_EXT
4911 STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
4912 DEPSTATIC_LIBUUID=$STATIC_LIBUUID
4913 PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
4914 DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
4915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library by default" >&5
4916 $as_echo "Enabling private uuid library by default" >&6; }
4929 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4930 if test -n "$ac_tool_prefix"; then
4931 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4932 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4934 $as_echo_n "checking for $ac_word... " >&6; }
4935 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
4936 $as_echo_n "(cached) " >&6
4940 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4947 test -z "$as_dir" && as_dir=.
4948 for ac_exec_ext in '' $ac_executable_extensions; do
4949 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4950 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4961 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4962 if test -n "$PKG_CONFIG"; then
4963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4964 $as_echo "$PKG_CONFIG" >&6; }
4966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4967 $as_echo "no" >&6; }
4972 if test -z "$ac_cv_path_PKG_CONFIG"; then
4973 ac_pt_PKG_CONFIG=$PKG_CONFIG
4974 # Extract the first word of "pkg-config", so it can be a program name with args.
4975 set dummy pkg-config; ac_word=$2
4976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4977 $as_echo_n "checking for $ac_word... " >&6; }
4978 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
4979 $as_echo_n "(cached) " >&6
4981 case $ac_pt_PKG_CONFIG in
4983 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4990 test -z "$as_dir" && as_dir=.
4991 for ac_exec_ext in '' $ac_executable_extensions; do
4992 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4993 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4994 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5004 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5005 if test -n "$ac_pt_PKG_CONFIG"; then
5006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5007 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5010 $as_echo "no" >&6; }
5013 if test "x$ac_pt_PKG_CONFIG" = x; then
5016 case $cross_compiling:$ac_tool_warned in
5018 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5019 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5020 ac_tool_warned=yes ;;
5022 PKG_CONFIG=$ac_pt_PKG_CONFIG
5025 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5029 if test -n "$PKG_CONFIG"; then
5030 _pkg_min_version=0.9.0
5031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5032 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5033 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5035 $as_echo "yes" >&6; }
5037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5038 $as_echo "no" >&6; }
5048 DEPPROFILED_LIBBLKID=
5051 # Check whether --enable-libblkid was given.
5052 if test "${enable_libblkid+set}" = set; then :
5053 enableval=$enable_libblkid; if test "$enableval" = "no"
5055 if test -z "$PKG_CONFIG"; then
5056 as_fn_error "pkg-config not installed; please install it." "$LINENO" 5
5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
5060 $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
5061 if test "${ac_cv_lib_blkid_blkid_get_cache+set}" = set; then :
5062 $as_echo_n "(cached) " >&6
5064 ac_check_lib_save_LIBS=$LIBS
5065 LIBS="-lblkid -luuid $LIBS"
5066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5067 /* end confdefs.h. */
5069 /* Override any GCC internal prototype to avoid an error.
5070 Use char because int might match the return type of a GCC
5071 builtin and then its argument prototype would still apply. */
5075 char blkid_get_cache ();
5079 return blkid_get_cache ();
5084 if ac_fn_c_try_link "$LINENO"; then :
5085 ac_cv_lib_blkid_blkid_get_cache=yes
5087 ac_cv_lib_blkid_blkid_get_cache=no
5089 rm -f core conftest.err conftest.$ac_objext \
5090 conftest$ac_exeext conftest.$ac_ext
5091 LIBS=$ac_check_lib_save_LIBS
5093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
5094 $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
5095 if test "x$ac_cv_lib_blkid_blkid_get_cache" = x""yes; then :
5096 LIBBLKID=`$PKG_CONFIG --libs blkid`;
5097 STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid`
5099 as_fn_error "external blkid library not found" "$LINENO" 5
5103 PROFILED_LIBBLKID=$LIBBLKID
5104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private blkid library" >&5
5105 $as_echo "Disabling private blkid library" >&6; }
5107 LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5108 DEPLIBBLKID=$LIBBLKID
5109 STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5110 DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5111 PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5112 DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
5113 $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
5115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library" >&5
5116 $as_echo "Enabling private blkid library" >&6; }
5120 LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5121 DEPLIBBLKID=$LIBBLKID
5122 STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5123 DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5124 PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5125 DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
5126 $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
5128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library by default" >&5
5129 $as_echo "Enabling private blkid library by default" >&6; }
5140 QUOTA_MAN_COMMENT='.\"'
5145 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5146 if test -n "$ac_tool_prefix"; then
5147 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5148 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5150 $as_echo_n "checking for $ac_word... " >&6; }
5151 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
5152 $as_echo_n "(cached) " >&6
5156 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5163 test -z "$as_dir" && as_dir=.
5164 for ac_exec_ext in '' $ac_executable_extensions; do
5165 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5166 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5167 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5177 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5178 if test -n "$PKG_CONFIG"; then
5179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5180 $as_echo "$PKG_CONFIG" >&6; }
5182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5183 $as_echo "no" >&6; }
5188 if test -z "$ac_cv_path_PKG_CONFIG"; then
5189 ac_pt_PKG_CONFIG=$PKG_CONFIG
5190 # Extract the first word of "pkg-config", so it can be a program name with args.
5191 set dummy pkg-config; ac_word=$2
5192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5193 $as_echo_n "checking for $ac_word... " >&6; }
5194 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
5195 $as_echo_n "(cached) " >&6
5197 case $ac_pt_PKG_CONFIG in
5199 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5206 test -z "$as_dir" && as_dir=.
5207 for ac_exec_ext in '' $ac_executable_extensions; do
5208 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5209 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5220 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5221 if test -n "$ac_pt_PKG_CONFIG"; then
5222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5223 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5226 $as_echo "no" >&6; }
5229 if test "x$ac_pt_PKG_CONFIG" = x; then
5232 case $cross_compiling:$ac_tool_warned in
5234 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5235 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5236 ac_tool_warned=yes ;;
5238 PKG_CONFIG=$ac_pt_PKG_CONFIG
5241 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5245 if test -n "$PKG_CONFIG"; then
5246 _pkg_min_version=0.9.0
5247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5248 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5249 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5251 $as_echo "yes" >&6; }
5253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5254 $as_echo "no" >&6; }
5260 # Check whether --enable-quota was given.
5261 if test "${enable_quota+set}" = set; then :
5262 enableval=$enable_quota; if test "$enableval" = "no"
5265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling quota support" >&5
5266 $as_echo "Disabling quota support" >&6; }
5269 $as_echo "#define CONFIG_QUOTA 1" >>confdefs.h
5271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling quota support" >&5
5272 $as_echo "Enabling quota support" >&6; }
5273 QUOTA_MAN_COMMENT=""
5279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling quota support by default" >&5
5280 $as_echo "Disabling quota support by default" >&6; }
5284 LIBQUOTA='$(LIB)/libquota'$LIB_EXT
5285 DEPLIBQUOTA=$LIBQUOTA
5286 STATIC_LIBQUOTA='$(LIB)/libquota'$STATIC_LIB_EXT
5287 DEPSTATIC_LIBQUOTA=$STATIC_LIBQUOTA
5288 PROFILED_LIBQUOTA='$(LIB)/libquota'$PROFILED_LIB_EXT
5289 DEPPROFILED_LIBQUOTA=$PROFILED_LIBQUOTA
5298 # Check whether --enable-backtrace was given.
5299 if test "${enable_backtrace+set}" = set; then :
5300 enableval=$enable_backtrace; if test "$enableval" = "no"
5302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling use of backtrace" >&5
5303 $as_echo "Disabling use of backtrace" >&6; }
5304 $as_echo "#define DISABLE_BACKTRACE 1" >>confdefs.h
5307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace" >&5
5308 $as_echo "Enabling use of backtrace" >&6; }
5312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace by default" >&5
5313 $as_echo "Enabling use of backtrace by default" >&6; }
5317 # Check whether --enable-debugfs was given.
5318 if test "${enable_debugfs+set}" = set; then :
5319 enableval=$enable_debugfs; if test "$enableval" = "no"
5321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling debugfs support" >&5
5322 $as_echo "Disabling debugfs support" >&6; }
5326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support" >&5
5327 $as_echo "Enabling debugfs support" >&6; }
5331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support by default" >&5
5332 $as_echo "Enabling debugfs support by default" >&6; }
5338 # Check whether --enable-imager was given.
5339 if test "${enable_imager+set}" = set; then :
5340 enableval=$enable_imager; if test "$enableval" = "no"
5342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2image support" >&5
5343 $as_echo "Disabling e2image support" >&6; }
5347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support" >&5
5348 $as_echo "Enabling e2image support" >&6; }
5352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support by default" >&5
5353 $as_echo "Enabling e2image support by default" >&6; }
5359 # Check whether --enable-resizer was given.
5360 if test "${enable_resizer+set}" = set; then :
5361 enableval=$enable_resizer; if test "$enableval" = "no"
5363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2resize support" >&5
5364 $as_echo "Disabling e2resize support" >&6; }
5368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support" >&5
5369 $as_echo "Enabling e2resize support" >&6; }
5373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support by default" >&5
5374 $as_echo "Enabling e2resize support by default" >&6; }
5380 # Check whether --enable-defrag was given.
5381 if test "${enable_defrag+set}" = set; then :
5382 enableval=$enable_defrag; if test "$enableval" = "no"
5384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support" >&5
5385 $as_echo "Disabling e4defrag support" >&6; }
5389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support" >&5
5390 $as_echo "Enabling e4defrag support" >&6; }
5394 if test -z "$WITH_DIET_LIBC"
5396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support by default" >&5
5397 $as_echo "Enabling e4defrag support by default" >&6; }
5400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support by default" >&5
5401 $as_echo "Disabling e4defrag support by default" >&6; }
5408 # Check whether --enable-fsck was given.
5409 if test "${enable_fsck+set}" = set; then :
5410 enableval=$enable_fsck; if test "$enableval" = "no"
5412 FSCK_PROG='' FSCK_MAN=''
5413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper" >&5
5414 $as_echo "Not building fsck wrapper" >&6; }
5416 FSCK_PROG=fsck FSCK_MAN=fsck.8
5417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper" >&5
5418 $as_echo "Building fsck wrapper" >&6; }
5424 FSCK_PROG='' FSCK_MAN=''
5425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper by default" >&5
5426 $as_echo "Not building fsck wrapper by default" >&6; }
5429 FSCK_PROG=fsck FSCK_MAN=fsck.8
5430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper by default" >&5
5431 $as_echo "Building fsck wrapper by default" >&6; }
5438 # Check whether --enable-e2initrd-helper was given.
5439 if test "${enable_e2initrd_helper+set}" = set; then :
5440 enableval=$enable_e2initrd_helper; if test "$enableval" = "no"
5442 E2INITRD_PROG='' E2INITRD_MAN=''
5443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building e2initrd helper" >&5
5444 $as_echo "Not building e2initrd helper" >&6; }
5446 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
5447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper" >&5
5448 $as_echo "Building e2initrd helper" >&6; }
5452 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
5453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper by default" >&5
5454 $as_echo "Building e2initrd helper by default" >&6; }
5460 # Check whether --enable-tls was given.
5461 if test "${enable_tls+set}" = set; then :
5462 enableval=$enable_tls; if test "$enableval" = "no"
5465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling thread local support" >&5
5466 $as_echo "Disabling thread local support" >&6; }
5469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling thread local support" >&5
5470 $as_echo "Enabling thread local support" >&6; }
5474 if test -n "$WITH_DIET_LIBC"
5477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Diet libc does not support thread local support" >&5
5478 $as_echo "Diet libc does not support thread local support" >&6; }
5481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Try using thread local support by default" >&5
5482 $as_echo "Try using thread local support by default" >&6; }
5487 if test "$try_tls" = "yes"
5490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread local storage (TLS) class" >&5
5491 $as_echo_n "checking for thread local storage (TLS) class... " >&6; }
5492 if test "${ac_cv_tls+set}" = set; then :
5493 $as_echo_n "(cached) " >&6
5496 ax_tls_keywords="__thread __declspec(thread) none"
5497 for ax_tls_keyword in $ax_tls_keywords; do
5498 case $ax_tls_keyword in
5499 none) ac_cv_tls=none ; break ;;
5501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5502 /* end confdefs.h. */
5506 static $ax_tls_keyword int bar;
5517 if ac_fn_c_try_compile "$LINENO"; then :
5518 ac_cv_tls=$ax_tls_keyword ; break
5523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5530 if test "$ac_cv_tls" != "none"; then
5532 cat >>confdefs.h <<_ACEOF
5533 #define TLS $ac_cv_tls
5537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tls" >&5
5538 $as_echo "$ac_cv_tls" >&6; }
5542 # Check whether --enable-uuidd was given.
5543 if test "${enable_uuidd+set}" = set; then :
5544 enableval=$enable_uuidd; if test "$enableval" = "no"
5546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building uuidd" >&5
5547 $as_echo "Not building uuidd" >&6; }
5550 $as_echo "#define USE_UUIDD 1" >>confdefs.h
5553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd" >&5
5554 $as_echo "Building uuidd" >&6; }
5558 $as_echo "#define USE_UUIDD 1" >>confdefs.h
5560 if test -z "$UUID_CMT"
5563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd by default" >&5
5564 $as_echo "Building uuidd by default" >&6; }
5567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling uuidd by default" >&5
5568 $as_echo "Disabling uuidd by default" >&6; }
5574 MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
5576 GETTEXT_PACKAGE=e2fsprogs
5578 VERSION="$E2FSPROGS_VERSION"
5581 cat >>confdefs.h <<_ACEOF
5582 #define PACKAGE "$PACKAGE"
5586 cat >>confdefs.h <<_ACEOF
5587 #define VERSION "$VERSION"
5594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5595 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5597 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5598 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
5599 $as_echo_n "(cached) " >&6
5601 cat >conftest.make <<\_ACEOF
5604 @echo '@@@%%%=$(MAKE)=@@@%%%'
5606 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5607 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5609 eval ac_cv_prog_make_${ac_make}_set=yes;;
5611 eval ac_cv_prog_make_${ac_make}_set=no;;
5615 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5617 $as_echo "yes" >&6; }
5620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5621 $as_echo "no" >&6; }
5622 SET_MAKE="MAKE=${MAKE-make}"
5625 # Find a good install program. We prefer a C program (faster),
5626 # so one script is as good as another. But avoid the broken or
5627 # incompatible versions:
5628 # SysV /etc/install, /usr/sbin/install
5629 # SunOS /usr/etc/install
5630 # IRIX /sbin/install
5632 # AmigaOS /C/install, which installs bootblocks on floppy discs
5633 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5634 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5635 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5636 # OS/2's system install, which has a completely different semantic
5637 # ./install, which can be erroneously created by make from ./install.sh.
5638 # Reject install programs that cannot install multiple files.
5639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
5640 $as_echo_n "checking for a BSD-compatible install... " >&6; }
5641 if test -z "$INSTALL"; then
5642 if test "${ac_cv_path_install+set}" = set; then :
5643 $as_echo_n "(cached) " >&6
5645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5649 test -z "$as_dir" && as_dir=.
5650 # Account for people who put trailing slashes in PATH elements.
5651 case $as_dir/ in #((
5652 ./ | .// | /[cC]/* | \
5653 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5654 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
5657 # OSF1 and SCO ODT 3.0 have their own names for install.
5658 # Don't use installbsd from OSF since it installs stuff as root
5660 for ac_prog in ginstall scoinst install; do
5661 for ac_exec_ext in '' $ac_executable_extensions; do
5662 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5663 if test $ac_prog = install &&
5664 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5665 # AIX install. It has an incompatible calling convention.
5667 elif test $ac_prog = install &&
5668 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5669 # program-specific install script used by HP pwplus--don't use.
5672 rm -rf conftest.one conftest.two conftest.dir
5673 echo one > conftest.one
5674 echo two > conftest.two
5676 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5677 test -s conftest.one && test -s conftest.two &&
5678 test -s conftest.dir/conftest.one &&
5679 test -s conftest.dir/conftest.two
5681 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5694 rm -rf conftest.one conftest.two conftest.dir
5697 if test "${ac_cv_path_install+set}" = set; then
5698 INSTALL=$ac_cv_path_install
5700 # As a last resort, use the slow shell script. Don't cache a
5701 # value for INSTALL within a source directory, because that will
5702 # break other packages using the cache if that directory is
5703 # removed, or if the value is a relative name.
5704 INSTALL=$ac_install_sh
5707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
5708 $as_echo "$INSTALL" >&6; }
5710 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5711 # It thinks the first close brace ends the variable substitution.
5712 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5714 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5716 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5720 if test -n "$ac_aux_dir"; then
5721 case "$ac_aux_dir" in
5722 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
5723 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
5726 if test -z "$MKINSTALLDIRS"; then
5727 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
5732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
5733 $as_echo_n "checking whether NLS is requested... " >&6; }
5734 # Check whether --enable-nls was given.
5735 if test "${enable_nls+set}" = set; then :
5736 enableval=$enable_nls; USE_NLS=$enableval
5741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
5742 $as_echo "$USE_NLS" >&6; }
5749 # Prepare PATH_SEPARATOR.
5750 # The user is always right.
5751 if test "${PATH_SEPARATOR+set}" != set; then
5752 echo "#! /bin/sh" >conf$$.sh
5753 echo "exit 0" >>conf$$.sh
5755 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5763 # Find out how to test for executable files. Don't use a zero-byte file,
5764 # as systems may use methods other than mode bits to determine executability.
5765 cat >conf$$.file <<_ASEOF
5769 chmod +x conf$$.file
5770 if test -x conf$$.file >/dev/null 2>&1; then
5771 ac_executable_p="test -x"
5773 ac_executable_p="test -f"
5777 # Extract the first word of "msgfmt", so it can be a program name with args.
5778 set dummy msgfmt; ac_word=$2
5779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5780 $as_echo_n "checking for $ac_word... " >&6; }
5781 if test "${ac_cv_path_MSGFMT+set}" = set; then :
5782 $as_echo_n "(cached) " >&6
5786 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5789 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5790 for ac_dir in $PATH; do
5792 test -z "$ac_dir" && ac_dir=.
5793 for ac_exec_ext in '' $ac_executable_extensions; do
5794 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5795 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
5796 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5797 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
5804 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
5808 MSGFMT="$ac_cv_path_MSGFMT"
5809 if test "$MSGFMT" != ":"; then
5810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
5811 $as_echo "$MSGFMT" >&6; }
5813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5814 $as_echo "no" >&6; }
5817 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5818 set dummy gmsgfmt; ac_word=$2
5819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5820 $as_echo_n "checking for $ac_word... " >&6; }
5821 if test "${ac_cv_path_GMSGFMT+set}" = set; then :
5822 $as_echo_n "(cached) " >&6
5826 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5833 test -z "$as_dir" && as_dir=.
5834 for ac_exec_ext in '' $ac_executable_extensions; do
5835 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5836 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5837 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5844 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5848 GMSGFMT=$ac_cv_path_GMSGFMT
5849 if test -n "$GMSGFMT"; then
5850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
5851 $as_echo "$GMSGFMT" >&6; }
5853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5854 $as_echo "no" >&6; }
5860 # Prepare PATH_SEPARATOR.
5861 # The user is always right.
5862 if test "${PATH_SEPARATOR+set}" != set; then
5863 echo "#! /bin/sh" >conf$$.sh
5864 echo "exit 0" >>conf$$.sh
5866 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5874 # Find out how to test for executable files. Don't use a zero-byte file,
5875 # as systems may use methods other than mode bits to determine executability.
5876 cat >conf$$.file <<_ASEOF
5880 chmod +x conf$$.file
5881 if test -x conf$$.file >/dev/null 2>&1; then
5882 ac_executable_p="test -x"
5884 ac_executable_p="test -f"
5888 # Extract the first word of "xgettext", so it can be a program name with args.
5889 set dummy xgettext; ac_word=$2
5890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5891 $as_echo_n "checking for $ac_word... " >&6; }
5892 if test "${ac_cv_path_XGETTEXT+set}" = set; then :
5893 $as_echo_n "(cached) " >&6
5897 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5900 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5901 for ac_dir in $PATH; do
5903 test -z "$ac_dir" && ac_dir=.
5904 for ac_exec_ext in '' $ac_executable_extensions; do
5905 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5906 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
5907 (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
5908 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
5915 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5919 XGETTEXT="$ac_cv_path_XGETTEXT"
5920 if test "$XGETTEXT" != ":"; then
5921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
5922 $as_echo "$XGETTEXT" >&6; }
5924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5925 $as_echo "no" >&6; }
5931 # Prepare PATH_SEPARATOR.
5932 # The user is always right.
5933 if test "${PATH_SEPARATOR+set}" != set; then
5934 echo "#! /bin/sh" >conf$$.sh
5935 echo "exit 0" >>conf$$.sh
5937 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5945 # Find out how to test for executable files. Don't use a zero-byte file,
5946 # as systems may use methods other than mode bits to determine executability.
5947 cat >conf$$.file <<_ASEOF
5951 chmod +x conf$$.file
5952 if test -x conf$$.file >/dev/null 2>&1; then
5953 ac_executable_p="test -x"
5955 ac_executable_p="test -f"
5959 # Extract the first word of "msgmerge", so it can be a program name with args.
5960 set dummy msgmerge; ac_word=$2
5961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5962 $as_echo_n "checking for $ac_word... " >&6; }
5963 if test "${ac_cv_path_MSGMERGE+set}" = set; then :
5964 $as_echo_n "(cached) " >&6
5968 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
5971 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5972 for ac_dir in $PATH; do
5974 test -z "$ac_dir" && ac_dir=.
5975 for ac_exec_ext in '' $ac_executable_extensions; do
5976 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5977 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
5978 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
5985 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
5989 MSGMERGE="$ac_cv_path_MSGMERGE"
5990 if test "$MSGMERGE" != ":"; then
5991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
5992 $as_echo "$MSGMERGE" >&6; }
5994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5995 $as_echo "no" >&6; }
5999 if test "$GMSGFMT" != ":"; then
6000 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
6001 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6004 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
6005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
6006 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
6011 if test "$XGETTEXT" != ":"; then
6012 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
6013 (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
6016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
6017 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
6023 ac_config_commands="$ac_config_commands default-1"
6026 if test -n "$ac_tool_prefix"; then
6027 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6028 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6030 $as_echo_n "checking for $ac_word... " >&6; }
6031 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6032 $as_echo_n "(cached) " >&6
6034 if test -n "$RANLIB"; then
6035 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6041 test -z "$as_dir" && as_dir=.
6042 for ac_exec_ext in '' $ac_executable_extensions; do
6043 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6044 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6045 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6054 RANLIB=$ac_cv_prog_RANLIB
6055 if test -n "$RANLIB"; then
6056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6057 $as_echo "$RANLIB" >&6; }
6059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6060 $as_echo "no" >&6; }
6065 if test -z "$ac_cv_prog_RANLIB"; then
6066 ac_ct_RANLIB=$RANLIB
6067 # Extract the first word of "ranlib", so it can be a program name with args.
6068 set dummy ranlib; ac_word=$2
6069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6070 $as_echo_n "checking for $ac_word... " >&6; }
6071 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6072 $as_echo_n "(cached) " >&6
6074 if test -n "$ac_ct_RANLIB"; then
6075 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6081 test -z "$as_dir" && as_dir=.
6082 for ac_exec_ext in '' $ac_executable_extensions; do
6083 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6084 ac_cv_prog_ac_ct_RANLIB="ranlib"
6085 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6094 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6095 if test -n "$ac_ct_RANLIB"; then
6096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6097 $as_echo "$ac_ct_RANLIB" >&6; }
6099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6100 $as_echo "no" >&6; }
6103 if test "x$ac_ct_RANLIB" = x; then
6106 case $cross_compiling:$ac_tool_warned in
6108 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6109 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6110 ac_tool_warned=yes ;;
6112 RANLIB=$ac_ct_RANLIB
6115 RANLIB="$ac_cv_prog_RANLIB"
6119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror in -lcposix" >&5
6120 $as_echo_n "checking for strerror in -lcposix... " >&6; }
6121 if test "${ac_cv_lib_cposix_strerror+set}" = set; then :
6122 $as_echo_n "(cached) " >&6
6124 ac_check_lib_save_LIBS=$LIBS
6125 LIBS="-lcposix $LIBS"
6126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6127 /* end confdefs.h. */
6129 /* Override any GCC internal prototype to avoid an error.
6130 Use char because int might match the return type of a GCC
6131 builtin and then its argument prototype would still apply. */
6144 if ac_fn_c_try_link "$LINENO"; then :
6145 ac_cv_lib_cposix_strerror=yes
6147 ac_cv_lib_cposix_strerror=no
6149 rm -f core conftest.err conftest.$ac_objext \
6150 conftest$ac_exeext conftest.$ac_ext
6151 LIBS=$ac_check_lib_save_LIBS
6153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cposix_strerror" >&5
6154 $as_echo "$ac_cv_lib_cposix_strerror" >&6; }
6155 if test "x$ac_cv_lib_cposix_strerror" = x""yes; then :
6156 LIBS="$LIBS -lcposix"
6162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6163 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6164 if test "${ac_cv_path_GREP+set}" = set; then :
6165 $as_echo_n "(cached) " >&6
6167 if test -z "$GREP"; then
6168 ac_path_GREP_found=false
6169 # Loop through the user's path and test for each of PROGNAME-LIST
6170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6171 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6174 test -z "$as_dir" && as_dir=.
6175 for ac_prog in grep ggrep; do
6176 for ac_exec_ext in '' $ac_executable_extensions; do
6177 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6178 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
6179 # Check for GNU ac_path_GREP and select it if it is found.
6180 # Check for GNU $ac_path_GREP
6181 case `"$ac_path_GREP" --version 2>&1` in
6183 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6186 $as_echo_n 0123456789 >"conftest.in"
6189 cat "conftest.in" "conftest.in" >"conftest.tmp"
6190 mv "conftest.tmp" "conftest.in"
6191 cp "conftest.in" "conftest.nl"
6192 $as_echo 'GREP' >> "conftest.nl"
6193 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6194 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6195 as_fn_arith $ac_count + 1 && ac_count=$as_val
6196 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6197 # Best one so far, save it but keep looking for a better one
6198 ac_cv_path_GREP="$ac_path_GREP"
6199 ac_path_GREP_max=$ac_count
6201 # 10*(2^10) chars as input seems more than enough
6202 test $ac_count -gt 10 && break
6204 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6207 $ac_path_GREP_found && break 3
6212 if test -z "$ac_cv_path_GREP"; then
6213 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6216 ac_cv_path_GREP=$GREP
6220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6221 $as_echo "$ac_cv_path_GREP" >&6; }
6222 GREP="$ac_cv_path_GREP"
6225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6226 $as_echo_n "checking for egrep... " >&6; }
6227 if test "${ac_cv_path_EGREP+set}" = set; then :
6228 $as_echo_n "(cached) " >&6
6230 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6231 then ac_cv_path_EGREP="$GREP -E"
6233 if test -z "$EGREP"; then
6234 ac_path_EGREP_found=false
6235 # Loop through the user's path and test for each of PROGNAME-LIST
6236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6237 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6240 test -z "$as_dir" && as_dir=.
6241 for ac_prog in egrep; do
6242 for ac_exec_ext in '' $ac_executable_extensions; do
6243 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6244 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6245 # Check for GNU ac_path_EGREP and select it if it is found.
6246 # Check for GNU $ac_path_EGREP
6247 case `"$ac_path_EGREP" --version 2>&1` in
6249 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6252 $as_echo_n 0123456789 >"conftest.in"
6255 cat "conftest.in" "conftest.in" >"conftest.tmp"
6256 mv "conftest.tmp" "conftest.in"
6257 cp "conftest.in" "conftest.nl"
6258 $as_echo 'EGREP' >> "conftest.nl"
6259 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6260 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6261 as_fn_arith $ac_count + 1 && ac_count=$as_val
6262 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6263 # Best one so far, save it but keep looking for a better one
6264 ac_cv_path_EGREP="$ac_path_EGREP"
6265 ac_path_EGREP_max=$ac_count
6267 # 10*(2^10) chars as input seems more than enough
6268 test $ac_count -gt 10 && break
6270 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6273 $ac_path_EGREP_found && break 3
6278 if test -z "$ac_cv_path_EGREP"; then
6279 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6282 ac_cv_path_EGREP=$EGREP
6287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6288 $as_echo "$ac_cv_path_EGREP" >&6; }
6289 EGREP="$ac_cv_path_EGREP"
6292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6293 $as_echo_n "checking for ANSI C header files... " >&6; }
6294 if test "${ac_cv_header_stdc+set}" = set; then :
6295 $as_echo_n "(cached) " >&6
6297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6298 /* end confdefs.h. */
6312 if ac_fn_c_try_compile "$LINENO"; then :
6313 ac_cv_header_stdc=yes
6315 ac_cv_header_stdc=no
6317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6319 if test $ac_cv_header_stdc = yes; then
6320 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6322 /* end confdefs.h. */
6326 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6327 $EGREP "memchr" >/dev/null 2>&1; then :
6330 ac_cv_header_stdc=no
6336 if test $ac_cv_header_stdc = yes; then
6337 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6339 /* end confdefs.h. */
6343 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6344 $EGREP "free" >/dev/null 2>&1; then :
6347 ac_cv_header_stdc=no
6353 if test $ac_cv_header_stdc = yes; then
6354 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6355 if test "$cross_compiling" = yes; then :
6358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6359 /* end confdefs.h. */
6362 #if ((' ' & 0x0FF) == 0x020)
6363 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6364 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6366 # define ISLOWER(c) \
6367 (('a' <= (c) && (c) <= 'i') \
6368 || ('j' <= (c) && (c) <= 'r') \
6369 || ('s' <= (c) && (c) <= 'z'))
6370 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6373 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6378 for (i = 0; i < 256; i++)
6379 if (XOR (islower (i), ISLOWER (i))
6380 || toupper (i) != TOUPPER (i))
6385 if ac_fn_c_try_run "$LINENO"; then :
6388 ac_cv_header_stdc=no
6390 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6391 conftest.$ac_objext conftest.beam conftest.$ac_ext
6396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6397 $as_echo "$ac_cv_header_stdc" >&6; }
6398 if test $ac_cv_header_stdc = yes; then
6400 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
6405 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
6406 if test "${ac_cv_c_const+set}" = set; then :
6407 $as_echo_n "(cached) " >&6
6409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6410 /* end confdefs.h. */
6415 /* FIXME: Include the comments suggested by Paul. */
6417 /* Ultrix mips cc rejects this. */
6418 typedef int charset[2];
6420 /* SunOS 4.1.1 cc rejects this. */
6421 char const *const *pcpcc;
6423 /* NEC SVR4.0.2 mips cc rejects this. */
6424 struct point {int x, y;};
6425 static struct point const zero = {0,0};
6426 /* AIX XL C 1.02.0.0 rejects this.
6427 It does not let you subtract one const X* pointer from another in
6428 an arm of an if-expression whose if-part is not a constant
6430 const char *g = "string";
6431 pcpcc = &g + (g ? g-g : 0);
6432 /* HPUX 7.0 cc rejects these. */
6434 ppc = (char**) pcpcc;
6435 pcpcc = (char const *const *) ppc;
6436 { /* SCO 3.2v4 cc rejects this. */
6438 char const *s = 0 ? (char *) 0 : (char const *) 0;
6443 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6445 const int *foo = &x[0];
6448 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6449 typedef const int *iptr;
6453 { /* AIX XL C 1.02.0.0 rejects this saying
6454 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6455 struct s { int j; const int *ap[3]; };
6456 struct s *b; b->j = 5;
6458 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6462 return !cs[0] && !zero.x;
6469 if ac_fn_c_try_compile "$LINENO"; then :
6474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
6477 $as_echo "$ac_cv_c_const" >&6; }
6478 if test $ac_cv_c_const = no; then
6480 $as_echo "#define const /**/" >>confdefs.h
6485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed" >&5
6486 $as_echo_n "checking for signed... " >&6; }
6487 if test "${bh_cv_c_signed+set}" = set; then :
6488 $as_echo_n "(cached) " >&6
6490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6491 /* end confdefs.h. */
6501 if ac_fn_c_try_compile "$LINENO"; then :
6506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bh_cv_c_signed" >&5
6509 $as_echo "$bh_cv_c_signed" >&6; }
6510 if test $bh_cv_c_signed = no; then
6512 $as_echo "#define signed /**/" >>confdefs.h
6516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
6517 $as_echo_n "checking for inline... " >&6; }
6518 if test "${ac_cv_c_inline+set}" = set; then :
6519 $as_echo_n "(cached) " >&6
6522 for ac_kw in inline __inline__ __inline; do
6523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6524 /* end confdefs.h. */
6527 static $ac_kw foo_t static_foo () {return 0; }
6528 $ac_kw foo_t foo () {return 0; }
6532 if ac_fn_c_try_compile "$LINENO"; then :
6533 ac_cv_c_inline=$ac_kw
6535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6536 test "$ac_cv_c_inline" != no && break
6540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
6541 $as_echo "$ac_cv_c_inline" >&6; }
6543 case $ac_cv_c_inline in
6546 case $ac_cv_c_inline in
6548 *) ac_val=$ac_cv_c_inline;;
6550 cat >>confdefs.h <<_ACEOF
6552 #define inline $ac_val
6558 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6559 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6560 inttypes.h stdint.h unistd.h
6562 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6563 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6565 eval as_val=\$$as_ac_Header
6566 if test "x$as_val" = x""yes; then :
6567 cat >>confdefs.h <<_ACEOF
6568 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6576 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
6577 if test "x$ac_cv_type_off_t" = x""yes; then :
6581 cat >>confdefs.h <<_ACEOF
6582 #define off_t long int
6587 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6588 if test "x$ac_cv_type_size_t" = x""yes; then :
6592 cat >>confdefs.h <<_ACEOF
6593 #define size_t unsigned int
6599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long" >&5
6600 $as_echo_n "checking for long long... " >&6; }
6601 if test "${ac_cv_type_long_long+set}" = set; then :
6602 $as_echo_n "(cached) " >&6
6604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6605 /* end confdefs.h. */
6606 long long ll = 1LL; int i = 63;
6610 long long llmax = (long long) -1;
6611 return ll << i | ll >> i | llmax / ll | llmax % ll;
6616 if ac_fn_c_try_link "$LINENO"; then :
6617 ac_cv_type_long_long=yes
6619 ac_cv_type_long_long=no
6621 rm -f core conftest.err conftest.$ac_objext \
6622 conftest$ac_exeext conftest.$ac_ext
6624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long" >&5
6625 $as_echo "$ac_cv_type_long_long" >&6; }
6626 if test $ac_cv_type_long_long = yes; then
6628 $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
6633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
6634 $as_echo_n "checking for long double... " >&6; }
6635 if test "${gt_cv_c_long_double+set}" = set; then :
6636 $as_echo_n "(cached) " >&6
6638 if test "$GCC" = yes; then
6639 gt_cv_c_long_double=yes
6641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6642 /* end confdefs.h. */
6644 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
6645 long double foo = 0.0;
6646 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
6647 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
6657 if ac_fn_c_try_compile "$LINENO"; then :
6658 gt_cv_c_long_double=yes
6660 gt_cv_c_long_double=no
6662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_long_double" >&5
6666 $as_echo "$gt_cv_c_long_double" >&6; }
6667 if test $gt_cv_c_long_double = yes; then
6669 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
6674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
6675 $as_echo_n "checking for wchar_t... " >&6; }
6676 if test "${gt_cv_c_wchar_t+set}" = set; then :
6677 $as_echo_n "(cached) " >&6
6679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6680 /* end confdefs.h. */
6682 wchar_t foo = (wchar_t)'\0';
6691 if ac_fn_c_try_compile "$LINENO"; then :
6696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
6699 $as_echo "$gt_cv_c_wchar_t" >&6; }
6700 if test $gt_cv_c_wchar_t = yes; then
6702 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
6707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
6708 $as_echo_n "checking for wint_t... " >&6; }
6709 if test "${gt_cv_c_wint_t+set}" = set; then :
6710 $as_echo_n "(cached) " >&6
6712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6713 /* end confdefs.h. */
6715 wint_t foo = (wchar_t)'\0';
6724 if ac_fn_c_try_compile "$LINENO"; then :
6729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
6732 $as_echo "$gt_cv_c_wint_t" >&6; }
6733 if test $gt_cv_c_wint_t = yes; then
6735 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
6740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
6741 $as_echo_n "checking for inttypes.h... " >&6; }
6742 if test "${jm_ac_cv_header_inttypes_h+set}" = set; then :
6743 $as_echo_n "(cached) " >&6
6745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6746 /* end confdefs.h. */
6747 #include <sys/types.h>
6748 #include <inttypes.h>
6752 uintmax_t i = (uintmax_t) -1;
6757 if ac_fn_c_try_compile "$LINENO"; then :
6758 jm_ac_cv_header_inttypes_h=yes
6760 jm_ac_cv_header_inttypes_h=no
6762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_inttypes_h" >&5
6765 $as_echo "$jm_ac_cv_header_inttypes_h" >&6; }
6766 if test $jm_ac_cv_header_inttypes_h = yes; then
6768 cat >>confdefs.h <<_ACEOF
6769 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
6775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
6776 $as_echo_n "checking for stdint.h... " >&6; }
6777 if test "${jm_ac_cv_header_stdint_h+set}" = set; then :
6778 $as_echo_n "(cached) " >&6
6780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6781 /* end confdefs.h. */
6782 #include <sys/types.h>
6787 uintmax_t i = (uintmax_t) -1;
6792 if ac_fn_c_try_compile "$LINENO"; then :
6793 jm_ac_cv_header_stdint_h=yes
6795 jm_ac_cv_header_stdint_h=no
6797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_stdint_h" >&5
6800 $as_echo "$jm_ac_cv_header_stdint_h" >&6; }
6801 if test $jm_ac_cv_header_stdint_h = yes; then
6803 cat >>confdefs.h <<_ACEOF
6804 #define HAVE_STDINT_H_WITH_UINTMAX 1
6812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
6813 $as_echo_n "checking for intmax_t... " >&6; }
6814 if test "${gt_cv_c_intmax_t+set}" = set; then :
6815 $as_echo_n "(cached) " >&6
6817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6818 /* end confdefs.h. */
6822 #if HAVE_STDINT_H_WITH_UINTMAX
6825 #if HAVE_INTTYPES_H_WITH_UINTMAX
6826 #include <inttypes.h>
6837 if ac_fn_c_try_compile "$LINENO"; then :
6838 gt_cv_c_intmax_t=yes
6842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
6845 $as_echo "$gt_cv_c_intmax_t" >&6; }
6846 if test $gt_cv_c_intmax_t = yes; then
6848 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
6855 $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
6856 if test "${gt_cv_func_printf_posix+set}" = set; then :
6857 $as_echo_n "(cached) " >&6
6860 if test "$cross_compiling" = yes; then :
6862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6863 /* end confdefs.h. */
6865 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
6870 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6871 $EGREP "notposix" >/dev/null 2>&1; then :
6872 gt_cv_func_printf_posix="guessing no"
6874 gt_cv_func_printf_posix="guessing yes"
6880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6881 /* end confdefs.h. */
6885 /* The string "%2$d %1$d", with dollar characters protected from the shell's
6886 dollar expansion (possibly an autoconf bug). */
6887 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
6888 static char buf[100];
6891 sprintf (buf, format, 33, 55);
6892 return (strcmp (buf, "55 33") != 0);
6895 if ac_fn_c_try_run "$LINENO"; then :
6896 gt_cv_func_printf_posix=yes
6898 gt_cv_func_printf_posix=no
6900 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6901 conftest.$ac_objext conftest.beam conftest.$ac_ext
6906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
6907 $as_echo "$gt_cv_func_printf_posix" >&6; }
6908 case $gt_cv_func_printf_posix in
6911 $as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
6916 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6917 # for constant arguments. Useless!
6918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
6919 $as_echo_n "checking for working alloca.h... " >&6; }
6920 if test "${ac_cv_working_alloca_h+set}" = set; then :
6921 $as_echo_n "(cached) " >&6
6923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6924 /* end confdefs.h. */
6929 char *p = (char *) alloca (2 * sizeof (int));
6935 if ac_fn_c_try_link "$LINENO"; then :
6936 ac_cv_working_alloca_h=yes
6938 ac_cv_working_alloca_h=no
6940 rm -f core conftest.err conftest.$ac_objext \
6941 conftest$ac_exeext conftest.$ac_ext
6943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
6944 $as_echo "$ac_cv_working_alloca_h" >&6; }
6945 if test $ac_cv_working_alloca_h = yes; then
6947 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
6951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
6952 $as_echo_n "checking for alloca... " >&6; }
6953 if test "${ac_cv_func_alloca_works+set}" = set; then :
6954 $as_echo_n "(cached) " >&6
6956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6957 /* end confdefs.h. */
6959 # define alloca __builtin_alloca
6962 # include <malloc.h>
6963 # define alloca _alloca
6965 # ifdef HAVE_ALLOCA_H
6966 # include <alloca.h>
6971 # ifndef alloca /* predefined by HP cc +Olibcalls */
6982 char *p = (char *) alloca (1);
6988 if ac_fn_c_try_link "$LINENO"; then :
6989 ac_cv_func_alloca_works=yes
6991 ac_cv_func_alloca_works=no
6993 rm -f core conftest.err conftest.$ac_objext \
6994 conftest$ac_exeext conftest.$ac_ext
6996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
6997 $as_echo "$ac_cv_func_alloca_works" >&6; }
6999 if test $ac_cv_func_alloca_works = yes; then
7001 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
7004 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
7005 # that cause trouble. Some versions do not even contain alloca or
7006 # contain a buggy version. If you still want to use their alloca,
7007 # use ar to extract alloca.o from them instead of compiling alloca.c.
7009 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
7011 $as_echo "#define C_ALLOCA 1" >>confdefs.h
7014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
7015 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
7016 if test "${ac_cv_os_cray+set}" = set; then :
7017 $as_echo_n "(cached) " >&6
7019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7020 /* end confdefs.h. */
7021 #if defined CRAY && ! defined CRAY2
7028 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7029 $EGREP "webecray" >/dev/null 2>&1; then :
7037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
7038 $as_echo "$ac_cv_os_cray" >&6; }
7039 if test $ac_cv_os_cray = yes; then
7040 for ac_func in _getb67 GETB67 getb67; do
7041 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7042 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7043 eval as_val=\$$as_ac_var
7044 if test "x$as_val" = x""yes; then :
7046 cat >>confdefs.h <<_ACEOF
7047 #define CRAY_STACKSEG_END $ac_func
7056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
7057 $as_echo_n "checking stack direction for C alloca... " >&6; }
7058 if test "${ac_cv_c_stack_direction+set}" = set; then :
7059 $as_echo_n "(cached) " >&6
7061 if test "$cross_compiling" = yes; then :
7062 ac_cv_c_stack_direction=0
7064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7065 /* end confdefs.h. */
7066 $ac_includes_default
7068 find_stack_direction ()
7070 static char *addr = 0;
7075 return find_stack_direction ();
7078 return (&dummy > addr) ? 1 : -1;
7084 return find_stack_direction () < 0;
7087 if ac_fn_c_try_run "$LINENO"; then :
7088 ac_cv_c_stack_direction=1
7090 ac_cv_c_stack_direction=-1
7092 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7093 conftest.$ac_objext conftest.beam conftest.$ac_ext
7097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
7098 $as_echo "$ac_cv_c_stack_direction" >&6; }
7099 cat >>confdefs.h <<_ACEOF
7100 #define STACK_DIRECTION $ac_cv_c_stack_direction
7109 for ac_header in $ac_header_list
7111 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7112 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7114 eval as_val=\$$as_ac_Header
7115 if test "x$as_val" = x""yes; then :
7116 cat >>confdefs.h <<_ACEOF
7117 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7131 for ac_func in getpagesize
7133 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
7134 if test "x$ac_cv_func_getpagesize" = x""yes; then :
7135 cat >>confdefs.h <<_ACEOF
7136 #define HAVE_GETPAGESIZE 1
7142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
7143 $as_echo_n "checking for working mmap... " >&6; }
7144 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
7145 $as_echo_n "(cached) " >&6
7147 if test "$cross_compiling" = yes; then :
7148 ac_cv_func_mmap_fixed_mapped=no
7150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7151 /* end confdefs.h. */
7152 $ac_includes_default
7153 /* malloc might have been renamed as rpl_malloc. */
7156 /* Thanks to Mike Haertel and Jim Avera for this test.
7157 Here is a matrix of mmap possibilities:
7158 mmap private not fixed
7159 mmap private fixed at somewhere currently unmapped
7160 mmap private fixed at somewhere already mapped
7161 mmap shared not fixed
7162 mmap shared fixed at somewhere currently unmapped
7163 mmap shared fixed at somewhere already mapped
7164 For private mappings, we should verify that changes cannot be read()
7165 back from the file, nor mmap's back from the file at a different
7166 address. (There have been systems where private was not correctly
7167 implemented like the infamous i386 svr4.0, and systems where the
7168 VM page cache was not coherent with the file system buffer cache
7169 like early versions of FreeBSD and possibly contemporary NetBSD.)
7170 For shared mappings, we should conversely verify that changes get
7171 propagated back to all the places they're supposed to be.
7173 Grep wants private fixed already mapped.
7174 The main things grep needs to know about mmap are:
7175 * does it exist and is it safe to write into the mmap'd area
7176 * how to use it (BSD variants) */
7179 #include <sys/mman.h>
7181 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7185 /* This mess was copied from the GNU getpagesize.h. */
7186 #ifndef HAVE_GETPAGESIZE
7187 # ifdef _SC_PAGESIZE
7188 # define getpagesize() sysconf(_SC_PAGESIZE)
7189 # else /* no _SC_PAGESIZE */
7190 # ifdef HAVE_SYS_PARAM_H
7191 # include <sys/param.h>
7192 # ifdef EXEC_PAGESIZE
7193 # define getpagesize() EXEC_PAGESIZE
7194 # else /* no EXEC_PAGESIZE */
7196 # define getpagesize() NBPG * CLSIZE
7199 # endif /* no CLSIZE */
7200 # else /* no NBPG */
7202 # define getpagesize() NBPC
7203 # else /* no NBPC */
7205 # define getpagesize() PAGESIZE
7206 # endif /* PAGESIZE */
7207 # endif /* no NBPC */
7208 # endif /* no NBPG */
7209 # endif /* no EXEC_PAGESIZE */
7210 # else /* no HAVE_SYS_PARAM_H */
7211 # define getpagesize() 8192 /* punt totally */
7212 # endif /* no HAVE_SYS_PARAM_H */
7213 # endif /* no _SC_PAGESIZE */
7215 #endif /* no HAVE_GETPAGESIZE */
7220 char *data, *data2, *data3;
7225 pagesize = getpagesize ();
7227 /* First, make a file with some known garbage in it. */
7228 data = (char *) malloc (pagesize);
7231 for (i = 0; i < pagesize; ++i)
7232 *(data + i) = rand ();
7234 fd = creat ("conftest.mmap", 0600);
7237 if (write (fd, data, pagesize) != pagesize)
7241 /* Next, check that the tail of a page is zero-filled. File must have
7242 non-zero length, otherwise we risk SIGBUS for entire page. */
7243 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7247 if (write (fd2, cdata2, 1) != 1)
7249 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7250 if (data2 == MAP_FAILED)
7252 for (i = 0; i < pagesize; ++i)
7256 if (munmap (data2, pagesize))
7259 /* Next, try to mmap the file at a fixed address which already has
7260 something else allocated at it. If we can, also make sure that
7261 we see the same garbage. */
7262 fd = open ("conftest.mmap", O_RDWR);
7265 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7266 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7268 for (i = 0; i < pagesize; ++i)
7269 if (*(data + i) != *(data2 + i))
7272 /* Finally, make sure that changes to the mapped area do not
7273 percolate back to the file as seen by read(). (This is a bug on
7274 some variants of i386 svr4.0.) */
7275 for (i = 0; i < pagesize; ++i)
7276 *(data2 + i) = *(data2 + i) + 1;
7277 data3 = (char *) malloc (pagesize);
7280 if (read (fd, data3, pagesize) != pagesize)
7282 for (i = 0; i < pagesize; ++i)
7283 if (*(data + i) != *(data3 + i))
7289 if ac_fn_c_try_run "$LINENO"; then :
7290 ac_cv_func_mmap_fixed_mapped=yes
7292 ac_cv_func_mmap_fixed_mapped=no
7294 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7295 conftest.$ac_objext conftest.beam conftest.$ac_ext
7299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
7300 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
7301 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7303 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
7306 rm -f conftest.mmap conftest.txt
7309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
7310 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
7311 if test "${ac_cv_gnu_library_2_1+set}" = set; then :
7312 $as_echo_n "(cached) " >&6
7314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7315 /* end confdefs.h. */
7317 #include <features.h>
7318 #ifdef __GNU_LIBRARY__
7319 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
7325 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7326 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
7327 ac_cv_gnu_library_2_1=yes
7329 ac_cv_gnu_library_2_1=no
7336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
7337 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
7339 GLIBC21="$ac_cv_gnu_library_2_1"
7344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
7345 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
7346 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then :
7347 $as_echo_n "(cached) " >&6
7350 if test "$cross_compiling" = yes; then :
7352 # Guess based on the CPU.
7354 alpha* | i3456786 | m68k | s390*)
7355 gt_cv_int_divbyzero_sigfpe="guessing yes";;
7357 gt_cv_int_divbyzero_sigfpe="guessing no";;
7361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7362 /* end confdefs.h. */
7369 sigfpe_handler (int sig)
7371 sigfpe_handler (sig) int sig;
7374 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
7375 exit (sig != SIGFPE);
7385 signal (SIGFPE, sigfpe_handler);
7386 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
7387 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
7388 signal (SIGTRAP, sigfpe_handler);
7390 /* Linux/SPARC yields signal SIGILL. */
7391 #if defined (__sparc__) && defined (__linux__)
7392 signal (SIGILL, sigfpe_handler);
7401 if ac_fn_c_try_run "$LINENO"; then :
7402 gt_cv_int_divbyzero_sigfpe=yes
7404 gt_cv_int_divbyzero_sigfpe=no
7406 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7407 conftest.$ac_objext conftest.beam conftest.$ac_ext
7412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
7413 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
7414 case "$gt_cv_int_divbyzero_sigfpe" in
7419 cat >>confdefs.h <<_ACEOF
7420 #define INTDIV0_RAISES_SIGFPE $value
7425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long" >&5
7426 $as_echo_n "checking for unsigned long long... " >&6; }
7427 if test "${ac_cv_type_unsigned_long_long+set}" = set; then :
7428 $as_echo_n "(cached) " >&6
7430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7431 /* end confdefs.h. */
7432 unsigned long long ull = 1ULL; int i = 63;
7436 unsigned long long ullmax = (unsigned long long) -1;
7437 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
7442 if ac_fn_c_try_link "$LINENO"; then :
7443 ac_cv_type_unsigned_long_long=yes
7445 ac_cv_type_unsigned_long_long=no
7447 rm -f core conftest.err conftest.$ac_objext \
7448 conftest$ac_exeext conftest.$ac_ext
7450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long" >&5
7451 $as_echo "$ac_cv_type_unsigned_long_long" >&6; }
7452 if test $ac_cv_type_unsigned_long_long = yes; then
7454 $as_echo "#define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h
7461 if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
7463 test $ac_cv_type_unsigned_long_long = yes \
7464 && ac_type='unsigned long long' \
7465 || ac_type='unsigned long'
7467 cat >>confdefs.h <<_ACEOF
7468 #define uintmax_t $ac_type
7473 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
7478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
7479 $as_echo_n "checking for inttypes.h... " >&6; }
7480 if test "${gt_cv_header_inttypes_h+set}" = set; then :
7481 $as_echo_n "(cached) " >&6
7484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7485 /* end confdefs.h. */
7486 #include <sys/types.h>
7487 #include <inttypes.h>
7496 if ac_fn_c_try_compile "$LINENO"; then :
7497 gt_cv_header_inttypes_h=yes
7499 gt_cv_header_inttypes_h=no
7501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_header_inttypes_h" >&5
7505 $as_echo "$gt_cv_header_inttypes_h" >&6; }
7506 if test $gt_cv_header_inttypes_h = yes; then
7508 cat >>confdefs.h <<_ACEOF
7509 #define HAVE_INTTYPES_H 1
7516 if test $gt_cv_header_inttypes_h = yes; then
7517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
7518 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
7519 if test "${gt_cv_inttypes_pri_broken+set}" = set; then :
7520 $as_echo_n "(cached) " >&6
7523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7524 /* end confdefs.h. */
7525 #include <inttypes.h>
7538 if ac_fn_c_try_compile "$LINENO"; then :
7539 gt_cv_inttypes_pri_broken=no
7541 gt_cv_inttypes_pri_broken=yes
7543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
7547 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
7549 if test "$gt_cv_inttypes_pri_broken" = yes; then
7551 cat >>confdefs.h <<_ACEOF
7552 #define PRI_MACROS_BROKEN 1
7558 for ac_header in stdint.h
7560 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
7561 if test "x$ac_cv_header_stdint_h" = x""yes; then :
7562 cat >>confdefs.h <<_ACEOF
7563 #define HAVE_STDINT_H 1
7570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
7571 $as_echo_n "checking for SIZE_MAX... " >&6; }
7573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7574 /* end confdefs.h. */
7585 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7586 $EGREP "Found it" >/dev/null 2>&1; then :
7591 if test -z "$result"; then
7592 if ac_fn_c_compute_int "$LINENO" "~(size_t)0 / 10" "res_hi" "#include <stddef.h>"; then :
7599 if ac_fn_c_compute_int "$LINENO" "~(size_t)0 % 10" "res_lo" "#include <stddef.h>"; then :
7606 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then :
7613 if test "$fits_in_uint" = 1; then
7614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7615 /* end confdefs.h. */
7618 extern unsigned long foo;
7628 if ac_fn_c_try_compile "$LINENO"; then :
7631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7633 if test -z "$result"; then
7634 if test "$fits_in_uint" = 1; then
7635 result="$res_hi$res_lo"U
7637 result="$res_hi$res_lo"UL
7643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
7644 $as_echo "$result" >&6; }
7645 if test "$result" != yes; then
7647 cat >>confdefs.h <<_ACEOF
7648 #define SIZE_MAX $result
7655 for ac_header in stdint.h
7657 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
7658 if test "x$ac_cv_header_stdint_h" = x""yes; then :
7659 cat >>confdefs.h <<_ACEOF
7660 #define HAVE_STDINT_H 1
7669 if test "X$prefix" = "XNONE"; then
7670 acl_final_prefix="$ac_default_prefix"
7672 acl_final_prefix="$prefix"
7674 if test "X$exec_prefix" = "XNONE"; then
7675 acl_final_exec_prefix='${prefix}'
7677 acl_final_exec_prefix="$exec_prefix"
7679 acl_save_prefix="$prefix"
7680 prefix="$acl_final_prefix"
7681 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7682 prefix="$acl_save_prefix"
7685 # Check whether --with-gnu-ld was given.
7686 if test "${with_gnu_ld+set}" = set; then :
7687 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7692 # Prepare PATH_SEPARATOR.
7693 # The user is always right.
7694 if test "${PATH_SEPARATOR+set}" != set; then
7695 echo "#! /bin/sh" >conf$$.sh
7696 echo "exit 0" >>conf$$.sh
7698 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7706 if test "$GCC" = yes; then
7707 # Check if gcc -print-prog-name=ld gives a path.
7708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
7709 $as_echo_n "checking for ld used by GCC... " >&6; }
7712 # gcc leaves a trailing carriage return which upsets mingw
7713 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7715 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7718 # Accept absolute paths.
7719 [\\/]* | [A-Za-z]:[\\/]*)
7720 re_direlt='/[^/][^/]*/\.\./'
7721 # Canonicalize the path of ld
7722 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
7723 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
7724 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
7726 test -z "$LD" && LD="$ac_prog"
7729 # If it fails, then pretend we aren't using GCC.
7733 # If it is relative, then search for the first ld in PATH.
7737 elif test "$with_gnu_ld" = yes; then
7738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7739 $as_echo_n "checking for GNU ld... " >&6; }
7741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7742 $as_echo_n "checking for non-GNU ld... " >&6; }
7744 if test "${acl_cv_path_LD+set}" = set; then :
7745 $as_echo_n "(cached) " >&6
7747 if test -z "$LD"; then
7748 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
7749 for ac_dir in $PATH; do
7750 test -z "$ac_dir" && ac_dir=.
7751 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7752 acl_cv_path_LD="$ac_dir/$ac_prog"
7753 # Check to see if the program is GNU ld. I'd rather use --version,
7754 # but apparently some GNU ld's only accept -v.
7755 # Break only if it was the GNU/non-GNU ld that we prefer.
7756 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
7757 *GNU* | *'with BFD'*)
7758 test "$with_gnu_ld" != no && break ;;
7760 test "$with_gnu_ld" != yes && break ;;
7766 acl_cv_path_LD="$LD" # Let the user override the test with a path.
7770 LD="$acl_cv_path_LD"
7771 if test -n "$LD"; then
7772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7773 $as_echo "$LD" >&6; }
7775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7776 $as_echo "no" >&6; }
7778 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
7779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7780 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7781 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
7782 $as_echo_n "(cached) " >&6
7784 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
7785 case `$LD -v 2>&1 </dev/null` in
7786 *GNU* | *'with BFD'*)
7787 acl_cv_prog_gnu_ld=yes ;;
7789 acl_cv_prog_gnu_ld=no ;;
7792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
7793 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
7794 with_gnu_ld=$acl_cv_prog_gnu_ld
7798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
7799 $as_echo_n "checking for shared library run path origin... " >&6; }
7800 if test "${acl_cv_rpath+set}" = set; then :
7801 $as_echo_n "(cached) " >&6
7804 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
7805 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
7812 $as_echo "$acl_cv_rpath" >&6; }
7814 libext="$acl_cv_libext"
7815 shlibext="$acl_cv_shlibext"
7816 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
7817 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
7818 hardcode_direct="$acl_cv_hardcode_direct"
7819 hardcode_minus_L="$acl_cv_hardcode_minus_L"
7820 # Check whether --enable-rpath was given.
7821 if test "${enable_rpath+set}" = set; then :
7822 enableval=$enable_rpath; :
7836 acl_save_prefix="$prefix"
7837 prefix="$acl_final_prefix"
7838 acl_save_exec_prefix="$exec_prefix"
7839 exec_prefix="$acl_final_exec_prefix"
7841 eval additional_includedir=\"$includedir\"
7842 eval additional_libdir=\"$libdir\"
7844 exec_prefix="$acl_save_exec_prefix"
7845 prefix="$acl_save_prefix"
7848 # Check whether --with-libiconv-prefix was given.
7849 if test "${with_libiconv_prefix+set}" = set; then :
7850 withval=$with_libiconv_prefix;
7851 if test "X$withval" = "Xno"; then
7854 if test "X$withval" = "X"; then
7856 acl_save_prefix="$prefix"
7857 prefix="$acl_final_prefix"
7858 acl_save_exec_prefix="$exec_prefix"
7859 exec_prefix="$acl_final_exec_prefix"
7861 eval additional_includedir=\"$includedir\"
7862 eval additional_libdir=\"$libdir\"
7864 exec_prefix="$acl_save_exec_prefix"
7865 prefix="$acl_save_prefix"
7868 additional_includedir="$withval/include"
7869 additional_libdir="$withval/lib"
7880 names_already_handled=
7881 names_next_round='iconv '
7882 while test -n "$names_next_round"; do
7883 names_this_round="$names_next_round"
7885 for name in $names_this_round; do
7887 for n in $names_already_handled; do
7888 if test "$n" = "$name"; then
7893 if test -z "$already_handled"; then
7894 names_already_handled="$names_already_handled $name"
7895 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7896 eval value=\"\$HAVE_LIB$uppername\"
7897 if test -n "$value"; then
7898 if test "$value" = yes; then
7899 eval value=\"\$LIB$uppername\"
7900 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
7901 eval value=\"\$LTLIB$uppername\"
7902 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
7911 if test $use_additional = yes; then
7912 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
7913 found_dir="$additional_libdir"
7914 found_so="$additional_libdir/lib$name.$shlibext"
7915 if test -f "$additional_libdir/lib$name.la"; then
7916 found_la="$additional_libdir/lib$name.la"
7919 if test -f "$additional_libdir/lib$name.$libext"; then
7920 found_dir="$additional_libdir"
7921 found_a="$additional_libdir/lib$name.$libext"
7922 if test -f "$additional_libdir/lib$name.la"; then
7923 found_la="$additional_libdir/lib$name.la"
7928 if test "X$found_dir" = "X"; then
7929 for x in $LDFLAGS $LTLIBICONV; do
7931 acl_save_prefix="$prefix"
7932 prefix="$acl_final_prefix"
7933 acl_save_exec_prefix="$exec_prefix"
7934 exec_prefix="$acl_final_exec_prefix"
7936 exec_prefix="$acl_save_exec_prefix"
7937 prefix="$acl_save_prefix"
7941 dir=`echo "X$x" | sed -e 's/^X-L//'`
7942 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
7944 found_so="$dir/lib$name.$shlibext"
7945 if test -f "$dir/lib$name.la"; then
7946 found_la="$dir/lib$name.la"
7949 if test -f "$dir/lib$name.$libext"; then
7951 found_a="$dir/lib$name.$libext"
7952 if test -f "$dir/lib$name.la"; then
7953 found_la="$dir/lib$name.la"
7959 if test "X$found_dir" != "X"; then
7964 if test "X$found_dir" != "X"; then
7965 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
7966 if test "X$found_so" != "X"; then
7967 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
7968 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7971 for x in $ltrpathdirs; do
7972 if test "X$x" = "X$found_dir"; then
7977 if test -z "$haveit"; then
7978 ltrpathdirs="$ltrpathdirs $found_dir"
7980 if test "$hardcode_direct" = yes; then
7981 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7983 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
7984 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7986 for x in $rpathdirs; do
7987 if test "X$x" = "X$found_dir"; then
7992 if test -z "$haveit"; then
7993 rpathdirs="$rpathdirs $found_dir"
7997 for x in $LDFLAGS $LIBICONV; do
7999 acl_save_prefix="$prefix"
8000 prefix="$acl_final_prefix"
8001 acl_save_exec_prefix="$exec_prefix"
8002 exec_prefix="$acl_final_exec_prefix"
8004 exec_prefix="$acl_save_exec_prefix"
8005 prefix="$acl_save_prefix"
8007 if test "X$x" = "X-L$found_dir"; then
8012 if test -z "$haveit"; then
8013 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
8015 if test "$hardcode_minus_L" != no; then
8016 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8018 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8024 if test "X$found_a" != "X"; then
8025 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
8027 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
8030 additional_includedir=
8031 case "$found_dir" in
8033 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
8034 additional_includedir="$basedir/include"
8037 if test "X$additional_includedir" != "X"; then
8038 if test "X$additional_includedir" != "X/usr/include"; then
8040 if test "X$additional_includedir" = "X/usr/local/include"; then
8041 if test -n "$GCC"; then
8043 linux*) haveit=yes;;
8047 if test -z "$haveit"; then
8048 for x in $CPPFLAGS $INCICONV; do
8050 acl_save_prefix="$prefix"
8051 prefix="$acl_final_prefix"
8052 acl_save_exec_prefix="$exec_prefix"
8053 exec_prefix="$acl_final_exec_prefix"
8055 exec_prefix="$acl_save_exec_prefix"
8056 prefix="$acl_save_prefix"
8058 if test "X$x" = "X-I$additional_includedir"; then
8063 if test -z "$haveit"; then
8064 if test -d "$additional_includedir"; then
8065 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
8071 if test -n "$found_la"; then
8072 save_libdir="$libdir"
8074 */* | *\\*) . "$found_la" ;;
8075 *) . "./$found_la" ;;
8077 libdir="$save_libdir"
8078 for dep in $dependency_libs; do
8081 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8082 if test "X$additional_libdir" != "X/usr/lib"; then
8084 if test "X$additional_libdir" = "X/usr/local/lib"; then
8085 if test -n "$GCC"; then
8087 linux*) haveit=yes;;
8091 if test -z "$haveit"; then
8093 for x in $LDFLAGS $LIBICONV; do
8095 acl_save_prefix="$prefix"
8096 prefix="$acl_final_prefix"
8097 acl_save_exec_prefix="$exec_prefix"
8098 exec_prefix="$acl_final_exec_prefix"
8100 exec_prefix="$acl_save_exec_prefix"
8101 prefix="$acl_save_prefix"
8103 if test "X$x" = "X-L$additional_libdir"; then
8108 if test -z "$haveit"; then
8109 if test -d "$additional_libdir"; then
8110 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
8114 for x in $LDFLAGS $LTLIBICONV; do
8116 acl_save_prefix="$prefix"
8117 prefix="$acl_final_prefix"
8118 acl_save_exec_prefix="$exec_prefix"
8119 exec_prefix="$acl_final_exec_prefix"
8121 exec_prefix="$acl_save_exec_prefix"
8122 prefix="$acl_save_prefix"
8124 if test "X$x" = "X-L$additional_libdir"; then
8129 if test -z "$haveit"; then
8130 if test -d "$additional_libdir"; then
8131 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
8138 dir=`echo "X$dep" | sed -e 's/^X-R//'`
8139 if test "$enable_rpath" != no; then
8141 for x in $rpathdirs; do
8142 if test "X$x" = "X$dir"; then
8147 if test -z "$haveit"; then
8148 rpathdirs="$rpathdirs $dir"
8151 for x in $ltrpathdirs; do
8152 if test "X$x" = "X$dir"; then
8157 if test -z "$haveit"; then
8158 ltrpathdirs="$ltrpathdirs $dir"
8163 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8166 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8169 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
8170 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
8176 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8177 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
8183 if test "X$rpathdirs" != "X"; then
8184 if test -n "$hardcode_libdir_separator"; then
8186 for found_dir in $rpathdirs; do
8187 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8189 acl_save_libdir="$libdir"
8191 eval flag=\"$hardcode_libdir_flag_spec\"
8192 libdir="$acl_save_libdir"
8193 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8195 for found_dir in $rpathdirs; do
8196 acl_save_libdir="$libdir"
8198 eval flag=\"$hardcode_libdir_flag_spec\"
8199 libdir="$acl_save_libdir"
8200 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8204 if test "X$ltrpathdirs" != "X"; then
8205 for found_dir in $ltrpathdirs; do
8206 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
8217 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
8218 if test "x$ac_cv_type_ptrdiff_t" = x""yes; then :
8222 $as_echo "#define ptrdiff_t long" >>confdefs.h
8227 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
8228 stdlib.h string.h unistd.h sys/param.h
8230 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8231 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8232 eval as_val=\$$as_ac_Header
8233 if test "x$as_val" = x""yes; then :
8234 cat >>confdefs.h <<_ACEOF
8235 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8242 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
8243 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
8244 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
8247 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8248 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8249 eval as_val=\$$as_ac_var
8250 if test "x$as_val" = x""yes; then :
8251 cat >>confdefs.h <<_ACEOF
8252 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snprintf is declared" >&5
8261 $as_echo_n "checking whether _snprintf is declared... " >&6; }
8262 if test "${ac_cv_have_decl__snprintf+set}" = set; then :
8263 $as_echo_n "(cached) " >&6
8265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8266 /* end confdefs.h. */
8273 char *p = (char *) _snprintf;
8280 if ac_fn_c_try_compile "$LINENO"; then :
8281 ac_cv_have_decl__snprintf=yes
8283 ac_cv_have_decl__snprintf=no
8285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snprintf" >&5
8288 $as_echo "$ac_cv_have_decl__snprintf" >&6; }
8289 if test $ac_cv_have_decl__snprintf = yes; then
8295 cat >>confdefs.h <<_ACEOF
8296 #define HAVE_DECL__SNPRINTF $gt_value
8301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snwprintf is declared" >&5
8302 $as_echo_n "checking whether _snwprintf is declared... " >&6; }
8303 if test "${ac_cv_have_decl__snwprintf+set}" = set; then :
8304 $as_echo_n "(cached) " >&6
8306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8307 /* end confdefs.h. */
8314 char *p = (char *) _snwprintf;
8321 if ac_fn_c_try_compile "$LINENO"; then :
8322 ac_cv_have_decl__snwprintf=yes
8324 ac_cv_have_decl__snwprintf=no
8326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snwprintf" >&5
8329 $as_echo "$ac_cv_have_decl__snwprintf" >&6; }
8330 if test $ac_cv_have_decl__snwprintf = yes; then
8336 cat >>confdefs.h <<_ACEOF
8337 #define HAVE_DECL__SNWPRINTF $gt_value
8343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether feof_unlocked is declared" >&5
8344 $as_echo_n "checking whether feof_unlocked is declared... " >&6; }
8345 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then :
8346 $as_echo_n "(cached) " >&6
8348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8349 /* end confdefs.h. */
8355 #ifndef feof_unlocked
8356 char *p = (char *) feof_unlocked;
8363 if ac_fn_c_try_compile "$LINENO"; then :
8364 ac_cv_have_decl_feof_unlocked=yes
8366 ac_cv_have_decl_feof_unlocked=no
8368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_feof_unlocked" >&5
8371 $as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
8372 if test $ac_cv_have_decl_feof_unlocked = yes; then
8378 cat >>confdefs.h <<_ACEOF
8379 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
8384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fgets_unlocked is declared" >&5
8385 $as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
8386 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then :
8387 $as_echo_n "(cached) " >&6
8389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8390 /* end confdefs.h. */
8396 #ifndef fgets_unlocked
8397 char *p = (char *) fgets_unlocked;
8404 if ac_fn_c_try_compile "$LINENO"; then :
8405 ac_cv_have_decl_fgets_unlocked=yes
8407 ac_cv_have_decl_fgets_unlocked=no
8409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_fgets_unlocked" >&5
8412 $as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
8413 if test $ac_cv_have_decl_fgets_unlocked = yes; then
8419 cat >>confdefs.h <<_ACEOF
8420 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
8425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getc_unlocked is declared" >&5
8426 $as_echo_n "checking whether getc_unlocked is declared... " >&6; }
8427 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then :
8428 $as_echo_n "(cached) " >&6
8430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8431 /* end confdefs.h. */
8437 #ifndef getc_unlocked
8438 char *p = (char *) getc_unlocked;
8445 if ac_fn_c_try_compile "$LINENO"; then :
8446 ac_cv_have_decl_getc_unlocked=yes
8448 ac_cv_have_decl_getc_unlocked=no
8450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_getc_unlocked" >&5
8453 $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
8454 if test $ac_cv_have_decl_getc_unlocked = yes; then
8460 cat >>confdefs.h <<_ACEOF
8461 #define HAVE_DECL_GETC_UNLOCKED $gt_value
8466 case $gt_cv_func_printf_posix in
8467 *yes) HAVE_POSIX_PRINTF=1 ;;
8468 *) HAVE_POSIX_PRINTF=0 ;;
8471 if test "$ac_cv_func_asprintf" = yes; then
8477 if test "$ac_cv_func_snprintf" = yes; then
8483 if test "$ac_cv_func_wprintf" = yes; then
8495 am_save_CPPFLAGS="$CPPFLAGS"
8497 for element in $INCICONV; do
8499 for x in $CPPFLAGS; do
8501 acl_save_prefix="$prefix"
8502 prefix="$acl_final_prefix"
8503 acl_save_exec_prefix="$exec_prefix"
8504 exec_prefix="$acl_final_exec_prefix"
8506 exec_prefix="$acl_save_exec_prefix"
8507 prefix="$acl_save_prefix"
8509 if test "X$x" = "X$element"; then
8514 if test -z "$haveit"; then
8515 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
8521 $as_echo_n "checking for iconv... " >&6; }
8522 if test "${am_cv_func_iconv+set}" = set; then :
8523 $as_echo_n "(cached) " >&6
8526 am_cv_func_iconv="no, consider installing GNU libiconv"
8528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8529 /* end confdefs.h. */
8535 iconv_t cd = iconv_open("","");
8536 iconv(cd,NULL,NULL,NULL,NULL);
8542 if ac_fn_c_try_link "$LINENO"; then :
8543 am_cv_func_iconv=yes
8545 rm -f core conftest.err conftest.$ac_objext \
8546 conftest$ac_exeext conftest.$ac_ext
8547 if test "$am_cv_func_iconv" != yes; then
8548 am_save_LIBS="$LIBS"
8549 LIBS="$LIBS $LIBICONV"
8550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8551 /* end confdefs.h. */
8557 iconv_t cd = iconv_open("","");
8558 iconv(cd,NULL,NULL,NULL,NULL);
8564 if ac_fn_c_try_link "$LINENO"; then :
8566 am_cv_func_iconv=yes
8568 rm -f core conftest.err conftest.$ac_objext \
8569 conftest$ac_exeext conftest.$ac_ext
8570 LIBS="$am_save_LIBS"
8574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
8575 $as_echo "$am_cv_func_iconv" >&6; }
8576 if test "$am_cv_func_iconv" = yes; then
8578 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
8581 if test "$am_cv_lib_iconv" = yes; then
8582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
8583 $as_echo_n "checking how to link with libiconv... " >&6; }
8584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
8585 $as_echo "$LIBICONV" >&6; }
8587 CPPFLAGS="$am_save_CPPFLAGS"
8594 if test "$am_cv_func_iconv" = yes; then
8595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
8596 $as_echo_n "checking for iconv declaration... " >&6; }
8597 if test "${am_cv_proto_iconv+set}" = set; then :
8598 $as_echo_n "(cached) " >&6
8601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8602 /* end confdefs.h. */
8610 #if defined(__STDC__) || defined(__cplusplus)
8611 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
8624 if ac_fn_c_try_compile "$LINENO"; then :
8625 am_cv_proto_iconv_arg1=""
8627 am_cv_proto_iconv_arg1="const"
8629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8630 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);"
8633 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
8634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
8635 }$am_cv_proto_iconv" >&5
8637 }$am_cv_proto_iconv" >&6; }
8639 cat >>confdefs.h <<_ACEOF
8640 #define ICONV_CONST $am_cv_proto_iconv_arg1
8646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
8647 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
8648 if test "${am_cv_langinfo_codeset+set}" = set; then :
8649 $as_echo_n "(cached) " >&6
8651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8652 /* end confdefs.h. */
8653 #include <langinfo.h>
8657 char* cs = nl_langinfo(CODESET);
8662 if ac_fn_c_try_link "$LINENO"; then :
8663 am_cv_langinfo_codeset=yes
8665 am_cv_langinfo_codeset=no
8667 rm -f core conftest.err conftest.$ac_objext \
8668 conftest$ac_exeext conftest.$ac_ext
8671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
8672 $as_echo "$am_cv_langinfo_codeset" >&6; }
8673 if test $am_cv_langinfo_codeset = yes; then
8675 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
8679 if test $ac_cv_header_locale_h = yes; then
8681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
8682 $as_echo_n "checking for LC_MESSAGES... " >&6; }
8683 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
8684 $as_echo_n "(cached) " >&6
8686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8687 /* end confdefs.h. */
8697 if ac_fn_c_try_link "$LINENO"; then :
8698 am_cv_val_LC_MESSAGES=yes
8700 am_cv_val_LC_MESSAGES=no
8702 rm -f core conftest.err conftest.$ac_objext \
8703 conftest$ac_exeext conftest.$ac_ext
8705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
8706 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
8707 if test $am_cv_val_LC_MESSAGES = yes; then
8709 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
8715 for ac_prog in bison
8717 # Extract the first word of "$ac_prog", so it can be a program name with args.
8718 set dummy $ac_prog; ac_word=$2
8719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8720 $as_echo_n "checking for $ac_word... " >&6; }
8721 if test "${ac_cv_prog_INTLBISON+set}" = set; then :
8722 $as_echo_n "(cached) " >&6
8724 if test -n "$INTLBISON"; then
8725 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
8727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8731 test -z "$as_dir" && as_dir=.
8732 for ac_exec_ext in '' $ac_executable_extensions; do
8733 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8734 ac_cv_prog_INTLBISON="$ac_prog"
8735 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8744 INTLBISON=$ac_cv_prog_INTLBISON
8745 if test -n "$INTLBISON"; then
8746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
8747 $as_echo "$INTLBISON" >&6; }
8749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8750 $as_echo "no" >&6; }
8754 test -n "$INTLBISON" && break
8757 if test -z "$INTLBISON"; then
8760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
8761 $as_echo_n "checking version of bison... " >&6; }
8762 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
8763 case $ac_prog_version in
8764 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
8765 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
8766 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
8767 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
8769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
8770 $as_echo "$ac_prog_version" >&6; }
8772 if test $ac_verc_fail = yes; then
8791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
8792 $as_echo_n "checking whether NLS is requested... " >&6; }
8793 # Check whether --enable-nls was given.
8794 if test "${enable_nls+set}" = set; then :
8795 enableval=$enable_nls; USE_NLS=$enableval
8800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
8801 $as_echo "$USE_NLS" >&6; }
8806 BUILD_INCLUDED_LIBINTL=no
8807 USE_INCLUDED_LIBINTL=no
8813 if test "$USE_NLS" = "yes"; then
8814 gt_use_preinstalled_gnugettext=no
8816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
8817 $as_echo_n "checking whether included gettext is requested... " >&6; }
8819 # Check whether --with-included-gettext was given.
8820 if test "${with_included_gettext+set}" = set; then :
8821 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
8823 nls_cv_force_use_gnu_gettext=no
8826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
8827 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
8829 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
8830 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
8837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
8838 $as_echo_n "checking for GNU gettext in libc... " >&6; }
8839 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then :
8840 $as_echo_n "(cached) " >&6
8842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8843 /* end confdefs.h. */
8844 #include <libintl.h>
8845 extern int _nl_msg_cat_cntr;
8846 extern int *_nl_domain_bindings;
8850 bindtextdomain ("", "");
8851 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
8856 if ac_fn_c_try_link "$LINENO"; then :
8857 gt_cv_func_gnugettext1_libc=yes
8859 gt_cv_func_gnugettext1_libc=no
8861 rm -f core conftest.err conftest.$ac_objext \
8862 conftest$ac_exeext conftest.$ac_ext
8864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
8865 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
8867 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
8873 acl_save_prefix="$prefix"
8874 prefix="$acl_final_prefix"
8875 acl_save_exec_prefix="$exec_prefix"
8876 exec_prefix="$acl_final_exec_prefix"
8878 eval additional_includedir=\"$includedir\"
8879 eval additional_libdir=\"$libdir\"
8881 exec_prefix="$acl_save_exec_prefix"
8882 prefix="$acl_save_prefix"
8885 # Check whether --with-libintl-prefix was given.
8886 if test "${with_libintl_prefix+set}" = set; then :
8887 withval=$with_libintl_prefix;
8888 if test "X$withval" = "Xno"; then
8891 if test "X$withval" = "X"; then
8893 acl_save_prefix="$prefix"
8894 prefix="$acl_final_prefix"
8895 acl_save_exec_prefix="$exec_prefix"
8896 exec_prefix="$acl_final_exec_prefix"
8898 eval additional_includedir=\"$includedir\"
8899 eval additional_libdir=\"$libdir\"
8901 exec_prefix="$acl_save_exec_prefix"
8902 prefix="$acl_save_prefix"
8905 additional_includedir="$withval/include"
8906 additional_libdir="$withval/lib"
8917 names_already_handled=
8918 names_next_round='intl '
8919 while test -n "$names_next_round"; do
8920 names_this_round="$names_next_round"
8922 for name in $names_this_round; do
8924 for n in $names_already_handled; do
8925 if test "$n" = "$name"; then
8930 if test -z "$already_handled"; then
8931 names_already_handled="$names_already_handled $name"
8932 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
8933 eval value=\"\$HAVE_LIB$uppername\"
8934 if test -n "$value"; then
8935 if test "$value" = yes; then
8936 eval value=\"\$LIB$uppername\"
8937 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
8938 eval value=\"\$LTLIB$uppername\"
8939 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
8948 if test $use_additional = yes; then
8949 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
8950 found_dir="$additional_libdir"
8951 found_so="$additional_libdir/lib$name.$shlibext"
8952 if test -f "$additional_libdir/lib$name.la"; then
8953 found_la="$additional_libdir/lib$name.la"
8956 if test -f "$additional_libdir/lib$name.$libext"; then
8957 found_dir="$additional_libdir"
8958 found_a="$additional_libdir/lib$name.$libext"
8959 if test -f "$additional_libdir/lib$name.la"; then
8960 found_la="$additional_libdir/lib$name.la"
8965 if test "X$found_dir" = "X"; then
8966 for x in $LDFLAGS $LTLIBINTL; do
8968 acl_save_prefix="$prefix"
8969 prefix="$acl_final_prefix"
8970 acl_save_exec_prefix="$exec_prefix"
8971 exec_prefix="$acl_final_exec_prefix"
8973 exec_prefix="$acl_save_exec_prefix"
8974 prefix="$acl_save_prefix"
8978 dir=`echo "X$x" | sed -e 's/^X-L//'`
8979 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
8981 found_so="$dir/lib$name.$shlibext"
8982 if test -f "$dir/lib$name.la"; then
8983 found_la="$dir/lib$name.la"
8986 if test -f "$dir/lib$name.$libext"; then
8988 found_a="$dir/lib$name.$libext"
8989 if test -f "$dir/lib$name.la"; then
8990 found_la="$dir/lib$name.la"
8996 if test "X$found_dir" != "X"; then
9001 if test "X$found_dir" != "X"; then
9002 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
9003 if test "X$found_so" != "X"; then
9004 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9005 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9008 for x in $ltrpathdirs; do
9009 if test "X$x" = "X$found_dir"; then
9014 if test -z "$haveit"; then
9015 ltrpathdirs="$ltrpathdirs $found_dir"
9017 if test "$hardcode_direct" = yes; then
9018 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9020 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9021 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9023 for x in $rpathdirs; do
9024 if test "X$x" = "X$found_dir"; then
9029 if test -z "$haveit"; then
9030 rpathdirs="$rpathdirs $found_dir"
9034 for x in $LDFLAGS $LIBINTL; do
9036 acl_save_prefix="$prefix"
9037 prefix="$acl_final_prefix"
9038 acl_save_exec_prefix="$exec_prefix"
9039 exec_prefix="$acl_final_exec_prefix"
9041 exec_prefix="$acl_save_exec_prefix"
9042 prefix="$acl_save_prefix"
9044 if test "X$x" = "X-L$found_dir"; then
9049 if test -z "$haveit"; then
9050 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
9052 if test "$hardcode_minus_L" != no; then
9053 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9055 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
9061 if test "X$found_a" != "X"; then
9062 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
9064 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
9067 additional_includedir=
9068 case "$found_dir" in
9070 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9071 additional_includedir="$basedir/include"
9074 if test "X$additional_includedir" != "X"; then
9075 if test "X$additional_includedir" != "X/usr/include"; then
9077 if test "X$additional_includedir" = "X/usr/local/include"; then
9078 if test -n "$GCC"; then
9080 linux*) haveit=yes;;
9084 if test -z "$haveit"; then
9085 for x in $CPPFLAGS $INCINTL; do
9087 acl_save_prefix="$prefix"
9088 prefix="$acl_final_prefix"
9089 acl_save_exec_prefix="$exec_prefix"
9090 exec_prefix="$acl_final_exec_prefix"
9092 exec_prefix="$acl_save_exec_prefix"
9093 prefix="$acl_save_prefix"
9095 if test "X$x" = "X-I$additional_includedir"; then
9100 if test -z "$haveit"; then
9101 if test -d "$additional_includedir"; then
9102 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
9108 if test -n "$found_la"; then
9109 save_libdir="$libdir"
9111 */* | *\\*) . "$found_la" ;;
9112 *) . "./$found_la" ;;
9114 libdir="$save_libdir"
9115 for dep in $dependency_libs; do
9118 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9119 if test "X$additional_libdir" != "X/usr/lib"; then
9121 if test "X$additional_libdir" = "X/usr/local/lib"; then
9122 if test -n "$GCC"; then
9124 linux*) haveit=yes;;
9128 if test -z "$haveit"; then
9130 for x in $LDFLAGS $LIBINTL; do
9132 acl_save_prefix="$prefix"
9133 prefix="$acl_final_prefix"
9134 acl_save_exec_prefix="$exec_prefix"
9135 exec_prefix="$acl_final_exec_prefix"
9137 exec_prefix="$acl_save_exec_prefix"
9138 prefix="$acl_save_prefix"
9140 if test "X$x" = "X-L$additional_libdir"; then
9145 if test -z "$haveit"; then
9146 if test -d "$additional_libdir"; then
9147 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
9151 for x in $LDFLAGS $LTLIBINTL; do
9153 acl_save_prefix="$prefix"
9154 prefix="$acl_final_prefix"
9155 acl_save_exec_prefix="$exec_prefix"
9156 exec_prefix="$acl_final_exec_prefix"
9158 exec_prefix="$acl_save_exec_prefix"
9159 prefix="$acl_save_prefix"
9161 if test "X$x" = "X-L$additional_libdir"; then
9166 if test -z "$haveit"; then
9167 if test -d "$additional_libdir"; then
9168 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
9175 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9176 if test "$enable_rpath" != no; then
9178 for x in $rpathdirs; do
9179 if test "X$x" = "X$dir"; then
9184 if test -z "$haveit"; then
9185 rpathdirs="$rpathdirs $dir"
9188 for x in $ltrpathdirs; do
9189 if test "X$x" = "X$dir"; then
9194 if test -z "$haveit"; then
9195 ltrpathdirs="$ltrpathdirs $dir"
9200 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9203 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9206 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
9207 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
9213 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
9214 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
9220 if test "X$rpathdirs" != "X"; then
9221 if test -n "$hardcode_libdir_separator"; then
9223 for found_dir in $rpathdirs; do
9224 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9226 acl_save_libdir="$libdir"
9228 eval flag=\"$hardcode_libdir_flag_spec\"
9229 libdir="$acl_save_libdir"
9230 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
9232 for found_dir in $rpathdirs; do
9233 acl_save_libdir="$libdir"
9235 eval flag=\"$hardcode_libdir_flag_spec\"
9236 libdir="$acl_save_libdir"
9237 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
9241 if test "X$ltrpathdirs" != "X"; then
9242 for found_dir in $ltrpathdirs; do
9243 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
9247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
9248 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
9249 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then :
9250 $as_echo_n "(cached) " >&6
9252 gt_save_CPPFLAGS="$CPPFLAGS"
9253 CPPFLAGS="$CPPFLAGS $INCINTL"
9254 gt_save_LIBS="$LIBS"
9255 LIBS="$LIBS $LIBINTL"
9256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9257 /* end confdefs.h. */
9258 #include <libintl.h>
9259 extern int _nl_msg_cat_cntr;
9264 const char *_nl_expand_alias ();
9268 bindtextdomain ("", "");
9269 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
9274 if ac_fn_c_try_link "$LINENO"; then :
9275 gt_cv_func_gnugettext1_libintl=yes
9277 gt_cv_func_gnugettext1_libintl=no
9279 rm -f core conftest.err conftest.$ac_objext \
9280 conftest$ac_exeext conftest.$ac_ext
9281 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
9282 LIBS="$LIBS $LIBICONV"
9283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9284 /* end confdefs.h. */
9285 #include <libintl.h>
9286 extern int _nl_msg_cat_cntr;
9291 const char *_nl_expand_alias ();
9295 bindtextdomain ("", "");
9296 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
9301 if ac_fn_c_try_link "$LINENO"; then :
9302 LIBINTL="$LIBINTL $LIBICONV"
9303 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
9304 gt_cv_func_gnugettext1_libintl=yes
9307 rm -f core conftest.err conftest.$ac_objext \
9308 conftest$ac_exeext conftest.$ac_ext
9310 CPPFLAGS="$gt_save_CPPFLAGS"
9311 LIBS="$gt_save_LIBS"
9313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
9314 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
9317 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
9318 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
9319 && test "$PACKAGE" != gettext-runtime \
9320 && test "$PACKAGE" != gettext-tools; }; then
9321 gt_use_preinstalled_gnugettext=yes
9329 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
9330 nls_cv_use_gnu_gettext=yes
9334 if test "$nls_cv_use_gnu_gettext" = "yes"; then
9335 BUILD_INCLUDED_LIBINTL=yes
9336 USE_INCLUDED_LIBINTL=yes
9337 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
9338 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
9339 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
9342 if test "$gt_use_preinstalled_gnugettext" = "yes" \
9343 || test "$nls_cv_use_gnu_gettext" = "yes"; then
9348 if test "$gt_use_preinstalled_gnugettext" = "yes" \
9349 || test "$nls_cv_use_gnu_gettext" = "yes"; then
9351 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
9358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
9359 $as_echo_n "checking whether to use NLS... " >&6; }
9360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
9361 $as_echo "$USE_NLS" >&6; }
9362 if test "$USE_NLS" = "yes"; then
9363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
9364 $as_echo_n "checking where the gettext function comes from... " >&6; }
9365 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
9366 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
9367 gt_source="external libintl"
9372 gt_source="included intl directory"
9374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
9375 $as_echo "$gt_source" >&6; }
9378 if test "$USE_NLS" = "yes"; then
9380 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
9381 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
9382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
9383 $as_echo_n "checking how to link with libintl... " >&6; }
9384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
9385 $as_echo "$LIBINTL" >&6; }
9387 for element in $INCINTL; do
9389 for x in $CPPFLAGS; do
9391 acl_save_prefix="$prefix"
9392 prefix="$acl_final_prefix"
9393 acl_save_exec_prefix="$exec_prefix"
9394 exec_prefix="$acl_final_exec_prefix"
9396 exec_prefix="$acl_save_exec_prefix"
9397 prefix="$acl_save_prefix"
9399 if test "X$x" = "X$element"; then
9404 if test -z "$haveit"; then
9405 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9412 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
9415 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
9423 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
9424 BUILD_INCLUDED_LIBINTL=yes
9432 nls_cv_header_libgt=
9443 if test "$USE_INCLUDED_LIBINTL" = yes; then
9444 INTLOBJS="\$(GETTOBJS)"
9448 INTL_LIBTOOL_SUFFIX_PREFIX=
9460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9461 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
9463 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
9464 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
9465 $as_echo_n "(cached) " >&6
9467 cat >conftest.make <<\_ACEOF
9470 @echo '@@@%%%=$(MAKE)=@@@%%%'
9472 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9473 case `${MAKE-make} -f conftest.make 2>/dev/null` in
9475 eval ac_cv_prog_make_${ac_make}_set=yes;;
9477 eval ac_cv_prog_make_${ac_make}_set=no;;
9481 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9483 $as_echo "yes" >&6; }
9486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9487 $as_echo "no" >&6; }
9488 SET_MAKE="MAKE=${MAKE-make}"
9491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5
9492 $as_echo_n "checking for GNU make... " >&6; }
9493 if test "${_cv_gnu_make_command+set}" = set; then :
9494 $as_echo_n "(cached) " >&6
9496 _cv_gnu_make_command='' ;
9497 for a in "$MAKE" make gmake gnumake ; do
9498 if test -z "$a" ; then continue ; fi ;
9499 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
9500 _cv_gnu_make_command=$a ;
9506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_cv_gnu_make_command" >&5
9507 $as_echo "$_cv_gnu_make_command" >&6; } ;
9508 if test "x$_cv_gnu_make_command" != "x" ; then
9514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"Not found\"" >&5
9515 $as_echo "\"Not found\"" >&6; };
9520 # Extract the first word of "ln", so it can be a program name with args.
9521 set dummy ln; ac_word=$2
9522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9523 $as_echo_n "checking for $ac_word... " >&6; }
9524 if test "${ac_cv_path_LN+set}" = set; then :
9525 $as_echo_n "(cached) " >&6
9529 ac_cv_path_LN="$LN" # Let the user override the test with a path.
9532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9536 test -z "$as_dir" && as_dir=.
9537 for ac_exec_ext in '' $ac_executable_extensions; do
9538 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9539 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
9540 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9547 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
9552 if test -n "$LN"; then
9553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
9554 $as_echo "$LN" >&6; }
9556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9557 $as_echo "no" >&6; }
9561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
9562 $as_echo_n "checking whether ln -s works... " >&6; }
9564 if test "$LN_S" = "ln -s"; then
9565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9566 $as_echo "yes" >&6; }
9568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
9569 $as_echo "no, using $LN_S" >&6; }
9572 # Extract the first word of "mv", so it can be a program name with args.
9573 set dummy mv; ac_word=$2
9574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9575 $as_echo_n "checking for $ac_word... " >&6; }
9576 if test "${ac_cv_path_MV+set}" = set; then :
9577 $as_echo_n "(cached) " >&6
9581 ac_cv_path_MV="$MV" # Let the user override the test with a path.
9584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9588 test -z "$as_dir" && as_dir=.
9589 for ac_exec_ext in '' $ac_executable_extensions; do
9590 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9591 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
9592 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9599 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
9604 if test -n "$MV"; then
9605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
9606 $as_echo "$MV" >&6; }
9608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9609 $as_echo "no" >&6; }
9613 # Extract the first word of "cp", so it can be a program name with args.
9614 set dummy cp; ac_word=$2
9615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9616 $as_echo_n "checking for $ac_word... " >&6; }
9617 if test "${ac_cv_path_CP+set}" = set; then :
9618 $as_echo_n "(cached) " >&6
9622 ac_cv_path_CP="$CP" # Let the user override the test with a path.
9625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9629 test -z "$as_dir" && as_dir=.
9630 for ac_exec_ext in '' $ac_executable_extensions; do
9631 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9632 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
9633 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9640 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
9645 if test -n "$CP"; then
9646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
9647 $as_echo "$CP" >&6; }
9649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9650 $as_echo "no" >&6; }
9654 # Extract the first word of "rm", so it can be a program name with args.
9655 set dummy rm; ac_word=$2
9656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9657 $as_echo_n "checking for $ac_word... " >&6; }
9658 if test "${ac_cv_path_RM+set}" = set; then :
9659 $as_echo_n "(cached) " >&6
9663 ac_cv_path_RM="$RM" # Let the user override the test with a path.
9666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9670 test -z "$as_dir" && as_dir=.
9671 for ac_exec_ext in '' $ac_executable_extensions; do
9672 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9673 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
9674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9681 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
9686 if test -n "$RM"; then
9687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
9688 $as_echo "$RM" >&6; }
9690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9691 $as_echo "no" >&6; }
9695 # Extract the first word of "chmod", so it can be a program name with args.
9696 set dummy chmod; ac_word=$2
9697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9698 $as_echo_n "checking for $ac_word... " >&6; }
9699 if test "${ac_cv_path_CHMOD+set}" = set; then :
9700 $as_echo_n "(cached) " >&6
9704 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
9707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9711 test -z "$as_dir" && as_dir=.
9712 for ac_exec_ext in '' $ac_executable_extensions; do
9713 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9714 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
9715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9722 test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
9726 CHMOD=$ac_cv_path_CHMOD
9727 if test -n "$CHMOD"; then
9728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
9729 $as_echo "$CHMOD" >&6; }
9731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9732 $as_echo "no" >&6; }
9736 for ac_prog in gawk mawk nawk awk
9738 # Extract the first word of "$ac_prog", so it can be a program name with args.
9739 set dummy $ac_prog; ac_word=$2
9740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9741 $as_echo_n "checking for $ac_word... " >&6; }
9742 if test "${ac_cv_prog_AWK+set}" = set; then :
9743 $as_echo_n "(cached) " >&6
9745 if test -n "$AWK"; then
9746 ac_cv_prog_AWK="$AWK" # Let the user override the test.
9748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9752 test -z "$as_dir" && as_dir=.
9753 for ac_exec_ext in '' $ac_executable_extensions; do
9754 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9755 ac_cv_prog_AWK="$ac_prog"
9756 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9766 if test -n "$AWK"; then
9767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
9768 $as_echo "$AWK" >&6; }
9770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9771 $as_echo "no" >&6; }
9775 test -n "$AWK" && break
9778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
9779 $as_echo_n "checking for egrep... " >&6; }
9780 if test "${ac_cv_path_EGREP+set}" = set; then :
9781 $as_echo_n "(cached) " >&6
9783 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
9784 then ac_cv_path_EGREP="$GREP -E"
9786 if test -z "$EGREP"; then
9787 ac_path_EGREP_found=false
9788 # Loop through the user's path and test for each of PROGNAME-LIST
9789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9790 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
9793 test -z "$as_dir" && as_dir=.
9794 for ac_prog in egrep; do
9795 for ac_exec_ext in '' $ac_executable_extensions; do
9796 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
9797 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
9798 # Check for GNU ac_path_EGREP and select it if it is found.
9799 # Check for GNU $ac_path_EGREP
9800 case `"$ac_path_EGREP" --version 2>&1` in
9802 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
9805 $as_echo_n 0123456789 >"conftest.in"
9808 cat "conftest.in" "conftest.in" >"conftest.tmp"
9809 mv "conftest.tmp" "conftest.in"
9810 cp "conftest.in" "conftest.nl"
9811 $as_echo 'EGREP' >> "conftest.nl"
9812 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
9813 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
9814 as_fn_arith $ac_count + 1 && ac_count=$as_val
9815 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
9816 # Best one so far, save it but keep looking for a better one
9817 ac_cv_path_EGREP="$ac_path_EGREP"
9818 ac_path_EGREP_max=$ac_count
9820 # 10*(2^10) chars as input seems more than enough
9821 test $ac_count -gt 10 && break
9823 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
9826 $ac_path_EGREP_found && break 3
9831 if test -z "$ac_cv_path_EGREP"; then
9832 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
9835 ac_cv_path_EGREP=$EGREP
9840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
9841 $as_echo "$ac_cv_path_EGREP" >&6; }
9842 EGREP="$ac_cv_path_EGREP"
9845 # Extract the first word of "sed", so it can be a program name with args.
9846 set dummy sed; ac_word=$2
9847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9848 $as_echo_n "checking for $ac_word... " >&6; }
9849 if test "${ac_cv_path_SED+set}" = set; then :
9850 $as_echo_n "(cached) " >&6
9854 ac_cv_path_SED="$SED" # Let the user override the test with a path.
9857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9861 test -z "$as_dir" && as_dir=.
9862 for ac_exec_ext in '' $ac_executable_extensions; do
9863 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9864 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
9865 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9872 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
9877 if test -n "$SED"; then
9878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
9879 $as_echo "$SED" >&6; }
9881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9882 $as_echo "no" >&6; }
9886 # Extract the first word of "perl", so it can be a program name with args.
9887 set dummy perl; ac_word=$2
9888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9889 $as_echo_n "checking for $ac_word... " >&6; }
9890 if test "${ac_cv_path_PERL+set}" = set; then :
9891 $as_echo_n "(cached) " >&6
9895 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
9898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9902 test -z "$as_dir" && as_dir=.
9903 for ac_exec_ext in '' $ac_executable_extensions; do
9904 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9905 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
9906 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9913 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
9917 PERL=$ac_cv_path_PERL
9918 if test -n "$PERL"; then
9919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
9920 $as_echo "$PERL" >&6; }
9922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9923 $as_echo "no" >&6; }
9927 # Extract the first word of "ldconfig", so it can be a program name with args.
9928 set dummy ldconfig; ac_word=$2
9929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9930 $as_echo_n "checking for $ac_word... " >&6; }
9931 if test "${ac_cv_path_LDCONFIG+set}" = set; then :
9932 $as_echo_n "(cached) " >&6
9936 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
9939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9943 test -z "$as_dir" && as_dir=.
9944 for ac_exec_ext in '' $ac_executable_extensions; do
9945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9946 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
9947 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9954 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
9958 LDCONFIG=$ac_cv_path_LDCONFIG
9959 if test -n "$LDCONFIG"; then
9960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
9961 $as_echo "$LDCONFIG" >&6; }
9963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9964 $as_echo "no" >&6; }
9968 if test -n "$ac_tool_prefix"; then
9969 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
9970 set dummy ${ac_tool_prefix}ar; ac_word=$2
9971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9972 $as_echo_n "checking for $ac_word... " >&6; }
9973 if test "${ac_cv_prog_AR+set}" = set; then :
9974 $as_echo_n "(cached) " >&6
9976 if test -n "$AR"; then
9977 ac_cv_prog_AR="$AR" # Let the user override the test.
9979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9983 test -z "$as_dir" && as_dir=.
9984 for ac_exec_ext in '' $ac_executable_extensions; do
9985 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9986 ac_cv_prog_AR="${ac_tool_prefix}ar"
9987 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9997 if test -n "$AR"; then
9998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
9999 $as_echo "$AR" >&6; }
10001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10002 $as_echo "no" >&6; }
10007 if test -z "$ac_cv_prog_AR"; then
10009 # Extract the first word of "ar", so it can be a program name with args.
10010 set dummy ar; ac_word=$2
10011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10012 $as_echo_n "checking for $ac_word... " >&6; }
10013 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
10014 $as_echo_n "(cached) " >&6
10016 if test -n "$ac_ct_AR"; then
10017 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
10019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10020 for as_dir in $PATH
10023 test -z "$as_dir" && as_dir=.
10024 for ac_exec_ext in '' $ac_executable_extensions; do
10025 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10026 ac_cv_prog_ac_ct_AR="ar"
10027 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10036 ac_ct_AR=$ac_cv_prog_ac_ct_AR
10037 if test -n "$ac_ct_AR"; then
10038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
10039 $as_echo "$ac_ct_AR" >&6; }
10041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10042 $as_echo "no" >&6; }
10045 if test "x$ac_ct_AR" = x; then
10048 case $cross_compiling:$ac_tool_warned in
10050 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10051 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10052 ac_tool_warned=yes ;;
10057 AR="$ac_cv_prog_AR"
10060 if test -n "$ac_tool_prefix"; then
10061 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
10062 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
10063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10064 $as_echo_n "checking for $ac_word... " >&6; }
10065 if test "${ac_cv_prog_RANLIB+set}" = set; then :
10066 $as_echo_n "(cached) " >&6
10068 if test -n "$RANLIB"; then
10069 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10072 for as_dir in $PATH
10075 test -z "$as_dir" && as_dir=.
10076 for ac_exec_ext in '' $ac_executable_extensions; do
10077 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10078 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
10079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10088 RANLIB=$ac_cv_prog_RANLIB
10089 if test -n "$RANLIB"; then
10090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
10091 $as_echo "$RANLIB" >&6; }
10093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10094 $as_echo "no" >&6; }
10099 if test -z "$ac_cv_prog_RANLIB"; then
10100 ac_ct_RANLIB=$RANLIB
10101 # Extract the first word of "ranlib", so it can be a program name with args.
10102 set dummy ranlib; ac_word=$2
10103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10104 $as_echo_n "checking for $ac_word... " >&6; }
10105 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
10106 $as_echo_n "(cached) " >&6
10108 if test -n "$ac_ct_RANLIB"; then
10109 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
10111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10112 for as_dir in $PATH
10115 test -z "$as_dir" && as_dir=.
10116 for ac_exec_ext in '' $ac_executable_extensions; do
10117 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10118 ac_cv_prog_ac_ct_RANLIB="ranlib"
10119 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10128 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
10129 if test -n "$ac_ct_RANLIB"; then
10130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
10131 $as_echo "$ac_ct_RANLIB" >&6; }
10133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10134 $as_echo "no" >&6; }
10137 if test "x$ac_ct_RANLIB" = x; then
10140 case $cross_compiling:$ac_tool_warned in
10142 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10143 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10144 ac_tool_warned=yes ;;
10146 RANLIB=$ac_ct_RANLIB
10149 RANLIB="$ac_cv_prog_RANLIB"
10152 if test -n "$ac_tool_prefix"; then
10153 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
10154 set dummy ${ac_tool_prefix}strip; ac_word=$2
10155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10156 $as_echo_n "checking for $ac_word... " >&6; }
10157 if test "${ac_cv_prog_STRIP+set}" = set; then :
10158 $as_echo_n "(cached) " >&6
10160 if test -n "$STRIP"; then
10161 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
10163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10164 for as_dir in $PATH
10167 test -z "$as_dir" && as_dir=.
10168 for ac_exec_ext in '' $ac_executable_extensions; do
10169 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10170 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
10171 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10180 STRIP=$ac_cv_prog_STRIP
10181 if test -n "$STRIP"; then
10182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
10183 $as_echo "$STRIP" >&6; }
10185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10186 $as_echo "no" >&6; }
10191 if test -z "$ac_cv_prog_STRIP"; then
10193 # Extract the first word of "strip", so it can be a program name with args.
10194 set dummy strip; ac_word=$2
10195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10196 $as_echo_n "checking for $ac_word... " >&6; }
10197 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
10198 $as_echo_n "(cached) " >&6
10200 if test -n "$ac_ct_STRIP"; then
10201 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
10203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10204 for as_dir in $PATH
10207 test -z "$as_dir" && as_dir=.
10208 for ac_exec_ext in '' $ac_executable_extensions; do
10209 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10210 ac_cv_prog_ac_ct_STRIP="strip"
10211 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10220 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
10221 if test -n "$ac_ct_STRIP"; then
10222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
10223 $as_echo "$ac_ct_STRIP" >&6; }
10225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10226 $as_echo "no" >&6; }
10229 if test "x$ac_ct_STRIP" = x; then
10232 case $cross_compiling:$ac_tool_warned in
10234 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10235 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10236 ac_tool_warned=yes ;;
10241 STRIP="$ac_cv_prog_STRIP"
10244 # Extract the first word of "makeinfo", so it can be a program name with args.
10245 set dummy makeinfo; ac_word=$2
10246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10247 $as_echo_n "checking for $ac_word... " >&6; }
10248 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
10249 $as_echo_n "(cached) " >&6
10251 if test -n "$MAKEINFO"; then
10252 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
10254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10255 for as_dir in $PATH
10258 test -z "$as_dir" && as_dir=.
10259 for ac_exec_ext in '' $ac_executable_extensions; do
10260 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10261 ac_cv_prog_MAKEINFO="makeinfo"
10262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10271 MAKEINFO=$ac_cv_prog_MAKEINFO
10272 if test -n "$MAKEINFO"; then
10273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
10274 $as_echo "$MAKEINFO" >&6; }
10276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10277 $as_echo "no" >&6; }
10281 if test "_$MAKEINFO" = "_"; then
10282 MAKEINFO="@echo Makeinfo is missing. Info documentation will not be built.;true"
10284 case "$MAKEINFO" in
10286 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
10287 *** Makeinfo is missing. Info documentation will not be built." >&5
10288 $as_echo "$as_me: WARNING:
10289 *** Makeinfo is missing. Info documentation will not be built." >&2;}
10297 # See if we need a separate native compiler.
10298 if test $cross_compiling = no; then
10302 for ac_prog in gcc cc
10304 # Extract the first word of "$ac_prog", so it can be a program name with args.
10305 set dummy $ac_prog; ac_word=$2
10306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10307 $as_echo_n "checking for $ac_word... " >&6; }
10308 if test "${ac_cv_prog_BUILD_CC+set}" = set; then :
10309 $as_echo_n "(cached) " >&6
10311 if test -n "$BUILD_CC"; then
10312 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
10314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10315 for as_dir in $PATH
10318 test -z "$as_dir" && as_dir=.
10319 for ac_exec_ext in '' $ac_executable_extensions; do
10320 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10321 ac_cv_prog_BUILD_CC="$ac_prog"
10322 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10331 BUILD_CC=$ac_cv_prog_BUILD_CC
10332 if test -n "$BUILD_CC"; then
10333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
10334 $as_echo "$BUILD_CC" >&6; }
10336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10337 $as_echo "no" >&6; }
10341 test -n "$BUILD_CC" && break
10345 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/disk.h sys/file.h sys/ioctl.h sys/mkdev.h sys/mman.h sys/mount.h sys/prctl.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
10347 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10348 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10349 eval as_val=\$$as_ac_Header
10350 if test "x$as_val" = x""yes; then :
10351 cat >>confdefs.h <<_ACEOF
10352 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10359 for ac_header in net/if.h
10361 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
10362 #if HAVE_SYS_TYPES_H
10363 #include <sys/types.h>
10365 #if HAVE_SYS_SOCKET
10366 #include <sys/socket.h>
10370 if test "x$ac_cv_header_net_if_h" = x""yes; then :
10371 cat >>confdefs.h <<_ACEOF
10372 #define HAVE_NET_IF_H 1
10379 for ac_func in vprintf
10381 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
10382 if test "x$ac_cv_func_vprintf" = x""yes; then :
10383 cat >>confdefs.h <<_ACEOF
10384 #define HAVE_VPRINTF 1
10387 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
10388 if test "x$ac_cv_func__doprnt" = x""yes; then :
10390 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
10398 ac_fn_c_check_member "$LINENO" "struct dirent" "d_reclen" "ac_cv_member_struct_dirent_d_reclen" "#include <dirent.h>
10400 if test "x$ac_cv_member_struct_dirent_d_reclen" = x""yes; then :
10402 $as_echo "#define HAVE_RECLEN_DIRENT 1" >>confdefs.h
10406 ac_fn_c_check_member "$LINENO" "struct stat" "st_atim" "ac_cv_member_struct_stat_st_atim" "$ac_includes_default"
10407 if test "x$ac_cv_member_struct_stat_st_atim" = x""yes; then :
10409 cat >>confdefs.h <<_ACEOF
10410 #define HAVE_STRUCT_STAT_ST_ATIM 1
10416 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "#include <sys/types.h>
10418 if test "x$ac_cv_type_ssize_t" = x""yes; then :
10420 $as_echo "#define HAVE_TYPE_SSIZE_T 1" >>confdefs.h
10424 ac_fn_c_check_decl "$LINENO" "llseek" "ac_cv_have_decl_llseek" "#include <unistd.h>
10426 if test "x$ac_cv_have_decl_llseek" = x""yes; then :
10428 $as_echo "#define HAVE_LLSEEK_PROTOTYPE 1" >>confdefs.h
10432 ac_fn_c_check_decl "$LINENO" "lseek64" "ac_cv_have_decl_lseek64" "#define _LARGEFILE_SOURCE
10433 #define _LARGEFILE64_SOURCE
10434 #include <unistd.h>
10436 if test "x$ac_cv_have_decl_lseek64" = x""yes; then :
10438 $as_echo "#define HAVE_LSEEK64_PROTOTYPE 1" >>confdefs.h
10442 # The cast to long int works around a bug in the HP C Compiler
10443 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10444 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10445 # This bug is HP SR number 8606223364.
10446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
10447 $as_echo_n "checking size of short... " >&6; }
10448 if test "${ac_cv_sizeof_short+set}" = set; then :
10449 $as_echo_n "(cached) " >&6
10451 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
10454 if test "$ac_cv_type_short" = yes; then
10455 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10456 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10457 { as_fn_set_status 77
10458 as_fn_error "cannot compute sizeof (short)
10459 See \`config.log' for more details." "$LINENO" 5; }; }
10461 ac_cv_sizeof_short=0
10466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
10467 $as_echo "$ac_cv_sizeof_short" >&6; }
10471 cat >>confdefs.h <<_ACEOF
10472 #define SIZEOF_SHORT $ac_cv_sizeof_short
10476 # The cast to long int works around a bug in the HP C Compiler
10477 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10478 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10479 # This bug is HP SR number 8606223364.
10480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
10481 $as_echo_n "checking size of int... " >&6; }
10482 if test "${ac_cv_sizeof_int+set}" = set; then :
10483 $as_echo_n "(cached) " >&6
10485 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
10488 if test "$ac_cv_type_int" = yes; then
10489 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10490 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10491 { as_fn_set_status 77
10492 as_fn_error "cannot compute sizeof (int)
10493 See \`config.log' for more details." "$LINENO" 5; }; }
10500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
10501 $as_echo "$ac_cv_sizeof_int" >&6; }
10505 cat >>confdefs.h <<_ACEOF
10506 #define SIZEOF_INT $ac_cv_sizeof_int
10510 # The cast to long int works around a bug in the HP C Compiler
10511 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10512 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10513 # This bug is HP SR number 8606223364.
10514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
10515 $as_echo_n "checking size of long... " >&6; }
10516 if test "${ac_cv_sizeof_long+set}" = set; then :
10517 $as_echo_n "(cached) " >&6
10519 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
10522 if test "$ac_cv_type_long" = yes; then
10523 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10524 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10525 { as_fn_set_status 77
10526 as_fn_error "cannot compute sizeof (long)
10527 See \`config.log' for more details." "$LINENO" 5; }; }
10529 ac_cv_sizeof_long=0
10534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
10535 $as_echo "$ac_cv_sizeof_long" >&6; }
10539 cat >>confdefs.h <<_ACEOF
10540 #define SIZEOF_LONG $ac_cv_sizeof_long
10544 # The cast to long int works around a bug in the HP C Compiler
10545 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10546 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10547 # This bug is HP SR number 8606223364.
10548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
10549 $as_echo_n "checking size of long long... " >&6; }
10550 if test "${ac_cv_sizeof_long_long+set}" = set; then :
10551 $as_echo_n "(cached) " >&6
10553 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
10556 if test "$ac_cv_type_long_long" = yes; then
10557 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10558 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10559 { as_fn_set_status 77
10560 as_fn_error "cannot compute sizeof (long long)
10561 See \`config.log' for more details." "$LINENO" 5; }; }
10563 ac_cv_sizeof_long_long=0
10568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
10569 $as_echo "$ac_cv_sizeof_long_long" >&6; }
10573 cat >>confdefs.h <<_ACEOF
10574 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10578 # The cast to long int works around a bug in the HP C Compiler
10579 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10580 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10581 # This bug is HP SR number 8606223364.
10582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
10583 $as_echo_n "checking size of off_t... " >&6; }
10584 if test "${ac_cv_sizeof_off_t+set}" = set; then :
10585 $as_echo_n "(cached) " >&6
10587 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
10590 if test "$ac_cv_type_off_t" = yes; then
10591 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10592 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10593 { as_fn_set_status 77
10594 as_fn_error "cannot compute sizeof (off_t)
10595 See \`config.log' for more details." "$LINENO" 5; }; }
10597 ac_cv_sizeof_off_t=0
10602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
10603 $as_echo "$ac_cv_sizeof_off_t" >&6; }
10607 cat >>confdefs.h <<_ACEOF
10608 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
10612 SIZEOF_SHORT=$ac_cv_sizeof_short
10613 SIZEOF_INT=$ac_cv_sizeof_int
10614 SIZEOF_LONG=$ac_cv_sizeof_long
10615 SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
10616 SIZEOF_OFF_T=$ac_cv_sizeof_off_t
10622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
10623 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
10624 if test "${ac_cv_c_bigendian+set}" = set; then :
10625 $as_echo_n "(cached) " >&6
10627 ac_cv_c_bigendian=unknown
10628 # See if we're dealing with a universal compiler.
10629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10630 /* end confdefs.h. */
10631 #ifndef __APPLE_CC__
10632 not a universal capable compiler
10637 if ac_fn_c_try_compile "$LINENO"; then :
10639 # Check for potential -arch flags. It is not universal unless
10640 # there are at least two -arch flags with different values.
10643 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
10644 if test -n "$ac_prev"; then
10646 i?86 | x86_64 | ppc | ppc64)
10647 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
10650 ac_cv_c_bigendian=universal
10656 elif test "x$ac_word" = "x-arch"; then
10661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10662 if test $ac_cv_c_bigendian = unknown; then
10663 # See if sys/param.h defines the BYTE_ORDER macro.
10664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10665 /* end confdefs.h. */
10666 #include <sys/types.h>
10667 #include <sys/param.h>
10672 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
10673 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
10675 bogus endian macros
10682 if ac_fn_c_try_compile "$LINENO"; then :
10683 # It does; now see whether it defined to BIG_ENDIAN or not.
10684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10685 /* end confdefs.h. */
10686 #include <sys/types.h>
10687 #include <sys/param.h>
10692 #if BYTE_ORDER != BIG_ENDIAN
10700 if ac_fn_c_try_compile "$LINENO"; then :
10701 ac_cv_c_bigendian=yes
10703 ac_cv_c_bigendian=no
10705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10709 if test $ac_cv_c_bigendian = unknown; then
10710 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
10711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10712 /* end confdefs.h. */
10713 #include <limits.h>
10718 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
10719 bogus endian macros
10726 if ac_fn_c_try_compile "$LINENO"; then :
10727 # It does; now see whether it defined to _BIG_ENDIAN or not.
10728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10729 /* end confdefs.h. */
10730 #include <limits.h>
10735 #ifndef _BIG_ENDIAN
10743 if ac_fn_c_try_compile "$LINENO"; then :
10744 ac_cv_c_bigendian=yes
10746 ac_cv_c_bigendian=no
10748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10752 if test $ac_cv_c_bigendian = unknown; then
10753 # Compile a test program.
10754 if test "$cross_compiling" = yes; then :
10755 # Try to guess by grepping values from an object file.
10756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10757 /* end confdefs.h. */
10758 short int ascii_mm[] =
10759 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
10760 short int ascii_ii[] =
10761 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
10762 int use_ascii (int i) {
10763 return ascii_mm[i] + ascii_ii[i];
10765 short int ebcdic_ii[] =
10766 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
10767 short int ebcdic_mm[] =
10768 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
10769 int use_ebcdic (int i) {
10770 return ebcdic_mm[i] + ebcdic_ii[i];
10777 return use_ascii (foo) == use_ebcdic (foo);
10782 if ac_fn_c_try_compile "$LINENO"; then :
10783 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
10784 ac_cv_c_bigendian=yes
10786 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
10787 if test "$ac_cv_c_bigendian" = unknown; then
10788 ac_cv_c_bigendian=no
10790 # finding both strings is unlikely to happen, but who knows?
10791 ac_cv_c_bigendian=unknown
10795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10798 /* end confdefs.h. */
10799 $ac_includes_default
10804 /* Are we little or big endian? From Harbison&Steele. */
10808 char c[sizeof (long int)];
10811 return u.c[sizeof (long int) - 1] == 1;
10817 if ac_fn_c_try_run "$LINENO"; then :
10818 ac_cv_c_bigendian=no
10820 ac_cv_c_bigendian=yes
10822 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10823 conftest.$ac_objext conftest.beam conftest.$ac_ext
10828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
10829 $as_echo "$ac_cv_c_bigendian" >&6; }
10830 case $ac_cv_c_bigendian in #(
10832 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
10838 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
10842 as_fn_error "unknown endianness
10843 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
10846 if test $cross_compiling = no; then
10847 BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
10849 CROSS_COMPILE="1" BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
10851 ASM_TYPES_HEADER=./asm_types.h
10853 echo "/* These defines are needed for the public ext2fs.h header file */" \
10855 if grep HAVE_SYS_TYPES_H confdefs.h > tmp_config.$$; then
10856 uniq tmp_config.$$ >> public_config.h
10858 echo "#undef HAVE_SYS_TYPES_H" >> public_config.h
10860 if grep WORDS_BIGENDIAN confdefs.h > tmp_config.$$; then
10861 uniq tmp_config.$$ >> public_config.h
10863 echo "#undef WORDS_BIGENDIAN" >> public_config.h
10865 rm -f tmp_config.$$
10866 PUBLIC_CONFIG_HEADER=./public_config.h
10868 for ac_header in inttypes.h
10870 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
10871 if test "x$ac_cv_header_inttypes_h" = x""yes; then :
10872 cat >>confdefs.h <<_ACEOF
10873 #define HAVE_INTTYPES_H 1
10880 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
10881 if test "x$ac_cv_type_intptr_t" = x""yes; then :
10883 cat >>confdefs.h <<_ACEOF
10884 #define HAVE_INTPTR_T 1
10890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat has a st_flags field" >&5
10891 $as_echo_n "checking whether struct stat has a st_flags field... " >&6; }
10892 if test "${e2fsprogs_cv_struct_st_flags+set}" = set; then :
10893 $as_echo_n "(cached) " >&6
10895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10896 /* end confdefs.h. */
10897 #include <sys/stat.h>
10901 struct stat stat; stat.st_flags = 0;
10906 if ac_fn_c_try_compile "$LINENO"; then :
10907 e2fsprogs_cv_struct_st_flags=yes
10909 e2fsprogs_cv_struct_st_flags=no
10911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags" >&5
10915 $as_echo "$e2fsprogs_cv_struct_st_flags" >&6; }
10916 if test "$e2fsprogs_cv_struct_st_flags" = yes; then
10917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether st_flags field is useful" >&5
10918 $as_echo_n "checking whether st_flags field is useful... " >&6; }
10919 if test "${e2fsprogs_cv_struct_st_flags_immut+set}" = set; then :
10920 $as_echo_n "(cached) " >&6
10922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10923 /* end confdefs.h. */
10924 #include <sys/stat.h>
10928 struct stat stat; stat.st_flags |= UF_IMMUTABLE;
10933 if ac_fn_c_try_compile "$LINENO"; then :
10934 e2fsprogs_cv_struct_st_flags_immut=yes
10936 e2fsprogs_cv_struct_st_flags_immut=no
10938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags_immut" >&5
10942 $as_echo "$e2fsprogs_cv_struct_st_flags_immut" >&6; }
10943 if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
10945 $as_echo "#define HAVE_STAT_FLAGS 1" >>confdefs.h
10949 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h>
10950 #include <sys/socket.h>
10952 if test "x$ac_cv_member_struct_sockaddr_sa_len" = x""yes; then :
10954 cat >>confdefs.h <<_ACEOF
10955 #define HAVE_SA_LEN 1
10960 if test -n "$BLKID_CMT"; then
10961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing blkid_probe_all" >&5
10962 $as_echo_n "checking for library containing blkid_probe_all... " >&6; }
10963 if test "${ac_cv_search_blkid_probe_all+set}" = set; then :
10964 $as_echo_n "(cached) " >&6
10966 ac_func_search_save_LIBS=$LIBS
10967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10968 /* end confdefs.h. */
10970 /* Override any GCC internal prototype to avoid an error.
10971 Use char because int might match the return type of a GCC
10972 builtin and then its argument prototype would still apply. */
10976 char blkid_probe_all ();
10980 return blkid_probe_all ();
10985 for ac_lib in '' blkid; do
10986 if test -z "$ac_lib"; then
10987 ac_res="none required"
10990 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10992 if ac_fn_c_try_link "$LINENO"; then :
10993 ac_cv_search_blkid_probe_all=$ac_res
10995 rm -f core conftest.err conftest.$ac_objext \
10997 if test "${ac_cv_search_blkid_probe_all+set}" = set; then :
11001 if test "${ac_cv_search_blkid_probe_all+set}" = set; then :
11004 ac_cv_search_blkid_probe_all=no
11006 rm conftest.$ac_ext
11007 LIBS=$ac_func_search_save_LIBS
11009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_blkid_probe_all" >&5
11010 $as_echo "$ac_cv_search_blkid_probe_all" >&6; }
11011 ac_res=$ac_cv_search_blkid_probe_all
11012 if test "$ac_res" != no; then :
11013 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11018 for ac_func in __secure_getenv backtrace blkid_probe_get_topology blkid_probe_enable_partitions 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 pread pwrite pread64 pwrite64 secure_getenv setmntent setresgid setresuid snprintf srandom stpcpy strcasecmp strdup strnlen strptime strtoull sync_file_range sysconf usleep utime utimes valloc
11020 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11021 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11022 eval as_val=\$$as_ac_var
11023 if test "x$as_val" = x""yes; then :
11024 cat >>confdefs.h <<_ACEOF
11025 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
11033 $as_echo_n "checking for socket in -lsocket... " >&6; }
11034 if test "${ac_cv_lib_socket_socket+set}" = set; then :
11035 $as_echo_n "(cached) " >&6
11037 ac_check_lib_save_LIBS=$LIBS
11038 LIBS="-lsocket $LIBS"
11039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11040 /* end confdefs.h. */
11042 /* Override any GCC internal prototype to avoid an error.
11043 Use char because int might match the return type of a GCC
11044 builtin and then its argument prototype would still apply. */
11057 if ac_fn_c_try_link "$LINENO"; then :
11058 ac_cv_lib_socket_socket=yes
11060 ac_cv_lib_socket_socket=no
11062 rm -f core conftest.err conftest.$ac_objext \
11063 conftest$ac_exeext conftest.$ac_ext
11064 LIBS=$ac_check_lib_save_LIBS
11066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
11067 $as_echo "$ac_cv_lib_socket_socket" >&6; }
11068 if test "x$ac_cv_lib_socket_socket" = x""yes; then :
11069 SOCKET_LIB=-lsocket
11073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for optreset" >&5
11074 $as_echo_n "checking for optreset... " >&6; }
11075 if test "${ac_cv_have_optreset+set}" = set; then :
11076 $as_echo_n "(cached) " >&6
11078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11079 /* end confdefs.h. */
11080 #include <unistd.h>
11083 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11084 $EGREP "optreset" >/dev/null 2>&1; then :
11085 ac_cv_have_optreset=yes
11087 ac_cv_have_optreset=no
11092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_optreset" >&5
11093 $as_echo "$ac_cv_have_optreset" >&6; }
11094 if test $ac_cv_have_optreset = yes; then
11096 $as_echo "#define HAVE_OPTRESET 1" >>confdefs.h
11101 ac_fn_c_check_func "$LINENO" "sem_init" "ac_cv_func_sem_init"
11102 if test "x$ac_cv_func_sem_init" = x""yes; then :
11105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lpthread" >&5
11106 $as_echo_n "checking for sem_init in -lpthread... " >&6; }
11107 if test "${ac_cv_lib_pthread_sem_init+set}" = set; then :
11108 $as_echo_n "(cached) " >&6
11110 ac_check_lib_save_LIBS=$LIBS
11111 LIBS="-lpthread $LIBS"
11112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11113 /* end confdefs.h. */
11115 /* Override any GCC internal prototype to avoid an error.
11116 Use char because int might match the return type of a GCC
11117 builtin and then its argument prototype would still apply. */
11125 return sem_init ();
11130 if ac_fn_c_try_link "$LINENO"; then :
11131 ac_cv_lib_pthread_sem_init=yes
11133 ac_cv_lib_pthread_sem_init=no
11135 rm -f core conftest.err conftest.$ac_objext \
11136 conftest$ac_exeext conftest.$ac_ext
11137 LIBS=$ac_check_lib_save_LIBS
11139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_sem_init" >&5
11140 $as_echo "$ac_cv_lib_pthread_sem_init" >&6; }
11141 if test "x$ac_cv_lib_pthread_sem_init" = x""yes; then :
11142 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
11144 SEM_INIT_LIB=-lpthread
11146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lrt" >&5
11147 $as_echo_n "checking for sem_init in -lrt... " >&6; }
11148 if test "${ac_cv_lib_rt_sem_init+set}" = set; then :
11149 $as_echo_n "(cached) " >&6
11151 ac_check_lib_save_LIBS=$LIBS
11153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11154 /* end confdefs.h. */
11156 /* Override any GCC internal prototype to avoid an error.
11157 Use char because int might match the return type of a GCC
11158 builtin and then its argument prototype would still apply. */
11166 return sem_init ();
11171 if ac_fn_c_try_link "$LINENO"; then :
11172 ac_cv_lib_rt_sem_init=yes
11174 ac_cv_lib_rt_sem_init=no
11176 rm -f core conftest.err conftest.$ac_objext \
11177 conftest$ac_exeext conftest.$ac_ext
11178 LIBS=$ac_check_lib_save_LIBS
11180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sem_init" >&5
11181 $as_echo "$ac_cv_lib_rt_sem_init" >&6; }
11182 if test "x$ac_cv_lib_rt_sem_init" = x""yes; then :
11183 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
11187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lposix4" >&5
11188 $as_echo_n "checking for sem_init in -lposix4... " >&6; }
11189 if test "${ac_cv_lib_posix4_sem_init+set}" = set; then :
11190 $as_echo_n "(cached) " >&6
11192 ac_check_lib_save_LIBS=$LIBS
11193 LIBS="-lposix4 $LIBS"
11194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11195 /* end confdefs.h. */
11197 /* Override any GCC internal prototype to avoid an error.
11198 Use char because int might match the return type of a GCC
11199 builtin and then its argument prototype would still apply. */
11207 return sem_init ();
11212 if ac_fn_c_try_link "$LINENO"; then :
11213 ac_cv_lib_posix4_sem_init=yes
11215 ac_cv_lib_posix4_sem_init=no
11217 rm -f core conftest.err conftest.$ac_objext \
11218 conftest$ac_exeext conftest.$ac_ext
11219 LIBS=$ac_check_lib_save_LIBS
11221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sem_init" >&5
11222 $as_echo "$ac_cv_lib_posix4_sem_init" >&6; }
11223 if test "x$ac_cv_lib_posix4_sem_init" = x""yes; then :
11224 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
11226 SEM_INIT_LIB=-lposix4
11235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unified diff option" >&5
11236 $as_echo_n "checking for unified diff option... " >&6; }
11237 if diff -u $0 $0 > /dev/null 2>&1 ; then
11242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNI_DIFF_OPTS" >&5
11243 $as_echo "$UNI_DIFF_OPTS" >&6; }
11248 $as_echo "#define HAVE_EXT2_IOCTLS 1" >>confdefs.h
11268 linux* | gnu* | k*bsd*-gnu)
11269 if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
11271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, root_prefix defaults to ''" >&5
11272 $as_echo "On $host_os systems, root_prefix defaults to ''" >&6; }
11277 linux* | gnu* | k*bsd*-gnu)
11278 if test "$prefix" = NONE ; then
11280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, prefix defaults to /usr" >&5
11281 $as_echo "On $host_os systems, prefix defaults to /usr" >&6; }
11282 if test "$mandir" = '${prefix}/man' ; then
11283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ...and mandir defaults to /usr/share/man" >&5
11284 $as_echo "...and mandir defaults to /usr/share/man" >&6; }
11285 mandir=/usr/share/man
11290 if test "$root_prefix" = NONE ; then
11291 if test "$prefix" = NONE ; then
11292 root_prefix="$ac_default_prefix"
11294 root_prefix="$prefix"
11296 root_bindir=$bindir
11297 root_sbindir=$sbindir
11298 root_libdir=$libdir
11299 root_sysconfdir=$sysconfdir
11301 root_bindir='${root_prefix}/bin'
11302 root_sbindir='${root_prefix}/sbin'
11303 root_libdir='${root_prefix}/lib'
11304 root_sysconfdir='${root_prefix}/etc'
11306 if test "$bindir" != '${exec_prefix}/bin'; then
11307 root_bindir=$bindir
11308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_bindir to $root_bindir" >&5
11309 $as_echo "Setting root_bindir to $root_bindir" >&6; }
11311 if test "$sbindir" != '${exec_prefix}/sbin'; then
11312 root_sbindir=$sbindir
11313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sbindir to $root_sbindir" >&5
11314 $as_echo "Setting root_sbindir to $root_sbindir" >&6; }
11316 if test "$libdir" != '${exec_prefix}/lib'; then
11317 root_libdir=$libdir
11318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_libdir to $root_libdir" >&5
11319 $as_echo "Setting root_libdir to $root_libdir" >&6; }
11321 if test "$sysconfdir" != '${prefix}/etc'; then
11322 root_sysconfdir=$sysconfdir
11323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sysconfdir to $root_sysconfdir" >&5
11324 $as_echo "Setting root_sysconfdir to $root_sysconfdir" >&6; }
11332 # Check whether --with-multiarch was given.
11333 if test "${with_multiarch+set}" = set; then :
11334 withval=$with_multiarch; if test "$withval" = "lib64"; then
11338 libdir=$libdir/$withval
11339 root_libdir=$root_libdir/$withval
11343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can link with -static" >&5
11344 $as_echo_n "checking whether we can link with -static... " >&6; }
11345 if test "${ac_cv_e2fsprogs_use_static+set}" = set; then :
11346 $as_echo_n "(cached) " >&6
11348 SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static"
11349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11350 /* end confdefs.h. */
11360 if ac_fn_c_try_link "$LINENO"; then :
11361 ac_cv_e2fsprogs_use_static=yes
11363 ac_cv_e2fsprogs_use_static=no
11365 rm -f core conftest.err conftest.$ac_objext \
11366 conftest$ac_exeext conftest.$ac_ext
11367 LDFLAGS=$SAVE_LDFLAGS
11372 ac_cv_e2fsprogs_use_static=no
11375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_e2fsprogs_use_static" >&5
11376 $as_echo "$ac_cv_e2fsprogs_use_static" >&6; }
11378 if test $ac_cv_e2fsprogs_use_static = yes; then
11379 LDFLAG_STATIC=-static
11384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using Apple Darwin / GNU libintl workaround" >&5
11385 $as_echo "Using Apple Darwin / GNU libintl workaround" >&6; }
11387 $as_echo "#define _INTL_REDIRECT_MACROS 1" >>confdefs.h
11391 SS_DIR=`cd ${srcdir}/lib/ss; pwd`
11392 ET_DIR=`cd ${srcdir}/lib/et; pwd`
11395 if test "$cross_compiling" = yes ; then
11398 DO_TEST_SUITE=check
11401 INCLUDES='-I. -I$(top_builddir)/lib -I$(top_srcdir)/lib'
11402 if test -n "$CPPFLAGS" ; then
11403 INCLUDES="$INCLUDES $CPPFLAGS"
11405 if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
11406 INCLUDES=$INCLUDES' -I$(top_builddir)/intl -I$(top_srcdir)/intl'
11408 if test -n "$WITH_DIET_LIBC" ; then
11409 INCLUDES="$INCLUDES -D_REENTRANT"
11414 if test -n "$ac_aux_dir"; then
11415 case "$ac_aux_dir" in
11416 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
11417 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
11420 if test -z "$MKINSTALLDIRS"; then
11421 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
11425 if test $cross_compiling = no; then
11426 BUILD_CFLAGS="$CFLAGS $CPPFLAGS $INCLUDES -DHAVE_CONFIG_H"
11427 BUILD_LDFLAGS="$LDFLAGS"
11431 test -d lib || mkdir lib
11432 test -d include || mkdir include
11433 test -d include/linux || mkdir include/linux
11434 test -d include/asm || mkdir include/asm
11435 for i in MCONFIG Makefile e2fsprogs.spec \
11436 e2fsprogs-RHEL-6.spec \
11437 e2fsprogs-SUSE_LINUX-11.spec \
11438 util/Makefile util/subst.conf util/gen-tarball util/install-symlink \
11439 lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \
11440 lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \
11441 lib/uuid/Makefile lib/uuid/uuid_types.h \
11442 lib/blkid/Makefile lib/blkid/blkid_types.h lib/quota/Makefile \
11443 lib/ss/ss.pc lib/uuid/uuid.pc lib/et/com_err.pc \
11444 lib/e2p/e2p.pc lib/blkid/blkid.pc lib/ext2fs/ext2fs.pc \
11445 misc/Makefile ext2ed/Makefile e2fsck/Makefile \
11446 debugfs/Makefile tests/Makefile tests/progs/Makefile \
11447 resize/Makefile doc/Makefile intl/Makefile \
11448 intl/libgnuintl.h po/Makefile.in ; do
11449 if test -d `dirname ${srcdir}/$i` ; then
11450 outlist="$outlist $i"
11453 ac_config_files="$ac_config_files $outlist"
11455 cat >confcache <<\_ACEOF
11456 # This file is a shell script that caches the results of configure
11457 # tests run on this system so they can be shared between configure
11458 # scripts and configure runs, see configure's option --config-cache.
11459 # It is not useful on other systems. If it contains results you don't
11460 # want to keep, you may remove or edit it.
11462 # config.status only pays attention to the cache file if you give it
11463 # the --recheck option to rerun configure.
11465 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11466 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11467 # following values.
11471 # The following way of writing the cache mishandles newlines in values,
11472 # but we know of no workaround that is simple, portable, and efficient.
11473 # So, we kill variables containing newlines.
11474 # Ultrix sh set writes to stderr and can't be redirected directly,
11475 # and sets the high bit in the cache file unless we assign to the vars.
11477 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11478 eval ac_val=\$$ac_var
11482 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11483 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11486 _ | IFS | as_nl) ;; #(
11487 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11488 *) { eval $ac_var=; unset $ac_var;} ;;
11494 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11495 *${as_nl}ac_space=\ *)
11496 # `set' does not quote correctly, so add quotes: double-quote
11497 # substitution turns \\\\ into \\, and sed turns \\ into \.
11500 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11503 # `set' quotes correctly as required by POSIX, so do not add quotes.
11504 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11513 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11515 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11517 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11518 if test -w "$cache_file"; then
11519 test "x$cache_file" != "x/dev/null" &&
11520 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11521 $as_echo "$as_me: updating cache $cache_file" >&6;}
11522 cat confcache >$cache_file
11524 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11525 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11530 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11531 # Let make expand exec_prefix.
11532 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11534 DEFS=-DHAVE_CONFIG_H
11538 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11539 # 1. Remove the extension, and $U if already installed.
11540 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11541 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11542 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11543 # will be set to the directory where LIBOBJS objects are built.
11544 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11545 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11547 LIBOBJS=$ac_libobjs
11549 LTLIBOBJS=$ac_ltlibobjs
11554 : ${CONFIG_STATUS=./config.status}
11556 ac_clean_files_save=$ac_clean_files
11557 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11558 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11559 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11561 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11563 # Generated by $as_me.
11564 # Run this file to recreate the current configuration.
11565 # Compiler output produced by configure, useful for debugging
11566 # configure, is in config.log if it exists.
11569 ac_cs_recheck=false
11572 SHELL=\${CONFIG_SHELL-$SHELL}
11575 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11576 ## -------------------- ##
11577 ## M4sh Initialization. ##
11578 ## -------------------- ##
11580 # Be more Bourne compatible
11581 DUALCASE=1; export DUALCASE # for MKS sh
11582 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11585 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11586 # is contrary to our usage. Disable this feature.
11587 alias -g '${1+"$@"}'='"$@"'
11588 setopt NO_GLOB_SUBST
11590 case `(set -o) 2>/dev/null` in #(
11602 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11603 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11604 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11605 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11606 # Prefer a ksh shell builtin over an external printf program on Solaris,
11607 # but without wasting forks for bash or zsh.
11608 if test -z "$BASH_VERSION$ZSH_VERSION" \
11609 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11610 as_echo='print -r --'
11611 as_echo_n='print -rn --'
11612 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11613 as_echo='printf %s\n'
11614 as_echo_n='printf %s'
11616 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11617 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11618 as_echo_n='/usr/ucb/echo -n'
11620 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11621 as_echo_n_body='eval
11625 expr "X$arg" : "X\\(.*\\)$as_nl";
11626 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11628 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11630 export as_echo_n_body
11631 as_echo_n='sh -c $as_echo_n_body as_echo'
11633 export as_echo_body
11634 as_echo='sh -c $as_echo_body as_echo'
11637 # The user is always right.
11638 if test "${PATH_SEPARATOR+set}" != set; then
11640 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11641 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11648 # We need space, tab and new line, in precisely that order. Quoting is
11649 # there to prevent editors from complaining about space-tab.
11650 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11651 # splitting by setting IFS to empty value.)
11654 # Find who we are. Look in the path if we contain no directory separator.
11656 *[\\/]* ) as_myself=$0 ;;
11657 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11658 for as_dir in $PATH
11661 test -z "$as_dir" && as_dir=.
11662 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11668 # We did not find ourselves, most probably we were run as `sh COMMAND'
11669 # in which case we are not to be found in the path.
11670 if test "x$as_myself" = x; then
11673 if test ! -f "$as_myself"; then
11674 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11678 # Unset variables that we do not need and which cause bugs (e.g. in
11679 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11680 # suppresses any "Segmentation fault" message there. '((' could
11681 # trigger a bug in pdksh 5.2.14.
11682 for as_var in BASH_ENV ENV MAIL MAILPATH
11683 do eval test x\${$as_var+set} = xset \
11684 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11697 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11700 # as_fn_error ERROR [LINENO LOG_FD]
11701 # ---------------------------------
11702 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11703 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11704 # script with status $?, using 1 if that was 0.
11707 as_status=$?; test $as_status -eq 0 && as_status=1
11709 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11710 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
11712 $as_echo "$as_me: error: $1" >&2
11713 as_fn_exit $as_status
11717 # as_fn_set_status STATUS
11718 # -----------------------
11719 # Set $? to STATUS, without forking.
11720 as_fn_set_status ()
11723 } # as_fn_set_status
11725 # as_fn_exit STATUS
11726 # -----------------
11727 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11731 as_fn_set_status $1
11737 # Portably unset VAR.
11740 { eval $1=; unset $1;}
11742 as_unset=as_fn_unset
11743 # as_fn_append VAR VALUE
11744 # ----------------------
11745 # Append the text in VALUE to the end of the definition contained in VAR. Take
11746 # advantage of any shell optimizations that allow amortized linear growth over
11747 # repeated appends, instead of the typical quadratic growth present in naive
11749 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11750 eval 'as_fn_append ()
11761 # as_fn_arith ARG...
11762 # ------------------
11763 # Perform arithmetic evaluation on the ARGs, and store the result in the
11764 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11765 # must be portable across $(()) and expr.
11766 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11767 eval 'as_fn_arith ()
11774 as_val=`expr "$@" || test $? -eq 1`
11779 if expr a : '\(a\)' >/dev/null 2>&1 &&
11780 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11786 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11787 as_basename=basename
11792 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11798 as_me=`$as_basename -- "$0" ||
11799 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11800 X"$0" : 'X\(//\)$' \| \
11801 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11803 sed '/^.*\/\([^/][^/]*\)\/*$/{
11817 # Avoid depending upon Character Ranges.
11818 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11819 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11820 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11821 as_cr_digits='0123456789'
11822 as_cr_alnum=$as_cr_Letters$as_cr_digits
11824 ECHO_C= ECHO_N= ECHO_T=
11825 case `echo -n x` in #(((((
11827 case `echo 'xy\c'` in
11828 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11830 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11837 rm -f conf$$ conf$$.exe conf$$.file
11838 if test -d conf$$.dir; then
11839 rm -f conf$$.dir/conf$$.file
11842 mkdir conf$$.dir 2>/dev/null
11844 if (echo >conf$$.file) 2>/dev/null; then
11845 if ln -s conf$$.file conf$$ 2>/dev/null; then
11847 # ... but there are two gotchas:
11848 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11849 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11850 # In both cases, we have to default to `cp -p'.
11851 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11853 elif ln conf$$.file conf$$ 2>/dev/null; then
11861 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11862 rmdir conf$$.dir 2>/dev/null
11867 # Create "$as_dir" as a directory, including parents if necessary.
11872 -*) as_dir=./$as_dir;;
11874 test -d "$as_dir" || eval $as_mkdir_p || {
11878 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11879 *) as_qdir=$as_dir;;
11881 as_dirs="'$as_qdir' $as_dirs"
11882 as_dir=`$as_dirname -- "$as_dir" ||
11883 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11884 X"$as_dir" : 'X\(//\)[^/]' \| \
11885 X"$as_dir" : 'X\(//\)$' \| \
11886 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11887 $as_echo X"$as_dir" |
11888 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11892 /^X\(\/\/\)[^/].*/{
11905 test -d "$as_dir" && break
11907 test -z "$as_dirs" || eval "mkdir $as_dirs"
11908 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
11912 if mkdir -p . 2>/dev/null; then
11913 as_mkdir_p='mkdir -p "$as_dir"'
11915 test -d ./-p && rmdir ./-p
11919 if test -x / >/dev/null 2>&1; then
11920 as_test_x='test -x'
11922 if ls -dL / >/dev/null 2>&1; then
11929 if test -d "$1"; then
11935 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
11936 ???[sx]*):;;*)false;;esac;fi
11940 as_executable_p=$as_test_x
11942 # Sed expression to map a string onto a valid CPP name.
11943 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11945 # Sed expression to map a string onto a valid variable name.
11946 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11950 ## ----------------------------------- ##
11951 ## Main body of $CONFIG_STATUS script. ##
11952 ## ----------------------------------- ##
11954 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11956 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11957 # Save the log message, to keep $0 and so on meaningful, and to
11958 # report actual input values of CONFIG_FILES etc. instead of their
11959 # values after options handling.
11961 This file was extended by $as_me, which was
11962 generated by GNU Autoconf 2.65. Invocation command line was
11964 CONFIG_FILES = $CONFIG_FILES
11965 CONFIG_HEADERS = $CONFIG_HEADERS
11966 CONFIG_LINKS = $CONFIG_LINKS
11967 CONFIG_COMMANDS = $CONFIG_COMMANDS
11970 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11975 case $ac_config_files in *"
11976 "*) set x $ac_config_files; shift; ac_config_files=$*;;
11979 case $ac_config_headers in *"
11980 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11984 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11985 # Files that config.status was made for.
11986 config_files="$ac_config_files"
11987 config_headers="$ac_config_headers"
11988 config_commands="$ac_config_commands"
11992 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11994 \`$as_me' instantiates files and other configuration actions
11995 from templates according to the current configuration. Unless the files
11996 and actions are specified as TAGs, all are instantiated by default.
11998 Usage: $0 [OPTION]... [TAG]...
12000 -h, --help print this help, then exit
12001 -V, --version print version number and configuration settings, then exit
12002 --config print configuration, then exit
12003 -q, --quiet, --silent
12004 do not print progress messages
12005 -d, --debug don't remove temporary files
12006 --recheck update $as_me by reconfiguring in the same conditions
12007 --file=FILE[:TEMPLATE]
12008 instantiate the configuration file FILE
12009 --header=FILE[:TEMPLATE]
12010 instantiate the configuration header FILE
12012 Configuration files:
12015 Configuration headers:
12018 Configuration commands:
12021 Report bugs to the package provider."
12024 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12025 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12028 configured by $0, generated by GNU Autoconf 2.65,
12029 with options \\"\$ac_cs_config\\"
12031 Copyright (C) 2009 Free Software Foundation, Inc.
12032 This config.status script is free software; the Free Software Foundation
12033 gives unlimited permission to copy, distribute and modify it."
12039 test -n "\$AWK" || AWK=awk
12042 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12043 # The default lists apply if the user does not specify any file.
12049 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12050 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12061 # Handling of the options.
12062 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12064 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12065 $as_echo "$ac_cs_version"; exit ;;
12066 --config | --confi | --conf | --con | --co | --c )
12067 $as_echo "$ac_cs_config"; exit ;;
12068 --debug | --debu | --deb | --de | --d | -d )
12070 --file | --fil | --fi | --f )
12073 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12075 as_fn_append CONFIG_FILES " '$ac_optarg'"
12076 ac_need_defaults=false;;
12077 --header | --heade | --head | --hea )
12080 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12082 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12083 ac_need_defaults=false;;
12085 # Conflict between --help and --header
12086 as_fn_error "ambiguous option: \`$1'
12087 Try \`$0 --help' for more information.";;
12088 --help | --hel | -h )
12089 $as_echo "$ac_cs_usage"; exit ;;
12090 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12091 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12094 # This is an error.
12095 -*) as_fn_error "unrecognized option: \`$1'
12096 Try \`$0 --help' for more information." ;;
12098 *) as_fn_append ac_config_targets " $1"
12099 ac_need_defaults=false ;;
12105 ac_configure_extra_args=
12107 if $ac_cs_silent; then
12109 ac_configure_extra_args="$ac_configure_extra_args --silent"
12113 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12114 if \$ac_cs_recheck; then
12115 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12117 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12118 CONFIG_SHELL='$SHELL'
12119 export CONFIG_SHELL
12124 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12128 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12129 ## Running $as_me. ##
12135 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12139 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
12140 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
12142 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
12143 # Capture the value of LINGUAS because we need it to compute CATALOGS.
12144 LINGUAS="${LINGUAS-%UNSET%}"
12149 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12151 # Handling of arguments.
12152 for ac_config_target in $ac_config_targets
12154 case $ac_config_target in
12155 "lib/config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/config.h" ;;
12156 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
12157 "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;;
12159 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12164 # If the user did not use the arguments to specify the items to instantiate,
12165 # then the envvar interface is used. Set only those that are not.
12166 # We use the long form for the default assignment because of an extremely
12167 # bizarre bug on SunOS 4.1.3.
12168 if $ac_need_defaults; then
12169 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12170 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12171 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12174 # Have a temporary directory for convenience. Make it in the build tree
12175 # simply because there is no reason against having it here, and in addition,
12176 # creating and moving files from /tmp can sometimes cause problems.
12177 # Hook for its removal unless debugging.
12178 # Note that there is a small window in which the directory will not be cleaned:
12179 # after its creation but before its name has been assigned to `$tmp'.
12183 trap 'exit_status=$?
12184 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
12186 trap 'as_fn_exit 1' 1 2 13 15
12188 # Create a (secure) tmp directory for tmp files.
12191 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12192 test -n "$tmp" && test -d "$tmp"
12195 tmp=./conf$$-$RANDOM
12196 (umask 077 && mkdir "$tmp")
12197 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
12199 # Set up the scripts for CONFIG_FILES section.
12200 # No need to generate them if there are no CONFIG_FILES.
12201 # This happens for instance with `./config.status config.h'.
12202 if test -n "$CONFIG_FILES"; then
12204 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
12205 ac_cs_awk_getline=:
12206 ac_cs_awk_pipe_init=
12207 ac_cs_awk_read_file='
12208 while ((getline aline < (F[key])) > 0)
12211 ac_cs_awk_pipe_fini=
12213 ac_cs_awk_getline=false
12214 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
12215 ac_cs_awk_read_file='
12217 print "cat " F[key] " &&"
12218 '$ac_cs_awk_pipe_init
12219 # The final `:' finishes the AND list.
12220 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
12222 ac_cr=`echo X | tr X '\015'`
12223 # On cygwin, bash can eat \r inside `` if the user requested igncr.
12224 # But we know of no other shell where ac_cr would be empty at this
12225 # point, so we can use a bashism as a fallback.
12226 if test "x$ac_cr" = x; then
12227 eval ac_cr=\$\'\\r\'
12229 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12230 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12233 ac_cs_awk_cr=$ac_cr
12236 echo 'BEGIN {' >"$tmp/subs1.awk" &&
12239 # Create commands to substitute file output variables.
12241 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
12242 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
12243 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
12246 } >conf$$files.sh &&
12247 . ./conf$$files.sh ||
12248 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
12249 rm -f conf$$files.sh
12252 echo "cat >conf$$subs.awk <<_ACEOF" &&
12253 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12255 } >conf$$subs.sh ||
12256 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
12257 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
12259 for ac_last_try in false false false false false :; do
12260 . ./conf$$subs.sh ||
12261 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
12263 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12264 if test $ac_delim_n = $ac_delim_num; then
12266 elif $ac_last_try; then
12267 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
12269 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12272 rm -f conf$$subs.sh
12274 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12275 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
12279 s/^/S["/; s/!.*/"]=/
12289 s/\(.\{148\}\)..*/\1/
12291 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12296 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12303 s/\(.\{148\}\)..*/\1/
12305 s/["\\]/\\&/g; s/^/"/; s/$/"/
12309 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12314 ' <conf$$subs.awk | sed '
12319 ' >>$CONFIG_STATUS || ac_write_fail=1
12320 rm -f conf$$subs.awk
12321 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12323 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
12324 for (key in S) S_is_set[key] = 1
12326 \$ac_cs_awk_pipe_init
12330 nfields = split(line, field, "@")
12332 len = length(field[1])
12333 for (i = 2; i < nfields; i++) {
12335 keylen = length(key)
12336 if (S_is_set[key]) {
12338 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12339 len += length(value) + length(field[++i])
12344 if (nfields == 3 && !substed) {
12346 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
12347 \$ac_cs_awk_read_file
12353 \$ac_cs_awk_pipe_fini
12356 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12357 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12358 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12361 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
12362 || as_fn_error "could not setup config files machinery" "$LINENO" 5
12365 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12366 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12367 # trailing colons and then remove the whole line if VPATH becomes empty
12368 # (actually we leave an empty line to preserve line numbers).
12369 if test "x$srcdir" = x.; then
12370 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12371 s/:*\$(srcdir):*/:/
12372 s/:*\${srcdir}:*/:/
12374 s/^\([^=]*=[ ]*\):*/\1/
12380 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12381 fi # test -n "$CONFIG_FILES"
12383 # Set up the scripts for CONFIG_HEADERS section.
12384 # No need to generate them if there are no CONFIG_HEADERS.
12385 # This happens for instance with `./config.status Makefile'.
12386 if test -n "$CONFIG_HEADERS"; then
12387 cat >"$tmp/defines.awk" <<\_ACAWK ||
12391 # Transform confdefs.h into an awk script `defines.awk', embedded as
12392 # here-document in config.status, that substitutes the proper values into
12393 # config.h.in to produce config.h.
12395 # Create a delimiter string that does not exist in confdefs.h, to ease
12396 # handling of long lines.
12398 for ac_last_try in false false :; do
12399 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
12400 if test -z "$ac_t"; then
12402 elif $ac_last_try; then
12403 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
12405 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12409 # For the awk script, D is an array of macro values keyed by name,
12410 # likewise P contains macro parameters if any. Preserve backslash
12411 # newline sequences.
12413 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12415 s/.\{148\}/&'"$ac_delim"'/g
12418 s/^[ ]*#[ ]*define[ ][ ]*/ /
12425 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12427 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12431 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12432 D["\1"]=" \3\\\\\\n"\\/p
12434 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12439 s/.\{148\}/&'"$ac_delim"'/g
12444 s/["\\]/\\&/g; s/^/"/; s/$/"/p
12447 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12449 ' <confdefs.h | sed '
12450 s/'"$ac_delim"'/"\\\
12451 "/g' >>$CONFIG_STATUS || ac_write_fail=1
12453 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12454 for (key in D) D_is_set[key] = 1
12457 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12459 split(line, arg, " ")
12460 if (arg[1] == "#") {
12464 defundef = substr(arg[1], 2)
12467 split(mac1, mac2, "(") #)
12469 prefix = substr(line, 1, index(line, defundef) - 1)
12470 if (D_is_set[macro]) {
12471 # Preserve the white space surrounding the "#".
12472 print prefix "define", macro P[macro] D[macro]
12475 # Replace #undef with comments. This is necessary, for example,
12476 # in the case of _POSIX_SOURCE, which is predefined and required
12477 # on some systems where configure will not decide to define it.
12478 if (defundef == "undef") {
12479 print "/*", prefix defundef, macro, "*/"
12487 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12488 as_fn_error "could not setup config headers machinery" "$LINENO" 5
12489 fi # test -n "$CONFIG_HEADERS"
12492 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
12497 :[FHLC]) ac_mode=$ac_tag; continue;;
12499 case $ac_mode$ac_tag in
12501 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
12502 :[FH]-) ac_tag=-:-;;
12503 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12520 -) ac_f="$tmp/stdin";;
12521 *) # Look for the file first in the build tree, then in the source tree
12522 # (if the path is not absolute). The absolute path cannot be DOS-style,
12523 # because $ac_f cannot contain `:'.
12527 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12529 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12531 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12532 as_fn_append ac_file_inputs " '$ac_f'"
12535 # Let's still pretend it is `configure' which instantiates (i.e., don't
12536 # use $as_me), people would be surprised to read:
12537 # /* config.h. Generated by config.status. */
12538 configure_input='Generated from '`
12539 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12541 if test x"$ac_file" != x-; then
12542 configure_input="$ac_file. $configure_input"
12543 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12544 $as_echo "$as_me: creating $ac_file" >&6;}
12546 # Neutralize special characters interpreted by sed in replacement strings.
12547 case $configure_input in #(
12548 *\&* | *\|* | *\\* )
12549 ac_sed_conf_input=`$as_echo "$configure_input" |
12550 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12551 *) ac_sed_conf_input=$configure_input;;
12555 *:-:* | *:-) cat >"$tmp/stdin" \
12556 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
12561 ac_dir=`$as_dirname -- "$ac_file" ||
12562 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12563 X"$ac_file" : 'X\(//\)[^/]' \| \
12564 X"$ac_file" : 'X\(//\)$' \| \
12565 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12566 $as_echo X"$ac_file" |
12567 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12571 /^X\(\/\/\)[^/].*/{
12584 as_dir="$ac_dir"; as_fn_mkdir_p
12588 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12590 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12591 # A ".." for each directory in $ac_dir_suffix.
12592 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12593 case $ac_top_builddir_sub in
12594 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12595 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12598 ac_abs_top_builddir=$ac_pwd
12599 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12600 # for backward compatibility:
12601 ac_top_builddir=$ac_top_build_prefix
12604 .) # We are building in place.
12606 ac_top_srcdir=$ac_top_builddir_sub
12607 ac_abs_top_srcdir=$ac_pwd ;;
12608 [\\/]* | ?:[\\/]* ) # Absolute name.
12609 ac_srcdir=$srcdir$ac_dir_suffix;
12610 ac_top_srcdir=$srcdir
12611 ac_abs_top_srcdir=$srcdir ;;
12612 *) # Relative name.
12613 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12614 ac_top_srcdir=$ac_top_build_prefix$srcdir
12615 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12617 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12627 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12628 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12632 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12633 # If the template does not know about datarootdir, expand it.
12634 # FIXME: This hack should be removed a few years after 2.60.
12635 ac_datarootdir_hack=; ac_datarootdir_seen=
12646 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12647 *datarootdir*) ac_datarootdir_seen=yes;;
12648 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12649 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12650 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12652 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12653 ac_datarootdir_hack='
12654 s&@datadir@&$datadir&g
12655 s&@docdir@&$docdir&g
12656 s&@infodir@&$infodir&g
12657 s&@localedir@&$localedir&g
12658 s&@mandir@&$mandir&g
12659 s&\\\${datarootdir}&$datarootdir&g' ;;
12663 # Neutralize VPATH when `$srcdir' = `.'.
12664 # Shell code in configure.ac might set extrasub.
12665 # FIXME: do we really want to maintain this feature?
12666 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12667 ac_sed_extra="$ac_vpsub
12670 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12672 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12673 s|@configure_input@|$ac_sed_conf_input|;t t
12674 s&@top_builddir@&$ac_top_builddir_sub&;t t
12675 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12676 s&@srcdir@&$ac_srcdir&;t t
12677 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12678 s&@top_srcdir@&$ac_top_srcdir&;t t
12679 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12680 s&@builddir@&$ac_builddir&;t t
12681 s&@abs_builddir@&$ac_abs_builddir&;t t
12682 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12683 s&@INSTALL@&$ac_INSTALL&;t t
12684 $ac_datarootdir_hack
12686 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
12687 if $ac_cs_awk_getline; then
12688 $AWK -f "$tmp/subs.awk"
12690 $AWK -f "$tmp/subs.awk" | $SHELL
12692 || as_fn_error "could not create $ac_file" "$LINENO" 5
12694 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12695 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
12696 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
12697 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12698 which seems to be undefined. Please make sure it is defined." >&5
12699 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12700 which seems to be undefined. Please make sure it is defined." >&2;}
12704 -) cat "$tmp/out" && rm -f "$tmp/out";;
12705 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
12707 || as_fn_error "could not create $ac_file" "$LINENO" 5
12713 if test x"$ac_file" != x-; then
12715 $as_echo "/* $configure_input */" \
12716 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
12717 } >"$tmp/config.h" \
12718 || as_fn_error "could not create $ac_file" "$LINENO" 5
12719 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
12720 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12721 $as_echo "$as_me: $ac_file is unchanged" >&6;}
12724 mv "$tmp/config.h" "$ac_file" \
12725 || as_fn_error "could not create $ac_file" "$LINENO" 5
12728 $as_echo "/* $configure_input */" \
12729 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
12730 || as_fn_error "could not create -" "$LINENO" 5
12734 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12735 $as_echo "$as_me: executing $ac_file commands" >&6;}
12740 case $ac_file$ac_mode in
12742 for ac_file in $CONFIG_FILES; do
12743 # Support "outfile[:infile[:infile...]]"
12745 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
12747 # PO directories have a Makefile.in generated from Makefile.in.in.
12748 case "$ac_file" in */Makefile.in)
12749 # Adjust a relative srcdir.
12750 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
12751 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
12752 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
12753 # In autoconf-2.13 it is called $ac_given_srcdir.
12754 # In autoconf-2.50 it is called $srcdir.
12755 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
12756 case "$ac_given_srcdir" in
12757 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
12758 /*) top_srcdir="$ac_given_srcdir" ;;
12759 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
12761 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
12762 rm -f "$ac_dir/POTFILES"
12763 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
12764 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
12765 POMAKEFILEDEPS="POTFILES.in"
12766 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
12767 # on $ac_dir but don't depend on user-specified configuration
12769 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
12770 # The LINGUAS file contains the set of available languages.
12771 if test -n "$OBSOLETE_ALL_LINGUAS"; then
12772 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
12774 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
12775 # Hide the ALL_LINGUAS assigment from automake.
12776 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
12777 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
12779 # The set of available languages was given in configure.in.
12780 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
12783 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
12784 # Compute UPDATEPOFILES
12785 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
12786 # Compute DUMMYPOFILES
12787 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
12789 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
12790 case "$ac_given_srcdir" in
12792 *) srcdirpre='$(srcdir)/' ;;
12798 for lang in $ALL_LINGUAS; do
12799 POFILES="$POFILES $srcdirpre$lang.po"
12800 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
12801 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
12802 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
12804 # CATALOGS depends on both $ac_dir and the user's LINGUAS
12805 # environment variable.
12807 if test -n "$ALL_LINGUAS"; then
12808 for presentlang in $ALL_LINGUAS; do
12810 if test "%UNSET%" != "$LINGUAS"; then
12811 desiredlanguages="$LINGUAS"
12813 desiredlanguages="$ALL_LINGUAS"
12815 for desiredlang in $desiredlanguages; do
12816 # Use the presentlang catalog if desiredlang is
12817 # a. equal to presentlang, or
12818 # b. a variant of presentlang (because in this case,
12819 # presentlang can be used as a fallback for messages
12820 # which are not translated in the desiredlang catalog).
12821 case "$desiredlang" in
12822 "$presentlang"*) useit=yes;;
12825 if test $useit = yes; then
12826 INST_LINGUAS="$INST_LINGUAS $presentlang"
12831 if test -n "$INST_LINGUAS"; then
12832 for lang in $INST_LINGUAS; do
12833 CATALOGS="$CATALOGS $lang.gmo"
12836 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
12837 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"
12838 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
12839 if test -f "$f"; then
12841 *.orig | *.bak | *~) ;;
12842 *) cat "$f" >> "$ac_dir/Makefile" ;;
12857 ac_clean_files=$ac_clean_files_save
12859 test $ac_write_fail = 0 ||
12860 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
12863 # configure is writing to config.log, and then calls config.status.
12864 # config.status does its own redirection, appending to config.log.
12865 # Unfortunately, on DOS this fails, as config.log is still kept open
12866 # by configure, so config.status won't be able to write to it; its
12867 # output is simply discarded. So we exec the FD to /dev/null,
12868 # effectively closing config.log, so it can be properly (re)opened and
12869 # appended to by config.status. When coming back to configure, we
12870 # need to make the FD available again.
12871 if test "$no_create" != yes; then
12873 ac_config_status_args=
12874 test "$silent" = yes &&
12875 ac_config_status_args="$ac_config_status_args --quiet"
12877 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12879 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12880 # would make configure fail if this is the last instruction.
12881 $ac_cs_success || as_fn_exit $?
12883 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12884 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12885 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12888 if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi