2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65.
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 as_echo_n='sh -c $as_echo_n_body as_echo'
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
91 # Find who we are. Look in the path if we contain no directory separator.
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x; then
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there. '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\${$as_var+set} = xset \
121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136 if test "x$CONFIG_SHELL" = x; then
137 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
145 case \`(set -o) 2>/dev/null\` in #(
153 as_required="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167 exitcode=1; echo positional parameters were not saved.
169 test x\$exitcode = x0 || exit 1"
170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174 test \$(( 1 + 1 )) = 2 || exit 1"
175 if (eval "$as_required") 2>/dev/null; then :
180 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
185 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
188 test -z "$as_dir" && as_dir=.
192 for as_base in sh bash ksh sh5; do
193 # Try only shells that exist, to save several forks.
194 as_shell=$as_dir/$as_base
195 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 CONFIG_SHELL=$as_shell as_have_required=yes
198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
206 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208 CONFIG_SHELL=$SHELL as_have_required=yes
213 if test "x$CONFIG_SHELL" != x; then :
214 # We cannot yet assume a decent shell, so we have to provide a
215 # neutralization value for shells without unset; and this also
216 # works around shells that cannot unset nonexistent variables.
219 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224 if test x$as_have_required = xno; then :
225 $as_echo "$0: This script requires a shell more modern than all"
226 $as_echo "$0: the shells that I found on your system."
227 if test x${ZSH_VERSION+set} = xset ; then
228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
231 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
232 $0: including any error possibly output before this
233 $0: message. Then install a modern shell, or manually run
234 $0: the script under such a shell if you do have one."
240 SHELL=${CONFIG_SHELL-/bin/sh}
242 # Unset more variables known to interfere with behavior of common tools.
243 CLICOLOR_FORCE= GREP_OPTIONS=
244 unset CLICOLOR_FORCE GREP_OPTIONS
246 ## --------------------- ##
247 ## M4sh Shell Functions. ##
248 ## --------------------- ##
251 # Portably unset VAR.
254 { eval $1=; unset $1;}
258 # as_fn_set_status STATUS
259 # -----------------------
260 # Set $? to STATUS, without forking.
268 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
278 # Create "$as_dir" as a directory, including parents if necessary.
283 -*) as_dir=./$as_dir;;
285 test -d "$as_dir" || eval $as_mkdir_p || {
289 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
292 as_dirs="'$as_qdir' $as_dirs"
293 as_dir=`$as_dirname -- "$as_dir" ||
294 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
295 X"$as_dir" : 'X\(//\)[^/]' \| \
296 X"$as_dir" : 'X\(//\)$' \| \
297 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
298 $as_echo X"$as_dir" |
299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
316 test -d "$as_dir" && break
318 test -z "$as_dirs" || eval "mkdir $as_dirs"
319 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
323 # as_fn_append VAR VALUE
324 # ----------------------
325 # Append the text in VALUE to the end of the definition contained in VAR. Take
326 # advantage of any shell optimizations that allow amortized linear growth over
327 # repeated appends, instead of the typical quadratic growth present in naive
329 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
330 eval 'as_fn_append ()
343 # Perform arithmetic evaluation on the ARGs, and store the result in the
344 # global $as_val. Take advantage of shells that can avoid forks. The arguments
345 # must be portable across $(()) and expr.
346 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
354 as_val=`expr "$@" || test $? -eq 1`
359 # as_fn_error ERROR [LINENO LOG_FD]
360 # ---------------------------------
361 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
362 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
363 # script with status $?, using 1 if that was 0.
366 as_status=$?; test $as_status -eq 0 && as_status=1
368 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
369 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
371 $as_echo "$as_me: error: $1" >&2
372 as_fn_exit $as_status
375 if expr a : '\(a\)' >/dev/null 2>&1 &&
376 test "X`expr 00001 : '.*\(...\)'`" = X001; then
382 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
388 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
394 as_me=`$as_basename -- "$0" ||
395 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
396 X"$0" : 'X\(//\)$' \| \
397 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
399 sed '/^.*\/\([^/][^/]*\)\/*$/{
413 # Avoid depending upon Character Ranges.
414 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
415 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
416 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
417 as_cr_digits='0123456789'
418 as_cr_alnum=$as_cr_Letters$as_cr_digits
421 as_lineno_1=$LINENO as_lineno_1a=$LINENO
422 as_lineno_2=$LINENO as_lineno_2a=$LINENO
423 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
424 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
425 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
437 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
441 chmod +x "$as_me.lineno" ||
442 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
444 # Don't try to exec as it changes $[0], causing all sort of problems
445 # (the dirname of $[0] is not the place where we might find the
446 # original and so on. Autoconf is especially sensitive to this).
448 # Exit status is that of the last command.
452 ECHO_C= ECHO_N= ECHO_T=
453 case `echo -n x` in #(((((
455 case `echo 'xy\c'` in
456 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
458 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
465 rm -f conf$$ conf$$.exe conf$$.file
466 if test -d conf$$.dir; then
467 rm -f conf$$.dir/conf$$.file
470 mkdir conf$$.dir 2>/dev/null
472 if (echo >conf$$.file) 2>/dev/null; then
473 if ln -s conf$$.file conf$$ 2>/dev/null; then
475 # ... but there are two gotchas:
476 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
477 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
478 # In both cases, we have to default to `cp -p'.
479 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
481 elif ln conf$$.file conf$$ 2>/dev/null; then
489 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
490 rmdir conf$$.dir 2>/dev/null
492 if mkdir -p . 2>/dev/null; then
493 as_mkdir_p='mkdir -p "$as_dir"'
495 test -d ./-p && rmdir ./-p
499 if test -x / >/dev/null 2>&1; then
502 if ls -dL / >/dev/null 2>&1; then
509 if test -d "$1"; then
515 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
516 ???[sx]*):;;*)false;;esac;fi
520 as_executable_p=$as_test_x
522 # Sed expression to map a string onto a valid CPP name.
523 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
525 # Sed expression to map a string onto a valid variable name.
526 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
529 test -n "$DJDIR" || exec 7<&0 </dev/null
533 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
534 # so uname gets run too.
535 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
540 ac_default_prefix=/usr/local
542 ac_config_libobj_dir=.
549 # Identity of this package.
557 ac_unique_file="version.h"
558 # Factoring default headers for most tests.
559 ac_includes_default="\
561 #ifdef HAVE_SYS_TYPES_H
562 # include <sys/types.h>
564 #ifdef HAVE_SYS_STAT_H
565 # include <sys/stat.h>
571 # ifdef HAVE_STDLIB_H
576 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
581 #ifdef HAVE_STRINGS_H
582 # include <strings.h>
584 #ifdef HAVE_INTTYPES_H
585 # include <inttypes.h>
595 ac_subst_vars='LTLIBOBJS
640 INTL_LIBTOOL_SUFFIX_PREFIX
647 BUILD_INCLUDED_LIBINTL
763 program_transform_name
774 ac_subst_files='MCONFIG
781 PUBLIC_CONFIG_HEADER'
783 enable_option_checking
789 enable_maintainer_mode
790 enable_symlink_install
792 enable_verbose_makecmds
809 enable_e2initrd_helper
816 with_included_gettext
819 ac_precious_vars='build_alias
831 # Initialize some variables set by options.
833 ac_init_version=false
834 ac_unrecognized_opts=
836 # The variables have the same names as the options, with
837 # dashes changed to underlines.
845 program_transform_name=s,x,x,
853 # Installation directory options.
854 # These are left unexpanded so users can "make install exec_prefix=/foo"
855 # and all the variables that are supposed to be based on exec_prefix
856 # by default will actually change.
857 # Use braces instead of parens because sh, perl, etc. also accept them.
858 # (The list follows the same order as the GNU Coding Standards.)
859 bindir='${exec_prefix}/bin'
860 sbindir='${exec_prefix}/sbin'
861 libexecdir='${exec_prefix}/libexec'
862 datarootdir='${prefix}/share'
863 datadir='${datarootdir}'
864 sysconfdir='${prefix}/etc'
865 sharedstatedir='${prefix}/com'
866 localstatedir='${prefix}/var'
867 includedir='${prefix}/include'
868 oldincludedir='/usr/include'
869 docdir='${datarootdir}/doc/${PACKAGE}'
870 infodir='${datarootdir}/info'
875 libdir='${exec_prefix}/lib'
876 localedir='${datarootdir}/locale'
877 mandir='${datarootdir}/man'
883 # If the previous option needs an argument, assign it.
884 if test -n "$ac_prev"; then
885 eval $ac_prev=\$ac_option
891 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
895 # Accept the important Cygnus configure options, so we can diagnose typos.
897 case $ac_dashdash$ac_option in
901 -bindir | --bindir | --bindi | --bind | --bin | --bi)
903 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
906 -build | --build | --buil | --bui | --bu)
907 ac_prev=build_alias ;;
908 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
909 build_alias=$ac_optarg ;;
911 -cache-file | --cache-file | --cache-fil | --cache-fi \
912 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
913 ac_prev=cache_file ;;
914 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
915 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
916 cache_file=$ac_optarg ;;
919 cache_file=config.cache ;;
921 -datadir | --datadir | --datadi | --datad)
923 -datadir=* | --datadir=* | --datadi=* | --datad=*)
924 datadir=$ac_optarg ;;
926 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
927 | --dataroo | --dataro | --datar)
928 ac_prev=datarootdir ;;
929 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
930 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
931 datarootdir=$ac_optarg ;;
933 -disable-* | --disable-*)
934 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
935 # Reject names that are not valid shell variable names.
936 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
937 as_fn_error "invalid feature name: $ac_useropt"
938 ac_useropt_orig=$ac_useropt
939 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
940 case $ac_user_opts in
944 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
945 ac_unrecognized_sep=', ';;
947 eval enable_$ac_useropt=no ;;
949 -docdir | --docdir | --docdi | --doc | --do)
951 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
954 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
956 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
959 -enable-* | --enable-*)
960 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
961 # Reject names that are not valid shell variable names.
962 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
963 as_fn_error "invalid feature name: $ac_useropt"
964 ac_useropt_orig=$ac_useropt
965 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
966 case $ac_user_opts in
970 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
971 ac_unrecognized_sep=', ';;
973 eval enable_$ac_useropt=\$ac_optarg ;;
975 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
976 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
977 | --exec | --exe | --ex)
978 ac_prev=exec_prefix ;;
979 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
980 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
981 | --exec=* | --exe=* | --ex=*)
982 exec_prefix=$ac_optarg ;;
984 -gas | --gas | --ga | --g)
985 # Obsolete; use --with-gas.
988 -help | --help | --hel | --he | -h)
990 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
991 ac_init_help=recursive ;;
992 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
993 ac_init_help=short ;;
995 -host | --host | --hos | --ho)
996 ac_prev=host_alias ;;
997 -host=* | --host=* | --hos=* | --ho=*)
998 host_alias=$ac_optarg ;;
1000 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1002 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1004 htmldir=$ac_optarg ;;
1006 -includedir | --includedir | --includedi | --included | --include \
1007 | --includ | --inclu | --incl | --inc)
1008 ac_prev=includedir ;;
1009 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1010 | --includ=* | --inclu=* | --incl=* | --inc=*)
1011 includedir=$ac_optarg ;;
1013 -infodir | --infodir | --infodi | --infod | --info | --inf)
1015 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1016 infodir=$ac_optarg ;;
1018 -libdir | --libdir | --libdi | --libd)
1020 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1021 libdir=$ac_optarg ;;
1023 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1024 | --libexe | --libex | --libe)
1025 ac_prev=libexecdir ;;
1026 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1027 | --libexe=* | --libex=* | --libe=*)
1028 libexecdir=$ac_optarg ;;
1030 -localedir | --localedir | --localedi | --localed | --locale)
1031 ac_prev=localedir ;;
1032 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1033 localedir=$ac_optarg ;;
1035 -localstatedir | --localstatedir | --localstatedi | --localstated \
1036 | --localstate | --localstat | --localsta | --localst | --locals)
1037 ac_prev=localstatedir ;;
1038 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1039 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1040 localstatedir=$ac_optarg ;;
1042 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1044 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1045 mandir=$ac_optarg ;;
1047 -nfp | --nfp | --nf)
1048 # Obsolete; use --without-fp.
1051 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1052 | --no-cr | --no-c | -n)
1055 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1056 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1059 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1060 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1061 | --oldin | --oldi | --old | --ol | --o)
1062 ac_prev=oldincludedir ;;
1063 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1064 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1065 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1066 oldincludedir=$ac_optarg ;;
1068 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1070 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1071 prefix=$ac_optarg ;;
1073 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1074 | --program-pre | --program-pr | --program-p)
1075 ac_prev=program_prefix ;;
1076 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1077 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1078 program_prefix=$ac_optarg ;;
1080 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1081 | --program-suf | --program-su | --program-s)
1082 ac_prev=program_suffix ;;
1083 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1084 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1085 program_suffix=$ac_optarg ;;
1087 -program-transform-name | --program-transform-name \
1088 | --program-transform-nam | --program-transform-na \
1089 | --program-transform-n | --program-transform- \
1090 | --program-transform | --program-transfor \
1091 | --program-transfo | --program-transf \
1092 | --program-trans | --program-tran \
1093 | --progr-tra | --program-tr | --program-t)
1094 ac_prev=program_transform_name ;;
1095 -program-transform-name=* | --program-transform-name=* \
1096 | --program-transform-nam=* | --program-transform-na=* \
1097 | --program-transform-n=* | --program-transform-=* \
1098 | --program-transform=* | --program-transfor=* \
1099 | --program-transfo=* | --program-transf=* \
1100 | --program-trans=* | --program-tran=* \
1101 | --progr-tra=* | --program-tr=* | --program-t=*)
1102 program_transform_name=$ac_optarg ;;
1104 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1106 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1107 pdfdir=$ac_optarg ;;
1109 -psdir | --psdir | --psdi | --psd | --ps)
1111 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1114 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1115 | -silent | --silent | --silen | --sile | --sil)
1118 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1120 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1122 sbindir=$ac_optarg ;;
1124 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1125 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1126 | --sharedst | --shareds | --shared | --share | --shar \
1128 ac_prev=sharedstatedir ;;
1129 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1130 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1131 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1133 sharedstatedir=$ac_optarg ;;
1135 -site | --site | --sit)
1137 -site=* | --site=* | --sit=*)
1140 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1142 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1143 srcdir=$ac_optarg ;;
1145 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1146 | --syscon | --sysco | --sysc | --sys | --sy)
1147 ac_prev=sysconfdir ;;
1148 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1149 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1150 sysconfdir=$ac_optarg ;;
1152 -target | --target | --targe | --targ | --tar | --ta | --t)
1153 ac_prev=target_alias ;;
1154 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1155 target_alias=$ac_optarg ;;
1157 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1160 -version | --version | --versio | --versi | --vers | -V)
1161 ac_init_version=: ;;
1164 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1165 # Reject names that are not valid shell variable names.
1166 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1167 as_fn_error "invalid package name: $ac_useropt"
1168 ac_useropt_orig=$ac_useropt
1169 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1170 case $ac_user_opts in
1174 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1175 ac_unrecognized_sep=', ';;
1177 eval with_$ac_useropt=\$ac_optarg ;;
1179 -without-* | --without-*)
1180 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1181 # Reject names that are not valid shell variable names.
1182 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1183 as_fn_error "invalid package name: $ac_useropt"
1184 ac_useropt_orig=$ac_useropt
1185 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1186 case $ac_user_opts in
1190 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1191 ac_unrecognized_sep=', ';;
1193 eval with_$ac_useropt=no ;;
1196 # Obsolete; use --with-x.
1199 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1200 | --x-incl | --x-inc | --x-in | --x-i)
1201 ac_prev=x_includes ;;
1202 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1203 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1204 x_includes=$ac_optarg ;;
1206 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1207 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1208 ac_prev=x_libraries ;;
1209 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1210 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1211 x_libraries=$ac_optarg ;;
1213 -*) as_fn_error "unrecognized option: \`$ac_option'
1214 Try \`$0 --help' for more information."
1218 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1219 # Reject names that are not valid shell variable names.
1220 case $ac_envvar in #(
1221 '' | [0-9]* | *[!_$as_cr_alnum]* )
1222 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1224 eval $ac_envvar=\$ac_optarg
1225 export $ac_envvar ;;
1228 # FIXME: should be removed in autoconf 3.0.
1229 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1230 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1231 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1232 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1238 if test -n "$ac_prev"; then
1239 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1240 as_fn_error "missing argument to $ac_option"
1243 if test -n "$ac_unrecognized_opts"; then
1244 case $enable_option_checking in
1246 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1247 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1251 # Check all directory arguments for consistency.
1252 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1253 datadir sysconfdir sharedstatedir localstatedir includedir \
1254 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1255 libdir localedir mandir
1257 eval ac_val=\$$ac_var
1258 # Remove trailing slashes.
1261 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1262 eval $ac_var=\$ac_val;;
1264 # Be sure to have absolute directory names.
1266 [\\/$]* | ?:[\\/]* ) continue;;
1267 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1269 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1272 # There might be people who depend on the old broken behavior: `$host'
1273 # used to hold the argument of --host etc.
1274 # FIXME: To remove some day.
1277 target=$target_alias
1279 # FIXME: To remove some day.
1280 if test "x$host_alias" != x; then
1281 if test "x$build_alias" = x; then
1282 cross_compiling=maybe
1283 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1284 If a cross compiler is detected then cross compile mode will be used." >&2
1285 elif test "x$build_alias" != "x$host_alias"; then
1291 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1293 test "$silent" = yes && exec 6>/dev/null
1296 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1297 ac_ls_di=`ls -di .` &&
1298 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1299 as_fn_error "working directory cannot be determined"
1300 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1301 as_fn_error "pwd does not report name of working directory"
1304 # Find the source files, if location was not specified.
1305 if test -z "$srcdir"; then
1306 ac_srcdir_defaulted=yes
1307 # Try the directory containing this script, then the parent directory.
1308 ac_confdir=`$as_dirname -- "$as_myself" ||
1309 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1310 X"$as_myself" : 'X\(//\)[^/]' \| \
1311 X"$as_myself" : 'X\(//\)$' \| \
1312 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1313 $as_echo X"$as_myself" |
1314 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1332 if test ! -r "$srcdir/$ac_unique_file"; then
1336 ac_srcdir_defaulted=no
1338 if test ! -r "$srcdir/$ac_unique_file"; then
1339 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1340 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1342 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1344 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1346 # When building in place, set srcdir=.
1347 if test "$ac_abs_confdir" = "$ac_pwd"; then
1350 # Remove unnecessary trailing slashes from srcdir.
1351 # Double slashes in file names in object file debugging info
1352 # mess up M-x gdb in Emacs.
1354 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1356 for ac_var in $ac_precious_vars; do
1357 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1358 eval ac_env_${ac_var}_value=\$${ac_var}
1359 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1360 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1364 # Report the --help message.
1366 if test "$ac_init_help" = "long"; then
1367 # Omit some internal or obsolete options to make the list less imposing.
1368 # This message is too long to be a string in the A/UX 3.1 sh.
1370 \`configure' configures this package to adapt to many kinds of systems.
1372 Usage: $0 [OPTION]... [VAR=VALUE]...
1374 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1375 VAR=VALUE. See below for descriptions of some of the useful variables.
1377 Defaults for the options are specified in brackets.
1380 -h, --help display this help and exit
1381 --help=short display options specific to this package
1382 --help=recursive display the short help of all the included packages
1383 -V, --version display version information and exit
1384 -q, --quiet, --silent do not print \`checking...' messages
1385 --cache-file=FILE cache test results in FILE [disabled]
1386 -C, --config-cache alias for \`--cache-file=config.cache'
1387 -n, --no-create do not create output files
1388 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1390 Installation directories:
1391 --prefix=PREFIX install architecture-independent files in PREFIX
1392 [$ac_default_prefix]
1393 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1396 By default, \`make install' will install all the files in
1397 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1398 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1399 for instance \`--prefix=\$HOME'.
1401 For better control, use the options below.
1403 Fine tuning of the installation directories:
1404 --bindir=DIR user executables [EPREFIX/bin]
1405 --sbindir=DIR system admin executables [EPREFIX/sbin]
1406 --libexecdir=DIR program executables [EPREFIX/libexec]
1407 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1408 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1409 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1410 --libdir=DIR object code libraries [EPREFIX/lib]
1411 --includedir=DIR C header files [PREFIX/include]
1412 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1413 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1414 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1415 --infodir=DIR info documentation [DATAROOTDIR/info]
1416 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1417 --mandir=DIR man documentation [DATAROOTDIR/man]
1418 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1419 --htmldir=DIR html documentation [DOCDIR]
1420 --dvidir=DIR dvi documentation [DOCDIR]
1421 --pdfdir=DIR pdf documentation [DOCDIR]
1422 --psdir=DIR ps documentation [DOCDIR]
1428 --build=BUILD configure for building on BUILD [guessed]
1429 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1433 if test -n "$ac_init_help"; then
1438 --disable-option-checking ignore unrecognized --enable/--with options
1439 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1440 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1441 --enable-maintainer-mode enable makefile rules useful for maintainers
1442 --enable-symlink-install use symlinks when installing instead of hard links
1443 --enable-symlink-build use symlinks while building instead of hard links
1444 --enable-verbose-makecmds enable verbose make command output
1445 --enable-compression enable EXPERIMENTAL compression support
1446 --enable-htree enable EXPERIMENTAL htree directory support
1447 --enable-elf-shlibs select ELF shared libraries
1448 --enable-bsd-shlibs select BSD shared libraries
1449 --enable-profile build profiling libraries
1450 --enable-checker build checker libraries
1451 --enable-jbd-debug enable journal debugging
1452 --enable-blkid-debug enable blkid debugging
1453 --disable-testio-debug disable the use of the test I/O manager for debugging
1454 --disable-libuuid do not build private uuid library
1455 --disable-libblkid do not build private blkid library
1456 --disable-debugfs disable support of debugfs program
1457 --disable-imager disable support of e2image program
1458 --disable-resizer disable support of e2resize program
1459 --disable-defrag disable support of e4defrag program
1460 --enable-fsck build fsck wrapper program
1461 --enable-e2initrd-helper build e2initrd-helper program
1462 --disable-tls disable use of thread local support
1463 --disable-uuidd disable building the uuid daemon
1464 --disable-nls do not use Native Language Support
1465 --disable-rpath do not hardcode runtime library paths
1468 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1469 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1470 --with-diet-libc use diet libc
1471 --with-cc no longer supported, use CC= instead
1472 --with-ccopts no longer supported, use CFLAGS= instead
1473 --with-ldopts no longer supported, use LDFLAGS= instead
1474 --with-root-prefix=PREFIX override prefix variable for files to be placed in the root
1475 --with-gnu-ld assume the C compiler uses GNU ld default=no
1476 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1477 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1478 --with-included-gettext use the GNU gettext library included here
1479 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1480 --without-libintl-prefix don't search for libintl in includedir and libdir
1482 Some influential environment variables:
1483 CC C compiler command
1484 CFLAGS C compiler flags
1485 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1486 nonstandard directory <lib dir>
1487 LIBS libraries to pass to the linker, e.g. -l<library>
1488 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1489 you have headers in a nonstandard directory <include dir>
1491 PKG_CONFIG path to pkg-config utility
1493 Use these variables to override the choices made by `configure' or to help
1494 it to find libraries and programs with nonstandard names/locations.
1496 Report bugs to the package provider.
1501 if test "$ac_init_help" = "recursive"; then
1502 # If there are subdirs, report their specific --help.
1503 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1504 test -d "$ac_dir" ||
1505 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1510 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1512 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1513 # A ".." for each directory in $ac_dir_suffix.
1514 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1515 case $ac_top_builddir_sub in
1516 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1517 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1520 ac_abs_top_builddir=$ac_pwd
1521 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1522 # for backward compatibility:
1523 ac_top_builddir=$ac_top_build_prefix
1526 .) # We are building in place.
1528 ac_top_srcdir=$ac_top_builddir_sub
1529 ac_abs_top_srcdir=$ac_pwd ;;
1530 [\\/]* | ?:[\\/]* ) # Absolute name.
1531 ac_srcdir=$srcdir$ac_dir_suffix;
1532 ac_top_srcdir=$srcdir
1533 ac_abs_top_srcdir=$srcdir ;;
1535 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1536 ac_top_srcdir=$ac_top_build_prefix$srcdir
1537 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1539 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1541 cd "$ac_dir" || { ac_status=$?; continue; }
1542 # Check for guested configure.
1543 if test -f "$ac_srcdir/configure.gnu"; then
1545 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1546 elif test -f "$ac_srcdir/configure"; then
1548 $SHELL "$ac_srcdir/configure" --help=recursive
1550 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1552 cd "$ac_pwd" || { ac_status=$?; break; }
1556 test -n "$ac_init_help" && exit $ac_status
1557 if $ac_init_version; then
1560 generated by GNU Autoconf 2.65
1562 Copyright (C) 2009 Free Software Foundation, Inc.
1563 This configure script is free software; the Free Software Foundation
1564 gives unlimited permission to copy, distribute and modify it.
1569 ## ------------------------ ##
1570 ## Autoconf initialization. ##
1571 ## ------------------------ ##
1573 # ac_fn_c_try_compile LINENO
1574 # --------------------------
1575 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1576 ac_fn_c_try_compile ()
1578 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1579 rm -f conftest.$ac_objext
1580 if { { ac_try="$ac_compile"
1582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1583 *) ac_try_echo=$ac_try;;
1585 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1586 $as_echo "$ac_try_echo"; } >&5
1587 (eval "$ac_compile") 2>conftest.err
1589 if test -s conftest.err; then
1590 grep -v '^ *+' conftest.err >conftest.er1
1591 cat conftest.er1 >&5
1592 mv -f conftest.er1 conftest.err
1594 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1595 test $ac_status = 0; } && {
1596 test -z "$ac_c_werror_flag" ||
1597 test ! -s conftest.err
1598 } && test -s conftest.$ac_objext; then :
1601 $as_echo "$as_me: failed program was:" >&5
1602 sed 's/^/| /' conftest.$ac_ext >&5
1606 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1607 as_fn_set_status $ac_retval
1609 } # ac_fn_c_try_compile
1611 # ac_fn_c_try_link LINENO
1612 # -----------------------
1613 # Try to link conftest.$ac_ext, and return whether this succeeded.
1616 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1617 rm -f conftest.$ac_objext conftest$ac_exeext
1618 if { { ac_try="$ac_link"
1620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1621 *) ac_try_echo=$ac_try;;
1623 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1624 $as_echo "$ac_try_echo"; } >&5
1625 (eval "$ac_link") 2>conftest.err
1627 if test -s conftest.err; then
1628 grep -v '^ *+' conftest.err >conftest.er1
1629 cat conftest.er1 >&5
1630 mv -f conftest.er1 conftest.err
1632 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1633 test $ac_status = 0; } && {
1634 test -z "$ac_c_werror_flag" ||
1635 test ! -s conftest.err
1636 } && test -s conftest$ac_exeext && {
1637 test "$cross_compiling" = yes ||
1638 $as_test_x conftest$ac_exeext
1642 $as_echo "$as_me: failed program was:" >&5
1643 sed 's/^/| /' conftest.$ac_ext >&5
1647 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1648 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1649 # interfere with the next link command; also delete a directory that is
1650 # left behind by Apple's compiler. We do this before executing the actions.
1651 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1652 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1653 as_fn_set_status $ac_retval
1655 } # ac_fn_c_try_link
1657 # ac_fn_c_try_cpp LINENO
1658 # ----------------------
1659 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1662 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1663 if { { ac_try="$ac_cpp conftest.$ac_ext"
1665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1666 *) ac_try_echo=$ac_try;;
1668 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1669 $as_echo "$ac_try_echo"; } >&5
1670 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1672 if test -s conftest.err; then
1673 grep -v '^ *+' conftest.err >conftest.er1
1674 cat conftest.er1 >&5
1675 mv -f conftest.er1 conftest.err
1677 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1678 test $ac_status = 0; } >/dev/null && {
1679 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1680 test ! -s conftest.err
1684 $as_echo "$as_me: failed program was:" >&5
1685 sed 's/^/| /' conftest.$ac_ext >&5
1689 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1690 as_fn_set_status $ac_retval
1694 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1695 # -------------------------------------------------------
1696 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1697 # the include files in INCLUDES and setting the cache variable VAR
1699 ac_fn_c_check_header_mongrel ()
1701 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1702 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1704 $as_echo_n "checking for $2... " >&6; }
1705 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1706 $as_echo_n "(cached) " >&6
1709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1710 $as_echo "$ac_res" >&6; }
1712 # Is the header compilable?
1713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1714 $as_echo_n "checking $2 usability... " >&6; }
1715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1716 /* end confdefs.h. */
1720 if ac_fn_c_try_compile "$LINENO"; then :
1721 ac_header_compiler=yes
1723 ac_header_compiler=no
1725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1727 $as_echo "$ac_header_compiler" >&6; }
1729 # Is the header present?
1730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1731 $as_echo_n "checking $2 presence... " >&6; }
1732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1733 /* end confdefs.h. */
1736 if ac_fn_c_try_cpp "$LINENO"; then :
1737 ac_header_preproc=yes
1739 ac_header_preproc=no
1741 rm -f conftest.err conftest.$ac_ext
1742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1743 $as_echo "$ac_header_preproc" >&6; }
1745 # So? What about this header?
1746 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1748 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1749 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1750 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1751 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1754 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1755 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1756 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1757 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1758 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1759 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1760 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1761 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1762 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1763 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1767 $as_echo_n "checking for $2... " >&6; }
1768 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1769 $as_echo_n "(cached) " >&6
1771 eval "$3=\$ac_header_compiler"
1774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1775 $as_echo "$ac_res" >&6; }
1777 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1779 } # ac_fn_c_check_header_mongrel
1781 # ac_fn_c_try_run LINENO
1782 # ----------------------
1783 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1784 # that executables *can* be run.
1787 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1788 if { { ac_try="$ac_link"
1790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1791 *) ac_try_echo=$ac_try;;
1793 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1794 $as_echo "$ac_try_echo"; } >&5
1795 (eval "$ac_link") 2>&5
1797 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1798 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1799 { { case "(($ac_try" in
1800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1801 *) ac_try_echo=$ac_try;;
1803 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1804 $as_echo "$ac_try_echo"; } >&5
1805 (eval "$ac_try") 2>&5
1807 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1808 test $ac_status = 0; }; }; then :
1811 $as_echo "$as_me: program exited with status $ac_status" >&5
1812 $as_echo "$as_me: failed program was:" >&5
1813 sed 's/^/| /' conftest.$ac_ext >&5
1815 ac_retval=$ac_status
1817 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1818 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1819 as_fn_set_status $ac_retval
1823 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1824 # -------------------------------------------------------
1825 # Tests whether HEADER exists and can be compiled using the include files in
1826 # INCLUDES, setting the cache variable VAR accordingly.
1827 ac_fn_c_check_header_compile ()
1829 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1831 $as_echo_n "checking for $2... " >&6; }
1832 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1833 $as_echo_n "(cached) " >&6
1835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1836 /* end confdefs.h. */
1840 if ac_fn_c_try_compile "$LINENO"; then :
1845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1849 $as_echo "$ac_res" >&6; }
1850 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1852 } # ac_fn_c_check_header_compile
1854 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1855 # -------------------------------------------
1856 # Tests whether TYPE exists after having included INCLUDES, setting cache
1857 # variable VAR accordingly.
1858 ac_fn_c_check_type ()
1860 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1862 $as_echo_n "checking for $2... " >&6; }
1863 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1864 $as_echo_n "(cached) " >&6
1867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1868 /* end confdefs.h. */
1879 if ac_fn_c_try_compile "$LINENO"; then :
1880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1881 /* end confdefs.h. */
1892 if ac_fn_c_try_compile "$LINENO"; then :
1897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1903 $as_echo "$ac_res" >&6; }
1904 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1906 } # ac_fn_c_check_type
1908 # ac_fn_c_check_func LINENO FUNC VAR
1909 # ----------------------------------
1910 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1911 ac_fn_c_check_func ()
1913 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1915 $as_echo_n "checking for $2... " >&6; }
1916 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1917 $as_echo_n "(cached) " >&6
1919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1920 /* end confdefs.h. */
1921 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1922 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1923 #define $2 innocuous_$2
1925 /* System header to define __stub macros and hopefully few prototypes,
1926 which can conflict with char $2 (); below.
1927 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1928 <limits.h> exists even on freestanding compilers. */
1931 # include <limits.h>
1933 # include <assert.h>
1938 /* Override any GCC internal prototype to avoid an error.
1939 Use char because int might match the return type of a GCC
1940 builtin and then its argument prototype would still apply. */
1945 /* The GNU C library defines this for functions which it implements
1946 to always fail with ENOSYS. Some functions are actually named
1947 something starting with __ and the normal name is an alias. */
1948 #if defined __stub_$2 || defined __stub___$2
1960 if ac_fn_c_try_link "$LINENO"; then :
1965 rm -f core conftest.err conftest.$ac_objext \
1966 conftest$ac_exeext conftest.$ac_ext
1969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1970 $as_echo "$ac_res" >&6; }
1971 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1973 } # ac_fn_c_check_func
1975 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1976 # --------------------------------------------
1977 # Tries to find the compile-time value of EXPR in a program that includes
1978 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1980 ac_fn_c_compute_int ()
1982 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1983 if test "$cross_compiling" = yes; then
1984 # Depending upon the size, compute the lo and hi bounds.
1985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1986 /* end confdefs.h. */
1991 static int test_array [1 - 2 * !(($2) >= 0)];
1998 if ac_fn_c_try_compile "$LINENO"; then :
2001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2002 /* end confdefs.h. */
2007 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2014 if ac_fn_c_try_compile "$LINENO"; then :
2015 ac_hi=$ac_mid; break
2017 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2018 if test $ac_lo -le $ac_mid; then
2022 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2028 /* end confdefs.h. */
2033 static int test_array [1 - 2 * !(($2) < 0)];
2040 if ac_fn_c_try_compile "$LINENO"; then :
2043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2044 /* end confdefs.h. */
2049 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2056 if ac_fn_c_try_compile "$LINENO"; then :
2057 ac_lo=$ac_mid; break
2059 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2060 if test $ac_mid -le $ac_hi; then
2064 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2074 # Binary search between lo and hi bounds.
2075 while test "x$ac_lo" != "x$ac_hi"; do
2076 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2078 /* end confdefs.h. */
2083 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2090 if ac_fn_c_try_compile "$LINENO"; then :
2093 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2098 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2103 /* end confdefs.h. */
2105 static long int longval () { return $2; }
2106 static unsigned long int ulongval () { return $2; }
2113 FILE *f = fopen ("conftest.val", "w");
2118 long int i = longval ();
2121 fprintf (f, "%ld", i);
2125 unsigned long int i = ulongval ();
2128 fprintf (f, "%lu", i);
2130 /* Do not output a trailing newline, as this causes \r\n confusion
2131 on some platforms. */
2132 return ferror (f) || fclose (f) != 0;
2138 if ac_fn_c_try_run "$LINENO"; then :
2139 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2143 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2144 conftest.$ac_objext conftest.beam conftest.$ac_ext
2148 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2149 as_fn_set_status $ac_retval
2151 } # ac_fn_c_compute_int
2153 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2154 # ----------------------------------------------------
2155 # Tries to find if the field MEMBER exists in type AGGR, after including
2156 # INCLUDES, setting cache variable VAR accordingly.
2157 ac_fn_c_check_member ()
2159 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2161 $as_echo_n "checking for $2.$3... " >&6; }
2162 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2163 $as_echo_n "(cached) " >&6
2165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2166 /* end confdefs.h. */
2178 if ac_fn_c_try_compile "$LINENO"; then :
2181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2182 /* end confdefs.h. */
2188 if (sizeof ac_aggr.$3)
2194 if ac_fn_c_try_compile "$LINENO"; then :
2199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2205 $as_echo "$ac_res" >&6; }
2206 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2208 } # ac_fn_c_check_member
2210 # ac_fn_c_check_decl LINENO SYMBOL VAR
2211 # ------------------------------------
2212 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2213 ac_fn_c_check_decl ()
2215 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2217 $as_echo_n "checking whether $2 is declared... " >&6; }
2218 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2219 $as_echo_n "(cached) " >&6
2221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2222 /* end confdefs.h. */
2235 if ac_fn_c_try_compile "$LINENO"; then :
2240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2244 $as_echo "$ac_res" >&6; }
2245 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2247 } # ac_fn_c_check_decl
2248 cat >config.log <<_ACEOF
2249 This file contains any messages produced by compilers while
2250 running configure, to aid debugging if configure makes a mistake.
2252 It was created by $as_me, which was
2253 generated by GNU Autoconf 2.65. Invocation command line was
2265 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2266 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2267 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2268 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2269 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2271 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2272 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2274 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2275 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2276 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2277 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2278 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2279 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2280 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2288 test -z "$as_dir" && as_dir=.
2289 $as_echo "PATH: $as_dir"
2305 # Keep a trace of the command line.
2306 # Strip out --no-create and --no-recursion so they do not pile up.
2307 # Strip out --silent because we don't want to record it for future runs.
2308 # Also quote any args containing shell meta-characters.
2309 # Make two passes to allow for proper duplicate-argument suppression.
2313 ac_must_keep_next=false
2319 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2320 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2321 | -silent | --silent | --silen | --sile | --sil)
2324 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2327 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2329 as_fn_append ac_configure_args1 " '$ac_arg'"
2330 if test $ac_must_keep_next = true; then
2331 ac_must_keep_next=false # Got value, back to normal.
2334 *=* | --config-cache | -C | -disable-* | --disable-* \
2335 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2336 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2337 | -with-* | --with-* | -without-* | --without-* | --x)
2338 case "$ac_configure_args0 " in
2339 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2342 -* ) ac_must_keep_next=true ;;
2345 as_fn_append ac_configure_args " '$ac_arg'"
2350 { ac_configure_args0=; unset ac_configure_args0;}
2351 { ac_configure_args1=; unset ac_configure_args1;}
2353 # When interrupted or exit'd, cleanup temporary files, and complete
2354 # config.log. We remove comments because anyway the quotes in there
2355 # would cause problems or look ugly.
2356 # WARNING: Use '\'' to represent an apostrophe within the trap.
2357 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2358 trap 'exit_status=$?
2359 # Save into config.log some information that might help in debugging.
2364 ## ---------------- ##
2365 ## Cache variables. ##
2366 ## ---------------- ##
2369 # The following way of writing the cache mishandles newlines in values,
2371 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2372 eval ac_val=\$$ac_var
2376 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2377 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2380 _ | IFS | as_nl) ;; #(
2381 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2382 *) { eval $ac_var=; unset $ac_var;} ;;
2387 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2388 *${as_nl}ac_space=\ *)
2390 "s/'\''/'\''\\\\'\'''\''/g;
2391 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2394 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2402 ## ----------------- ##
2403 ## Output variables. ##
2404 ## ----------------- ##
2407 for ac_var in $ac_subst_vars
2409 eval ac_val=\$$ac_var
2411 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2413 $as_echo "$ac_var='\''$ac_val'\''"
2417 if test -n "$ac_subst_files"; then
2419 ## ------------------- ##
2420 ## File substitutions. ##
2421 ## ------------------- ##
2424 for ac_var in $ac_subst_files
2426 eval ac_val=\$$ac_var
2428 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2430 $as_echo "$ac_var='\''$ac_val'\''"
2435 if test -s confdefs.h; then
2445 test "$ac_signal" != 0 &&
2446 $as_echo "$as_me: caught signal $ac_signal"
2447 $as_echo "$as_me: exit $exit_status"
2449 rm -f core *.core core.conftest.* &&
2450 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2453 for ac_signal in 1 2 13 15; do
2454 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2458 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2459 rm -f -r conftest* confdefs.h
2461 $as_echo "/* confdefs.h */" > confdefs.h
2463 # Predefined preprocessor variables.
2465 cat >>confdefs.h <<_ACEOF
2466 #define PACKAGE_NAME "$PACKAGE_NAME"
2469 cat >>confdefs.h <<_ACEOF
2470 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2473 cat >>confdefs.h <<_ACEOF
2474 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2477 cat >>confdefs.h <<_ACEOF
2478 #define PACKAGE_STRING "$PACKAGE_STRING"
2481 cat >>confdefs.h <<_ACEOF
2482 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2485 cat >>confdefs.h <<_ACEOF
2486 #define PACKAGE_URL "$PACKAGE_URL"
2490 # Let the site file select an alternate cache file if it wants to.
2491 # Prefer an explicitly selected file to automatically selected ones.
2494 if test -n "$CONFIG_SITE"; then
2495 ac_site_file1=$CONFIG_SITE
2496 elif test "x$prefix" != xNONE; then
2497 ac_site_file1=$prefix/share/config.site
2498 ac_site_file2=$prefix/etc/config.site
2500 ac_site_file1=$ac_default_prefix/share/config.site
2501 ac_site_file2=$ac_default_prefix/etc/config.site
2503 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2505 test "x$ac_site_file" = xNONE && continue
2506 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2507 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2508 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2509 sed 's/^/| /' "$ac_site_file" >&5
2514 if test -r "$cache_file"; then
2515 # Some versions of bash will fail to source /dev/null (special files
2516 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2517 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2518 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2519 $as_echo "$as_me: loading cache $cache_file" >&6;}
2521 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2522 *) . "./$cache_file";;
2526 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2527 $as_echo "$as_me: creating cache $cache_file" >&6;}
2531 as_fn_append ac_header_list " stdlib.h"
2532 as_fn_append ac_header_list " unistd.h"
2533 as_fn_append ac_header_list " sys/param.h"
2534 # Check that the precious variables saved in the cache have kept the same
2536 ac_cache_corrupted=false
2537 for ac_var in $ac_precious_vars; do
2538 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2539 eval ac_new_set=\$ac_env_${ac_var}_set
2540 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2541 eval ac_new_val=\$ac_env_${ac_var}_value
2542 case $ac_old_set,$ac_new_set in
2544 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2545 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2546 ac_cache_corrupted=: ;;
2548 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2549 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2550 ac_cache_corrupted=: ;;
2553 if test "x$ac_old_val" != "x$ac_new_val"; then
2554 # differences in whitespace do not lead to failure.
2555 ac_old_val_w=`echo x $ac_old_val`
2556 ac_new_val_w=`echo x $ac_new_val`
2557 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2558 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2559 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2560 ac_cache_corrupted=:
2562 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2563 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2564 eval $ac_var=\$ac_old_val
2566 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2567 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2568 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2569 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2572 # Pass precious variables to config.status.
2573 if test "$ac_new_set" = set; then
2575 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2576 *) ac_arg=$ac_var=$ac_new_val ;;
2578 case " $ac_configure_args " in
2579 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2580 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2584 if $ac_cache_corrupted; then
2585 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2586 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2587 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2588 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2589 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2591 ## -------------------- ##
2592 ## Main body of script. ##
2593 ## -------------------- ##
2596 ac_cpp='$CPP $CPPFLAGS'
2597 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2598 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2599 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2604 for ac_dir in config "$srcdir"/config; do
2605 for ac_t in install-sh install.sh shtool; do
2606 if test -f "$ac_dir/$ac_t"; then
2608 ac_install_sh="$ac_aux_dir/$ac_t -c"
2613 if test -z "$ac_aux_dir"; then
2614 as_fn_error "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2617 # These three variables are undocumented and unsupported,
2618 # and are intended to be withdrawn in a future Autoconf release.
2619 # They can cause serious problems if a builder's source tree is in a directory
2620 # whose full name contains unusual characters.
2621 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2622 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2623 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2629 E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \
2630 | awk '{print $3}' | tr \" " " | awk '{print $1}'`
2631 DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
2633 E2FSPROGS_DAY=`echo $DATE | awk -F- '{print $1}'`
2634 MONTH=`echo $DATE | awk -F- '{print $2}'`
2635 YEAR=`echo $DATE | awk -F- '{print $3}'`
2637 if expr $YEAR ">" 1900 > /dev/null ; then
2638 E2FSPROGS_YEAR=$YEAR
2639 elif expr $YEAR ">" 90 >/dev/null ; then
2640 E2FSPROGS_YEAR=19$YEAR
2642 E2FSPROGS_YEAR=20$YEAR
2646 Jan) MONTH_NUM=01; E2FSPROGS_MONTH="January" ;;
2647 Feb) MONTH_NUM=02; E2FSPROGS_MONTH="February" ;;
2648 Mar) MONTH_NUM=03; E2FSPROGS_MONTH="March" ;;
2649 Apr) MONTH_NUM=04; E2FSPROGS_MONTH="April" ;;
2650 May) MONTH_NUM=05; E2FSPROGS_MONTH="May" ;;
2651 Jun) MONTH_NUM=06; E2FSPROGS_MONTH="June" ;;
2652 Jul) MONTH_NUM=07; E2FSPROGS_MONTH="July" ;;
2653 Aug) MONTH_NUM=08; E2FSPROGS_MONTH="August" ;;
2654 Sep) MONTH_NUM=09; E2FSPROGS_MONTH="September" ;;
2655 Oct) MONTH_NUM=10; E2FSPROGS_MONTH="October" ;;
2656 Nov) MONTH_NUM=11; E2FSPROGS_MONTH="November" ;;
2657 Dec) MONTH_NUM=12; E2FSPROGS_MONTH="December" ;;
2658 *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unknown month $MONTH??" >&5
2659 $as_echo "$as_me: WARNING: Unknown month $MONTH??" >&2;} ;;
2662 base_ver=`echo $E2FSPROGS_VERSION | \
2663 sed -e 's/-WIP//' -e 's/pre-//' -e 's/-PLUS//'`
2665 date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY}
2667 case $E2FSPROGS_VERSION in
2669 E2FSPROGS_PKGVER="$base_ver~WIP-$E2FSPROGS_YEAR-$MONTH_NUM-$E2FSPROGS_DAY"
2672 E2FSPROGS_PKGVER="$base_ver"
2676 unset DATE MONTH YEAR base_ver pre_vers date_spec
2677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&5
2678 $as_echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&6; }
2679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&5
2680 $as_echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&6; }
2686 # Make sure we can run config.sub.
2687 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2688 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2691 $as_echo_n "checking build system type... " >&6; }
2692 if test "${ac_cv_build+set}" = set; then :
2693 $as_echo_n "(cached) " >&6
2695 ac_build_alias=$build_alias
2696 test "x$ac_build_alias" = x &&
2697 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2698 test "x$ac_build_alias" = x &&
2699 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2700 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2701 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2705 $as_echo "$ac_cv_build" >&6; }
2706 case $ac_cv_build in
2708 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2711 ac_save_IFS=$IFS; IFS='-'
2717 # Remember, the first character of IFS is used to create $*,
2718 # except with old shells:
2721 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2725 $as_echo_n "checking host system type... " >&6; }
2726 if test "${ac_cv_host+set}" = set; then :
2727 $as_echo_n "(cached) " >&6
2729 if test "x$host_alias" = x; then
2730 ac_cv_host=$ac_cv_build
2732 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2733 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2738 $as_echo "$ac_cv_host" >&6; }
2741 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2744 ac_save_IFS=$IFS; IFS='-'
2750 # Remember, the first character of IFS is used to create $*,
2751 # except with old shells:
2754 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2759 ac_cpp='$CPP $CPPFLAGS'
2760 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2761 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2762 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2763 if test -n "$ac_tool_prefix"; then
2764 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2765 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2767 $as_echo_n "checking for $ac_word... " >&6; }
2768 if test "${ac_cv_prog_CC+set}" = set; then :
2769 $as_echo_n "(cached) " >&6
2771 if test -n "$CC"; then
2772 ac_cv_prog_CC="$CC" # Let the user override the test.
2774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2778 test -z "$as_dir" && as_dir=.
2779 for ac_exec_ext in '' $ac_executable_extensions; do
2780 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2781 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2792 if test -n "$CC"; then
2793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2794 $as_echo "$CC" >&6; }
2796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2797 $as_echo "no" >&6; }
2802 if test -z "$ac_cv_prog_CC"; then
2804 # Extract the first word of "gcc", so it can be a program name with args.
2805 set dummy gcc; ac_word=$2
2806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2807 $as_echo_n "checking for $ac_word... " >&6; }
2808 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2809 $as_echo_n "(cached) " >&6
2811 if test -n "$ac_ct_CC"; then
2812 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2818 test -z "$as_dir" && as_dir=.
2819 for ac_exec_ext in '' $ac_executable_extensions; do
2820 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2821 ac_cv_prog_ac_ct_CC="gcc"
2822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2831 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2832 if test -n "$ac_ct_CC"; then
2833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2834 $as_echo "$ac_ct_CC" >&6; }
2836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2837 $as_echo "no" >&6; }
2840 if test "x$ac_ct_CC" = x; then
2843 case $cross_compiling:$ac_tool_warned in
2845 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2846 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2847 ac_tool_warned=yes ;;
2855 if test -z "$CC"; then
2856 if test -n "$ac_tool_prefix"; then
2857 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2858 set dummy ${ac_tool_prefix}cc; ac_word=$2
2859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2860 $as_echo_n "checking for $ac_word... " >&6; }
2861 if test "${ac_cv_prog_CC+set}" = set; then :
2862 $as_echo_n "(cached) " >&6
2864 if test -n "$CC"; then
2865 ac_cv_prog_CC="$CC" # Let the user override the test.
2867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2871 test -z "$as_dir" && as_dir=.
2872 for ac_exec_ext in '' $ac_executable_extensions; do
2873 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2874 ac_cv_prog_CC="${ac_tool_prefix}cc"
2875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2885 if test -n "$CC"; then
2886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2887 $as_echo "$CC" >&6; }
2889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2890 $as_echo "no" >&6; }
2896 if test -z "$CC"; then
2897 # Extract the first word of "cc", so it can be a program name with args.
2898 set dummy cc; ac_word=$2
2899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2900 $as_echo_n "checking for $ac_word... " >&6; }
2901 if test "${ac_cv_prog_CC+set}" = set; then :
2902 $as_echo_n "(cached) " >&6
2904 if test -n "$CC"; then
2905 ac_cv_prog_CC="$CC" # Let the user override the test.
2908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2912 test -z "$as_dir" && as_dir=.
2913 for ac_exec_ext in '' $ac_executable_extensions; do
2914 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2915 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2916 ac_prog_rejected=yes
2920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2927 if test $ac_prog_rejected = yes; then
2928 # We found a bogon in the path, so make sure we never use it.
2929 set dummy $ac_cv_prog_CC
2931 if test $# != 0; then
2932 # We chose a different compiler from the bogus one.
2933 # However, it has the same basename, so the bogon will be chosen
2934 # first if we set CC to just the basename; use the full file name.
2936 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2942 if test -n "$CC"; then
2943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2944 $as_echo "$CC" >&6; }
2946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2947 $as_echo "no" >&6; }
2952 if test -z "$CC"; then
2953 if test -n "$ac_tool_prefix"; then
2954 for ac_prog in cl.exe
2956 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2957 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2959 $as_echo_n "checking for $ac_word... " >&6; }
2960 if test "${ac_cv_prog_CC+set}" = set; then :
2961 $as_echo_n "(cached) " >&6
2963 if test -n "$CC"; then
2964 ac_cv_prog_CC="$CC" # Let the user override the test.
2966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2970 test -z "$as_dir" && as_dir=.
2971 for ac_exec_ext in '' $ac_executable_extensions; do
2972 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2973 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2984 if test -n "$CC"; then
2985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2986 $as_echo "$CC" >&6; }
2988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2989 $as_echo "no" >&6; }
2993 test -n "$CC" && break
2996 if test -z "$CC"; then
2998 for ac_prog in cl.exe
3000 # Extract the first word of "$ac_prog", so it can be a program name with args.
3001 set dummy $ac_prog; ac_word=$2
3002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3003 $as_echo_n "checking for $ac_word... " >&6; }
3004 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3005 $as_echo_n "(cached) " >&6
3007 if test -n "$ac_ct_CC"; then
3008 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3014 test -z "$as_dir" && as_dir=.
3015 for ac_exec_ext in '' $ac_executable_extensions; do
3016 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3017 ac_cv_prog_ac_ct_CC="$ac_prog"
3018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3027 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3028 if test -n "$ac_ct_CC"; then
3029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3030 $as_echo "$ac_ct_CC" >&6; }
3032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3033 $as_echo "no" >&6; }
3037 test -n "$ac_ct_CC" && break
3040 if test "x$ac_ct_CC" = x; then
3043 case $cross_compiling:$ac_tool_warned in
3045 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3046 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3047 ac_tool_warned=yes ;;
3056 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3057 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3058 as_fn_error "no acceptable C compiler found in \$PATH
3059 See \`config.log' for more details." "$LINENO" 5; }
3061 # Provide some information about the compiler.
3062 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3065 for ac_option in --version -v -V -qversion; do
3066 { { ac_try="$ac_compiler $ac_option >&5"
3068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3069 *) ac_try_echo=$ac_try;;
3071 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3072 $as_echo "$ac_try_echo"; } >&5
3073 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3075 if test -s conftest.err; then
3077 ... rest of stderr output deleted ...
3078 10q' conftest.err >conftest.er1
3079 cat conftest.er1 >&5
3081 rm -f conftest.er1 conftest.err
3082 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3083 test $ac_status = 0; }
3086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3087 /* end confdefs.h. */
3097 ac_clean_files_save=$ac_clean_files
3098 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3099 # Try to create an executable without -o first, disregard a.out.
3100 # It will help us diagnose broken compilers, and finding out an intuition
3102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3103 $as_echo_n "checking whether the C compiler works... " >&6; }
3104 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3106 # The possible output files:
3107 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3110 for ac_file in $ac_files
3113 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3114 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3119 if { { ac_try="$ac_link_default"
3121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3122 *) ac_try_echo=$ac_try;;
3124 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3125 $as_echo "$ac_try_echo"; } >&5
3126 (eval "$ac_link_default") 2>&5
3128 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3129 test $ac_status = 0; }; then :
3130 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3131 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3132 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3133 # so that the user can short-circuit this test for compilers unknown to
3135 for ac_file in $ac_files ''
3137 test -f "$ac_file" || continue
3139 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3142 # We found the default executable, but exeext='' is most
3146 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3148 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3150 # We set ac_cv_exeext here because the later test for it is not
3151 # safe: cross compilers may not add the suffix if given an `-o'
3152 # argument, so we may need to know it at that point already.
3153 # Even if this section looks crufty: it has the advantage of
3160 test "$ac_cv_exeext" = no && ac_cv_exeext=
3165 if test -z "$ac_file"; then :
3166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3167 $as_echo "no" >&6; }
3168 $as_echo "$as_me: failed program was:" >&5
3169 sed 's/^/| /' conftest.$ac_ext >&5
3171 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3172 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3173 { as_fn_set_status 77
3174 as_fn_error "C compiler cannot create executables
3175 See \`config.log' for more details." "$LINENO" 5; }; }
3177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3178 $as_echo "yes" >&6; }
3180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3181 $as_echo_n "checking for C compiler default output file name... " >&6; }
3182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3183 $as_echo "$ac_file" >&6; }
3184 ac_exeext=$ac_cv_exeext
3186 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3187 ac_clean_files=$ac_clean_files_save
3188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3189 $as_echo_n "checking for suffix of executables... " >&6; }
3190 if { { ac_try="$ac_link"
3192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3193 *) ac_try_echo=$ac_try;;
3195 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3196 $as_echo "$ac_try_echo"; } >&5
3197 (eval "$ac_link") 2>&5
3199 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3200 test $ac_status = 0; }; then :
3201 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3202 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3203 # work properly (i.e., refer to `conftest.exe'), while it won't with
3205 for ac_file in conftest.exe conftest conftest.*; do
3206 test -f "$ac_file" || continue
3208 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3209 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3215 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3216 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3217 as_fn_error "cannot compute suffix of executables: cannot compile and link
3218 See \`config.log' for more details." "$LINENO" 5; }
3220 rm -f conftest conftest$ac_cv_exeext
3221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3222 $as_echo "$ac_cv_exeext" >&6; }
3224 rm -f conftest.$ac_ext
3225 EXEEXT=$ac_cv_exeext
3227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3228 /* end confdefs.h. */
3233 FILE *f = fopen ("conftest.out", "w");
3234 return ferror (f) || fclose (f) != 0;
3240 ac_clean_files="$ac_clean_files conftest.out"
3241 # Check that the compiler produces executables we can run. If not, either
3242 # the compiler is broken, or we cross compile.
3243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3244 $as_echo_n "checking whether we are cross compiling... " >&6; }
3245 if test "$cross_compiling" != yes; then
3246 { { ac_try="$ac_link"
3248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3249 *) ac_try_echo=$ac_try;;
3251 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3252 $as_echo "$ac_try_echo"; } >&5
3253 (eval "$ac_link") 2>&5
3255 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3256 test $ac_status = 0; }
3257 if { ac_try='./conftest$ac_cv_exeext'
3258 { { case "(($ac_try" in
3259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3260 *) ac_try_echo=$ac_try;;
3262 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3263 $as_echo "$ac_try_echo"; } >&5
3264 (eval "$ac_try") 2>&5
3266 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3267 test $ac_status = 0; }; }; then
3270 if test "$cross_compiling" = maybe; then
3273 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3274 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3275 as_fn_error "cannot run C compiled programs.
3276 If you meant to cross compile, use \`--host'.
3277 See \`config.log' for more details." "$LINENO" 5; }
3281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3282 $as_echo "$cross_compiling" >&6; }
3284 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3285 ac_clean_files=$ac_clean_files_save
3286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3287 $as_echo_n "checking for suffix of object files... " >&6; }
3288 if test "${ac_cv_objext+set}" = set; then :
3289 $as_echo_n "(cached) " >&6
3291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3292 /* end confdefs.h. */
3302 rm -f conftest.o conftest.obj
3303 if { { ac_try="$ac_compile"
3305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3306 *) ac_try_echo=$ac_try;;
3308 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3309 $as_echo "$ac_try_echo"; } >&5
3310 (eval "$ac_compile") 2>&5
3312 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3313 test $ac_status = 0; }; then :
3314 for ac_file in conftest.o conftest.obj conftest.*; do
3315 test -f "$ac_file" || continue;
3317 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3318 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3323 $as_echo "$as_me: failed program was:" >&5
3324 sed 's/^/| /' conftest.$ac_ext >&5
3326 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3327 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3328 as_fn_error "cannot compute suffix of object files: cannot compile
3329 See \`config.log' for more details." "$LINENO" 5; }
3331 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3334 $as_echo "$ac_cv_objext" >&6; }
3335 OBJEXT=$ac_cv_objext
3337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3338 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3339 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3340 $as_echo_n "(cached) " >&6
3342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3343 /* end confdefs.h. */
3356 if ac_fn_c_try_compile "$LINENO"; then :
3361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3362 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3366 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3367 if test $ac_compiler_gnu = yes; then
3372 ac_test_CFLAGS=${CFLAGS+set}
3373 ac_save_CFLAGS=$CFLAGS
3374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3375 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3376 if test "${ac_cv_prog_cc_g+set}" = set; then :
3377 $as_echo_n "(cached) " >&6
3379 ac_save_c_werror_flag=$ac_c_werror_flag
3380 ac_c_werror_flag=yes
3383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3384 /* end confdefs.h. */
3394 if ac_fn_c_try_compile "$LINENO"; then :
3398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3399 /* end confdefs.h. */
3409 if ac_fn_c_try_compile "$LINENO"; then :
3412 ac_c_werror_flag=$ac_save_c_werror_flag
3414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3415 /* end confdefs.h. */
3425 if ac_fn_c_try_compile "$LINENO"; then :
3428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3433 ac_c_werror_flag=$ac_save_c_werror_flag
3435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3436 $as_echo "$ac_cv_prog_cc_g" >&6; }
3437 if test "$ac_test_CFLAGS" = set; then
3438 CFLAGS=$ac_save_CFLAGS
3439 elif test $ac_cv_prog_cc_g = yes; then
3440 if test "$GCC" = yes; then
3446 if test "$GCC" = yes; then
3452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3453 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3454 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3455 $as_echo_n "(cached) " >&6
3457 ac_cv_prog_cc_c89=no
3459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3460 /* end confdefs.h. */
3463 #include <sys/types.h>
3464 #include <sys/stat.h>
3465 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3466 struct buf { int x; };
3467 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3468 static char *e (p, i)
3474 static char *f (char * (*g) (char **, int), char **p, ...)
3479 s = g (p, va_arg (v,int));
3484 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3485 function prototypes and stuff, but not '\xHH' hex character constants.
3486 These don't provoke an error unfortunately, instead are silently treated
3487 as 'x'. The following induces an error, until -std is added to get
3488 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3489 array size at least. It's necessary to write '\x00'==0 to get something
3490 that's true only with -std. */
3491 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3493 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3494 inside strings and character constants. */
3496 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3498 int test (int i, double x);
3499 struct s1 {int (*f) (int a);};
3500 struct s2 {int (*f) (double a);};
3501 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3507 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3512 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3513 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3515 CC="$ac_save_CC $ac_arg"
3516 if ac_fn_c_try_compile "$LINENO"; then :
3517 ac_cv_prog_cc_c89=$ac_arg
3519 rm -f core conftest.err conftest.$ac_objext
3520 test "x$ac_cv_prog_cc_c89" != "xno" && break
3522 rm -f conftest.$ac_ext
3527 case "x$ac_cv_prog_cc_c89" in
3529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3530 $as_echo "none needed" >&6; } ;;
3532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3533 $as_echo "unsupported" >&6; } ;;
3535 CC="$CC $ac_cv_prog_cc_c89"
3536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3537 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3539 if test "x$ac_cv_prog_cc_c89" != xno; then :
3544 ac_cpp='$CPP $CPPFLAGS'
3545 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3546 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3547 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
3551 $as_echo_n "checking for dlopen in -ldl... " >&6; }
3552 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
3553 $as_echo_n "(cached) " >&6
3555 ac_check_lib_save_LIBS=$LIBS
3557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3558 /* end confdefs.h. */
3560 /* Override any GCC internal prototype to avoid an error.
3561 Use char because int might match the return type of a GCC
3562 builtin and then its argument prototype would still apply. */
3575 if ac_fn_c_try_link "$LINENO"; then :
3576 ac_cv_lib_dl_dlopen=yes
3578 ac_cv_lib_dl_dlopen=no
3580 rm -f core conftest.err conftest.$ac_objext \
3581 conftest$ac_exeext conftest.$ac_ext
3582 LIBS=$ac_check_lib_save_LIBS
3584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
3585 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
3586 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
3588 $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
3595 # Check whether --with-diet-libc was given.
3596 if test "${with_diet_libc+set}" = set; then :
3597 withval=$with_diet_libc; CC="diet cc -nostdinc"
3599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: CC=$CC" >&5
3600 $as_echo "CC=$CC" >&6; }
3603 # Check whether --with-cc was given.
3604 if test "${with_cc+set}" = set; then :
3605 withval=$with_cc; as_fn_error "--with-cc no longer supported; use CC= instead" "$LINENO" 5
3609 # Check whether --with-ccopts was given.
3610 if test "${with_ccopts+set}" = set; then :
3611 withval=$with_ccopts; as_fn_error "--with-ccopts no longer supported; use CFLAGS= instead" "$LINENO" 5
3615 # Check whether --with-ldopts was given.
3616 if test "${with_ldopts+set}" = set; then :
3617 withval=$with_ldopts; as_fn_error "--with-ldopts no longer supported; use LDFLAGS= instead" "$LINENO" 5
3621 ac_cpp='$CPP $CPPFLAGS'
3622 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3623 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3624 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3625 if test -n "$ac_tool_prefix"; then
3626 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3627 set dummy ${ac_tool_prefix}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_CC+set}" = set; then :
3631 $as_echo_n "(cached) " >&6
3633 if test -n "$CC"; then
3634 ac_cv_prog_CC="$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_CC="${ac_tool_prefix}gcc"
3644 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3654 if test -n "$CC"; then
3655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3656 $as_echo "$CC" >&6; }
3658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3659 $as_echo "no" >&6; }
3664 if test -z "$ac_cv_prog_CC"; then
3666 # Extract the first word of "gcc", so it can be a program name with args.
3667 set dummy gcc; ac_word=$2
3668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3669 $as_echo_n "checking for $ac_word... " >&6; }
3670 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3671 $as_echo_n "(cached) " >&6
3673 if test -n "$ac_ct_CC"; then
3674 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3680 test -z "$as_dir" && as_dir=.
3681 for ac_exec_ext in '' $ac_executable_extensions; do
3682 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3683 ac_cv_prog_ac_ct_CC="gcc"
3684 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3693 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3694 if test -n "$ac_ct_CC"; then
3695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3696 $as_echo "$ac_ct_CC" >&6; }
3698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3699 $as_echo "no" >&6; }
3702 if test "x$ac_ct_CC" = x; then
3705 case $cross_compiling:$ac_tool_warned in
3707 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3708 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3709 ac_tool_warned=yes ;;
3717 if test -z "$CC"; then
3718 if test -n "$ac_tool_prefix"; then
3719 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3720 set dummy ${ac_tool_prefix}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.
3729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3733 test -z "$as_dir" && as_dir=.
3734 for ac_exec_ext in '' $ac_executable_extensions; do
3735 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3736 ac_cv_prog_CC="${ac_tool_prefix}cc"
3737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3747 if test -n "$CC"; then
3748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3749 $as_echo "$CC" >&6; }
3751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3752 $as_echo "no" >&6; }
3758 if test -z "$CC"; then
3759 # Extract the first word of "cc", so it can be a program name with args.
3760 set dummy cc; ac_word=$2
3761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3762 $as_echo_n "checking for $ac_word... " >&6; }
3763 if test "${ac_cv_prog_CC+set}" = set; then :
3764 $as_echo_n "(cached) " >&6
3766 if test -n "$CC"; then
3767 ac_cv_prog_CC="$CC" # Let the user override the test.
3770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3774 test -z "$as_dir" && as_dir=.
3775 for ac_exec_ext in '' $ac_executable_extensions; do
3776 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3777 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3778 ac_prog_rejected=yes
3782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3789 if test $ac_prog_rejected = yes; then
3790 # We found a bogon in the path, so make sure we never use it.
3791 set dummy $ac_cv_prog_CC
3793 if test $# != 0; then
3794 # We chose a different compiler from the bogus one.
3795 # However, it has the same basename, so the bogon will be chosen
3796 # first if we set CC to just the basename; use the full file name.
3798 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3804 if test -n "$CC"; then
3805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3806 $as_echo "$CC" >&6; }
3808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3809 $as_echo "no" >&6; }
3814 if test -z "$CC"; then
3815 if test -n "$ac_tool_prefix"; then
3816 for ac_prog in cl.exe
3818 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3819 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3821 $as_echo_n "checking for $ac_word... " >&6; }
3822 if test "${ac_cv_prog_CC+set}" = set; then :
3823 $as_echo_n "(cached) " >&6
3825 if test -n "$CC"; then
3826 ac_cv_prog_CC="$CC" # Let the user override the test.
3828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3832 test -z "$as_dir" && as_dir=.
3833 for ac_exec_ext in '' $ac_executable_extensions; do
3834 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3835 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3846 if test -n "$CC"; then
3847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3848 $as_echo "$CC" >&6; }
3850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3851 $as_echo "no" >&6; }
3855 test -n "$CC" && break
3858 if test -z "$CC"; then
3860 for ac_prog in cl.exe
3862 # Extract the first word of "$ac_prog", so it can be a program name with args.
3863 set dummy $ac_prog; ac_word=$2
3864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3865 $as_echo_n "checking for $ac_word... " >&6; }
3866 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3867 $as_echo_n "(cached) " >&6
3869 if test -n "$ac_ct_CC"; then
3870 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3876 test -z "$as_dir" && as_dir=.
3877 for ac_exec_ext in '' $ac_executable_extensions; do
3878 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3879 ac_cv_prog_ac_ct_CC="$ac_prog"
3880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3889 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3890 if test -n "$ac_ct_CC"; then
3891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3892 $as_echo "$ac_ct_CC" >&6; }
3894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3895 $as_echo "no" >&6; }
3899 test -n "$ac_ct_CC" && break
3902 if test "x$ac_ct_CC" = x; then
3905 case $cross_compiling:$ac_tool_warned in
3907 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3908 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3909 ac_tool_warned=yes ;;
3918 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3919 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3920 as_fn_error "no acceptable C compiler found in \$PATH
3921 See \`config.log' for more details." "$LINENO" 5; }
3923 # Provide some information about the compiler.
3924 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3927 for ac_option in --version -v -V -qversion; do
3928 { { ac_try="$ac_compiler $ac_option >&5"
3930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3931 *) ac_try_echo=$ac_try;;
3933 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3934 $as_echo "$ac_try_echo"; } >&5
3935 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3937 if test -s conftest.err; then
3939 ... rest of stderr output deleted ...
3940 10q' conftest.err >conftest.er1
3941 cat conftest.er1 >&5
3943 rm -f conftest.er1 conftest.err
3944 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3945 test $ac_status = 0; }
3948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3949 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3950 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3951 $as_echo_n "(cached) " >&6
3953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3954 /* end confdefs.h. */
3967 if ac_fn_c_try_compile "$LINENO"; then :
3972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3973 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3977 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3978 if test $ac_compiler_gnu = yes; then
3983 ac_test_CFLAGS=${CFLAGS+set}
3984 ac_save_CFLAGS=$CFLAGS
3985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3986 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3987 if test "${ac_cv_prog_cc_g+set}" = set; then :
3988 $as_echo_n "(cached) " >&6
3990 ac_save_c_werror_flag=$ac_c_werror_flag
3991 ac_c_werror_flag=yes
3994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3995 /* end confdefs.h. */
4005 if ac_fn_c_try_compile "$LINENO"; then :
4009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4010 /* end confdefs.h. */
4020 if ac_fn_c_try_compile "$LINENO"; then :
4023 ac_c_werror_flag=$ac_save_c_werror_flag
4025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4026 /* end confdefs.h. */
4036 if ac_fn_c_try_compile "$LINENO"; then :
4039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4044 ac_c_werror_flag=$ac_save_c_werror_flag
4046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4047 $as_echo "$ac_cv_prog_cc_g" >&6; }
4048 if test "$ac_test_CFLAGS" = set; then
4049 CFLAGS=$ac_save_CFLAGS
4050 elif test $ac_cv_prog_cc_g = yes; then
4051 if test "$GCC" = yes; then
4057 if test "$GCC" = yes; then
4063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4064 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4065 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4066 $as_echo_n "(cached) " >&6
4068 ac_cv_prog_cc_c89=no
4070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4071 /* end confdefs.h. */
4074 #include <sys/types.h>
4075 #include <sys/stat.h>
4076 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4077 struct buf { int x; };
4078 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4079 static char *e (p, i)
4085 static char *f (char * (*g) (char **, int), char **p, ...)
4090 s = g (p, va_arg (v,int));
4095 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4096 function prototypes and stuff, but not '\xHH' hex character constants.
4097 These don't provoke an error unfortunately, instead are silently treated
4098 as 'x'. The following induces an error, until -std is added to get
4099 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4100 array size at least. It's necessary to write '\x00'==0 to get something
4101 that's true only with -std. */
4102 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4104 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4105 inside strings and character constants. */
4107 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4109 int test (int i, double x);
4110 struct s1 {int (*f) (int a);};
4111 struct s2 {int (*f) (double a);};
4112 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4118 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4123 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4124 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4126 CC="$ac_save_CC $ac_arg"
4127 if ac_fn_c_try_compile "$LINENO"; then :
4128 ac_cv_prog_cc_c89=$ac_arg
4130 rm -f core conftest.err conftest.$ac_objext
4131 test "x$ac_cv_prog_cc_c89" != "xno" && break
4133 rm -f conftest.$ac_ext
4138 case "x$ac_cv_prog_cc_c89" in
4140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4141 $as_echo "none needed" >&6; } ;;
4143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4144 $as_echo "unsupported" >&6; } ;;
4146 CC="$CC $ac_cv_prog_cc_c89"
4147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4148 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4150 if test "x$ac_cv_prog_cc_c89" != xno; then :
4155 ac_cpp='$CPP $CPPFLAGS'
4156 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4157 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4158 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4161 ac_cpp='$CPP $CPPFLAGS'
4162 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4163 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4164 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4166 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4167 # On Suns, sometimes $CPP names a directory.
4168 if test -n "$CPP" && test -d "$CPP"; then
4171 if test -z "$CPP"; then
4172 if test "${ac_cv_prog_CPP+set}" = set; then :
4173 $as_echo_n "(cached) " >&6
4175 # Double quotes because CPP needs to be expanded
4176 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4179 for ac_c_preproc_warn_flag in '' yes
4181 # Use a header file that comes with gcc, so configuring glibc
4182 # with a fresh cross-compiler works.
4183 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4184 # <limits.h> exists even on freestanding compilers.
4185 # On the NeXT, cc -E runs the code through the compiler's parser,
4186 # not just through cpp. "Syntax error" is here to catch this case.
4187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4188 /* end confdefs.h. */
4190 # include <limits.h>
4192 # include <assert.h>
4196 if ac_fn_c_try_cpp "$LINENO"; then :
4199 # Broken: fails on valid input.
4202 rm -f conftest.err conftest.$ac_ext
4204 # OK, works on sane cases. Now check whether nonexistent headers
4205 # can be detected and how.
4206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4207 /* end confdefs.h. */
4208 #include <ac_nonexistent.h>
4210 if ac_fn_c_try_cpp "$LINENO"; then :
4211 # Broken: success on invalid input.
4214 # Passes both tests.
4218 rm -f conftest.err conftest.$ac_ext
4221 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4222 rm -f conftest.err conftest.$ac_ext
4223 if $ac_preproc_ok; then :
4235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4236 $as_echo "$CPP" >&6; }
4238 for ac_c_preproc_warn_flag in '' yes
4240 # Use a header file that comes with gcc, so configuring glibc
4241 # with a fresh cross-compiler works.
4242 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4243 # <limits.h> exists even on freestanding compilers.
4244 # On the NeXT, cc -E runs the code through the compiler's parser,
4245 # not just through cpp. "Syntax error" is here to catch this case.
4246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4247 /* end confdefs.h. */
4249 # include <limits.h>
4251 # include <assert.h>
4255 if ac_fn_c_try_cpp "$LINENO"; then :
4258 # Broken: fails on valid input.
4261 rm -f conftest.err conftest.$ac_ext
4263 # OK, works on sane cases. Now check whether nonexistent headers
4264 # can be detected and how.
4265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4266 /* end confdefs.h. */
4267 #include <ac_nonexistent.h>
4269 if ac_fn_c_try_cpp "$LINENO"; then :
4270 # Broken: success on invalid input.
4273 # Passes both tests.
4277 rm -f conftest.err conftest.$ac_ext
4280 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4281 rm -f conftest.err conftest.$ac_ext
4282 if $ac_preproc_ok; then :
4285 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4286 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4287 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4288 See \`config.log' for more details." "$LINENO" 5; }
4292 ac_cpp='$CPP $CPPFLAGS'
4293 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4294 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4295 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4299 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4300 if test "${ac_cv_path_GREP+set}" = set; then :
4301 $as_echo_n "(cached) " >&6
4303 if test -z "$GREP"; then
4304 ac_path_GREP_found=false
4305 # Loop through the user's path and test for each of PROGNAME-LIST
4306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4307 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4310 test -z "$as_dir" && as_dir=.
4311 for ac_prog in grep ggrep; do
4312 for ac_exec_ext in '' $ac_executable_extensions; do
4313 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4314 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4315 # Check for GNU ac_path_GREP and select it if it is found.
4316 # Check for GNU $ac_path_GREP
4317 case `"$ac_path_GREP" --version 2>&1` in
4319 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4322 $as_echo_n 0123456789 >"conftest.in"
4325 cat "conftest.in" "conftest.in" >"conftest.tmp"
4326 mv "conftest.tmp" "conftest.in"
4327 cp "conftest.in" "conftest.nl"
4328 $as_echo 'GREP' >> "conftest.nl"
4329 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4330 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4331 as_fn_arith $ac_count + 1 && ac_count=$as_val
4332 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4333 # Best one so far, save it but keep looking for a better one
4334 ac_cv_path_GREP="$ac_path_GREP"
4335 ac_path_GREP_max=$ac_count
4337 # 10*(2^10) chars as input seems more than enough
4338 test $ac_count -gt 10 && break
4340 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4343 $ac_path_GREP_found && break 3
4348 if test -z "$ac_cv_path_GREP"; then
4349 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4352 ac_cv_path_GREP=$GREP
4356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4357 $as_echo "$ac_cv_path_GREP" >&6; }
4358 GREP="$ac_cv_path_GREP"
4361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4362 $as_echo_n "checking for egrep... " >&6; }
4363 if test "${ac_cv_path_EGREP+set}" = set; then :
4364 $as_echo_n "(cached) " >&6
4366 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4367 then ac_cv_path_EGREP="$GREP -E"
4369 if test -z "$EGREP"; then
4370 ac_path_EGREP_found=false
4371 # Loop through the user's path and test for each of PROGNAME-LIST
4372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4373 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4376 test -z "$as_dir" && as_dir=.
4377 for ac_prog in egrep; do
4378 for ac_exec_ext in '' $ac_executable_extensions; do
4379 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4380 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4381 # Check for GNU ac_path_EGREP and select it if it is found.
4382 # Check for GNU $ac_path_EGREP
4383 case `"$ac_path_EGREP" --version 2>&1` in
4385 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4388 $as_echo_n 0123456789 >"conftest.in"
4391 cat "conftest.in" "conftest.in" >"conftest.tmp"
4392 mv "conftest.tmp" "conftest.in"
4393 cp "conftest.in" "conftest.nl"
4394 $as_echo 'EGREP' >> "conftest.nl"
4395 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4396 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4397 as_fn_arith $ac_count + 1 && ac_count=$as_val
4398 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4399 # Best one so far, save it but keep looking for a better one
4400 ac_cv_path_EGREP="$ac_path_EGREP"
4401 ac_path_EGREP_max=$ac_count
4403 # 10*(2^10) chars as input seems more than enough
4404 test $ac_count -gt 10 && break
4406 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4409 $ac_path_EGREP_found && break 3
4414 if test -z "$ac_cv_path_EGREP"; then
4415 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4418 ac_cv_path_EGREP=$EGREP
4423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4424 $as_echo "$ac_cv_path_EGREP" >&6; }
4425 EGREP="$ac_cv_path_EGREP"
4428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4429 $as_echo_n "checking for ANSI C header files... " >&6; }
4430 if test "${ac_cv_header_stdc+set}" = set; then :
4431 $as_echo_n "(cached) " >&6
4433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4434 /* end confdefs.h. */
4448 if ac_fn_c_try_compile "$LINENO"; then :
4449 ac_cv_header_stdc=yes
4451 ac_cv_header_stdc=no
4453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4455 if test $ac_cv_header_stdc = yes; then
4456 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4458 /* end confdefs.h. */
4462 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4463 $EGREP "memchr" >/dev/null 2>&1; then :
4466 ac_cv_header_stdc=no
4472 if test $ac_cv_header_stdc = yes; then
4473 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4475 /* end confdefs.h. */
4479 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4480 $EGREP "free" >/dev/null 2>&1; then :
4483 ac_cv_header_stdc=no
4489 if test $ac_cv_header_stdc = yes; then
4490 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4491 if test "$cross_compiling" = yes; then :
4494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4495 /* end confdefs.h. */
4498 #if ((' ' & 0x0FF) == 0x020)
4499 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4500 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4502 # define ISLOWER(c) \
4503 (('a' <= (c) && (c) <= 'i') \
4504 || ('j' <= (c) && (c) <= 'r') \
4505 || ('s' <= (c) && (c) <= 'z'))
4506 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4509 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4514 for (i = 0; i < 256; i++)
4515 if (XOR (islower (i), ISLOWER (i))
4516 || toupper (i) != TOUPPER (i))
4521 if ac_fn_c_try_run "$LINENO"; then :
4524 ac_cv_header_stdc=no
4526 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4527 conftest.$ac_objext conftest.beam conftest.$ac_ext
4532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4533 $as_echo "$ac_cv_header_stdc" >&6; }
4534 if test $ac_cv_header_stdc = yes; then
4536 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4540 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4541 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4542 inttypes.h stdint.h unistd.h
4544 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4545 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4547 eval as_val=\$$as_ac_Header
4548 if test "x$as_val" = x""yes; then :
4549 cat >>confdefs.h <<_ACEOF
4550 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4558 ac_fn_c_check_header_mongrel "$LINENO" "linux/fs.h" "ac_cv_header_linux_fs_h" "$ac_includes_default"
4559 if test "x$ac_cv_header_linux_fs_h" = x""yes; then :
4566 if test "$linux_headers" != yes; then
4567 LINUX_INCLUDE='-I$(top_builddir)/include'
4570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for additional special compiler flags" >&5
4571 $as_echo_n "checking for additional special compiler flags... " >&6; }
4572 if test "$GCC" = yes
4575 alpha) addcflags="-mieee" ;;
4578 if test "x$addcflags" != x
4580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $addcflags" >&5
4581 $as_echo "$addcflags" >&6; }
4582 CFLAGS="$addcflags $CFLAGS"
4584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (none)" >&5
4585 $as_echo "(none)" >&6; }
4591 # Check whether --with-root-prefix was given.
4592 if test "${with_root_prefix+set}" = set; then :
4593 withval=$with_root_prefix; root_prefix=$withval
4597 # Check whether --enable-maintainer-mode was given.
4598 if test "${enable_maintainer_mode+set}" = set; then :
4599 enableval=$enable_maintainer_mode; if test "$enableval" = "no"
4602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode" >&5
4603 $as_echo "Disabling maintainer mode" >&6; }
4606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling maintainer mode" >&5
4607 $as_echo "Enabling maintainer mode" >&6; }
4612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode by default" >&5
4613 $as_echo "Disabling maintainer mode by default" >&6; }
4618 # Check whether --enable-symlink-install was given.
4619 if test "${enable_symlink_install+set}" = set; then :
4620 enableval=$enable_symlink_install; if test "$enableval" = "no"
4622 LINK_INSTALL_FLAGS=-f
4623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install" >&5
4624 $as_echo "Disabling symlinks for install" >&6; }
4626 LINK_INSTALL_FLAGS=-sf
4627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for install" >&5
4628 $as_echo "Enabling symlinks for install" >&6; }
4632 LINK_INSTALL_FLAGS=-f
4633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install" >&5
4634 $as_echo "Disabling symlinks for install" >&6; }
4639 # Check whether --enable-symlink-build was given.
4640 if test "${enable_symlink_build+set}" = set; then :
4641 enableval=$enable_symlink_build; if test "$enableval" = "no"
4644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build" >&5
4645 $as_echo "Disabling symlinks for build" >&6; }
4648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for build" >&5
4649 $as_echo "Enabling symlinks for build" >&6; }
4654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build" >&5
4655 $as_echo "Disabling symlinks for build" >&6; }
4660 # Check whether --enable-verbose-makecmds was given.
4661 if test "${enable_verbose_makecmds+set}" = set; then :
4662 enableval=$enable_verbose_makecmds; if test "$enableval" = "no"
4664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
4665 $as_echo "Disabling verbose make commands" >&6; }
4669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling verbose make commands" >&5
4670 $as_echo "Enabling verbose make commands" >&6; }
4676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
4677 $as_echo "Disabling verbose make commands" >&6; }
4685 # Check whether --enable-compression was given.
4686 if test "${enable_compression+set}" = set; then :
4687 enableval=$enable_compression; if test "$enableval" = "no"
4689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling compression support" >&5
4690 $as_echo "Disabling compression support" >&6; }
4692 $as_echo "#define ENABLE_COMPRESSION 1" >>confdefs.h
4694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling compression support" >&5
4695 $as_echo "Enabling compression support" >&6; }
4696 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Compression support is experimental" >&5
4697 $as_echo "$as_me: WARNING: Compression support is experimental" >&2;}
4701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling compression support by default" >&5
4702 $as_echo "Disabling compression support by default" >&6; }
4706 # Check whether --enable-htree was given.
4707 if test "${enable_htree+set}" = set; then :
4708 enableval=$enable_htree; if test "$enableval" = "no"
4711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling htree directory support" >&5
4712 $as_echo "Disabling htree directory support" >&6; }
4715 $as_echo "#define ENABLE_HTREE 1" >>confdefs.h
4717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling htree directory support" >&5
4718 $as_echo "Enabling htree directory support" >&6; }
4723 $as_echo "#define ENABLE_HTREE 1" >>confdefs.h
4725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling htree directory support by default" >&5
4726 $as_echo "Enabling htree directory support by default" >&6; }
4731 E2_PKG_CONFIG_STATIC=--static
4734 # Check whether --enable-elf-shlibs was given.
4735 if test "${enable_elf_shlibs+set}" = set; then :
4736 enableval=$enable_elf_shlibs; if test "$enableval" = "no"
4739 MAKEFILE_ELF=/dev/null
4740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries" >&5
4741 $as_echo "Disabling ELF shared libraries" >&6; }
4743 E2_PKG_CONFIG_STATIC=
4745 MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
4748 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
4754 LDFLAG_DYNAMIC='-Wl,-rpath-link,$(top_builddir)/lib'
4755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling ELF shared libraries" >&5
4756 $as_echo "Enabling ELF shared libraries" >&6; }
4760 MAKEFILE_ELF=/dev/null
4762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries by default" >&5
4763 $as_echo "Disabling ELF shared libraries by default" >&6; }
4769 # Check whether --enable-bsd-shlibs was given.
4770 if test "${enable_bsd_shlibs+set}" = set; then :
4771 enableval=$enable_bsd_shlibs; if test "$enableval" = "no"
4774 MAKEFILE_BSDLIB=/dev/null
4775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries" >&5
4776 $as_echo "Disabling BSD shared libraries" >&6; }
4778 E2_PKG_CONFIG_STATIC=
4780 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
4784 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib
4788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling BSD shared libraries" >&5
4789 $as_echo "Enabling BSD shared libraries" >&6; }
4793 MAKEFILE_BSDLIB=/dev/null
4795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries by default" >&5
4796 $as_echo "Disabling BSD shared libraries by default" >&6; }
4802 # Check whether --enable-profile was given.
4803 if test "${enable_profile+set}" = set; then :
4804 enableval=$enable_profile; if test "$enableval" = "no"
4807 MAKEFILE_PROFILE=/dev/null
4808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries" >&5
4809 $as_echo "Disabling profiling libraries" >&6; }
4812 MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
4813 PROFILED_LIB_EXT=_p.a
4814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building profiling libraries" >&5
4815 $as_echo "Building profiling libraries" >&6; }
4820 MAKEFILE_PROFILE=/dev/null
4821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries by default" >&5
4822 $as_echo "Disabling profiling libraries by default" >&6; }
4828 # Check whether --enable-checker was given.
4829 if test "${enable_checker+set}" = set; then :
4830 enableval=$enable_checker; if test "$enableval" = "no"
4833 MAKEFILE_CHECKER=/dev/null
4834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling checker libraries" >&5
4835 $as_echo "Disabling checker libraries" >&6; }
4838 MAKEFILE_CHECKER=$srcdir/lib/Makefile.checker
4839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building checker libraries" >&5
4840 $as_echo "Building checker libraries" >&6; }
4845 MAKEFILE_CHECKER=/dev/null
4846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling checker libraries by default" >&5
4847 $as_echo "Disabling checker libraries by default" >&6; }
4858 # Check whether --enable-jbd-debug was given.
4859 if test "${enable_jbd_debug+set}" = set; then :
4860 enableval=$enable_jbd_debug; if test "$enableval" = "no"
4862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging" >&5
4863 $as_echo "Disabling journal debugging" >&6; }
4865 $as_echo "#define CONFIG_JBD_DEBUG 1" >>confdefs.h
4867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling journal debugging" >&5
4868 $as_echo "Enabling journal debugging" >&6; }
4872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging by default" >&5
4873 $as_echo "Disabling journal debugging by default" >&6; }
4877 # Check whether --enable-blkid-debug was given.
4878 if test "${enable_blkid_debug+set}" = set; then :
4879 enableval=$enable_blkid_debug; if test "$enableval" = "no"
4881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging" >&5
4882 $as_echo "Disabling blkid debugging" >&6; }
4884 $as_echo "#define CONFIG_BLKID_DEBUG 1" >>confdefs.h
4886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling blkid debugging" >&5
4887 $as_echo "Enabling blkid debugging" >&6; }
4891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging by default" >&5
4892 $as_echo "Disabling blkid debugging by default" >&6; }
4896 # Check whether --enable-testio-debug was given.
4897 if test "${enable_testio_debug+set}" = set; then :
4898 enableval=$enable_testio_debug; if test "$enableval" = "no"
4900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling testio debugging" >&5
4901 $as_echo "Disabling testio debugging" >&6; }
4905 $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
4907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging" >&5
4908 $as_echo "Enabling testio debugging" >&6; }
4912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging by default" >&5
4913 $as_echo "Enabling testio debugging by default" >&6; }
4914 $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
4923 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4924 if test -n "$ac_tool_prefix"; then
4925 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4926 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4928 $as_echo_n "checking for $ac_word... " >&6; }
4929 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
4930 $as_echo_n "(cached) " >&6
4934 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4941 test -z "$as_dir" && as_dir=.
4942 for ac_exec_ext in '' $ac_executable_extensions; do
4943 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4944 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4955 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4956 if test -n "$PKG_CONFIG"; then
4957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4958 $as_echo "$PKG_CONFIG" >&6; }
4960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4961 $as_echo "no" >&6; }
4966 if test -z "$ac_cv_path_PKG_CONFIG"; then
4967 ac_pt_PKG_CONFIG=$PKG_CONFIG
4968 # Extract the first word of "pkg-config", so it can be a program name with args.
4969 set dummy pkg-config; ac_word=$2
4970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4971 $as_echo_n "checking for $ac_word... " >&6; }
4972 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
4973 $as_echo_n "(cached) " >&6
4975 case $ac_pt_PKG_CONFIG in
4977 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4984 test -z "$as_dir" && as_dir=.
4985 for ac_exec_ext in '' $ac_executable_extensions; do
4986 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4987 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4988 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4998 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4999 if test -n "$ac_pt_PKG_CONFIG"; then
5000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5001 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5004 $as_echo "no" >&6; }
5007 if test "x$ac_pt_PKG_CONFIG" = x; then
5010 case $cross_compiling:$ac_tool_warned in
5012 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5013 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5014 ac_tool_warned=yes ;;
5016 PKG_CONFIG=$ac_pt_PKG_CONFIG
5019 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5023 if test -n "$PKG_CONFIG"; then
5024 _pkg_min_version=0.9.0
5025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5026 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5027 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5029 $as_echo "yes" >&6; }
5031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5032 $as_echo "no" >&6; }
5042 DEPPROFILED_LIBUUID=
5044 # Check whether --enable-libuuid was given.
5045 if test "${enable_libuuid+set}" = set; then :
5046 enableval=$enable_libuuid; if test "$enableval" = "no"
5048 if test -z "$PKG_CONFIG"; then
5049 as_fn_error "pkg-config not installed; please install it." "$LINENO" 5
5052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
5053 $as_echo_n "checking for uuid_generate in -luuid... " >&6; }
5054 if test "${ac_cv_lib_uuid_uuid_generate+set}" = set; then :
5055 $as_echo_n "(cached) " >&6
5057 ac_check_lib_save_LIBS=$LIBS
5058 LIBS="-luuid $LIBUUID $LIBS"
5059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5060 /* end confdefs.h. */
5062 /* Override any GCC internal prototype to avoid an error.
5063 Use char because int might match the return type of a GCC
5064 builtin and then its argument prototype would still apply. */
5068 char uuid_generate ();
5072 return uuid_generate ();
5077 if ac_fn_c_try_link "$LINENO"; then :
5078 ac_cv_lib_uuid_uuid_generate=yes
5080 ac_cv_lib_uuid_uuid_generate=no
5082 rm -f core conftest.err conftest.$ac_objext \
5083 conftest$ac_exeext conftest.$ac_ext
5084 LIBS=$ac_check_lib_save_LIBS
5086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
5087 $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
5088 if test "x$ac_cv_lib_uuid_uuid_generate" = x""yes; then :
5089 LIBUUID=`$PKG_CONFIG --libs uuid`;
5090 STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid`
5092 as_fn_error "external uuid library not found" "$LINENO" 5
5096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private uuid library" >&5
5097 $as_echo "Disabling private uuid library" >&6; }
5099 LIBUUID='$(LIB)/libuuid'$LIB_EXT
5101 STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
5102 DEPSTATIC_LIBUUID=$STATIC_LIBUUID
5103 PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
5104 DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
5105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library" >&5
5106 $as_echo "Enabling private uuid library" >&6; }
5110 LIBUUID='$(LIB)/libuuid'$LIB_EXT
5112 STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
5113 DEPSTATIC_LIBUUID=$STATIC_LIBUUID
5114 PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
5115 DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
5116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library by default" >&5
5117 $as_echo "Enabling private uuid library by default" >&6; }
5130 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5131 if test -n "$ac_tool_prefix"; then
5132 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5133 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5135 $as_echo_n "checking for $ac_word... " >&6; }
5136 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
5137 $as_echo_n "(cached) " >&6
5141 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5148 test -z "$as_dir" && as_dir=.
5149 for ac_exec_ext in '' $ac_executable_extensions; do
5150 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5151 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5162 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5163 if test -n "$PKG_CONFIG"; then
5164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5165 $as_echo "$PKG_CONFIG" >&6; }
5167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5168 $as_echo "no" >&6; }
5173 if test -z "$ac_cv_path_PKG_CONFIG"; then
5174 ac_pt_PKG_CONFIG=$PKG_CONFIG
5175 # Extract the first word of "pkg-config", so it can be a program name with args.
5176 set dummy pkg-config; ac_word=$2
5177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5178 $as_echo_n "checking for $ac_word... " >&6; }
5179 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
5180 $as_echo_n "(cached) " >&6
5182 case $ac_pt_PKG_CONFIG in
5184 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5191 test -z "$as_dir" && as_dir=.
5192 for ac_exec_ext in '' $ac_executable_extensions; do
5193 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5194 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5195 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5205 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5206 if test -n "$ac_pt_PKG_CONFIG"; then
5207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5208 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5211 $as_echo "no" >&6; }
5214 if test "x$ac_pt_PKG_CONFIG" = x; then
5217 case $cross_compiling:$ac_tool_warned in
5219 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5220 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5221 ac_tool_warned=yes ;;
5223 PKG_CONFIG=$ac_pt_PKG_CONFIG
5226 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5230 if test -n "$PKG_CONFIG"; then
5231 _pkg_min_version=0.9.0
5232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5233 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5234 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5236 $as_echo "yes" >&6; }
5238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5239 $as_echo "no" >&6; }
5249 DEPPROFILED_LIBBLKID=
5251 # Check whether --enable-libblkid was given.
5252 if test "${enable_libblkid+set}" = set; then :
5253 enableval=$enable_libblkid; if test "$enableval" = "no"
5255 if test -z "$PKG_CONFIG"; then
5256 as_fn_error "pkg-config not installed; please install it." "$LINENO" 5
5259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
5260 $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
5261 if test "${ac_cv_lib_blkid_blkid_get_cache+set}" = set; then :
5262 $as_echo_n "(cached) " >&6
5264 ac_check_lib_save_LIBS=$LIBS
5265 LIBS="-lblkid $LIBBLKID $LIBS"
5266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5267 /* end confdefs.h. */
5269 /* Override any GCC internal prototype to avoid an error.
5270 Use char because int might match the return type of a GCC
5271 builtin and then its argument prototype would still apply. */
5275 char blkid_get_cache ();
5279 return blkid_get_cache ();
5284 if ac_fn_c_try_link "$LINENO"; then :
5285 ac_cv_lib_blkid_blkid_get_cache=yes
5287 ac_cv_lib_blkid_blkid_get_cache=no
5289 rm -f core conftest.err conftest.$ac_objext \
5290 conftest$ac_exeext conftest.$ac_ext
5291 LIBS=$ac_check_lib_save_LIBS
5293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
5294 $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
5295 if test "x$ac_cv_lib_blkid_blkid_get_cache" = x""yes; then :
5296 LIBBLKID=`$PKG_CONFIG --libs blkid`;
5297 STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid`
5299 as_fn_error "external blkid library not found" "$LINENO" 5
5303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private blkid library" >&5
5304 $as_echo "Disabling private blkid library" >&6; }
5306 LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5307 DEPLIBBLKID=$LIBBLKID
5308 STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5309 DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5310 PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5311 DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
5312 $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
5314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library" >&5
5315 $as_echo "Enabling private blkid library" >&6; }
5319 LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5320 DEPLIBBLKID=$LIBBLKID
5321 STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5322 DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5323 PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5324 DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
5325 $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
5327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library by default" >&5
5328 $as_echo "Enabling private blkid library by default" >&6; }
5339 # Check whether --enable-debugfs was given.
5340 if test "${enable_debugfs+set}" = set; then :
5341 enableval=$enable_debugfs; if test "$enableval" = "no"
5343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling debugfs support" >&5
5344 $as_echo "Disabling debugfs support" >&6; }
5348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support" >&5
5349 $as_echo "Enabling debugfs support" >&6; }
5353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support by default" >&5
5354 $as_echo "Enabling debugfs support by default" >&6; }
5360 # Check whether --enable-imager was given.
5361 if test "${enable_imager+set}" = set; then :
5362 enableval=$enable_imager; if test "$enableval" = "no"
5364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2image support" >&5
5365 $as_echo "Disabling e2image support" >&6; }
5369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support" >&5
5370 $as_echo "Enabling e2image support" >&6; }
5374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support by default" >&5
5375 $as_echo "Enabling e2image support by default" >&6; }
5381 # Check whether --enable-resizer was given.
5382 if test "${enable_resizer+set}" = set; then :
5383 enableval=$enable_resizer; if test "$enableval" = "no"
5385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2resize support" >&5
5386 $as_echo "Disabling e2resize support" >&6; }
5390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support" >&5
5391 $as_echo "Enabling e2resize support" >&6; }
5395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support by default" >&5
5396 $as_echo "Enabling e2resize support by default" >&6; }
5402 # Check whether --enable-defrag was given.
5403 if test "${enable_defrag+set}" = set; then :
5404 enableval=$enable_defrag; if test "$enableval" = "no"
5406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support" >&5
5407 $as_echo "Disabling e4defrag support" >&6; }
5411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support" >&5
5412 $as_echo "Enabling e4defrag support" >&6; }
5416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support by default" >&5
5417 $as_echo "Enabling e4defrag support by default" >&6; }
5423 # Check whether --enable-fsck was given.
5424 if test "${enable_fsck+set}" = set; then :
5425 enableval=$enable_fsck; if test "$enableval" = "no"
5427 FSCK_PROG='' FSCK_MAN=''
5428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper" >&5
5429 $as_echo "Not building fsck wrapper" >&6; }
5431 FSCK_PROG=fsck FSCK_MAN=fsck.8
5432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper" >&5
5433 $as_echo "Building fsck wrapper" >&6; }
5439 FSCK_PROG='' FSCK_MAN=''
5440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper by default" >&5
5441 $as_echo "Not building fsck wrapper by default" >&6; }
5444 FSCK_PROG=fsck FSCK_MAN=fsck.8
5445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper by default" >&5
5446 $as_echo "Building fsck wrapper by default" >&6; }
5453 # Check whether --enable-e2initrd-helper was given.
5454 if test "${enable_e2initrd_helper+set}" = set; then :
5455 enableval=$enable_e2initrd_helper; if test "$enableval" = "no"
5457 E2INITRD_PROG='' E2INITRD_MAN=''
5458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building e2initrd helper" >&5
5459 $as_echo "Not building e2initrd helper" >&6; }
5461 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
5462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper" >&5
5463 $as_echo "Building e2initrd helper" >&6; }
5467 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
5468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper by default" >&5
5469 $as_echo "Building e2initrd helper by default" >&6; }
5475 # Check whether --enable-tls was given.
5476 if test "${enable_tls+set}" = set; then :
5477 enableval=$enable_tls; if test "$enableval" = "no"
5480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling thread local support" >&5
5481 $as_echo "Disabling thread local support" >&6; }
5484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling thread local support" >&5
5485 $as_echo "Enabling thread local support" >&6; }
5489 if test -n "$WITH_DIET_LIBC"
5492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Diet libc does not support thread local support" >&5
5493 $as_echo "Diet libc does not support thread local support" >&6; }
5496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Try using thread local support by default" >&5
5497 $as_echo "Try using thread local support by default" >&6; }
5502 if test "$try_tls" = "yes"
5505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread local storage (TLS) class" >&5
5506 $as_echo_n "checking for thread local storage (TLS) class... " >&6; }
5507 if test "${ac_cv_tls+set}" = set; then :
5508 $as_echo_n "(cached) " >&6
5511 ax_tls_keywords="__thread __declspec(thread) none"
5512 for ax_tls_keyword in $ax_tls_keywords; do
5513 case $ax_tls_keyword in
5514 none) ac_cv_tls=none ; break ;;
5516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5517 /* end confdefs.h. */
5521 static $ax_tls_keyword int bar;
5532 if ac_fn_c_try_compile "$LINENO"; then :
5533 ac_cv_tls=$ax_tls_keyword ; break
5538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5545 if test "$ac_cv_tls" != "none"; then
5547 cat >>confdefs.h <<_ACEOF
5548 #define TLS $ac_cv_tls
5552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tls" >&5
5553 $as_echo "$ac_cv_tls" >&6; }
5556 # Check whether --enable-uuidd was given.
5557 if test "${enable_uuidd+set}" = set; then :
5558 enableval=$enable_uuidd; if test "$enableval" = "no"
5560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building uuidd" >&5
5561 $as_echo "Not building uuidd" >&6; }
5564 $as_echo "#define USE_UUIDD 1" >>confdefs.h
5567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd" >&5
5568 $as_echo "Building uuidd" >&6; }
5572 $as_echo "#define USE_UUIDD 1" >>confdefs.h
5575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd by default" >&5
5576 $as_echo "Building uuidd by default" >&6; }
5581 MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
5583 GETTEXT_PACKAGE=e2fsprogs
5585 VERSION="$E2FSPROGS_VERSION"
5587 cat >>confdefs.h <<_ACEOF
5588 #define PACKAGE "$PACKAGE"
5591 cat >>confdefs.h <<_ACEOF
5592 #define VERSION "$VERSION"
5599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5600 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5602 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5603 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
5604 $as_echo_n "(cached) " >&6
5606 cat >conftest.make <<\_ACEOF
5609 @echo '@@@%%%=$(MAKE)=@@@%%%'
5611 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5612 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5614 eval ac_cv_prog_make_${ac_make}_set=yes;;
5616 eval ac_cv_prog_make_${ac_make}_set=no;;
5620 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5622 $as_echo "yes" >&6; }
5625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5626 $as_echo "no" >&6; }
5627 SET_MAKE="MAKE=${MAKE-make}"
5630 # Find a good install program. We prefer a C program (faster),
5631 # so one script is as good as another. But avoid the broken or
5632 # incompatible versions:
5633 # SysV /etc/install, /usr/sbin/install
5634 # SunOS /usr/etc/install
5635 # IRIX /sbin/install
5637 # AmigaOS /C/install, which installs bootblocks on floppy discs
5638 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5639 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5640 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5641 # OS/2's system install, which has a completely different semantic
5642 # ./install, which can be erroneously created by make from ./install.sh.
5643 # Reject install programs that cannot install multiple files.
5644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
5645 $as_echo_n "checking for a BSD-compatible install... " >&6; }
5646 if test -z "$INSTALL"; then
5647 if test "${ac_cv_path_install+set}" = set; then :
5648 $as_echo_n "(cached) " >&6
5650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5654 test -z "$as_dir" && as_dir=.
5655 # Account for people who put trailing slashes in PATH elements.
5656 case $as_dir/ in #((
5657 ./ | .// | /[cC]/* | \
5658 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5659 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
5662 # OSF1 and SCO ODT 3.0 have their own names for install.
5663 # Don't use installbsd from OSF since it installs stuff as root
5665 for ac_prog in ginstall scoinst install; do
5666 for ac_exec_ext in '' $ac_executable_extensions; do
5667 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5668 if test $ac_prog = install &&
5669 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5670 # AIX install. It has an incompatible calling convention.
5672 elif test $ac_prog = install &&
5673 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5674 # program-specific install script used by HP pwplus--don't use.
5677 rm -rf conftest.one conftest.two conftest.dir
5678 echo one > conftest.one
5679 echo two > conftest.two
5681 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5682 test -s conftest.one && test -s conftest.two &&
5683 test -s conftest.dir/conftest.one &&
5684 test -s conftest.dir/conftest.two
5686 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5699 rm -rf conftest.one conftest.two conftest.dir
5702 if test "${ac_cv_path_install+set}" = set; then
5703 INSTALL=$ac_cv_path_install
5705 # As a last resort, use the slow shell script. Don't cache a
5706 # value for INSTALL within a source directory, because that will
5707 # break other packages using the cache if that directory is
5708 # removed, or if the value is a relative name.
5709 INSTALL=$ac_install_sh
5712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
5713 $as_echo "$INSTALL" >&6; }
5715 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5716 # It thinks the first close brace ends the variable substitution.
5717 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5719 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5721 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5725 if test -n "$ac_aux_dir"; then
5726 case "$ac_aux_dir" in
5727 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
5728 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
5731 if test -z "$MKINSTALLDIRS"; then
5732 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
5737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
5738 $as_echo_n "checking whether NLS is requested... " >&6; }
5739 # Check whether --enable-nls was given.
5740 if test "${enable_nls+set}" = set; then :
5741 enableval=$enable_nls; USE_NLS=$enableval
5746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
5747 $as_echo "$USE_NLS" >&6; }
5754 # Prepare PATH_SEPARATOR.
5755 # The user is always right.
5756 if test "${PATH_SEPARATOR+set}" != set; then
5757 echo "#! /bin/sh" >conf$$.sh
5758 echo "exit 0" >>conf$$.sh
5760 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5768 # Find out how to test for executable files. Don't use a zero-byte file,
5769 # as systems may use methods other than mode bits to determine executability.
5770 cat >conf$$.file <<_ASEOF
5774 chmod +x conf$$.file
5775 if test -x conf$$.file >/dev/null 2>&1; then
5776 ac_executable_p="test -x"
5778 ac_executable_p="test -f"
5782 # Extract the first word of "msgfmt", so it can be a program name with args.
5783 set dummy msgfmt; ac_word=$2
5784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5785 $as_echo_n "checking for $ac_word... " >&6; }
5786 if test "${ac_cv_path_MSGFMT+set}" = set; then :
5787 $as_echo_n "(cached) " >&6
5791 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5794 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5795 for ac_dir in $PATH; do
5797 test -z "$ac_dir" && ac_dir=.
5798 for ac_exec_ext in '' $ac_executable_extensions; do
5799 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5800 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
5801 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5802 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
5809 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
5813 MSGFMT="$ac_cv_path_MSGFMT"
5814 if test "$MSGFMT" != ":"; then
5815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
5816 $as_echo "$MSGFMT" >&6; }
5818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5819 $as_echo "no" >&6; }
5822 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5823 set dummy gmsgfmt; ac_word=$2
5824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5825 $as_echo_n "checking for $ac_word... " >&6; }
5826 if test "${ac_cv_path_GMSGFMT+set}" = set; then :
5827 $as_echo_n "(cached) " >&6
5831 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5838 test -z "$as_dir" && as_dir=.
5839 for ac_exec_ext in '' $ac_executable_extensions; do
5840 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5841 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5849 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5853 GMSGFMT=$ac_cv_path_GMSGFMT
5854 if test -n "$GMSGFMT"; then
5855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
5856 $as_echo "$GMSGFMT" >&6; }
5858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5859 $as_echo "no" >&6; }
5865 # Prepare PATH_SEPARATOR.
5866 # The user is always right.
5867 if test "${PATH_SEPARATOR+set}" != set; then
5868 echo "#! /bin/sh" >conf$$.sh
5869 echo "exit 0" >>conf$$.sh
5871 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5879 # Find out how to test for executable files. Don't use a zero-byte file,
5880 # as systems may use methods other than mode bits to determine executability.
5881 cat >conf$$.file <<_ASEOF
5885 chmod +x conf$$.file
5886 if test -x conf$$.file >/dev/null 2>&1; then
5887 ac_executable_p="test -x"
5889 ac_executable_p="test -f"
5893 # Extract the first word of "xgettext", so it can be a program name with args.
5894 set dummy xgettext; ac_word=$2
5895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5896 $as_echo_n "checking for $ac_word... " >&6; }
5897 if test "${ac_cv_path_XGETTEXT+set}" = set; then :
5898 $as_echo_n "(cached) " >&6
5902 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5905 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5906 for ac_dir in $PATH; do
5908 test -z "$ac_dir" && ac_dir=.
5909 for ac_exec_ext in '' $ac_executable_extensions; do
5910 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5911 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
5912 (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
5913 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
5920 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5924 XGETTEXT="$ac_cv_path_XGETTEXT"
5925 if test "$XGETTEXT" != ":"; then
5926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
5927 $as_echo "$XGETTEXT" >&6; }
5929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5930 $as_echo "no" >&6; }
5936 # Prepare PATH_SEPARATOR.
5937 # The user is always right.
5938 if test "${PATH_SEPARATOR+set}" != set; then
5939 echo "#! /bin/sh" >conf$$.sh
5940 echo "exit 0" >>conf$$.sh
5942 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5950 # Find out how to test for executable files. Don't use a zero-byte file,
5951 # as systems may use methods other than mode bits to determine executability.
5952 cat >conf$$.file <<_ASEOF
5956 chmod +x conf$$.file
5957 if test -x conf$$.file >/dev/null 2>&1; then
5958 ac_executable_p="test -x"
5960 ac_executable_p="test -f"
5964 # Extract the first word of "msgmerge", so it can be a program name with args.
5965 set dummy msgmerge; ac_word=$2
5966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5967 $as_echo_n "checking for $ac_word... " >&6; }
5968 if test "${ac_cv_path_MSGMERGE+set}" = set; then :
5969 $as_echo_n "(cached) " >&6
5973 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
5976 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5977 for ac_dir in $PATH; do
5979 test -z "$ac_dir" && ac_dir=.
5980 for ac_exec_ext in '' $ac_executable_extensions; do
5981 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5982 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
5983 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
5990 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
5994 MSGMERGE="$ac_cv_path_MSGMERGE"
5995 if test "$MSGMERGE" != ":"; then
5996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
5997 $as_echo "$MSGMERGE" >&6; }
5999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6000 $as_echo "no" >&6; }
6004 if test "$GMSGFMT" != ":"; then
6005 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
6006 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6009 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
6010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
6011 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
6016 if test "$XGETTEXT" != ":"; then
6017 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
6018 (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
6021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
6022 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
6028 ac_config_commands="$ac_config_commands default-1"
6031 if test -n "$ac_tool_prefix"; then
6032 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6033 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6035 $as_echo_n "checking for $ac_word... " >&6; }
6036 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6037 $as_echo_n "(cached) " >&6
6039 if test -n "$RANLIB"; then
6040 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6046 test -z "$as_dir" && as_dir=.
6047 for ac_exec_ext in '' $ac_executable_extensions; do
6048 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6049 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6059 RANLIB=$ac_cv_prog_RANLIB
6060 if test -n "$RANLIB"; then
6061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6062 $as_echo "$RANLIB" >&6; }
6064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6065 $as_echo "no" >&6; }
6070 if test -z "$ac_cv_prog_RANLIB"; then
6071 ac_ct_RANLIB=$RANLIB
6072 # Extract the first word of "ranlib", so it can be a program name with args.
6073 set dummy ranlib; ac_word=$2
6074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6075 $as_echo_n "checking for $ac_word... " >&6; }
6076 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6077 $as_echo_n "(cached) " >&6
6079 if test -n "$ac_ct_RANLIB"; then
6080 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6086 test -z "$as_dir" && as_dir=.
6087 for ac_exec_ext in '' $ac_executable_extensions; do
6088 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6089 ac_cv_prog_ac_ct_RANLIB="ranlib"
6090 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6099 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6100 if test -n "$ac_ct_RANLIB"; then
6101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6102 $as_echo "$ac_ct_RANLIB" >&6; }
6104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6105 $as_echo "no" >&6; }
6108 if test "x$ac_ct_RANLIB" = x; then
6111 case $cross_compiling:$ac_tool_warned in
6113 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6114 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6115 ac_tool_warned=yes ;;
6117 RANLIB=$ac_ct_RANLIB
6120 RANLIB="$ac_cv_prog_RANLIB"
6124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror in -lcposix" >&5
6125 $as_echo_n "checking for strerror in -lcposix... " >&6; }
6126 if test "${ac_cv_lib_cposix_strerror+set}" = set; then :
6127 $as_echo_n "(cached) " >&6
6129 ac_check_lib_save_LIBS=$LIBS
6130 LIBS="-lcposix $LIBS"
6131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6132 /* end confdefs.h. */
6134 /* Override any GCC internal prototype to avoid an error.
6135 Use char because int might match the return type of a GCC
6136 builtin and then its argument prototype would still apply. */
6149 if ac_fn_c_try_link "$LINENO"; then :
6150 ac_cv_lib_cposix_strerror=yes
6152 ac_cv_lib_cposix_strerror=no
6154 rm -f core conftest.err conftest.$ac_objext \
6155 conftest$ac_exeext conftest.$ac_ext
6156 LIBS=$ac_check_lib_save_LIBS
6158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cposix_strerror" >&5
6159 $as_echo "$ac_cv_lib_cposix_strerror" >&6; }
6160 if test "x$ac_cv_lib_cposix_strerror" = x""yes; then :
6161 LIBS="$LIBS -lcposix"
6166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
6167 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
6168 if test "${ac_cv_c_const+set}" = set; then :
6169 $as_echo_n "(cached) " >&6
6171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6172 /* end confdefs.h. */
6177 /* FIXME: Include the comments suggested by Paul. */
6179 /* Ultrix mips cc rejects this. */
6180 typedef int charset[2];
6182 /* SunOS 4.1.1 cc rejects this. */
6183 char const *const *pcpcc;
6185 /* NEC SVR4.0.2 mips cc rejects this. */
6186 struct point {int x, y;};
6187 static struct point const zero = {0,0};
6188 /* AIX XL C 1.02.0.0 rejects this.
6189 It does not let you subtract one const X* pointer from another in
6190 an arm of an if-expression whose if-part is not a constant
6192 const char *g = "string";
6193 pcpcc = &g + (g ? g-g : 0);
6194 /* HPUX 7.0 cc rejects these. */
6196 ppc = (char**) pcpcc;
6197 pcpcc = (char const *const *) ppc;
6198 { /* SCO 3.2v4 cc rejects this. */
6200 char const *s = 0 ? (char *) 0 : (char const *) 0;
6205 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6207 const int *foo = &x[0];
6210 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6211 typedef const int *iptr;
6215 { /* AIX XL C 1.02.0.0 rejects this saying
6216 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6217 struct s { int j; const int *ap[3]; };
6218 struct s *b; b->j = 5;
6220 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6224 return !cs[0] && !zero.x;
6231 if ac_fn_c_try_compile "$LINENO"; then :
6236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
6239 $as_echo "$ac_cv_c_const" >&6; }
6240 if test $ac_cv_c_const = no; then
6242 $as_echo "#define const /**/" >>confdefs.h
6247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed" >&5
6248 $as_echo_n "checking for signed... " >&6; }
6249 if test "${bh_cv_c_signed+set}" = set; then :
6250 $as_echo_n "(cached) " >&6
6252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6253 /* end confdefs.h. */
6263 if ac_fn_c_try_compile "$LINENO"; then :
6268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bh_cv_c_signed" >&5
6271 $as_echo "$bh_cv_c_signed" >&6; }
6272 if test $bh_cv_c_signed = no; then
6274 $as_echo "#define signed /**/" >>confdefs.h
6278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
6279 $as_echo_n "checking for inline... " >&6; }
6280 if test "${ac_cv_c_inline+set}" = set; then :
6281 $as_echo_n "(cached) " >&6
6284 for ac_kw in inline __inline__ __inline; do
6285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6286 /* end confdefs.h. */
6289 static $ac_kw foo_t static_foo () {return 0; }
6290 $ac_kw foo_t foo () {return 0; }
6294 if ac_fn_c_try_compile "$LINENO"; then :
6295 ac_cv_c_inline=$ac_kw
6297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6298 test "$ac_cv_c_inline" != no && break
6302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
6303 $as_echo "$ac_cv_c_inline" >&6; }
6305 case $ac_cv_c_inline in
6308 case $ac_cv_c_inline in
6310 *) ac_val=$ac_cv_c_inline;;
6312 cat >>confdefs.h <<_ACEOF
6314 #define inline $ac_val
6320 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
6321 if test "x$ac_cv_type_off_t" = x""yes; then :
6325 cat >>confdefs.h <<_ACEOF
6326 #define off_t long int
6331 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6332 if test "x$ac_cv_type_size_t" = x""yes; then :
6336 cat >>confdefs.h <<_ACEOF
6337 #define size_t unsigned int
6343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long" >&5
6344 $as_echo_n "checking for long long... " >&6; }
6345 if test "${ac_cv_type_long_long+set}" = set; then :
6346 $as_echo_n "(cached) " >&6
6348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6349 /* end confdefs.h. */
6350 long long ll = 1LL; int i = 63;
6354 long long llmax = (long long) -1;
6355 return ll << i | ll >> i | llmax / ll | llmax % ll;
6360 if ac_fn_c_try_link "$LINENO"; then :
6361 ac_cv_type_long_long=yes
6363 ac_cv_type_long_long=no
6365 rm -f core conftest.err conftest.$ac_objext \
6366 conftest$ac_exeext conftest.$ac_ext
6368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long" >&5
6369 $as_echo "$ac_cv_type_long_long" >&6; }
6370 if test $ac_cv_type_long_long = yes; then
6372 $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
6377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
6378 $as_echo_n "checking for long double... " >&6; }
6379 if test "${gt_cv_c_long_double+set}" = set; then :
6380 $as_echo_n "(cached) " >&6
6382 if test "$GCC" = yes; then
6383 gt_cv_c_long_double=yes
6385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6386 /* end confdefs.h. */
6388 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
6389 long double foo = 0.0;
6390 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
6391 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
6401 if ac_fn_c_try_compile "$LINENO"; then :
6402 gt_cv_c_long_double=yes
6404 gt_cv_c_long_double=no
6406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_long_double" >&5
6410 $as_echo "$gt_cv_c_long_double" >&6; }
6411 if test $gt_cv_c_long_double = yes; then
6413 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
6418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
6419 $as_echo_n "checking for wchar_t... " >&6; }
6420 if test "${gt_cv_c_wchar_t+set}" = set; then :
6421 $as_echo_n "(cached) " >&6
6423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6424 /* end confdefs.h. */
6426 wchar_t foo = (wchar_t)'\0';
6435 if ac_fn_c_try_compile "$LINENO"; then :
6440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
6443 $as_echo "$gt_cv_c_wchar_t" >&6; }
6444 if test $gt_cv_c_wchar_t = yes; then
6446 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
6451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
6452 $as_echo_n "checking for wint_t... " >&6; }
6453 if test "${gt_cv_c_wint_t+set}" = set; then :
6454 $as_echo_n "(cached) " >&6
6456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6457 /* end confdefs.h. */
6459 wint_t foo = (wchar_t)'\0';
6468 if ac_fn_c_try_compile "$LINENO"; then :
6473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
6476 $as_echo "$gt_cv_c_wint_t" >&6; }
6477 if test $gt_cv_c_wint_t = yes; then
6479 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
6484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
6485 $as_echo_n "checking for inttypes.h... " >&6; }
6486 if test "${jm_ac_cv_header_inttypes_h+set}" = set; then :
6487 $as_echo_n "(cached) " >&6
6489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6490 /* end confdefs.h. */
6491 #include <sys/types.h>
6492 #include <inttypes.h>
6496 uintmax_t i = (uintmax_t) -1;
6501 if ac_fn_c_try_compile "$LINENO"; then :
6502 jm_ac_cv_header_inttypes_h=yes
6504 jm_ac_cv_header_inttypes_h=no
6506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_inttypes_h" >&5
6509 $as_echo "$jm_ac_cv_header_inttypes_h" >&6; }
6510 if test $jm_ac_cv_header_inttypes_h = yes; then
6512 cat >>confdefs.h <<_ACEOF
6513 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
6519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
6520 $as_echo_n "checking for stdint.h... " >&6; }
6521 if test "${jm_ac_cv_header_stdint_h+set}" = set; then :
6522 $as_echo_n "(cached) " >&6
6524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6525 /* end confdefs.h. */
6526 #include <sys/types.h>
6531 uintmax_t i = (uintmax_t) -1;
6536 if ac_fn_c_try_compile "$LINENO"; then :
6537 jm_ac_cv_header_stdint_h=yes
6539 jm_ac_cv_header_stdint_h=no
6541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_stdint_h" >&5
6544 $as_echo "$jm_ac_cv_header_stdint_h" >&6; }
6545 if test $jm_ac_cv_header_stdint_h = yes; then
6547 cat >>confdefs.h <<_ACEOF
6548 #define HAVE_STDINT_H_WITH_UINTMAX 1
6556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
6557 $as_echo_n "checking for intmax_t... " >&6; }
6558 if test "${gt_cv_c_intmax_t+set}" = set; then :
6559 $as_echo_n "(cached) " >&6
6561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6562 /* end confdefs.h. */
6566 #if HAVE_STDINT_H_WITH_UINTMAX
6569 #if HAVE_INTTYPES_H_WITH_UINTMAX
6570 #include <inttypes.h>
6581 if ac_fn_c_try_compile "$LINENO"; then :
6582 gt_cv_c_intmax_t=yes
6586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
6589 $as_echo "$gt_cv_c_intmax_t" >&6; }
6590 if test $gt_cv_c_intmax_t = yes; then
6592 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
6599 $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
6600 if test "${gt_cv_func_printf_posix+set}" = set; then :
6601 $as_echo_n "(cached) " >&6
6604 if test "$cross_compiling" = yes; then :
6606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6607 /* end confdefs.h. */
6609 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
6614 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6615 $EGREP "notposix" >/dev/null 2>&1; then :
6616 gt_cv_func_printf_posix="guessing no"
6618 gt_cv_func_printf_posix="guessing yes"
6624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6625 /* end confdefs.h. */
6629 /* The string "%2$d %1$d", with dollar characters protected from the shell's
6630 dollar expansion (possibly an autoconf bug). */
6631 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
6632 static char buf[100];
6635 sprintf (buf, format, 33, 55);
6636 return (strcmp (buf, "55 33") != 0);
6639 if ac_fn_c_try_run "$LINENO"; then :
6640 gt_cv_func_printf_posix=yes
6642 gt_cv_func_printf_posix=no
6644 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6645 conftest.$ac_objext conftest.beam conftest.$ac_ext
6650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
6651 $as_echo "$gt_cv_func_printf_posix" >&6; }
6652 case $gt_cv_func_printf_posix in
6655 $as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
6660 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6661 # for constant arguments. Useless!
6662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
6663 $as_echo_n "checking for working alloca.h... " >&6; }
6664 if test "${ac_cv_working_alloca_h+set}" = set; then :
6665 $as_echo_n "(cached) " >&6
6667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6668 /* end confdefs.h. */
6673 char *p = (char *) alloca (2 * sizeof (int));
6679 if ac_fn_c_try_link "$LINENO"; then :
6680 ac_cv_working_alloca_h=yes
6682 ac_cv_working_alloca_h=no
6684 rm -f core conftest.err conftest.$ac_objext \
6685 conftest$ac_exeext conftest.$ac_ext
6687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
6688 $as_echo "$ac_cv_working_alloca_h" >&6; }
6689 if test $ac_cv_working_alloca_h = yes; then
6691 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
6695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
6696 $as_echo_n "checking for alloca... " >&6; }
6697 if test "${ac_cv_func_alloca_works+set}" = set; then :
6698 $as_echo_n "(cached) " >&6
6700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6701 /* end confdefs.h. */
6703 # define alloca __builtin_alloca
6706 # include <malloc.h>
6707 # define alloca _alloca
6709 # ifdef HAVE_ALLOCA_H
6710 # include <alloca.h>
6715 # ifndef alloca /* predefined by HP cc +Olibcalls */
6726 char *p = (char *) alloca (1);
6732 if ac_fn_c_try_link "$LINENO"; then :
6733 ac_cv_func_alloca_works=yes
6735 ac_cv_func_alloca_works=no
6737 rm -f core conftest.err conftest.$ac_objext \
6738 conftest$ac_exeext conftest.$ac_ext
6740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
6741 $as_echo "$ac_cv_func_alloca_works" >&6; }
6743 if test $ac_cv_func_alloca_works = yes; then
6745 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
6748 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6749 # that cause trouble. Some versions do not even contain alloca or
6750 # contain a buggy version. If you still want to use their alloca,
6751 # use ar to extract alloca.o from them instead of compiling alloca.c.
6753 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
6755 $as_echo "#define C_ALLOCA 1" >>confdefs.h
6758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
6759 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
6760 if test "${ac_cv_os_cray+set}" = set; then :
6761 $as_echo_n "(cached) " >&6
6763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6764 /* end confdefs.h. */
6765 #if defined CRAY && ! defined CRAY2
6772 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6773 $EGREP "webecray" >/dev/null 2>&1; then :
6781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
6782 $as_echo "$ac_cv_os_cray" >&6; }
6783 if test $ac_cv_os_cray = yes; then
6784 for ac_func in _getb67 GETB67 getb67; do
6785 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6786 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6787 eval as_val=\$$as_ac_var
6788 if test "x$as_val" = x""yes; then :
6790 cat >>confdefs.h <<_ACEOF
6791 #define CRAY_STACKSEG_END $ac_func
6800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
6801 $as_echo_n "checking stack direction for C alloca... " >&6; }
6802 if test "${ac_cv_c_stack_direction+set}" = set; then :
6803 $as_echo_n "(cached) " >&6
6805 if test "$cross_compiling" = yes; then :
6806 ac_cv_c_stack_direction=0
6808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6809 /* end confdefs.h. */
6810 $ac_includes_default
6812 find_stack_direction ()
6814 static char *addr = 0;
6819 return find_stack_direction ();
6822 return (&dummy > addr) ? 1 : -1;
6828 return find_stack_direction () < 0;
6831 if ac_fn_c_try_run "$LINENO"; then :
6832 ac_cv_c_stack_direction=1
6834 ac_cv_c_stack_direction=-1
6836 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6837 conftest.$ac_objext conftest.beam conftest.$ac_ext
6841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
6842 $as_echo "$ac_cv_c_stack_direction" >&6; }
6843 cat >>confdefs.h <<_ACEOF
6844 #define STACK_DIRECTION $ac_cv_c_stack_direction
6853 for ac_header in $ac_header_list
6855 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6856 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6858 eval as_val=\$$as_ac_Header
6859 if test "x$as_val" = x""yes; then :
6860 cat >>confdefs.h <<_ACEOF
6861 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6875 for ac_func in getpagesize
6877 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
6878 if test "x$ac_cv_func_getpagesize" = x""yes; then :
6879 cat >>confdefs.h <<_ACEOF
6880 #define HAVE_GETPAGESIZE 1
6886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
6887 $as_echo_n "checking for working mmap... " >&6; }
6888 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
6889 $as_echo_n "(cached) " >&6
6891 if test "$cross_compiling" = yes; then :
6892 ac_cv_func_mmap_fixed_mapped=no
6894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6895 /* end confdefs.h. */
6896 $ac_includes_default
6897 /* malloc might have been renamed as rpl_malloc. */
6900 /* Thanks to Mike Haertel and Jim Avera for this test.
6901 Here is a matrix of mmap possibilities:
6902 mmap private not fixed
6903 mmap private fixed at somewhere currently unmapped
6904 mmap private fixed at somewhere already mapped
6905 mmap shared not fixed
6906 mmap shared fixed at somewhere currently unmapped
6907 mmap shared fixed at somewhere already mapped
6908 For private mappings, we should verify that changes cannot be read()
6909 back from the file, nor mmap's back from the file at a different
6910 address. (There have been systems where private was not correctly
6911 implemented like the infamous i386 svr4.0, and systems where the
6912 VM page cache was not coherent with the file system buffer cache
6913 like early versions of FreeBSD and possibly contemporary NetBSD.)
6914 For shared mappings, we should conversely verify that changes get
6915 propagated back to all the places they're supposed to be.
6917 Grep wants private fixed already mapped.
6918 The main things grep needs to know about mmap are:
6919 * does it exist and is it safe to write into the mmap'd area
6920 * how to use it (BSD variants) */
6923 #include <sys/mman.h>
6925 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
6929 /* This mess was copied from the GNU getpagesize.h. */
6930 #ifndef HAVE_GETPAGESIZE
6931 # ifdef _SC_PAGESIZE
6932 # define getpagesize() sysconf(_SC_PAGESIZE)
6933 # else /* no _SC_PAGESIZE */
6934 # ifdef HAVE_SYS_PARAM_H
6935 # include <sys/param.h>
6936 # ifdef EXEC_PAGESIZE
6937 # define getpagesize() EXEC_PAGESIZE
6938 # else /* no EXEC_PAGESIZE */
6940 # define getpagesize() NBPG * CLSIZE
6943 # endif /* no CLSIZE */
6944 # else /* no NBPG */
6946 # define getpagesize() NBPC
6947 # else /* no NBPC */
6949 # define getpagesize() PAGESIZE
6950 # endif /* PAGESIZE */
6951 # endif /* no NBPC */
6952 # endif /* no NBPG */
6953 # endif /* no EXEC_PAGESIZE */
6954 # else /* no HAVE_SYS_PARAM_H */
6955 # define getpagesize() 8192 /* punt totally */
6956 # endif /* no HAVE_SYS_PARAM_H */
6957 # endif /* no _SC_PAGESIZE */
6959 #endif /* no HAVE_GETPAGESIZE */
6964 char *data, *data2, *data3;
6969 pagesize = getpagesize ();
6971 /* First, make a file with some known garbage in it. */
6972 data = (char *) malloc (pagesize);
6975 for (i = 0; i < pagesize; ++i)
6976 *(data + i) = rand ();
6978 fd = creat ("conftest.mmap", 0600);
6981 if (write (fd, data, pagesize) != pagesize)
6985 /* Next, check that the tail of a page is zero-filled. File must have
6986 non-zero length, otherwise we risk SIGBUS for entire page. */
6987 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
6991 if (write (fd2, cdata2, 1) != 1)
6993 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
6994 if (data2 == MAP_FAILED)
6996 for (i = 0; i < pagesize; ++i)
7000 if (munmap (data2, pagesize))
7003 /* Next, try to mmap the file at a fixed address which already has
7004 something else allocated at it. If we can, also make sure that
7005 we see the same garbage. */
7006 fd = open ("conftest.mmap", O_RDWR);
7009 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7010 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7012 for (i = 0; i < pagesize; ++i)
7013 if (*(data + i) != *(data2 + i))
7016 /* Finally, make sure that changes to the mapped area do not
7017 percolate back to the file as seen by read(). (This is a bug on
7018 some variants of i386 svr4.0.) */
7019 for (i = 0; i < pagesize; ++i)
7020 *(data2 + i) = *(data2 + i) + 1;
7021 data3 = (char *) malloc (pagesize);
7024 if (read (fd, data3, pagesize) != pagesize)
7026 for (i = 0; i < pagesize; ++i)
7027 if (*(data + i) != *(data3 + i))
7033 if ac_fn_c_try_run "$LINENO"; then :
7034 ac_cv_func_mmap_fixed_mapped=yes
7036 ac_cv_func_mmap_fixed_mapped=no
7038 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7039 conftest.$ac_objext conftest.beam conftest.$ac_ext
7043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
7044 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
7045 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7047 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
7050 rm -f conftest.mmap conftest.txt
7053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
7054 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
7055 if test "${ac_cv_gnu_library_2_1+set}" = set; then :
7056 $as_echo_n "(cached) " >&6
7058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7059 /* end confdefs.h. */
7061 #include <features.h>
7062 #ifdef __GNU_LIBRARY__
7063 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
7069 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7070 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
7071 ac_cv_gnu_library_2_1=yes
7073 ac_cv_gnu_library_2_1=no
7080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
7081 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
7083 GLIBC21="$ac_cv_gnu_library_2_1"
7088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
7089 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
7090 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then :
7091 $as_echo_n "(cached) " >&6
7094 if test "$cross_compiling" = yes; then :
7096 # Guess based on the CPU.
7098 alpha* | i3456786 | m68k | s390*)
7099 gt_cv_int_divbyzero_sigfpe="guessing yes";;
7101 gt_cv_int_divbyzero_sigfpe="guessing no";;
7105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7106 /* end confdefs.h. */
7113 sigfpe_handler (int sig)
7115 sigfpe_handler (sig) int sig;
7118 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
7119 exit (sig != SIGFPE);
7129 signal (SIGFPE, sigfpe_handler);
7130 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
7131 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
7132 signal (SIGTRAP, sigfpe_handler);
7134 /* Linux/SPARC yields signal SIGILL. */
7135 #if defined (__sparc__) && defined (__linux__)
7136 signal (SIGILL, sigfpe_handler);
7145 if ac_fn_c_try_run "$LINENO"; then :
7146 gt_cv_int_divbyzero_sigfpe=yes
7148 gt_cv_int_divbyzero_sigfpe=no
7150 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7151 conftest.$ac_objext conftest.beam conftest.$ac_ext
7156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
7157 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
7158 case "$gt_cv_int_divbyzero_sigfpe" in
7163 cat >>confdefs.h <<_ACEOF
7164 #define INTDIV0_RAISES_SIGFPE $value
7169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long" >&5
7170 $as_echo_n "checking for unsigned long long... " >&6; }
7171 if test "${ac_cv_type_unsigned_long_long+set}" = set; then :
7172 $as_echo_n "(cached) " >&6
7174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7175 /* end confdefs.h. */
7176 unsigned long long ull = 1ULL; int i = 63;
7180 unsigned long long ullmax = (unsigned long long) -1;
7181 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
7186 if ac_fn_c_try_link "$LINENO"; then :
7187 ac_cv_type_unsigned_long_long=yes
7189 ac_cv_type_unsigned_long_long=no
7191 rm -f core conftest.err conftest.$ac_objext \
7192 conftest$ac_exeext conftest.$ac_ext
7194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long" >&5
7195 $as_echo "$ac_cv_type_unsigned_long_long" >&6; }
7196 if test $ac_cv_type_unsigned_long_long = yes; then
7198 $as_echo "#define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h
7205 if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
7207 test $ac_cv_type_unsigned_long_long = yes \
7208 && ac_type='unsigned long long' \
7209 || ac_type='unsigned long'
7211 cat >>confdefs.h <<_ACEOF
7212 #define uintmax_t $ac_type
7217 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
7222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
7223 $as_echo_n "checking for inttypes.h... " >&6; }
7224 if test "${gt_cv_header_inttypes_h+set}" = set; then :
7225 $as_echo_n "(cached) " >&6
7228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7229 /* end confdefs.h. */
7230 #include <sys/types.h>
7231 #include <inttypes.h>
7240 if ac_fn_c_try_compile "$LINENO"; then :
7241 gt_cv_header_inttypes_h=yes
7243 gt_cv_header_inttypes_h=no
7245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_header_inttypes_h" >&5
7249 $as_echo "$gt_cv_header_inttypes_h" >&6; }
7250 if test $gt_cv_header_inttypes_h = yes; then
7252 cat >>confdefs.h <<_ACEOF
7253 #define HAVE_INTTYPES_H 1
7260 if test $gt_cv_header_inttypes_h = yes; then
7261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
7262 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
7263 if test "${gt_cv_inttypes_pri_broken+set}" = set; then :
7264 $as_echo_n "(cached) " >&6
7267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7268 /* end confdefs.h. */
7269 #include <inttypes.h>
7282 if ac_fn_c_try_compile "$LINENO"; then :
7283 gt_cv_inttypes_pri_broken=no
7285 gt_cv_inttypes_pri_broken=yes
7287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
7291 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
7293 if test "$gt_cv_inttypes_pri_broken" = yes; then
7295 cat >>confdefs.h <<_ACEOF
7296 #define PRI_MACROS_BROKEN 1
7302 for ac_header in stdint.h
7304 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
7305 if test "x$ac_cv_header_stdint_h" = x""yes; then :
7306 cat >>confdefs.h <<_ACEOF
7307 #define HAVE_STDINT_H 1
7314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
7315 $as_echo_n "checking for SIZE_MAX... " >&6; }
7317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7318 /* end confdefs.h. */
7329 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7330 $EGREP "Found it" >/dev/null 2>&1; then :
7335 if test -z "$result"; then
7336 if ac_fn_c_compute_int "$LINENO" "~(size_t)0 / 10" "res_hi" "#include <stddef.h>"; then :
7343 if ac_fn_c_compute_int "$LINENO" "~(size_t)0 % 10" "res_lo" "#include <stddef.h>"; then :
7350 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then :
7357 if test "$fits_in_uint" = 1; then
7358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7359 /* end confdefs.h. */
7362 extern unsigned long foo;
7372 if ac_fn_c_try_compile "$LINENO"; then :
7375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7377 if test -z "$result"; then
7378 if test "$fits_in_uint" = 1; then
7379 result="$res_hi$res_lo"U
7381 result="$res_hi$res_lo"UL
7387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
7388 $as_echo "$result" >&6; }
7389 if test "$result" != yes; then
7391 cat >>confdefs.h <<_ACEOF
7392 #define SIZE_MAX $result
7399 for ac_header in stdint.h
7401 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
7402 if test "x$ac_cv_header_stdint_h" = x""yes; then :
7403 cat >>confdefs.h <<_ACEOF
7404 #define HAVE_STDINT_H 1
7413 if test "X$prefix" = "XNONE"; then
7414 acl_final_prefix="$ac_default_prefix"
7416 acl_final_prefix="$prefix"
7418 if test "X$exec_prefix" = "XNONE"; then
7419 acl_final_exec_prefix='${prefix}'
7421 acl_final_exec_prefix="$exec_prefix"
7423 acl_save_prefix="$prefix"
7424 prefix="$acl_final_prefix"
7425 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7426 prefix="$acl_save_prefix"
7429 # Check whether --with-gnu-ld was given.
7430 if test "${with_gnu_ld+set}" = set; then :
7431 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7436 # Prepare PATH_SEPARATOR.
7437 # The user is always right.
7438 if test "${PATH_SEPARATOR+set}" != set; then
7439 echo "#! /bin/sh" >conf$$.sh
7440 echo "exit 0" >>conf$$.sh
7442 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7450 if test "$GCC" = yes; then
7451 # Check if gcc -print-prog-name=ld gives a path.
7452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
7453 $as_echo_n "checking for ld used by GCC... " >&6; }
7456 # gcc leaves a trailing carriage return which upsets mingw
7457 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7459 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7462 # Accept absolute paths.
7463 [\\/]* | [A-Za-z]:[\\/]*)
7464 re_direlt='/[^/][^/]*/\.\./'
7465 # Canonicalize the path of ld
7466 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
7467 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
7468 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
7470 test -z "$LD" && LD="$ac_prog"
7473 # If it fails, then pretend we aren't using GCC.
7477 # If it is relative, then search for the first ld in PATH.
7481 elif test "$with_gnu_ld" = yes; then
7482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7483 $as_echo_n "checking for GNU ld... " >&6; }
7485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7486 $as_echo_n "checking for non-GNU ld... " >&6; }
7488 if test "${acl_cv_path_LD+set}" = set; then :
7489 $as_echo_n "(cached) " >&6
7491 if test -z "$LD"; then
7492 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
7493 for ac_dir in $PATH; do
7494 test -z "$ac_dir" && ac_dir=.
7495 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7496 acl_cv_path_LD="$ac_dir/$ac_prog"
7497 # Check to see if the program is GNU ld. I'd rather use --version,
7498 # but apparently some GNU ld's only accept -v.
7499 # Break only if it was the GNU/non-GNU ld that we prefer.
7500 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
7501 *GNU* | *'with BFD'*)
7502 test "$with_gnu_ld" != no && break ;;
7504 test "$with_gnu_ld" != yes && break ;;
7510 acl_cv_path_LD="$LD" # Let the user override the test with a path.
7514 LD="$acl_cv_path_LD"
7515 if test -n "$LD"; then
7516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7517 $as_echo "$LD" >&6; }
7519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7520 $as_echo "no" >&6; }
7522 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
7523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7524 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7525 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
7526 $as_echo_n "(cached) " >&6
7528 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
7529 case `$LD -v 2>&1 </dev/null` in
7530 *GNU* | *'with BFD'*)
7531 acl_cv_prog_gnu_ld=yes ;;
7533 acl_cv_prog_gnu_ld=no ;;
7536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
7537 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
7538 with_gnu_ld=$acl_cv_prog_gnu_ld
7542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
7543 $as_echo_n "checking for shared library run path origin... " >&6; }
7544 if test "${acl_cv_rpath+set}" = set; then :
7545 $as_echo_n "(cached) " >&6
7548 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
7549 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
7556 $as_echo "$acl_cv_rpath" >&6; }
7558 libext="$acl_cv_libext"
7559 shlibext="$acl_cv_shlibext"
7560 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
7561 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
7562 hardcode_direct="$acl_cv_hardcode_direct"
7563 hardcode_minus_L="$acl_cv_hardcode_minus_L"
7564 # Check whether --enable-rpath was given.
7565 if test "${enable_rpath+set}" = set; then :
7566 enableval=$enable_rpath; :
7580 acl_save_prefix="$prefix"
7581 prefix="$acl_final_prefix"
7582 acl_save_exec_prefix="$exec_prefix"
7583 exec_prefix="$acl_final_exec_prefix"
7585 eval additional_includedir=\"$includedir\"
7586 eval additional_libdir=\"$libdir\"
7588 exec_prefix="$acl_save_exec_prefix"
7589 prefix="$acl_save_prefix"
7592 # Check whether --with-libiconv-prefix was given.
7593 if test "${with_libiconv_prefix+set}" = set; then :
7594 withval=$with_libiconv_prefix;
7595 if test "X$withval" = "Xno"; then
7598 if test "X$withval" = "X"; then
7600 acl_save_prefix="$prefix"
7601 prefix="$acl_final_prefix"
7602 acl_save_exec_prefix="$exec_prefix"
7603 exec_prefix="$acl_final_exec_prefix"
7605 eval additional_includedir=\"$includedir\"
7606 eval additional_libdir=\"$libdir\"
7608 exec_prefix="$acl_save_exec_prefix"
7609 prefix="$acl_save_prefix"
7612 additional_includedir="$withval/include"
7613 additional_libdir="$withval/lib"
7624 names_already_handled=
7625 names_next_round='iconv '
7626 while test -n "$names_next_round"; do
7627 names_this_round="$names_next_round"
7629 for name in $names_this_round; do
7631 for n in $names_already_handled; do
7632 if test "$n" = "$name"; then
7637 if test -z "$already_handled"; then
7638 names_already_handled="$names_already_handled $name"
7639 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7640 eval value=\"\$HAVE_LIB$uppername\"
7641 if test -n "$value"; then
7642 if test "$value" = yes; then
7643 eval value=\"\$LIB$uppername\"
7644 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
7645 eval value=\"\$LTLIB$uppername\"
7646 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
7655 if test $use_additional = yes; then
7656 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
7657 found_dir="$additional_libdir"
7658 found_so="$additional_libdir/lib$name.$shlibext"
7659 if test -f "$additional_libdir/lib$name.la"; then
7660 found_la="$additional_libdir/lib$name.la"
7663 if test -f "$additional_libdir/lib$name.$libext"; then
7664 found_dir="$additional_libdir"
7665 found_a="$additional_libdir/lib$name.$libext"
7666 if test -f "$additional_libdir/lib$name.la"; then
7667 found_la="$additional_libdir/lib$name.la"
7672 if test "X$found_dir" = "X"; then
7673 for x in $LDFLAGS $LTLIBICONV; do
7675 acl_save_prefix="$prefix"
7676 prefix="$acl_final_prefix"
7677 acl_save_exec_prefix="$exec_prefix"
7678 exec_prefix="$acl_final_exec_prefix"
7680 exec_prefix="$acl_save_exec_prefix"
7681 prefix="$acl_save_prefix"
7685 dir=`echo "X$x" | sed -e 's/^X-L//'`
7686 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
7688 found_so="$dir/lib$name.$shlibext"
7689 if test -f "$dir/lib$name.la"; then
7690 found_la="$dir/lib$name.la"
7693 if test -f "$dir/lib$name.$libext"; then
7695 found_a="$dir/lib$name.$libext"
7696 if test -f "$dir/lib$name.la"; then
7697 found_la="$dir/lib$name.la"
7703 if test "X$found_dir" != "X"; then
7708 if test "X$found_dir" != "X"; then
7709 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
7710 if test "X$found_so" != "X"; then
7711 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
7712 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7715 for x in $ltrpathdirs; do
7716 if test "X$x" = "X$found_dir"; then
7721 if test -z "$haveit"; then
7722 ltrpathdirs="$ltrpathdirs $found_dir"
7724 if test "$hardcode_direct" = yes; then
7725 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7727 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
7728 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7730 for x in $rpathdirs; do
7731 if test "X$x" = "X$found_dir"; then
7736 if test -z "$haveit"; then
7737 rpathdirs="$rpathdirs $found_dir"
7741 for x in $LDFLAGS $LIBICONV; do
7743 acl_save_prefix="$prefix"
7744 prefix="$acl_final_prefix"
7745 acl_save_exec_prefix="$exec_prefix"
7746 exec_prefix="$acl_final_exec_prefix"
7748 exec_prefix="$acl_save_exec_prefix"
7749 prefix="$acl_save_prefix"
7751 if test "X$x" = "X-L$found_dir"; then
7756 if test -z "$haveit"; then
7757 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
7759 if test "$hardcode_minus_L" != no; then
7760 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7762 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
7768 if test "X$found_a" != "X"; then
7769 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
7771 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
7774 additional_includedir=
7775 case "$found_dir" in
7777 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
7778 additional_includedir="$basedir/include"
7781 if test "X$additional_includedir" != "X"; then
7782 if test "X$additional_includedir" != "X/usr/include"; then
7784 if test "X$additional_includedir" = "X/usr/local/include"; then
7785 if test -n "$GCC"; then
7787 linux*) haveit=yes;;
7791 if test -z "$haveit"; then
7792 for x in $CPPFLAGS $INCICONV; do
7794 acl_save_prefix="$prefix"
7795 prefix="$acl_final_prefix"
7796 acl_save_exec_prefix="$exec_prefix"
7797 exec_prefix="$acl_final_exec_prefix"
7799 exec_prefix="$acl_save_exec_prefix"
7800 prefix="$acl_save_prefix"
7802 if test "X$x" = "X-I$additional_includedir"; then
7807 if test -z "$haveit"; then
7808 if test -d "$additional_includedir"; then
7809 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
7815 if test -n "$found_la"; then
7816 save_libdir="$libdir"
7818 */* | *\\*) . "$found_la" ;;
7819 *) . "./$found_la" ;;
7821 libdir="$save_libdir"
7822 for dep in $dependency_libs; do
7825 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
7826 if test "X$additional_libdir" != "X/usr/lib"; then
7828 if test "X$additional_libdir" = "X/usr/local/lib"; then
7829 if test -n "$GCC"; then
7831 linux*) haveit=yes;;
7835 if test -z "$haveit"; then
7837 for x in $LDFLAGS $LIBICONV; do
7839 acl_save_prefix="$prefix"
7840 prefix="$acl_final_prefix"
7841 acl_save_exec_prefix="$exec_prefix"
7842 exec_prefix="$acl_final_exec_prefix"
7844 exec_prefix="$acl_save_exec_prefix"
7845 prefix="$acl_save_prefix"
7847 if test "X$x" = "X-L$additional_libdir"; then
7852 if test -z "$haveit"; then
7853 if test -d "$additional_libdir"; then
7854 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
7858 for x in $LDFLAGS $LTLIBICONV; do
7860 acl_save_prefix="$prefix"
7861 prefix="$acl_final_prefix"
7862 acl_save_exec_prefix="$exec_prefix"
7863 exec_prefix="$acl_final_exec_prefix"
7865 exec_prefix="$acl_save_exec_prefix"
7866 prefix="$acl_save_prefix"
7868 if test "X$x" = "X-L$additional_libdir"; then
7873 if test -z "$haveit"; then
7874 if test -d "$additional_libdir"; then
7875 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
7882 dir=`echo "X$dep" | sed -e 's/^X-R//'`
7883 if test "$enable_rpath" != no; then
7885 for x in $rpathdirs; do
7886 if test "X$x" = "X$dir"; then
7891 if test -z "$haveit"; then
7892 rpathdirs="$rpathdirs $dir"
7895 for x in $ltrpathdirs; do
7896 if test "X$x" = "X$dir"; then
7901 if test -z "$haveit"; then
7902 ltrpathdirs="$ltrpathdirs $dir"
7907 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7910 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7913 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
7914 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
7920 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
7921 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
7927 if test "X$rpathdirs" != "X"; then
7928 if test -n "$hardcode_libdir_separator"; then
7930 for found_dir in $rpathdirs; do
7931 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
7933 acl_save_libdir="$libdir"
7935 eval flag=\"$hardcode_libdir_flag_spec\"
7936 libdir="$acl_save_libdir"
7937 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
7939 for found_dir in $rpathdirs; do
7940 acl_save_libdir="$libdir"
7942 eval flag=\"$hardcode_libdir_flag_spec\"
7943 libdir="$acl_save_libdir"
7944 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
7948 if test "X$ltrpathdirs" != "X"; then
7949 for found_dir in $ltrpathdirs; do
7950 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
7961 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
7962 if test "x$ac_cv_type_ptrdiff_t" = x""yes; then :
7966 $as_echo "#define ptrdiff_t long" >>confdefs.h
7971 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
7972 stdlib.h string.h unistd.h sys/param.h
7974 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7975 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7976 eval as_val=\$$as_ac_Header
7977 if test "x$as_val" = x""yes; then :
7978 cat >>confdefs.h <<_ACEOF
7979 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7986 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
7987 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
7988 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
7991 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7992 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7993 eval as_val=\$$as_ac_var
7994 if test "x$as_val" = x""yes; then :
7995 cat >>confdefs.h <<_ACEOF
7996 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snprintf is declared" >&5
8005 $as_echo_n "checking whether _snprintf is declared... " >&6; }
8006 if test "${ac_cv_have_decl__snprintf+set}" = set; then :
8007 $as_echo_n "(cached) " >&6
8009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8010 /* end confdefs.h. */
8017 char *p = (char *) _snprintf;
8024 if ac_fn_c_try_compile "$LINENO"; then :
8025 ac_cv_have_decl__snprintf=yes
8027 ac_cv_have_decl__snprintf=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__snprintf" >&5
8032 $as_echo "$ac_cv_have_decl__snprintf" >&6; }
8033 if test $ac_cv_have_decl__snprintf = yes; then
8039 cat >>confdefs.h <<_ACEOF
8040 #define HAVE_DECL__SNPRINTF $gt_value
8045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snwprintf is declared" >&5
8046 $as_echo_n "checking whether _snwprintf is declared... " >&6; }
8047 if test "${ac_cv_have_decl__snwprintf+set}" = set; then :
8048 $as_echo_n "(cached) " >&6
8050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8051 /* end confdefs.h. */
8058 char *p = (char *) _snwprintf;
8065 if ac_fn_c_try_compile "$LINENO"; then :
8066 ac_cv_have_decl__snwprintf=yes
8068 ac_cv_have_decl__snwprintf=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__snwprintf" >&5
8073 $as_echo "$ac_cv_have_decl__snwprintf" >&6; }
8074 if test $ac_cv_have_decl__snwprintf = yes; then
8080 cat >>confdefs.h <<_ACEOF
8081 #define HAVE_DECL__SNWPRINTF $gt_value
8087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether feof_unlocked is declared" >&5
8088 $as_echo_n "checking whether feof_unlocked is declared... " >&6; }
8089 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then :
8090 $as_echo_n "(cached) " >&6
8092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8093 /* end confdefs.h. */
8099 #ifndef feof_unlocked
8100 char *p = (char *) feof_unlocked;
8107 if ac_fn_c_try_compile "$LINENO"; then :
8108 ac_cv_have_decl_feof_unlocked=yes
8110 ac_cv_have_decl_feof_unlocked=no
8112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_feof_unlocked" >&5
8115 $as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
8116 if test $ac_cv_have_decl_feof_unlocked = yes; then
8122 cat >>confdefs.h <<_ACEOF
8123 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
8128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fgets_unlocked is declared" >&5
8129 $as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
8130 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then :
8131 $as_echo_n "(cached) " >&6
8133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8134 /* end confdefs.h. */
8140 #ifndef fgets_unlocked
8141 char *p = (char *) fgets_unlocked;
8148 if ac_fn_c_try_compile "$LINENO"; then :
8149 ac_cv_have_decl_fgets_unlocked=yes
8151 ac_cv_have_decl_fgets_unlocked=no
8153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_fgets_unlocked" >&5
8156 $as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
8157 if test $ac_cv_have_decl_fgets_unlocked = yes; then
8163 cat >>confdefs.h <<_ACEOF
8164 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
8169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getc_unlocked is declared" >&5
8170 $as_echo_n "checking whether getc_unlocked is declared... " >&6; }
8171 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then :
8172 $as_echo_n "(cached) " >&6
8174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8175 /* end confdefs.h. */
8181 #ifndef getc_unlocked
8182 char *p = (char *) getc_unlocked;
8189 if ac_fn_c_try_compile "$LINENO"; then :
8190 ac_cv_have_decl_getc_unlocked=yes
8192 ac_cv_have_decl_getc_unlocked=no
8194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_getc_unlocked" >&5
8197 $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
8198 if test $ac_cv_have_decl_getc_unlocked = yes; then
8204 cat >>confdefs.h <<_ACEOF
8205 #define HAVE_DECL_GETC_UNLOCKED $gt_value
8210 case $gt_cv_func_printf_posix in
8211 *yes) HAVE_POSIX_PRINTF=1 ;;
8212 *) HAVE_POSIX_PRINTF=0 ;;
8215 if test "$ac_cv_func_asprintf" = yes; then
8221 if test "$ac_cv_func_snprintf" = yes; then
8227 if test "$ac_cv_func_wprintf" = yes; then
8239 am_save_CPPFLAGS="$CPPFLAGS"
8241 for element in $INCICONV; do
8243 for x in $CPPFLAGS; do
8245 acl_save_prefix="$prefix"
8246 prefix="$acl_final_prefix"
8247 acl_save_exec_prefix="$exec_prefix"
8248 exec_prefix="$acl_final_exec_prefix"
8250 exec_prefix="$acl_save_exec_prefix"
8251 prefix="$acl_save_prefix"
8253 if test "X$x" = "X$element"; then
8258 if test -z "$haveit"; then
8259 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
8265 $as_echo_n "checking for iconv... " >&6; }
8266 if test "${am_cv_func_iconv+set}" = set; then :
8267 $as_echo_n "(cached) " >&6
8270 am_cv_func_iconv="no, consider installing GNU libiconv"
8272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8273 /* end confdefs.h. */
8279 iconv_t cd = iconv_open("","");
8280 iconv(cd,NULL,NULL,NULL,NULL);
8286 if ac_fn_c_try_link "$LINENO"; then :
8287 am_cv_func_iconv=yes
8289 rm -f core conftest.err conftest.$ac_objext \
8290 conftest$ac_exeext conftest.$ac_ext
8291 if test "$am_cv_func_iconv" != yes; then
8292 am_save_LIBS="$LIBS"
8293 LIBS="$LIBS $LIBICONV"
8294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8295 /* end confdefs.h. */
8301 iconv_t cd = iconv_open("","");
8302 iconv(cd,NULL,NULL,NULL,NULL);
8308 if ac_fn_c_try_link "$LINENO"; then :
8310 am_cv_func_iconv=yes
8312 rm -f core conftest.err conftest.$ac_objext \
8313 conftest$ac_exeext conftest.$ac_ext
8314 LIBS="$am_save_LIBS"
8318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
8319 $as_echo "$am_cv_func_iconv" >&6; }
8320 if test "$am_cv_func_iconv" = yes; then
8322 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
8325 if test "$am_cv_lib_iconv" = yes; then
8326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
8327 $as_echo_n "checking how to link with libiconv... " >&6; }
8328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
8329 $as_echo "$LIBICONV" >&6; }
8331 CPPFLAGS="$am_save_CPPFLAGS"
8338 if test "$am_cv_func_iconv" = yes; then
8339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
8340 $as_echo_n "checking for iconv declaration... " >&6; }
8341 if test "${am_cv_proto_iconv+set}" = set; then :
8342 $as_echo_n "(cached) " >&6
8345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8346 /* end confdefs.h. */
8354 #if defined(__STDC__) || defined(__cplusplus)
8355 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
8368 if ac_fn_c_try_compile "$LINENO"; then :
8369 am_cv_proto_iconv_arg1=""
8371 am_cv_proto_iconv_arg1="const"
8373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8374 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);"
8377 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
8378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
8379 }$am_cv_proto_iconv" >&5
8381 }$am_cv_proto_iconv" >&6; }
8383 cat >>confdefs.h <<_ACEOF
8384 #define ICONV_CONST $am_cv_proto_iconv_arg1
8390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
8391 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
8392 if test "${am_cv_langinfo_codeset+set}" = set; then :
8393 $as_echo_n "(cached) " >&6
8395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8396 /* end confdefs.h. */
8397 #include <langinfo.h>
8401 char* cs = nl_langinfo(CODESET);
8406 if ac_fn_c_try_link "$LINENO"; then :
8407 am_cv_langinfo_codeset=yes
8409 am_cv_langinfo_codeset=no
8411 rm -f core conftest.err conftest.$ac_objext \
8412 conftest$ac_exeext conftest.$ac_ext
8415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
8416 $as_echo "$am_cv_langinfo_codeset" >&6; }
8417 if test $am_cv_langinfo_codeset = yes; then
8419 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
8423 if test $ac_cv_header_locale_h = yes; then
8425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
8426 $as_echo_n "checking for LC_MESSAGES... " >&6; }
8427 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
8428 $as_echo_n "(cached) " >&6
8430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8431 /* end confdefs.h. */
8441 if ac_fn_c_try_link "$LINENO"; then :
8442 am_cv_val_LC_MESSAGES=yes
8444 am_cv_val_LC_MESSAGES=no
8446 rm -f core conftest.err conftest.$ac_objext \
8447 conftest$ac_exeext conftest.$ac_ext
8449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
8450 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
8451 if test $am_cv_val_LC_MESSAGES = yes; then
8453 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
8459 for ac_prog in bison
8461 # Extract the first word of "$ac_prog", so it can be a program name with args.
8462 set dummy $ac_prog; ac_word=$2
8463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8464 $as_echo_n "checking for $ac_word... " >&6; }
8465 if test "${ac_cv_prog_INTLBISON+set}" = set; then :
8466 $as_echo_n "(cached) " >&6
8468 if test -n "$INTLBISON"; then
8469 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
8471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8475 test -z "$as_dir" && as_dir=.
8476 for ac_exec_ext in '' $ac_executable_extensions; do
8477 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8478 ac_cv_prog_INTLBISON="$ac_prog"
8479 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8488 INTLBISON=$ac_cv_prog_INTLBISON
8489 if test -n "$INTLBISON"; then
8490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
8491 $as_echo "$INTLBISON" >&6; }
8493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8494 $as_echo "no" >&6; }
8498 test -n "$INTLBISON" && break
8501 if test -z "$INTLBISON"; then
8504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
8505 $as_echo_n "checking version of bison... " >&6; }
8506 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
8507 case $ac_prog_version in
8508 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
8509 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
8510 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
8511 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
8513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
8514 $as_echo "$ac_prog_version" >&6; }
8516 if test $ac_verc_fail = yes; then
8535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
8536 $as_echo_n "checking whether NLS is requested... " >&6; }
8537 # Check whether --enable-nls was given.
8538 if test "${enable_nls+set}" = set; then :
8539 enableval=$enable_nls; USE_NLS=$enableval
8544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
8545 $as_echo "$USE_NLS" >&6; }
8550 BUILD_INCLUDED_LIBINTL=no
8551 USE_INCLUDED_LIBINTL=no
8557 if test "$USE_NLS" = "yes"; then
8558 gt_use_preinstalled_gnugettext=no
8560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
8561 $as_echo_n "checking whether included gettext is requested... " >&6; }
8563 # Check whether --with-included-gettext was given.
8564 if test "${with_included_gettext+set}" = set; then :
8565 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
8567 nls_cv_force_use_gnu_gettext=no
8570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
8571 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
8573 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
8574 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
8581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
8582 $as_echo_n "checking for GNU gettext in libc... " >&6; }
8583 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then :
8584 $as_echo_n "(cached) " >&6
8586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8587 /* end confdefs.h. */
8588 #include <libintl.h>
8589 extern int _nl_msg_cat_cntr;
8590 extern int *_nl_domain_bindings;
8594 bindtextdomain ("", "");
8595 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
8600 if ac_fn_c_try_link "$LINENO"; then :
8601 gt_cv_func_gnugettext1_libc=yes
8603 gt_cv_func_gnugettext1_libc=no
8605 rm -f core conftest.err conftest.$ac_objext \
8606 conftest$ac_exeext conftest.$ac_ext
8608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
8609 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
8611 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
8617 acl_save_prefix="$prefix"
8618 prefix="$acl_final_prefix"
8619 acl_save_exec_prefix="$exec_prefix"
8620 exec_prefix="$acl_final_exec_prefix"
8622 eval additional_includedir=\"$includedir\"
8623 eval additional_libdir=\"$libdir\"
8625 exec_prefix="$acl_save_exec_prefix"
8626 prefix="$acl_save_prefix"
8629 # Check whether --with-libintl-prefix was given.
8630 if test "${with_libintl_prefix+set}" = set; then :
8631 withval=$with_libintl_prefix;
8632 if test "X$withval" = "Xno"; then
8635 if test "X$withval" = "X"; then
8637 acl_save_prefix="$prefix"
8638 prefix="$acl_final_prefix"
8639 acl_save_exec_prefix="$exec_prefix"
8640 exec_prefix="$acl_final_exec_prefix"
8642 eval additional_includedir=\"$includedir\"
8643 eval additional_libdir=\"$libdir\"
8645 exec_prefix="$acl_save_exec_prefix"
8646 prefix="$acl_save_prefix"
8649 additional_includedir="$withval/include"
8650 additional_libdir="$withval/lib"
8661 names_already_handled=
8662 names_next_round='intl '
8663 while test -n "$names_next_round"; do
8664 names_this_round="$names_next_round"
8666 for name in $names_this_round; do
8668 for n in $names_already_handled; do
8669 if test "$n" = "$name"; then
8674 if test -z "$already_handled"; then
8675 names_already_handled="$names_already_handled $name"
8676 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
8677 eval value=\"\$HAVE_LIB$uppername\"
8678 if test -n "$value"; then
8679 if test "$value" = yes; then
8680 eval value=\"\$LIB$uppername\"
8681 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
8682 eval value=\"\$LTLIB$uppername\"
8683 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
8692 if test $use_additional = yes; then
8693 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
8694 found_dir="$additional_libdir"
8695 found_so="$additional_libdir/lib$name.$shlibext"
8696 if test -f "$additional_libdir/lib$name.la"; then
8697 found_la="$additional_libdir/lib$name.la"
8700 if test -f "$additional_libdir/lib$name.$libext"; then
8701 found_dir="$additional_libdir"
8702 found_a="$additional_libdir/lib$name.$libext"
8703 if test -f "$additional_libdir/lib$name.la"; then
8704 found_la="$additional_libdir/lib$name.la"
8709 if test "X$found_dir" = "X"; then
8710 for x in $LDFLAGS $LTLIBINTL; do
8712 acl_save_prefix="$prefix"
8713 prefix="$acl_final_prefix"
8714 acl_save_exec_prefix="$exec_prefix"
8715 exec_prefix="$acl_final_exec_prefix"
8717 exec_prefix="$acl_save_exec_prefix"
8718 prefix="$acl_save_prefix"
8722 dir=`echo "X$x" | sed -e 's/^X-L//'`
8723 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
8725 found_so="$dir/lib$name.$shlibext"
8726 if test -f "$dir/lib$name.la"; then
8727 found_la="$dir/lib$name.la"
8730 if test -f "$dir/lib$name.$libext"; then
8732 found_a="$dir/lib$name.$libext"
8733 if test -f "$dir/lib$name.la"; then
8734 found_la="$dir/lib$name.la"
8740 if test "X$found_dir" != "X"; then
8745 if test "X$found_dir" != "X"; then
8746 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
8747 if test "X$found_so" != "X"; then
8748 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
8749 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8752 for x in $ltrpathdirs; do
8753 if test "X$x" = "X$found_dir"; then
8758 if test -z "$haveit"; then
8759 ltrpathdirs="$ltrpathdirs $found_dir"
8761 if test "$hardcode_direct" = yes; then
8762 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8764 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
8765 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8767 for x in $rpathdirs; do
8768 if test "X$x" = "X$found_dir"; then
8773 if test -z "$haveit"; then
8774 rpathdirs="$rpathdirs $found_dir"
8778 for x in $LDFLAGS $LIBINTL; do
8780 acl_save_prefix="$prefix"
8781 prefix="$acl_final_prefix"
8782 acl_save_exec_prefix="$exec_prefix"
8783 exec_prefix="$acl_final_exec_prefix"
8785 exec_prefix="$acl_save_exec_prefix"
8786 prefix="$acl_save_prefix"
8788 if test "X$x" = "X-L$found_dir"; then
8793 if test -z "$haveit"; then
8794 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
8796 if test "$hardcode_minus_L" != no; then
8797 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8799 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
8805 if test "X$found_a" != "X"; then
8806 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
8808 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
8811 additional_includedir=
8812 case "$found_dir" in
8814 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
8815 additional_includedir="$basedir/include"
8818 if test "X$additional_includedir" != "X"; then
8819 if test "X$additional_includedir" != "X/usr/include"; then
8821 if test "X$additional_includedir" = "X/usr/local/include"; then
8822 if test -n "$GCC"; then
8824 linux*) haveit=yes;;
8828 if test -z "$haveit"; then
8829 for x in $CPPFLAGS $INCINTL; do
8831 acl_save_prefix="$prefix"
8832 prefix="$acl_final_prefix"
8833 acl_save_exec_prefix="$exec_prefix"
8834 exec_prefix="$acl_final_exec_prefix"
8836 exec_prefix="$acl_save_exec_prefix"
8837 prefix="$acl_save_prefix"
8839 if test "X$x" = "X-I$additional_includedir"; then
8844 if test -z "$haveit"; then
8845 if test -d "$additional_includedir"; then
8846 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
8852 if test -n "$found_la"; then
8853 save_libdir="$libdir"
8855 */* | *\\*) . "$found_la" ;;
8856 *) . "./$found_la" ;;
8858 libdir="$save_libdir"
8859 for dep in $dependency_libs; do
8862 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8863 if test "X$additional_libdir" != "X/usr/lib"; then
8865 if test "X$additional_libdir" = "X/usr/local/lib"; then
8866 if test -n "$GCC"; then
8868 linux*) haveit=yes;;
8872 if test -z "$haveit"; then
8874 for x in $LDFLAGS $LIBINTL; do
8876 acl_save_prefix="$prefix"
8877 prefix="$acl_final_prefix"
8878 acl_save_exec_prefix="$exec_prefix"
8879 exec_prefix="$acl_final_exec_prefix"
8881 exec_prefix="$acl_save_exec_prefix"
8882 prefix="$acl_save_prefix"
8884 if test "X$x" = "X-L$additional_libdir"; then
8889 if test -z "$haveit"; then
8890 if test -d "$additional_libdir"; then
8891 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
8895 for x in $LDFLAGS $LTLIBINTL; do
8897 acl_save_prefix="$prefix"
8898 prefix="$acl_final_prefix"
8899 acl_save_exec_prefix="$exec_prefix"
8900 exec_prefix="$acl_final_exec_prefix"
8902 exec_prefix="$acl_save_exec_prefix"
8903 prefix="$acl_save_prefix"
8905 if test "X$x" = "X-L$additional_libdir"; then
8910 if test -z "$haveit"; then
8911 if test -d "$additional_libdir"; then
8912 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
8919 dir=`echo "X$dep" | sed -e 's/^X-R//'`
8920 if test "$enable_rpath" != no; then
8922 for x in $rpathdirs; do
8923 if test "X$x" = "X$dir"; then
8928 if test -z "$haveit"; then
8929 rpathdirs="$rpathdirs $dir"
8932 for x in $ltrpathdirs; do
8933 if test "X$x" = "X$dir"; then
8938 if test -z "$haveit"; then
8939 ltrpathdirs="$ltrpathdirs $dir"
8944 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8947 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8950 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
8951 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
8957 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
8958 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
8964 if test "X$rpathdirs" != "X"; then
8965 if test -n "$hardcode_libdir_separator"; then
8967 for found_dir in $rpathdirs; do
8968 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8970 acl_save_libdir="$libdir"
8972 eval flag=\"$hardcode_libdir_flag_spec\"
8973 libdir="$acl_save_libdir"
8974 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
8976 for found_dir in $rpathdirs; do
8977 acl_save_libdir="$libdir"
8979 eval flag=\"$hardcode_libdir_flag_spec\"
8980 libdir="$acl_save_libdir"
8981 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
8985 if test "X$ltrpathdirs" != "X"; then
8986 for found_dir in $ltrpathdirs; do
8987 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
8991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
8992 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
8993 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then :
8994 $as_echo_n "(cached) " >&6
8996 gt_save_CPPFLAGS="$CPPFLAGS"
8997 CPPFLAGS="$CPPFLAGS $INCINTL"
8998 gt_save_LIBS="$LIBS"
8999 LIBS="$LIBS $LIBINTL"
9000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9001 /* end confdefs.h. */
9002 #include <libintl.h>
9003 extern int _nl_msg_cat_cntr;
9008 const char *_nl_expand_alias ();
9012 bindtextdomain ("", "");
9013 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
9018 if ac_fn_c_try_link "$LINENO"; then :
9019 gt_cv_func_gnugettext1_libintl=yes
9021 gt_cv_func_gnugettext1_libintl=no
9023 rm -f core conftest.err conftest.$ac_objext \
9024 conftest$ac_exeext conftest.$ac_ext
9025 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
9026 LIBS="$LIBS $LIBICONV"
9027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9028 /* end confdefs.h. */
9029 #include <libintl.h>
9030 extern int _nl_msg_cat_cntr;
9035 const char *_nl_expand_alias ();
9039 bindtextdomain ("", "");
9040 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
9045 if ac_fn_c_try_link "$LINENO"; then :
9046 LIBINTL="$LIBINTL $LIBICONV"
9047 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
9048 gt_cv_func_gnugettext1_libintl=yes
9051 rm -f core conftest.err conftest.$ac_objext \
9052 conftest$ac_exeext conftest.$ac_ext
9054 CPPFLAGS="$gt_save_CPPFLAGS"
9055 LIBS="$gt_save_LIBS"
9057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
9058 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
9061 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
9062 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
9063 && test "$PACKAGE" != gettext-runtime \
9064 && test "$PACKAGE" != gettext-tools; }; then
9065 gt_use_preinstalled_gnugettext=yes
9073 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
9074 nls_cv_use_gnu_gettext=yes
9078 if test "$nls_cv_use_gnu_gettext" = "yes"; then
9079 BUILD_INCLUDED_LIBINTL=yes
9080 USE_INCLUDED_LIBINTL=yes
9081 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
9082 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
9083 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
9086 if test "$gt_use_preinstalled_gnugettext" = "yes" \
9087 || test "$nls_cv_use_gnu_gettext" = "yes"; then
9092 if test "$gt_use_preinstalled_gnugettext" = "yes" \
9093 || test "$nls_cv_use_gnu_gettext" = "yes"; then
9095 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
9102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
9103 $as_echo_n "checking whether to use NLS... " >&6; }
9104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
9105 $as_echo "$USE_NLS" >&6; }
9106 if test "$USE_NLS" = "yes"; then
9107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
9108 $as_echo_n "checking where the gettext function comes from... " >&6; }
9109 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
9110 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
9111 gt_source="external libintl"
9116 gt_source="included intl directory"
9118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
9119 $as_echo "$gt_source" >&6; }
9122 if test "$USE_NLS" = "yes"; then
9124 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
9125 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
9126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
9127 $as_echo_n "checking how to link with libintl... " >&6; }
9128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
9129 $as_echo "$LIBINTL" >&6; }
9131 for element in $INCINTL; do
9133 for x in $CPPFLAGS; do
9135 acl_save_prefix="$prefix"
9136 prefix="$acl_final_prefix"
9137 acl_save_exec_prefix="$exec_prefix"
9138 exec_prefix="$acl_final_exec_prefix"
9140 exec_prefix="$acl_save_exec_prefix"
9141 prefix="$acl_save_prefix"
9143 if test "X$x" = "X$element"; then
9148 if test -z "$haveit"; then
9149 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9156 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
9159 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
9167 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
9168 BUILD_INCLUDED_LIBINTL=yes
9176 nls_cv_header_libgt=
9187 if test "$USE_INCLUDED_LIBINTL" = yes; then
9188 INTLOBJS="\$(GETTOBJS)"
9192 INTL_LIBTOOL_SUFFIX_PREFIX=
9204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9205 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
9207 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
9208 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
9209 $as_echo_n "(cached) " >&6
9211 cat >conftest.make <<\_ACEOF
9214 @echo '@@@%%%=$(MAKE)=@@@%%%'
9216 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9217 case `${MAKE-make} -f conftest.make 2>/dev/null` in
9219 eval ac_cv_prog_make_${ac_make}_set=yes;;
9221 eval ac_cv_prog_make_${ac_make}_set=no;;
9225 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9227 $as_echo "yes" >&6; }
9230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9231 $as_echo "no" >&6; }
9232 SET_MAKE="MAKE=${MAKE-make}"
9235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5
9236 $as_echo_n "checking for GNU make... " >&6; }
9237 if test "${_cv_gnu_make_command+set}" = set; then :
9238 $as_echo_n "(cached) " >&6
9240 _cv_gnu_make_command='' ;
9241 for a in "$MAKE" make gmake gnumake ; do
9242 if test -z "$a" ; then continue ; fi ;
9243 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
9244 _cv_gnu_make_command=$a ;
9250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_cv_gnu_make_command" >&5
9251 $as_echo "$_cv_gnu_make_command" >&6; } ;
9252 if test "x$_cv_gnu_make_command" != "x" ; then
9258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"Not found\"" >&5
9259 $as_echo "\"Not found\"" >&6; };
9264 # Extract the first word of "ln", so it can be a program name with args.
9265 set dummy ln; ac_word=$2
9266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9267 $as_echo_n "checking for $ac_word... " >&6; }
9268 if test "${ac_cv_path_LN+set}" = set; then :
9269 $as_echo_n "(cached) " >&6
9273 ac_cv_path_LN="$LN" # Let the user override the test with a path.
9276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9280 test -z "$as_dir" && as_dir=.
9281 for ac_exec_ext in '' $ac_executable_extensions; do
9282 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9283 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
9284 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9291 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
9296 if test -n "$LN"; then
9297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
9298 $as_echo "$LN" >&6; }
9300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9301 $as_echo "no" >&6; }
9305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
9306 $as_echo_n "checking whether ln -s works... " >&6; }
9308 if test "$LN_S" = "ln -s"; then
9309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9310 $as_echo "yes" >&6; }
9312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
9313 $as_echo "no, using $LN_S" >&6; }
9316 # Extract the first word of "mv", so it can be a program name with args.
9317 set dummy mv; ac_word=$2
9318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9319 $as_echo_n "checking for $ac_word... " >&6; }
9320 if test "${ac_cv_path_MV+set}" = set; then :
9321 $as_echo_n "(cached) " >&6
9325 ac_cv_path_MV="$MV" # Let the user override the test with a path.
9328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9332 test -z "$as_dir" && as_dir=.
9333 for ac_exec_ext in '' $ac_executable_extensions; do
9334 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9335 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
9336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9343 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
9348 if test -n "$MV"; then
9349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
9350 $as_echo "$MV" >&6; }
9352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9353 $as_echo "no" >&6; }
9357 # Extract the first word of "cp", so it can be a program name with args.
9358 set dummy cp; ac_word=$2
9359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9360 $as_echo_n "checking for $ac_word... " >&6; }
9361 if test "${ac_cv_path_CP+set}" = set; then :
9362 $as_echo_n "(cached) " >&6
9366 ac_cv_path_CP="$CP" # Let the user override the test with a path.
9369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9373 test -z "$as_dir" && as_dir=.
9374 for ac_exec_ext in '' $ac_executable_extensions; do
9375 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9376 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
9377 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9384 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
9389 if test -n "$CP"; then
9390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
9391 $as_echo "$CP" >&6; }
9393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9394 $as_echo "no" >&6; }
9398 # Extract the first word of "rm", so it can be a program name with args.
9399 set dummy rm; ac_word=$2
9400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9401 $as_echo_n "checking for $ac_word... " >&6; }
9402 if test "${ac_cv_path_RM+set}" = set; then :
9403 $as_echo_n "(cached) " >&6
9407 ac_cv_path_RM="$RM" # Let the user override the test with a path.
9410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9414 test -z "$as_dir" && as_dir=.
9415 for ac_exec_ext in '' $ac_executable_extensions; do
9416 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9417 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
9418 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9425 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
9430 if test -n "$RM"; then
9431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
9432 $as_echo "$RM" >&6; }
9434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9435 $as_echo "no" >&6; }
9439 # Extract the first word of "chmod", so it can be a program name with args.
9440 set dummy chmod; ac_word=$2
9441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9442 $as_echo_n "checking for $ac_word... " >&6; }
9443 if test "${ac_cv_path_CHMOD+set}" = set; then :
9444 $as_echo_n "(cached) " >&6
9448 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
9451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9455 test -z "$as_dir" && as_dir=.
9456 for ac_exec_ext in '' $ac_executable_extensions; do
9457 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9458 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
9459 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9466 test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
9470 CHMOD=$ac_cv_path_CHMOD
9471 if test -n "$CHMOD"; then
9472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
9473 $as_echo "$CHMOD" >&6; }
9475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9476 $as_echo "no" >&6; }
9480 for ac_prog in gawk mawk nawk awk
9482 # Extract the first word of "$ac_prog", so it can be a program name with args.
9483 set dummy $ac_prog; ac_word=$2
9484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9485 $as_echo_n "checking for $ac_word... " >&6; }
9486 if test "${ac_cv_prog_AWK+set}" = set; then :
9487 $as_echo_n "(cached) " >&6
9489 if test -n "$AWK"; then
9490 ac_cv_prog_AWK="$AWK" # Let the user override the test.
9492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9496 test -z "$as_dir" && as_dir=.
9497 for ac_exec_ext in '' $ac_executable_extensions; do
9498 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9499 ac_cv_prog_AWK="$ac_prog"
9500 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9510 if test -n "$AWK"; then
9511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
9512 $as_echo "$AWK" >&6; }
9514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9515 $as_echo "no" >&6; }
9519 test -n "$AWK" && break
9522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
9523 $as_echo_n "checking for egrep... " >&6; }
9524 if test "${ac_cv_path_EGREP+set}" = set; then :
9525 $as_echo_n "(cached) " >&6
9527 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
9528 then ac_cv_path_EGREP="$GREP -E"
9530 if test -z "$EGREP"; then
9531 ac_path_EGREP_found=false
9532 # Loop through the user's path and test for each of PROGNAME-LIST
9533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9534 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
9537 test -z "$as_dir" && as_dir=.
9538 for ac_prog in egrep; do
9539 for ac_exec_ext in '' $ac_executable_extensions; do
9540 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
9541 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
9542 # Check for GNU ac_path_EGREP and select it if it is found.
9543 # Check for GNU $ac_path_EGREP
9544 case `"$ac_path_EGREP" --version 2>&1` in
9546 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
9549 $as_echo_n 0123456789 >"conftest.in"
9552 cat "conftest.in" "conftest.in" >"conftest.tmp"
9553 mv "conftest.tmp" "conftest.in"
9554 cp "conftest.in" "conftest.nl"
9555 $as_echo 'EGREP' >> "conftest.nl"
9556 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
9557 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
9558 as_fn_arith $ac_count + 1 && ac_count=$as_val
9559 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
9560 # Best one so far, save it but keep looking for a better one
9561 ac_cv_path_EGREP="$ac_path_EGREP"
9562 ac_path_EGREP_max=$ac_count
9564 # 10*(2^10) chars as input seems more than enough
9565 test $ac_count -gt 10 && break
9567 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
9570 $ac_path_EGREP_found && break 3
9575 if test -z "$ac_cv_path_EGREP"; then
9576 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
9579 ac_cv_path_EGREP=$EGREP
9584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
9585 $as_echo "$ac_cv_path_EGREP" >&6; }
9586 EGREP="$ac_cv_path_EGREP"
9589 # Extract the first word of "sed", so it can be a program name with args.
9590 set dummy sed; 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_path_SED+set}" = set; then :
9594 $as_echo_n "(cached) " >&6
9598 ac_cv_path_SED="$SED" # Let the user override the test with a path.
9601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9605 test -z "$as_dir" && as_dir=.
9606 for ac_exec_ext in '' $ac_executable_extensions; do
9607 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9608 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
9609 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9616 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
9621 if test -n "$SED"; then
9622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
9623 $as_echo "$SED" >&6; }
9625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9626 $as_echo "no" >&6; }
9630 # Extract the first word of "perl", so it can be a program name with args.
9631 set dummy perl; ac_word=$2
9632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9633 $as_echo_n "checking for $ac_word... " >&6; }
9634 if test "${ac_cv_path_PERL+set}" = set; then :
9635 $as_echo_n "(cached) " >&6
9639 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
9642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9646 test -z "$as_dir" && as_dir=.
9647 for ac_exec_ext in '' $ac_executable_extensions; do
9648 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9649 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
9650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9657 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
9661 PERL=$ac_cv_path_PERL
9662 if test -n "$PERL"; then
9663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
9664 $as_echo "$PERL" >&6; }
9666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9667 $as_echo "no" >&6; }
9671 # Extract the first word of "ldconfig", so it can be a program name with args.
9672 set dummy ldconfig; ac_word=$2
9673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9674 $as_echo_n "checking for $ac_word... " >&6; }
9675 if test "${ac_cv_path_LDCONFIG+set}" = set; then :
9676 $as_echo_n "(cached) " >&6
9680 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
9683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9687 test -z "$as_dir" && as_dir=.
9688 for ac_exec_ext in '' $ac_executable_extensions; do
9689 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9690 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
9691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9698 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
9702 LDCONFIG=$ac_cv_path_LDCONFIG
9703 if test -n "$LDCONFIG"; then
9704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
9705 $as_echo "$LDCONFIG" >&6; }
9707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9708 $as_echo "no" >&6; }
9712 if test -n "$ac_tool_prefix"; then
9713 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
9714 set dummy ${ac_tool_prefix}ar; ac_word=$2
9715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9716 $as_echo_n "checking for $ac_word... " >&6; }
9717 if test "${ac_cv_prog_AR+set}" = set; then :
9718 $as_echo_n "(cached) " >&6
9720 if test -n "$AR"; then
9721 ac_cv_prog_AR="$AR" # Let the user override the test.
9723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9727 test -z "$as_dir" && as_dir=.
9728 for ac_exec_ext in '' $ac_executable_extensions; do
9729 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9730 ac_cv_prog_AR="${ac_tool_prefix}ar"
9731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9741 if test -n "$AR"; then
9742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
9743 $as_echo "$AR" >&6; }
9745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9746 $as_echo "no" >&6; }
9751 if test -z "$ac_cv_prog_AR"; then
9753 # Extract the first word of "ar", so it can be a program name with args.
9754 set dummy ar; ac_word=$2
9755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9756 $as_echo_n "checking for $ac_word... " >&6; }
9757 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
9758 $as_echo_n "(cached) " >&6
9760 if test -n "$ac_ct_AR"; then
9761 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
9763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9767 test -z "$as_dir" && as_dir=.
9768 for ac_exec_ext in '' $ac_executable_extensions; do
9769 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9770 ac_cv_prog_ac_ct_AR="ar"
9771 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9780 ac_ct_AR=$ac_cv_prog_ac_ct_AR
9781 if test -n "$ac_ct_AR"; then
9782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
9783 $as_echo "$ac_ct_AR" >&6; }
9785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9786 $as_echo "no" >&6; }
9789 if test "x$ac_ct_AR" = x; then
9792 case $cross_compiling:$ac_tool_warned in
9794 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9795 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9796 ac_tool_warned=yes ;;
9804 if test -n "$ac_tool_prefix"; then
9805 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
9806 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
9807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9808 $as_echo_n "checking for $ac_word... " >&6; }
9809 if test "${ac_cv_prog_RANLIB+set}" = set; then :
9810 $as_echo_n "(cached) " >&6
9812 if test -n "$RANLIB"; then
9813 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9819 test -z "$as_dir" && as_dir=.
9820 for ac_exec_ext in '' $ac_executable_extensions; do
9821 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9822 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
9823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9832 RANLIB=$ac_cv_prog_RANLIB
9833 if test -n "$RANLIB"; then
9834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9835 $as_echo "$RANLIB" >&6; }
9837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9838 $as_echo "no" >&6; }
9843 if test -z "$ac_cv_prog_RANLIB"; then
9844 ac_ct_RANLIB=$RANLIB
9845 # Extract the first word of "ranlib", so it can be a program name with args.
9846 set dummy ranlib; ac_word=$2
9847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9848 $as_echo_n "checking for $ac_word... " >&6; }
9849 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
9850 $as_echo_n "(cached) " >&6
9852 if test -n "$ac_ct_RANLIB"; then
9853 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9859 test -z "$as_dir" && as_dir=.
9860 for ac_exec_ext in '' $ac_executable_extensions; do
9861 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9862 ac_cv_prog_ac_ct_RANLIB="ranlib"
9863 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9872 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
9873 if test -n "$ac_ct_RANLIB"; then
9874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
9875 $as_echo "$ac_ct_RANLIB" >&6; }
9877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9878 $as_echo "no" >&6; }
9881 if test "x$ac_ct_RANLIB" = x; then
9884 case $cross_compiling:$ac_tool_warned in
9886 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9887 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9888 ac_tool_warned=yes ;;
9890 RANLIB=$ac_ct_RANLIB
9893 RANLIB="$ac_cv_prog_RANLIB"
9896 if test -n "$ac_tool_prefix"; then
9897 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
9898 set dummy ${ac_tool_prefix}strip; ac_word=$2
9899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9900 $as_echo_n "checking for $ac_word... " >&6; }
9901 if test "${ac_cv_prog_STRIP+set}" = set; then :
9902 $as_echo_n "(cached) " >&6
9904 if test -n "$STRIP"; then
9905 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9911 test -z "$as_dir" && as_dir=.
9912 for ac_exec_ext in '' $ac_executable_extensions; do
9913 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9914 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
9915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9924 STRIP=$ac_cv_prog_STRIP
9925 if test -n "$STRIP"; then
9926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9927 $as_echo "$STRIP" >&6; }
9929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9930 $as_echo "no" >&6; }
9935 if test -z "$ac_cv_prog_STRIP"; then
9937 # Extract the first word of "strip", so it can be a program name with args.
9938 set dummy strip; ac_word=$2
9939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9940 $as_echo_n "checking for $ac_word... " >&6; }
9941 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
9942 $as_echo_n "(cached) " >&6
9944 if test -n "$ac_ct_STRIP"; then
9945 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
9947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9951 test -z "$as_dir" && as_dir=.
9952 for ac_exec_ext in '' $ac_executable_extensions; do
9953 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9954 ac_cv_prog_ac_ct_STRIP="strip"
9955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9964 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
9965 if test -n "$ac_ct_STRIP"; then
9966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
9967 $as_echo "$ac_ct_STRIP" >&6; }
9969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9970 $as_echo "no" >&6; }
9973 if test "x$ac_ct_STRIP" = x; then
9976 case $cross_compiling:$ac_tool_warned in
9978 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9979 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9980 ac_tool_warned=yes ;;
9985 STRIP="$ac_cv_prog_STRIP"
9988 # Extract the first word of "makeinfo", so it can be a program name with args.
9989 set dummy makeinfo; ac_word=$2
9990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9991 $as_echo_n "checking for $ac_word... " >&6; }
9992 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
9993 $as_echo_n "(cached) " >&6
9995 if test -n "$MAKEINFO"; then
9996 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
9998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10002 test -z "$as_dir" && as_dir=.
10003 for ac_exec_ext in '' $ac_executable_extensions; do
10004 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10005 ac_cv_prog_MAKEINFO="makeinfo"
10006 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10015 MAKEINFO=$ac_cv_prog_MAKEINFO
10016 if test -n "$MAKEINFO"; then
10017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
10018 $as_echo "$MAKEINFO" >&6; }
10020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10021 $as_echo "no" >&6; }
10025 if test "_$MAKEINFO" = "_"; then
10026 MAKEINFO="@echo Makeinfo is missing. Info documentation will not be built.;true"
10028 case "$MAKEINFO" in
10030 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
10031 *** Makeinfo is missing. Info documentation will not be built." >&5
10032 $as_echo "$as_me: WARNING:
10033 *** Makeinfo is missing. Info documentation will not be built." >&2;}
10041 # See if we need a separate native compiler.
10042 if test $cross_compiling = no; then
10046 for ac_prog in gcc cc
10048 # Extract the first word of "$ac_prog", so it can be a program name with args.
10049 set dummy $ac_prog; ac_word=$2
10050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10051 $as_echo_n "checking for $ac_word... " >&6; }
10052 if test "${ac_cv_prog_BUILD_CC+set}" = set; then :
10053 $as_echo_n "(cached) " >&6
10055 if test -n "$BUILD_CC"; then
10056 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
10058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10059 for as_dir in $PATH
10062 test -z "$as_dir" && as_dir=.
10063 for ac_exec_ext in '' $ac_executable_extensions; do
10064 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10065 ac_cv_prog_BUILD_CC="$ac_prog"
10066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10075 BUILD_CC=$ac_cv_prog_BUILD_CC
10076 if test -n "$BUILD_CC"; then
10077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
10078 $as_echo "$BUILD_CC" >&6; }
10080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10081 $as_echo "no" >&6; }
10085 test -n "$BUILD_CC" && break
10089 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
10091 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10092 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10093 eval as_val=\$$as_ac_Header
10094 if test "x$as_val" = x""yes; then :
10095 cat >>confdefs.h <<_ACEOF
10096 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10103 for ac_header in sys/disk.h sys/mount.h
10105 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10106 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
10107 #if HAVE_SYS_QUEUE_H
10108 #include <sys/queue.h>
10112 eval as_val=\$$as_ac_Header
10113 if test "x$as_val" = x""yes; then :
10114 cat >>confdefs.h <<_ACEOF
10115 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10122 for ac_header in net/if.h
10124 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
10125 #if HAVE_SYS_TYPES_H
10126 #include <sys/types.h>
10128 #if HAVE_SYS_SOCKET
10129 #include <sys/socket.h>
10133 if test "x$ac_cv_header_net_if_h" = x""yes; then :
10134 cat >>confdefs.h <<_ACEOF
10135 #define HAVE_NET_IF_H 1
10142 for ac_func in vprintf
10144 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
10145 if test "x$ac_cv_func_vprintf" = x""yes; then :
10146 cat >>confdefs.h <<_ACEOF
10147 #define HAVE_VPRINTF 1
10150 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
10151 if test "x$ac_cv_func__doprnt" = x""yes; then :
10153 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
10161 ac_fn_c_check_member "$LINENO" "struct dirent" "d_reclen" "ac_cv_member_struct_dirent_d_reclen" "#include <dirent.h>
10163 if test "x$ac_cv_member_struct_dirent_d_reclen" = x""yes; then :
10164 $as_echo "#define HAVE_RECLEN_DIRENT 1" >>confdefs.h
10168 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "#include <sys/types.h>
10170 if test "x$ac_cv_type_ssize_t" = x""yes; then :
10171 $as_echo "#define HAVE_TYPE_SSIZE_T 1" >>confdefs.h
10175 ac_fn_c_check_decl "$LINENO" "llseek" "ac_cv_have_decl_llseek" "#include <unistd.h>
10177 if test "x$ac_cv_have_decl_llseek" = x""yes; then :
10178 $as_echo "#define HAVE_LLSEEK_PROTOTYPE 1" >>confdefs.h
10182 ac_fn_c_check_decl "$LINENO" "lseek64" "ac_cv_have_decl_lseek64" "#define _LARGEFILE_SOURCE
10183 #define _LARGEFILE64_SOURCE
10184 #include <unistd.h>
10186 if test "x$ac_cv_have_decl_lseek64" = x""yes; then :
10187 $as_echo "#define HAVE_LSEEK64_PROTOTYPE 1" >>confdefs.h
10191 # The cast to long int works around a bug in the HP C Compiler
10192 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10193 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10194 # This bug is HP SR number 8606223364.
10195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
10196 $as_echo_n "checking size of short... " >&6; }
10197 if test "${ac_cv_sizeof_short+set}" = set; then :
10198 $as_echo_n "(cached) " >&6
10200 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
10203 if test "$ac_cv_type_short" = yes; then
10204 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10205 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10206 { as_fn_set_status 77
10207 as_fn_error "cannot compute sizeof (short)
10208 See \`config.log' for more details." "$LINENO" 5; }; }
10210 ac_cv_sizeof_short=0
10215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
10216 $as_echo "$ac_cv_sizeof_short" >&6; }
10220 cat >>confdefs.h <<_ACEOF
10221 #define SIZEOF_SHORT $ac_cv_sizeof_short
10225 # The cast to long int works around a bug in the HP C Compiler
10226 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10227 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10228 # This bug is HP SR number 8606223364.
10229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
10230 $as_echo_n "checking size of int... " >&6; }
10231 if test "${ac_cv_sizeof_int+set}" = set; then :
10232 $as_echo_n "(cached) " >&6
10234 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
10237 if test "$ac_cv_type_int" = yes; then
10238 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10239 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10240 { as_fn_set_status 77
10241 as_fn_error "cannot compute sizeof (int)
10242 See \`config.log' for more details." "$LINENO" 5; }; }
10249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
10250 $as_echo "$ac_cv_sizeof_int" >&6; }
10254 cat >>confdefs.h <<_ACEOF
10255 #define SIZEOF_INT $ac_cv_sizeof_int
10259 # The cast to long int works around a bug in the HP C Compiler
10260 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10261 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10262 # This bug is HP SR number 8606223364.
10263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
10264 $as_echo_n "checking size of long... " >&6; }
10265 if test "${ac_cv_sizeof_long+set}" = set; then :
10266 $as_echo_n "(cached) " >&6
10268 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
10271 if test "$ac_cv_type_long" = yes; then
10272 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10273 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10274 { as_fn_set_status 77
10275 as_fn_error "cannot compute sizeof (long)
10276 See \`config.log' for more details." "$LINENO" 5; }; }
10278 ac_cv_sizeof_long=0
10283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
10284 $as_echo "$ac_cv_sizeof_long" >&6; }
10288 cat >>confdefs.h <<_ACEOF
10289 #define SIZEOF_LONG $ac_cv_sizeof_long
10293 # The cast to long int works around a bug in the HP C Compiler
10294 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10295 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10296 # This bug is HP SR number 8606223364.
10297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
10298 $as_echo_n "checking size of long long... " >&6; }
10299 if test "${ac_cv_sizeof_long_long+set}" = set; then :
10300 $as_echo_n "(cached) " >&6
10302 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
10305 if test "$ac_cv_type_long_long" = yes; then
10306 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10307 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10308 { as_fn_set_status 77
10309 as_fn_error "cannot compute sizeof (long long)
10310 See \`config.log' for more details." "$LINENO" 5; }; }
10312 ac_cv_sizeof_long_long=0
10317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
10318 $as_echo "$ac_cv_sizeof_long_long" >&6; }
10322 cat >>confdefs.h <<_ACEOF
10323 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10327 SIZEOF_SHORT=$ac_cv_sizeof_short
10328 SIZEOF_INT=$ac_cv_sizeof_int
10329 SIZEOF_LONG=$ac_cv_sizeof_long
10330 SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
10335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
10336 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
10337 if test "${ac_cv_c_bigendian+set}" = set; then :
10338 $as_echo_n "(cached) " >&6
10340 ac_cv_c_bigendian=unknown
10341 # See if we're dealing with a universal compiler.
10342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10343 /* end confdefs.h. */
10344 #ifndef __APPLE_CC__
10345 not a universal capable compiler
10350 if ac_fn_c_try_compile "$LINENO"; then :
10352 # Check for potential -arch flags. It is not universal unless
10353 # there are at least two -arch flags with different values.
10356 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
10357 if test -n "$ac_prev"; then
10359 i?86 | x86_64 | ppc | ppc64)
10360 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
10363 ac_cv_c_bigendian=universal
10369 elif test "x$ac_word" = "x-arch"; then
10374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10375 if test $ac_cv_c_bigendian = unknown; then
10376 # See if sys/param.h defines the BYTE_ORDER macro.
10377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10378 /* end confdefs.h. */
10379 #include <sys/types.h>
10380 #include <sys/param.h>
10385 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
10386 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
10388 bogus endian macros
10395 if ac_fn_c_try_compile "$LINENO"; then :
10396 # It does; now see whether it defined to BIG_ENDIAN or not.
10397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10398 /* end confdefs.h. */
10399 #include <sys/types.h>
10400 #include <sys/param.h>
10405 #if BYTE_ORDER != BIG_ENDIAN
10413 if ac_fn_c_try_compile "$LINENO"; then :
10414 ac_cv_c_bigendian=yes
10416 ac_cv_c_bigendian=no
10418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10422 if test $ac_cv_c_bigendian = unknown; then
10423 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
10424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10425 /* end confdefs.h. */
10426 #include <limits.h>
10431 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
10432 bogus endian macros
10439 if ac_fn_c_try_compile "$LINENO"; then :
10440 # It does; now see whether it defined to _BIG_ENDIAN or not.
10441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10442 /* end confdefs.h. */
10443 #include <limits.h>
10448 #ifndef _BIG_ENDIAN
10456 if ac_fn_c_try_compile "$LINENO"; then :
10457 ac_cv_c_bigendian=yes
10459 ac_cv_c_bigendian=no
10461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10465 if test $ac_cv_c_bigendian = unknown; then
10466 # Compile a test program.
10467 if test "$cross_compiling" = yes; then :
10468 # Try to guess by grepping values from an object file.
10469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10470 /* end confdefs.h. */
10471 short int ascii_mm[] =
10472 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
10473 short int ascii_ii[] =
10474 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
10475 int use_ascii (int i) {
10476 return ascii_mm[i] + ascii_ii[i];
10478 short int ebcdic_ii[] =
10479 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
10480 short int ebcdic_mm[] =
10481 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
10482 int use_ebcdic (int i) {
10483 return ebcdic_mm[i] + ebcdic_ii[i];
10490 return use_ascii (foo) == use_ebcdic (foo);
10495 if ac_fn_c_try_compile "$LINENO"; then :
10496 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
10497 ac_cv_c_bigendian=yes
10499 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
10500 if test "$ac_cv_c_bigendian" = unknown; then
10501 ac_cv_c_bigendian=no
10503 # finding both strings is unlikely to happen, but who knows?
10504 ac_cv_c_bigendian=unknown
10508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10511 /* end confdefs.h. */
10512 $ac_includes_default
10517 /* Are we little or big endian? From Harbison&Steele. */
10521 char c[sizeof (long int)];
10524 return u.c[sizeof (long int) - 1] == 1;
10530 if ac_fn_c_try_run "$LINENO"; then :
10531 ac_cv_c_bigendian=no
10533 ac_cv_c_bigendian=yes
10535 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10536 conftest.$ac_objext conftest.beam conftest.$ac_ext
10541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
10542 $as_echo "$ac_cv_c_bigendian" >&6; }
10543 case $ac_cv_c_bigendian in #(
10545 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
10551 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
10555 as_fn_error "unknown endianness
10556 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
10559 BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
10560 ASM_TYPES_HEADER=./asm_types.h
10562 echo "/* These defines are needed for the public ext2fs.h header file */" \
10564 if grep HAVE_SYS_TYPES_H confdefs.h > tmp_config.$$; then
10565 uniq tmp_config.$$ >> public_config.h
10567 echo "#undef HAVE_SYS_TYPES_H" >> public_config.h
10569 if grep WORDS_BIGENDIAN confdefs.h > tmp_config.$$; then
10570 uniq tmp_config.$$ >> public_config.h
10572 echo "#undef WORDS_BIGENDIAN" >> public_config.h
10574 rm -f tmp_config.$$
10575 PUBLIC_CONFIG_HEADER=./public_config.h
10577 for ac_header in inttypes.h
10579 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
10580 if test "x$ac_cv_header_inttypes_h" = x""yes; then :
10581 cat >>confdefs.h <<_ACEOF
10582 #define HAVE_INTTYPES_H 1
10589 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
10590 if test "x$ac_cv_type_intptr_t" = x""yes; then :
10592 cat >>confdefs.h <<_ACEOF
10593 #define HAVE_INTPTR_T 1
10599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat has a st_flags field" >&5
10600 $as_echo_n "checking whether struct stat has a st_flags field... " >&6; }
10601 if test "${e2fsprogs_cv_struct_st_flags+set}" = set; then :
10602 $as_echo_n "(cached) " >&6
10604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10605 /* end confdefs.h. */
10606 #include <sys/stat.h>
10610 struct stat stat; stat.st_flags = 0;
10615 if ac_fn_c_try_compile "$LINENO"; then :
10616 e2fsprogs_cv_struct_st_flags=yes
10618 e2fsprogs_cv_struct_st_flags=no
10620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags" >&5
10624 $as_echo "$e2fsprogs_cv_struct_st_flags" >&6; }
10625 if test "$e2fsprogs_cv_struct_st_flags" = yes; then
10626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether st_flags field is useful" >&5
10627 $as_echo_n "checking whether st_flags field is useful... " >&6; }
10628 if test "${e2fsprogs_cv_struct_st_flags_immut+set}" = set; then :
10629 $as_echo_n "(cached) " >&6
10631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10632 /* end confdefs.h. */
10633 #include <sys/stat.h>
10637 struct stat stat; stat.st_flags |= UF_IMMUTABLE;
10642 if ac_fn_c_try_compile "$LINENO"; then :
10643 e2fsprogs_cv_struct_st_flags_immut=yes
10645 e2fsprogs_cv_struct_st_flags_immut=no
10647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags_immut" >&5
10651 $as_echo "$e2fsprogs_cv_struct_st_flags_immut" >&6; }
10652 if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
10653 $as_echo "#define HAVE_STAT_FLAGS 1" >>confdefs.h
10657 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h>
10658 #include <sys/socket.h>
10660 if test "x$ac_cv_member_struct_sockaddr_sa_len" = x""yes; then :
10662 cat >>confdefs.h <<_ACEOF
10663 #define HAVE_SA_LEN 1
10668 if test -n "$BLKID_CMT"; then
10669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing blkid_probe_all" >&5
10670 $as_echo_n "checking for library containing blkid_probe_all... " >&6; }
10671 if test "${ac_cv_search_blkid_probe_all+set}" = set; then :
10672 $as_echo_n "(cached) " >&6
10674 ac_func_search_save_LIBS=$LIBS
10675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10676 /* end confdefs.h. */
10678 /* Override any GCC internal prototype to avoid an error.
10679 Use char because int might match the return type of a GCC
10680 builtin and then its argument prototype would still apply. */
10684 char blkid_probe_all ();
10688 return blkid_probe_all ();
10693 for ac_lib in '' blkid; do
10694 if test -z "$ac_lib"; then
10695 ac_res="none required"
10698 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10700 if ac_fn_c_try_link "$LINENO"; then :
10701 ac_cv_search_blkid_probe_all=$ac_res
10703 rm -f core conftest.err conftest.$ac_objext \
10705 if test "${ac_cv_search_blkid_probe_all+set}" = set; then :
10709 if test "${ac_cv_search_blkid_probe_all+set}" = set; then :
10712 ac_cv_search_blkid_probe_all=no
10714 rm conftest.$ac_ext
10715 LIBS=$ac_func_search_save_LIBS
10717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_blkid_probe_all" >&5
10718 $as_echo "$ac_cv_search_blkid_probe_all" >&6; }
10719 ac_res=$ac_cv_search_blkid_probe_all
10720 if test "$ac_res" != no; then :
10721 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10726 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 sync_file_range posix_fadvise fallocate fallocate64 blkid_probe_get_topology mbstowcs
10728 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10729 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10730 eval as_val=\$$as_ac_var
10731 if test "x$as_val" = x""yes; then :
10732 cat >>confdefs.h <<_ACEOF
10733 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
10741 $as_echo_n "checking for socket in -lsocket... " >&6; }
10742 if test "${ac_cv_lib_socket_socket+set}" = set; then :
10743 $as_echo_n "(cached) " >&6
10745 ac_check_lib_save_LIBS=$LIBS
10746 LIBS="-lsocket $LIBS"
10747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10748 /* end confdefs.h. */
10750 /* Override any GCC internal prototype to avoid an error.
10751 Use char because int might match the return type of a GCC
10752 builtin and then its argument prototype would still apply. */
10765 if ac_fn_c_try_link "$LINENO"; then :
10766 ac_cv_lib_socket_socket=yes
10768 ac_cv_lib_socket_socket=no
10770 rm -f core conftest.err conftest.$ac_objext \
10771 conftest$ac_exeext conftest.$ac_ext
10772 LIBS=$ac_check_lib_save_LIBS
10774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
10775 $as_echo "$ac_cv_lib_socket_socket" >&6; }
10776 if test "x$ac_cv_lib_socket_socket" = x""yes; then :
10777 SOCKET_LIB=-lsocket
10781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for optreset" >&5
10782 $as_echo_n "checking for optreset... " >&6; }
10783 if test "${ac_cv_have_optreset+set}" = set; then :
10784 $as_echo_n "(cached) " >&6
10786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10787 /* end confdefs.h. */
10788 #include <unistd.h>
10791 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10792 $EGREP "optreset" >/dev/null 2>&1; then :
10793 ac_cv_have_optreset=yes
10795 ac_cv_have_optreset=no
10800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_optreset" >&5
10801 $as_echo "$ac_cv_have_optreset" >&6; }
10802 if test $ac_cv_have_optreset = yes; then
10803 $as_echo "#define HAVE_OPTRESET 1" >>confdefs.h
10807 ac_fn_c_check_func "$LINENO" "sem_init" "ac_cv_func_sem_init"
10808 if test "x$ac_cv_func_sem_init" = x""yes; then :
10811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lpthread" >&5
10812 $as_echo_n "checking for sem_init in -lpthread... " >&6; }
10813 if test "${ac_cv_lib_pthread_sem_init+set}" = set; then :
10814 $as_echo_n "(cached) " >&6
10816 ac_check_lib_save_LIBS=$LIBS
10817 LIBS="-lpthread $LIBS"
10818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10819 /* end confdefs.h. */
10821 /* Override any GCC internal prototype to avoid an error.
10822 Use char because int might match the return type of a GCC
10823 builtin and then its argument prototype would still apply. */
10831 return sem_init ();
10836 if ac_fn_c_try_link "$LINENO"; then :
10837 ac_cv_lib_pthread_sem_init=yes
10839 ac_cv_lib_pthread_sem_init=no
10841 rm -f core conftest.err conftest.$ac_objext \
10842 conftest$ac_exeext conftest.$ac_ext
10843 LIBS=$ac_check_lib_save_LIBS
10845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_sem_init" >&5
10846 $as_echo "$ac_cv_lib_pthread_sem_init" >&6; }
10847 if test "x$ac_cv_lib_pthread_sem_init" = x""yes; then :
10848 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
10850 SEM_INIT_LIB=-lpthread
10852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lrt" >&5
10853 $as_echo_n "checking for sem_init in -lrt... " >&6; }
10854 if test "${ac_cv_lib_rt_sem_init+set}" = set; then :
10855 $as_echo_n "(cached) " >&6
10857 ac_check_lib_save_LIBS=$LIBS
10859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10860 /* end confdefs.h. */
10862 /* Override any GCC internal prototype to avoid an error.
10863 Use char because int might match the return type of a GCC
10864 builtin and then its argument prototype would still apply. */
10872 return sem_init ();
10877 if ac_fn_c_try_link "$LINENO"; then :
10878 ac_cv_lib_rt_sem_init=yes
10880 ac_cv_lib_rt_sem_init=no
10882 rm -f core conftest.err conftest.$ac_objext \
10883 conftest$ac_exeext conftest.$ac_ext
10884 LIBS=$ac_check_lib_save_LIBS
10886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sem_init" >&5
10887 $as_echo "$ac_cv_lib_rt_sem_init" >&6; }
10888 if test "x$ac_cv_lib_rt_sem_init" = x""yes; then :
10889 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
10893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lposix4" >&5
10894 $as_echo_n "checking for sem_init in -lposix4... " >&6; }
10895 if test "${ac_cv_lib_posix4_sem_init+set}" = set; then :
10896 $as_echo_n "(cached) " >&6
10898 ac_check_lib_save_LIBS=$LIBS
10899 LIBS="-lposix4 $LIBS"
10900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10901 /* end confdefs.h. */
10903 /* Override any GCC internal prototype to avoid an error.
10904 Use char because int might match the return type of a GCC
10905 builtin and then its argument prototype would still apply. */
10913 return sem_init ();
10918 if ac_fn_c_try_link "$LINENO"; then :
10919 ac_cv_lib_posix4_sem_init=yes
10921 ac_cv_lib_posix4_sem_init=no
10923 rm -f core conftest.err conftest.$ac_objext \
10924 conftest$ac_exeext conftest.$ac_ext
10925 LIBS=$ac_check_lib_save_LIBS
10927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sem_init" >&5
10928 $as_echo "$ac_cv_lib_posix4_sem_init" >&6; }
10929 if test "x$ac_cv_lib_posix4_sem_init" = x""yes; then :
10930 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
10932 SEM_INIT_LIB=-lposix4
10941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unified diff option" >&5
10942 $as_echo_n "checking for unified diff option... " >&6; }
10943 if diff -u $0 $0 > /dev/null 2>&1 ; then
10948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNI_DIFF_OPTS" >&5
10949 $as_echo "$UNI_DIFF_OPTS" >&6; }
10953 $as_echo "#define HAVE_EXT2_IOCTLS 1" >>confdefs.h
10973 linux* | gnu* | k*bsd*-gnu)
10974 if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
10976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, root_prefix defaults to ''" >&5
10977 $as_echo "On $host_os systems, root_prefix defaults to ''" >&6; }
10982 linux* | gnu* | k*bsd*-gnu)
10983 if test "$prefix" = NONE ; then
10985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, prefix defaults to /usr" >&5
10986 $as_echo "On $host_os systems, prefix defaults to /usr" >&6; }
10987 if test "$mandir" = '${prefix}/man' ; then
10988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ...and mandir defaults to /usr/share/man" >&5
10989 $as_echo "...and mandir defaults to /usr/share/man" >&6; }
10990 mandir=/usr/share/man
10995 if test "$root_prefix" = NONE ; then
10996 if test "$prefix" = NONE ; then
10997 root_prefix="$ac_default_prefix"
10999 root_prefix="$prefix"
11001 root_bindir=$bindir
11002 root_sbindir=$sbindir
11003 root_libdir=$libdir
11004 root_sysconfdir=$sysconfdir
11006 root_bindir='${root_prefix}/bin'
11007 root_sbindir='${root_prefix}/sbin'
11008 root_libdir='${root_prefix}/lib'
11009 root_sysconfdir='${root_prefix}/etc'
11011 if test "$bindir" != '${exec_prefix}/bin'; then
11012 root_bindir=$bindir
11013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_bindir to $root_bindir" >&5
11014 $as_echo "Setting root_bindir to $root_bindir" >&6; }
11016 if test "$sbindir" != '${exec_prefix}/sbin'; then
11017 root_sbindir=$sbindir
11018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sbindir to $root_sbindir" >&5
11019 $as_echo "Setting root_sbindir to $root_sbindir" >&6; }
11021 if test "$libdir" != '${exec_prefix}/lib'; then
11022 root_libdir=$libdir
11023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_libdir to $root_libdir" >&5
11024 $as_echo "Setting root_libdir to $root_libdir" >&6; }
11026 if test "$sysconfdir" != '${prefix}/etc'; then
11027 root_sysconfdir=$sysconfdir
11028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sysconfdir to $root_sysconfdir" >&5
11029 $as_echo "Setting root_sysconfdir to $root_sysconfdir" >&6; }
11036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linker accepts -static" >&5
11037 $as_echo_n "checking whether linker accepts -static... " >&6; }
11038 if test "${ac_cv_e2fsprogs_use_static+set}" = set; then :
11039 $as_echo_n "(cached) " >&6
11041 SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static"
11042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11043 /* end confdefs.h. */
11053 if ac_fn_c_try_link "$LINENO"; then :
11054 ac_cv_e2fsprogs_use_static=yes
11056 ac_cv_e2fsprogs_use_static=no
11058 rm -f core conftest.err conftest.$ac_objext \
11059 conftest$ac_exeext conftest.$ac_ext
11060 LDFLAGS=$SAVE_LDFLAGS
11065 ac_cv_e2fsprogs_use_static=no
11068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_e2fsprogs_use_static" >&5
11069 $as_echo "$ac_cv_e2fsprogs_use_static" >&6; }
11071 if test $ac_cv_e2fsprogs_use_static = yes; then
11072 LDFLAG_STATIC=-static
11077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using Apple Darwin / GNU libintl workaround" >&5
11078 $as_echo "Using Apple Darwin / GNU libintl workaround" >&6; }
11079 $as_echo "#define _INTL_REDIRECT_MACROS 1" >>confdefs.h
11083 SS_DIR=`cd ${srcdir}/lib/ss; pwd`
11084 ET_DIR=`cd ${srcdir}/lib/et; pwd`
11087 if test "$cross_compiling" = yes ; then
11090 DO_TEST_SUITE=check
11094 if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
11095 INTL_FLAGS='-I$(top_builddir)/intl -I$(top_srcdir)/intl'
11098 if test $cross_compiling = no; then
11099 BUILD_CFLAGS="$CFLAGS"
11100 BUILD_LDFLAGS="$LDFLAGS"
11107 test -d lib || mkdir lib
11108 test -d include || mkdir include
11109 test -d include/linux || mkdir include/linux
11110 test -d include/asm || mkdir include/asm
11111 for i in MCONFIG Makefile e2fsprogs.spec \
11112 util/Makefile util/subst.conf util/gen-tarball \
11113 lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \
11114 lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \
11115 lib/uuid/Makefile lib/uuid/uuid_types.h \
11116 lib/blkid/Makefile lib/blkid/blkid_types.h \
11117 lib/ss/ss.pc lib/uuid/uuid.pc lib/et/com_err.pc \
11118 lib/e2p/e2p.pc lib/blkid/blkid.pc lib/ext2fs/ext2fs.pc \
11119 misc/Makefile ext2ed/Makefile e2fsck/Makefile \
11120 debugfs/Makefile tests/Makefile tests/progs/Makefile \
11121 resize/Makefile doc/Makefile intl/Makefile \
11122 intl/libgnuintl.h po/Makefile.in ; do
11123 if test -d `dirname ${srcdir}/$i` ; then
11124 outlist="$outlist $i"
11127 ac_config_files="$ac_config_files $outlist"
11129 cat >confcache <<\_ACEOF
11130 # This file is a shell script that caches the results of configure
11131 # tests run on this system so they can be shared between configure
11132 # scripts and configure runs, see configure's option --config-cache.
11133 # It is not useful on other systems. If it contains results you don't
11134 # want to keep, you may remove or edit it.
11136 # config.status only pays attention to the cache file if you give it
11137 # the --recheck option to rerun configure.
11139 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11140 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11141 # following values.
11145 # The following way of writing the cache mishandles newlines in values,
11146 # but we know of no workaround that is simple, portable, and efficient.
11147 # So, we kill variables containing newlines.
11148 # Ultrix sh set writes to stderr and can't be redirected directly,
11149 # and sets the high bit in the cache file unless we assign to the vars.
11151 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11152 eval ac_val=\$$ac_var
11156 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11157 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11160 _ | IFS | as_nl) ;; #(
11161 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11162 *) { eval $ac_var=; unset $ac_var;} ;;
11168 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11169 *${as_nl}ac_space=\ *)
11170 # `set' does not quote correctly, so add quotes: double-quote
11171 # substitution turns \\\\ into \\, and sed turns \\ into \.
11174 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11177 # `set' quotes correctly as required by POSIX, so do not add quotes.
11178 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11187 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11189 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11191 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11192 if test -w "$cache_file"; then
11193 test "x$cache_file" != "x/dev/null" &&
11194 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11195 $as_echo "$as_me: updating cache $cache_file" >&6;}
11196 cat confcache >$cache_file
11198 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11199 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11204 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11205 # Let make expand exec_prefix.
11206 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11208 # Transform confdefs.h into DEFS.
11209 # Protect against shell expansion while executing Makefile rules.
11210 # Protect against Makefile macro expansion.
11212 # If the first sed substitution is executed (which looks for macros that
11213 # take arguments), then branch to the quote section. Otherwise,
11214 # look for a macro that doesn't take arguments.
11224 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
11226 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
11230 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
11243 DEFS=`sed -n "$ac_script" confdefs.h`
11248 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11249 # 1. Remove the extension, and $U if already installed.
11250 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11251 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11252 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11253 # will be set to the directory where LIBOBJS objects are built.
11254 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11255 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11257 LIBOBJS=$ac_libobjs
11259 LTLIBOBJS=$ac_ltlibobjs
11264 : ${CONFIG_STATUS=./config.status}
11266 ac_clean_files_save=$ac_clean_files
11267 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11268 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11269 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11271 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11273 # Generated by $as_me.
11274 # Run this file to recreate the current configuration.
11275 # Compiler output produced by configure, useful for debugging
11276 # configure, is in config.log if it exists.
11279 ac_cs_recheck=false
11282 SHELL=\${CONFIG_SHELL-$SHELL}
11285 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11286 ## -------------------- ##
11287 ## M4sh Initialization. ##
11288 ## -------------------- ##
11290 # Be more Bourne compatible
11291 DUALCASE=1; export DUALCASE # for MKS sh
11292 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11295 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11296 # is contrary to our usage. Disable this feature.
11297 alias -g '${1+"$@"}'='"$@"'
11298 setopt NO_GLOB_SUBST
11300 case `(set -o) 2>/dev/null` in #(
11312 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11313 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11314 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11315 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11316 # Prefer a ksh shell builtin over an external printf program on Solaris,
11317 # but without wasting forks for bash or zsh.
11318 if test -z "$BASH_VERSION$ZSH_VERSION" \
11319 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11320 as_echo='print -r --'
11321 as_echo_n='print -rn --'
11322 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11323 as_echo='printf %s\n'
11324 as_echo_n='printf %s'
11326 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11327 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11328 as_echo_n='/usr/ucb/echo -n'
11330 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11331 as_echo_n_body='eval
11335 expr "X$arg" : "X\\(.*\\)$as_nl";
11336 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11338 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11340 export as_echo_n_body
11341 as_echo_n='sh -c $as_echo_n_body as_echo'
11343 export as_echo_body
11344 as_echo='sh -c $as_echo_body as_echo'
11347 # The user is always right.
11348 if test "${PATH_SEPARATOR+set}" != set; then
11350 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11351 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11358 # We need space, tab and new line, in precisely that order. Quoting is
11359 # there to prevent editors from complaining about space-tab.
11360 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11361 # splitting by setting IFS to empty value.)
11364 # Find who we are. Look in the path if we contain no directory separator.
11366 *[\\/]* ) as_myself=$0 ;;
11367 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11368 for as_dir in $PATH
11371 test -z "$as_dir" && as_dir=.
11372 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11378 # We did not find ourselves, most probably we were run as `sh COMMAND'
11379 # in which case we are not to be found in the path.
11380 if test "x$as_myself" = x; then
11383 if test ! -f "$as_myself"; then
11384 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11388 # Unset variables that we do not need and which cause bugs (e.g. in
11389 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11390 # suppresses any "Segmentation fault" message there. '((' could
11391 # trigger a bug in pdksh 5.2.14.
11392 for as_var in BASH_ENV ENV MAIL MAILPATH
11393 do eval test x\${$as_var+set} = xset \
11394 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11407 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11410 # as_fn_error ERROR [LINENO LOG_FD]
11411 # ---------------------------------
11412 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11413 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11414 # script with status $?, using 1 if that was 0.
11417 as_status=$?; test $as_status -eq 0 && as_status=1
11419 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11420 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
11422 $as_echo "$as_me: error: $1" >&2
11423 as_fn_exit $as_status
11427 # as_fn_set_status STATUS
11428 # -----------------------
11429 # Set $? to STATUS, without forking.
11430 as_fn_set_status ()
11433 } # as_fn_set_status
11435 # as_fn_exit STATUS
11436 # -----------------
11437 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11441 as_fn_set_status $1
11447 # Portably unset VAR.
11450 { eval $1=; unset $1;}
11452 as_unset=as_fn_unset
11453 # as_fn_append VAR VALUE
11454 # ----------------------
11455 # Append the text in VALUE to the end of the definition contained in VAR. Take
11456 # advantage of any shell optimizations that allow amortized linear growth over
11457 # repeated appends, instead of the typical quadratic growth present in naive
11459 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11460 eval 'as_fn_append ()
11471 # as_fn_arith ARG...
11472 # ------------------
11473 # Perform arithmetic evaluation on the ARGs, and store the result in the
11474 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11475 # must be portable across $(()) and expr.
11476 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11477 eval 'as_fn_arith ()
11484 as_val=`expr "$@" || test $? -eq 1`
11489 if expr a : '\(a\)' >/dev/null 2>&1 &&
11490 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11496 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11497 as_basename=basename
11502 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11508 as_me=`$as_basename -- "$0" ||
11509 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11510 X"$0" : 'X\(//\)$' \| \
11511 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11513 sed '/^.*\/\([^/][^/]*\)\/*$/{
11527 # Avoid depending upon Character Ranges.
11528 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11529 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11530 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11531 as_cr_digits='0123456789'
11532 as_cr_alnum=$as_cr_Letters$as_cr_digits
11534 ECHO_C= ECHO_N= ECHO_T=
11535 case `echo -n x` in #(((((
11537 case `echo 'xy\c'` in
11538 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11540 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11547 rm -f conf$$ conf$$.exe conf$$.file
11548 if test -d conf$$.dir; then
11549 rm -f conf$$.dir/conf$$.file
11552 mkdir conf$$.dir 2>/dev/null
11554 if (echo >conf$$.file) 2>/dev/null; then
11555 if ln -s conf$$.file conf$$ 2>/dev/null; then
11557 # ... but there are two gotchas:
11558 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11559 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11560 # In both cases, we have to default to `cp -p'.
11561 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11563 elif ln conf$$.file conf$$ 2>/dev/null; then
11571 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11572 rmdir conf$$.dir 2>/dev/null
11577 # Create "$as_dir" as a directory, including parents if necessary.
11582 -*) as_dir=./$as_dir;;
11584 test -d "$as_dir" || eval $as_mkdir_p || {
11588 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11589 *) as_qdir=$as_dir;;
11591 as_dirs="'$as_qdir' $as_dirs"
11592 as_dir=`$as_dirname -- "$as_dir" ||
11593 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11594 X"$as_dir" : 'X\(//\)[^/]' \| \
11595 X"$as_dir" : 'X\(//\)$' \| \
11596 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11597 $as_echo X"$as_dir" |
11598 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11602 /^X\(\/\/\)[^/].*/{
11615 test -d "$as_dir" && break
11617 test -z "$as_dirs" || eval "mkdir $as_dirs"
11618 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
11622 if mkdir -p . 2>/dev/null; then
11623 as_mkdir_p='mkdir -p "$as_dir"'
11625 test -d ./-p && rmdir ./-p
11629 if test -x / >/dev/null 2>&1; then
11630 as_test_x='test -x'
11632 if ls -dL / >/dev/null 2>&1; then
11639 if test -d "$1"; then
11645 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
11646 ???[sx]*):;;*)false;;esac;fi
11650 as_executable_p=$as_test_x
11652 # Sed expression to map a string onto a valid CPP name.
11653 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11655 # Sed expression to map a string onto a valid variable name.
11656 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11660 ## ----------------------------------- ##
11661 ## Main body of $CONFIG_STATUS script. ##
11662 ## ----------------------------------- ##
11664 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11666 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11667 # Save the log message, to keep $0 and so on meaningful, and to
11668 # report actual input values of CONFIG_FILES etc. instead of their
11669 # values after options handling.
11671 This file was extended by $as_me, which was
11672 generated by GNU Autoconf 2.65. Invocation command line was
11674 CONFIG_FILES = $CONFIG_FILES
11675 CONFIG_HEADERS = $CONFIG_HEADERS
11676 CONFIG_LINKS = $CONFIG_LINKS
11677 CONFIG_COMMANDS = $CONFIG_COMMANDS
11680 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11685 case $ac_config_files in *"
11686 "*) set x $ac_config_files; shift; ac_config_files=$*;;
11691 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11692 # Files that config.status was made for.
11693 config_files="$ac_config_files"
11694 config_commands="$ac_config_commands"
11698 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11700 \`$as_me' instantiates files and other configuration actions
11701 from templates according to the current configuration. Unless the files
11702 and actions are specified as TAGs, all are instantiated by default.
11704 Usage: $0 [OPTION]... [TAG]...
11706 -h, --help print this help, then exit
11707 -V, --version print version number and configuration settings, then exit
11708 --config print configuration, then exit
11709 -q, --quiet, --silent
11710 do not print progress messages
11711 -d, --debug don't remove temporary files
11712 --recheck update $as_me by reconfiguring in the same conditions
11713 --file=FILE[:TEMPLATE]
11714 instantiate the configuration file FILE
11716 Configuration files:
11719 Configuration commands:
11722 Report bugs to the package provider."
11725 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11726 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11729 configured by $0, generated by GNU Autoconf 2.65,
11730 with options \\"\$ac_cs_config\\"
11732 Copyright (C) 2009 Free Software Foundation, Inc.
11733 This config.status script is free software; the Free Software Foundation
11734 gives unlimited permission to copy, distribute and modify it."
11740 test -n "\$AWK" || AWK=awk
11743 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11744 # The default lists apply if the user does not specify any file.
11750 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11751 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11762 # Handling of the options.
11763 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11765 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11766 $as_echo "$ac_cs_version"; exit ;;
11767 --config | --confi | --conf | --con | --co | --c )
11768 $as_echo "$ac_cs_config"; exit ;;
11769 --debug | --debu | --deb | --de | --d | -d )
11771 --file | --fil | --fi | --f )
11774 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11776 as_fn_append CONFIG_FILES " '$ac_optarg'"
11777 ac_need_defaults=false;;
11778 --he | --h | --help | --hel | -h )
11779 $as_echo "$ac_cs_usage"; exit ;;
11780 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11781 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11784 # This is an error.
11785 -*) as_fn_error "unrecognized option: \`$1'
11786 Try \`$0 --help' for more information." ;;
11788 *) as_fn_append ac_config_targets " $1"
11789 ac_need_defaults=false ;;
11795 ac_configure_extra_args=
11797 if $ac_cs_silent; then
11799 ac_configure_extra_args="$ac_configure_extra_args --silent"
11803 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11804 if \$ac_cs_recheck; then
11805 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11807 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11808 CONFIG_SHELL='$SHELL'
11809 export CONFIG_SHELL
11814 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11818 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11819 ## Running $as_me. ##
11825 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11829 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
11830 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
11832 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
11833 # Capture the value of LINGUAS because we need it to compute CATALOGS.
11834 LINGUAS="${LINGUAS-%UNSET%}"
11839 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11841 # Handling of arguments.
11842 for ac_config_target in $ac_config_targets
11844 case $ac_config_target in
11845 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
11846 "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;;
11848 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11853 # If the user did not use the arguments to specify the items to instantiate,
11854 # then the envvar interface is used. Set only those that are not.
11855 # We use the long form for the default assignment because of an extremely
11856 # bizarre bug on SunOS 4.1.3.
11857 if $ac_need_defaults; then
11858 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11859 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11862 # Have a temporary directory for convenience. Make it in the build tree
11863 # simply because there is no reason against having it here, and in addition,
11864 # creating and moving files from /tmp can sometimes cause problems.
11865 # Hook for its removal unless debugging.
11866 # Note that there is a small window in which the directory will not be cleaned:
11867 # after its creation but before its name has been assigned to `$tmp'.
11871 trap 'exit_status=$?
11872 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
11874 trap 'as_fn_exit 1' 1 2 13 15
11876 # Create a (secure) tmp directory for tmp files.
11879 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11880 test -n "$tmp" && test -d "$tmp"
11883 tmp=./conf$$-$RANDOM
11884 (umask 077 && mkdir "$tmp")
11885 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
11887 # Set up the scripts for CONFIG_FILES section.
11888 # No need to generate them if there are no CONFIG_FILES.
11889 # This happens for instance with `./config.status config.h'.
11890 if test -n "$CONFIG_FILES"; then
11892 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
11893 ac_cs_awk_getline=:
11894 ac_cs_awk_pipe_init=
11895 ac_cs_awk_read_file='
11896 while ((getline aline < (F[key])) > 0)
11899 ac_cs_awk_pipe_fini=
11901 ac_cs_awk_getline=false
11902 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
11903 ac_cs_awk_read_file='
11905 print "cat " F[key] " &&"
11906 '$ac_cs_awk_pipe_init
11907 # The final `:' finishes the AND list.
11908 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
11910 ac_cr=`echo X | tr X '\015'`
11911 # On cygwin, bash can eat \r inside `` if the user requested igncr.
11912 # But we know of no other shell where ac_cr would be empty at this
11913 # point, so we can use a bashism as a fallback.
11914 if test "x$ac_cr" = x; then
11915 eval ac_cr=\$\'\\r\'
11917 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11918 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11921 ac_cs_awk_cr=$ac_cr
11924 echo 'BEGIN {' >"$tmp/subs1.awk" &&
11927 # Create commands to substitute file output variables.
11929 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
11930 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
11931 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
11934 } >conf$$files.sh &&
11935 . ./conf$$files.sh ||
11936 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
11937 rm -f conf$$files.sh
11940 echo "cat >conf$$subs.awk <<_ACEOF" &&
11941 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11943 } >conf$$subs.sh ||
11944 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
11945 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
11947 for ac_last_try in false false false false false :; do
11948 . ./conf$$subs.sh ||
11949 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
11951 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11952 if test $ac_delim_n = $ac_delim_num; then
11954 elif $ac_last_try; then
11955 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
11957 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11960 rm -f conf$$subs.sh
11962 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11963 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
11967 s/^/S["/; s/!.*/"]=/
11977 s/\(.\{148\}\)..*/\1/
11979 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11984 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11991 s/\(.\{148\}\)..*/\1/
11993 s/["\\]/\\&/g; s/^/"/; s/$/"/
11997 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12002 ' <conf$$subs.awk | sed '
12007 ' >>$CONFIG_STATUS || ac_write_fail=1
12008 rm -f conf$$subs.awk
12009 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12011 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
12012 for (key in S) S_is_set[key] = 1
12014 \$ac_cs_awk_pipe_init
12018 nfields = split(line, field, "@")
12020 len = length(field[1])
12021 for (i = 2; i < nfields; i++) {
12023 keylen = length(key)
12024 if (S_is_set[key]) {
12026 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12027 len += length(value) + length(field[++i])
12032 if (nfields == 3 && !substed) {
12034 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
12035 \$ac_cs_awk_read_file
12041 \$ac_cs_awk_pipe_fini
12044 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12045 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12046 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12049 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
12050 || as_fn_error "could not setup config files machinery" "$LINENO" 5
12053 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12054 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12055 # trailing colons and then remove the whole line if VPATH becomes empty
12056 # (actually we leave an empty line to preserve line numbers).
12057 if test "x$srcdir" = x.; then
12058 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12059 s/:*\$(srcdir):*/:/
12060 s/:*\${srcdir}:*/:/
12062 s/^\([^=]*=[ ]*\):*/\1/
12068 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12069 fi # test -n "$CONFIG_FILES"
12072 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
12077 :[FHLC]) ac_mode=$ac_tag; continue;;
12079 case $ac_mode$ac_tag in
12081 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
12082 :[FH]-) ac_tag=-:-;;
12083 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12100 -) ac_f="$tmp/stdin";;
12101 *) # Look for the file first in the build tree, then in the source tree
12102 # (if the path is not absolute). The absolute path cannot be DOS-style,
12103 # because $ac_f cannot contain `:'.
12107 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12109 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12111 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12112 as_fn_append ac_file_inputs " '$ac_f'"
12115 # Let's still pretend it is `configure' which instantiates (i.e., don't
12116 # use $as_me), people would be surprised to read:
12117 # /* config.h. Generated by config.status. */
12118 configure_input='Generated from '`
12119 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12121 if test x"$ac_file" != x-; then
12122 configure_input="$ac_file. $configure_input"
12123 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12124 $as_echo "$as_me: creating $ac_file" >&6;}
12126 # Neutralize special characters interpreted by sed in replacement strings.
12127 case $configure_input in #(
12128 *\&* | *\|* | *\\* )
12129 ac_sed_conf_input=`$as_echo "$configure_input" |
12130 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12131 *) ac_sed_conf_input=$configure_input;;
12135 *:-:* | *:-) cat >"$tmp/stdin" \
12136 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
12141 ac_dir=`$as_dirname -- "$ac_file" ||
12142 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12143 X"$ac_file" : 'X\(//\)[^/]' \| \
12144 X"$ac_file" : 'X\(//\)$' \| \
12145 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12146 $as_echo X"$ac_file" |
12147 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12151 /^X\(\/\/\)[^/].*/{
12164 as_dir="$ac_dir"; as_fn_mkdir_p
12168 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12170 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12171 # A ".." for each directory in $ac_dir_suffix.
12172 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12173 case $ac_top_builddir_sub in
12174 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12175 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12178 ac_abs_top_builddir=$ac_pwd
12179 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12180 # for backward compatibility:
12181 ac_top_builddir=$ac_top_build_prefix
12184 .) # We are building in place.
12186 ac_top_srcdir=$ac_top_builddir_sub
12187 ac_abs_top_srcdir=$ac_pwd ;;
12188 [\\/]* | ?:[\\/]* ) # Absolute name.
12189 ac_srcdir=$srcdir$ac_dir_suffix;
12190 ac_top_srcdir=$srcdir
12191 ac_abs_top_srcdir=$srcdir ;;
12192 *) # Relative name.
12193 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12194 ac_top_srcdir=$ac_top_build_prefix$srcdir
12195 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12197 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12207 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12208 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12212 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12213 # If the template does not know about datarootdir, expand it.
12214 # FIXME: This hack should be removed a few years after 2.60.
12215 ac_datarootdir_hack=; ac_datarootdir_seen=
12226 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12227 *datarootdir*) ac_datarootdir_seen=yes;;
12228 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12229 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12230 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12232 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12233 ac_datarootdir_hack='
12234 s&@datadir@&$datadir&g
12235 s&@docdir@&$docdir&g
12236 s&@infodir@&$infodir&g
12237 s&@localedir@&$localedir&g
12238 s&@mandir@&$mandir&g
12239 s&\\\${datarootdir}&$datarootdir&g' ;;
12243 # Neutralize VPATH when `$srcdir' = `.'.
12244 # Shell code in configure.ac might set extrasub.
12245 # FIXME: do we really want to maintain this feature?
12246 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12247 ac_sed_extra="$ac_vpsub
12250 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12252 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12253 s|@configure_input@|$ac_sed_conf_input|;t t
12254 s&@top_builddir@&$ac_top_builddir_sub&;t t
12255 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12256 s&@srcdir@&$ac_srcdir&;t t
12257 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12258 s&@top_srcdir@&$ac_top_srcdir&;t t
12259 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12260 s&@builddir@&$ac_builddir&;t t
12261 s&@abs_builddir@&$ac_abs_builddir&;t t
12262 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12263 s&@INSTALL@&$ac_INSTALL&;t t
12264 $ac_datarootdir_hack
12266 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
12267 if $ac_cs_awk_getline; then
12268 $AWK -f "$tmp/subs.awk"
12270 $AWK -f "$tmp/subs.awk" | $SHELL
12272 || as_fn_error "could not create $ac_file" "$LINENO" 5
12274 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12275 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
12276 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
12277 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12278 which seems to be undefined. Please make sure it is defined." >&5
12279 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12280 which seems to be undefined. Please make sure it is defined." >&2;}
12284 -) cat "$tmp/out" && rm -f "$tmp/out";;
12285 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
12287 || as_fn_error "could not create $ac_file" "$LINENO" 5
12291 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12292 $as_echo "$as_me: executing $ac_file commands" >&6;}
12297 case $ac_file$ac_mode in
12299 for ac_file in $CONFIG_FILES; do
12300 # Support "outfile[:infile[:infile...]]"
12302 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
12304 # PO directories have a Makefile.in generated from Makefile.in.in.
12305 case "$ac_file" in */Makefile.in)
12306 # Adjust a relative srcdir.
12307 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
12308 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
12309 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
12310 # In autoconf-2.13 it is called $ac_given_srcdir.
12311 # In autoconf-2.50 it is called $srcdir.
12312 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
12313 case "$ac_given_srcdir" in
12314 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
12315 /*) top_srcdir="$ac_given_srcdir" ;;
12316 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
12318 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
12319 rm -f "$ac_dir/POTFILES"
12320 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
12321 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
12322 POMAKEFILEDEPS="POTFILES.in"
12323 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
12324 # on $ac_dir but don't depend on user-specified configuration
12326 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
12327 # The LINGUAS file contains the set of available languages.
12328 if test -n "$OBSOLETE_ALL_LINGUAS"; then
12329 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
12331 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
12332 # Hide the ALL_LINGUAS assigment from automake.
12333 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
12334 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
12336 # The set of available languages was given in configure.in.
12337 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
12340 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
12341 # Compute UPDATEPOFILES
12342 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
12343 # Compute DUMMYPOFILES
12344 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
12346 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
12347 case "$ac_given_srcdir" in
12349 *) srcdirpre='$(srcdir)/' ;;
12355 for lang in $ALL_LINGUAS; do
12356 POFILES="$POFILES $srcdirpre$lang.po"
12357 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
12358 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
12359 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
12361 # CATALOGS depends on both $ac_dir and the user's LINGUAS
12362 # environment variable.
12364 if test -n "$ALL_LINGUAS"; then
12365 for presentlang in $ALL_LINGUAS; do
12367 if test "%UNSET%" != "$LINGUAS"; then
12368 desiredlanguages="$LINGUAS"
12370 desiredlanguages="$ALL_LINGUAS"
12372 for desiredlang in $desiredlanguages; do
12373 # Use the presentlang catalog if desiredlang is
12374 # a. equal to presentlang, or
12375 # b. a variant of presentlang (because in this case,
12376 # presentlang can be used as a fallback for messages
12377 # which are not translated in the desiredlang catalog).
12378 case "$desiredlang" in
12379 "$presentlang"*) useit=yes;;
12382 if test $useit = yes; then
12383 INST_LINGUAS="$INST_LINGUAS $presentlang"
12388 if test -n "$INST_LINGUAS"; then
12389 for lang in $INST_LINGUAS; do
12390 CATALOGS="$CATALOGS $lang.gmo"
12393 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
12394 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"
12395 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
12396 if test -f "$f"; then
12398 *.orig | *.bak | *~) ;;
12399 *) cat "$f" >> "$ac_dir/Makefile" ;;
12414 ac_clean_files=$ac_clean_files_save
12416 test $ac_write_fail = 0 ||
12417 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
12420 # configure is writing to config.log, and then calls config.status.
12421 # config.status does its own redirection, appending to config.log.
12422 # Unfortunately, on DOS this fails, as config.log is still kept open
12423 # by configure, so config.status won't be able to write to it; its
12424 # output is simply discarded. So we exec the FD to /dev/null,
12425 # effectively closing config.log, so it can be properly (re)opened and
12426 # appended to by config.status. When coming back to configure, we
12427 # need to make the FD available again.
12428 if test "$no_create" != yes; then
12430 ac_config_status_args=
12431 test "$silent" = yes &&
12432 ac_config_status_args="$ac_config_status_args --quiet"
12434 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12436 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12437 # would make configure fail if this is the last instruction.
12438 $ac_cs_success || as_fn_exit $?
12440 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12441 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12442 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12445 if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi