2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in #(
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 as_echo_n='sh -c $as_echo_n_body as_echo'
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
89 # Find who we are. Look in the path if we contain no directory separator.
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134 if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 case \`(set -o) 2>/dev/null\` in #(
151 as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165 exitcode=1; echo positional parameters were not saved.
167 test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1"
173 if (eval "$as_required") 2>/dev/null; then :
178 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
183 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
186 test -z "$as_dir" && as_dir=.
190 for as_base in sh bash ksh sh5; do
191 # Try only shells that exist, to save several forks.
192 as_shell=$as_dir/$as_base
193 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
194 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
195 CONFIG_SHELL=$as_shell as_have_required=yes
196 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
204 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
205 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
206 CONFIG_SHELL=$SHELL as_have_required=yes
211 if test "x$CONFIG_SHELL" != x; then :
212 # We cannot yet assume a decent shell, so we have to provide a
213 # neutralization value for shells without unset; and this also
214 # works around shells that cannot unset nonexistent variables.
217 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
219 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
222 if test x$as_have_required = xno; then :
223 $as_echo "$0: This script requires a shell more modern than all"
224 $as_echo "$0: the shells that I found on your system."
225 if test x${ZSH_VERSION+set} = xset ; then
226 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
227 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
229 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
230 $0: including any error possibly output before this
231 $0: message. Then install a modern shell, or manually run
232 $0: the script under such a shell if you do have one."
238 SHELL=${CONFIG_SHELL-/bin/sh}
240 # Unset more variables known to interfere with behavior of common tools.
241 CLICOLOR_FORCE= GREP_OPTIONS=
242 unset CLICOLOR_FORCE GREP_OPTIONS
244 ## --------------------- ##
245 ## M4sh Shell Functions. ##
246 ## --------------------- ##
249 # Portably unset VAR.
252 { eval $1=; unset $1;}
256 # as_fn_set_status STATUS
257 # -----------------------
258 # Set $? to STATUS, without forking.
266 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
276 # Create "$as_dir" as a directory, including parents if necessary.
281 -*) as_dir=./$as_dir;;
283 test -d "$as_dir" || eval $as_mkdir_p || {
287 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
290 as_dirs="'$as_qdir' $as_dirs"
291 as_dir=`$as_dirname -- "$as_dir" ||
292 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
293 X"$as_dir" : 'X\(//\)[^/]' \| \
294 X"$as_dir" : 'X\(//\)$' \| \
295 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
296 $as_echo X"$as_dir" |
297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
314 test -d "$as_dir" && break
316 test -z "$as_dirs" || eval "mkdir $as_dirs"
317 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
321 # as_fn_append VAR VALUE
322 # ----------------------
323 # Append the text in VALUE to the end of the definition contained in VAR. Take
324 # advantage of any shell optimizations that allow amortized linear growth over
325 # repeated appends, instead of the typical quadratic growth present in naive
327 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
328 eval 'as_fn_append ()
341 # Perform arithmetic evaluation on the ARGs, and store the result in the
342 # global $as_val. Take advantage of shells that can avoid forks. The arguments
343 # must be portable across $(()) and expr.
344 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
352 as_val=`expr "$@" || test $? -eq 1`
357 # as_fn_error ERROR [LINENO LOG_FD]
358 # ---------------------------------
359 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
360 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
361 # script with status $?, using 1 if that was 0.
364 as_status=$?; test $as_status -eq 0 && as_status=1
366 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
367 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
369 $as_echo "$as_me: error: $1" >&2
370 as_fn_exit $as_status
373 if expr a : '\(a\)' >/dev/null 2>&1 &&
374 test "X`expr 00001 : '.*\(...\)'`" = X001; then
380 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
386 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
392 as_me=`$as_basename -- "$0" ||
393 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394 X"$0" : 'X\(//\)$' \| \
395 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
397 sed '/^.*\/\([^/][^/]*\)\/*$/{
411 # Avoid depending upon Character Ranges.
412 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
413 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
414 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
415 as_cr_digits='0123456789'
416 as_cr_alnum=$as_cr_Letters$as_cr_digits
419 as_lineno_1=$LINENO as_lineno_1a=$LINENO
420 as_lineno_2=$LINENO as_lineno_2a=$LINENO
421 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
422 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
423 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
435 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
439 chmod +x "$as_me.lineno" ||
440 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
442 # Don't try to exec as it changes $[0], causing all sort of problems
443 # (the dirname of $[0] is not the place where we might find the
444 # original and so on. Autoconf is especially sensitive to this).
446 # Exit status is that of the last command.
450 ECHO_C= ECHO_N= ECHO_T=
451 case `echo -n x` in #(((((
453 case `echo 'xy\c'` in
454 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
456 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
463 rm -f conf$$ conf$$.exe conf$$.file
464 if test -d conf$$.dir; then
465 rm -f conf$$.dir/conf$$.file
468 mkdir conf$$.dir 2>/dev/null
470 if (echo >conf$$.file) 2>/dev/null; then
471 if ln -s conf$$.file conf$$ 2>/dev/null; then
473 # ... but there are two gotchas:
474 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
475 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
476 # In both cases, we have to default to `cp -p'.
477 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
479 elif ln conf$$.file conf$$ 2>/dev/null; then
487 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
488 rmdir conf$$.dir 2>/dev/null
490 if mkdir -p . 2>/dev/null; then
491 as_mkdir_p='mkdir -p "$as_dir"'
493 test -d ./-p && rmdir ./-p
497 if test -x / >/dev/null 2>&1; then
500 if ls -dL / >/dev/null 2>&1; then
507 if test -d "$1"; then
513 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
514 ???[sx]*):;;*)false;;esac;fi
518 as_executable_p=$as_test_x
520 # Sed expression to map a string onto a valid CPP name.
521 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
523 # Sed expression to map a string onto a valid variable name.
524 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
527 exec 7<&0 </dev/null 6>&1
530 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
531 # so uname gets run too.
532 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
537 ac_default_prefix=/usr/local
539 ac_config_libobj_dir=.
546 # Identity of this package.
554 ac_unique_file="version.h"
555 # Factoring default headers for most tests.
556 ac_includes_default="\
558 #ifdef HAVE_SYS_TYPES_H
559 # include <sys/types.h>
561 #ifdef HAVE_SYS_STAT_H
562 # include <sys/stat.h>
568 # ifdef HAVE_STDLIB_H
573 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
578 #ifdef HAVE_STRINGS_H
579 # include <strings.h>
581 #ifdef HAVE_INTTYPES_H
582 # include <inttypes.h>
591 ac_subst_vars='LTLIBOBJS
636 INTL_LIBTOOL_SUFFIX_PREFIX
643 BUILD_INCLUDED_LIBINTL
756 program_transform_name
767 ac_subst_files='MCONFIG
774 PUBLIC_CONFIG_HEADER'
776 enable_option_checking
782 enable_maintainer_mode
783 enable_verbose_makecmds
799 enable_e2initrd_helper
806 with_included_gettext
809 ac_precious_vars='build_alias
821 # Initialize some variables set by options.
823 ac_init_version=false
824 ac_unrecognized_opts=
826 # The variables have the same names as the options, with
827 # dashes changed to underlines.
835 program_transform_name=s,x,x,
843 # Installation directory options.
844 # These are left unexpanded so users can "make install exec_prefix=/foo"
845 # and all the variables that are supposed to be based on exec_prefix
846 # by default will actually change.
847 # Use braces instead of parens because sh, perl, etc. also accept them.
848 # (The list follows the same order as the GNU Coding Standards.)
849 bindir='${exec_prefix}/bin'
850 sbindir='${exec_prefix}/sbin'
851 libexecdir='${exec_prefix}/libexec'
852 datarootdir='${prefix}/share'
853 datadir='${datarootdir}'
854 sysconfdir='${prefix}/etc'
855 sharedstatedir='${prefix}/com'
856 localstatedir='${prefix}/var'
857 includedir='${prefix}/include'
858 oldincludedir='/usr/include'
859 docdir='${datarootdir}/doc/${PACKAGE}'
860 infodir='${datarootdir}/info'
865 libdir='${exec_prefix}/lib'
866 localedir='${datarootdir}/locale'
867 mandir='${datarootdir}/man'
873 # If the previous option needs an argument, assign it.
874 if test -n "$ac_prev"; then
875 eval $ac_prev=\$ac_option
881 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
885 # Accept the important Cygnus configure options, so we can diagnose typos.
887 case $ac_dashdash$ac_option in
891 -bindir | --bindir | --bindi | --bind | --bin | --bi)
893 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
896 -build | --build | --buil | --bui | --bu)
897 ac_prev=build_alias ;;
898 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
899 build_alias=$ac_optarg ;;
901 -cache-file | --cache-file | --cache-fil | --cache-fi \
902 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
903 ac_prev=cache_file ;;
904 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
905 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
906 cache_file=$ac_optarg ;;
909 cache_file=config.cache ;;
911 -datadir | --datadir | --datadi | --datad)
913 -datadir=* | --datadir=* | --datadi=* | --datad=*)
914 datadir=$ac_optarg ;;
916 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
917 | --dataroo | --dataro | --datar)
918 ac_prev=datarootdir ;;
919 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
920 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
921 datarootdir=$ac_optarg ;;
923 -disable-* | --disable-*)
924 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
925 # Reject names that are not valid shell variable names.
926 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
927 as_fn_error "invalid feature name: $ac_useropt"
928 ac_useropt_orig=$ac_useropt
929 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
930 case $ac_user_opts in
934 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
935 ac_unrecognized_sep=', ';;
937 eval enable_$ac_useropt=no ;;
939 -docdir | --docdir | --docdi | --doc | --do)
941 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
944 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
946 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
949 -enable-* | --enable-*)
950 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
951 # Reject names that are not valid shell variable names.
952 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
953 as_fn_error "invalid feature name: $ac_useropt"
954 ac_useropt_orig=$ac_useropt
955 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
956 case $ac_user_opts in
960 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
961 ac_unrecognized_sep=', ';;
963 eval enable_$ac_useropt=\$ac_optarg ;;
965 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
966 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
967 | --exec | --exe | --ex)
968 ac_prev=exec_prefix ;;
969 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
970 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
971 | --exec=* | --exe=* | --ex=*)
972 exec_prefix=$ac_optarg ;;
974 -gas | --gas | --ga | --g)
975 # Obsolete; use --with-gas.
978 -help | --help | --hel | --he | -h)
980 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
981 ac_init_help=recursive ;;
982 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
983 ac_init_help=short ;;
985 -host | --host | --hos | --ho)
986 ac_prev=host_alias ;;
987 -host=* | --host=* | --hos=* | --ho=*)
988 host_alias=$ac_optarg ;;
990 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
992 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
994 htmldir=$ac_optarg ;;
996 -includedir | --includedir | --includedi | --included | --include \
997 | --includ | --inclu | --incl | --inc)
998 ac_prev=includedir ;;
999 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1000 | --includ=* | --inclu=* | --incl=* | --inc=*)
1001 includedir=$ac_optarg ;;
1003 -infodir | --infodir | --infodi | --infod | --info | --inf)
1005 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1006 infodir=$ac_optarg ;;
1008 -libdir | --libdir | --libdi | --libd)
1010 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1011 libdir=$ac_optarg ;;
1013 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1014 | --libexe | --libex | --libe)
1015 ac_prev=libexecdir ;;
1016 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1017 | --libexe=* | --libex=* | --libe=*)
1018 libexecdir=$ac_optarg ;;
1020 -localedir | --localedir | --localedi | --localed | --locale)
1021 ac_prev=localedir ;;
1022 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1023 localedir=$ac_optarg ;;
1025 -localstatedir | --localstatedir | --localstatedi | --localstated \
1026 | --localstate | --localstat | --localsta | --localst | --locals)
1027 ac_prev=localstatedir ;;
1028 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1029 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1030 localstatedir=$ac_optarg ;;
1032 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1034 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1035 mandir=$ac_optarg ;;
1037 -nfp | --nfp | --nf)
1038 # Obsolete; use --without-fp.
1041 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1042 | --no-cr | --no-c | -n)
1045 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1046 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1049 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1050 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1051 | --oldin | --oldi | --old | --ol | --o)
1052 ac_prev=oldincludedir ;;
1053 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1054 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1055 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1056 oldincludedir=$ac_optarg ;;
1058 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1060 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1061 prefix=$ac_optarg ;;
1063 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1064 | --program-pre | --program-pr | --program-p)
1065 ac_prev=program_prefix ;;
1066 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1067 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1068 program_prefix=$ac_optarg ;;
1070 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1071 | --program-suf | --program-su | --program-s)
1072 ac_prev=program_suffix ;;
1073 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1074 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1075 program_suffix=$ac_optarg ;;
1077 -program-transform-name | --program-transform-name \
1078 | --program-transform-nam | --program-transform-na \
1079 | --program-transform-n | --program-transform- \
1080 | --program-transform | --program-transfor \
1081 | --program-transfo | --program-transf \
1082 | --program-trans | --program-tran \
1083 | --progr-tra | --program-tr | --program-t)
1084 ac_prev=program_transform_name ;;
1085 -program-transform-name=* | --program-transform-name=* \
1086 | --program-transform-nam=* | --program-transform-na=* \
1087 | --program-transform-n=* | --program-transform-=* \
1088 | --program-transform=* | --program-transfor=* \
1089 | --program-transfo=* | --program-transf=* \
1090 | --program-trans=* | --program-tran=* \
1091 | --progr-tra=* | --program-tr=* | --program-t=*)
1092 program_transform_name=$ac_optarg ;;
1094 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1096 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1097 pdfdir=$ac_optarg ;;
1099 -psdir | --psdir | --psdi | --psd | --ps)
1101 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1104 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1105 | -silent | --silent | --silen | --sile | --sil)
1108 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1110 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1112 sbindir=$ac_optarg ;;
1114 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1115 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1116 | --sharedst | --shareds | --shared | --share | --shar \
1118 ac_prev=sharedstatedir ;;
1119 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1120 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1121 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1123 sharedstatedir=$ac_optarg ;;
1125 -site | --site | --sit)
1127 -site=* | --site=* | --sit=*)
1130 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1132 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1133 srcdir=$ac_optarg ;;
1135 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1136 | --syscon | --sysco | --sysc | --sys | --sy)
1137 ac_prev=sysconfdir ;;
1138 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1139 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1140 sysconfdir=$ac_optarg ;;
1142 -target | --target | --targe | --targ | --tar | --ta | --t)
1143 ac_prev=target_alias ;;
1144 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1145 target_alias=$ac_optarg ;;
1147 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1150 -version | --version | --versio | --versi | --vers | -V)
1151 ac_init_version=: ;;
1154 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1155 # Reject names that are not valid shell variable names.
1156 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1157 as_fn_error "invalid package name: $ac_useropt"
1158 ac_useropt_orig=$ac_useropt
1159 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1160 case $ac_user_opts in
1164 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1165 ac_unrecognized_sep=', ';;
1167 eval with_$ac_useropt=\$ac_optarg ;;
1169 -without-* | --without-*)
1170 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1171 # Reject names that are not valid shell variable names.
1172 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1173 as_fn_error "invalid package name: $ac_useropt"
1174 ac_useropt_orig=$ac_useropt
1175 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1176 case $ac_user_opts in
1180 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1181 ac_unrecognized_sep=', ';;
1183 eval with_$ac_useropt=no ;;
1186 # Obsolete; use --with-x.
1189 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1190 | --x-incl | --x-inc | --x-in | --x-i)
1191 ac_prev=x_includes ;;
1192 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1193 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1194 x_includes=$ac_optarg ;;
1196 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1197 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1198 ac_prev=x_libraries ;;
1199 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1200 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1201 x_libraries=$ac_optarg ;;
1203 -*) as_fn_error "unrecognized option: \`$ac_option'
1204 Try \`$0 --help' for more information."
1208 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1209 # Reject names that are not valid shell variable names.
1210 case $ac_envvar in #(
1211 '' | [0-9]* | *[!_$as_cr_alnum]* )
1212 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1214 eval $ac_envvar=\$ac_optarg
1215 export $ac_envvar ;;
1218 # FIXME: should be removed in autoconf 3.0.
1219 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1220 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1221 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1222 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1228 if test -n "$ac_prev"; then
1229 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1230 as_fn_error "missing argument to $ac_option"
1233 if test -n "$ac_unrecognized_opts"; then
1234 case $enable_option_checking in
1236 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1237 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1241 # Check all directory arguments for consistency.
1242 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1243 datadir sysconfdir sharedstatedir localstatedir includedir \
1244 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1245 libdir localedir mandir
1247 eval ac_val=\$$ac_var
1248 # Remove trailing slashes.
1251 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1252 eval $ac_var=\$ac_val;;
1254 # Be sure to have absolute directory names.
1256 [\\/$]* | ?:[\\/]* ) continue;;
1257 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1259 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1262 # There might be people who depend on the old broken behavior: `$host'
1263 # used to hold the argument of --host etc.
1264 # FIXME: To remove some day.
1267 target=$target_alias
1269 # FIXME: To remove some day.
1270 if test "x$host_alias" != x; then
1271 if test "x$build_alias" = x; then
1272 cross_compiling=maybe
1273 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1274 If a cross compiler is detected then cross compile mode will be used." >&2
1275 elif test "x$build_alias" != "x$host_alias"; then
1281 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1283 test "$silent" = yes && exec 6>/dev/null
1286 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1287 ac_ls_di=`ls -di .` &&
1288 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1289 as_fn_error "working directory cannot be determined"
1290 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1291 as_fn_error "pwd does not report name of working directory"
1294 # Find the source files, if location was not specified.
1295 if test -z "$srcdir"; then
1296 ac_srcdir_defaulted=yes
1297 # Try the directory containing this script, then the parent directory.
1298 ac_confdir=`$as_dirname -- "$as_myself" ||
1299 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1300 X"$as_myself" : 'X\(//\)[^/]' \| \
1301 X"$as_myself" : 'X\(//\)$' \| \
1302 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1303 $as_echo X"$as_myself" |
1304 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1322 if test ! -r "$srcdir/$ac_unique_file"; then
1326 ac_srcdir_defaulted=no
1328 if test ! -r "$srcdir/$ac_unique_file"; then
1329 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1330 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1332 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1334 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1336 # When building in place, set srcdir=.
1337 if test "$ac_abs_confdir" = "$ac_pwd"; then
1340 # Remove unnecessary trailing slashes from srcdir.
1341 # Double slashes in file names in object file debugging info
1342 # mess up M-x gdb in Emacs.
1344 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1346 for ac_var in $ac_precious_vars; do
1347 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1348 eval ac_env_${ac_var}_value=\$${ac_var}
1349 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1350 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1354 # Report the --help message.
1356 if test "$ac_init_help" = "long"; then
1357 # Omit some internal or obsolete options to make the list less imposing.
1358 # This message is too long to be a string in the A/UX 3.1 sh.
1360 \`configure' configures this package to adapt to many kinds of systems.
1362 Usage: $0 [OPTION]... [VAR=VALUE]...
1364 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1365 VAR=VALUE. See below for descriptions of some of the useful variables.
1367 Defaults for the options are specified in brackets.
1370 -h, --help display this help and exit
1371 --help=short display options specific to this package
1372 --help=recursive display the short help of all the included packages
1373 -V, --version display version information and exit
1374 -q, --quiet, --silent do not print \`checking...' messages
1375 --cache-file=FILE cache test results in FILE [disabled]
1376 -C, --config-cache alias for \`--cache-file=config.cache'
1377 -n, --no-create do not create output files
1378 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1380 Installation directories:
1381 --prefix=PREFIX install architecture-independent files in PREFIX
1382 [$ac_default_prefix]
1383 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1386 By default, \`make install' will install all the files in
1387 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1388 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1389 for instance \`--prefix=\$HOME'.
1391 For better control, use the options below.
1393 Fine tuning of the installation directories:
1394 --bindir=DIR user executables [EPREFIX/bin]
1395 --sbindir=DIR system admin executables [EPREFIX/sbin]
1396 --libexecdir=DIR program executables [EPREFIX/libexec]
1397 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1398 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1399 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1400 --libdir=DIR object code libraries [EPREFIX/lib]
1401 --includedir=DIR C header files [PREFIX/include]
1402 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1403 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1404 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1405 --infodir=DIR info documentation [DATAROOTDIR/info]
1406 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1407 --mandir=DIR man documentation [DATAROOTDIR/man]
1408 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1409 --htmldir=DIR html documentation [DOCDIR]
1410 --dvidir=DIR dvi documentation [DOCDIR]
1411 --pdfdir=DIR pdf documentation [DOCDIR]
1412 --psdir=DIR ps documentation [DOCDIR]
1418 --build=BUILD configure for building on BUILD [guessed]
1419 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1423 if test -n "$ac_init_help"; then
1428 --disable-option-checking ignore unrecognized --enable/--with options
1429 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1430 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1431 --enable-maintainer-mode enable makefile rules useful for maintainers
1432 --enable-verbose-makecmds enable verbose make command output
1433 --enable-compression enable EXPERIMENTAL compression support
1434 --enable-htree enable EXPERIMENTAL htree directory support
1435 --enable-elf-shlibs select ELF shared libraries
1436 --enable-bsd-shlibs select BSD shared libraries
1437 --enable-profile build profiling libraries
1438 --enable-checker build checker libraries
1439 --enable-jbd-debug enable journal debugging
1440 --enable-blkid-debug enable blkid debugging
1441 --disable-testio-debug disable the use of the test I/O manager for debugging
1442 --disable-libuuid do not build private uuid library
1443 --disable-libblkid do not build private blkid library
1444 --disable-debugfs disable support of debugfs program
1445 --disable-imager disable support of e2image program
1446 --disable-resizer disable support of e2resize program
1447 --enable-fsck build fsck wrapper program
1448 --enable-e2initrd-helper build e2initrd-helper program
1449 --disable-tls disable use of thread local support
1450 --disable-uuidd disable building the uuid daemon
1451 --disable-nls do not use Native Language Support
1452 --disable-rpath do not hardcode runtime library paths
1455 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1456 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1457 --with-diet-libc use diet libc
1458 --with-cc no longer supported, use CC= instead
1459 --with-ccopts no longer supported, use CFLAGS= instead
1460 --with-ldopts no longer supported, use LDFLAGS= instead
1461 --with-root-prefix=PREFIX override prefix variable for files to be placed in the root
1462 --with-gnu-ld assume the C compiler uses GNU ld default=no
1463 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1464 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1465 --with-included-gettext use the GNU gettext library included here
1466 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1467 --without-libintl-prefix don't search for libintl in includedir and libdir
1469 Some influential environment variables:
1470 CC C compiler command
1471 CFLAGS C compiler flags
1472 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1473 nonstandard directory <lib dir>
1474 LIBS libraries to pass to the linker, e.g. -l<library>
1475 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1476 you have headers in a nonstandard directory <include dir>
1478 PKG_CONFIG path to pkg-config utility
1480 Use these variables to override the choices made by `configure' or to help
1481 it to find libraries and programs with nonstandard names/locations.
1483 Report bugs to the package provider.
1488 if test "$ac_init_help" = "recursive"; then
1489 # If there are subdirs, report their specific --help.
1490 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1491 test -d "$ac_dir" ||
1492 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1497 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1499 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1500 # A ".." for each directory in $ac_dir_suffix.
1501 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1502 case $ac_top_builddir_sub in
1503 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1504 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1507 ac_abs_top_builddir=$ac_pwd
1508 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1509 # for backward compatibility:
1510 ac_top_builddir=$ac_top_build_prefix
1513 .) # We are building in place.
1515 ac_top_srcdir=$ac_top_builddir_sub
1516 ac_abs_top_srcdir=$ac_pwd ;;
1517 [\\/]* | ?:[\\/]* ) # Absolute name.
1518 ac_srcdir=$srcdir$ac_dir_suffix;
1519 ac_top_srcdir=$srcdir
1520 ac_abs_top_srcdir=$srcdir ;;
1522 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1523 ac_top_srcdir=$ac_top_build_prefix$srcdir
1524 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1526 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1528 cd "$ac_dir" || { ac_status=$?; continue; }
1529 # Check for guested configure.
1530 if test -f "$ac_srcdir/configure.gnu"; then
1532 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1533 elif test -f "$ac_srcdir/configure"; then
1535 $SHELL "$ac_srcdir/configure" --help=recursive
1537 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1539 cd "$ac_pwd" || { ac_status=$?; break; }
1543 test -n "$ac_init_help" && exit $ac_status
1544 if $ac_init_version; then
1547 generated by GNU Autoconf 2.64
1549 Copyright (C) 2009 Free Software Foundation, Inc.
1550 This configure script is free software; the Free Software Foundation
1551 gives unlimited permission to copy, distribute and modify it.
1556 ## ------------------------ ##
1557 ## Autoconf initialization. ##
1558 ## ------------------------ ##
1560 # ac_fn_c_try_compile LINENO
1561 # --------------------------
1562 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1563 ac_fn_c_try_compile ()
1565 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1566 rm -f conftest.$ac_objext
1567 if { { ac_try="$ac_compile"
1569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1570 *) ac_try_echo=$ac_try;;
1572 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1573 $as_echo "$ac_try_echo"; } >&5
1574 (eval "$ac_compile") 2>conftest.err
1576 if test -s conftest.err; then
1577 grep -v '^ *+' conftest.err >conftest.er1
1578 cat conftest.er1 >&5
1579 mv -f conftest.er1 conftest.err
1581 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1582 test $ac_status = 0; } && {
1583 test -z "$ac_c_werror_flag" ||
1584 test ! -s conftest.err
1585 } && test -s conftest.$ac_objext; then :
1588 $as_echo "$as_me: failed program was:" >&5
1589 sed 's/^/| /' conftest.$ac_ext >&5
1593 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1596 } # ac_fn_c_try_compile
1598 # ac_fn_c_try_link LINENO
1599 # -----------------------
1600 # Try to link conftest.$ac_ext, and return whether this succeeded.
1603 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1604 rm -f conftest.$ac_objext conftest$ac_exeext
1605 if { { ac_try="$ac_link"
1607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1608 *) ac_try_echo=$ac_try;;
1610 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1611 $as_echo "$ac_try_echo"; } >&5
1612 (eval "$ac_link") 2>conftest.err
1614 if test -s conftest.err; then
1615 grep -v '^ *+' conftest.err >conftest.er1
1616 cat conftest.er1 >&5
1617 mv -f conftest.er1 conftest.err
1619 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1620 test $ac_status = 0; } && {
1621 test -z "$ac_c_werror_flag" ||
1622 test ! -s conftest.err
1623 } && test -s conftest$ac_exeext && {
1624 test "$cross_compiling" = yes ||
1625 $as_test_x conftest$ac_exeext
1629 $as_echo "$as_me: failed program was:" >&5
1630 sed 's/^/| /' conftest.$ac_ext >&5
1634 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1635 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1636 # interfere with the next link command; also delete a directory that is
1637 # left behind by Apple's compiler. We do this before executing the actions.
1638 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1639 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1642 } # ac_fn_c_try_link
1644 # ac_fn_c_try_cpp LINENO
1645 # ----------------------
1646 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1649 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1650 if { { ac_try="$ac_cpp conftest.$ac_ext"
1652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1653 *) ac_try_echo=$ac_try;;
1655 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1656 $as_echo "$ac_try_echo"; } >&5
1657 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1659 if test -s conftest.err; then
1660 grep -v '^ *+' conftest.err >conftest.er1
1661 cat conftest.er1 >&5
1662 mv -f conftest.er1 conftest.err
1664 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1665 test $ac_status = 0; } >/dev/null && {
1666 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1667 test ! -s conftest.err
1671 $as_echo "$as_me: failed program was:" >&5
1672 sed 's/^/| /' conftest.$ac_ext >&5
1676 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1681 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1682 # -------------------------------------------------------
1683 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1684 # the include files in INCLUDES and setting the cache variable VAR
1686 ac_fn_c_check_header_mongrel ()
1688 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1689 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1691 $as_echo_n "checking for $2... " >&6; }
1692 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1693 $as_echo_n "(cached) " >&6
1696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1697 $as_echo "$ac_res" >&6; }
1699 # Is the header compilable?
1700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1701 $as_echo_n "checking $2 usability... " >&6; }
1702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1703 /* end confdefs.h. */
1707 if ac_fn_c_try_compile "$LINENO"; then :
1708 ac_header_compiler=yes
1710 ac_header_compiler=no
1712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1714 $as_echo "$ac_header_compiler" >&6; }
1716 # Is the header present?
1717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1718 $as_echo_n "checking $2 presence... " >&6; }
1719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1720 /* end confdefs.h. */
1723 if ac_fn_c_try_cpp "$LINENO"; then :
1724 ac_header_preproc=yes
1726 ac_header_preproc=no
1728 rm -f conftest.err conftest.$ac_ext
1729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1730 $as_echo "$ac_header_preproc" >&6; }
1732 # So? What about this header?
1733 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1735 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1736 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1737 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1738 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1741 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1742 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1743 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1744 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1745 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1746 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1747 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1748 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1749 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1750 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1754 $as_echo_n "checking for $2... " >&6; }
1755 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1756 $as_echo_n "(cached) " >&6
1758 eval "$3=\$ac_header_compiler"
1761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1762 $as_echo "$ac_res" >&6; }
1764 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1766 } # ac_fn_c_check_header_mongrel
1768 # ac_fn_c_try_run LINENO
1769 # ----------------------
1770 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1771 # that executables *can* be run.
1774 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1775 if { { ac_try="$ac_link"
1777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1778 *) ac_try_echo=$ac_try;;
1780 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1781 $as_echo "$ac_try_echo"; } >&5
1782 (eval "$ac_link") 2>&5
1784 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1785 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1786 { { case "(($ac_try" in
1787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1788 *) ac_try_echo=$ac_try;;
1790 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1791 $as_echo "$ac_try_echo"; } >&5
1792 (eval "$ac_try") 2>&5
1794 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1795 test $ac_status = 0; }; }; then :
1798 $as_echo "$as_me: program exited with status $ac_status" >&5
1799 $as_echo "$as_me: failed program was:" >&5
1800 sed 's/^/| /' conftest.$ac_ext >&5
1802 ac_retval=$ac_status
1804 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1805 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1810 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1811 # -------------------------------------------------------
1812 # Tests whether HEADER exists and can be compiled using the include files in
1813 # INCLUDES, setting the cache variable VAR accordingly.
1814 ac_fn_c_check_header_compile ()
1816 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1818 $as_echo_n "checking for $2... " >&6; }
1819 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1820 $as_echo_n "(cached) " >&6
1822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1823 /* end confdefs.h. */
1827 if ac_fn_c_try_compile "$LINENO"; then :
1832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1836 $as_echo "$ac_res" >&6; }
1837 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1839 } # ac_fn_c_check_header_compile
1841 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1842 # -------------------------------------------
1843 # Tests whether TYPE exists after having included INCLUDES, setting cache
1844 # variable VAR accordingly.
1845 ac_fn_c_check_type ()
1847 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1849 $as_echo_n "checking for $2... " >&6; }
1850 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1851 $as_echo_n "(cached) " >&6
1854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1855 /* end confdefs.h. */
1866 if ac_fn_c_try_compile "$LINENO"; then :
1867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1868 /* end confdefs.h. */
1879 if ac_fn_c_try_compile "$LINENO"; then :
1884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1890 $as_echo "$ac_res" >&6; }
1891 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1893 } # ac_fn_c_check_type
1895 # ac_fn_c_check_func LINENO FUNC VAR
1896 # ----------------------------------
1897 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1898 ac_fn_c_check_func ()
1900 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1902 $as_echo_n "checking for $2... " >&6; }
1903 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1904 $as_echo_n "(cached) " >&6
1906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1907 /* end confdefs.h. */
1908 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1909 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1910 #define $2 innocuous_$2
1912 /* System header to define __stub macros and hopefully few prototypes,
1913 which can conflict with char $2 (); below.
1914 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1915 <limits.h> exists even on freestanding compilers. */
1918 # include <limits.h>
1920 # include <assert.h>
1925 /* Override any GCC internal prototype to avoid an error.
1926 Use char because int might match the return type of a GCC
1927 builtin and then its argument prototype would still apply. */
1932 /* The GNU C library defines this for functions which it implements
1933 to always fail with ENOSYS. Some functions are actually named
1934 something starting with __ and the normal name is an alias. */
1935 #if defined __stub_$2 || defined __stub___$2
1947 if ac_fn_c_try_link "$LINENO"; then :
1952 rm -f core conftest.err conftest.$ac_objext \
1953 conftest$ac_exeext conftest.$ac_ext
1956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1957 $as_echo "$ac_res" >&6; }
1958 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1960 } # ac_fn_c_check_func
1962 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1963 # --------------------------------------------
1964 # Tries to find the compile-time value of EXPR in a program that includes
1965 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1967 ac_fn_c_compute_int ()
1969 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1970 if test "$cross_compiling" = yes; then
1971 # Depending upon the size, compute the lo and hi bounds.
1972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1973 /* end confdefs.h. */
1978 static int test_array [1 - 2 * !(($2) >= 0)];
1985 if ac_fn_c_try_compile "$LINENO"; then :
1988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1989 /* end confdefs.h. */
1994 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2001 if ac_fn_c_try_compile "$LINENO"; then :
2002 ac_hi=$ac_mid; break
2004 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2005 if test $ac_lo -le $ac_mid; then
2009 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2015 /* end confdefs.h. */
2020 static int test_array [1 - 2 * !(($2) < 0)];
2027 if ac_fn_c_try_compile "$LINENO"; then :
2030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2031 /* end confdefs.h. */
2036 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2043 if ac_fn_c_try_compile "$LINENO"; then :
2044 ac_lo=$ac_mid; break
2046 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2047 if test $ac_mid -le $ac_hi; then
2051 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2061 # Binary search between lo and hi bounds.
2062 while test "x$ac_lo" != "x$ac_hi"; do
2063 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2065 /* end confdefs.h. */
2070 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2077 if ac_fn_c_try_compile "$LINENO"; then :
2080 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2085 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2090 /* end confdefs.h. */
2092 static long int longval () { return $2; }
2093 static unsigned long int ulongval () { return $2; }
2100 FILE *f = fopen ("conftest.val", "w");
2105 long int i = longval ();
2108 fprintf (f, "%ld", i);
2112 unsigned long int i = ulongval ();
2115 fprintf (f, "%lu", i);
2117 /* Do not output a trailing newline, as this causes \r\n confusion
2118 on some platforms. */
2119 return ferror (f) || fclose (f) != 0;
2125 if ac_fn_c_try_run "$LINENO"; then :
2126 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2130 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2131 conftest.$ac_objext conftest.beam conftest.$ac_ext
2135 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2138 } # ac_fn_c_compute_int
2140 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2141 # ----------------------------------------------------
2142 # Tries to find if the field MEMBER exists in type AGGR, after including
2143 # INCLUDES, setting cache variable VAR accordingly.
2144 ac_fn_c_check_member ()
2146 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2148 $as_echo_n "checking for $2.$3... " >&6; }
2149 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2150 $as_echo_n "(cached) " >&6
2152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2153 /* end confdefs.h. */
2165 if ac_fn_c_try_compile "$LINENO"; then :
2168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2169 /* end confdefs.h. */
2175 if (sizeof ac_aggr.$3)
2181 if ac_fn_c_try_compile "$LINENO"; then :
2186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2192 $as_echo "$ac_res" >&6; }
2193 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2195 } # ac_fn_c_check_member
2197 # ac_fn_c_check_decl LINENO SYMBOL VAR
2198 # ------------------------------------
2199 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2200 ac_fn_c_check_decl ()
2202 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2204 $as_echo_n "checking whether $2 is declared... " >&6; }
2205 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2206 $as_echo_n "(cached) " >&6
2208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2209 /* end confdefs.h. */
2222 if ac_fn_c_try_compile "$LINENO"; then :
2227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2231 $as_echo "$ac_res" >&6; }
2232 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2234 } # ac_fn_c_check_decl
2235 cat >config.log <<_ACEOF
2236 This file contains any messages produced by compilers while
2237 running configure, to aid debugging if configure makes a mistake.
2239 It was created by $as_me, which was
2240 generated by GNU Autoconf 2.64. Invocation command line was
2252 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2253 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2254 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2255 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2256 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2258 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2259 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2261 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2262 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2263 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2264 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2265 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2266 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2267 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2275 test -z "$as_dir" && as_dir=.
2276 $as_echo "PATH: $as_dir"
2292 # Keep a trace of the command line.
2293 # Strip out --no-create and --no-recursion so they do not pile up.
2294 # Strip out --silent because we don't want to record it for future runs.
2295 # Also quote any args containing shell meta-characters.
2296 # Make two passes to allow for proper duplicate-argument suppression.
2300 ac_must_keep_next=false
2306 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2307 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2308 | -silent | --silent | --silen | --sile | --sil)
2311 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2314 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2316 as_fn_append ac_configure_args1 " '$ac_arg'"
2317 if test $ac_must_keep_next = true; then
2318 ac_must_keep_next=false # Got value, back to normal.
2321 *=* | --config-cache | -C | -disable-* | --disable-* \
2322 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2323 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2324 | -with-* | --with-* | -without-* | --without-* | --x)
2325 case "$ac_configure_args0 " in
2326 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2329 -* ) ac_must_keep_next=true ;;
2332 as_fn_append ac_configure_args " '$ac_arg'"
2337 { ac_configure_args0=; unset ac_configure_args0;}
2338 { ac_configure_args1=; unset ac_configure_args1;}
2340 # When interrupted or exit'd, cleanup temporary files, and complete
2341 # config.log. We remove comments because anyway the quotes in there
2342 # would cause problems or look ugly.
2343 # WARNING: Use '\'' to represent an apostrophe within the trap.
2344 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2345 trap 'exit_status=$?
2346 # Save into config.log some information that might help in debugging.
2351 ## ---------------- ##
2352 ## Cache variables. ##
2353 ## ---------------- ##
2356 # The following way of writing the cache mishandles newlines in values,
2358 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2359 eval ac_val=\$$ac_var
2363 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2364 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2367 _ | IFS | as_nl) ;; #(
2368 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2369 *) { eval $ac_var=; unset $ac_var;} ;;
2374 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2375 *${as_nl}ac_space=\ *)
2377 "s/'\''/'\''\\\\'\'''\''/g;
2378 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2381 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2389 ## ----------------- ##
2390 ## Output variables. ##
2391 ## ----------------- ##
2394 for ac_var in $ac_subst_vars
2396 eval ac_val=\$$ac_var
2398 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2400 $as_echo "$ac_var='\''$ac_val'\''"
2404 if test -n "$ac_subst_files"; then
2406 ## ------------------- ##
2407 ## File substitutions. ##
2408 ## ------------------- ##
2411 for ac_var in $ac_subst_files
2413 eval ac_val=\$$ac_var
2415 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2417 $as_echo "$ac_var='\''$ac_val'\''"
2422 if test -s confdefs.h; then
2432 test "$ac_signal" != 0 &&
2433 $as_echo "$as_me: caught signal $ac_signal"
2434 $as_echo "$as_me: exit $exit_status"
2436 rm -f core *.core core.conftest.* &&
2437 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2440 for ac_signal in 1 2 13 15; do
2441 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2445 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2446 rm -f -r conftest* confdefs.h
2448 $as_echo "/* confdefs.h */" > confdefs.h
2450 # Predefined preprocessor variables.
2452 cat >>confdefs.h <<_ACEOF
2453 #define PACKAGE_NAME "$PACKAGE_NAME"
2456 cat >>confdefs.h <<_ACEOF
2457 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2460 cat >>confdefs.h <<_ACEOF
2461 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2464 cat >>confdefs.h <<_ACEOF
2465 #define PACKAGE_STRING "$PACKAGE_STRING"
2468 cat >>confdefs.h <<_ACEOF
2469 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2472 cat >>confdefs.h <<_ACEOF
2473 #define PACKAGE_URL "$PACKAGE_URL"
2477 # Let the site file select an alternate cache file if it wants to.
2478 # Prefer an explicitly selected file to automatically selected ones.
2481 if test -n "$CONFIG_SITE"; then
2482 ac_site_file1=$CONFIG_SITE
2483 elif test "x$prefix" != xNONE; then
2484 ac_site_file1=$prefix/share/config.site
2485 ac_site_file2=$prefix/etc/config.site
2487 ac_site_file1=$ac_default_prefix/share/config.site
2488 ac_site_file2=$ac_default_prefix/etc/config.site
2490 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2492 test "x$ac_site_file" = xNONE && continue
2493 if test -r "$ac_site_file"; then
2494 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2495 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2496 sed 's/^/| /' "$ac_site_file" >&5
2501 if test -r "$cache_file"; then
2502 # Some versions of bash will fail to source /dev/null (special
2503 # files actually), so we avoid doing that.
2504 if test -f "$cache_file"; then
2505 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2506 $as_echo "$as_me: loading cache $cache_file" >&6;}
2508 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2509 *) . "./$cache_file";;
2513 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2514 $as_echo "$as_me: creating cache $cache_file" >&6;}
2518 # Check that the precious variables saved in the cache have kept the same
2520 ac_cache_corrupted=false
2521 for ac_var in $ac_precious_vars; do
2522 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2523 eval ac_new_set=\$ac_env_${ac_var}_set
2524 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2525 eval ac_new_val=\$ac_env_${ac_var}_value
2526 case $ac_old_set,$ac_new_set in
2528 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2529 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2530 ac_cache_corrupted=: ;;
2532 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2533 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2534 ac_cache_corrupted=: ;;
2537 if test "x$ac_old_val" != "x$ac_new_val"; then
2538 # differences in whitespace do not lead to failure.
2539 ac_old_val_w=`echo x $ac_old_val`
2540 ac_new_val_w=`echo x $ac_new_val`
2541 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2542 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2543 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2544 ac_cache_corrupted=:
2546 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2547 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2548 eval $ac_var=\$ac_old_val
2550 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2551 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2552 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2553 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2556 # Pass precious variables to config.status.
2557 if test "$ac_new_set" = set; then
2559 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2560 *) ac_arg=$ac_var=$ac_new_val ;;
2562 case " $ac_configure_args " in
2563 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2564 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2568 if $ac_cache_corrupted; then
2569 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2570 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2571 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2572 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2573 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2575 ## -------------------- ##
2576 ## Main body of script. ##
2577 ## -------------------- ##
2580 ac_cpp='$CPP $CPPFLAGS'
2581 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2582 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2583 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2588 for ac_dir in config "$srcdir"/config; do
2589 for ac_t in install-sh install.sh shtool; do
2590 if test -f "$ac_dir/$ac_t"; then
2592 ac_install_sh="$ac_aux_dir/$ac_t -c"
2597 if test -z "$ac_aux_dir"; then
2598 as_fn_error "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2601 # These three variables are undocumented and unsupported,
2602 # and are intended to be withdrawn in a future Autoconf release.
2603 # They can cause serious problems if a builder's source tree is in a directory
2604 # whose full name contains unusual characters.
2605 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2606 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2607 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2613 E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \
2614 | awk '{print $3}' | tr \" " " | awk '{print $1}'`
2615 DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
2617 E2FSPROGS_DAY=`echo $DATE | awk -F- '{print $1}'`
2618 MONTH=`echo $DATE | awk -F- '{print $2}'`
2619 YEAR=`echo $DATE | awk -F- '{print $3}'`
2621 if expr $YEAR ">" 1900 > /dev/null ; then
2622 E2FSPROGS_YEAR=$YEAR
2623 elif expr $YEAR ">" 90 >/dev/null ; then
2624 E2FSPROGS_YEAR=19$YEAR
2626 E2FSPROGS_YEAR=20$YEAR
2630 Jan) MONTH_NUM=01; E2FSPROGS_MONTH="January" ;;
2631 Feb) MONTH_NUM=02; E2FSPROGS_MONTH="February" ;;
2632 Mar) MONTH_NUM=03; E2FSPROGS_MONTH="March" ;;
2633 Apr) MONTH_NUM=04; E2FSPROGS_MONTH="April" ;;
2634 May) MONTH_NUM=05; E2FSPROGS_MONTH="May" ;;
2635 Jun) MONTH_NUM=06; E2FSPROGS_MONTH="June" ;;
2636 Jul) MONTH_NUM=07; E2FSPROGS_MONTH="July" ;;
2637 Aug) MONTH_NUM=08; E2FSPROGS_MONTH="August" ;;
2638 Sep) MONTH_NUM=09; E2FSPROGS_MONTH="September" ;;
2639 Oct) MONTH_NUM=10; E2FSPROGS_MONTH="October" ;;
2640 Nov) MONTH_NUM=11; E2FSPROGS_MONTH="November" ;;
2641 Dec) MONTH_NUM=12; E2FSPROGS_MONTH="December" ;;
2642 *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unknown month $MONTH??" >&5
2643 $as_echo "$as_me: WARNING: Unknown month $MONTH??" >&2;} ;;
2646 base_ver=`echo $E2FSPROGS_VERSION | \
2647 sed -e 's/-WIP//' -e 's/pre-//' -e 's/-PLUS//'`
2649 date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY}
2651 case $E2FSPROGS_VERSION in
2653 E2FSPROGS_PKGVER="$base_ver~WIP-$E2FSPROGS_YEAR-$MONTH_NUM-$E2FSPROGS_DAY"
2656 E2FSPROGS_PKGVER="$base_ver"
2660 unset DATE MONTH YEAR base_ver pre_vers date_spec
2661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&5
2662 $as_echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&6; }
2663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&5
2664 $as_echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&6; }
2670 # Make sure we can run config.sub.
2671 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2672 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2675 $as_echo_n "checking build system type... " >&6; }
2676 if test "${ac_cv_build+set}" = set; then :
2677 $as_echo_n "(cached) " >&6
2679 ac_build_alias=$build_alias
2680 test "x$ac_build_alias" = x &&
2681 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2682 test "x$ac_build_alias" = x &&
2683 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2684 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2685 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2689 $as_echo "$ac_cv_build" >&6; }
2690 case $ac_cv_build in
2692 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2695 ac_save_IFS=$IFS; IFS='-'
2701 # Remember, the first character of IFS is used to create $*,
2702 # except with old shells:
2705 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2709 $as_echo_n "checking host system type... " >&6; }
2710 if test "${ac_cv_host+set}" = set; then :
2711 $as_echo_n "(cached) " >&6
2713 if test "x$host_alias" = x; then
2714 ac_cv_host=$ac_cv_build
2716 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2717 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2722 $as_echo "$ac_cv_host" >&6; }
2725 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2728 ac_save_IFS=$IFS; IFS='-'
2734 # Remember, the first character of IFS is used to create $*,
2735 # except with old shells:
2738 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2743 ac_cpp='$CPP $CPPFLAGS'
2744 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2745 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2746 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2747 if test -n "$ac_tool_prefix"; then
2748 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2749 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2751 $as_echo_n "checking for $ac_word... " >&6; }
2752 if test "${ac_cv_prog_CC+set}" = set; then :
2753 $as_echo_n "(cached) " >&6
2755 if test -n "$CC"; then
2756 ac_cv_prog_CC="$CC" # Let the user override the test.
2758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2762 test -z "$as_dir" && as_dir=.
2763 for ac_exec_ext in '' $ac_executable_extensions; do
2764 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2765 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2776 if test -n "$CC"; then
2777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2778 $as_echo "$CC" >&6; }
2780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2781 $as_echo "no" >&6; }
2786 if test -z "$ac_cv_prog_CC"; then
2788 # Extract the first word of "gcc", so it can be a program name with args.
2789 set dummy gcc; ac_word=$2
2790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2791 $as_echo_n "checking for $ac_word... " >&6; }
2792 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2793 $as_echo_n "(cached) " >&6
2795 if test -n "$ac_ct_CC"; then
2796 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2802 test -z "$as_dir" && as_dir=.
2803 for ac_exec_ext in '' $ac_executable_extensions; do
2804 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2805 ac_cv_prog_ac_ct_CC="gcc"
2806 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2815 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2816 if test -n "$ac_ct_CC"; then
2817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2818 $as_echo "$ac_ct_CC" >&6; }
2820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2821 $as_echo "no" >&6; }
2824 if test "x$ac_ct_CC" = x; then
2827 case $cross_compiling:$ac_tool_warned in
2829 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2830 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2831 ac_tool_warned=yes ;;
2839 if test -z "$CC"; then
2840 if test -n "$ac_tool_prefix"; then
2841 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2842 set dummy ${ac_tool_prefix}cc; 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_CC+set}" = set; then :
2846 $as_echo_n "(cached) " >&6
2848 if test -n "$CC"; then
2849 ac_cv_prog_CC="$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_CC="${ac_tool_prefix}cc"
2859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2869 if test -n "$CC"; then
2870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2871 $as_echo "$CC" >&6; }
2873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2874 $as_echo "no" >&6; }
2880 if test -z "$CC"; then
2881 # Extract the first word of "cc", so it can be a program name with args.
2882 set dummy cc; ac_word=$2
2883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2884 $as_echo_n "checking for $ac_word... " >&6; }
2885 if test "${ac_cv_prog_CC+set}" = set; then :
2886 $as_echo_n "(cached) " >&6
2888 if test -n "$CC"; then
2889 ac_cv_prog_CC="$CC" # Let the user override the test.
2892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2896 test -z "$as_dir" && as_dir=.
2897 for ac_exec_ext in '' $ac_executable_extensions; do
2898 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2899 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2900 ac_prog_rejected=yes
2904 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2911 if test $ac_prog_rejected = yes; then
2912 # We found a bogon in the path, so make sure we never use it.
2913 set dummy $ac_cv_prog_CC
2915 if test $# != 0; then
2916 # We chose a different compiler from the bogus one.
2917 # However, it has the same basename, so the bogon will be chosen
2918 # first if we set CC to just the basename; use the full file name.
2920 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2926 if test -n "$CC"; then
2927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2928 $as_echo "$CC" >&6; }
2930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2931 $as_echo "no" >&6; }
2936 if test -z "$CC"; then
2937 if test -n "$ac_tool_prefix"; then
2938 for ac_prog in cl.exe
2940 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2941 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2943 $as_echo_n "checking for $ac_word... " >&6; }
2944 if test "${ac_cv_prog_CC+set}" = set; then :
2945 $as_echo_n "(cached) " >&6
2947 if test -n "$CC"; then
2948 ac_cv_prog_CC="$CC" # Let the user override the test.
2950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2954 test -z "$as_dir" && as_dir=.
2955 for ac_exec_ext in '' $ac_executable_extensions; do
2956 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2957 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2958 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2968 if test -n "$CC"; then
2969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2970 $as_echo "$CC" >&6; }
2972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2973 $as_echo "no" >&6; }
2977 test -n "$CC" && break
2980 if test -z "$CC"; then
2982 for ac_prog in cl.exe
2984 # Extract the first word of "$ac_prog", so it can be a program name with args.
2985 set dummy $ac_prog; ac_word=$2
2986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2987 $as_echo_n "checking for $ac_word... " >&6; }
2988 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2989 $as_echo_n "(cached) " >&6
2991 if test -n "$ac_ct_CC"; then
2992 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2998 test -z "$as_dir" && as_dir=.
2999 for ac_exec_ext in '' $ac_executable_extensions; do
3000 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3001 ac_cv_prog_ac_ct_CC="$ac_prog"
3002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3011 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3012 if test -n "$ac_ct_CC"; then
3013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3014 $as_echo "$ac_ct_CC" >&6; }
3016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3017 $as_echo "no" >&6; }
3021 test -n "$ac_ct_CC" && break
3024 if test "x$ac_ct_CC" = x; then
3027 case $cross_compiling:$ac_tool_warned in
3029 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3030 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3031 ac_tool_warned=yes ;;
3040 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3041 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3042 as_fn_error "no acceptable C compiler found in \$PATH
3043 See \`config.log' for more details." "$LINENO" 5; }
3045 # Provide some information about the compiler.
3046 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3049 for ac_option in --version -v -V -qversion; do
3050 { { ac_try="$ac_compiler $ac_option >&5"
3052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3053 *) ac_try_echo=$ac_try;;
3055 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3056 $as_echo "$ac_try_echo"; } >&5
3057 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3059 if test -s conftest.err; then
3061 ... rest of stderr output deleted ...
3062 10q' conftest.err >conftest.er1
3063 cat conftest.er1 >&5
3064 rm -f conftest.er1 conftest.err
3066 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3067 test $ac_status = 0; }
3070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3071 /* end confdefs.h. */
3076 FILE *f = fopen ("conftest.out", "w");
3077 return ferror (f) || fclose (f) != 0;
3083 ac_clean_files_save=$ac_clean_files
3084 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3085 # Try to create an executable without -o first, disregard a.out.
3086 # It will help us diagnose broken compilers, and finding out an intuition
3088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3089 $as_echo_n "checking for C compiler default output file name... " >&6; }
3090 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3092 # The possible output files:
3093 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3096 for ac_file in $ac_files
3099 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3100 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3105 if { { ac_try="$ac_link_default"
3107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3108 *) ac_try_echo=$ac_try;;
3110 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3111 $as_echo "$ac_try_echo"; } >&5
3112 (eval "$ac_link_default") 2>&5
3114 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3115 test $ac_status = 0; }; then :
3116 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3117 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3118 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3119 # so that the user can short-circuit this test for compilers unknown to
3121 for ac_file in $ac_files ''
3123 test -f "$ac_file" || continue
3125 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3128 # We found the default executable, but exeext='' is most
3132 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3134 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3136 # We set ac_cv_exeext here because the later test for it is not
3137 # safe: cross compilers may not add the suffix if given an `-o'
3138 # argument, so we may need to know it at that point already.
3139 # Even if this section looks crufty: it has the advantage of
3146 test "$ac_cv_exeext" = no && ac_cv_exeext=
3151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3152 $as_echo "$ac_file" >&6; }
3153 if test -z "$ac_file"; then :
3154 $as_echo "$as_me: failed program was:" >&5
3155 sed 's/^/| /' conftest.$ac_ext >&5
3157 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3158 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3159 { as_fn_set_status 77
3160 as_fn_error "C compiler cannot create executables
3161 See \`config.log' for more details." "$LINENO" 5; }; }
3163 ac_exeext=$ac_cv_exeext
3165 # Check that the compiler produces executables we can run. If not, either
3166 # the compiler is broken, or we cross compile.
3167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3168 $as_echo_n "checking whether the C compiler works... " >&6; }
3169 # If not cross compiling, check that we can run a simple program.
3170 if test "$cross_compiling" != yes; then
3171 if { ac_try='./$ac_file'
3172 { { case "(($ac_try" in
3173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3174 *) ac_try_echo=$ac_try;;
3176 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3177 $as_echo "$ac_try_echo"; } >&5
3178 (eval "$ac_try") 2>&5
3180 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3181 test $ac_status = 0; }; }; then
3184 if test "$cross_compiling" = maybe; then
3187 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3188 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3189 as_fn_error "cannot run C compiled programs.
3190 If you meant to cross compile, use \`--host'.
3191 See \`config.log' for more details." "$LINENO" 5; }
3195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3196 $as_echo "yes" >&6; }
3198 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3199 ac_clean_files=$ac_clean_files_save
3200 # Check that the compiler produces executables we can run. If not, either
3201 # the compiler is broken, or we cross compile.
3202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3203 $as_echo_n "checking whether we are cross compiling... " >&6; }
3204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3205 $as_echo "$cross_compiling" >&6; }
3207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3208 $as_echo_n "checking for suffix of executables... " >&6; }
3209 if { { ac_try="$ac_link"
3211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3212 *) ac_try_echo=$ac_try;;
3214 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3215 $as_echo "$ac_try_echo"; } >&5
3216 (eval "$ac_link") 2>&5
3218 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3219 test $ac_status = 0; }; then :
3220 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3221 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3222 # work properly (i.e., refer to `conftest.exe'), while it won't with
3224 for ac_file in conftest.exe conftest conftest.*; do
3225 test -f "$ac_file" || continue
3227 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3228 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3234 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3235 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3236 as_fn_error "cannot compute suffix of executables: cannot compile and link
3237 See \`config.log' for more details." "$LINENO" 5; }
3239 rm -f conftest$ac_cv_exeext
3240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3241 $as_echo "$ac_cv_exeext" >&6; }
3243 rm -f conftest.$ac_ext
3244 EXEEXT=$ac_cv_exeext
3246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3247 $as_echo_n "checking for suffix of object files... " >&6; }
3248 if test "${ac_cv_objext+set}" = set; then :
3249 $as_echo_n "(cached) " >&6
3251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3252 /* end confdefs.h. */
3262 rm -f conftest.o conftest.obj
3263 if { { ac_try="$ac_compile"
3265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3266 *) ac_try_echo=$ac_try;;
3268 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3269 $as_echo "$ac_try_echo"; } >&5
3270 (eval "$ac_compile") 2>&5
3272 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3273 test $ac_status = 0; }; then :
3274 for ac_file in conftest.o conftest.obj conftest.*; do
3275 test -f "$ac_file" || continue;
3277 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3278 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3283 $as_echo "$as_me: failed program was:" >&5
3284 sed 's/^/| /' conftest.$ac_ext >&5
3286 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3287 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3288 as_fn_error "cannot compute suffix of object files: cannot compile
3289 See \`config.log' for more details." "$LINENO" 5; }
3291 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3294 $as_echo "$ac_cv_objext" >&6; }
3295 OBJEXT=$ac_cv_objext
3297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3298 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3299 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3300 $as_echo_n "(cached) " >&6
3302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3303 /* end confdefs.h. */
3316 if ac_fn_c_try_compile "$LINENO"; then :
3321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3322 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3326 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3327 if test $ac_compiler_gnu = yes; then
3332 ac_test_CFLAGS=${CFLAGS+set}
3333 ac_save_CFLAGS=$CFLAGS
3334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3335 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3336 if test "${ac_cv_prog_cc_g+set}" = set; then :
3337 $as_echo_n "(cached) " >&6
3339 ac_save_c_werror_flag=$ac_c_werror_flag
3340 ac_c_werror_flag=yes
3343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3344 /* end confdefs.h. */
3354 if ac_fn_c_try_compile "$LINENO"; then :
3358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3359 /* end confdefs.h. */
3369 if ac_fn_c_try_compile "$LINENO"; then :
3372 ac_c_werror_flag=$ac_save_c_werror_flag
3374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3375 /* end confdefs.h. */
3385 if ac_fn_c_try_compile "$LINENO"; then :
3388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3393 ac_c_werror_flag=$ac_save_c_werror_flag
3395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3396 $as_echo "$ac_cv_prog_cc_g" >&6; }
3397 if test "$ac_test_CFLAGS" = set; then
3398 CFLAGS=$ac_save_CFLAGS
3399 elif test $ac_cv_prog_cc_g = yes; then
3400 if test "$GCC" = yes; then
3406 if test "$GCC" = yes; then
3412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3413 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3414 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3415 $as_echo_n "(cached) " >&6
3417 ac_cv_prog_cc_c89=no
3419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3420 /* end confdefs.h. */
3423 #include <sys/types.h>
3424 #include <sys/stat.h>
3425 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3426 struct buf { int x; };
3427 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3428 static char *e (p, i)
3434 static char *f (char * (*g) (char **, int), char **p, ...)
3439 s = g (p, va_arg (v,int));
3444 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3445 function prototypes and stuff, but not '\xHH' hex character constants.
3446 These don't provoke an error unfortunately, instead are silently treated
3447 as 'x'. The following induces an error, until -std is added to get
3448 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3449 array size at least. It's necessary to write '\x00'==0 to get something
3450 that's true only with -std. */
3451 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3453 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3454 inside strings and character constants. */
3456 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3458 int test (int i, double x);
3459 struct s1 {int (*f) (int a);};
3460 struct s2 {int (*f) (double a);};
3461 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3467 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3472 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3473 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3475 CC="$ac_save_CC $ac_arg"
3476 if ac_fn_c_try_compile "$LINENO"; then :
3477 ac_cv_prog_cc_c89=$ac_arg
3479 rm -f core conftest.err conftest.$ac_objext
3480 test "x$ac_cv_prog_cc_c89" != "xno" && break
3482 rm -f conftest.$ac_ext
3487 case "x$ac_cv_prog_cc_c89" in
3489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3490 $as_echo "none needed" >&6; } ;;
3492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3493 $as_echo "unsupported" >&6; } ;;
3495 CC="$CC $ac_cv_prog_cc_c89"
3496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3497 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3499 if test "x$ac_cv_prog_cc_c89" != xno; then :
3504 ac_cpp='$CPP $CPPFLAGS'
3505 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3506 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3507 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
3511 $as_echo_n "checking for dlopen in -ldl... " >&6; }
3512 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
3513 $as_echo_n "(cached) " >&6
3515 ac_check_lib_save_LIBS=$LIBS
3517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3518 /* end confdefs.h. */
3520 /* Override any GCC internal prototype to avoid an error.
3521 Use char because int might match the return type of a GCC
3522 builtin and then its argument prototype would still apply. */
3535 if ac_fn_c_try_link "$LINENO"; then :
3536 ac_cv_lib_dl_dlopen=yes
3538 ac_cv_lib_dl_dlopen=no
3540 rm -f core conftest.err conftest.$ac_objext \
3541 conftest$ac_exeext conftest.$ac_ext
3542 LIBS=$ac_check_lib_save_LIBS
3544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
3545 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
3546 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
3548 $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
3555 # Check whether --with-diet-libc was given.
3556 if test "${with_diet_libc+set}" = set; then :
3557 withval=$with_diet_libc; CC="diet cc -nostdinc"
3559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: CC=$CC" >&5
3560 $as_echo "CC=$CC" >&6; }
3563 # Check whether --with-cc was given.
3564 if test "${with_cc+set}" = set; then :
3565 withval=$with_cc; as_fn_error "--with-cc no longer supported; use CC= instead" "$LINENO" 5
3569 # Check whether --with-ccopts was given.
3570 if test "${with_ccopts+set}" = set; then :
3571 withval=$with_ccopts; as_fn_error "--with-ccopts no longer supported; use CFLAGS= instead" "$LINENO" 5
3575 # Check whether --with-ldopts was given.
3576 if test "${with_ldopts+set}" = set; then :
3577 withval=$with_ldopts; as_fn_error "--with-ldopts no longer supported; use LDFLAGS= instead" "$LINENO" 5
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
3585 if test -n "$ac_tool_prefix"; then
3586 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3587 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3589 $as_echo_n "checking for $ac_word... " >&6; }
3590 if test "${ac_cv_prog_CC+set}" = set; then :
3591 $as_echo_n "(cached) " >&6
3593 if test -n "$CC"; then
3594 ac_cv_prog_CC="$CC" # Let the user override the test.
3596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3600 test -z "$as_dir" && as_dir=.
3601 for ac_exec_ext in '' $ac_executable_extensions; do
3602 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3603 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3614 if test -n "$CC"; then
3615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3616 $as_echo "$CC" >&6; }
3618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3619 $as_echo "no" >&6; }
3624 if test -z "$ac_cv_prog_CC"; then
3626 # Extract the first word of "gcc", so it can be a program name with args.
3627 set dummy gcc; ac_word=$2
3628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3629 $as_echo_n "checking for $ac_word... " >&6; }
3630 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3631 $as_echo_n "(cached) " >&6
3633 if test -n "$ac_ct_CC"; then
3634 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3640 test -z "$as_dir" && as_dir=.
3641 for ac_exec_ext in '' $ac_executable_extensions; do
3642 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3643 ac_cv_prog_ac_ct_CC="gcc"
3644 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3653 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3654 if test -n "$ac_ct_CC"; then
3655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3656 $as_echo "$ac_ct_CC" >&6; }
3658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3659 $as_echo "no" >&6; }
3662 if test "x$ac_ct_CC" = x; then
3665 case $cross_compiling:$ac_tool_warned in
3667 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3668 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3669 ac_tool_warned=yes ;;
3677 if test -z "$CC"; then
3678 if test -n "$ac_tool_prefix"; then
3679 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3680 set dummy ${ac_tool_prefix}cc; ac_word=$2
3681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3682 $as_echo_n "checking for $ac_word... " >&6; }
3683 if test "${ac_cv_prog_CC+set}" = set; then :
3684 $as_echo_n "(cached) " >&6
3686 if test -n "$CC"; then
3687 ac_cv_prog_CC="$CC" # Let the user override the test.
3689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3693 test -z "$as_dir" && as_dir=.
3694 for ac_exec_ext in '' $ac_executable_extensions; do
3695 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3696 ac_cv_prog_CC="${ac_tool_prefix}cc"
3697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3707 if test -n "$CC"; then
3708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3709 $as_echo "$CC" >&6; }
3711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3712 $as_echo "no" >&6; }
3718 if test -z "$CC"; then
3719 # Extract the first word of "cc", so it can be a program name with args.
3720 set dummy cc; ac_word=$2
3721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3722 $as_echo_n "checking for $ac_word... " >&6; }
3723 if test "${ac_cv_prog_CC+set}" = set; then :
3724 $as_echo_n "(cached) " >&6
3726 if test -n "$CC"; then
3727 ac_cv_prog_CC="$CC" # Let the user override the test.
3730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3734 test -z "$as_dir" && as_dir=.
3735 for ac_exec_ext in '' $ac_executable_extensions; do
3736 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3737 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3738 ac_prog_rejected=yes
3742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3749 if test $ac_prog_rejected = yes; then
3750 # We found a bogon in the path, so make sure we never use it.
3751 set dummy $ac_cv_prog_CC
3753 if test $# != 0; then
3754 # We chose a different compiler from the bogus one.
3755 # However, it has the same basename, so the bogon will be chosen
3756 # first if we set CC to just the basename; use the full file name.
3758 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3764 if test -n "$CC"; then
3765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3766 $as_echo "$CC" >&6; }
3768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3769 $as_echo "no" >&6; }
3774 if test -z "$CC"; then
3775 if test -n "$ac_tool_prefix"; then
3776 for ac_prog in cl.exe
3778 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3779 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3781 $as_echo_n "checking for $ac_word... " >&6; }
3782 if test "${ac_cv_prog_CC+set}" = set; then :
3783 $as_echo_n "(cached) " >&6
3785 if test -n "$CC"; then
3786 ac_cv_prog_CC="$CC" # Let the user override the test.
3788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3792 test -z "$as_dir" && as_dir=.
3793 for ac_exec_ext in '' $ac_executable_extensions; do
3794 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3795 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3806 if test -n "$CC"; then
3807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3808 $as_echo "$CC" >&6; }
3810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3811 $as_echo "no" >&6; }
3815 test -n "$CC" && break
3818 if test -z "$CC"; then
3820 for ac_prog in cl.exe
3822 # Extract the first word of "$ac_prog", so it can be a program name with args.
3823 set dummy $ac_prog; ac_word=$2
3824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3825 $as_echo_n "checking for $ac_word... " >&6; }
3826 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3827 $as_echo_n "(cached) " >&6
3829 if test -n "$ac_ct_CC"; then
3830 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3836 test -z "$as_dir" && as_dir=.
3837 for ac_exec_ext in '' $ac_executable_extensions; do
3838 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3839 ac_cv_prog_ac_ct_CC="$ac_prog"
3840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3849 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3850 if test -n "$ac_ct_CC"; then
3851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3852 $as_echo "$ac_ct_CC" >&6; }
3854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3855 $as_echo "no" >&6; }
3859 test -n "$ac_ct_CC" && break
3862 if test "x$ac_ct_CC" = x; then
3865 case $cross_compiling:$ac_tool_warned in
3867 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3868 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3869 ac_tool_warned=yes ;;
3878 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3879 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3880 as_fn_error "no acceptable C compiler found in \$PATH
3881 See \`config.log' for more details." "$LINENO" 5; }
3883 # Provide some information about the compiler.
3884 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3887 for ac_option in --version -v -V -qversion; do
3888 { { ac_try="$ac_compiler $ac_option >&5"
3890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3891 *) ac_try_echo=$ac_try;;
3893 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3894 $as_echo "$ac_try_echo"; } >&5
3895 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3897 if test -s conftest.err; then
3899 ... rest of stderr output deleted ...
3900 10q' conftest.err >conftest.er1
3901 cat conftest.er1 >&5
3902 rm -f conftest.er1 conftest.err
3904 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3905 test $ac_status = 0; }
3908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3909 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3910 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3911 $as_echo_n "(cached) " >&6
3913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3914 /* end confdefs.h. */
3927 if ac_fn_c_try_compile "$LINENO"; then :
3932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3933 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3937 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3938 if test $ac_compiler_gnu = yes; then
3943 ac_test_CFLAGS=${CFLAGS+set}
3944 ac_save_CFLAGS=$CFLAGS
3945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3946 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3947 if test "${ac_cv_prog_cc_g+set}" = set; then :
3948 $as_echo_n "(cached) " >&6
3950 ac_save_c_werror_flag=$ac_c_werror_flag
3951 ac_c_werror_flag=yes
3954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3955 /* end confdefs.h. */
3965 if ac_fn_c_try_compile "$LINENO"; then :
3969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3970 /* end confdefs.h. */
3980 if ac_fn_c_try_compile "$LINENO"; then :
3983 ac_c_werror_flag=$ac_save_c_werror_flag
3985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3986 /* end confdefs.h. */
3996 if ac_fn_c_try_compile "$LINENO"; then :
3999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4004 ac_c_werror_flag=$ac_save_c_werror_flag
4006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4007 $as_echo "$ac_cv_prog_cc_g" >&6; }
4008 if test "$ac_test_CFLAGS" = set; then
4009 CFLAGS=$ac_save_CFLAGS
4010 elif test $ac_cv_prog_cc_g = yes; then
4011 if test "$GCC" = yes; then
4017 if test "$GCC" = yes; then
4023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4024 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4025 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4026 $as_echo_n "(cached) " >&6
4028 ac_cv_prog_cc_c89=no
4030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4031 /* end confdefs.h. */
4034 #include <sys/types.h>
4035 #include <sys/stat.h>
4036 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4037 struct buf { int x; };
4038 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4039 static char *e (p, i)
4045 static char *f (char * (*g) (char **, int), char **p, ...)
4050 s = g (p, va_arg (v,int));
4055 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4056 function prototypes and stuff, but not '\xHH' hex character constants.
4057 These don't provoke an error unfortunately, instead are silently treated
4058 as 'x'. The following induces an error, until -std is added to get
4059 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4060 array size at least. It's necessary to write '\x00'==0 to get something
4061 that's true only with -std. */
4062 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4064 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4065 inside strings and character constants. */
4067 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4069 int test (int i, double x);
4070 struct s1 {int (*f) (int a);};
4071 struct s2 {int (*f) (double a);};
4072 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4078 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4083 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4084 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4086 CC="$ac_save_CC $ac_arg"
4087 if ac_fn_c_try_compile "$LINENO"; then :
4088 ac_cv_prog_cc_c89=$ac_arg
4090 rm -f core conftest.err conftest.$ac_objext
4091 test "x$ac_cv_prog_cc_c89" != "xno" && break
4093 rm -f conftest.$ac_ext
4098 case "x$ac_cv_prog_cc_c89" in
4100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4101 $as_echo "none needed" >&6; } ;;
4103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4104 $as_echo "unsupported" >&6; } ;;
4106 CC="$CC $ac_cv_prog_cc_c89"
4107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4108 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4110 if test "x$ac_cv_prog_cc_c89" != xno; then :
4115 ac_cpp='$CPP $CPPFLAGS'
4116 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4117 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4118 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4121 ac_cpp='$CPP $CPPFLAGS'
4122 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4123 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4124 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4126 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4127 # On Suns, sometimes $CPP names a directory.
4128 if test -n "$CPP" && test -d "$CPP"; then
4131 if test -z "$CPP"; then
4132 if test "${ac_cv_prog_CPP+set}" = set; then :
4133 $as_echo_n "(cached) " >&6
4135 # Double quotes because CPP needs to be expanded
4136 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4139 for ac_c_preproc_warn_flag in '' yes
4141 # Use a header file that comes with gcc, so configuring glibc
4142 # with a fresh cross-compiler works.
4143 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4144 # <limits.h> exists even on freestanding compilers.
4145 # On the NeXT, cc -E runs the code through the compiler's parser,
4146 # not just through cpp. "Syntax error" is here to catch this case.
4147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4148 /* end confdefs.h. */
4150 # include <limits.h>
4152 # include <assert.h>
4156 if ac_fn_c_try_cpp "$LINENO"; then :
4159 # Broken: fails on valid input.
4162 rm -f conftest.err conftest.$ac_ext
4164 # OK, works on sane cases. Now check whether nonexistent headers
4165 # can be detected and how.
4166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4167 /* end confdefs.h. */
4168 #include <ac_nonexistent.h>
4170 if ac_fn_c_try_cpp "$LINENO"; then :
4171 # Broken: success on invalid input.
4174 # Passes both tests.
4178 rm -f conftest.err conftest.$ac_ext
4181 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4182 rm -f conftest.err conftest.$ac_ext
4183 if $ac_preproc_ok; then :
4195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4196 $as_echo "$CPP" >&6; }
4198 for ac_c_preproc_warn_flag in '' yes
4200 # Use a header file that comes with gcc, so configuring glibc
4201 # with a fresh cross-compiler works.
4202 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4203 # <limits.h> exists even on freestanding compilers.
4204 # On the NeXT, cc -E runs the code through the compiler's parser,
4205 # not just through cpp. "Syntax error" is here to catch this case.
4206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4207 /* end confdefs.h. */
4209 # include <limits.h>
4211 # include <assert.h>
4215 if ac_fn_c_try_cpp "$LINENO"; then :
4218 # Broken: fails on valid input.
4221 rm -f conftest.err conftest.$ac_ext
4223 # OK, works on sane cases. Now check whether nonexistent headers
4224 # can be detected and how.
4225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4226 /* end confdefs.h. */
4227 #include <ac_nonexistent.h>
4229 if ac_fn_c_try_cpp "$LINENO"; then :
4230 # Broken: success on invalid input.
4233 # Passes both tests.
4237 rm -f conftest.err conftest.$ac_ext
4240 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4241 rm -f conftest.err conftest.$ac_ext
4242 if $ac_preproc_ok; then :
4245 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4246 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4247 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4248 See \`config.log' for more details." "$LINENO" 5; }
4252 ac_cpp='$CPP $CPPFLAGS'
4253 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4254 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4255 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4259 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4260 if test "${ac_cv_path_GREP+set}" = set; then :
4261 $as_echo_n "(cached) " >&6
4263 if test -z "$GREP"; then
4264 ac_path_GREP_found=false
4265 # Loop through the user's path and test for each of PROGNAME-LIST
4266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4267 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4270 test -z "$as_dir" && as_dir=.
4271 for ac_prog in grep ggrep; do
4272 for ac_exec_ext in '' $ac_executable_extensions; do
4273 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4274 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4275 # Check for GNU ac_path_GREP and select it if it is found.
4276 # Check for GNU $ac_path_GREP
4277 case `"$ac_path_GREP" --version 2>&1` in
4279 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4282 $as_echo_n 0123456789 >"conftest.in"
4285 cat "conftest.in" "conftest.in" >"conftest.tmp"
4286 mv "conftest.tmp" "conftest.in"
4287 cp "conftest.in" "conftest.nl"
4288 $as_echo 'GREP' >> "conftest.nl"
4289 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4290 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4291 as_fn_arith $ac_count + 1 && ac_count=$as_val
4292 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4293 # Best one so far, save it but keep looking for a better one
4294 ac_cv_path_GREP="$ac_path_GREP"
4295 ac_path_GREP_max=$ac_count
4297 # 10*(2^10) chars as input seems more than enough
4298 test $ac_count -gt 10 && break
4300 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4303 $ac_path_GREP_found && break 3
4308 if test -z "$ac_cv_path_GREP"; then
4309 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4312 ac_cv_path_GREP=$GREP
4316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4317 $as_echo "$ac_cv_path_GREP" >&6; }
4318 GREP="$ac_cv_path_GREP"
4321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4322 $as_echo_n "checking for egrep... " >&6; }
4323 if test "${ac_cv_path_EGREP+set}" = set; then :
4324 $as_echo_n "(cached) " >&6
4326 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4327 then ac_cv_path_EGREP="$GREP -E"
4329 if test -z "$EGREP"; then
4330 ac_path_EGREP_found=false
4331 # Loop through the user's path and test for each of PROGNAME-LIST
4332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4333 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4336 test -z "$as_dir" && as_dir=.
4337 for ac_prog in egrep; do
4338 for ac_exec_ext in '' $ac_executable_extensions; do
4339 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4340 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4341 # Check for GNU ac_path_EGREP and select it if it is found.
4342 # Check for GNU $ac_path_EGREP
4343 case `"$ac_path_EGREP" --version 2>&1` in
4345 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4348 $as_echo_n 0123456789 >"conftest.in"
4351 cat "conftest.in" "conftest.in" >"conftest.tmp"
4352 mv "conftest.tmp" "conftest.in"
4353 cp "conftest.in" "conftest.nl"
4354 $as_echo 'EGREP' >> "conftest.nl"
4355 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4356 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4357 as_fn_arith $ac_count + 1 && ac_count=$as_val
4358 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4359 # Best one so far, save it but keep looking for a better one
4360 ac_cv_path_EGREP="$ac_path_EGREP"
4361 ac_path_EGREP_max=$ac_count
4363 # 10*(2^10) chars as input seems more than enough
4364 test $ac_count -gt 10 && break
4366 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4369 $ac_path_EGREP_found && break 3
4374 if test -z "$ac_cv_path_EGREP"; then
4375 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4378 ac_cv_path_EGREP=$EGREP
4383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4384 $as_echo "$ac_cv_path_EGREP" >&6; }
4385 EGREP="$ac_cv_path_EGREP"
4388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4389 $as_echo_n "checking for ANSI C header files... " >&6; }
4390 if test "${ac_cv_header_stdc+set}" = set; then :
4391 $as_echo_n "(cached) " >&6
4393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4394 /* end confdefs.h. */
4408 if ac_fn_c_try_compile "$LINENO"; then :
4409 ac_cv_header_stdc=yes
4411 ac_cv_header_stdc=no
4413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4415 if test $ac_cv_header_stdc = yes; then
4416 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4418 /* end confdefs.h. */
4422 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4423 $EGREP "memchr" >/dev/null 2>&1; then :
4426 ac_cv_header_stdc=no
4432 if test $ac_cv_header_stdc = yes; then
4433 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4435 /* end confdefs.h. */
4439 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4440 $EGREP "free" >/dev/null 2>&1; then :
4443 ac_cv_header_stdc=no
4449 if test $ac_cv_header_stdc = yes; then
4450 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4451 if test "$cross_compiling" = yes; then :
4454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4455 /* end confdefs.h. */
4458 #if ((' ' & 0x0FF) == 0x020)
4459 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4460 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4462 # define ISLOWER(c) \
4463 (('a' <= (c) && (c) <= 'i') \
4464 || ('j' <= (c) && (c) <= 'r') \
4465 || ('s' <= (c) && (c) <= 'z'))
4466 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4469 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4474 for (i = 0; i < 256; i++)
4475 if (XOR (islower (i), ISLOWER (i))
4476 || toupper (i) != TOUPPER (i))
4481 if ac_fn_c_try_run "$LINENO"; then :
4484 ac_cv_header_stdc=no
4486 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4487 conftest.$ac_objext conftest.beam conftest.$ac_ext
4492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4493 $as_echo "$ac_cv_header_stdc" >&6; }
4494 if test $ac_cv_header_stdc = yes; then
4496 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4500 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4501 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4502 inttypes.h stdint.h unistd.h
4504 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4505 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4507 eval as_val=\$$as_ac_Header
4508 if test "x$as_val" = x""yes; then :
4509 cat >>confdefs.h <<_ACEOF
4510 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4518 ac_fn_c_check_header_mongrel "$LINENO" "linux/fs.h" "ac_cv_header_linux_fs_h" "$ac_includes_default"
4519 if test "x$ac_cv_header_linux_fs_h" = x""yes; then :
4526 if test "$linux_headers" != yes; then
4527 LINUX_INCLUDE='-I$(top_builddir)/include'
4530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for additional special compiler flags" >&5
4531 $as_echo_n "checking for additional special compiler flags... " >&6; }
4532 if test "$GCC" = yes
4535 alpha) addcflags="-mieee" ;;
4538 if test "x$addcflags" != x
4540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $addcflags" >&5
4541 $as_echo "$addcflags" >&6; }
4542 CFLAGS="$addcflags $CFLAGS"
4544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (none)" >&5
4545 $as_echo "(none)" >&6; }
4551 # Check whether --with-root-prefix was given.
4552 if test "${with_root_prefix+set}" = set; then :
4553 withval=$with_root_prefix; root_prefix=$withval
4557 # Check whether --enable-maintainer-mode was given.
4558 if test "${enable_maintainer_mode+set}" = set; then :
4559 enableval=$enable_maintainer_mode; if test "$enableval" = "no"
4562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode" >&5
4563 $as_echo "Disabling maintainer mode" >&6; }
4566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling maintainer mode" >&5
4567 $as_echo "Enabling maintainer mode" >&6; }
4572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode by default" >&5
4573 $as_echo "Disabling maintainer mode by default" >&6; }
4578 # Check whether --enable-verbose-makecmds was given.
4579 if test "${enable_verbose_makecmds+set}" = set; then :
4580 enableval=$enable_verbose_makecmds; if test "$enableval" = "no"
4582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
4583 $as_echo "Disabling verbose make commands" >&6; }
4587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling verbose make commands" >&5
4588 $as_echo "Enabling verbose make commands" >&6; }
4594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
4595 $as_echo "Disabling verbose make commands" >&6; }
4603 # Check whether --enable-compression was given.
4604 if test "${enable_compression+set}" = set; then :
4605 enableval=$enable_compression; if test "$enableval" = "no"
4607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling compression support" >&5
4608 $as_echo "Disabling compression support" >&6; }
4610 $as_echo "#define ENABLE_COMPRESSION 1" >>confdefs.h
4612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling compression support" >&5
4613 $as_echo "Enabling compression support" >&6; }
4614 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Compression support is experimental" >&5
4615 $as_echo "$as_me: WARNING: Compression support is experimental" >&2;}
4619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling compression support by default" >&5
4620 $as_echo "Disabling compression support by default" >&6; }
4624 # Check whether --enable-htree was given.
4625 if test "${enable_htree+set}" = set; then :
4626 enableval=$enable_htree; if test "$enableval" = "no"
4629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling htree directory support" >&5
4630 $as_echo "Disabling htree directory support" >&6; }
4633 $as_echo "#define ENABLE_HTREE 1" >>confdefs.h
4635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling htree directory support" >&5
4636 $as_echo "Enabling htree directory support" >&6; }
4641 $as_echo "#define ENABLE_HTREE 1" >>confdefs.h
4643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling htree directory support by default" >&5
4644 $as_echo "Enabling htree directory support by default" >&6; }
4649 E2_PKG_CONFIG_STATIC=--static
4652 # Check whether --enable-elf-shlibs was given.
4653 if test "${enable_elf_shlibs+set}" = set; then :
4654 enableval=$enable_elf_shlibs; if test "$enableval" = "no"
4657 MAKEFILE_ELF=/dev/null
4658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries" >&5
4659 $as_echo "Disabling ELF shared libraries" >&6; }
4661 E2_PKG_CONFIG_STATIC=
4663 MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
4666 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
4672 LDFLAG_DYNAMIC='-Wl,-rpath-link,$(top_builddir)/lib'
4673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling ELF shared libraries" >&5
4674 $as_echo "Enabling ELF shared libraries" >&6; }
4678 MAKEFILE_ELF=/dev/null
4680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries by default" >&5
4681 $as_echo "Disabling ELF shared libraries by default" >&6; }
4687 # Check whether --enable-bsd-shlibs was given.
4688 if test "${enable_bsd_shlibs+set}" = set; then :
4689 enableval=$enable_bsd_shlibs; if test "$enableval" = "no"
4692 MAKEFILE_BSDLIB=/dev/null
4693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries" >&5
4694 $as_echo "Disabling BSD shared libraries" >&6; }
4696 E2_PKG_CONFIG_STATIC=
4698 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
4702 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib
4706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling BSD shared libraries" >&5
4707 $as_echo "Enabling BSD shared libraries" >&6; }
4711 MAKEFILE_BSDLIB=/dev/null
4713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries by default" >&5
4714 $as_echo "Disabling BSD shared libraries by default" >&6; }
4720 # Check whether --enable-profile was given.
4721 if test "${enable_profile+set}" = set; then :
4722 enableval=$enable_profile; if test "$enableval" = "no"
4725 MAKEFILE_PROFILE=/dev/null
4726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries" >&5
4727 $as_echo "Disabling profiling libraries" >&6; }
4730 MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
4731 PROFILED_LIB_EXT=_p.a
4732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building profiling libraries" >&5
4733 $as_echo "Building profiling libraries" >&6; }
4738 MAKEFILE_PROFILE=/dev/null
4739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries by default" >&5
4740 $as_echo "Disabling profiling libraries by default" >&6; }
4746 # Check whether --enable-checker was given.
4747 if test "${enable_checker+set}" = set; then :
4748 enableval=$enable_checker; if test "$enableval" = "no"
4751 MAKEFILE_CHECKER=/dev/null
4752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling checker libraries" >&5
4753 $as_echo "Disabling checker libraries" >&6; }
4756 MAKEFILE_CHECKER=$srcdir/lib/Makefile.checker
4757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building checker libraries" >&5
4758 $as_echo "Building checker libraries" >&6; }
4763 MAKEFILE_CHECKER=/dev/null
4764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling checker libraries by default" >&5
4765 $as_echo "Disabling checker libraries by default" >&6; }
4776 # Check whether --enable-jbd-debug was given.
4777 if test "${enable_jbd_debug+set}" = set; then :
4778 enableval=$enable_jbd_debug; if test "$enableval" = "no"
4780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging" >&5
4781 $as_echo "Disabling journal debugging" >&6; }
4783 $as_echo "#define CONFIG_JBD_DEBUG 1" >>confdefs.h
4785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling journal debugging" >&5
4786 $as_echo "Enabling journal debugging" >&6; }
4790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging by default" >&5
4791 $as_echo "Disabling journal debugging by default" >&6; }
4795 # Check whether --enable-blkid-debug was given.
4796 if test "${enable_blkid_debug+set}" = set; then :
4797 enableval=$enable_blkid_debug; if test "$enableval" = "no"
4799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging" >&5
4800 $as_echo "Disabling blkid debugging" >&6; }
4802 $as_echo "#define CONFIG_BLKID_DEBUG 1" >>confdefs.h
4804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling blkid debugging" >&5
4805 $as_echo "Enabling blkid debugging" >&6; }
4809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging by default" >&5
4810 $as_echo "Disabling blkid debugging by default" >&6; }
4814 # Check whether --enable-testio-debug was given.
4815 if test "${enable_testio_debug+set}" = set; then :
4816 enableval=$enable_testio_debug; if test "$enableval" = "no"
4818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling testio debugging" >&5
4819 $as_echo "Disabling testio debugging" >&6; }
4823 $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
4825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging" >&5
4826 $as_echo "Enabling testio debugging" >&6; }
4830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging by default" >&5
4831 $as_echo "Enabling testio debugging by default" >&6; }
4832 $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
4841 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4842 if test -n "$ac_tool_prefix"; then
4843 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4844 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4846 $as_echo_n "checking for $ac_word... " >&6; }
4847 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
4848 $as_echo_n "(cached) " >&6
4852 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4859 test -z "$as_dir" && as_dir=.
4860 for ac_exec_ext in '' $ac_executable_extensions; do
4861 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4862 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4863 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4873 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4874 if test -n "$PKG_CONFIG"; then
4875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4876 $as_echo "$PKG_CONFIG" >&6; }
4878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4879 $as_echo "no" >&6; }
4884 if test -z "$ac_cv_path_PKG_CONFIG"; then
4885 ac_pt_PKG_CONFIG=$PKG_CONFIG
4886 # Extract the first word of "pkg-config", so it can be a program name with args.
4887 set dummy pkg-config; ac_word=$2
4888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4889 $as_echo_n "checking for $ac_word... " >&6; }
4890 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
4891 $as_echo_n "(cached) " >&6
4893 case $ac_pt_PKG_CONFIG in
4895 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4902 test -z "$as_dir" && as_dir=.
4903 for ac_exec_ext in '' $ac_executable_extensions; do
4904 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4905 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4906 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4916 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4917 if test -n "$ac_pt_PKG_CONFIG"; then
4918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4919 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4922 $as_echo "no" >&6; }
4925 if test "x$ac_pt_PKG_CONFIG" = x; then
4928 case $cross_compiling:$ac_tool_warned in
4930 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4931 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4932 ac_tool_warned=yes ;;
4934 PKG_CONFIG=$ac_pt_PKG_CONFIG
4937 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4941 if test -n "$PKG_CONFIG"; then
4942 _pkg_min_version=0.9.0
4943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4944 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4945 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4947 $as_echo "yes" >&6; }
4949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4950 $as_echo "no" >&6; }
4960 DEPPROFILED_LIBUUID=
4962 # Check whether --enable-libuuid was given.
4963 if test "${enable_libuuid+set}" = set; then :
4964 enableval=$enable_libuuid; if test "$enableval" = "no"
4966 if test -z "$PKG_CONFIG"; then
4967 as_fn_error "pkg-config not installed; please install it." "$LINENO" 5
4970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
4971 $as_echo_n "checking for uuid_generate in -luuid... " >&6; }
4972 if test "${ac_cv_lib_uuid_uuid_generate+set}" = set; then :
4973 $as_echo_n "(cached) " >&6
4975 ac_check_lib_save_LIBS=$LIBS
4976 LIBS="-luuid $LIBUUID $LIBS"
4977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4978 /* end confdefs.h. */
4980 /* Override any GCC internal prototype to avoid an error.
4981 Use char because int might match the return type of a GCC
4982 builtin and then its argument prototype would still apply. */
4986 char uuid_generate ();
4990 return uuid_generate ();
4995 if ac_fn_c_try_link "$LINENO"; then :
4996 ac_cv_lib_uuid_uuid_generate=yes
4998 ac_cv_lib_uuid_uuid_generate=no
5000 rm -f core conftest.err conftest.$ac_objext \
5001 conftest$ac_exeext conftest.$ac_ext
5002 LIBS=$ac_check_lib_save_LIBS
5004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
5005 $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
5006 if test "x$ac_cv_lib_uuid_uuid_generate" = x""yes; then :
5007 LIBUUID=`$PKG_CONFIG --libs uuid`;
5008 STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid`
5010 as_fn_error "external uuid library not found" "$LINENO" 5
5014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private uuid library" >&5
5015 $as_echo "Disabling private uuid library" >&6; }
5017 LIBUUID='$(LIB)/libuuid'$LIB_EXT
5019 STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
5020 DEPSTATIC_LIBUUID=$STATIC_LIBUUID
5021 PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
5022 DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
5023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library" >&5
5024 $as_echo "Enabling private uuid library" >&6; }
5028 LIBUUID='$(LIB)/libuuid'$LIB_EXT
5030 STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
5031 DEPSTATIC_LIBUUID=$STATIC_LIBUUID
5032 PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
5033 DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
5034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library by default" >&5
5035 $as_echo "Enabling private uuid library by default" >&6; }
5048 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5049 if test -n "$ac_tool_prefix"; then
5050 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5051 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5053 $as_echo_n "checking for $ac_word... " >&6; }
5054 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
5055 $as_echo_n "(cached) " >&6
5059 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5066 test -z "$as_dir" && as_dir=.
5067 for ac_exec_ext in '' $ac_executable_extensions; do
5068 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5069 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5070 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5080 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5081 if test -n "$PKG_CONFIG"; then
5082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5083 $as_echo "$PKG_CONFIG" >&6; }
5085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5086 $as_echo "no" >&6; }
5091 if test -z "$ac_cv_path_PKG_CONFIG"; then
5092 ac_pt_PKG_CONFIG=$PKG_CONFIG
5093 # Extract the first word of "pkg-config", so it can be a program name with args.
5094 set dummy pkg-config; ac_word=$2
5095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5096 $as_echo_n "checking for $ac_word... " >&6; }
5097 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
5098 $as_echo_n "(cached) " >&6
5100 case $ac_pt_PKG_CONFIG in
5102 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5109 test -z "$as_dir" && as_dir=.
5110 for ac_exec_ext in '' $ac_executable_extensions; do
5111 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5112 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5123 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5124 if test -n "$ac_pt_PKG_CONFIG"; then
5125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5126 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5129 $as_echo "no" >&6; }
5132 if test "x$ac_pt_PKG_CONFIG" = x; then
5135 case $cross_compiling:$ac_tool_warned in
5137 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5138 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5139 ac_tool_warned=yes ;;
5141 PKG_CONFIG=$ac_pt_PKG_CONFIG
5144 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5148 if test -n "$PKG_CONFIG"; then
5149 _pkg_min_version=0.9.0
5150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5151 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5152 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5154 $as_echo "yes" >&6; }
5156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5157 $as_echo "no" >&6; }
5167 DEPPROFILED_LIBBLKID=
5169 # Check whether --enable-libblkid was given.
5170 if test "${enable_libblkid+set}" = set; then :
5171 enableval=$enable_libblkid; if test "$enableval" = "no"
5173 if test -z "$PKG_CONFIG"; then
5174 as_fn_error "pkg-config not installed; please install it." "$LINENO" 5
5177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
5178 $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
5179 if test "${ac_cv_lib_blkid_blkid_get_cache+set}" = set; then :
5180 $as_echo_n "(cached) " >&6
5182 ac_check_lib_save_LIBS=$LIBS
5183 LIBS="-lblkid $LIBBLKID $LIBS"
5184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5185 /* end confdefs.h. */
5187 /* Override any GCC internal prototype to avoid an error.
5188 Use char because int might match the return type of a GCC
5189 builtin and then its argument prototype would still apply. */
5193 char blkid_get_cache ();
5197 return blkid_get_cache ();
5202 if ac_fn_c_try_link "$LINENO"; then :
5203 ac_cv_lib_blkid_blkid_get_cache=yes
5205 ac_cv_lib_blkid_blkid_get_cache=no
5207 rm -f core conftest.err conftest.$ac_objext \
5208 conftest$ac_exeext conftest.$ac_ext
5209 LIBS=$ac_check_lib_save_LIBS
5211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
5212 $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
5213 if test "x$ac_cv_lib_blkid_blkid_get_cache" = x""yes; then :
5214 LIBBLKID=`$PKG_CONFIG --libs blkid`;
5215 STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid`
5217 as_fn_error "external blkid library not found" "$LINENO" 5
5221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private blkid library" >&5
5222 $as_echo "Disabling private blkid library" >&6; }
5224 LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5225 DEPLIBBLKID=$LIBBLKID
5226 STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5227 DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5228 PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5229 DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
5230 $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
5232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library" >&5
5233 $as_echo "Enabling private blkid library" >&6; }
5237 LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5238 DEPLIBBLKID=$LIBBLKID
5239 STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5240 DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5241 PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5242 DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
5243 $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
5245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library by default" >&5
5246 $as_echo "Enabling private blkid library by default" >&6; }
5257 # Check whether --enable-debugfs was given.
5258 if test "${enable_debugfs+set}" = set; then :
5259 enableval=$enable_debugfs; if test "$enableval" = "no"
5261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling debugfs support" >&5
5262 $as_echo "Disabling debugfs support" >&6; }
5266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support" >&5
5267 $as_echo "Enabling debugfs support" >&6; }
5271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support by default" >&5
5272 $as_echo "Enabling debugfs support by default" >&6; }
5278 # Check whether --enable-imager was given.
5279 if test "${enable_imager+set}" = set; then :
5280 enableval=$enable_imager; if test "$enableval" = "no"
5282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2image support" >&5
5283 $as_echo "Disabling e2image support" >&6; }
5287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support" >&5
5288 $as_echo "Enabling e2image support" >&6; }
5292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support by default" >&5
5293 $as_echo "Enabling e2image support by default" >&6; }
5299 # Check whether --enable-resizer was given.
5300 if test "${enable_resizer+set}" = set; then :
5301 enableval=$enable_resizer; if test "$enableval" = "no"
5303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2resize support" >&5
5304 $as_echo "Disabling e2resize support" >&6; }
5308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support" >&5
5309 $as_echo "Enabling e2resize support" >&6; }
5313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support by default" >&5
5314 $as_echo "Enabling e2resize support by default" >&6; }
5320 # Check whether --enable-fsck was given.
5321 if test "${enable_fsck+set}" = set; then :
5322 enableval=$enable_fsck; if test "$enableval" = "no"
5324 FSCK_PROG='' FSCK_MAN=''
5325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper" >&5
5326 $as_echo "Not building fsck wrapper" >&6; }
5328 FSCK_PROG=fsck FSCK_MAN=fsck.8
5329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper" >&5
5330 $as_echo "Building fsck wrapper" >&6; }
5336 FSCK_PROG='' FSCK_MAN=''
5337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper by default" >&5
5338 $as_echo "Not building fsck wrapper by default" >&6; }
5341 FSCK_PROG=fsck FSCK_MAN=fsck.8
5342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper by default" >&5
5343 $as_echo "Building fsck wrapper by default" >&6; }
5350 # Check whether --enable-e2initrd-helper was given.
5351 if test "${enable_e2initrd_helper+set}" = set; then :
5352 enableval=$enable_e2initrd_helper; if test "$enableval" = "no"
5354 E2INITRD_PROG='' E2INITRD_MAN=''
5355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building e2initrd helper" >&5
5356 $as_echo "Not building e2initrd helper" >&6; }
5358 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
5359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper" >&5
5360 $as_echo "Building e2initrd helper" >&6; }
5364 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
5365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper by default" >&5
5366 $as_echo "Building e2initrd helper by default" >&6; }
5372 # Check whether --enable-tls was given.
5373 if test "${enable_tls+set}" = set; then :
5374 enableval=$enable_tls; if test "$enableval" = "no"
5377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling thread local support" >&5
5378 $as_echo "Disabling thread local support" >&6; }
5381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling thread local support" >&5
5382 $as_echo "Enabling thread local support" >&6; }
5386 if test -n "$WITH_DIET_LIBC"
5389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Diet libc does not support thread local support" >&5
5390 $as_echo "Diet libc does not support thread local support" >&6; }
5393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Try using thread local support by default" >&5
5394 $as_echo "Try using thread local support by default" >&6; }
5399 if test "$try_tls" = "yes"
5402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread local storage (TLS) class" >&5
5403 $as_echo_n "checking for thread local storage (TLS) class... " >&6; }
5404 if test "${ac_cv_tls+set}" = set; then :
5405 $as_echo_n "(cached) " >&6
5408 ax_tls_keywords="__thread __declspec(thread) none"
5409 for ax_tls_keyword in $ax_tls_keywords; do
5410 case $ax_tls_keyword in
5411 none) ac_cv_tls=none ; break ;;
5413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5414 /* end confdefs.h. */
5418 static $ax_tls_keyword int bar;
5429 if ac_fn_c_try_compile "$LINENO"; then :
5430 ac_cv_tls=$ax_tls_keyword ; break
5435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5442 if test "$ac_cv_tls" != "none"; then
5444 cat >>confdefs.h <<_ACEOF
5445 #define TLS $ac_cv_tls
5449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tls" >&5
5450 $as_echo "$ac_cv_tls" >&6; }
5453 # Check whether --enable-uuidd was given.
5454 if test "${enable_uuidd+set}" = set; then :
5455 enableval=$enable_uuidd; if test "$enableval" = "no"
5457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building uuidd" >&5
5458 $as_echo "Not building uuidd" >&6; }
5461 $as_echo "#define USE_UUIDD 1" >>confdefs.h
5464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd" >&5
5465 $as_echo "Building uuidd" >&6; }
5469 $as_echo "#define USE_UUIDD 1" >>confdefs.h
5472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd by default" >&5
5473 $as_echo "Building uuidd by default" >&6; }
5478 MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
5480 GETTEXT_PACKAGE=e2fsprogs
5482 VERSION="$E2FSPROGS_VERSION"
5484 cat >>confdefs.h <<_ACEOF
5485 #define PACKAGE "$PACKAGE"
5488 cat >>confdefs.h <<_ACEOF
5489 #define VERSION "$VERSION"
5496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5497 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5499 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5500 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
5501 $as_echo_n "(cached) " >&6
5503 cat >conftest.make <<\_ACEOF
5506 @echo '@@@%%%=$(MAKE)=@@@%%%'
5508 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5509 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5511 eval ac_cv_prog_make_${ac_make}_set=yes;;
5513 eval ac_cv_prog_make_${ac_make}_set=no;;
5517 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5519 $as_echo "yes" >&6; }
5522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5523 $as_echo "no" >&6; }
5524 SET_MAKE="MAKE=${MAKE-make}"
5527 # Find a good install program. We prefer a C program (faster),
5528 # so one script is as good as another. But avoid the broken or
5529 # incompatible versions:
5530 # SysV /etc/install, /usr/sbin/install
5531 # SunOS /usr/etc/install
5532 # IRIX /sbin/install
5534 # AmigaOS /C/install, which installs bootblocks on floppy discs
5535 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5536 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5537 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5538 # OS/2's system install, which has a completely different semantic
5539 # ./install, which can be erroneously created by make from ./install.sh.
5540 # Reject install programs that cannot install multiple files.
5541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
5542 $as_echo_n "checking for a BSD-compatible install... " >&6; }
5543 if test -z "$INSTALL"; then
5544 if test "${ac_cv_path_install+set}" = set; then :
5545 $as_echo_n "(cached) " >&6
5547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5551 test -z "$as_dir" && as_dir=.
5552 # Account for people who put trailing slashes in PATH elements.
5553 case $as_dir/ in #((
5554 ./ | .// | /[cC]/* | \
5555 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5556 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
5559 # OSF1 and SCO ODT 3.0 have their own names for install.
5560 # Don't use installbsd from OSF since it installs stuff as root
5562 for ac_prog in ginstall scoinst install; do
5563 for ac_exec_ext in '' $ac_executable_extensions; do
5564 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5565 if test $ac_prog = install &&
5566 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5567 # AIX install. It has an incompatible calling convention.
5569 elif test $ac_prog = install &&
5570 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5571 # program-specific install script used by HP pwplus--don't use.
5574 rm -rf conftest.one conftest.two conftest.dir
5575 echo one > conftest.one
5576 echo two > conftest.two
5578 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5579 test -s conftest.one && test -s conftest.two &&
5580 test -s conftest.dir/conftest.one &&
5581 test -s conftest.dir/conftest.two
5583 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5596 rm -rf conftest.one conftest.two conftest.dir
5599 if test "${ac_cv_path_install+set}" = set; then
5600 INSTALL=$ac_cv_path_install
5602 # As a last resort, use the slow shell script. Don't cache a
5603 # value for INSTALL within a source directory, because that will
5604 # break other packages using the cache if that directory is
5605 # removed, or if the value is a relative name.
5606 INSTALL=$ac_install_sh
5609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
5610 $as_echo "$INSTALL" >&6; }
5612 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5613 # It thinks the first close brace ends the variable substitution.
5614 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5616 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5618 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5622 if test -n "$ac_aux_dir"; then
5623 case "$ac_aux_dir" in
5624 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
5625 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
5628 if test -z "$MKINSTALLDIRS"; then
5629 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
5634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
5635 $as_echo_n "checking whether NLS is requested... " >&6; }
5636 # Check whether --enable-nls was given.
5637 if test "${enable_nls+set}" = set; then :
5638 enableval=$enable_nls; USE_NLS=$enableval
5643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
5644 $as_echo "$USE_NLS" >&6; }
5651 # Prepare PATH_SEPARATOR.
5652 # The user is always right.
5653 if test "${PATH_SEPARATOR+set}" != set; then
5654 echo "#! /bin/sh" >conf$$.sh
5655 echo "exit 0" >>conf$$.sh
5657 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5665 # Find out how to test for executable files. Don't use a zero-byte file,
5666 # as systems may use methods other than mode bits to determine executability.
5667 cat >conf$$.file <<_ASEOF
5671 chmod +x conf$$.file
5672 if test -x conf$$.file >/dev/null 2>&1; then
5673 ac_executable_p="test -x"
5675 ac_executable_p="test -f"
5679 # Extract the first word of "msgfmt", so it can be a program name with args.
5680 set dummy msgfmt; ac_word=$2
5681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5682 $as_echo_n "checking for $ac_word... " >&6; }
5683 if test "${ac_cv_path_MSGFMT+set}" = set; then :
5684 $as_echo_n "(cached) " >&6
5688 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5691 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5692 for ac_dir in $PATH; do
5694 test -z "$ac_dir" && ac_dir=.
5695 for ac_exec_ext in '' $ac_executable_extensions; do
5696 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5697 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
5698 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5699 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
5706 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
5710 MSGFMT="$ac_cv_path_MSGFMT"
5711 if test "$MSGFMT" != ":"; then
5712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
5713 $as_echo "$MSGFMT" >&6; }
5715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5716 $as_echo "no" >&6; }
5719 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5720 set dummy gmsgfmt; ac_word=$2
5721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5722 $as_echo_n "checking for $ac_word... " >&6; }
5723 if test "${ac_cv_path_GMSGFMT+set}" = set; then :
5724 $as_echo_n "(cached) " >&6
5728 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5735 test -z "$as_dir" && as_dir=.
5736 for ac_exec_ext in '' $ac_executable_extensions; do
5737 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5738 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5746 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5750 GMSGFMT=$ac_cv_path_GMSGFMT
5751 if test -n "$GMSGFMT"; then
5752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
5753 $as_echo "$GMSGFMT" >&6; }
5755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5756 $as_echo "no" >&6; }
5762 # Prepare PATH_SEPARATOR.
5763 # The user is always right.
5764 if test "${PATH_SEPARATOR+set}" != set; then
5765 echo "#! /bin/sh" >conf$$.sh
5766 echo "exit 0" >>conf$$.sh
5768 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5776 # Find out how to test for executable files. Don't use a zero-byte file,
5777 # as systems may use methods other than mode bits to determine executability.
5778 cat >conf$$.file <<_ASEOF
5782 chmod +x conf$$.file
5783 if test -x conf$$.file >/dev/null 2>&1; then
5784 ac_executable_p="test -x"
5786 ac_executable_p="test -f"
5790 # Extract the first word of "xgettext", so it can be a program name with args.
5791 set dummy xgettext; ac_word=$2
5792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5793 $as_echo_n "checking for $ac_word... " >&6; }
5794 if test "${ac_cv_path_XGETTEXT+set}" = set; then :
5795 $as_echo_n "(cached) " >&6
5799 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5802 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5803 for ac_dir in $PATH; do
5805 test -z "$ac_dir" && ac_dir=.
5806 for ac_exec_ext in '' $ac_executable_extensions; do
5807 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5808 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
5809 (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
5810 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
5817 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5821 XGETTEXT="$ac_cv_path_XGETTEXT"
5822 if test "$XGETTEXT" != ":"; then
5823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
5824 $as_echo "$XGETTEXT" >&6; }
5826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5827 $as_echo "no" >&6; }
5833 # Prepare PATH_SEPARATOR.
5834 # The user is always right.
5835 if test "${PATH_SEPARATOR+set}" != set; then
5836 echo "#! /bin/sh" >conf$$.sh
5837 echo "exit 0" >>conf$$.sh
5839 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5847 # Find out how to test for executable files. Don't use a zero-byte file,
5848 # as systems may use methods other than mode bits to determine executability.
5849 cat >conf$$.file <<_ASEOF
5853 chmod +x conf$$.file
5854 if test -x conf$$.file >/dev/null 2>&1; then
5855 ac_executable_p="test -x"
5857 ac_executable_p="test -f"
5861 # Extract the first word of "msgmerge", so it can be a program name with args.
5862 set dummy msgmerge; ac_word=$2
5863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5864 $as_echo_n "checking for $ac_word... " >&6; }
5865 if test "${ac_cv_path_MSGMERGE+set}" = set; then :
5866 $as_echo_n "(cached) " >&6
5870 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
5873 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5874 for ac_dir in $PATH; do
5876 test -z "$ac_dir" && ac_dir=.
5877 for ac_exec_ext in '' $ac_executable_extensions; do
5878 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5879 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
5880 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
5887 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
5891 MSGMERGE="$ac_cv_path_MSGMERGE"
5892 if test "$MSGMERGE" != ":"; then
5893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
5894 $as_echo "$MSGMERGE" >&6; }
5896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5897 $as_echo "no" >&6; }
5901 if test "$GMSGFMT" != ":"; then
5902 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
5903 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5906 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
5907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
5908 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
5913 if test "$XGETTEXT" != ":"; then
5914 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
5915 (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
5918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
5919 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
5925 ac_config_commands="$ac_config_commands default-1"
5928 if test -n "$ac_tool_prefix"; then
5929 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5930 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5932 $as_echo_n "checking for $ac_word... " >&6; }
5933 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5934 $as_echo_n "(cached) " >&6
5936 if test -n "$RANLIB"; then
5937 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5943 test -z "$as_dir" && as_dir=.
5944 for ac_exec_ext in '' $ac_executable_extensions; do
5945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5946 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5947 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5956 RANLIB=$ac_cv_prog_RANLIB
5957 if test -n "$RANLIB"; then
5958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5959 $as_echo "$RANLIB" >&6; }
5961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5962 $as_echo "no" >&6; }
5967 if test -z "$ac_cv_prog_RANLIB"; then
5968 ac_ct_RANLIB=$RANLIB
5969 # Extract the first word of "ranlib", so it can be a program name with args.
5970 set dummy ranlib; ac_word=$2
5971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5972 $as_echo_n "checking for $ac_word... " >&6; }
5973 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5974 $as_echo_n "(cached) " >&6
5976 if test -n "$ac_ct_RANLIB"; then
5977 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5983 test -z "$as_dir" && as_dir=.
5984 for ac_exec_ext in '' $ac_executable_extensions; do
5985 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5986 ac_cv_prog_ac_ct_RANLIB="ranlib"
5987 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5996 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5997 if test -n "$ac_ct_RANLIB"; then
5998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5999 $as_echo "$ac_ct_RANLIB" >&6; }
6001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6002 $as_echo "no" >&6; }
6005 if test "x$ac_ct_RANLIB" = x; then
6008 case $cross_compiling:$ac_tool_warned in
6010 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6011 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6012 ac_tool_warned=yes ;;
6014 RANLIB=$ac_ct_RANLIB
6017 RANLIB="$ac_cv_prog_RANLIB"
6021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror in -lcposix" >&5
6022 $as_echo_n "checking for strerror in -lcposix... " >&6; }
6023 if test "${ac_cv_lib_cposix_strerror+set}" = set; then :
6024 $as_echo_n "(cached) " >&6
6026 ac_check_lib_save_LIBS=$LIBS
6027 LIBS="-lcposix $LIBS"
6028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6029 /* end confdefs.h. */
6031 /* Override any GCC internal prototype to avoid an error.
6032 Use char because int might match the return type of a GCC
6033 builtin and then its argument prototype would still apply. */
6046 if ac_fn_c_try_link "$LINENO"; then :
6047 ac_cv_lib_cposix_strerror=yes
6049 ac_cv_lib_cposix_strerror=no
6051 rm -f core conftest.err conftest.$ac_objext \
6052 conftest$ac_exeext conftest.$ac_ext
6053 LIBS=$ac_check_lib_save_LIBS
6055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cposix_strerror" >&5
6056 $as_echo "$ac_cv_lib_cposix_strerror" >&6; }
6057 if test "x$ac_cv_lib_cposix_strerror" = x""yes; then :
6058 LIBS="$LIBS -lcposix"
6063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
6064 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
6065 if test "${ac_cv_c_const+set}" = set; then :
6066 $as_echo_n "(cached) " >&6
6068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6069 /* end confdefs.h. */
6074 /* FIXME: Include the comments suggested by Paul. */
6076 /* Ultrix mips cc rejects this. */
6077 typedef int charset[2];
6079 /* SunOS 4.1.1 cc rejects this. */
6080 char const *const *pcpcc;
6082 /* NEC SVR4.0.2 mips cc rejects this. */
6083 struct point {int x, y;};
6084 static struct point const zero = {0,0};
6085 /* AIX XL C 1.02.0.0 rejects this.
6086 It does not let you subtract one const X* pointer from another in
6087 an arm of an if-expression whose if-part is not a constant
6089 const char *g = "string";
6090 pcpcc = &g + (g ? g-g : 0);
6091 /* HPUX 7.0 cc rejects these. */
6093 ppc = (char**) pcpcc;
6094 pcpcc = (char const *const *) ppc;
6095 { /* SCO 3.2v4 cc rejects this. */
6097 char const *s = 0 ? (char *) 0 : (char const *) 0;
6102 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6104 const int *foo = &x[0];
6107 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6108 typedef const int *iptr;
6112 { /* AIX XL C 1.02.0.0 rejects this saying
6113 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6114 struct s { int j; const int *ap[3]; };
6115 struct s *b; b->j = 5;
6117 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6121 return !cs[0] && !zero.x;
6128 if ac_fn_c_try_compile "$LINENO"; then :
6133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
6136 $as_echo "$ac_cv_c_const" >&6; }
6137 if test $ac_cv_c_const = no; then
6139 $as_echo "#define const /**/" >>confdefs.h
6144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed" >&5
6145 $as_echo_n "checking for signed... " >&6; }
6146 if test "${bh_cv_c_signed+set}" = set; then :
6147 $as_echo_n "(cached) " >&6
6149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6150 /* end confdefs.h. */
6160 if ac_fn_c_try_compile "$LINENO"; then :
6165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bh_cv_c_signed" >&5
6168 $as_echo "$bh_cv_c_signed" >&6; }
6169 if test $bh_cv_c_signed = no; then
6171 $as_echo "#define signed /**/" >>confdefs.h
6175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
6176 $as_echo_n "checking for inline... " >&6; }
6177 if test "${ac_cv_c_inline+set}" = set; then :
6178 $as_echo_n "(cached) " >&6
6181 for ac_kw in inline __inline__ __inline; do
6182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6183 /* end confdefs.h. */
6186 static $ac_kw foo_t static_foo () {return 0; }
6187 $ac_kw foo_t foo () {return 0; }
6191 if ac_fn_c_try_compile "$LINENO"; then :
6192 ac_cv_c_inline=$ac_kw
6194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6195 test "$ac_cv_c_inline" != no && break
6199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
6200 $as_echo "$ac_cv_c_inline" >&6; }
6202 case $ac_cv_c_inline in
6205 case $ac_cv_c_inline in
6207 *) ac_val=$ac_cv_c_inline;;
6209 cat >>confdefs.h <<_ACEOF
6211 #define inline $ac_val
6217 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
6218 if test "x$ac_cv_type_off_t" = x""yes; then :
6222 cat >>confdefs.h <<_ACEOF
6223 #define off_t long int
6228 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6229 if test "x$ac_cv_type_size_t" = x""yes; then :
6233 cat >>confdefs.h <<_ACEOF
6234 #define size_t unsigned int
6240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long" >&5
6241 $as_echo_n "checking for long long... " >&6; }
6242 if test "${ac_cv_type_long_long+set}" = set; then :
6243 $as_echo_n "(cached) " >&6
6245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6246 /* end confdefs.h. */
6247 long long ll = 1LL; int i = 63;
6251 long long llmax = (long long) -1;
6252 return ll << i | ll >> i | llmax / ll | llmax % ll;
6257 if ac_fn_c_try_link "$LINENO"; then :
6258 ac_cv_type_long_long=yes
6260 ac_cv_type_long_long=no
6262 rm -f core conftest.err conftest.$ac_objext \
6263 conftest$ac_exeext conftest.$ac_ext
6265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long" >&5
6266 $as_echo "$ac_cv_type_long_long" >&6; }
6267 if test $ac_cv_type_long_long = yes; then
6269 $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
6274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
6275 $as_echo_n "checking for long double... " >&6; }
6276 if test "${gt_cv_c_long_double+set}" = set; then :
6277 $as_echo_n "(cached) " >&6
6279 if test "$GCC" = yes; then
6280 gt_cv_c_long_double=yes
6282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6283 /* end confdefs.h. */
6285 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
6286 long double foo = 0.0;
6287 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
6288 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
6298 if ac_fn_c_try_compile "$LINENO"; then :
6299 gt_cv_c_long_double=yes
6301 gt_cv_c_long_double=no
6303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_long_double" >&5
6307 $as_echo "$gt_cv_c_long_double" >&6; }
6308 if test $gt_cv_c_long_double = yes; then
6310 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
6315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
6316 $as_echo_n "checking for wchar_t... " >&6; }
6317 if test "${gt_cv_c_wchar_t+set}" = set; then :
6318 $as_echo_n "(cached) " >&6
6320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6321 /* end confdefs.h. */
6323 wchar_t foo = (wchar_t)'\0';
6332 if ac_fn_c_try_compile "$LINENO"; then :
6337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
6340 $as_echo "$gt_cv_c_wchar_t" >&6; }
6341 if test $gt_cv_c_wchar_t = yes; then
6343 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
6348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
6349 $as_echo_n "checking for wint_t... " >&6; }
6350 if test "${gt_cv_c_wint_t+set}" = set; then :
6351 $as_echo_n "(cached) " >&6
6353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6354 /* end confdefs.h. */
6356 wint_t foo = (wchar_t)'\0';
6365 if ac_fn_c_try_compile "$LINENO"; then :
6370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
6373 $as_echo "$gt_cv_c_wint_t" >&6; }
6374 if test $gt_cv_c_wint_t = yes; then
6376 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
6381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
6382 $as_echo_n "checking for inttypes.h... " >&6; }
6383 if test "${jm_ac_cv_header_inttypes_h+set}" = set; then :
6384 $as_echo_n "(cached) " >&6
6386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6387 /* end confdefs.h. */
6388 #include <sys/types.h>
6389 #include <inttypes.h>
6393 uintmax_t i = (uintmax_t) -1;
6398 if ac_fn_c_try_compile "$LINENO"; then :
6399 jm_ac_cv_header_inttypes_h=yes
6401 jm_ac_cv_header_inttypes_h=no
6403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_inttypes_h" >&5
6406 $as_echo "$jm_ac_cv_header_inttypes_h" >&6; }
6407 if test $jm_ac_cv_header_inttypes_h = yes; then
6409 cat >>confdefs.h <<_ACEOF
6410 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
6416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
6417 $as_echo_n "checking for stdint.h... " >&6; }
6418 if test "${jm_ac_cv_header_stdint_h+set}" = set; then :
6419 $as_echo_n "(cached) " >&6
6421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6422 /* end confdefs.h. */
6423 #include <sys/types.h>
6428 uintmax_t i = (uintmax_t) -1;
6433 if ac_fn_c_try_compile "$LINENO"; then :
6434 jm_ac_cv_header_stdint_h=yes
6436 jm_ac_cv_header_stdint_h=no
6438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_stdint_h" >&5
6441 $as_echo "$jm_ac_cv_header_stdint_h" >&6; }
6442 if test $jm_ac_cv_header_stdint_h = yes; then
6444 cat >>confdefs.h <<_ACEOF
6445 #define HAVE_STDINT_H_WITH_UINTMAX 1
6453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
6454 $as_echo_n "checking for intmax_t... " >&6; }
6455 if test "${gt_cv_c_intmax_t+set}" = set; then :
6456 $as_echo_n "(cached) " >&6
6458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6459 /* end confdefs.h. */
6463 #if HAVE_STDINT_H_WITH_UINTMAX
6466 #if HAVE_INTTYPES_H_WITH_UINTMAX
6467 #include <inttypes.h>
6478 if ac_fn_c_try_compile "$LINENO"; then :
6479 gt_cv_c_intmax_t=yes
6483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
6486 $as_echo "$gt_cv_c_intmax_t" >&6; }
6487 if test $gt_cv_c_intmax_t = yes; then
6489 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
6496 $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
6497 if test "${gt_cv_func_printf_posix+set}" = set; then :
6498 $as_echo_n "(cached) " >&6
6501 if test "$cross_compiling" = yes; then :
6503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6504 /* end confdefs.h. */
6506 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
6511 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6512 $EGREP "notposix" >/dev/null 2>&1; then :
6513 gt_cv_func_printf_posix="guessing no"
6515 gt_cv_func_printf_posix="guessing yes"
6521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6522 /* end confdefs.h. */
6526 /* The string "%2$d %1$d", with dollar characters protected from the shell's
6527 dollar expansion (possibly an autoconf bug). */
6528 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
6529 static char buf[100];
6532 sprintf (buf, format, 33, 55);
6533 return (strcmp (buf, "55 33") != 0);
6536 if ac_fn_c_try_run "$LINENO"; then :
6537 gt_cv_func_printf_posix=yes
6539 gt_cv_func_printf_posix=no
6541 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6542 conftest.$ac_objext conftest.beam conftest.$ac_ext
6547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
6548 $as_echo "$gt_cv_func_printf_posix" >&6; }
6549 case $gt_cv_func_printf_posix in
6552 $as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
6557 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6558 # for constant arguments. Useless!
6559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
6560 $as_echo_n "checking for working alloca.h... " >&6; }
6561 if test "${ac_cv_working_alloca_h+set}" = set; then :
6562 $as_echo_n "(cached) " >&6
6564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6565 /* end confdefs.h. */
6570 char *p = (char *) alloca (2 * sizeof (int));
6576 if ac_fn_c_try_link "$LINENO"; then :
6577 ac_cv_working_alloca_h=yes
6579 ac_cv_working_alloca_h=no
6581 rm -f core conftest.err conftest.$ac_objext \
6582 conftest$ac_exeext conftest.$ac_ext
6584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
6585 $as_echo "$ac_cv_working_alloca_h" >&6; }
6586 if test $ac_cv_working_alloca_h = yes; then
6588 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
6592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
6593 $as_echo_n "checking for alloca... " >&6; }
6594 if test "${ac_cv_func_alloca_works+set}" = set; then :
6595 $as_echo_n "(cached) " >&6
6597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6598 /* end confdefs.h. */
6600 # define alloca __builtin_alloca
6603 # include <malloc.h>
6604 # define alloca _alloca
6606 # ifdef HAVE_ALLOCA_H
6607 # include <alloca.h>
6612 # ifndef alloca /* predefined by HP cc +Olibcalls */
6623 char *p = (char *) alloca (1);
6629 if ac_fn_c_try_link "$LINENO"; then :
6630 ac_cv_func_alloca_works=yes
6632 ac_cv_func_alloca_works=no
6634 rm -f core conftest.err conftest.$ac_objext \
6635 conftest$ac_exeext conftest.$ac_ext
6637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
6638 $as_echo "$ac_cv_func_alloca_works" >&6; }
6640 if test $ac_cv_func_alloca_works = yes; then
6642 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
6645 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6646 # that cause trouble. Some versions do not even contain alloca or
6647 # contain a buggy version. If you still want to use their alloca,
6648 # use ar to extract alloca.o from them instead of compiling alloca.c.
6650 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
6652 $as_echo "#define C_ALLOCA 1" >>confdefs.h
6655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
6656 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
6657 if test "${ac_cv_os_cray+set}" = set; then :
6658 $as_echo_n "(cached) " >&6
6660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6661 /* end confdefs.h. */
6662 #if defined CRAY && ! defined CRAY2
6669 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6670 $EGREP "webecray" >/dev/null 2>&1; then :
6678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
6679 $as_echo "$ac_cv_os_cray" >&6; }
6680 if test $ac_cv_os_cray = yes; then
6681 for ac_func in _getb67 GETB67 getb67; do
6682 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6683 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6684 eval as_val=\$$as_ac_var
6685 if test "x$as_val" = x""yes; then :
6687 cat >>confdefs.h <<_ACEOF
6688 #define CRAY_STACKSEG_END $ac_func
6697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
6698 $as_echo_n "checking stack direction for C alloca... " >&6; }
6699 if test "${ac_cv_c_stack_direction+set}" = set; then :
6700 $as_echo_n "(cached) " >&6
6702 if test "$cross_compiling" = yes; then :
6703 ac_cv_c_stack_direction=0
6705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6706 /* end confdefs.h. */
6707 $ac_includes_default
6709 find_stack_direction ()
6711 static char *addr = 0;
6716 return find_stack_direction ();
6719 return (&dummy > addr) ? 1 : -1;
6725 return find_stack_direction () < 0;
6728 if ac_fn_c_try_run "$LINENO"; then :
6729 ac_cv_c_stack_direction=1
6731 ac_cv_c_stack_direction=-1
6733 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6734 conftest.$ac_objext conftest.beam conftest.$ac_ext
6738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
6739 $as_echo "$ac_cv_c_stack_direction" >&6; }
6740 cat >>confdefs.h <<_ACEOF
6741 #define STACK_DIRECTION $ac_cv_c_stack_direction
6747 for ac_header in stdlib.h unistd.h
6749 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6750 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6751 eval as_val=\$$as_ac_Header
6752 if test "x$as_val" = x""yes; then :
6753 cat >>confdefs.h <<_ACEOF
6754 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6761 for ac_func in getpagesize
6763 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
6764 if test "x$ac_cv_func_getpagesize" = x""yes; then :
6765 cat >>confdefs.h <<_ACEOF
6766 #define HAVE_GETPAGESIZE 1
6772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
6773 $as_echo_n "checking for working mmap... " >&6; }
6774 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
6775 $as_echo_n "(cached) " >&6
6777 if test "$cross_compiling" = yes; then :
6778 ac_cv_func_mmap_fixed_mapped=no
6780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6781 /* end confdefs.h. */
6782 $ac_includes_default
6783 /* malloc might have been renamed as rpl_malloc. */
6786 /* Thanks to Mike Haertel and Jim Avera for this test.
6787 Here is a matrix of mmap possibilities:
6788 mmap private not fixed
6789 mmap private fixed at somewhere currently unmapped
6790 mmap private fixed at somewhere already mapped
6791 mmap shared not fixed
6792 mmap shared fixed at somewhere currently unmapped
6793 mmap shared fixed at somewhere already mapped
6794 For private mappings, we should verify that changes cannot be read()
6795 back from the file, nor mmap's back from the file at a different
6796 address. (There have been systems where private was not correctly
6797 implemented like the infamous i386 svr4.0, and systems where the
6798 VM page cache was not coherent with the file system buffer cache
6799 like early versions of FreeBSD and possibly contemporary NetBSD.)
6800 For shared mappings, we should conversely verify that changes get
6801 propagated back to all the places they're supposed to be.
6803 Grep wants private fixed already mapped.
6804 The main things grep needs to know about mmap are:
6805 * does it exist and is it safe to write into the mmap'd area
6806 * how to use it (BSD variants) */
6809 #include <sys/mman.h>
6811 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
6815 /* This mess was copied from the GNU getpagesize.h. */
6816 #ifndef HAVE_GETPAGESIZE
6817 /* Assume that all systems that can run configure have sys/param.h. */
6818 # ifndef HAVE_SYS_PARAM_H
6819 # define HAVE_SYS_PARAM_H 1
6822 # ifdef _SC_PAGESIZE
6823 # define getpagesize() sysconf(_SC_PAGESIZE)
6824 # else /* no _SC_PAGESIZE */
6825 # ifdef HAVE_SYS_PARAM_H
6826 # include <sys/param.h>
6827 # ifdef EXEC_PAGESIZE
6828 # define getpagesize() EXEC_PAGESIZE
6829 # else /* no EXEC_PAGESIZE */
6831 # define getpagesize() NBPG * CLSIZE
6834 # endif /* no CLSIZE */
6835 # else /* no NBPG */
6837 # define getpagesize() NBPC
6838 # else /* no NBPC */
6840 # define getpagesize() PAGESIZE
6841 # endif /* PAGESIZE */
6842 # endif /* no NBPC */
6843 # endif /* no NBPG */
6844 # endif /* no EXEC_PAGESIZE */
6845 # else /* no HAVE_SYS_PARAM_H */
6846 # define getpagesize() 8192 /* punt totally */
6847 # endif /* no HAVE_SYS_PARAM_H */
6848 # endif /* no _SC_PAGESIZE */
6850 #endif /* no HAVE_GETPAGESIZE */
6855 char *data, *data2, *data3;
6859 pagesize = getpagesize ();
6861 /* First, make a file with some known garbage in it. */
6862 data = (char *) malloc (pagesize);
6865 for (i = 0; i < pagesize; ++i)
6866 *(data + i) = rand ();
6868 fd = creat ("conftest.mmap", 0600);
6871 if (write (fd, data, pagesize) != pagesize)
6875 /* Next, try to mmap the file at a fixed address which already has
6876 something else allocated at it. If we can, also make sure that
6877 we see the same garbage. */
6878 fd = open ("conftest.mmap", O_RDWR);
6881 data2 = (char *) malloc (2 * pagesize);
6884 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
6885 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6886 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6888 for (i = 0; i < pagesize; ++i)
6889 if (*(data + i) != *(data2 + i))
6892 /* Finally, make sure that changes to the mapped area do not
6893 percolate back to the file as seen by read(). (This is a bug on
6894 some variants of i386 svr4.0.) */
6895 for (i = 0; i < pagesize; ++i)
6896 *(data2 + i) = *(data2 + i) + 1;
6897 data3 = (char *) malloc (pagesize);
6900 if (read (fd, data3, pagesize) != pagesize)
6902 for (i = 0; i < pagesize; ++i)
6903 if (*(data + i) != *(data3 + i))
6909 if ac_fn_c_try_run "$LINENO"; then :
6910 ac_cv_func_mmap_fixed_mapped=yes
6912 ac_cv_func_mmap_fixed_mapped=no
6914 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6915 conftest.$ac_objext conftest.beam conftest.$ac_ext
6919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
6920 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
6921 if test $ac_cv_func_mmap_fixed_mapped = yes; then
6923 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
6929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
6930 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
6931 if test "${ac_cv_gnu_library_2_1+set}" = set; then :
6932 $as_echo_n "(cached) " >&6
6934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6935 /* end confdefs.h. */
6937 #include <features.h>
6938 #ifdef __GNU_LIBRARY__
6939 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
6945 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6946 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
6947 ac_cv_gnu_library_2_1=yes
6949 ac_cv_gnu_library_2_1=no
6956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
6957 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
6959 GLIBC21="$ac_cv_gnu_library_2_1"
6964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
6965 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
6966 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then :
6967 $as_echo_n "(cached) " >&6
6970 if test "$cross_compiling" = yes; then :
6972 # Guess based on the CPU.
6974 alpha* | i3456786 | m68k | s390*)
6975 gt_cv_int_divbyzero_sigfpe="guessing yes";;
6977 gt_cv_int_divbyzero_sigfpe="guessing no";;
6981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6982 /* end confdefs.h. */
6989 sigfpe_handler (int sig)
6991 sigfpe_handler (sig) int sig;
6994 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
6995 exit (sig != SIGFPE);
7005 signal (SIGFPE, sigfpe_handler);
7006 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
7007 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
7008 signal (SIGTRAP, sigfpe_handler);
7010 /* Linux/SPARC yields signal SIGILL. */
7011 #if defined (__sparc__) && defined (__linux__)
7012 signal (SIGILL, sigfpe_handler);
7021 if ac_fn_c_try_run "$LINENO"; then :
7022 gt_cv_int_divbyzero_sigfpe=yes
7024 gt_cv_int_divbyzero_sigfpe=no
7026 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7027 conftest.$ac_objext conftest.beam conftest.$ac_ext
7032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
7033 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
7034 case "$gt_cv_int_divbyzero_sigfpe" in
7039 cat >>confdefs.h <<_ACEOF
7040 #define INTDIV0_RAISES_SIGFPE $value
7045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long" >&5
7046 $as_echo_n "checking for unsigned long long... " >&6; }
7047 if test "${ac_cv_type_unsigned_long_long+set}" = set; then :
7048 $as_echo_n "(cached) " >&6
7050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7051 /* end confdefs.h. */
7052 unsigned long long ull = 1ULL; int i = 63;
7056 unsigned long long ullmax = (unsigned long long) -1;
7057 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
7062 if ac_fn_c_try_link "$LINENO"; then :
7063 ac_cv_type_unsigned_long_long=yes
7065 ac_cv_type_unsigned_long_long=no
7067 rm -f core conftest.err conftest.$ac_objext \
7068 conftest$ac_exeext conftest.$ac_ext
7070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long" >&5
7071 $as_echo "$ac_cv_type_unsigned_long_long" >&6; }
7072 if test $ac_cv_type_unsigned_long_long = yes; then
7074 $as_echo "#define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h
7081 if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
7083 test $ac_cv_type_unsigned_long_long = yes \
7084 && ac_type='unsigned long long' \
7085 || ac_type='unsigned long'
7087 cat >>confdefs.h <<_ACEOF
7088 #define uintmax_t $ac_type
7093 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
7098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
7099 $as_echo_n "checking for inttypes.h... " >&6; }
7100 if test "${gt_cv_header_inttypes_h+set}" = set; then :
7101 $as_echo_n "(cached) " >&6
7104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7105 /* end confdefs.h. */
7106 #include <sys/types.h>
7107 #include <inttypes.h>
7116 if ac_fn_c_try_compile "$LINENO"; then :
7117 gt_cv_header_inttypes_h=yes
7119 gt_cv_header_inttypes_h=no
7121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_header_inttypes_h" >&5
7125 $as_echo "$gt_cv_header_inttypes_h" >&6; }
7126 if test $gt_cv_header_inttypes_h = yes; then
7128 cat >>confdefs.h <<_ACEOF
7129 #define HAVE_INTTYPES_H 1
7136 if test $gt_cv_header_inttypes_h = yes; then
7137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
7138 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
7139 if test "${gt_cv_inttypes_pri_broken+set}" = set; then :
7140 $as_echo_n "(cached) " >&6
7143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7144 /* end confdefs.h. */
7145 #include <inttypes.h>
7158 if ac_fn_c_try_compile "$LINENO"; then :
7159 gt_cv_inttypes_pri_broken=no
7161 gt_cv_inttypes_pri_broken=yes
7163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
7167 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
7169 if test "$gt_cv_inttypes_pri_broken" = yes; then
7171 cat >>confdefs.h <<_ACEOF
7172 #define PRI_MACROS_BROKEN 1
7178 for ac_header in stdint.h
7180 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
7181 if test "x$ac_cv_header_stdint_h" = x""yes; then :
7182 cat >>confdefs.h <<_ACEOF
7183 #define HAVE_STDINT_H 1
7190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
7191 $as_echo_n "checking for SIZE_MAX... " >&6; }
7193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7194 /* end confdefs.h. */
7205 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7206 $EGREP "Found it" >/dev/null 2>&1; then :
7211 if test -z "$result"; then
7212 if ac_fn_c_compute_int "$LINENO" "~(size_t)0 / 10" "res_hi" "#include <stddef.h>"; then :
7219 if ac_fn_c_compute_int "$LINENO" "~(size_t)0 % 10" "res_lo" "#include <stddef.h>"; then :
7226 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then :
7233 if test "$fits_in_uint" = 1; then
7234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7235 /* end confdefs.h. */
7238 extern unsigned long foo;
7248 if ac_fn_c_try_compile "$LINENO"; then :
7251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7253 if test -z "$result"; then
7254 if test "$fits_in_uint" = 1; then
7255 result="$res_hi$res_lo"U
7257 result="$res_hi$res_lo"UL
7263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
7264 $as_echo "$result" >&6; }
7265 if test "$result" != yes; then
7267 cat >>confdefs.h <<_ACEOF
7268 #define SIZE_MAX $result
7275 for ac_header in stdint.h
7277 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
7278 if test "x$ac_cv_header_stdint_h" = x""yes; then :
7279 cat >>confdefs.h <<_ACEOF
7280 #define HAVE_STDINT_H 1
7289 if test "X$prefix" = "XNONE"; then
7290 acl_final_prefix="$ac_default_prefix"
7292 acl_final_prefix="$prefix"
7294 if test "X$exec_prefix" = "XNONE"; then
7295 acl_final_exec_prefix='${prefix}'
7297 acl_final_exec_prefix="$exec_prefix"
7299 acl_save_prefix="$prefix"
7300 prefix="$acl_final_prefix"
7301 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7302 prefix="$acl_save_prefix"
7305 # Check whether --with-gnu-ld was given.
7306 if test "${with_gnu_ld+set}" = set; then :
7307 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7312 # Prepare PATH_SEPARATOR.
7313 # The user is always right.
7314 if test "${PATH_SEPARATOR+set}" != set; then
7315 echo "#! /bin/sh" >conf$$.sh
7316 echo "exit 0" >>conf$$.sh
7318 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7326 if test "$GCC" = yes; then
7327 # Check if gcc -print-prog-name=ld gives a path.
7328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
7329 $as_echo_n "checking for ld used by GCC... " >&6; }
7332 # gcc leaves a trailing carriage return which upsets mingw
7333 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7335 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7338 # Accept absolute paths.
7339 [\\/]* | [A-Za-z]:[\\/]*)
7340 re_direlt='/[^/][^/]*/\.\./'
7341 # Canonicalize the path of ld
7342 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
7343 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
7344 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
7346 test -z "$LD" && LD="$ac_prog"
7349 # If it fails, then pretend we aren't using GCC.
7353 # If it is relative, then search for the first ld in PATH.
7357 elif test "$with_gnu_ld" = yes; then
7358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7359 $as_echo_n "checking for GNU ld... " >&6; }
7361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7362 $as_echo_n "checking for non-GNU ld... " >&6; }
7364 if test "${acl_cv_path_LD+set}" = set; then :
7365 $as_echo_n "(cached) " >&6
7367 if test -z "$LD"; then
7368 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
7369 for ac_dir in $PATH; do
7370 test -z "$ac_dir" && ac_dir=.
7371 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7372 acl_cv_path_LD="$ac_dir/$ac_prog"
7373 # Check to see if the program is GNU ld. I'd rather use --version,
7374 # but apparently some GNU ld's only accept -v.
7375 # Break only if it was the GNU/non-GNU ld that we prefer.
7376 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
7377 *GNU* | *'with BFD'*)
7378 test "$with_gnu_ld" != no && break ;;
7380 test "$with_gnu_ld" != yes && break ;;
7386 acl_cv_path_LD="$LD" # Let the user override the test with a path.
7390 LD="$acl_cv_path_LD"
7391 if test -n "$LD"; then
7392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7393 $as_echo "$LD" >&6; }
7395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7396 $as_echo "no" >&6; }
7398 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
7399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7400 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7401 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
7402 $as_echo_n "(cached) " >&6
7404 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
7405 case `$LD -v 2>&1 </dev/null` in
7406 *GNU* | *'with BFD'*)
7407 acl_cv_prog_gnu_ld=yes ;;
7409 acl_cv_prog_gnu_ld=no ;;
7412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
7413 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
7414 with_gnu_ld=$acl_cv_prog_gnu_ld
7418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
7419 $as_echo_n "checking for shared library run path origin... " >&6; }
7420 if test "${acl_cv_rpath+set}" = set; then :
7421 $as_echo_n "(cached) " >&6
7424 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
7425 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
7432 $as_echo "$acl_cv_rpath" >&6; }
7434 libext="$acl_cv_libext"
7435 shlibext="$acl_cv_shlibext"
7436 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
7437 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
7438 hardcode_direct="$acl_cv_hardcode_direct"
7439 hardcode_minus_L="$acl_cv_hardcode_minus_L"
7440 # Check whether --enable-rpath was given.
7441 if test "${enable_rpath+set}" = set; then :
7442 enableval=$enable_rpath; :
7456 acl_save_prefix="$prefix"
7457 prefix="$acl_final_prefix"
7458 acl_save_exec_prefix="$exec_prefix"
7459 exec_prefix="$acl_final_exec_prefix"
7461 eval additional_includedir=\"$includedir\"
7462 eval additional_libdir=\"$libdir\"
7464 exec_prefix="$acl_save_exec_prefix"
7465 prefix="$acl_save_prefix"
7468 # Check whether --with-libiconv-prefix was given.
7469 if test "${with_libiconv_prefix+set}" = set; then :
7470 withval=$with_libiconv_prefix;
7471 if test "X$withval" = "Xno"; then
7474 if test "X$withval" = "X"; then
7476 acl_save_prefix="$prefix"
7477 prefix="$acl_final_prefix"
7478 acl_save_exec_prefix="$exec_prefix"
7479 exec_prefix="$acl_final_exec_prefix"
7481 eval additional_includedir=\"$includedir\"
7482 eval additional_libdir=\"$libdir\"
7484 exec_prefix="$acl_save_exec_prefix"
7485 prefix="$acl_save_prefix"
7488 additional_includedir="$withval/include"
7489 additional_libdir="$withval/lib"
7500 names_already_handled=
7501 names_next_round='iconv '
7502 while test -n "$names_next_round"; do
7503 names_this_round="$names_next_round"
7505 for name in $names_this_round; do
7507 for n in $names_already_handled; do
7508 if test "$n" = "$name"; then
7513 if test -z "$already_handled"; then
7514 names_already_handled="$names_already_handled $name"
7515 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7516 eval value=\"\$HAVE_LIB$uppername\"
7517 if test -n "$value"; then
7518 if test "$value" = yes; then
7519 eval value=\"\$LIB$uppername\"
7520 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
7521 eval value=\"\$LTLIB$uppername\"
7522 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
7531 if test $use_additional = yes; then
7532 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
7533 found_dir="$additional_libdir"
7534 found_so="$additional_libdir/lib$name.$shlibext"
7535 if test -f "$additional_libdir/lib$name.la"; then
7536 found_la="$additional_libdir/lib$name.la"
7539 if test -f "$additional_libdir/lib$name.$libext"; then
7540 found_dir="$additional_libdir"
7541 found_a="$additional_libdir/lib$name.$libext"
7542 if test -f "$additional_libdir/lib$name.la"; then
7543 found_la="$additional_libdir/lib$name.la"
7548 if test "X$found_dir" = "X"; then
7549 for x in $LDFLAGS $LTLIBICONV; do
7551 acl_save_prefix="$prefix"
7552 prefix="$acl_final_prefix"
7553 acl_save_exec_prefix="$exec_prefix"
7554 exec_prefix="$acl_final_exec_prefix"
7556 exec_prefix="$acl_save_exec_prefix"
7557 prefix="$acl_save_prefix"
7561 dir=`echo "X$x" | sed -e 's/^X-L//'`
7562 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
7564 found_so="$dir/lib$name.$shlibext"
7565 if test -f "$dir/lib$name.la"; then
7566 found_la="$dir/lib$name.la"
7569 if test -f "$dir/lib$name.$libext"; then
7571 found_a="$dir/lib$name.$libext"
7572 if test -f "$dir/lib$name.la"; then
7573 found_la="$dir/lib$name.la"
7579 if test "X$found_dir" != "X"; then
7584 if test "X$found_dir" != "X"; then
7585 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
7586 if test "X$found_so" != "X"; then
7587 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
7588 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7591 for x in $ltrpathdirs; do
7592 if test "X$x" = "X$found_dir"; then
7597 if test -z "$haveit"; then
7598 ltrpathdirs="$ltrpathdirs $found_dir"
7600 if test "$hardcode_direct" = yes; then
7601 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7603 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
7604 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7606 for x in $rpathdirs; do
7607 if test "X$x" = "X$found_dir"; then
7612 if test -z "$haveit"; then
7613 rpathdirs="$rpathdirs $found_dir"
7617 for x in $LDFLAGS $LIBICONV; do
7619 acl_save_prefix="$prefix"
7620 prefix="$acl_final_prefix"
7621 acl_save_exec_prefix="$exec_prefix"
7622 exec_prefix="$acl_final_exec_prefix"
7624 exec_prefix="$acl_save_exec_prefix"
7625 prefix="$acl_save_prefix"
7627 if test "X$x" = "X-L$found_dir"; then
7632 if test -z "$haveit"; then
7633 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
7635 if test "$hardcode_minus_L" != no; then
7636 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7638 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
7644 if test "X$found_a" != "X"; then
7645 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
7647 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
7650 additional_includedir=
7651 case "$found_dir" in
7653 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
7654 additional_includedir="$basedir/include"
7657 if test "X$additional_includedir" != "X"; then
7658 if test "X$additional_includedir" != "X/usr/include"; then
7660 if test "X$additional_includedir" = "X/usr/local/include"; then
7661 if test -n "$GCC"; then
7663 linux*) haveit=yes;;
7667 if test -z "$haveit"; then
7668 for x in $CPPFLAGS $INCICONV; do
7670 acl_save_prefix="$prefix"
7671 prefix="$acl_final_prefix"
7672 acl_save_exec_prefix="$exec_prefix"
7673 exec_prefix="$acl_final_exec_prefix"
7675 exec_prefix="$acl_save_exec_prefix"
7676 prefix="$acl_save_prefix"
7678 if test "X$x" = "X-I$additional_includedir"; then
7683 if test -z "$haveit"; then
7684 if test -d "$additional_includedir"; then
7685 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
7691 if test -n "$found_la"; then
7692 save_libdir="$libdir"
7694 */* | *\\*) . "$found_la" ;;
7695 *) . "./$found_la" ;;
7697 libdir="$save_libdir"
7698 for dep in $dependency_libs; do
7701 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
7702 if test "X$additional_libdir" != "X/usr/lib"; then
7704 if test "X$additional_libdir" = "X/usr/local/lib"; then
7705 if test -n "$GCC"; then
7707 linux*) haveit=yes;;
7711 if test -z "$haveit"; then
7713 for x in $LDFLAGS $LIBICONV; do
7715 acl_save_prefix="$prefix"
7716 prefix="$acl_final_prefix"
7717 acl_save_exec_prefix="$exec_prefix"
7718 exec_prefix="$acl_final_exec_prefix"
7720 exec_prefix="$acl_save_exec_prefix"
7721 prefix="$acl_save_prefix"
7723 if test "X$x" = "X-L$additional_libdir"; then
7728 if test -z "$haveit"; then
7729 if test -d "$additional_libdir"; then
7730 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
7734 for x in $LDFLAGS $LTLIBICONV; do
7736 acl_save_prefix="$prefix"
7737 prefix="$acl_final_prefix"
7738 acl_save_exec_prefix="$exec_prefix"
7739 exec_prefix="$acl_final_exec_prefix"
7741 exec_prefix="$acl_save_exec_prefix"
7742 prefix="$acl_save_prefix"
7744 if test "X$x" = "X-L$additional_libdir"; then
7749 if test -z "$haveit"; then
7750 if test -d "$additional_libdir"; then
7751 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
7758 dir=`echo "X$dep" | sed -e 's/^X-R//'`
7759 if test "$enable_rpath" != no; then
7761 for x in $rpathdirs; do
7762 if test "X$x" = "X$dir"; then
7767 if test -z "$haveit"; then
7768 rpathdirs="$rpathdirs $dir"
7771 for x in $ltrpathdirs; do
7772 if test "X$x" = "X$dir"; then
7777 if test -z "$haveit"; then
7778 ltrpathdirs="$ltrpathdirs $dir"
7783 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7786 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7789 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
7790 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
7796 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
7797 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
7803 if test "X$rpathdirs" != "X"; then
7804 if test -n "$hardcode_libdir_separator"; then
7806 for found_dir in $rpathdirs; do
7807 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
7809 acl_save_libdir="$libdir"
7811 eval flag=\"$hardcode_libdir_flag_spec\"
7812 libdir="$acl_save_libdir"
7813 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
7815 for found_dir in $rpathdirs; do
7816 acl_save_libdir="$libdir"
7818 eval flag=\"$hardcode_libdir_flag_spec\"
7819 libdir="$acl_save_libdir"
7820 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
7824 if test "X$ltrpathdirs" != "X"; then
7825 for found_dir in $ltrpathdirs; do
7826 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
7837 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
7838 if test "x$ac_cv_type_ptrdiff_t" = x""yes; then :
7842 $as_echo "#define ptrdiff_t long" >>confdefs.h
7847 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
7848 stdlib.h string.h unistd.h sys/param.h
7850 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7851 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7852 eval as_val=\$$as_ac_Header
7853 if test "x$as_val" = x""yes; then :
7854 cat >>confdefs.h <<_ACEOF
7855 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7862 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
7863 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
7864 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
7867 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7868 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7869 eval as_val=\$$as_ac_var
7870 if test "x$as_val" = x""yes; then :
7871 cat >>confdefs.h <<_ACEOF
7872 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snprintf is declared" >&5
7881 $as_echo_n "checking whether _snprintf is declared... " >&6; }
7882 if test "${ac_cv_have_decl__snprintf+set}" = set; then :
7883 $as_echo_n "(cached) " >&6
7885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7886 /* end confdefs.h. */
7893 char *p = (char *) _snprintf;
7900 if ac_fn_c_try_compile "$LINENO"; then :
7901 ac_cv_have_decl__snprintf=yes
7903 ac_cv_have_decl__snprintf=no
7905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snprintf" >&5
7908 $as_echo "$ac_cv_have_decl__snprintf" >&6; }
7909 if test $ac_cv_have_decl__snprintf = yes; then
7915 cat >>confdefs.h <<_ACEOF
7916 #define HAVE_DECL__SNPRINTF $gt_value
7921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snwprintf is declared" >&5
7922 $as_echo_n "checking whether _snwprintf is declared... " >&6; }
7923 if test "${ac_cv_have_decl__snwprintf+set}" = set; then :
7924 $as_echo_n "(cached) " >&6
7926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7927 /* end confdefs.h. */
7934 char *p = (char *) _snwprintf;
7941 if ac_fn_c_try_compile "$LINENO"; then :
7942 ac_cv_have_decl__snwprintf=yes
7944 ac_cv_have_decl__snwprintf=no
7946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snwprintf" >&5
7949 $as_echo "$ac_cv_have_decl__snwprintf" >&6; }
7950 if test $ac_cv_have_decl__snwprintf = yes; then
7956 cat >>confdefs.h <<_ACEOF
7957 #define HAVE_DECL__SNWPRINTF $gt_value
7963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether feof_unlocked is declared" >&5
7964 $as_echo_n "checking whether feof_unlocked is declared... " >&6; }
7965 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then :
7966 $as_echo_n "(cached) " >&6
7968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7969 /* end confdefs.h. */
7975 #ifndef feof_unlocked
7976 char *p = (char *) feof_unlocked;
7983 if ac_fn_c_try_compile "$LINENO"; then :
7984 ac_cv_have_decl_feof_unlocked=yes
7986 ac_cv_have_decl_feof_unlocked=no
7988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_feof_unlocked" >&5
7991 $as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
7992 if test $ac_cv_have_decl_feof_unlocked = yes; then
7998 cat >>confdefs.h <<_ACEOF
7999 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
8004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fgets_unlocked is declared" >&5
8005 $as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
8006 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then :
8007 $as_echo_n "(cached) " >&6
8009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8010 /* end confdefs.h. */
8016 #ifndef fgets_unlocked
8017 char *p = (char *) fgets_unlocked;
8024 if ac_fn_c_try_compile "$LINENO"; then :
8025 ac_cv_have_decl_fgets_unlocked=yes
8027 ac_cv_have_decl_fgets_unlocked=no
8029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_fgets_unlocked" >&5
8032 $as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
8033 if test $ac_cv_have_decl_fgets_unlocked = yes; then
8039 cat >>confdefs.h <<_ACEOF
8040 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
8045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getc_unlocked is declared" >&5
8046 $as_echo_n "checking whether getc_unlocked is declared... " >&6; }
8047 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then :
8048 $as_echo_n "(cached) " >&6
8050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8051 /* end confdefs.h. */
8057 #ifndef getc_unlocked
8058 char *p = (char *) getc_unlocked;
8065 if ac_fn_c_try_compile "$LINENO"; then :
8066 ac_cv_have_decl_getc_unlocked=yes
8068 ac_cv_have_decl_getc_unlocked=no
8070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_getc_unlocked" >&5
8073 $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
8074 if test $ac_cv_have_decl_getc_unlocked = yes; then
8080 cat >>confdefs.h <<_ACEOF
8081 #define HAVE_DECL_GETC_UNLOCKED $gt_value
8086 case $gt_cv_func_printf_posix in
8087 *yes) HAVE_POSIX_PRINTF=1 ;;
8088 *) HAVE_POSIX_PRINTF=0 ;;
8091 if test "$ac_cv_func_asprintf" = yes; then
8097 if test "$ac_cv_func_snprintf" = yes; then
8103 if test "$ac_cv_func_wprintf" = yes; then
8115 am_save_CPPFLAGS="$CPPFLAGS"
8117 for element in $INCICONV; do
8119 for x in $CPPFLAGS; do
8121 acl_save_prefix="$prefix"
8122 prefix="$acl_final_prefix"
8123 acl_save_exec_prefix="$exec_prefix"
8124 exec_prefix="$acl_final_exec_prefix"
8126 exec_prefix="$acl_save_exec_prefix"
8127 prefix="$acl_save_prefix"
8129 if test "X$x" = "X$element"; then
8134 if test -z "$haveit"; then
8135 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
8141 $as_echo_n "checking for iconv... " >&6; }
8142 if test "${am_cv_func_iconv+set}" = set; then :
8143 $as_echo_n "(cached) " >&6
8146 am_cv_func_iconv="no, consider installing GNU libiconv"
8148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8149 /* end confdefs.h. */
8155 iconv_t cd = iconv_open("","");
8156 iconv(cd,NULL,NULL,NULL,NULL);
8162 if ac_fn_c_try_link "$LINENO"; then :
8163 am_cv_func_iconv=yes
8165 rm -f core conftest.err conftest.$ac_objext \
8166 conftest$ac_exeext conftest.$ac_ext
8167 if test "$am_cv_func_iconv" != yes; then
8168 am_save_LIBS="$LIBS"
8169 LIBS="$LIBS $LIBICONV"
8170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8171 /* end confdefs.h. */
8177 iconv_t cd = iconv_open("","");
8178 iconv(cd,NULL,NULL,NULL,NULL);
8184 if ac_fn_c_try_link "$LINENO"; then :
8186 am_cv_func_iconv=yes
8188 rm -f core conftest.err conftest.$ac_objext \
8189 conftest$ac_exeext conftest.$ac_ext
8190 LIBS="$am_save_LIBS"
8194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
8195 $as_echo "$am_cv_func_iconv" >&6; }
8196 if test "$am_cv_func_iconv" = yes; then
8198 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
8201 if test "$am_cv_lib_iconv" = yes; then
8202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
8203 $as_echo_n "checking how to link with libiconv... " >&6; }
8204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
8205 $as_echo "$LIBICONV" >&6; }
8207 CPPFLAGS="$am_save_CPPFLAGS"
8214 if test "$am_cv_func_iconv" = yes; then
8215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
8216 $as_echo_n "checking for iconv declaration... " >&6; }
8217 if test "${am_cv_proto_iconv+set}" = set; then :
8218 $as_echo_n "(cached) " >&6
8221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8222 /* end confdefs.h. */
8230 #if defined(__STDC__) || defined(__cplusplus)
8231 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
8244 if ac_fn_c_try_compile "$LINENO"; then :
8245 am_cv_proto_iconv_arg1=""
8247 am_cv_proto_iconv_arg1="const"
8249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8250 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);"
8253 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
8254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
8255 }$am_cv_proto_iconv" >&5
8257 }$am_cv_proto_iconv" >&6; }
8259 cat >>confdefs.h <<_ACEOF
8260 #define ICONV_CONST $am_cv_proto_iconv_arg1
8266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
8267 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
8268 if test "${am_cv_langinfo_codeset+set}" = set; then :
8269 $as_echo_n "(cached) " >&6
8271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8272 /* end confdefs.h. */
8273 #include <langinfo.h>
8277 char* cs = nl_langinfo(CODESET);
8282 if ac_fn_c_try_link "$LINENO"; then :
8283 am_cv_langinfo_codeset=yes
8285 am_cv_langinfo_codeset=no
8287 rm -f core conftest.err conftest.$ac_objext \
8288 conftest$ac_exeext conftest.$ac_ext
8291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
8292 $as_echo "$am_cv_langinfo_codeset" >&6; }
8293 if test $am_cv_langinfo_codeset = yes; then
8295 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
8299 if test $ac_cv_header_locale_h = yes; then
8301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
8302 $as_echo_n "checking for LC_MESSAGES... " >&6; }
8303 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
8304 $as_echo_n "(cached) " >&6
8306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8307 /* end confdefs.h. */
8317 if ac_fn_c_try_link "$LINENO"; then :
8318 am_cv_val_LC_MESSAGES=yes
8320 am_cv_val_LC_MESSAGES=no
8322 rm -f core conftest.err conftest.$ac_objext \
8323 conftest$ac_exeext conftest.$ac_ext
8325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
8326 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
8327 if test $am_cv_val_LC_MESSAGES = yes; then
8329 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
8335 for ac_prog in bison
8337 # Extract the first word of "$ac_prog", so it can be a program name with args.
8338 set dummy $ac_prog; ac_word=$2
8339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8340 $as_echo_n "checking for $ac_word... " >&6; }
8341 if test "${ac_cv_prog_INTLBISON+set}" = set; then :
8342 $as_echo_n "(cached) " >&6
8344 if test -n "$INTLBISON"; then
8345 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
8347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8351 test -z "$as_dir" && as_dir=.
8352 for ac_exec_ext in '' $ac_executable_extensions; do
8353 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8354 ac_cv_prog_INTLBISON="$ac_prog"
8355 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8364 INTLBISON=$ac_cv_prog_INTLBISON
8365 if test -n "$INTLBISON"; then
8366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
8367 $as_echo "$INTLBISON" >&6; }
8369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8370 $as_echo "no" >&6; }
8374 test -n "$INTLBISON" && break
8377 if test -z "$INTLBISON"; then
8380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
8381 $as_echo_n "checking version of bison... " >&6; }
8382 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
8383 case $ac_prog_version in
8384 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
8385 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
8386 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
8387 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
8389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
8390 $as_echo "$ac_prog_version" >&6; }
8392 if test $ac_verc_fail = yes; then
8411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
8412 $as_echo_n "checking whether NLS is requested... " >&6; }
8413 # Check whether --enable-nls was given.
8414 if test "${enable_nls+set}" = set; then :
8415 enableval=$enable_nls; USE_NLS=$enableval
8420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
8421 $as_echo "$USE_NLS" >&6; }
8426 BUILD_INCLUDED_LIBINTL=no
8427 USE_INCLUDED_LIBINTL=no
8433 if test "$USE_NLS" = "yes"; then
8434 gt_use_preinstalled_gnugettext=no
8436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
8437 $as_echo_n "checking whether included gettext is requested... " >&6; }
8439 # Check whether --with-included-gettext was given.
8440 if test "${with_included_gettext+set}" = set; then :
8441 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
8443 nls_cv_force_use_gnu_gettext=no
8446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
8447 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
8449 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
8450 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
8457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
8458 $as_echo_n "checking for GNU gettext in libc... " >&6; }
8459 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then :
8460 $as_echo_n "(cached) " >&6
8462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8463 /* end confdefs.h. */
8464 #include <libintl.h>
8465 extern int _nl_msg_cat_cntr;
8466 extern int *_nl_domain_bindings;
8470 bindtextdomain ("", "");
8471 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
8476 if ac_fn_c_try_link "$LINENO"; then :
8477 gt_cv_func_gnugettext1_libc=yes
8479 gt_cv_func_gnugettext1_libc=no
8481 rm -f core conftest.err conftest.$ac_objext \
8482 conftest$ac_exeext conftest.$ac_ext
8484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
8485 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
8487 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
8493 acl_save_prefix="$prefix"
8494 prefix="$acl_final_prefix"
8495 acl_save_exec_prefix="$exec_prefix"
8496 exec_prefix="$acl_final_exec_prefix"
8498 eval additional_includedir=\"$includedir\"
8499 eval additional_libdir=\"$libdir\"
8501 exec_prefix="$acl_save_exec_prefix"
8502 prefix="$acl_save_prefix"
8505 # Check whether --with-libintl-prefix was given.
8506 if test "${with_libintl_prefix+set}" = set; then :
8507 withval=$with_libintl_prefix;
8508 if test "X$withval" = "Xno"; then
8511 if test "X$withval" = "X"; then
8513 acl_save_prefix="$prefix"
8514 prefix="$acl_final_prefix"
8515 acl_save_exec_prefix="$exec_prefix"
8516 exec_prefix="$acl_final_exec_prefix"
8518 eval additional_includedir=\"$includedir\"
8519 eval additional_libdir=\"$libdir\"
8521 exec_prefix="$acl_save_exec_prefix"
8522 prefix="$acl_save_prefix"
8525 additional_includedir="$withval/include"
8526 additional_libdir="$withval/lib"
8537 names_already_handled=
8538 names_next_round='intl '
8539 while test -n "$names_next_round"; do
8540 names_this_round="$names_next_round"
8542 for name in $names_this_round; do
8544 for n in $names_already_handled; do
8545 if test "$n" = "$name"; then
8550 if test -z "$already_handled"; then
8551 names_already_handled="$names_already_handled $name"
8552 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
8553 eval value=\"\$HAVE_LIB$uppername\"
8554 if test -n "$value"; then
8555 if test "$value" = yes; then
8556 eval value=\"\$LIB$uppername\"
8557 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
8558 eval value=\"\$LTLIB$uppername\"
8559 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
8568 if test $use_additional = yes; then
8569 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
8570 found_dir="$additional_libdir"
8571 found_so="$additional_libdir/lib$name.$shlibext"
8572 if test -f "$additional_libdir/lib$name.la"; then
8573 found_la="$additional_libdir/lib$name.la"
8576 if test -f "$additional_libdir/lib$name.$libext"; then
8577 found_dir="$additional_libdir"
8578 found_a="$additional_libdir/lib$name.$libext"
8579 if test -f "$additional_libdir/lib$name.la"; then
8580 found_la="$additional_libdir/lib$name.la"
8585 if test "X$found_dir" = "X"; then
8586 for x in $LDFLAGS $LTLIBINTL; do
8588 acl_save_prefix="$prefix"
8589 prefix="$acl_final_prefix"
8590 acl_save_exec_prefix="$exec_prefix"
8591 exec_prefix="$acl_final_exec_prefix"
8593 exec_prefix="$acl_save_exec_prefix"
8594 prefix="$acl_save_prefix"
8598 dir=`echo "X$x" | sed -e 's/^X-L//'`
8599 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
8601 found_so="$dir/lib$name.$shlibext"
8602 if test -f "$dir/lib$name.la"; then
8603 found_la="$dir/lib$name.la"
8606 if test -f "$dir/lib$name.$libext"; then
8608 found_a="$dir/lib$name.$libext"
8609 if test -f "$dir/lib$name.la"; then
8610 found_la="$dir/lib$name.la"
8616 if test "X$found_dir" != "X"; then
8621 if test "X$found_dir" != "X"; then
8622 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
8623 if test "X$found_so" != "X"; then
8624 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
8625 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8628 for x in $ltrpathdirs; do
8629 if test "X$x" = "X$found_dir"; then
8634 if test -z "$haveit"; then
8635 ltrpathdirs="$ltrpathdirs $found_dir"
8637 if test "$hardcode_direct" = yes; then
8638 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8640 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
8641 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8643 for x in $rpathdirs; do
8644 if test "X$x" = "X$found_dir"; then
8649 if test -z "$haveit"; then
8650 rpathdirs="$rpathdirs $found_dir"
8654 for x in $LDFLAGS $LIBINTL; do
8656 acl_save_prefix="$prefix"
8657 prefix="$acl_final_prefix"
8658 acl_save_exec_prefix="$exec_prefix"
8659 exec_prefix="$acl_final_exec_prefix"
8661 exec_prefix="$acl_save_exec_prefix"
8662 prefix="$acl_save_prefix"
8664 if test "X$x" = "X-L$found_dir"; then
8669 if test -z "$haveit"; then
8670 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
8672 if test "$hardcode_minus_L" != no; then
8673 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8675 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
8681 if test "X$found_a" != "X"; then
8682 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
8684 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
8687 additional_includedir=
8688 case "$found_dir" in
8690 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
8691 additional_includedir="$basedir/include"
8694 if test "X$additional_includedir" != "X"; then
8695 if test "X$additional_includedir" != "X/usr/include"; then
8697 if test "X$additional_includedir" = "X/usr/local/include"; then
8698 if test -n "$GCC"; then
8700 linux*) haveit=yes;;
8704 if test -z "$haveit"; then
8705 for x in $CPPFLAGS $INCINTL; do
8707 acl_save_prefix="$prefix"
8708 prefix="$acl_final_prefix"
8709 acl_save_exec_prefix="$exec_prefix"
8710 exec_prefix="$acl_final_exec_prefix"
8712 exec_prefix="$acl_save_exec_prefix"
8713 prefix="$acl_save_prefix"
8715 if test "X$x" = "X-I$additional_includedir"; then
8720 if test -z "$haveit"; then
8721 if test -d "$additional_includedir"; then
8722 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
8728 if test -n "$found_la"; then
8729 save_libdir="$libdir"
8731 */* | *\\*) . "$found_la" ;;
8732 *) . "./$found_la" ;;
8734 libdir="$save_libdir"
8735 for dep in $dependency_libs; do
8738 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8739 if test "X$additional_libdir" != "X/usr/lib"; then
8741 if test "X$additional_libdir" = "X/usr/local/lib"; then
8742 if test -n "$GCC"; then
8744 linux*) haveit=yes;;
8748 if test -z "$haveit"; then
8750 for x in $LDFLAGS $LIBINTL; do
8752 acl_save_prefix="$prefix"
8753 prefix="$acl_final_prefix"
8754 acl_save_exec_prefix="$exec_prefix"
8755 exec_prefix="$acl_final_exec_prefix"
8757 exec_prefix="$acl_save_exec_prefix"
8758 prefix="$acl_save_prefix"
8760 if test "X$x" = "X-L$additional_libdir"; then
8765 if test -z "$haveit"; then
8766 if test -d "$additional_libdir"; then
8767 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
8771 for x in $LDFLAGS $LTLIBINTL; do
8773 acl_save_prefix="$prefix"
8774 prefix="$acl_final_prefix"
8775 acl_save_exec_prefix="$exec_prefix"
8776 exec_prefix="$acl_final_exec_prefix"
8778 exec_prefix="$acl_save_exec_prefix"
8779 prefix="$acl_save_prefix"
8781 if test "X$x" = "X-L$additional_libdir"; then
8786 if test -z "$haveit"; then
8787 if test -d "$additional_libdir"; then
8788 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
8795 dir=`echo "X$dep" | sed -e 's/^X-R//'`
8796 if test "$enable_rpath" != no; then
8798 for x in $rpathdirs; do
8799 if test "X$x" = "X$dir"; then
8804 if test -z "$haveit"; then
8805 rpathdirs="$rpathdirs $dir"
8808 for x in $ltrpathdirs; do
8809 if test "X$x" = "X$dir"; then
8814 if test -z "$haveit"; then
8815 ltrpathdirs="$ltrpathdirs $dir"
8820 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8823 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8826 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
8827 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
8833 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
8834 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
8840 if test "X$rpathdirs" != "X"; then
8841 if test -n "$hardcode_libdir_separator"; then
8843 for found_dir in $rpathdirs; do
8844 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8846 acl_save_libdir="$libdir"
8848 eval flag=\"$hardcode_libdir_flag_spec\"
8849 libdir="$acl_save_libdir"
8850 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
8852 for found_dir in $rpathdirs; do
8853 acl_save_libdir="$libdir"
8855 eval flag=\"$hardcode_libdir_flag_spec\"
8856 libdir="$acl_save_libdir"
8857 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
8861 if test "X$ltrpathdirs" != "X"; then
8862 for found_dir in $ltrpathdirs; do
8863 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
8867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
8868 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
8869 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then :
8870 $as_echo_n "(cached) " >&6
8872 gt_save_CPPFLAGS="$CPPFLAGS"
8873 CPPFLAGS="$CPPFLAGS $INCINTL"
8874 gt_save_LIBS="$LIBS"
8875 LIBS="$LIBS $LIBINTL"
8876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8877 /* end confdefs.h. */
8878 #include <libintl.h>
8879 extern int _nl_msg_cat_cntr;
8884 const char *_nl_expand_alias ();
8888 bindtextdomain ("", "");
8889 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
8894 if ac_fn_c_try_link "$LINENO"; then :
8895 gt_cv_func_gnugettext1_libintl=yes
8897 gt_cv_func_gnugettext1_libintl=no
8899 rm -f core conftest.err conftest.$ac_objext \
8900 conftest$ac_exeext conftest.$ac_ext
8901 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
8902 LIBS="$LIBS $LIBICONV"
8903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8904 /* end confdefs.h. */
8905 #include <libintl.h>
8906 extern int _nl_msg_cat_cntr;
8911 const char *_nl_expand_alias ();
8915 bindtextdomain ("", "");
8916 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
8921 if ac_fn_c_try_link "$LINENO"; then :
8922 LIBINTL="$LIBINTL $LIBICONV"
8923 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
8924 gt_cv_func_gnugettext1_libintl=yes
8927 rm -f core conftest.err conftest.$ac_objext \
8928 conftest$ac_exeext conftest.$ac_ext
8930 CPPFLAGS="$gt_save_CPPFLAGS"
8931 LIBS="$gt_save_LIBS"
8933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
8934 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
8937 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
8938 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
8939 && test "$PACKAGE" != gettext-runtime \
8940 && test "$PACKAGE" != gettext-tools; }; then
8941 gt_use_preinstalled_gnugettext=yes
8949 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
8950 nls_cv_use_gnu_gettext=yes
8954 if test "$nls_cv_use_gnu_gettext" = "yes"; then
8955 BUILD_INCLUDED_LIBINTL=yes
8956 USE_INCLUDED_LIBINTL=yes
8957 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
8958 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
8959 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
8962 if test "$gt_use_preinstalled_gnugettext" = "yes" \
8963 || test "$nls_cv_use_gnu_gettext" = "yes"; then
8968 if test "$gt_use_preinstalled_gnugettext" = "yes" \
8969 || test "$nls_cv_use_gnu_gettext" = "yes"; then
8971 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
8978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
8979 $as_echo_n "checking whether to use NLS... " >&6; }
8980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
8981 $as_echo "$USE_NLS" >&6; }
8982 if test "$USE_NLS" = "yes"; then
8983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
8984 $as_echo_n "checking where the gettext function comes from... " >&6; }
8985 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
8986 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
8987 gt_source="external libintl"
8992 gt_source="included intl directory"
8994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
8995 $as_echo "$gt_source" >&6; }
8998 if test "$USE_NLS" = "yes"; then
9000 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
9001 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
9002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
9003 $as_echo_n "checking how to link with libintl... " >&6; }
9004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
9005 $as_echo "$LIBINTL" >&6; }
9007 for element in $INCINTL; do
9009 for x in $CPPFLAGS; do
9011 acl_save_prefix="$prefix"
9012 prefix="$acl_final_prefix"
9013 acl_save_exec_prefix="$exec_prefix"
9014 exec_prefix="$acl_final_exec_prefix"
9016 exec_prefix="$acl_save_exec_prefix"
9017 prefix="$acl_save_prefix"
9019 if test "X$x" = "X$element"; then
9024 if test -z "$haveit"; then
9025 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9032 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
9035 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
9043 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
9044 BUILD_INCLUDED_LIBINTL=yes
9052 nls_cv_header_libgt=
9063 if test "$USE_INCLUDED_LIBINTL" = yes; then
9064 INTLOBJS="\$(GETTOBJS)"
9068 INTL_LIBTOOL_SUFFIX_PREFIX=
9080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9081 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
9083 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
9084 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
9085 $as_echo_n "(cached) " >&6
9087 cat >conftest.make <<\_ACEOF
9090 @echo '@@@%%%=$(MAKE)=@@@%%%'
9092 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9093 case `${MAKE-make} -f conftest.make 2>/dev/null` in
9095 eval ac_cv_prog_make_${ac_make}_set=yes;;
9097 eval ac_cv_prog_make_${ac_make}_set=no;;
9101 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9103 $as_echo "yes" >&6; }
9106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9107 $as_echo "no" >&6; }
9108 SET_MAKE="MAKE=${MAKE-make}"
9111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5
9112 $as_echo_n "checking for GNU make... " >&6; }
9113 if test "${_cv_gnu_make_command+set}" = set; then :
9114 $as_echo_n "(cached) " >&6
9116 _cv_gnu_make_command='' ;
9117 for a in "$MAKE" make gmake gnumake ; do
9118 if test -z "$a" ; then continue ; fi ;
9119 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
9120 _cv_gnu_make_command=$a ;
9126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_cv_gnu_make_command" >&5
9127 $as_echo "$_cv_gnu_make_command" >&6; } ;
9128 if test "x$_cv_gnu_make_command" != "x" ; then
9134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"Not found\"" >&5
9135 $as_echo "\"Not found\"" >&6; };
9140 # Extract the first word of "ln", so it can be a program name with args.
9141 set dummy ln; ac_word=$2
9142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9143 $as_echo_n "checking for $ac_word... " >&6; }
9144 if test "${ac_cv_path_LN+set}" = set; then :
9145 $as_echo_n "(cached) " >&6
9149 ac_cv_path_LN="$LN" # Let the user override the test with a path.
9152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9156 test -z "$as_dir" && as_dir=.
9157 for ac_exec_ext in '' $ac_executable_extensions; do
9158 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9159 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
9160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9167 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
9172 if test -n "$LN"; then
9173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
9174 $as_echo "$LN" >&6; }
9176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9177 $as_echo "no" >&6; }
9181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
9182 $as_echo_n "checking whether ln -s works... " >&6; }
9184 if test "$LN_S" = "ln -s"; then
9185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9186 $as_echo "yes" >&6; }
9188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
9189 $as_echo "no, using $LN_S" >&6; }
9192 # Extract the first word of "mv", so it can be a program name with args.
9193 set dummy mv; ac_word=$2
9194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9195 $as_echo_n "checking for $ac_word... " >&6; }
9196 if test "${ac_cv_path_MV+set}" = set; then :
9197 $as_echo_n "(cached) " >&6
9201 ac_cv_path_MV="$MV" # Let the user override the test with a path.
9204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9208 test -z "$as_dir" && as_dir=.
9209 for ac_exec_ext in '' $ac_executable_extensions; do
9210 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9211 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
9212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9219 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
9224 if test -n "$MV"; then
9225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
9226 $as_echo "$MV" >&6; }
9228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9229 $as_echo "no" >&6; }
9233 # Extract the first word of "cp", so it can be a program name with args.
9234 set dummy cp; ac_word=$2
9235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9236 $as_echo_n "checking for $ac_word... " >&6; }
9237 if test "${ac_cv_path_CP+set}" = set; then :
9238 $as_echo_n "(cached) " >&6
9242 ac_cv_path_CP="$CP" # Let the user override the test with a path.
9245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9249 test -z "$as_dir" && as_dir=.
9250 for ac_exec_ext in '' $ac_executable_extensions; do
9251 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9252 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
9253 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9260 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
9265 if test -n "$CP"; then
9266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
9267 $as_echo "$CP" >&6; }
9269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9270 $as_echo "no" >&6; }
9274 # Extract the first word of "rm", so it can be a program name with args.
9275 set dummy rm; ac_word=$2
9276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9277 $as_echo_n "checking for $ac_word... " >&6; }
9278 if test "${ac_cv_path_RM+set}" = set; then :
9279 $as_echo_n "(cached) " >&6
9283 ac_cv_path_RM="$RM" # Let the user override the test with a path.
9286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9290 test -z "$as_dir" && as_dir=.
9291 for ac_exec_ext in '' $ac_executable_extensions; do
9292 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9293 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
9294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9301 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
9306 if test -n "$RM"; then
9307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
9308 $as_echo "$RM" >&6; }
9310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9311 $as_echo "no" >&6; }
9315 # Extract the first word of "chmod", so it can be a program name with args.
9316 set dummy chmod; ac_word=$2
9317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9318 $as_echo_n "checking for $ac_word... " >&6; }
9319 if test "${ac_cv_path_CHMOD+set}" = set; then :
9320 $as_echo_n "(cached) " >&6
9324 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
9327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9331 test -z "$as_dir" && as_dir=.
9332 for ac_exec_ext in '' $ac_executable_extensions; do
9333 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9334 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
9335 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9342 test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
9346 CHMOD=$ac_cv_path_CHMOD
9347 if test -n "$CHMOD"; then
9348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
9349 $as_echo "$CHMOD" >&6; }
9351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9352 $as_echo "no" >&6; }
9356 for ac_prog in gawk mawk nawk awk
9358 # Extract the first word of "$ac_prog", so it can be a program name with args.
9359 set dummy $ac_prog; ac_word=$2
9360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9361 $as_echo_n "checking for $ac_word... " >&6; }
9362 if test "${ac_cv_prog_AWK+set}" = set; then :
9363 $as_echo_n "(cached) " >&6
9365 if test -n "$AWK"; then
9366 ac_cv_prog_AWK="$AWK" # Let the user override the test.
9368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9372 test -z "$as_dir" && as_dir=.
9373 for ac_exec_ext in '' $ac_executable_extensions; do
9374 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9375 ac_cv_prog_AWK="$ac_prog"
9376 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9386 if test -n "$AWK"; then
9387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
9388 $as_echo "$AWK" >&6; }
9390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9391 $as_echo "no" >&6; }
9395 test -n "$AWK" && break
9398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
9399 $as_echo_n "checking for egrep... " >&6; }
9400 if test "${ac_cv_path_EGREP+set}" = set; then :
9401 $as_echo_n "(cached) " >&6
9403 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
9404 then ac_cv_path_EGREP="$GREP -E"
9406 if test -z "$EGREP"; then
9407 ac_path_EGREP_found=false
9408 # Loop through the user's path and test for each of PROGNAME-LIST
9409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9410 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
9413 test -z "$as_dir" && as_dir=.
9414 for ac_prog in egrep; do
9415 for ac_exec_ext in '' $ac_executable_extensions; do
9416 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
9417 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
9418 # Check for GNU ac_path_EGREP and select it if it is found.
9419 # Check for GNU $ac_path_EGREP
9420 case `"$ac_path_EGREP" --version 2>&1` in
9422 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
9425 $as_echo_n 0123456789 >"conftest.in"
9428 cat "conftest.in" "conftest.in" >"conftest.tmp"
9429 mv "conftest.tmp" "conftest.in"
9430 cp "conftest.in" "conftest.nl"
9431 $as_echo 'EGREP' >> "conftest.nl"
9432 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
9433 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
9434 as_fn_arith $ac_count + 1 && ac_count=$as_val
9435 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
9436 # Best one so far, save it but keep looking for a better one
9437 ac_cv_path_EGREP="$ac_path_EGREP"
9438 ac_path_EGREP_max=$ac_count
9440 # 10*(2^10) chars as input seems more than enough
9441 test $ac_count -gt 10 && break
9443 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
9446 $ac_path_EGREP_found && break 3
9451 if test -z "$ac_cv_path_EGREP"; then
9452 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
9455 ac_cv_path_EGREP=$EGREP
9460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
9461 $as_echo "$ac_cv_path_EGREP" >&6; }
9462 EGREP="$ac_cv_path_EGREP"
9465 # Extract the first word of "sed", so it can be a program name with args.
9466 set dummy sed; ac_word=$2
9467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9468 $as_echo_n "checking for $ac_word... " >&6; }
9469 if test "${ac_cv_path_SED+set}" = set; then :
9470 $as_echo_n "(cached) " >&6
9474 ac_cv_path_SED="$SED" # Let the user override the test with a path.
9477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9481 test -z "$as_dir" && as_dir=.
9482 for ac_exec_ext in '' $ac_executable_extensions; do
9483 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9484 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
9485 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9492 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
9497 if test -n "$SED"; then
9498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
9499 $as_echo "$SED" >&6; }
9501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9502 $as_echo "no" >&6; }
9506 # Extract the first word of "perl", so it can be a program name with args.
9507 set dummy perl; ac_word=$2
9508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9509 $as_echo_n "checking for $ac_word... " >&6; }
9510 if test "${ac_cv_path_PERL+set}" = set; then :
9511 $as_echo_n "(cached) " >&6
9515 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
9518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9522 test -z "$as_dir" && as_dir=.
9523 for ac_exec_ext in '' $ac_executable_extensions; do
9524 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9525 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
9526 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9533 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
9537 PERL=$ac_cv_path_PERL
9538 if test -n "$PERL"; then
9539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
9540 $as_echo "$PERL" >&6; }
9542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9543 $as_echo "no" >&6; }
9547 # Extract the first word of "ldconfig", so it can be a program name with args.
9548 set dummy ldconfig; ac_word=$2
9549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9550 $as_echo_n "checking for $ac_word... " >&6; }
9551 if test "${ac_cv_path_LDCONFIG+set}" = set; then :
9552 $as_echo_n "(cached) " >&6
9556 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
9559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9563 test -z "$as_dir" && as_dir=.
9564 for ac_exec_ext in '' $ac_executable_extensions; do
9565 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9566 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
9567 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9574 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
9578 LDCONFIG=$ac_cv_path_LDCONFIG
9579 if test -n "$LDCONFIG"; then
9580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
9581 $as_echo "$LDCONFIG" >&6; }
9583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9584 $as_echo "no" >&6; }
9588 if test -n "$ac_tool_prefix"; then
9589 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
9590 set dummy ${ac_tool_prefix}ar; ac_word=$2
9591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9592 $as_echo_n "checking for $ac_word... " >&6; }
9593 if test "${ac_cv_prog_AR+set}" = set; then :
9594 $as_echo_n "(cached) " >&6
9596 if test -n "$AR"; then
9597 ac_cv_prog_AR="$AR" # Let the user override the test.
9599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9603 test -z "$as_dir" && as_dir=.
9604 for ac_exec_ext in '' $ac_executable_extensions; do
9605 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9606 ac_cv_prog_AR="${ac_tool_prefix}ar"
9607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9617 if test -n "$AR"; then
9618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
9619 $as_echo "$AR" >&6; }
9621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9622 $as_echo "no" >&6; }
9627 if test -z "$ac_cv_prog_AR"; then
9629 # Extract the first word of "ar", so it can be a program name with args.
9630 set dummy ar; ac_word=$2
9631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9632 $as_echo_n "checking for $ac_word... " >&6; }
9633 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
9634 $as_echo_n "(cached) " >&6
9636 if test -n "$ac_ct_AR"; then
9637 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
9639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9643 test -z "$as_dir" && as_dir=.
9644 for ac_exec_ext in '' $ac_executable_extensions; do
9645 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9646 ac_cv_prog_ac_ct_AR="ar"
9647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9656 ac_ct_AR=$ac_cv_prog_ac_ct_AR
9657 if test -n "$ac_ct_AR"; then
9658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
9659 $as_echo "$ac_ct_AR" >&6; }
9661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9662 $as_echo "no" >&6; }
9665 if test "x$ac_ct_AR" = x; then
9668 case $cross_compiling:$ac_tool_warned in
9670 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9671 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9672 ac_tool_warned=yes ;;
9680 if test -n "$ac_tool_prefix"; then
9681 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
9682 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
9683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9684 $as_echo_n "checking for $ac_word... " >&6; }
9685 if test "${ac_cv_prog_RANLIB+set}" = set; then :
9686 $as_echo_n "(cached) " >&6
9688 if test -n "$RANLIB"; then
9689 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9695 test -z "$as_dir" && as_dir=.
9696 for ac_exec_ext in '' $ac_executable_extensions; do
9697 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9698 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
9699 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9708 RANLIB=$ac_cv_prog_RANLIB
9709 if test -n "$RANLIB"; then
9710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9711 $as_echo "$RANLIB" >&6; }
9713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9714 $as_echo "no" >&6; }
9719 if test -z "$ac_cv_prog_RANLIB"; then
9720 ac_ct_RANLIB=$RANLIB
9721 # Extract the first word of "ranlib", so it can be a program name with args.
9722 set dummy ranlib; ac_word=$2
9723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9724 $as_echo_n "checking for $ac_word... " >&6; }
9725 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
9726 $as_echo_n "(cached) " >&6
9728 if test -n "$ac_ct_RANLIB"; then
9729 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9735 test -z "$as_dir" && as_dir=.
9736 for ac_exec_ext in '' $ac_executable_extensions; do
9737 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9738 ac_cv_prog_ac_ct_RANLIB="ranlib"
9739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9748 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
9749 if test -n "$ac_ct_RANLIB"; then
9750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
9751 $as_echo "$ac_ct_RANLIB" >&6; }
9753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9754 $as_echo "no" >&6; }
9757 if test "x$ac_ct_RANLIB" = x; then
9760 case $cross_compiling:$ac_tool_warned in
9762 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9763 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9764 ac_tool_warned=yes ;;
9766 RANLIB=$ac_ct_RANLIB
9769 RANLIB="$ac_cv_prog_RANLIB"
9772 if test -n "$ac_tool_prefix"; then
9773 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
9774 set dummy ${ac_tool_prefix}strip; ac_word=$2
9775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9776 $as_echo_n "checking for $ac_word... " >&6; }
9777 if test "${ac_cv_prog_STRIP+set}" = set; then :
9778 $as_echo_n "(cached) " >&6
9780 if test -n "$STRIP"; then
9781 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9787 test -z "$as_dir" && as_dir=.
9788 for ac_exec_ext in '' $ac_executable_extensions; do
9789 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9790 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
9791 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9800 STRIP=$ac_cv_prog_STRIP
9801 if test -n "$STRIP"; then
9802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9803 $as_echo "$STRIP" >&6; }
9805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9806 $as_echo "no" >&6; }
9811 if test -z "$ac_cv_prog_STRIP"; then
9813 # Extract the first word of "strip", so it can be a program name with args.
9814 set dummy strip; ac_word=$2
9815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9816 $as_echo_n "checking for $ac_word... " >&6; }
9817 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
9818 $as_echo_n "(cached) " >&6
9820 if test -n "$ac_ct_STRIP"; then
9821 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
9823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9827 test -z "$as_dir" && as_dir=.
9828 for ac_exec_ext in '' $ac_executable_extensions; do
9829 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9830 ac_cv_prog_ac_ct_STRIP="strip"
9831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9840 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
9841 if test -n "$ac_ct_STRIP"; then
9842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
9843 $as_echo "$ac_ct_STRIP" >&6; }
9845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9846 $as_echo "no" >&6; }
9849 if test "x$ac_ct_STRIP" = x; then
9852 case $cross_compiling:$ac_tool_warned in
9854 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9855 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9856 ac_tool_warned=yes ;;
9861 STRIP="$ac_cv_prog_STRIP"
9864 # Extract the first word of "makeinfo", so it can be a program name with args.
9865 set dummy makeinfo; ac_word=$2
9866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9867 $as_echo_n "checking for $ac_word... " >&6; }
9868 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
9869 $as_echo_n "(cached) " >&6
9871 if test -n "$MAKEINFO"; then
9872 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
9874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9878 test -z "$as_dir" && as_dir=.
9879 for ac_exec_ext in '' $ac_executable_extensions; do
9880 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9881 ac_cv_prog_MAKEINFO="makeinfo"
9882 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9891 MAKEINFO=$ac_cv_prog_MAKEINFO
9892 if test -n "$MAKEINFO"; then
9893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
9894 $as_echo "$MAKEINFO" >&6; }
9896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9897 $as_echo "no" >&6; }
9901 if test "_$MAKEINFO" = "_"; then
9902 MAKEINFO="@echo Makeinfo is missing. Info documentation will not be built.;true"
9906 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
9907 *** Makeinfo is missing. Info documentation will not be built." >&5
9908 $as_echo "$as_me: WARNING:
9909 *** Makeinfo is missing. Info documentation will not be built." >&2;}
9917 # See if we need a separate native compiler.
9918 if test $cross_compiling = no; then
9922 for ac_prog in gcc cc
9924 # Extract the first word of "$ac_prog", so it can be a program name with args.
9925 set dummy $ac_prog; ac_word=$2
9926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9927 $as_echo_n "checking for $ac_word... " >&6; }
9928 if test "${ac_cv_prog_BUILD_CC+set}" = set; then :
9929 $as_echo_n "(cached) " >&6
9931 if test -n "$BUILD_CC"; then
9932 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
9934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9938 test -z "$as_dir" && as_dir=.
9939 for ac_exec_ext in '' $ac_executable_extensions; do
9940 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9941 ac_cv_prog_BUILD_CC="$ac_prog"
9942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9951 BUILD_CC=$ac_cv_prog_BUILD_CC
9952 if test -n "$BUILD_CC"; then
9953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
9954 $as_echo "$BUILD_CC" >&6; }
9956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9957 $as_echo "no" >&6; }
9961 test -n "$BUILD_CC" && break
9965 for ac_header in dirent.h errno.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/fd.h linux/major.h net/if_dl.h netinet/in.h sys/disklabel.h sys/file.h sys/ioctl.h sys/mkdev.h sys/mman.h sys/prctl.h sys/queue.h sys/resource.h sys/select.h sys/socket.h sys/sockio.h sys/stat.h sys/syscall.h sys/sysmacros.h sys/time.h sys/types.h sys/un.h sys/wait.h
9967 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9968 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9969 eval as_val=\$$as_ac_Header
9970 if test "x$as_val" = x""yes; then :
9971 cat >>confdefs.h <<_ACEOF
9972 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9979 for ac_header in sys/disk.h sys/mount.h
9981 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9982 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
9983 #if HAVE_SYS_QUEUE_H
9984 #include <sys/queue.h>
9988 eval as_val=\$$as_ac_Header
9989 if test "x$as_val" = x""yes; then :
9990 cat >>confdefs.h <<_ACEOF
9991 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9998 for ac_header in net/if.h
10000 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
10001 #if HAVE_SYS_TYPES_H
10002 #include <sys/types.h>
10004 #if HAVE_SYS_SOCKET
10005 #include <sys/socket.h>
10009 if test "x$ac_cv_header_net_if_h" = x""yes; then :
10010 cat >>confdefs.h <<_ACEOF
10011 #define HAVE_NET_IF_H 1
10018 for ac_func in vprintf
10020 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
10021 if test "x$ac_cv_func_vprintf" = x""yes; then :
10022 cat >>confdefs.h <<_ACEOF
10023 #define HAVE_VPRINTF 1
10026 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
10027 if test "x$ac_cv_func__doprnt" = x""yes; then :
10029 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
10037 ac_fn_c_check_member "$LINENO" "struct dirent" "d_reclen" "ac_cv_member_struct_dirent_d_reclen" "#include <dirent.h>
10039 if test "x$ac_cv_member_struct_dirent_d_reclen" = x""yes; then :
10040 $as_echo "#define HAVE_RECLEN_DIRENT 1" >>confdefs.h
10044 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "#include <sys/types.h>
10046 if test "x$ac_cv_type_ssize_t" = x""yes; then :
10047 $as_echo "#define HAVE_TYPE_SSIZE_T 1" >>confdefs.h
10051 ac_fn_c_check_decl "$LINENO" "llseek" "ac_cv_have_decl_llseek" "#include <unistd.h>
10053 if test "x$ac_cv_have_decl_llseek" = x""yes; then :
10054 $as_echo "#define HAVE_LLSEEK_PROTOTYPE 1" >>confdefs.h
10058 ac_fn_c_check_decl "$LINENO" "lseek64" "ac_cv_have_decl_lseek64" "#define _LARGEFILE_SOURCE
10059 #define _LARGEFILE64_SOURCE
10060 #include <unistd.h>
10062 if test "x$ac_cv_have_decl_lseek64" = x""yes; then :
10063 $as_echo "#define HAVE_LSEEK64_PROTOTYPE 1" >>confdefs.h
10067 # The cast to long int works around a bug in the HP C Compiler
10068 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10069 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10070 # This bug is HP SR number 8606223364.
10071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
10072 $as_echo_n "checking size of short... " >&6; }
10073 if test "${ac_cv_sizeof_short+set}" = set; then :
10074 $as_echo_n "(cached) " >&6
10076 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
10079 if test "$ac_cv_type_short" = yes; then
10080 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10081 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10082 { as_fn_set_status 77
10083 as_fn_error "cannot compute sizeof (short)
10084 See \`config.log' for more details." "$LINENO" 5; }; }
10086 ac_cv_sizeof_short=0
10091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
10092 $as_echo "$ac_cv_sizeof_short" >&6; }
10096 cat >>confdefs.h <<_ACEOF
10097 #define SIZEOF_SHORT $ac_cv_sizeof_short
10101 # The cast to long int works around a bug in the HP C Compiler
10102 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10103 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10104 # This bug is HP SR number 8606223364.
10105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
10106 $as_echo_n "checking size of int... " >&6; }
10107 if test "${ac_cv_sizeof_int+set}" = set; then :
10108 $as_echo_n "(cached) " >&6
10110 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
10113 if test "$ac_cv_type_int" = yes; then
10114 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10115 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10116 { as_fn_set_status 77
10117 as_fn_error "cannot compute sizeof (int)
10118 See \`config.log' for more details." "$LINENO" 5; }; }
10125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
10126 $as_echo "$ac_cv_sizeof_int" >&6; }
10130 cat >>confdefs.h <<_ACEOF
10131 #define SIZEOF_INT $ac_cv_sizeof_int
10135 # The cast to long int works around a bug in the HP C Compiler
10136 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10137 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10138 # This bug is HP SR number 8606223364.
10139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
10140 $as_echo_n "checking size of long... " >&6; }
10141 if test "${ac_cv_sizeof_long+set}" = set; then :
10142 $as_echo_n "(cached) " >&6
10144 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
10147 if test "$ac_cv_type_long" = yes; then
10148 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10149 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10150 { as_fn_set_status 77
10151 as_fn_error "cannot compute sizeof (long)
10152 See \`config.log' for more details." "$LINENO" 5; }; }
10154 ac_cv_sizeof_long=0
10159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
10160 $as_echo "$ac_cv_sizeof_long" >&6; }
10164 cat >>confdefs.h <<_ACEOF
10165 #define SIZEOF_LONG $ac_cv_sizeof_long
10169 # The cast to long int works around a bug in the HP C Compiler
10170 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10171 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10172 # This bug is HP SR number 8606223364.
10173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
10174 $as_echo_n "checking size of long long... " >&6; }
10175 if test "${ac_cv_sizeof_long_long+set}" = set; then :
10176 $as_echo_n "(cached) " >&6
10178 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
10181 if test "$ac_cv_type_long_long" = yes; then
10182 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10183 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10184 { as_fn_set_status 77
10185 as_fn_error "cannot compute sizeof (long long)
10186 See \`config.log' for more details." "$LINENO" 5; }; }
10188 ac_cv_sizeof_long_long=0
10193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
10194 $as_echo "$ac_cv_sizeof_long_long" >&6; }
10198 cat >>confdefs.h <<_ACEOF
10199 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10203 SIZEOF_SHORT=$ac_cv_sizeof_short
10204 SIZEOF_INT=$ac_cv_sizeof_int
10205 SIZEOF_LONG=$ac_cv_sizeof_long
10206 SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
10211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
10212 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
10213 if test "${ac_cv_c_bigendian+set}" = set; then :
10214 $as_echo_n "(cached) " >&6
10216 ac_cv_c_bigendian=unknown
10217 # See if we're dealing with a universal compiler.
10218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10219 /* end confdefs.h. */
10220 #ifndef __APPLE_CC__
10221 not a universal capable compiler
10226 if ac_fn_c_try_compile "$LINENO"; then :
10228 # Check for potential -arch flags. It is not universal unless
10229 # there are at least two -arch flags with different values.
10232 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
10233 if test -n "$ac_prev"; then
10235 i?86 | x86_64 | ppc | ppc64)
10236 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
10239 ac_cv_c_bigendian=universal
10245 elif test "x$ac_word" = "x-arch"; then
10250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10251 if test $ac_cv_c_bigendian = unknown; then
10252 # See if sys/param.h defines the BYTE_ORDER macro.
10253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10254 /* end confdefs.h. */
10255 #include <sys/types.h>
10256 #include <sys/param.h>
10261 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
10262 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
10264 bogus endian macros
10271 if ac_fn_c_try_compile "$LINENO"; then :
10272 # It does; now see whether it defined to BIG_ENDIAN or not.
10273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10274 /* end confdefs.h. */
10275 #include <sys/types.h>
10276 #include <sys/param.h>
10281 #if BYTE_ORDER != BIG_ENDIAN
10289 if ac_fn_c_try_compile "$LINENO"; then :
10290 ac_cv_c_bigendian=yes
10292 ac_cv_c_bigendian=no
10294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10298 if test $ac_cv_c_bigendian = unknown; then
10299 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
10300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10301 /* end confdefs.h. */
10302 #include <limits.h>
10307 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
10308 bogus endian macros
10315 if ac_fn_c_try_compile "$LINENO"; then :
10316 # It does; now see whether it defined to _BIG_ENDIAN or not.
10317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10318 /* end confdefs.h. */
10319 #include <limits.h>
10324 #ifndef _BIG_ENDIAN
10332 if ac_fn_c_try_compile "$LINENO"; then :
10333 ac_cv_c_bigendian=yes
10335 ac_cv_c_bigendian=no
10337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10341 if test $ac_cv_c_bigendian = unknown; then
10342 # Compile a test program.
10343 if test "$cross_compiling" = yes; then :
10344 # Try to guess by grepping values from an object file.
10345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10346 /* end confdefs.h. */
10347 short int ascii_mm[] =
10348 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
10349 short int ascii_ii[] =
10350 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
10351 int use_ascii (int i) {
10352 return ascii_mm[i] + ascii_ii[i];
10354 short int ebcdic_ii[] =
10355 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
10356 short int ebcdic_mm[] =
10357 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
10358 int use_ebcdic (int i) {
10359 return ebcdic_mm[i] + ebcdic_ii[i];
10366 return use_ascii (foo) == use_ebcdic (foo);
10371 if ac_fn_c_try_compile "$LINENO"; then :
10372 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
10373 ac_cv_c_bigendian=yes
10375 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
10376 if test "$ac_cv_c_bigendian" = unknown; then
10377 ac_cv_c_bigendian=no
10379 # finding both strings is unlikely to happen, but who knows?
10380 ac_cv_c_bigendian=unknown
10384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10387 /* end confdefs.h. */
10388 $ac_includes_default
10393 /* Are we little or big endian? From Harbison&Steele. */
10397 char c[sizeof (long int)];
10400 return u.c[sizeof (long int) - 1] == 1;
10406 if ac_fn_c_try_run "$LINENO"; then :
10407 ac_cv_c_bigendian=no
10409 ac_cv_c_bigendian=yes
10411 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10412 conftest.$ac_objext conftest.beam conftest.$ac_ext
10417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
10418 $as_echo "$ac_cv_c_bigendian" >&6; }
10419 case $ac_cv_c_bigendian in #(
10421 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
10427 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
10431 as_fn_error "unknown endianness
10432 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
10435 BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
10436 ASM_TYPES_HEADER=./asm_types.h
10438 echo "/* These defines are needed for the public ext2fs.h header file */" \
10440 if grep HAVE_SYS_TYPES_H confdefs.h > tmp_config.$$; then
10441 uniq tmp_config.$$ >> public_config.h
10443 echo "#undef HAVE_SYS_TYPES_H" >> public_config.h
10445 if grep WORDS_BIGENDIAN confdefs.h > tmp_config.$$; then
10446 uniq tmp_config.$$ >> public_config.h
10448 echo "#undef WORDS_BIGENDIAN" >> public_config.h
10450 rm -f tmp_config.$$
10451 PUBLIC_CONFIG_HEADER=./public_config.h
10453 for ac_header in inttypes.h
10455 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
10456 if test "x$ac_cv_header_inttypes_h" = x""yes; then :
10457 cat >>confdefs.h <<_ACEOF
10458 #define HAVE_INTTYPES_H 1
10465 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
10466 if test "x$ac_cv_type_intptr_t" = x""yes; then :
10468 cat >>confdefs.h <<_ACEOF
10469 #define HAVE_INTPTR_T 1
10475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat has a st_flags field" >&5
10476 $as_echo_n "checking whether struct stat has a st_flags field... " >&6; }
10477 if test "${e2fsprogs_cv_struct_st_flags+set}" = set; then :
10478 $as_echo_n "(cached) " >&6
10480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10481 /* end confdefs.h. */
10482 #include <sys/stat.h>
10486 struct stat stat; stat.st_flags = 0;
10491 if ac_fn_c_try_compile "$LINENO"; then :
10492 e2fsprogs_cv_struct_st_flags=yes
10494 e2fsprogs_cv_struct_st_flags=no
10496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags" >&5
10500 $as_echo "$e2fsprogs_cv_struct_st_flags" >&6; }
10501 if test "$e2fsprogs_cv_struct_st_flags" = yes; then
10502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether st_flags field is useful" >&5
10503 $as_echo_n "checking whether st_flags field is useful... " >&6; }
10504 if test "${e2fsprogs_cv_struct_st_flags_immut+set}" = set; then :
10505 $as_echo_n "(cached) " >&6
10507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10508 /* end confdefs.h. */
10509 #include <sys/stat.h>
10513 struct stat stat; stat.st_flags |= UF_IMMUTABLE;
10518 if ac_fn_c_try_compile "$LINENO"; then :
10519 e2fsprogs_cv_struct_st_flags_immut=yes
10521 e2fsprogs_cv_struct_st_flags_immut=no
10523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags_immut" >&5
10527 $as_echo "$e2fsprogs_cv_struct_st_flags_immut" >&6; }
10528 if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
10529 $as_echo "#define HAVE_STAT_FLAGS 1" >>confdefs.h
10533 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h>
10534 #include <sys/socket.h>
10536 if test "x$ac_cv_member_struct_sockaddr_sa_len" = x""yes; then :
10538 cat >>confdefs.h <<_ACEOF
10539 #define HAVE_SA_LEN 1
10544 if test -n "$BLKID_CMT"; then
10545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing blkid_probe_all" >&5
10546 $as_echo_n "checking for library containing blkid_probe_all... " >&6; }
10547 if test "${ac_cv_search_blkid_probe_all+set}" = set; then :
10548 $as_echo_n "(cached) " >&6
10550 ac_func_search_save_LIBS=$LIBS
10551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10552 /* end confdefs.h. */
10554 /* Override any GCC internal prototype to avoid an error.
10555 Use char because int might match the return type of a GCC
10556 builtin and then its argument prototype would still apply. */
10560 char blkid_probe_all ();
10564 return blkid_probe_all ();
10569 for ac_lib in '' blkid; do
10570 if test -z "$ac_lib"; then
10571 ac_res="none required"
10574 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10576 if ac_fn_c_try_link "$LINENO"; then :
10577 ac_cv_search_blkid_probe_all=$ac_res
10579 rm -f core conftest.err conftest.$ac_objext \
10581 if test "${ac_cv_search_blkid_probe_all+set}" = set; then :
10585 if test "${ac_cv_search_blkid_probe_all+set}" = set; then :
10588 ac_cv_search_blkid_probe_all=no
10590 rm conftest.$ac_ext
10591 LIBS=$ac_func_search_save_LIBS
10593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_blkid_probe_all" >&5
10594 $as_echo "$ac_cv_search_blkid_probe_all" >&6; }
10595 ac_res=$ac_cv_search_blkid_probe_all
10596 if test "$ac_res" != no; then :
10597 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10602 for ac_func in chflags getrusage llseek lseek64 open64 fstat64 ftruncate64 getmntinfo strtoull strcasecmp srandom jrand48 fchown mallinfo fdatasync strnlen strptime strdup sysconf pathconf posix_memalign memalign valloc __secure_getenv prctl mmap utime setresuid setresgid usleep nanosleep getdtablesize getrlimit blkid_probe_get_topology
10604 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10605 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10606 eval as_val=\$$as_ac_var
10607 if test "x$as_val" = x""yes; then :
10608 cat >>confdefs.h <<_ACEOF
10609 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
10617 $as_echo_n "checking for socket in -lsocket... " >&6; }
10618 if test "${ac_cv_lib_socket_socket+set}" = set; then :
10619 $as_echo_n "(cached) " >&6
10621 ac_check_lib_save_LIBS=$LIBS
10622 LIBS="-lsocket $LIBS"
10623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10624 /* end confdefs.h. */
10626 /* Override any GCC internal prototype to avoid an error.
10627 Use char because int might match the return type of a GCC
10628 builtin and then its argument prototype would still apply. */
10641 if ac_fn_c_try_link "$LINENO"; then :
10642 ac_cv_lib_socket_socket=yes
10644 ac_cv_lib_socket_socket=no
10646 rm -f core conftest.err conftest.$ac_objext \
10647 conftest$ac_exeext conftest.$ac_ext
10648 LIBS=$ac_check_lib_save_LIBS
10650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
10651 $as_echo "$ac_cv_lib_socket_socket" >&6; }
10652 if test "x$ac_cv_lib_socket_socket" = x""yes; then :
10653 SOCKET_LIB=-lsocket
10657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for optreset" >&5
10658 $as_echo_n "checking for optreset... " >&6; }
10659 if test "${ac_cv_have_optreset+set}" = set; then :
10660 $as_echo_n "(cached) " >&6
10662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10663 /* end confdefs.h. */
10664 #include <unistd.h>
10667 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10668 $EGREP "optreset" >/dev/null 2>&1; then :
10669 ac_cv_have_optreset=yes
10671 ac_cv_have_optreset=no
10676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_optreset" >&5
10677 $as_echo "$ac_cv_have_optreset" >&6; }
10678 if test $ac_cv_have_optreset = yes; then
10679 $as_echo "#define HAVE_OPTRESET 1" >>confdefs.h
10683 ac_fn_c_check_func "$LINENO" "sem_init" "ac_cv_func_sem_init"
10684 if test "x$ac_cv_func_sem_init" = x""yes; then :
10687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lpthread" >&5
10688 $as_echo_n "checking for sem_init in -lpthread... " >&6; }
10689 if test "${ac_cv_lib_pthread_sem_init+set}" = set; then :
10690 $as_echo_n "(cached) " >&6
10692 ac_check_lib_save_LIBS=$LIBS
10693 LIBS="-lpthread $LIBS"
10694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10695 /* end confdefs.h. */
10697 /* Override any GCC internal prototype to avoid an error.
10698 Use char because int might match the return type of a GCC
10699 builtin and then its argument prototype would still apply. */
10707 return sem_init ();
10712 if ac_fn_c_try_link "$LINENO"; then :
10713 ac_cv_lib_pthread_sem_init=yes
10715 ac_cv_lib_pthread_sem_init=no
10717 rm -f core conftest.err conftest.$ac_objext \
10718 conftest$ac_exeext conftest.$ac_ext
10719 LIBS=$ac_check_lib_save_LIBS
10721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_sem_init" >&5
10722 $as_echo "$ac_cv_lib_pthread_sem_init" >&6; }
10723 if test "x$ac_cv_lib_pthread_sem_init" = x""yes; then :
10724 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
10726 SEM_INIT_LIB=-lpthread
10728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lrt" >&5
10729 $as_echo_n "checking for sem_init in -lrt... " >&6; }
10730 if test "${ac_cv_lib_rt_sem_init+set}" = set; then :
10731 $as_echo_n "(cached) " >&6
10733 ac_check_lib_save_LIBS=$LIBS
10735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10736 /* end confdefs.h. */
10738 /* Override any GCC internal prototype to avoid an error.
10739 Use char because int might match the return type of a GCC
10740 builtin and then its argument prototype would still apply. */
10748 return sem_init ();
10753 if ac_fn_c_try_link "$LINENO"; then :
10754 ac_cv_lib_rt_sem_init=yes
10756 ac_cv_lib_rt_sem_init=no
10758 rm -f core conftest.err conftest.$ac_objext \
10759 conftest$ac_exeext conftest.$ac_ext
10760 LIBS=$ac_check_lib_save_LIBS
10762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sem_init" >&5
10763 $as_echo "$ac_cv_lib_rt_sem_init" >&6; }
10764 if test "x$ac_cv_lib_rt_sem_init" = x""yes; then :
10765 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
10769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lposix4" >&5
10770 $as_echo_n "checking for sem_init in -lposix4... " >&6; }
10771 if test "${ac_cv_lib_posix4_sem_init+set}" = set; then :
10772 $as_echo_n "(cached) " >&6
10774 ac_check_lib_save_LIBS=$LIBS
10775 LIBS="-lposix4 $LIBS"
10776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10777 /* end confdefs.h. */
10779 /* Override any GCC internal prototype to avoid an error.
10780 Use char because int might match the return type of a GCC
10781 builtin and then its argument prototype would still apply. */
10789 return sem_init ();
10794 if ac_fn_c_try_link "$LINENO"; then :
10795 ac_cv_lib_posix4_sem_init=yes
10797 ac_cv_lib_posix4_sem_init=no
10799 rm -f core conftest.err conftest.$ac_objext \
10800 conftest$ac_exeext conftest.$ac_ext
10801 LIBS=$ac_check_lib_save_LIBS
10803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sem_init" >&5
10804 $as_echo "$ac_cv_lib_posix4_sem_init" >&6; }
10805 if test "x$ac_cv_lib_posix4_sem_init" = x""yes; then :
10806 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
10808 SEM_INIT_LIB=-lposix4
10817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unified diff option" >&5
10818 $as_echo_n "checking for unified diff option... " >&6; }
10819 if diff -u $0 $0 > /dev/null 2>&1 ; then
10824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNI_DIFF_OPTS" >&5
10825 $as_echo "$UNI_DIFF_OPTS" >&6; }
10829 $as_echo "#define HAVE_EXT2_IOCTLS 1" >>confdefs.h
10849 linux* | gnu* | k*bsd*-gnu)
10850 if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
10852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, root_prefix defaults to ''" >&5
10853 $as_echo "On $host_os systems, root_prefix defaults to ''" >&6; }
10858 linux* | gnu* | k*bsd*-gnu)
10859 if test "$prefix" = NONE ; then
10861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, prefix defaults to /usr" >&5
10862 $as_echo "On $host_os systems, prefix defaults to /usr" >&6; }
10863 if test "$mandir" = '${prefix}/man' ; then
10864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ...and mandir defaults to /usr/share/man" >&5
10865 $as_echo "...and mandir defaults to /usr/share/man" >&6; }
10866 mandir=/usr/share/man
10871 if test "$root_prefix" = NONE ; then
10872 if test "$prefix" = NONE ; then
10873 root_prefix="$ac_default_prefix"
10875 root_prefix="$prefix"
10877 root_bindir=$bindir
10878 root_sbindir=$sbindir
10879 root_libdir=$libdir
10880 root_sysconfdir=$sysconfdir
10882 root_bindir='${root_prefix}/bin'
10883 root_sbindir='${root_prefix}/sbin'
10884 root_libdir='${root_prefix}/lib'
10885 root_sysconfdir='${root_prefix}/etc'
10887 if test "$bindir" != '${exec_prefix}/bin'; then
10888 root_bindir=$bindir
10889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_bindir to $root_bindir" >&5
10890 $as_echo "Setting root_bindir to $root_bindir" >&6; }
10892 if test "$sbindir" != '${exec_prefix}/sbin'; then
10893 root_sbindir=$sbindir
10894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sbindir to $root_sbindir" >&5
10895 $as_echo "Setting root_sbindir to $root_sbindir" >&6; }
10897 if test "$libdir" != '${exec_prefix}/lib'; then
10898 root_libdir=$libdir
10899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_libdir to $root_libdir" >&5
10900 $as_echo "Setting root_libdir to $root_libdir" >&6; }
10902 if test "$sysconfdir" != '${prefix}/etc'; then
10903 root_sysconfdir=$sysconfdir
10904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sysconfdir to $root_sysconfdir" >&5
10905 $as_echo "Setting root_sysconfdir to $root_sysconfdir" >&6; }
10912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linker accepts -static" >&5
10913 $as_echo_n "checking whether linker accepts -static... " >&6; }
10914 if test "${ac_cv_e2fsprogs_use_static+set}" = set; then :
10915 $as_echo_n "(cached) " >&6
10917 SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static"
10918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10919 /* end confdefs.h. */
10929 if ac_fn_c_try_link "$LINENO"; then :
10930 ac_cv_e2fsprogs_use_static=yes
10932 ac_cv_e2fsprogs_use_static=no
10934 rm -f core conftest.err conftest.$ac_objext \
10935 conftest$ac_exeext conftest.$ac_ext
10936 LDFLAGS=$SAVE_LDFLAGS
10941 ac_cv_e2fsprogs_use_static=no
10944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_e2fsprogs_use_static" >&5
10945 $as_echo "$ac_cv_e2fsprogs_use_static" >&6; }
10947 if test $ac_cv_e2fsprogs_use_static = yes; then
10948 LDFLAG_STATIC=-static
10953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using Apple Darwin / GNU libintl workaround" >&5
10954 $as_echo "Using Apple Darwin / GNU libintl workaround" >&6; }
10955 $as_echo "#define _INTL_REDIRECT_MACROS 1" >>confdefs.h
10959 SS_DIR=`cd ${srcdir}/lib/ss; pwd`
10960 ET_DIR=`cd ${srcdir}/lib/et; pwd`
10963 if test "$cross_compiling" = yes ; then
10966 DO_TEST_SUITE=check
10970 if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
10971 INTL_FLAGS='-I$(top_builddir)/intl -I$(top_srcdir)/intl'
10974 if test $cross_compiling = no; then
10975 BUILD_CFLAGS="$CFLAGS"
10976 BUILD_LDFLAGS="$LDFLAGS"
10983 test -d lib || mkdir lib
10984 test -d include || mkdir include
10985 test -d include/linux || mkdir include/linux
10986 test -d include/asm || mkdir include/asm
10987 for i in MCONFIG Makefile e2fsprogs.spec \
10988 util/Makefile util/subst.conf util/gen-tarball \
10989 lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \
10990 lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \
10991 lib/uuid/Makefile lib/uuid/uuid_types.h \
10992 lib/blkid/Makefile lib/blkid/blkid_types.h \
10993 lib/ss/ss.pc lib/uuid/uuid.pc lib/et/com_err.pc \
10994 lib/e2p/e2p.pc lib/blkid/blkid.pc lib/ext2fs/ext2fs.pc \
10995 misc/Makefile ext2ed/Makefile e2fsck/Makefile \
10996 debugfs/Makefile tests/Makefile tests/progs/Makefile \
10997 resize/Makefile doc/Makefile intl/Makefile \
10998 intl/libgnuintl.h po/Makefile.in ; do
10999 if test -d `dirname ${srcdir}/$i` ; then
11000 outlist="$outlist $i"
11003 ac_config_files="$ac_config_files $outlist"
11005 cat >confcache <<\_ACEOF
11006 # This file is a shell script that caches the results of configure
11007 # tests run on this system so they can be shared between configure
11008 # scripts and configure runs, see configure's option --config-cache.
11009 # It is not useful on other systems. If it contains results you don't
11010 # want to keep, you may remove or edit it.
11012 # config.status only pays attention to the cache file if you give it
11013 # the --recheck option to rerun configure.
11015 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11016 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11017 # following values.
11021 # The following way of writing the cache mishandles newlines in values,
11022 # but we know of no workaround that is simple, portable, and efficient.
11023 # So, we kill variables containing newlines.
11024 # Ultrix sh set writes to stderr and can't be redirected directly,
11025 # and sets the high bit in the cache file unless we assign to the vars.
11027 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11028 eval ac_val=\$$ac_var
11032 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11033 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11036 _ | IFS | as_nl) ;; #(
11037 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11038 *) { eval $ac_var=; unset $ac_var;} ;;
11044 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11045 *${as_nl}ac_space=\ *)
11046 # `set' does not quote correctly, so add quotes: double-quote
11047 # substitution turns \\\\ into \\, and sed turns \\ into \.
11050 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11053 # `set' quotes correctly as required by POSIX, so do not add quotes.
11054 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11063 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11065 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11067 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11068 if test -w "$cache_file"; then
11069 test "x$cache_file" != "x/dev/null" &&
11070 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11071 $as_echo "$as_me: updating cache $cache_file" >&6;}
11072 cat confcache >$cache_file
11074 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11075 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11080 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11081 # Let make expand exec_prefix.
11082 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11084 # Transform confdefs.h into DEFS.
11085 # Protect against shell expansion while executing Makefile rules.
11086 # Protect against Makefile macro expansion.
11088 # If the first sed substitution is executed (which looks for macros that
11089 # take arguments), then branch to the quote section. Otherwise,
11090 # look for a macro that doesn't take arguments.
11100 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
11102 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
11106 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
11119 DEFS=`sed -n "$ac_script" confdefs.h`
11124 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11125 # 1. Remove the extension, and $U if already installed.
11126 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11127 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11128 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11129 # will be set to the directory where LIBOBJS objects are built.
11130 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11131 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11133 LIBOBJS=$ac_libobjs
11135 LTLIBOBJS=$ac_ltlibobjs
11140 : ${CONFIG_STATUS=./config.status}
11142 ac_clean_files_save=$ac_clean_files
11143 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11144 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11145 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11147 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11149 # Generated by $as_me.
11150 # Run this file to recreate the current configuration.
11151 # Compiler output produced by configure, useful for debugging
11152 # configure, is in config.log if it exists.
11155 ac_cs_recheck=false
11158 SHELL=\${CONFIG_SHELL-$SHELL}
11161 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11162 ## -------------------- ##
11163 ## M4sh Initialization. ##
11164 ## -------------------- ##
11166 # Be more Bourne compatible
11167 DUALCASE=1; export DUALCASE # for MKS sh
11168 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11171 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11172 # is contrary to our usage. Disable this feature.
11173 alias -g '${1+"$@"}'='"$@"'
11174 setopt NO_GLOB_SUBST
11176 case `(set -o) 2>/dev/null` in #(
11188 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11189 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11190 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11191 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11192 # Prefer a ksh shell builtin over an external printf program on Solaris,
11193 # but without wasting forks for bash or zsh.
11194 if test -z "$BASH_VERSION$ZSH_VERSION" \
11195 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11196 as_echo='print -r --'
11197 as_echo_n='print -rn --'
11198 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11199 as_echo='printf %s\n'
11200 as_echo_n='printf %s'
11202 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11203 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11204 as_echo_n='/usr/ucb/echo -n'
11206 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11207 as_echo_n_body='eval
11211 expr "X$arg" : "X\\(.*\\)$as_nl";
11212 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11214 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11216 export as_echo_n_body
11217 as_echo_n='sh -c $as_echo_n_body as_echo'
11219 export as_echo_body
11220 as_echo='sh -c $as_echo_body as_echo'
11223 # The user is always right.
11224 if test "${PATH_SEPARATOR+set}" != set; then
11226 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11227 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11234 # We need space, tab and new line, in precisely that order. Quoting is
11235 # there to prevent editors from complaining about space-tab.
11236 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11237 # splitting by setting IFS to empty value.)
11240 # Find who we are. Look in the path if we contain no directory separator.
11242 *[\\/]* ) as_myself=$0 ;;
11243 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11244 for as_dir in $PATH
11247 test -z "$as_dir" && as_dir=.
11248 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11254 # We did not find ourselves, most probably we were run as `sh COMMAND'
11255 # in which case we are not to be found in the path.
11256 if test "x$as_myself" = x; then
11259 if test ! -f "$as_myself"; then
11260 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11264 # Unset variables that we do not need and which cause bugs (e.g. in
11265 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11266 # suppresses any "Segmentation fault" message there. '((' could
11267 # trigger a bug in pdksh 5.2.14.
11268 for as_var in BASH_ENV ENV MAIL MAILPATH
11269 do eval test x\${$as_var+set} = xset \
11270 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11283 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11286 # as_fn_error ERROR [LINENO LOG_FD]
11287 # ---------------------------------
11288 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11289 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11290 # script with status $?, using 1 if that was 0.
11293 as_status=$?; test $as_status -eq 0 && as_status=1
11295 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11296 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
11298 $as_echo "$as_me: error: $1" >&2
11299 as_fn_exit $as_status
11303 # as_fn_set_status STATUS
11304 # -----------------------
11305 # Set $? to STATUS, without forking.
11306 as_fn_set_status ()
11309 } # as_fn_set_status
11311 # as_fn_exit STATUS
11312 # -----------------
11313 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11317 as_fn_set_status $1
11323 # Portably unset VAR.
11326 { eval $1=; unset $1;}
11328 as_unset=as_fn_unset
11329 # as_fn_append VAR VALUE
11330 # ----------------------
11331 # Append the text in VALUE to the end of the definition contained in VAR. Take
11332 # advantage of any shell optimizations that allow amortized linear growth over
11333 # repeated appends, instead of the typical quadratic growth present in naive
11335 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11336 eval 'as_fn_append ()
11347 # as_fn_arith ARG...
11348 # ------------------
11349 # Perform arithmetic evaluation on the ARGs, and store the result in the
11350 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11351 # must be portable across $(()) and expr.
11352 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11353 eval 'as_fn_arith ()
11360 as_val=`expr "$@" || test $? -eq 1`
11365 if expr a : '\(a\)' >/dev/null 2>&1 &&
11366 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11372 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11373 as_basename=basename
11378 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11384 as_me=`$as_basename -- "$0" ||
11385 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11386 X"$0" : 'X\(//\)$' \| \
11387 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11389 sed '/^.*\/\([^/][^/]*\)\/*$/{
11403 # Avoid depending upon Character Ranges.
11404 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11405 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11406 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11407 as_cr_digits='0123456789'
11408 as_cr_alnum=$as_cr_Letters$as_cr_digits
11410 ECHO_C= ECHO_N= ECHO_T=
11411 case `echo -n x` in #(((((
11413 case `echo 'xy\c'` in
11414 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11416 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11423 rm -f conf$$ conf$$.exe conf$$.file
11424 if test -d conf$$.dir; then
11425 rm -f conf$$.dir/conf$$.file
11428 mkdir conf$$.dir 2>/dev/null
11430 if (echo >conf$$.file) 2>/dev/null; then
11431 if ln -s conf$$.file conf$$ 2>/dev/null; then
11433 # ... but there are two gotchas:
11434 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11435 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11436 # In both cases, we have to default to `cp -p'.
11437 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11439 elif ln conf$$.file conf$$ 2>/dev/null; then
11447 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11448 rmdir conf$$.dir 2>/dev/null
11453 # Create "$as_dir" as a directory, including parents if necessary.
11458 -*) as_dir=./$as_dir;;
11460 test -d "$as_dir" || eval $as_mkdir_p || {
11464 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11465 *) as_qdir=$as_dir;;
11467 as_dirs="'$as_qdir' $as_dirs"
11468 as_dir=`$as_dirname -- "$as_dir" ||
11469 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11470 X"$as_dir" : 'X\(//\)[^/]' \| \
11471 X"$as_dir" : 'X\(//\)$' \| \
11472 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11473 $as_echo X"$as_dir" |
11474 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11478 /^X\(\/\/\)[^/].*/{
11491 test -d "$as_dir" && break
11493 test -z "$as_dirs" || eval "mkdir $as_dirs"
11494 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
11498 if mkdir -p . 2>/dev/null; then
11499 as_mkdir_p='mkdir -p "$as_dir"'
11501 test -d ./-p && rmdir ./-p
11505 if test -x / >/dev/null 2>&1; then
11506 as_test_x='test -x'
11508 if ls -dL / >/dev/null 2>&1; then
11515 if test -d "$1"; then
11521 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
11522 ???[sx]*):;;*)false;;esac;fi
11526 as_executable_p=$as_test_x
11528 # Sed expression to map a string onto a valid CPP name.
11529 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11531 # Sed expression to map a string onto a valid variable name.
11532 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11536 ## ----------------------------------- ##
11537 ## Main body of $CONFIG_STATUS script. ##
11538 ## ----------------------------------- ##
11540 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11542 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11543 # Save the log message, to keep $0 and so on meaningful, and to
11544 # report actual input values of CONFIG_FILES etc. instead of their
11545 # values after options handling.
11547 This file was extended by $as_me, which was
11548 generated by GNU Autoconf 2.64. Invocation command line was
11550 CONFIG_FILES = $CONFIG_FILES
11551 CONFIG_HEADERS = $CONFIG_HEADERS
11552 CONFIG_LINKS = $CONFIG_LINKS
11553 CONFIG_COMMANDS = $CONFIG_COMMANDS
11556 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11561 case $ac_config_files in *"
11562 "*) set x $ac_config_files; shift; ac_config_files=$*;;
11567 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11568 # Files that config.status was made for.
11569 config_files="$ac_config_files"
11570 config_commands="$ac_config_commands"
11574 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11576 \`$as_me' instantiates files and other configuration actions
11577 from templates according to the current configuration. Unless the files
11578 and actions are specified as TAGs, all are instantiated by default.
11580 Usage: $0 [OPTION]... [TAG]...
11582 -h, --help print this help, then exit
11583 -V, --version print version number and configuration settings, then exit
11584 -q, --quiet, --silent
11585 do not print progress messages
11586 -d, --debug don't remove temporary files
11587 --recheck update $as_me by reconfiguring in the same conditions
11588 --file=FILE[:TEMPLATE]
11589 instantiate the configuration file FILE
11591 Configuration files:
11594 Configuration commands:
11597 Report bugs to the package provider."
11600 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11603 configured by $0, generated by GNU Autoconf 2.64,
11604 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
11606 Copyright (C) 2009 Free Software Foundation, Inc.
11607 This config.status script is free software; the Free Software Foundation
11608 gives unlimited permission to copy, distribute and modify it."
11614 test -n "\$AWK" || AWK=awk
11617 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11618 # The default lists apply if the user does not specify any file.
11624 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11625 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11636 # Handling of the options.
11637 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11639 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11640 $as_echo "$ac_cs_version"; exit ;;
11641 --debug | --debu | --deb | --de | --d | -d )
11643 --file | --fil | --fi | --f )
11646 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11648 as_fn_append CONFIG_FILES " '$ac_optarg'"
11649 ac_need_defaults=false;;
11650 --he | --h | --help | --hel | -h )
11651 $as_echo "$ac_cs_usage"; exit ;;
11652 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11653 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11656 # This is an error.
11657 -*) as_fn_error "unrecognized option: \`$1'
11658 Try \`$0 --help' for more information." ;;
11660 *) as_fn_append ac_config_targets " $1"
11661 ac_need_defaults=false ;;
11667 ac_configure_extra_args=
11669 if $ac_cs_silent; then
11671 ac_configure_extra_args="$ac_configure_extra_args --silent"
11675 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11676 if \$ac_cs_recheck; then
11677 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11679 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11680 CONFIG_SHELL='$SHELL'
11681 export CONFIG_SHELL
11686 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11690 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11691 ## Running $as_me. ##
11697 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11701 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
11702 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
11704 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
11705 # Capture the value of LINGUAS because we need it to compute CATALOGS.
11706 LINGUAS="${LINGUAS-%UNSET%}"
11711 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11713 # Handling of arguments.
11714 for ac_config_target in $ac_config_targets
11716 case $ac_config_target in
11717 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
11718 "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;;
11720 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11725 # If the user did not use the arguments to specify the items to instantiate,
11726 # then the envvar interface is used. Set only those that are not.
11727 # We use the long form for the default assignment because of an extremely
11728 # bizarre bug on SunOS 4.1.3.
11729 if $ac_need_defaults; then
11730 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11731 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11734 # Have a temporary directory for convenience. Make it in the build tree
11735 # simply because there is no reason against having it here, and in addition,
11736 # creating and moving files from /tmp can sometimes cause problems.
11737 # Hook for its removal unless debugging.
11738 # Note that there is a small window in which the directory will not be cleaned:
11739 # after its creation but before its name has been assigned to `$tmp'.
11743 trap 'exit_status=$?
11744 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
11746 trap 'as_fn_exit 1' 1 2 13 15
11748 # Create a (secure) tmp directory for tmp files.
11751 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11752 test -n "$tmp" && test -d "$tmp"
11755 tmp=./conf$$-$RANDOM
11756 (umask 077 && mkdir "$tmp")
11757 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
11759 # Set up the scripts for CONFIG_FILES section.
11760 # No need to generate them if there are no CONFIG_FILES.
11761 # This happens for instance with `./config.status config.h'.
11762 if test -n "$CONFIG_FILES"; then
11764 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
11765 ac_cs_awk_getline=:
11766 ac_cs_awk_pipe_init=
11767 ac_cs_awk_read_file='
11768 while ((getline aline < (F[key])) > 0)
11771 ac_cs_awk_pipe_fini=
11773 ac_cs_awk_getline=false
11774 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
11775 ac_cs_awk_read_file='
11777 print "cat " F[key] " &&"
11778 '$ac_cs_awk_pipe_init
11779 # The final `:' finishes the AND list.
11780 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
11782 ac_cr=`echo X | tr X '\015'`
11783 # On cygwin, bash can eat \r inside `` if the user requested igncr.
11784 # But we know of no other shell where ac_cr would be empty at this
11785 # point, so we can use a bashism as a fallback.
11786 if test "x$ac_cr" = x; then
11787 eval ac_cr=\$\'\\r\'
11789 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11790 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11793 ac_cs_awk_cr=$ac_cr
11796 echo 'BEGIN {' >"$tmp/subs1.awk" &&
11799 # Create commands to substitute file output variables.
11801 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
11802 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
11803 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
11806 } >conf$$files.sh &&
11807 . ./conf$$files.sh ||
11808 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
11809 rm -f conf$$files.sh
11812 echo "cat >conf$$subs.awk <<_ACEOF" &&
11813 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11815 } >conf$$subs.sh ||
11816 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
11817 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
11819 for ac_last_try in false false false false false :; do
11820 . ./conf$$subs.sh ||
11821 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
11823 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11824 if test $ac_delim_n = $ac_delim_num; then
11826 elif $ac_last_try; then
11827 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
11829 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11832 rm -f conf$$subs.sh
11834 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11835 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
11839 s/^/S["/; s/!.*/"]=/
11849 s/\(.\{148\}\).*/\1/
11851 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11856 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11863 s/\(.\{148\}\).*/\1/
11865 s/["\\]/\\&/g; s/^/"/; s/$/"/
11869 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11874 ' <conf$$subs.awk | sed '
11879 ' >>$CONFIG_STATUS || ac_write_fail=1
11880 rm -f conf$$subs.awk
11881 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11883 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
11884 for (key in S) S_is_set[key] = 1
11886 \$ac_cs_awk_pipe_init
11890 nfields = split(line, field, "@")
11892 len = length(field[1])
11893 for (i = 2; i < nfields; i++) {
11895 keylen = length(key)
11896 if (S_is_set[key]) {
11898 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11899 len += length(value) + length(field[++i])
11904 if (nfields == 3 && !substed) {
11906 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
11907 \$ac_cs_awk_read_file
11913 \$ac_cs_awk_pipe_fini
11916 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11917 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11918 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
11921 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
11922 || as_fn_error "could not setup config files machinery" "$LINENO" 5
11925 # VPATH may cause trouble with some makes, so we remove $(srcdir),
11926 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11927 # trailing colons and then remove the whole line if VPATH becomes empty
11928 # (actually we leave an empty line to preserve line numbers).
11929 if test "x$srcdir" = x.; then
11930 ac_vpsub='/^[ ]*VPATH[ ]*=/{
11931 s/:*\$(srcdir):*/:/
11932 s/:*\${srcdir}:*/:/
11934 s/^\([^=]*=[ ]*\):*/\1/
11940 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11941 fi # test -n "$CONFIG_FILES"
11944 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
11949 :[FHLC]) ac_mode=$ac_tag; continue;;
11951 case $ac_mode$ac_tag in
11953 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
11954 :[FH]-) ac_tag=-:-;;
11955 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11972 -) ac_f="$tmp/stdin";;
11973 *) # Look for the file first in the build tree, then in the source tree
11974 # (if the path is not absolute). The absolute path cannot be DOS-style,
11975 # because $ac_f cannot contain `:'.
11979 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11981 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
11983 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
11984 as_fn_append ac_file_inputs " '$ac_f'"
11987 # Let's still pretend it is `configure' which instantiates (i.e., don't
11988 # use $as_me), people would be surprised to read:
11989 # /* config.h. Generated by config.status. */
11990 configure_input='Generated from '`
11991 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
11993 if test x"$ac_file" != x-; then
11994 configure_input="$ac_file. $configure_input"
11995 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
11996 $as_echo "$as_me: creating $ac_file" >&6;}
11998 # Neutralize special characters interpreted by sed in replacement strings.
11999 case $configure_input in #(
12000 *\&* | *\|* | *\\* )
12001 ac_sed_conf_input=`$as_echo "$configure_input" |
12002 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12003 *) ac_sed_conf_input=$configure_input;;
12007 *:-:* | *:-) cat >"$tmp/stdin" \
12008 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
12013 ac_dir=`$as_dirname -- "$ac_file" ||
12014 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12015 X"$ac_file" : 'X\(//\)[^/]' \| \
12016 X"$ac_file" : 'X\(//\)$' \| \
12017 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12018 $as_echo X"$ac_file" |
12019 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12023 /^X\(\/\/\)[^/].*/{
12036 as_dir="$ac_dir"; as_fn_mkdir_p
12040 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12042 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12043 # A ".." for each directory in $ac_dir_suffix.
12044 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12045 case $ac_top_builddir_sub in
12046 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12047 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12050 ac_abs_top_builddir=$ac_pwd
12051 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12052 # for backward compatibility:
12053 ac_top_builddir=$ac_top_build_prefix
12056 .) # We are building in place.
12058 ac_top_srcdir=$ac_top_builddir_sub
12059 ac_abs_top_srcdir=$ac_pwd ;;
12060 [\\/]* | ?:[\\/]* ) # Absolute name.
12061 ac_srcdir=$srcdir$ac_dir_suffix;
12062 ac_top_srcdir=$srcdir
12063 ac_abs_top_srcdir=$srcdir ;;
12064 *) # Relative name.
12065 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12066 ac_top_srcdir=$ac_top_build_prefix$srcdir
12067 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12069 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12079 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12080 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12084 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12085 # If the template does not know about datarootdir, expand it.
12086 # FIXME: This hack should be removed a few years after 2.60.
12087 ac_datarootdir_hack=; ac_datarootdir_seen=
12098 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12099 *datarootdir*) ac_datarootdir_seen=yes;;
12100 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12101 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12102 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12104 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12105 ac_datarootdir_hack='
12106 s&@datadir@&$datadir&g
12107 s&@docdir@&$docdir&g
12108 s&@infodir@&$infodir&g
12109 s&@localedir@&$localedir&g
12110 s&@mandir@&$mandir&g
12111 s&\\\${datarootdir}&$datarootdir&g' ;;
12115 # Neutralize VPATH when `$srcdir' = `.'.
12116 # Shell code in configure.ac might set extrasub.
12117 # FIXME: do we really want to maintain this feature?
12118 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12119 ac_sed_extra="$ac_vpsub
12122 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12124 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12125 s|@configure_input@|$ac_sed_conf_input|;t t
12126 s&@top_builddir@&$ac_top_builddir_sub&;t t
12127 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12128 s&@srcdir@&$ac_srcdir&;t t
12129 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12130 s&@top_srcdir@&$ac_top_srcdir&;t t
12131 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12132 s&@builddir@&$ac_builddir&;t t
12133 s&@abs_builddir@&$ac_abs_builddir&;t t
12134 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12135 s&@INSTALL@&$ac_INSTALL&;t t
12136 $ac_datarootdir_hack
12138 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
12139 if $ac_cs_awk_getline; then
12140 $AWK -f "$tmp/subs.awk"
12142 $AWK -f "$tmp/subs.awk" | $SHELL
12144 || as_fn_error "could not create $ac_file" "$LINENO" 5
12146 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12147 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
12148 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
12149 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12150 which seems to be undefined. Please make sure it is defined." >&5
12151 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12152 which seems to be undefined. Please make sure it is defined." >&2;}
12156 -) cat "$tmp/out" && rm -f "$tmp/out";;
12157 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
12159 || as_fn_error "could not create $ac_file" "$LINENO" 5
12163 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12164 $as_echo "$as_me: executing $ac_file commands" >&6;}
12169 case $ac_file$ac_mode in
12171 for ac_file in $CONFIG_FILES; do
12172 # Support "outfile[:infile[:infile...]]"
12174 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
12176 # PO directories have a Makefile.in generated from Makefile.in.in.
12177 case "$ac_file" in */Makefile.in)
12178 # Adjust a relative srcdir.
12179 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
12180 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
12181 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
12182 # In autoconf-2.13 it is called $ac_given_srcdir.
12183 # In autoconf-2.50 it is called $srcdir.
12184 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
12185 case "$ac_given_srcdir" in
12186 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
12187 /*) top_srcdir="$ac_given_srcdir" ;;
12188 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
12190 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
12191 rm -f "$ac_dir/POTFILES"
12192 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
12193 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
12194 POMAKEFILEDEPS="POTFILES.in"
12195 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
12196 # on $ac_dir but don't depend on user-specified configuration
12198 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
12199 # The LINGUAS file contains the set of available languages.
12200 if test -n "$OBSOLETE_ALL_LINGUAS"; then
12201 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
12203 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
12204 # Hide the ALL_LINGUAS assigment from automake.
12205 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
12206 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
12208 # The set of available languages was given in configure.in.
12209 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
12212 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
12213 # Compute UPDATEPOFILES
12214 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
12215 # Compute DUMMYPOFILES
12216 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
12218 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
12219 case "$ac_given_srcdir" in
12221 *) srcdirpre='$(srcdir)/' ;;
12227 for lang in $ALL_LINGUAS; do
12228 POFILES="$POFILES $srcdirpre$lang.po"
12229 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
12230 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
12231 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
12233 # CATALOGS depends on both $ac_dir and the user's LINGUAS
12234 # environment variable.
12236 if test -n "$ALL_LINGUAS"; then
12237 for presentlang in $ALL_LINGUAS; do
12239 if test "%UNSET%" != "$LINGUAS"; then
12240 desiredlanguages="$LINGUAS"
12242 desiredlanguages="$ALL_LINGUAS"
12244 for desiredlang in $desiredlanguages; do
12245 # Use the presentlang catalog if desiredlang is
12246 # a. equal to presentlang, or
12247 # b. a variant of presentlang (because in this case,
12248 # presentlang can be used as a fallback for messages
12249 # which are not translated in the desiredlang catalog).
12250 case "$desiredlang" in
12251 "$presentlang"*) useit=yes;;
12254 if test $useit = yes; then
12255 INST_LINGUAS="$INST_LINGUAS $presentlang"
12260 if test -n "$INST_LINGUAS"; then
12261 for lang in $INST_LINGUAS; do
12262 CATALOGS="$CATALOGS $lang.gmo"
12265 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
12266 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"
12267 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
12268 if test -f "$f"; then
12270 *.orig | *.bak | *~) ;;
12271 *) cat "$f" >> "$ac_dir/Makefile" ;;
12286 ac_clean_files=$ac_clean_files_save
12288 test $ac_write_fail = 0 ||
12289 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
12292 # configure is writing to config.log, and then calls config.status.
12293 # config.status does its own redirection, appending to config.log.
12294 # Unfortunately, on DOS this fails, as config.log is still kept open
12295 # by configure, so config.status won't be able to write to it; its
12296 # output is simply discarded. So we exec the FD to /dev/null,
12297 # effectively closing config.log, so it can be properly (re)opened and
12298 # appended to by config.status. When coming back to configure, we
12299 # need to make the FD available again.
12300 if test "$no_create" != yes; then
12302 ac_config_status_args=
12303 test "$silent" = yes &&
12304 ac_config_status_args="$ac_config_status_args --quiet"
12306 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12308 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12309 # would make configure fail if this is the last instruction.
12310 $ac_cs_success || as_fn_exit $?
12312 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12313 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12314 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12317 if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi