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
771 program_transform_name
782 ac_subst_files='MCONFIG
789 PUBLIC_CONFIG_HEADER'
791 enable_option_checking
797 enable_maintainer_mode
798 enable_symlink_install
799 enable_symlink_relative_symlinks
801 enable_verbose_makecmds
819 enable_e2initrd_helper
826 with_included_gettext
830 ac_precious_vars='build_alias
842 # Initialize some variables set by options.
844 ac_init_version=false
845 ac_unrecognized_opts=
847 # The variables have the same names as the options, with
848 # dashes changed to underlines.
856 program_transform_name=s,x,x,
864 # Installation directory options.
865 # These are left unexpanded so users can "make install exec_prefix=/foo"
866 # and all the variables that are supposed to be based on exec_prefix
867 # by default will actually change.
868 # Use braces instead of parens because sh, perl, etc. also accept them.
869 # (The list follows the same order as the GNU Coding Standards.)
870 bindir='${exec_prefix}/bin'
871 sbindir='${exec_prefix}/sbin'
872 libexecdir='${exec_prefix}/libexec'
873 datarootdir='${prefix}/share'
874 datadir='${datarootdir}'
875 sysconfdir='${prefix}/etc'
876 sharedstatedir='${prefix}/com'
877 localstatedir='${prefix}/var'
878 includedir='${prefix}/include'
879 oldincludedir='/usr/include'
880 docdir='${datarootdir}/doc/${PACKAGE}'
881 infodir='${datarootdir}/info'
886 libdir='${exec_prefix}/lib'
887 localedir='${datarootdir}/locale'
888 mandir='${datarootdir}/man'
894 # If the previous option needs an argument, assign it.
895 if test -n "$ac_prev"; then
896 eval $ac_prev=\$ac_option
902 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
906 # Accept the important Cygnus configure options, so we can diagnose typos.
908 case $ac_dashdash$ac_option in
912 -bindir | --bindir | --bindi | --bind | --bin | --bi)
914 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
917 -build | --build | --buil | --bui | --bu)
918 ac_prev=build_alias ;;
919 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
920 build_alias=$ac_optarg ;;
922 -cache-file | --cache-file | --cache-fil | --cache-fi \
923 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
924 ac_prev=cache_file ;;
925 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
926 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
927 cache_file=$ac_optarg ;;
930 cache_file=config.cache ;;
932 -datadir | --datadir | --datadi | --datad)
934 -datadir=* | --datadir=* | --datadi=* | --datad=*)
935 datadir=$ac_optarg ;;
937 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
938 | --dataroo | --dataro | --datar)
939 ac_prev=datarootdir ;;
940 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
941 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
942 datarootdir=$ac_optarg ;;
944 -disable-* | --disable-*)
945 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
946 # Reject names that are not valid shell variable names.
947 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
948 as_fn_error "invalid feature name: $ac_useropt"
949 ac_useropt_orig=$ac_useropt
950 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
951 case $ac_user_opts in
955 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
956 ac_unrecognized_sep=', ';;
958 eval enable_$ac_useropt=no ;;
960 -docdir | --docdir | --docdi | --doc | --do)
962 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
965 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
967 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
970 -enable-* | --enable-*)
971 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
972 # Reject names that are not valid shell variable names.
973 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
974 as_fn_error "invalid feature name: $ac_useropt"
975 ac_useropt_orig=$ac_useropt
976 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
977 case $ac_user_opts in
981 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
982 ac_unrecognized_sep=', ';;
984 eval enable_$ac_useropt=\$ac_optarg ;;
986 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
987 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
988 | --exec | --exe | --ex)
989 ac_prev=exec_prefix ;;
990 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
991 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
992 | --exec=* | --exe=* | --ex=*)
993 exec_prefix=$ac_optarg ;;
995 -gas | --gas | --ga | --g)
996 # Obsolete; use --with-gas.
999 -help | --help | --hel | --he | -h)
1000 ac_init_help=long ;;
1001 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1002 ac_init_help=recursive ;;
1003 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1004 ac_init_help=short ;;
1006 -host | --host | --hos | --ho)
1007 ac_prev=host_alias ;;
1008 -host=* | --host=* | --hos=* | --ho=*)
1009 host_alias=$ac_optarg ;;
1011 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1013 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1015 htmldir=$ac_optarg ;;
1017 -includedir | --includedir | --includedi | --included | --include \
1018 | --includ | --inclu | --incl | --inc)
1019 ac_prev=includedir ;;
1020 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1021 | --includ=* | --inclu=* | --incl=* | --inc=*)
1022 includedir=$ac_optarg ;;
1024 -infodir | --infodir | --infodi | --infod | --info | --inf)
1026 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1027 infodir=$ac_optarg ;;
1029 -libdir | --libdir | --libdi | --libd)
1031 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1032 libdir=$ac_optarg ;;
1034 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1035 | --libexe | --libex | --libe)
1036 ac_prev=libexecdir ;;
1037 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1038 | --libexe=* | --libex=* | --libe=*)
1039 libexecdir=$ac_optarg ;;
1041 -localedir | --localedir | --localedi | --localed | --locale)
1042 ac_prev=localedir ;;
1043 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1044 localedir=$ac_optarg ;;
1046 -localstatedir | --localstatedir | --localstatedi | --localstated \
1047 | --localstate | --localstat | --localsta | --localst | --locals)
1048 ac_prev=localstatedir ;;
1049 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1050 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1051 localstatedir=$ac_optarg ;;
1053 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1055 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1056 mandir=$ac_optarg ;;
1058 -nfp | --nfp | --nf)
1059 # Obsolete; use --without-fp.
1062 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1063 | --no-cr | --no-c | -n)
1066 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1067 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1070 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1071 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1072 | --oldin | --oldi | --old | --ol | --o)
1073 ac_prev=oldincludedir ;;
1074 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1075 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1076 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1077 oldincludedir=$ac_optarg ;;
1079 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1081 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1082 prefix=$ac_optarg ;;
1084 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1085 | --program-pre | --program-pr | --program-p)
1086 ac_prev=program_prefix ;;
1087 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1088 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1089 program_prefix=$ac_optarg ;;
1091 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1092 | --program-suf | --program-su | --program-s)
1093 ac_prev=program_suffix ;;
1094 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1095 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1096 program_suffix=$ac_optarg ;;
1098 -program-transform-name | --program-transform-name \
1099 | --program-transform-nam | --program-transform-na \
1100 | --program-transform-n | --program-transform- \
1101 | --program-transform | --program-transfor \
1102 | --program-transfo | --program-transf \
1103 | --program-trans | --program-tran \
1104 | --progr-tra | --program-tr | --program-t)
1105 ac_prev=program_transform_name ;;
1106 -program-transform-name=* | --program-transform-name=* \
1107 | --program-transform-nam=* | --program-transform-na=* \
1108 | --program-transform-n=* | --program-transform-=* \
1109 | --program-transform=* | --program-transfor=* \
1110 | --program-transfo=* | --program-transf=* \
1111 | --program-trans=* | --program-tran=* \
1112 | --progr-tra=* | --program-tr=* | --program-t=*)
1113 program_transform_name=$ac_optarg ;;
1115 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1117 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1118 pdfdir=$ac_optarg ;;
1120 -psdir | --psdir | --psdi | --psd | --ps)
1122 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1125 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1126 | -silent | --silent | --silen | --sile | --sil)
1129 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1131 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1133 sbindir=$ac_optarg ;;
1135 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1136 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1137 | --sharedst | --shareds | --shared | --share | --shar \
1139 ac_prev=sharedstatedir ;;
1140 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1141 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1142 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1144 sharedstatedir=$ac_optarg ;;
1146 -site | --site | --sit)
1148 -site=* | --site=* | --sit=*)
1151 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1153 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1154 srcdir=$ac_optarg ;;
1156 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1157 | --syscon | --sysco | --sysc | --sys | --sy)
1158 ac_prev=sysconfdir ;;
1159 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1160 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1161 sysconfdir=$ac_optarg ;;
1163 -target | --target | --targe | --targ | --tar | --ta | --t)
1164 ac_prev=target_alias ;;
1165 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1166 target_alias=$ac_optarg ;;
1168 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1171 -version | --version | --versio | --versi | --vers | -V)
1172 ac_init_version=: ;;
1175 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1176 # Reject names that are not valid shell variable names.
1177 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1178 as_fn_error "invalid package name: $ac_useropt"
1179 ac_useropt_orig=$ac_useropt
1180 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1181 case $ac_user_opts in
1185 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1186 ac_unrecognized_sep=', ';;
1188 eval with_$ac_useropt=\$ac_optarg ;;
1190 -without-* | --without-*)
1191 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1192 # Reject names that are not valid shell variable names.
1193 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1194 as_fn_error "invalid package name: $ac_useropt"
1195 ac_useropt_orig=$ac_useropt
1196 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1197 case $ac_user_opts in
1201 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1202 ac_unrecognized_sep=', ';;
1204 eval with_$ac_useropt=no ;;
1207 # Obsolete; use --with-x.
1210 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1211 | --x-incl | --x-inc | --x-in | --x-i)
1212 ac_prev=x_includes ;;
1213 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1214 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1215 x_includes=$ac_optarg ;;
1217 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1218 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1219 ac_prev=x_libraries ;;
1220 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1221 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1222 x_libraries=$ac_optarg ;;
1224 -*) as_fn_error "unrecognized option: \`$ac_option'
1225 Try \`$0 --help' for more information."
1229 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1230 # Reject names that are not valid shell variable names.
1231 case $ac_envvar in #(
1232 '' | [0-9]* | *[!_$as_cr_alnum]* )
1233 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1235 eval $ac_envvar=\$ac_optarg
1236 export $ac_envvar ;;
1239 # FIXME: should be removed in autoconf 3.0.
1240 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1241 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1242 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1243 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1249 if test -n "$ac_prev"; then
1250 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1251 as_fn_error "missing argument to $ac_option"
1254 if test -n "$ac_unrecognized_opts"; then
1255 case $enable_option_checking in
1257 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1258 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1262 # Check all directory arguments for consistency.
1263 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1264 datadir sysconfdir sharedstatedir localstatedir includedir \
1265 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1266 libdir localedir mandir
1268 eval ac_val=\$$ac_var
1269 # Remove trailing slashes.
1272 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1273 eval $ac_var=\$ac_val;;
1275 # Be sure to have absolute directory names.
1277 [\\/$]* | ?:[\\/]* ) continue;;
1278 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1280 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1283 # There might be people who depend on the old broken behavior: `$host'
1284 # used to hold the argument of --host etc.
1285 # FIXME: To remove some day.
1288 target=$target_alias
1290 # FIXME: To remove some day.
1291 if test "x$host_alias" != x; then
1292 if test "x$build_alias" = x; then
1293 cross_compiling=maybe
1294 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1295 If a cross compiler is detected then cross compile mode will be used." >&2
1296 elif test "x$build_alias" != "x$host_alias"; then
1302 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1304 test "$silent" = yes && exec 6>/dev/null
1307 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1308 ac_ls_di=`ls -di .` &&
1309 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1310 as_fn_error "working directory cannot be determined"
1311 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1312 as_fn_error "pwd does not report name of working directory"
1315 # Find the source files, if location was not specified.
1316 if test -z "$srcdir"; then
1317 ac_srcdir_defaulted=yes
1318 # Try the directory containing this script, then the parent directory.
1319 ac_confdir=`$as_dirname -- "$as_myself" ||
1320 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1321 X"$as_myself" : 'X\(//\)[^/]' \| \
1322 X"$as_myself" : 'X\(//\)$' \| \
1323 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1324 $as_echo X"$as_myself" |
1325 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1343 if test ! -r "$srcdir/$ac_unique_file"; then
1347 ac_srcdir_defaulted=no
1349 if test ! -r "$srcdir/$ac_unique_file"; then
1350 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1351 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1353 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1355 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1357 # When building in place, set srcdir=.
1358 if test "$ac_abs_confdir" = "$ac_pwd"; then
1361 # Remove unnecessary trailing slashes from srcdir.
1362 # Double slashes in file names in object file debugging info
1363 # mess up M-x gdb in Emacs.
1365 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1367 for ac_var in $ac_precious_vars; do
1368 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1369 eval ac_env_${ac_var}_value=\$${ac_var}
1370 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1371 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1375 # Report the --help message.
1377 if test "$ac_init_help" = "long"; then
1378 # Omit some internal or obsolete options to make the list less imposing.
1379 # This message is too long to be a string in the A/UX 3.1 sh.
1381 \`configure' configures this package to adapt to many kinds of systems.
1383 Usage: $0 [OPTION]... [VAR=VALUE]...
1385 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1386 VAR=VALUE. See below for descriptions of some of the useful variables.
1388 Defaults for the options are specified in brackets.
1391 -h, --help display this help and exit
1392 --help=short display options specific to this package
1393 --help=recursive display the short help of all the included packages
1394 -V, --version display version information and exit
1395 -q, --quiet, --silent do not print \`checking...' messages
1396 --cache-file=FILE cache test results in FILE [disabled]
1397 -C, --config-cache alias for \`--cache-file=config.cache'
1398 -n, --no-create do not create output files
1399 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1401 Installation directories:
1402 --prefix=PREFIX install architecture-independent files in PREFIX
1403 [$ac_default_prefix]
1404 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1407 By default, \`make install' will install all the files in
1408 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1409 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1410 for instance \`--prefix=\$HOME'.
1412 For better control, use the options below.
1414 Fine tuning of the installation directories:
1415 --bindir=DIR user executables [EPREFIX/bin]
1416 --sbindir=DIR system admin executables [EPREFIX/sbin]
1417 --libexecdir=DIR program executables [EPREFIX/libexec]
1418 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1419 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1420 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1421 --libdir=DIR object code libraries [EPREFIX/lib]
1422 --includedir=DIR C header files [PREFIX/include]
1423 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1424 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1425 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1426 --infodir=DIR info documentation [DATAROOTDIR/info]
1427 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1428 --mandir=DIR man documentation [DATAROOTDIR/man]
1429 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1430 --htmldir=DIR html documentation [DOCDIR]
1431 --dvidir=DIR dvi documentation [DOCDIR]
1432 --pdfdir=DIR pdf documentation [DOCDIR]
1433 --psdir=DIR ps documentation [DOCDIR]
1439 --build=BUILD configure for building on BUILD [guessed]
1440 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1444 if test -n "$ac_init_help"; then
1449 --disable-option-checking ignore unrecognized --enable/--with options
1450 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1451 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1452 --enable-maintainer-mode enable makefile rules useful for maintainers
1453 --enable-symlink-install use symlinks when installing instead of hard links
1454 --enable-relative-symlinks use relative symlinks when installing
1455 --enable-symlink-build use symlinks while building instead of hard links
1456 --enable-verbose-makecmds enable verbose make command output
1457 --enable-compression enable EXPERIMENTAL compression support
1458 --enable-htree enable EXPERIMENTAL htree directory support
1459 --enable-elf-shlibs select ELF shared libraries
1460 --enable-bsd-shlibs select BSD shared libraries
1461 --enable-profile build profiling libraries
1462 --enable-checker build checker libraries
1463 --enable-jbd-debug enable journal debugging
1464 --enable-blkid-debug enable blkid debugging
1465 --disable-testio-debug disable the use of the test I/O manager for debugging
1466 --disable-libuuid do not build private uuid library
1467 --disable-libblkid do not build private blkid library
1468 --enable-libquota enable quota support
1469 --disable-debugfs disable support of debugfs program
1470 --disable-imager disable support of e2image program
1471 --disable-resizer disable support of e2resize program
1472 --disable-defrag disable support of e4defrag program
1473 --enable-fsck build fsck wrapper program
1474 --enable-e2initrd-helper build e2initrd-helper program
1475 --disable-tls disable use of thread local support
1476 --disable-uuidd disable building the uuid daemon
1477 --disable-nls do not use Native Language Support
1478 --disable-rpath do not hardcode runtime library paths
1481 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1482 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1483 --with-diet-libc use diet libc
1484 --with-cc no longer supported, use CC= instead
1485 --with-ccopts no longer supported, use CFLAGS= instead
1486 --with-ldopts no longer supported, use LDFLAGS= instead
1487 --with-root-prefix=PREFIX override prefix variable for files to be placed in the root
1488 --with-gnu-ld assume the C compiler uses GNU ld default=no
1489 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1490 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1491 --with-included-gettext use the GNU gettext library included here
1492 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1493 --without-libintl-prefix don't search for libintl in includedir and libdir
1494 --with-multiarch=ARCH specify the multiarch triplet
1496 Some influential environment variables:
1497 CC C compiler command
1498 CFLAGS C compiler flags
1499 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1500 nonstandard directory <lib dir>
1501 LIBS libraries to pass to the linker, e.g. -l<library>
1502 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1503 you have headers in a nonstandard directory <include dir>
1505 PKG_CONFIG path to pkg-config utility
1507 Use these variables to override the choices made by `configure' or to help
1508 it to find libraries and programs with nonstandard names/locations.
1510 Report bugs to the package provider.
1515 if test "$ac_init_help" = "recursive"; then
1516 # If there are subdirs, report their specific --help.
1517 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1518 test -d "$ac_dir" ||
1519 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1524 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1526 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1527 # A ".." for each directory in $ac_dir_suffix.
1528 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1529 case $ac_top_builddir_sub in
1530 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1531 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1534 ac_abs_top_builddir=$ac_pwd
1535 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1536 # for backward compatibility:
1537 ac_top_builddir=$ac_top_build_prefix
1540 .) # We are building in place.
1542 ac_top_srcdir=$ac_top_builddir_sub
1543 ac_abs_top_srcdir=$ac_pwd ;;
1544 [\\/]* | ?:[\\/]* ) # Absolute name.
1545 ac_srcdir=$srcdir$ac_dir_suffix;
1546 ac_top_srcdir=$srcdir
1547 ac_abs_top_srcdir=$srcdir ;;
1549 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1550 ac_top_srcdir=$ac_top_build_prefix$srcdir
1551 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1553 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1555 cd "$ac_dir" || { ac_status=$?; continue; }
1556 # Check for guested configure.
1557 if test -f "$ac_srcdir/configure.gnu"; then
1559 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1560 elif test -f "$ac_srcdir/configure"; then
1562 $SHELL "$ac_srcdir/configure" --help=recursive
1564 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1566 cd "$ac_pwd" || { ac_status=$?; break; }
1570 test -n "$ac_init_help" && exit $ac_status
1571 if $ac_init_version; then
1574 generated by GNU Autoconf 2.65
1576 Copyright (C) 2009 Free Software Foundation, Inc.
1577 This configure script is free software; the Free Software Foundation
1578 gives unlimited permission to copy, distribute and modify it.
1583 ## ------------------------ ##
1584 ## Autoconf initialization. ##
1585 ## ------------------------ ##
1587 # ac_fn_c_try_compile LINENO
1588 # --------------------------
1589 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1590 ac_fn_c_try_compile ()
1592 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1593 rm -f conftest.$ac_objext
1594 if { { ac_try="$ac_compile"
1596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1597 *) ac_try_echo=$ac_try;;
1599 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1600 $as_echo "$ac_try_echo"; } >&5
1601 (eval "$ac_compile") 2>conftest.err
1603 if test -s conftest.err; then
1604 grep -v '^ *+' conftest.err >conftest.er1
1605 cat conftest.er1 >&5
1606 mv -f conftest.er1 conftest.err
1608 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1609 test $ac_status = 0; } && {
1610 test -z "$ac_c_werror_flag" ||
1611 test ! -s conftest.err
1612 } && test -s conftest.$ac_objext; then :
1615 $as_echo "$as_me: failed program was:" >&5
1616 sed 's/^/| /' conftest.$ac_ext >&5
1620 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1621 as_fn_set_status $ac_retval
1623 } # ac_fn_c_try_compile
1625 # ac_fn_c_try_link LINENO
1626 # -----------------------
1627 # Try to link conftest.$ac_ext, and return whether this succeeded.
1630 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1631 rm -f conftest.$ac_objext conftest$ac_exeext
1632 if { { ac_try="$ac_link"
1634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1635 *) ac_try_echo=$ac_try;;
1637 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1638 $as_echo "$ac_try_echo"; } >&5
1639 (eval "$ac_link") 2>conftest.err
1641 if test -s conftest.err; then
1642 grep -v '^ *+' conftest.err >conftest.er1
1643 cat conftest.er1 >&5
1644 mv -f conftest.er1 conftest.err
1646 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1647 test $ac_status = 0; } && {
1648 test -z "$ac_c_werror_flag" ||
1649 test ! -s conftest.err
1650 } && test -s conftest$ac_exeext && {
1651 test "$cross_compiling" = yes ||
1652 $as_test_x conftest$ac_exeext
1656 $as_echo "$as_me: failed program was:" >&5
1657 sed 's/^/| /' conftest.$ac_ext >&5
1661 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1662 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1663 # interfere with the next link command; also delete a directory that is
1664 # left behind by Apple's compiler. We do this before executing the actions.
1665 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1666 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1667 as_fn_set_status $ac_retval
1669 } # ac_fn_c_try_link
1671 # ac_fn_c_try_cpp LINENO
1672 # ----------------------
1673 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1676 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1677 if { { ac_try="$ac_cpp conftest.$ac_ext"
1679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1680 *) ac_try_echo=$ac_try;;
1682 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1683 $as_echo "$ac_try_echo"; } >&5
1684 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1686 if test -s conftest.err; then
1687 grep -v '^ *+' conftest.err >conftest.er1
1688 cat conftest.er1 >&5
1689 mv -f conftest.er1 conftest.err
1691 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1692 test $ac_status = 0; } >/dev/null && {
1693 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1694 test ! -s conftest.err
1698 $as_echo "$as_me: failed program was:" >&5
1699 sed 's/^/| /' conftest.$ac_ext >&5
1703 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1704 as_fn_set_status $ac_retval
1708 # ac_fn_c_try_run LINENO
1709 # ----------------------
1710 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1711 # that executables *can* be run.
1714 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1715 if { { ac_try="$ac_link"
1717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1718 *) ac_try_echo=$ac_try;;
1720 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1721 $as_echo "$ac_try_echo"; } >&5
1722 (eval "$ac_link") 2>&5
1724 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1725 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1726 { { case "(($ac_try" in
1727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1728 *) ac_try_echo=$ac_try;;
1730 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1731 $as_echo "$ac_try_echo"; } >&5
1732 (eval "$ac_try") 2>&5
1734 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1735 test $ac_status = 0; }; }; then :
1738 $as_echo "$as_me: program exited with status $ac_status" >&5
1739 $as_echo "$as_me: failed program was:" >&5
1740 sed 's/^/| /' conftest.$ac_ext >&5
1742 ac_retval=$ac_status
1744 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1745 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1746 as_fn_set_status $ac_retval
1750 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1751 # -------------------------------------------
1752 # Tests whether TYPE exists after having included INCLUDES, setting cache
1753 # variable VAR accordingly.
1754 ac_fn_c_check_type ()
1756 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1758 $as_echo_n "checking for $2... " >&6; }
1759 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1760 $as_echo_n "(cached) " >&6
1763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1764 /* end confdefs.h. */
1775 if ac_fn_c_try_compile "$LINENO"; then :
1776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1777 /* end confdefs.h. */
1788 if ac_fn_c_try_compile "$LINENO"; then :
1793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1799 $as_echo "$ac_res" >&6; }
1800 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1802 } # ac_fn_c_check_type
1804 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1805 # -------------------------------------------------------
1806 # Tests whether HEADER exists and can be compiled using the include files in
1807 # INCLUDES, setting the cache variable VAR accordingly.
1808 ac_fn_c_check_header_compile ()
1810 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1812 $as_echo_n "checking for $2... " >&6; }
1813 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1814 $as_echo_n "(cached) " >&6
1816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1817 /* end confdefs.h. */
1821 if ac_fn_c_try_compile "$LINENO"; then :
1826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1830 $as_echo "$ac_res" >&6; }
1831 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1833 } # ac_fn_c_check_header_compile
1835 # ac_fn_c_check_func LINENO FUNC VAR
1836 # ----------------------------------
1837 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1838 ac_fn_c_check_func ()
1840 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1842 $as_echo_n "checking for $2... " >&6; }
1843 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1844 $as_echo_n "(cached) " >&6
1846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1847 /* end confdefs.h. */
1848 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1849 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1850 #define $2 innocuous_$2
1852 /* System header to define __stub macros and hopefully few prototypes,
1853 which can conflict with char $2 (); below.
1854 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1855 <limits.h> exists even on freestanding compilers. */
1858 # include <limits.h>
1860 # include <assert.h>
1865 /* Override any GCC internal prototype to avoid an error.
1866 Use char because int might match the return type of a GCC
1867 builtin and then its argument prototype would still apply. */
1872 /* The GNU C library defines this for functions which it implements
1873 to always fail with ENOSYS. Some functions are actually named
1874 something starting with __ and the normal name is an alias. */
1875 #if defined __stub_$2 || defined __stub___$2
1887 if ac_fn_c_try_link "$LINENO"; then :
1892 rm -f core conftest.err conftest.$ac_objext \
1893 conftest$ac_exeext conftest.$ac_ext
1896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1897 $as_echo "$ac_res" >&6; }
1898 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1900 } # ac_fn_c_check_func
1902 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1903 # -------------------------------------------------------
1904 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1905 # the include files in INCLUDES and setting the cache variable VAR
1907 ac_fn_c_check_header_mongrel ()
1909 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1910 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1912 $as_echo_n "checking for $2... " >&6; }
1913 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1914 $as_echo_n "(cached) " >&6
1917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1918 $as_echo "$ac_res" >&6; }
1920 # Is the header compilable?
1921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1922 $as_echo_n "checking $2 usability... " >&6; }
1923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1924 /* end confdefs.h. */
1928 if ac_fn_c_try_compile "$LINENO"; then :
1929 ac_header_compiler=yes
1931 ac_header_compiler=no
1933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1935 $as_echo "$ac_header_compiler" >&6; }
1937 # Is the header present?
1938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1939 $as_echo_n "checking $2 presence... " >&6; }
1940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1941 /* end confdefs.h. */
1944 if ac_fn_c_try_cpp "$LINENO"; then :
1945 ac_header_preproc=yes
1947 ac_header_preproc=no
1949 rm -f conftest.err conftest.$ac_ext
1950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1951 $as_echo "$ac_header_preproc" >&6; }
1953 # So? What about this header?
1954 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1956 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1957 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1958 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1959 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1962 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1963 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1964 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1965 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1966 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1967 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1968 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1969 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1970 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1971 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1975 $as_echo_n "checking for $2... " >&6; }
1976 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1977 $as_echo_n "(cached) " >&6
1979 eval "$3=\$ac_header_compiler"
1982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1983 $as_echo "$ac_res" >&6; }
1985 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1987 } # ac_fn_c_check_header_mongrel
1989 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1990 # --------------------------------------------
1991 # Tries to find the compile-time value of EXPR in a program that includes
1992 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1994 ac_fn_c_compute_int ()
1996 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1997 if test "$cross_compiling" = yes; then
1998 # Depending upon the size, compute the lo and hi bounds.
1999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2000 /* end confdefs.h. */
2005 static int test_array [1 - 2 * !(($2) >= 0)];
2012 if ac_fn_c_try_compile "$LINENO"; then :
2015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2016 /* end confdefs.h. */
2021 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2028 if ac_fn_c_try_compile "$LINENO"; then :
2029 ac_hi=$ac_mid; break
2031 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2032 if test $ac_lo -le $ac_mid; then
2036 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2042 /* end confdefs.h. */
2047 static int test_array [1 - 2 * !(($2) < 0)];
2054 if ac_fn_c_try_compile "$LINENO"; then :
2057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2058 /* end confdefs.h. */
2063 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2070 if ac_fn_c_try_compile "$LINENO"; then :
2071 ac_lo=$ac_mid; break
2073 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2074 if test $ac_mid -le $ac_hi; then
2078 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2088 # Binary search between lo and hi bounds.
2089 while test "x$ac_lo" != "x$ac_hi"; do
2090 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2092 /* end confdefs.h. */
2097 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2104 if ac_fn_c_try_compile "$LINENO"; then :
2107 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2112 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2117 /* end confdefs.h. */
2119 static long int longval () { return $2; }
2120 static unsigned long int ulongval () { return $2; }
2127 FILE *f = fopen ("conftest.val", "w");
2132 long int i = longval ();
2135 fprintf (f, "%ld", i);
2139 unsigned long int i = ulongval ();
2142 fprintf (f, "%lu", i);
2144 /* Do not output a trailing newline, as this causes \r\n confusion
2145 on some platforms. */
2146 return ferror (f) || fclose (f) != 0;
2152 if ac_fn_c_try_run "$LINENO"; then :
2153 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2157 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2158 conftest.$ac_objext conftest.beam conftest.$ac_ext
2162 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2163 as_fn_set_status $ac_retval
2165 } # ac_fn_c_compute_int
2167 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2168 # ----------------------------------------------------
2169 # Tries to find if the field MEMBER exists in type AGGR, after including
2170 # INCLUDES, setting cache variable VAR accordingly.
2171 ac_fn_c_check_member ()
2173 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2175 $as_echo_n "checking for $2.$3... " >&6; }
2176 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2177 $as_echo_n "(cached) " >&6
2179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2180 /* end confdefs.h. */
2192 if ac_fn_c_try_compile "$LINENO"; then :
2195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2196 /* end confdefs.h. */
2202 if (sizeof ac_aggr.$3)
2208 if ac_fn_c_try_compile "$LINENO"; then :
2213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2219 $as_echo "$ac_res" >&6; }
2220 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2222 } # ac_fn_c_check_member
2224 # ac_fn_c_check_decl LINENO SYMBOL VAR
2225 # ------------------------------------
2226 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2227 ac_fn_c_check_decl ()
2229 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2231 $as_echo_n "checking whether $2 is declared... " >&6; }
2232 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2233 $as_echo_n "(cached) " >&6
2235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2236 /* end confdefs.h. */
2249 if ac_fn_c_try_compile "$LINENO"; then :
2254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2258 $as_echo "$ac_res" >&6; }
2259 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2261 } # ac_fn_c_check_decl
2262 cat >config.log <<_ACEOF
2263 This file contains any messages produced by compilers while
2264 running configure, to aid debugging if configure makes a mistake.
2266 It was created by $as_me, which was
2267 generated by GNU Autoconf 2.65. Invocation command line was
2279 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2280 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2281 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2282 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2283 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2285 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2286 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2288 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2289 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2290 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2291 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2292 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2293 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2294 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2302 test -z "$as_dir" && as_dir=.
2303 $as_echo "PATH: $as_dir"
2319 # Keep a trace of the command line.
2320 # Strip out --no-create and --no-recursion so they do not pile up.
2321 # Strip out --silent because we don't want to record it for future runs.
2322 # Also quote any args containing shell meta-characters.
2323 # Make two passes to allow for proper duplicate-argument suppression.
2327 ac_must_keep_next=false
2333 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2334 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2335 | -silent | --silent | --silen | --sile | --sil)
2338 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2341 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2343 as_fn_append ac_configure_args1 " '$ac_arg'"
2344 if test $ac_must_keep_next = true; then
2345 ac_must_keep_next=false # Got value, back to normal.
2348 *=* | --config-cache | -C | -disable-* | --disable-* \
2349 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2350 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2351 | -with-* | --with-* | -without-* | --without-* | --x)
2352 case "$ac_configure_args0 " in
2353 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2356 -* ) ac_must_keep_next=true ;;
2359 as_fn_append ac_configure_args " '$ac_arg'"
2364 { ac_configure_args0=; unset ac_configure_args0;}
2365 { ac_configure_args1=; unset ac_configure_args1;}
2367 # When interrupted or exit'd, cleanup temporary files, and complete
2368 # config.log. We remove comments because anyway the quotes in there
2369 # would cause problems or look ugly.
2370 # WARNING: Use '\'' to represent an apostrophe within the trap.
2371 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2372 trap 'exit_status=$?
2373 # Save into config.log some information that might help in debugging.
2378 ## ---------------- ##
2379 ## Cache variables. ##
2380 ## ---------------- ##
2383 # The following way of writing the cache mishandles newlines in values,
2385 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2386 eval ac_val=\$$ac_var
2390 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2391 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2394 _ | IFS | as_nl) ;; #(
2395 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2396 *) { eval $ac_var=; unset $ac_var;} ;;
2401 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2402 *${as_nl}ac_space=\ *)
2404 "s/'\''/'\''\\\\'\'''\''/g;
2405 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2408 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2416 ## ----------------- ##
2417 ## Output variables. ##
2418 ## ----------------- ##
2421 for ac_var in $ac_subst_vars
2423 eval ac_val=\$$ac_var
2425 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2427 $as_echo "$ac_var='\''$ac_val'\''"
2431 if test -n "$ac_subst_files"; then
2433 ## ------------------- ##
2434 ## File substitutions. ##
2435 ## ------------------- ##
2438 for ac_var in $ac_subst_files
2440 eval ac_val=\$$ac_var
2442 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2444 $as_echo "$ac_var='\''$ac_val'\''"
2449 if test -s confdefs.h; then
2459 test "$ac_signal" != 0 &&
2460 $as_echo "$as_me: caught signal $ac_signal"
2461 $as_echo "$as_me: exit $exit_status"
2463 rm -f core *.core core.conftest.* &&
2464 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2467 for ac_signal in 1 2 13 15; do
2468 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2472 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2473 rm -f -r conftest* confdefs.h
2475 $as_echo "/* confdefs.h */" > confdefs.h
2477 # Predefined preprocessor variables.
2479 cat >>confdefs.h <<_ACEOF
2480 #define PACKAGE_NAME "$PACKAGE_NAME"
2483 cat >>confdefs.h <<_ACEOF
2484 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2487 cat >>confdefs.h <<_ACEOF
2488 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2491 cat >>confdefs.h <<_ACEOF
2492 #define PACKAGE_STRING "$PACKAGE_STRING"
2495 cat >>confdefs.h <<_ACEOF
2496 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2499 cat >>confdefs.h <<_ACEOF
2500 #define PACKAGE_URL "$PACKAGE_URL"
2504 # Let the site file select an alternate cache file if it wants to.
2505 # Prefer an explicitly selected file to automatically selected ones.
2508 if test -n "$CONFIG_SITE"; then
2509 ac_site_file1=$CONFIG_SITE
2510 elif test "x$prefix" != xNONE; then
2511 ac_site_file1=$prefix/share/config.site
2512 ac_site_file2=$prefix/etc/config.site
2514 ac_site_file1=$ac_default_prefix/share/config.site
2515 ac_site_file2=$ac_default_prefix/etc/config.site
2517 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2519 test "x$ac_site_file" = xNONE && continue
2520 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2521 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2522 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2523 sed 's/^/| /' "$ac_site_file" >&5
2528 if test -r "$cache_file"; then
2529 # Some versions of bash will fail to source /dev/null (special files
2530 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2531 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2532 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2533 $as_echo "$as_me: loading cache $cache_file" >&6;}
2535 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2536 *) . "./$cache_file";;
2540 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2541 $as_echo "$as_me: creating cache $cache_file" >&6;}
2545 as_fn_append ac_header_list " stdlib.h"
2546 as_fn_append ac_header_list " unistd.h"
2547 as_fn_append ac_header_list " sys/param.h"
2548 # Check that the precious variables saved in the cache have kept the same
2550 ac_cache_corrupted=false
2551 for ac_var in $ac_precious_vars; do
2552 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2553 eval ac_new_set=\$ac_env_${ac_var}_set
2554 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2555 eval ac_new_val=\$ac_env_${ac_var}_value
2556 case $ac_old_set,$ac_new_set in
2558 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2559 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2560 ac_cache_corrupted=: ;;
2562 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2563 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2564 ac_cache_corrupted=: ;;
2567 if test "x$ac_old_val" != "x$ac_new_val"; then
2568 # differences in whitespace do not lead to failure.
2569 ac_old_val_w=`echo x $ac_old_val`
2570 ac_new_val_w=`echo x $ac_new_val`
2571 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2572 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2573 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2574 ac_cache_corrupted=:
2576 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2577 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2578 eval $ac_var=\$ac_old_val
2580 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2581 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2582 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2583 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2586 # Pass precious variables to config.status.
2587 if test "$ac_new_set" = set; then
2589 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2590 *) ac_arg=$ac_var=$ac_new_val ;;
2592 case " $ac_configure_args " in
2593 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2594 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2598 if $ac_cache_corrupted; then
2599 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2600 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2601 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2602 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2603 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2605 ## -------------------- ##
2606 ## Main body of script. ##
2607 ## -------------------- ##
2610 ac_cpp='$CPP $CPPFLAGS'
2611 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2612 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2613 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2618 for ac_dir in config "$srcdir"/config; do
2619 for ac_t in install-sh install.sh shtool; do
2620 if test -f "$ac_dir/$ac_t"; then
2622 ac_install_sh="$ac_aux_dir/$ac_t -c"
2627 if test -z "$ac_aux_dir"; then
2628 as_fn_error "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2631 # These three variables are undocumented and unsupported,
2632 # and are intended to be withdrawn in a future Autoconf release.
2633 # They can cause serious problems if a builder's source tree is in a directory
2634 # whose full name contains unusual characters.
2635 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2636 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2637 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2640 ac_config_headers="$ac_config_headers lib/config.h"
2646 E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \
2647 | awk '{print $3}' | tr \" " " | awk '{print $1}'`
2648 DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
2650 E2FSPROGS_DAY=`echo $DATE | awk -F- '{print $1}'`
2651 MONTH=`echo $DATE | awk -F- '{print $2}'`
2652 YEAR=`echo $DATE | awk -F- '{print $3}'`
2654 if expr $YEAR ">" 1900 > /dev/null ; then
2655 E2FSPROGS_YEAR=$YEAR
2656 elif expr $YEAR ">" 90 >/dev/null ; then
2657 E2FSPROGS_YEAR=19$YEAR
2659 E2FSPROGS_YEAR=20$YEAR
2663 Jan) MONTH_NUM=01; E2FSPROGS_MONTH="January" ;;
2664 Feb) MONTH_NUM=02; E2FSPROGS_MONTH="February" ;;
2665 Mar) MONTH_NUM=03; E2FSPROGS_MONTH="March" ;;
2666 Apr) MONTH_NUM=04; E2FSPROGS_MONTH="April" ;;
2667 May) MONTH_NUM=05; E2FSPROGS_MONTH="May" ;;
2668 Jun) MONTH_NUM=06; E2FSPROGS_MONTH="June" ;;
2669 Jul) MONTH_NUM=07; E2FSPROGS_MONTH="July" ;;
2670 Aug) MONTH_NUM=08; E2FSPROGS_MONTH="August" ;;
2671 Sep) MONTH_NUM=09; E2FSPROGS_MONTH="September" ;;
2672 Oct) MONTH_NUM=10; E2FSPROGS_MONTH="October" ;;
2673 Nov) MONTH_NUM=11; E2FSPROGS_MONTH="November" ;;
2674 Dec) MONTH_NUM=12; E2FSPROGS_MONTH="December" ;;
2675 *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unknown month $MONTH??" >&5
2676 $as_echo "$as_me: WARNING: Unknown month $MONTH??" >&2;} ;;
2679 base_ver=`echo $E2FSPROGS_VERSION | \
2680 sed -e 's/-WIP//' -e 's/pre-//' -e 's/-PLUS//'`
2682 date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY}
2684 case $E2FSPROGS_VERSION in
2686 E2FSPROGS_PKGVER="$base_ver~WIP-$E2FSPROGS_YEAR-$MONTH_NUM-$E2FSPROGS_DAY"
2689 E2FSPROGS_PKGVER="$base_ver"
2693 unset DATE MONTH YEAR base_ver pre_vers date_spec
2694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&5
2695 $as_echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&6; }
2696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&5
2697 $as_echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&6; }
2703 # Make sure we can run config.sub.
2704 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2705 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2708 $as_echo_n "checking build system type... " >&6; }
2709 if test "${ac_cv_build+set}" = set; then :
2710 $as_echo_n "(cached) " >&6
2712 ac_build_alias=$build_alias
2713 test "x$ac_build_alias" = x &&
2714 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2715 test "x$ac_build_alias" = x &&
2716 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2717 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2718 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2722 $as_echo "$ac_cv_build" >&6; }
2723 case $ac_cv_build in
2725 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2728 ac_save_IFS=$IFS; IFS='-'
2734 # Remember, the first character of IFS is used to create $*,
2735 # except with old shells:
2738 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2742 $as_echo_n "checking host system type... " >&6; }
2743 if test "${ac_cv_host+set}" = set; then :
2744 $as_echo_n "(cached) " >&6
2746 if test "x$host_alias" = x; then
2747 ac_cv_host=$ac_cv_build
2749 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2750 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2755 $as_echo "$ac_cv_host" >&6; }
2758 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2761 ac_save_IFS=$IFS; IFS='-'
2767 # Remember, the first character of IFS is used to create $*,
2768 # except with old shells:
2771 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2776 ac_cpp='$CPP $CPPFLAGS'
2777 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2778 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2779 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2780 if test -n "$ac_tool_prefix"; then
2781 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2782 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2784 $as_echo_n "checking for $ac_word... " >&6; }
2785 if test "${ac_cv_prog_CC+set}" = set; then :
2786 $as_echo_n "(cached) " >&6
2788 if test -n "$CC"; then
2789 ac_cv_prog_CC="$CC" # Let the user override the test.
2791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2795 test -z "$as_dir" && as_dir=.
2796 for ac_exec_ext in '' $ac_executable_extensions; do
2797 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2798 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2799 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2809 if test -n "$CC"; then
2810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2811 $as_echo "$CC" >&6; }
2813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2814 $as_echo "no" >&6; }
2819 if test -z "$ac_cv_prog_CC"; then
2821 # Extract the first word of "gcc", so it can be a program name with args.
2822 set dummy gcc; ac_word=$2
2823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2824 $as_echo_n "checking for $ac_word... " >&6; }
2825 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2826 $as_echo_n "(cached) " >&6
2828 if test -n "$ac_ct_CC"; then
2829 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2835 test -z "$as_dir" && as_dir=.
2836 for ac_exec_ext in '' $ac_executable_extensions; do
2837 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2838 ac_cv_prog_ac_ct_CC="gcc"
2839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2848 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2849 if test -n "$ac_ct_CC"; then
2850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2851 $as_echo "$ac_ct_CC" >&6; }
2853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2854 $as_echo "no" >&6; }
2857 if test "x$ac_ct_CC" = x; then
2860 case $cross_compiling:$ac_tool_warned in
2862 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2863 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2864 ac_tool_warned=yes ;;
2872 if test -z "$CC"; then
2873 if test -n "$ac_tool_prefix"; then
2874 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2875 set dummy ${ac_tool_prefix}cc; ac_word=$2
2876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2877 $as_echo_n "checking for $ac_word... " >&6; }
2878 if test "${ac_cv_prog_CC+set}" = set; then :
2879 $as_echo_n "(cached) " >&6
2881 if test -n "$CC"; then
2882 ac_cv_prog_CC="$CC" # Let the user override the test.
2884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2888 test -z "$as_dir" && as_dir=.
2889 for ac_exec_ext in '' $ac_executable_extensions; do
2890 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2891 ac_cv_prog_CC="${ac_tool_prefix}cc"
2892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2902 if test -n "$CC"; then
2903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2904 $as_echo "$CC" >&6; }
2906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2907 $as_echo "no" >&6; }
2913 if test -z "$CC"; then
2914 # Extract the first word of "cc", so it can be a program name with args.
2915 set dummy cc; ac_word=$2
2916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2917 $as_echo_n "checking for $ac_word... " >&6; }
2918 if test "${ac_cv_prog_CC+set}" = set; then :
2919 $as_echo_n "(cached) " >&6
2921 if test -n "$CC"; then
2922 ac_cv_prog_CC="$CC" # Let the user override the test.
2925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2929 test -z "$as_dir" && as_dir=.
2930 for ac_exec_ext in '' $ac_executable_extensions; do
2931 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2932 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2933 ac_prog_rejected=yes
2937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2944 if test $ac_prog_rejected = yes; then
2945 # We found a bogon in the path, so make sure we never use it.
2946 set dummy $ac_cv_prog_CC
2948 if test $# != 0; then
2949 # We chose a different compiler from the bogus one.
2950 # However, it has the same basename, so the bogon will be chosen
2951 # first if we set CC to just the basename; use the full file name.
2953 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2959 if test -n "$CC"; then
2960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2961 $as_echo "$CC" >&6; }
2963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2964 $as_echo "no" >&6; }
2969 if test -z "$CC"; then
2970 if test -n "$ac_tool_prefix"; then
2971 for ac_prog in cl.exe
2973 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2974 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2976 $as_echo_n "checking for $ac_word... " >&6; }
2977 if test "${ac_cv_prog_CC+set}" = set; then :
2978 $as_echo_n "(cached) " >&6
2980 if test -n "$CC"; then
2981 ac_cv_prog_CC="$CC" # Let the user override the test.
2983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2987 test -z "$as_dir" && as_dir=.
2988 for ac_exec_ext in '' $ac_executable_extensions; do
2989 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2990 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2991 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3001 if test -n "$CC"; then
3002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3003 $as_echo "$CC" >&6; }
3005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3006 $as_echo "no" >&6; }
3010 test -n "$CC" && break
3013 if test -z "$CC"; then
3015 for ac_prog in cl.exe
3017 # Extract the first word of "$ac_prog", so it can be a program name with args.
3018 set dummy $ac_prog; ac_word=$2
3019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3020 $as_echo_n "checking for $ac_word... " >&6; }
3021 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3022 $as_echo_n "(cached) " >&6
3024 if test -n "$ac_ct_CC"; then
3025 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3031 test -z "$as_dir" && as_dir=.
3032 for ac_exec_ext in '' $ac_executable_extensions; do
3033 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3034 ac_cv_prog_ac_ct_CC="$ac_prog"
3035 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3044 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3045 if test -n "$ac_ct_CC"; then
3046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3047 $as_echo "$ac_ct_CC" >&6; }
3049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3050 $as_echo "no" >&6; }
3054 test -n "$ac_ct_CC" && break
3057 if test "x$ac_ct_CC" = x; then
3060 case $cross_compiling:$ac_tool_warned in
3062 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3063 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3064 ac_tool_warned=yes ;;
3073 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3074 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3075 as_fn_error "no acceptable C compiler found in \$PATH
3076 See \`config.log' for more details." "$LINENO" 5; }
3078 # Provide some information about the compiler.
3079 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3082 for ac_option in --version -v -V -qversion; do
3083 { { ac_try="$ac_compiler $ac_option >&5"
3085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3086 *) ac_try_echo=$ac_try;;
3088 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3089 $as_echo "$ac_try_echo"; } >&5
3090 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3092 if test -s conftest.err; then
3094 ... rest of stderr output deleted ...
3095 10q' conftest.err >conftest.er1
3096 cat conftest.er1 >&5
3098 rm -f conftest.er1 conftest.err
3099 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3100 test $ac_status = 0; }
3103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3104 /* end confdefs.h. */
3114 ac_clean_files_save=$ac_clean_files
3115 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3116 # Try to create an executable without -o first, disregard a.out.
3117 # It will help us diagnose broken compilers, and finding out an intuition
3119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3120 $as_echo_n "checking whether the C compiler works... " >&6; }
3121 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3123 # The possible output files:
3124 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3127 for ac_file in $ac_files
3130 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3131 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3136 if { { ac_try="$ac_link_default"
3138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3139 *) ac_try_echo=$ac_try;;
3141 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3142 $as_echo "$ac_try_echo"; } >&5
3143 (eval "$ac_link_default") 2>&5
3145 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3146 test $ac_status = 0; }; then :
3147 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3148 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3149 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3150 # so that the user can short-circuit this test for compilers unknown to
3152 for ac_file in $ac_files ''
3154 test -f "$ac_file" || continue
3156 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3159 # We found the default executable, but exeext='' is most
3163 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3165 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3167 # We set ac_cv_exeext here because the later test for it is not
3168 # safe: cross compilers may not add the suffix if given an `-o'
3169 # argument, so we may need to know it at that point already.
3170 # Even if this section looks crufty: it has the advantage of
3177 test "$ac_cv_exeext" = no && ac_cv_exeext=
3182 if test -z "$ac_file"; then :
3183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3184 $as_echo "no" >&6; }
3185 $as_echo "$as_me: failed program was:" >&5
3186 sed 's/^/| /' conftest.$ac_ext >&5
3188 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3189 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3190 { as_fn_set_status 77
3191 as_fn_error "C compiler cannot create executables
3192 See \`config.log' for more details." "$LINENO" 5; }; }
3194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3195 $as_echo "yes" >&6; }
3197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3198 $as_echo_n "checking for C compiler default output file name... " >&6; }
3199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3200 $as_echo "$ac_file" >&6; }
3201 ac_exeext=$ac_cv_exeext
3203 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3204 ac_clean_files=$ac_clean_files_save
3205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3206 $as_echo_n "checking for suffix of executables... " >&6; }
3207 if { { ac_try="$ac_link"
3209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3210 *) ac_try_echo=$ac_try;;
3212 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3213 $as_echo "$ac_try_echo"; } >&5
3214 (eval "$ac_link") 2>&5
3216 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3217 test $ac_status = 0; }; then :
3218 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3219 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3220 # work properly (i.e., refer to `conftest.exe'), while it won't with
3222 for ac_file in conftest.exe conftest conftest.*; do
3223 test -f "$ac_file" || continue
3225 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3226 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3232 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3233 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3234 as_fn_error "cannot compute suffix of executables: cannot compile and link
3235 See \`config.log' for more details." "$LINENO" 5; }
3237 rm -f conftest conftest$ac_cv_exeext
3238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3239 $as_echo "$ac_cv_exeext" >&6; }
3241 rm -f conftest.$ac_ext
3242 EXEEXT=$ac_cv_exeext
3244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3245 /* end confdefs.h. */
3250 FILE *f = fopen ("conftest.out", "w");
3251 return ferror (f) || fclose (f) != 0;
3257 ac_clean_files="$ac_clean_files conftest.out"
3258 # Check that the compiler produces executables we can run. If not, either
3259 # the compiler is broken, or we cross compile.
3260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3261 $as_echo_n "checking whether we are cross compiling... " >&6; }
3262 if test "$cross_compiling" != yes; then
3263 { { ac_try="$ac_link"
3265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3266 *) ac_try_echo=$ac_try;;
3268 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3269 $as_echo "$ac_try_echo"; } >&5
3270 (eval "$ac_link") 2>&5
3272 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3273 test $ac_status = 0; }
3274 if { ac_try='./conftest$ac_cv_exeext'
3275 { { case "(($ac_try" in
3276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3277 *) ac_try_echo=$ac_try;;
3279 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3280 $as_echo "$ac_try_echo"; } >&5
3281 (eval "$ac_try") 2>&5
3283 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3284 test $ac_status = 0; }; }; then
3287 if test "$cross_compiling" = maybe; then
3290 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3291 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3292 as_fn_error "cannot run C compiled programs.
3293 If you meant to cross compile, use \`--host'.
3294 See \`config.log' for more details." "$LINENO" 5; }
3298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3299 $as_echo "$cross_compiling" >&6; }
3301 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3302 ac_clean_files=$ac_clean_files_save
3303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3304 $as_echo_n "checking for suffix of object files... " >&6; }
3305 if test "${ac_cv_objext+set}" = set; then :
3306 $as_echo_n "(cached) " >&6
3308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3309 /* end confdefs.h. */
3319 rm -f conftest.o conftest.obj
3320 if { { ac_try="$ac_compile"
3322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3323 *) ac_try_echo=$ac_try;;
3325 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3326 $as_echo "$ac_try_echo"; } >&5
3327 (eval "$ac_compile") 2>&5
3329 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3330 test $ac_status = 0; }; then :
3331 for ac_file in conftest.o conftest.obj conftest.*; do
3332 test -f "$ac_file" || continue;
3334 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3335 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3340 $as_echo "$as_me: failed program was:" >&5
3341 sed 's/^/| /' conftest.$ac_ext >&5
3343 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3344 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3345 as_fn_error "cannot compute suffix of object files: cannot compile
3346 See \`config.log' for more details." "$LINENO" 5; }
3348 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3351 $as_echo "$ac_cv_objext" >&6; }
3352 OBJEXT=$ac_cv_objext
3354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3355 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3356 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3357 $as_echo_n "(cached) " >&6
3359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3360 /* end confdefs.h. */
3373 if ac_fn_c_try_compile "$LINENO"; then :
3378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3379 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3383 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3384 if test $ac_compiler_gnu = yes; then
3389 ac_test_CFLAGS=${CFLAGS+set}
3390 ac_save_CFLAGS=$CFLAGS
3391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3392 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3393 if test "${ac_cv_prog_cc_g+set}" = set; then :
3394 $as_echo_n "(cached) " >&6
3396 ac_save_c_werror_flag=$ac_c_werror_flag
3397 ac_c_werror_flag=yes
3400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3401 /* end confdefs.h. */
3411 if ac_fn_c_try_compile "$LINENO"; then :
3415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3416 /* end confdefs.h. */
3426 if ac_fn_c_try_compile "$LINENO"; then :
3429 ac_c_werror_flag=$ac_save_c_werror_flag
3431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3432 /* end confdefs.h. */
3442 if ac_fn_c_try_compile "$LINENO"; then :
3445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3450 ac_c_werror_flag=$ac_save_c_werror_flag
3452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3453 $as_echo "$ac_cv_prog_cc_g" >&6; }
3454 if test "$ac_test_CFLAGS" = set; then
3455 CFLAGS=$ac_save_CFLAGS
3456 elif test $ac_cv_prog_cc_g = yes; then
3457 if test "$GCC" = yes; then
3463 if test "$GCC" = yes; then
3469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3470 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3471 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3472 $as_echo_n "(cached) " >&6
3474 ac_cv_prog_cc_c89=no
3476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3477 /* end confdefs.h. */
3480 #include <sys/types.h>
3481 #include <sys/stat.h>
3482 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3483 struct buf { int x; };
3484 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3485 static char *e (p, i)
3491 static char *f (char * (*g) (char **, int), char **p, ...)
3496 s = g (p, va_arg (v,int));
3501 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3502 function prototypes and stuff, but not '\xHH' hex character constants.
3503 These don't provoke an error unfortunately, instead are silently treated
3504 as 'x'. The following induces an error, until -std is added to get
3505 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3506 array size at least. It's necessary to write '\x00'==0 to get something
3507 that's true only with -std. */
3508 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3510 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3511 inside strings and character constants. */
3513 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3515 int test (int i, double x);
3516 struct s1 {int (*f) (int a);};
3517 struct s2 {int (*f) (double a);};
3518 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3524 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3529 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3530 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3532 CC="$ac_save_CC $ac_arg"
3533 if ac_fn_c_try_compile "$LINENO"; then :
3534 ac_cv_prog_cc_c89=$ac_arg
3536 rm -f core conftest.err conftest.$ac_objext
3537 test "x$ac_cv_prog_cc_c89" != "xno" && break
3539 rm -f conftest.$ac_ext
3544 case "x$ac_cv_prog_cc_c89" in
3546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3547 $as_echo "none needed" >&6; } ;;
3549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3550 $as_echo "unsupported" >&6; } ;;
3552 CC="$CC $ac_cv_prog_cc_c89"
3553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3554 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3556 if test "x$ac_cv_prog_cc_c89" != xno; then :
3561 ac_cpp='$CPP $CPPFLAGS'
3562 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3563 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3564 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
3568 $as_echo_n "checking for dlopen in -ldl... " >&6; }
3569 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
3570 $as_echo_n "(cached) " >&6
3572 ac_check_lib_save_LIBS=$LIBS
3574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3575 /* end confdefs.h. */
3577 /* Override any GCC internal prototype to avoid an error.
3578 Use char because int might match the return type of a GCC
3579 builtin and then its argument prototype would still apply. */
3592 if ac_fn_c_try_link "$LINENO"; then :
3593 ac_cv_lib_dl_dlopen=yes
3595 ac_cv_lib_dl_dlopen=no
3597 rm -f core conftest.err conftest.$ac_objext \
3598 conftest$ac_exeext conftest.$ac_ext
3599 LIBS=$ac_check_lib_save_LIBS
3601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
3602 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
3603 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
3606 $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
3613 # Check whether --with-diet-libc was given.
3614 if test "${with_diet_libc+set}" = set; then :
3615 withval=$with_diet_libc; CC="diet cc -nostdinc"
3617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: CC=$CC" >&5
3618 $as_echo "CC=$CC" >&6; }
3621 # Check whether --with-cc was given.
3622 if test "${with_cc+set}" = set; then :
3623 withval=$with_cc; as_fn_error "--with-cc no longer supported; use CC= instead" "$LINENO" 5
3627 # Check whether --with-ccopts was given.
3628 if test "${with_ccopts+set}" = set; then :
3629 withval=$with_ccopts; as_fn_error "--with-ccopts no longer supported; use CFLAGS= instead" "$LINENO" 5
3633 # Check whether --with-ldopts was given.
3634 if test "${with_ldopts+set}" = set; then :
3635 withval=$with_ldopts; as_fn_error "--with-ldopts no longer supported; use LDFLAGS= instead" "$LINENO" 5
3639 ac_cpp='$CPP $CPPFLAGS'
3640 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3641 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3642 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3643 if test -n "$ac_tool_prefix"; then
3644 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3645 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3647 $as_echo_n "checking for $ac_word... " >&6; }
3648 if test "${ac_cv_prog_CC+set}" = set; then :
3649 $as_echo_n "(cached) " >&6
3651 if test -n "$CC"; then
3652 ac_cv_prog_CC="$CC" # Let the user override the test.
3654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3658 test -z "$as_dir" && as_dir=.
3659 for ac_exec_ext in '' $ac_executable_extensions; do
3660 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3661 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3672 if test -n "$CC"; then
3673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3674 $as_echo "$CC" >&6; }
3676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3677 $as_echo "no" >&6; }
3682 if test -z "$ac_cv_prog_CC"; then
3684 # Extract the first word of "gcc", so it can be a program name with args.
3685 set dummy gcc; ac_word=$2
3686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3687 $as_echo_n "checking for $ac_word... " >&6; }
3688 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3689 $as_echo_n "(cached) " >&6
3691 if test -n "$ac_ct_CC"; then
3692 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3698 test -z "$as_dir" && as_dir=.
3699 for ac_exec_ext in '' $ac_executable_extensions; do
3700 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3701 ac_cv_prog_ac_ct_CC="gcc"
3702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3711 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3712 if test -n "$ac_ct_CC"; then
3713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3714 $as_echo "$ac_ct_CC" >&6; }
3716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3717 $as_echo "no" >&6; }
3720 if test "x$ac_ct_CC" = x; then
3723 case $cross_compiling:$ac_tool_warned in
3725 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3726 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3727 ac_tool_warned=yes ;;
3735 if test -z "$CC"; then
3736 if test -n "$ac_tool_prefix"; then
3737 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3738 set dummy ${ac_tool_prefix}cc; ac_word=$2
3739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3740 $as_echo_n "checking for $ac_word... " >&6; }
3741 if test "${ac_cv_prog_CC+set}" = set; then :
3742 $as_echo_n "(cached) " >&6
3744 if test -n "$CC"; then
3745 ac_cv_prog_CC="$CC" # Let the user override the test.
3747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3751 test -z "$as_dir" && as_dir=.
3752 for ac_exec_ext in '' $ac_executable_extensions; do
3753 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3754 ac_cv_prog_CC="${ac_tool_prefix}cc"
3755 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3765 if test -n "$CC"; then
3766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3767 $as_echo "$CC" >&6; }
3769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3770 $as_echo "no" >&6; }
3776 if test -z "$CC"; then
3777 # Extract the first word of "cc", so it can be a program name with args.
3778 set dummy cc; ac_word=$2
3779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3780 $as_echo_n "checking for $ac_word... " >&6; }
3781 if test "${ac_cv_prog_CC+set}" = set; then :
3782 $as_echo_n "(cached) " >&6
3784 if test -n "$CC"; then
3785 ac_cv_prog_CC="$CC" # Let the user override the test.
3788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3792 test -z "$as_dir" && as_dir=.
3793 for ac_exec_ext in '' $ac_executable_extensions; do
3794 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3795 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3796 ac_prog_rejected=yes
3800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3807 if test $ac_prog_rejected = yes; then
3808 # We found a bogon in the path, so make sure we never use it.
3809 set dummy $ac_cv_prog_CC
3811 if test $# != 0; then
3812 # We chose a different compiler from the bogus one.
3813 # However, it has the same basename, so the bogon will be chosen
3814 # first if we set CC to just the basename; use the full file name.
3816 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3822 if test -n "$CC"; then
3823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3824 $as_echo "$CC" >&6; }
3826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3827 $as_echo "no" >&6; }
3832 if test -z "$CC"; then
3833 if test -n "$ac_tool_prefix"; then
3834 for ac_prog in cl.exe
3836 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3837 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3839 $as_echo_n "checking for $ac_word... " >&6; }
3840 if test "${ac_cv_prog_CC+set}" = set; then :
3841 $as_echo_n "(cached) " >&6
3843 if test -n "$CC"; then
3844 ac_cv_prog_CC="$CC" # Let the user override the test.
3846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3850 test -z "$as_dir" && as_dir=.
3851 for ac_exec_ext in '' $ac_executable_extensions; do
3852 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3853 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3854 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3864 if test -n "$CC"; then
3865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3866 $as_echo "$CC" >&6; }
3868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3869 $as_echo "no" >&6; }
3873 test -n "$CC" && break
3876 if test -z "$CC"; then
3878 for ac_prog in cl.exe
3880 # Extract the first word of "$ac_prog", so it can be a program name with args.
3881 set dummy $ac_prog; ac_word=$2
3882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3883 $as_echo_n "checking for $ac_word... " >&6; }
3884 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3885 $as_echo_n "(cached) " >&6
3887 if test -n "$ac_ct_CC"; then
3888 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3894 test -z "$as_dir" && as_dir=.
3895 for ac_exec_ext in '' $ac_executable_extensions; do
3896 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3897 ac_cv_prog_ac_ct_CC="$ac_prog"
3898 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3907 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3908 if test -n "$ac_ct_CC"; then
3909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3910 $as_echo "$ac_ct_CC" >&6; }
3912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3913 $as_echo "no" >&6; }
3917 test -n "$ac_ct_CC" && break
3920 if test "x$ac_ct_CC" = x; then
3923 case $cross_compiling:$ac_tool_warned in
3925 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3926 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3927 ac_tool_warned=yes ;;
3936 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3937 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3938 as_fn_error "no acceptable C compiler found in \$PATH
3939 See \`config.log' for more details." "$LINENO" 5; }
3941 # Provide some information about the compiler.
3942 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3945 for ac_option in --version -v -V -qversion; do
3946 { { ac_try="$ac_compiler $ac_option >&5"
3948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3949 *) ac_try_echo=$ac_try;;
3951 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3952 $as_echo "$ac_try_echo"; } >&5
3953 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3955 if test -s conftest.err; then
3957 ... rest of stderr output deleted ...
3958 10q' conftest.err >conftest.er1
3959 cat conftest.er1 >&5
3961 rm -f conftest.er1 conftest.err
3962 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3963 test $ac_status = 0; }
3966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3967 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3968 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3969 $as_echo_n "(cached) " >&6
3971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3972 /* end confdefs.h. */
3985 if ac_fn_c_try_compile "$LINENO"; then :
3990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3991 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3995 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3996 if test $ac_compiler_gnu = yes; then
4001 ac_test_CFLAGS=${CFLAGS+set}
4002 ac_save_CFLAGS=$CFLAGS
4003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4004 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4005 if test "${ac_cv_prog_cc_g+set}" = set; then :
4006 $as_echo_n "(cached) " >&6
4008 ac_save_c_werror_flag=$ac_c_werror_flag
4009 ac_c_werror_flag=yes
4012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4013 /* end confdefs.h. */
4023 if ac_fn_c_try_compile "$LINENO"; then :
4027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4028 /* end confdefs.h. */
4038 if ac_fn_c_try_compile "$LINENO"; then :
4041 ac_c_werror_flag=$ac_save_c_werror_flag
4043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4044 /* end confdefs.h. */
4054 if ac_fn_c_try_compile "$LINENO"; then :
4057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4062 ac_c_werror_flag=$ac_save_c_werror_flag
4064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4065 $as_echo "$ac_cv_prog_cc_g" >&6; }
4066 if test "$ac_test_CFLAGS" = set; then
4067 CFLAGS=$ac_save_CFLAGS
4068 elif test $ac_cv_prog_cc_g = yes; then
4069 if test "$GCC" = yes; then
4075 if test "$GCC" = yes; then
4081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4082 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4083 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4084 $as_echo_n "(cached) " >&6
4086 ac_cv_prog_cc_c89=no
4088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4089 /* end confdefs.h. */
4092 #include <sys/types.h>
4093 #include <sys/stat.h>
4094 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4095 struct buf { int x; };
4096 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4097 static char *e (p, i)
4103 static char *f (char * (*g) (char **, int), char **p, ...)
4108 s = g (p, va_arg (v,int));
4113 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4114 function prototypes and stuff, but not '\xHH' hex character constants.
4115 These don't provoke an error unfortunately, instead are silently treated
4116 as 'x'. The following induces an error, until -std is added to get
4117 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4118 array size at least. It's necessary to write '\x00'==0 to get something
4119 that's true only with -std. */
4120 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4122 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4123 inside strings and character constants. */
4125 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4127 int test (int i, double x);
4128 struct s1 {int (*f) (int a);};
4129 struct s2 {int (*f) (double a);};
4130 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4136 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4141 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4142 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4144 CC="$ac_save_CC $ac_arg"
4145 if ac_fn_c_try_compile "$LINENO"; then :
4146 ac_cv_prog_cc_c89=$ac_arg
4148 rm -f core conftest.err conftest.$ac_objext
4149 test "x$ac_cv_prog_cc_c89" != "xno" && break
4151 rm -f conftest.$ac_ext
4156 case "x$ac_cv_prog_cc_c89" in
4158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4159 $as_echo "none needed" >&6; } ;;
4161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4162 $as_echo "unsupported" >&6; } ;;
4164 CC="$CC $ac_cv_prog_cc_c89"
4165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4166 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4168 if test "x$ac_cv_prog_cc_c89" != xno; then :
4173 ac_cpp='$CPP $CPPFLAGS'
4174 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4175 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4176 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4178 if test "$GCC" = yes; then
4179 RDYNAMIC="-rdynamic"
4183 ac_cpp='$CPP $CPPFLAGS'
4184 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4185 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4186 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4188 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4189 # On Suns, sometimes $CPP names a directory.
4190 if test -n "$CPP" && test -d "$CPP"; then
4193 if test -z "$CPP"; then
4194 if test "${ac_cv_prog_CPP+set}" = set; then :
4195 $as_echo_n "(cached) " >&6
4197 # Double quotes because CPP needs to be expanded
4198 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4201 for ac_c_preproc_warn_flag in '' yes
4203 # Use a header file that comes with gcc, so configuring glibc
4204 # with a fresh cross-compiler works.
4205 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4206 # <limits.h> exists even on freestanding compilers.
4207 # On the NeXT, cc -E runs the code through the compiler's parser,
4208 # not just through cpp. "Syntax error" is here to catch this case.
4209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4210 /* end confdefs.h. */
4212 # include <limits.h>
4214 # include <assert.h>
4218 if ac_fn_c_try_cpp "$LINENO"; then :
4221 # Broken: fails on valid input.
4224 rm -f conftest.err conftest.$ac_ext
4226 # OK, works on sane cases. Now check whether nonexistent headers
4227 # can be detected and how.
4228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4229 /* end confdefs.h. */
4230 #include <ac_nonexistent.h>
4232 if ac_fn_c_try_cpp "$LINENO"; then :
4233 # Broken: success on invalid input.
4236 # Passes both tests.
4240 rm -f conftest.err conftest.$ac_ext
4243 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4244 rm -f conftest.err conftest.$ac_ext
4245 if $ac_preproc_ok; then :
4257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4258 $as_echo "$CPP" >&6; }
4260 for ac_c_preproc_warn_flag in '' yes
4262 # Use a header file that comes with gcc, so configuring glibc
4263 # with a fresh cross-compiler works.
4264 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4265 # <limits.h> exists even on freestanding compilers.
4266 # On the NeXT, cc -E runs the code through the compiler's parser,
4267 # not just through cpp. "Syntax error" is here to catch this case.
4268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4269 /* end confdefs.h. */
4271 # include <limits.h>
4273 # include <assert.h>
4277 if ac_fn_c_try_cpp "$LINENO"; then :
4280 # Broken: fails on valid input.
4283 rm -f conftest.err conftest.$ac_ext
4285 # OK, works on sane cases. Now check whether nonexistent headers
4286 # can be detected and how.
4287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4288 /* end confdefs.h. */
4289 #include <ac_nonexistent.h>
4291 if ac_fn_c_try_cpp "$LINENO"; then :
4292 # Broken: success on invalid input.
4295 # Passes both tests.
4299 rm -f conftest.err conftest.$ac_ext
4302 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4303 rm -f conftest.err conftest.$ac_ext
4304 if $ac_preproc_ok; then :
4307 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4308 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4309 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4310 See \`config.log' for more details." "$LINENO" 5; }
4314 ac_cpp='$CPP $CPPFLAGS'
4315 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4316 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4317 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for additional special compiler flags" >&5
4320 $as_echo_n "checking for additional special compiler flags... " >&6; }
4321 if test "$GCC" = yes
4324 alpha) addcflags="-mieee" ;;
4327 if test "x$addcflags" != x
4329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $addcflags" >&5
4330 $as_echo "$addcflags" >&6; }
4331 CFLAGS="$addcflags $CFLAGS"
4333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (none)" >&5
4334 $as_echo "(none)" >&6; }
4340 # Check whether --with-root-prefix was given.
4341 if test "${with_root_prefix+set}" = set; then :
4342 withval=$with_root_prefix; root_prefix=$withval
4346 # Check whether --enable-maintainer-mode was given.
4347 if test "${enable_maintainer_mode+set}" = set; then :
4348 enableval=$enable_maintainer_mode; if test "$enableval" = "no"
4351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode" >&5
4352 $as_echo "Disabling maintainer mode" >&6; }
4355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling maintainer mode" >&5
4356 $as_echo "Enabling maintainer mode" >&6; }
4361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode by default" >&5
4362 $as_echo "Disabling maintainer mode by default" >&6; }
4367 # Check whether --enable-symlink-install was given.
4368 if test "${enable_symlink_install+set}" = set; then :
4369 enableval=$enable_symlink_install; if test "$enableval" = "no"
4371 LINK_INSTALL_FLAGS=-f
4372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install" >&5
4373 $as_echo "Disabling symlinks for install" >&6; }
4375 LINK_INSTALL_FLAGS=-sf
4376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for install" >&5
4377 $as_echo "Enabling symlinks for install" >&6; }
4381 LINK_INSTALL_FLAGS=-f
4382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install by default" >&5
4383 $as_echo "Disabling symlinks for install by default" >&6; }
4388 # Check whether --enable-symlink-relative-symlinks was given.
4389 if test "${enable_symlink_relative_symlinks+set}" = set; then :
4390 enableval=$enable_symlink_relative_symlinks; if test "$enableval" = "no"
4393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
4394 $as_echo "Disabling relative symlinks for install" >&6; }
4396 SYMLINK_RELATIVE=--relative
4397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for install" >&5
4398 $as_echo "Enabling symlinks for install" >&6; }
4403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install by default" >&5
4404 $as_echo "Disabling relative symlinks for install by default" >&6; }
4409 # Check whether --enable-symlink-build was given.
4410 if test "${enable_symlink_build+set}" = set; then :
4411 enableval=$enable_symlink_build; if test "$enableval" = "no"
4414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build" >&5
4415 $as_echo "Disabling symlinks for build" >&6; }
4418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for build" >&5
4419 $as_echo "Enabling symlinks for build" >&6; }
4424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build by default" >&5
4425 $as_echo "Disabling symlinks for build by default" >&6; }
4430 # Check whether --enable-verbose-makecmds was given.
4431 if test "${enable_verbose_makecmds+set}" = set; then :
4432 enableval=$enable_verbose_makecmds; if test "$enableval" = "no"
4434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
4435 $as_echo "Disabling verbose make commands" >&6; }
4439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling verbose make commands" >&5
4440 $as_echo "Enabling verbose make commands" >&6; }
4446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
4447 $as_echo "Disabling verbose make commands" >&6; }
4455 # Check whether --enable-compression was given.
4456 if test "${enable_compression+set}" = set; then :
4457 enableval=$enable_compression; if test "$enableval" = "no"
4459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling compression support" >&5
4460 $as_echo "Disabling compression support" >&6; }
4463 $as_echo "#define ENABLE_COMPRESSION 1" >>confdefs.h
4465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling compression support" >&5
4466 $as_echo "Enabling compression support" >&6; }
4467 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Compression support is experimental" >&5
4468 $as_echo "$as_me: WARNING: Compression support is experimental" >&2;}
4472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling compression support by default" >&5
4473 $as_echo "Disabling compression support by default" >&6; }
4478 # Check whether --enable-htree was given.
4479 if test "${enable_htree+set}" = set; then :
4480 enableval=$enable_htree; if test "$enableval" = "no"
4483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling htree directory support" >&5
4484 $as_echo "Disabling htree directory support" >&6; }
4487 $as_echo "#define ENABLE_HTREE 1" >>confdefs.h
4489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling htree directory support" >&5
4490 $as_echo "Enabling htree directory support" >&6; }
4495 $as_echo "#define ENABLE_HTREE 1" >>confdefs.h
4497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling htree directory support by default" >&5
4498 $as_echo "Enabling htree directory support by default" >&6; }
4503 E2_PKG_CONFIG_STATIC=--static
4506 # Check whether --enable-elf-shlibs was given.
4507 if test "${enable_elf_shlibs+set}" = set; then :
4508 enableval=$enable_elf_shlibs; if test "$enableval" = "no"
4511 MAKEFILE_ELF=/dev/null
4512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries" >&5
4513 $as_echo "Disabling ELF shared libraries" >&6; }
4515 E2_PKG_CONFIG_STATIC=
4517 MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
4520 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
4526 LDFLAG_DYNAMIC='-Wl,-rpath-link,$(top_builddir)/lib'
4527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling ELF shared libraries" >&5
4528 $as_echo "Enabling ELF shared libraries" >&6; }
4532 MAKEFILE_ELF=/dev/null
4534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries by default" >&5
4535 $as_echo "Disabling ELF shared libraries by default" >&6; }
4541 # Check whether --enable-bsd-shlibs was given.
4542 if test "${enable_bsd_shlibs+set}" = set; then :
4543 enableval=$enable_bsd_shlibs; if test "$enableval" = "no"
4546 MAKEFILE_BSDLIB=/dev/null
4547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries" >&5
4548 $as_echo "Disabling BSD shared libraries" >&6; }
4550 E2_PKG_CONFIG_STATIC=
4552 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
4556 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib
4560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling BSD shared libraries" >&5
4561 $as_echo "Enabling BSD shared libraries" >&6; }
4565 MAKEFILE_BSDLIB=/dev/null
4567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries by default" >&5
4568 $as_echo "Disabling BSD shared libraries by default" >&6; }
4574 # Check whether --enable-profile was given.
4575 if test "${enable_profile+set}" = set; then :
4576 enableval=$enable_profile; if test "$enableval" = "no"
4579 MAKEFILE_PROFILE=/dev/null
4580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries" >&5
4581 $as_echo "Disabling profiling libraries" >&6; }
4584 MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
4585 PROFILED_LIB_EXT=_p.a
4586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building profiling libraries" >&5
4587 $as_echo "Building profiling libraries" >&6; }
4592 MAKEFILE_PROFILE=/dev/null
4593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries by default" >&5
4594 $as_echo "Disabling profiling libraries by default" >&6; }
4600 # Check whether --enable-checker was given.
4601 if test "${enable_checker+set}" = set; then :
4602 enableval=$enable_checker; if test "$enableval" = "no"
4605 MAKEFILE_CHECKER=/dev/null
4606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling checker libraries" >&5
4607 $as_echo "Disabling checker libraries" >&6; }
4610 MAKEFILE_CHECKER=$srcdir/lib/Makefile.checker
4611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building checker libraries" >&5
4612 $as_echo "Building checker libraries" >&6; }
4617 MAKEFILE_CHECKER=/dev/null
4618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling checker libraries by default" >&5
4619 $as_echo "Disabling checker libraries by default" >&6; }
4630 # Check whether --enable-jbd-debug was given.
4631 if test "${enable_jbd_debug+set}" = set; then :
4632 enableval=$enable_jbd_debug; if test "$enableval" = "no"
4634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging" >&5
4635 $as_echo "Disabling journal debugging" >&6; }
4638 $as_echo "#define CONFIG_JBD_DEBUG 1" >>confdefs.h
4640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling journal debugging" >&5
4641 $as_echo "Enabling journal debugging" >&6; }
4645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging by default" >&5
4646 $as_echo "Disabling journal debugging by default" >&6; }
4650 # Check whether --enable-blkid-debug was given.
4651 if test "${enable_blkid_debug+set}" = set; then :
4652 enableval=$enable_blkid_debug; if test "$enableval" = "no"
4654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging" >&5
4655 $as_echo "Disabling blkid debugging" >&6; }
4658 $as_echo "#define CONFIG_BLKID_DEBUG 1" >>confdefs.h
4660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling blkid debugging" >&5
4661 $as_echo "Enabling blkid debugging" >&6; }
4665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging by default" >&5
4666 $as_echo "Disabling blkid debugging by default" >&6; }
4670 # Check whether --enable-testio-debug was given.
4671 if test "${enable_testio_debug+set}" = set; then :
4672 enableval=$enable_testio_debug;
4673 if test "$enableval" = "no"
4675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling testio debugging" >&5
4676 $as_echo "Disabling testio debugging" >&6; }
4680 $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
4682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging" >&5
4683 $as_echo "Enabling testio debugging" >&6; }
4687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging by default" >&5
4688 $as_echo "Enabling testio debugging by default" >&6; }
4689 $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
4698 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4699 if test -n "$ac_tool_prefix"; then
4700 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4701 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4703 $as_echo_n "checking for $ac_word... " >&6; }
4704 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
4705 $as_echo_n "(cached) " >&6
4709 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4716 test -z "$as_dir" && as_dir=.
4717 for ac_exec_ext in '' $ac_executable_extensions; do
4718 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4719 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4720 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4730 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4731 if test -n "$PKG_CONFIG"; then
4732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4733 $as_echo "$PKG_CONFIG" >&6; }
4735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4736 $as_echo "no" >&6; }
4741 if test -z "$ac_cv_path_PKG_CONFIG"; then
4742 ac_pt_PKG_CONFIG=$PKG_CONFIG
4743 # Extract the first word of "pkg-config", so it can be a program name with args.
4744 set dummy pkg-config; ac_word=$2
4745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4746 $as_echo_n "checking for $ac_word... " >&6; }
4747 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
4748 $as_echo_n "(cached) " >&6
4750 case $ac_pt_PKG_CONFIG in
4752 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4759 test -z "$as_dir" && as_dir=.
4760 for ac_exec_ext in '' $ac_executable_extensions; do
4761 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4762 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4763 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4773 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4774 if test -n "$ac_pt_PKG_CONFIG"; then
4775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4776 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4779 $as_echo "no" >&6; }
4782 if test "x$ac_pt_PKG_CONFIG" = x; then
4785 case $cross_compiling:$ac_tool_warned in
4787 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4788 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4789 ac_tool_warned=yes ;;
4791 PKG_CONFIG=$ac_pt_PKG_CONFIG
4794 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4798 if test -n "$PKG_CONFIG"; then
4799 _pkg_min_version=0.9.0
4800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4801 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4802 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4804 $as_echo "yes" >&6; }
4806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4807 $as_echo "no" >&6; }
4817 DEPPROFILED_LIBUUID=
4819 # Check whether --enable-libuuid was given.
4820 if test "${enable_libuuid+set}" = set; then :
4821 enableval=$enable_libuuid; if test "$enableval" = "no"
4823 if test -z "$PKG_CONFIG"; then
4824 as_fn_error "pkg-config not installed; please install it." "$LINENO" 5
4827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
4828 $as_echo_n "checking for uuid_generate in -luuid... " >&6; }
4829 if test "${ac_cv_lib_uuid_uuid_generate+set}" = set; then :
4830 $as_echo_n "(cached) " >&6
4832 ac_check_lib_save_LIBS=$LIBS
4833 LIBS="-luuid $LIBUUID $LIBS"
4834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4835 /* end confdefs.h. */
4837 /* Override any GCC internal prototype to avoid an error.
4838 Use char because int might match the return type of a GCC
4839 builtin and then its argument prototype would still apply. */
4843 char uuid_generate ();
4847 return uuid_generate ();
4852 if ac_fn_c_try_link "$LINENO"; then :
4853 ac_cv_lib_uuid_uuid_generate=yes
4855 ac_cv_lib_uuid_uuid_generate=no
4857 rm -f core conftest.err conftest.$ac_objext \
4858 conftest$ac_exeext conftest.$ac_ext
4859 LIBS=$ac_check_lib_save_LIBS
4861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
4862 $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
4863 if test "x$ac_cv_lib_uuid_uuid_generate" = x""yes; then :
4864 LIBUUID=`$PKG_CONFIG --libs uuid`;
4865 STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid`
4867 as_fn_error "external uuid library not found" "$LINENO" 5
4871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private uuid library" >&5
4872 $as_echo "Disabling private uuid library" >&6; }
4874 LIBUUID='$(LIB)/libuuid'$LIB_EXT
4876 STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
4877 DEPSTATIC_LIBUUID=$STATIC_LIBUUID
4878 PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
4879 DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
4880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library" >&5
4881 $as_echo "Enabling private uuid library" >&6; }
4885 LIBUUID='$(LIB)/libuuid'$LIB_EXT
4887 STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
4888 DEPSTATIC_LIBUUID=$STATIC_LIBUUID
4889 PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
4890 DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
4891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library by default" >&5
4892 $as_echo "Enabling private uuid library by default" >&6; }
4905 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4906 if test -n "$ac_tool_prefix"; then
4907 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4908 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4910 $as_echo_n "checking for $ac_word... " >&6; }
4911 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
4912 $as_echo_n "(cached) " >&6
4916 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4923 test -z "$as_dir" && as_dir=.
4924 for ac_exec_ext in '' $ac_executable_extensions; do
4925 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4926 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4937 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4938 if test -n "$PKG_CONFIG"; then
4939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4940 $as_echo "$PKG_CONFIG" >&6; }
4942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4943 $as_echo "no" >&6; }
4948 if test -z "$ac_cv_path_PKG_CONFIG"; then
4949 ac_pt_PKG_CONFIG=$PKG_CONFIG
4950 # Extract the first word of "pkg-config", so it can be a program name with args.
4951 set dummy pkg-config; ac_word=$2
4952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4953 $as_echo_n "checking for $ac_word... " >&6; }
4954 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
4955 $as_echo_n "(cached) " >&6
4957 case $ac_pt_PKG_CONFIG in
4959 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4966 test -z "$as_dir" && as_dir=.
4967 for ac_exec_ext in '' $ac_executable_extensions; do
4968 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4969 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4970 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4980 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4981 if test -n "$ac_pt_PKG_CONFIG"; then
4982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4983 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4986 $as_echo "no" >&6; }
4989 if test "x$ac_pt_PKG_CONFIG" = x; then
4992 case $cross_compiling:$ac_tool_warned in
4994 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4995 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4996 ac_tool_warned=yes ;;
4998 PKG_CONFIG=$ac_pt_PKG_CONFIG
5001 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5005 if test -n "$PKG_CONFIG"; then
5006 _pkg_min_version=0.9.0
5007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5008 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5009 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5011 $as_echo "yes" >&6; }
5013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5014 $as_echo "no" >&6; }
5024 DEPPROFILED_LIBBLKID=
5027 # Check whether --enable-libblkid was given.
5028 if test "${enable_libblkid+set}" = set; then :
5029 enableval=$enable_libblkid; if test "$enableval" = "no"
5031 if test -z "$PKG_CONFIG"; then
5032 as_fn_error "pkg-config not installed; please install it." "$LINENO" 5
5035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
5036 $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
5037 if test "${ac_cv_lib_blkid_blkid_get_cache+set}" = set; then :
5038 $as_echo_n "(cached) " >&6
5040 ac_check_lib_save_LIBS=$LIBS
5041 LIBS="-lblkid $LIBBLKID $LIBS"
5042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5043 /* end confdefs.h. */
5045 /* Override any GCC internal prototype to avoid an error.
5046 Use char because int might match the return type of a GCC
5047 builtin and then its argument prototype would still apply. */
5051 char blkid_get_cache ();
5055 return blkid_get_cache ();
5060 if ac_fn_c_try_link "$LINENO"; then :
5061 ac_cv_lib_blkid_blkid_get_cache=yes
5063 ac_cv_lib_blkid_blkid_get_cache=no
5065 rm -f core conftest.err conftest.$ac_objext \
5066 conftest$ac_exeext conftest.$ac_ext
5067 LIBS=$ac_check_lib_save_LIBS
5069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
5070 $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
5071 if test "x$ac_cv_lib_blkid_blkid_get_cache" = x""yes; then :
5072 LIBBLKID=`$PKG_CONFIG --libs blkid`;
5073 STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid`
5075 as_fn_error "external blkid library not found" "$LINENO" 5
5079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private blkid library" >&5
5080 $as_echo "Disabling private blkid library" >&6; }
5082 LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5083 DEPLIBBLKID=$LIBBLKID
5084 STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5085 DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5086 PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5087 DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
5088 $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
5090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library" >&5
5091 $as_echo "Enabling private blkid library" >&6; }
5095 LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5096 DEPLIBBLKID=$LIBBLKID
5097 STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5098 DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5099 PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5100 DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
5101 $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
5103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library by default" >&5
5104 $as_echo "Enabling private blkid library by default" >&6; }
5117 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5118 if test -n "$ac_tool_prefix"; then
5119 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5120 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5122 $as_echo_n "checking for $ac_word... " >&6; }
5123 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
5124 $as_echo_n "(cached) " >&6
5128 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5135 test -z "$as_dir" && as_dir=.
5136 for ac_exec_ext in '' $ac_executable_extensions; do
5137 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5138 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5149 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5150 if test -n "$PKG_CONFIG"; then
5151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5152 $as_echo "$PKG_CONFIG" >&6; }
5154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5155 $as_echo "no" >&6; }
5160 if test -z "$ac_cv_path_PKG_CONFIG"; then
5161 ac_pt_PKG_CONFIG=$PKG_CONFIG
5162 # Extract the first word of "pkg-config", so it can be a program name with args.
5163 set dummy pkg-config; ac_word=$2
5164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5165 $as_echo_n "checking for $ac_word... " >&6; }
5166 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
5167 $as_echo_n "(cached) " >&6
5169 case $ac_pt_PKG_CONFIG in
5171 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5178 test -z "$as_dir" && as_dir=.
5179 for ac_exec_ext in '' $ac_executable_extensions; do
5180 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5181 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5192 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5193 if test -n "$ac_pt_PKG_CONFIG"; then
5194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5195 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5198 $as_echo "no" >&6; }
5201 if test "x$ac_pt_PKG_CONFIG" = x; then
5204 case $cross_compiling:$ac_tool_warned in
5206 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5207 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5208 ac_tool_warned=yes ;;
5210 PKG_CONFIG=$ac_pt_PKG_CONFIG
5213 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5217 if test -n "$PKG_CONFIG"; then
5218 _pkg_min_version=0.9.0
5219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5220 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5221 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5223 $as_echo "yes" >&6; }
5225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5226 $as_echo "no" >&6; }
5232 # Check whether --enable-quota was given.
5233 if test "${enable_quota+set}" = set; then :
5234 enableval=$enable_quota; if test "$enableval" = "no"
5236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling quota support" >&5
5237 $as_echo "Disabling quota support" >&6; }
5239 $as_echo "#define CONFIG_QUOTA 1" >>confdefs.h
5241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling quota support" >&5
5242 $as_echo "Enabling quota support" >&6; }
5246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling quota support by default" >&5
5247 $as_echo "Disabling quota support by default" >&6; }
5251 LIBQUOTA='$(LIB)/libquota'$LIB_EXT
5252 DEPLIBQUOTA=$LIBQUOTA
5253 STATIC_LIBQUOTA='$(LIB)/libquota'$STATIC_LIB_EXT
5254 DEPSTATIC_LIBQUOTA=$STATIC_LIBQUOTA
5255 PROFILED_LIBQUOTA='$(LIB)/libquota'$PROFILED_LIB_EXT
5256 DEPPROFILED_LIBQUOTA=$PROFILED_LIBQUOTA
5264 # Check whether --enable-debugfs was given.
5265 if test "${enable_debugfs+set}" = set; then :
5266 enableval=$enable_debugfs; if test "$enableval" = "no"
5268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling debugfs support" >&5
5269 $as_echo "Disabling debugfs support" >&6; }
5273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support" >&5
5274 $as_echo "Enabling debugfs support" >&6; }
5278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support by default" >&5
5279 $as_echo "Enabling debugfs support by default" >&6; }
5285 # Check whether --enable-imager was given.
5286 if test "${enable_imager+set}" = set; then :
5287 enableval=$enable_imager; if test "$enableval" = "no"
5289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2image support" >&5
5290 $as_echo "Disabling e2image support" >&6; }
5294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support" >&5
5295 $as_echo "Enabling e2image support" >&6; }
5299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support by default" >&5
5300 $as_echo "Enabling e2image support by default" >&6; }
5306 # Check whether --enable-resizer was given.
5307 if test "${enable_resizer+set}" = set; then :
5308 enableval=$enable_resizer; if test "$enableval" = "no"
5310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2resize support" >&5
5311 $as_echo "Disabling e2resize support" >&6; }
5315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support" >&5
5316 $as_echo "Enabling e2resize support" >&6; }
5320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support by default" >&5
5321 $as_echo "Enabling e2resize support by default" >&6; }
5327 # Check whether --enable-defrag was given.
5328 if test "${enable_defrag+set}" = set; then :
5329 enableval=$enable_defrag; if test "$enableval" = "no"
5331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support" >&5
5332 $as_echo "Disabling e4defrag support" >&6; }
5336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support" >&5
5337 $as_echo "Enabling e4defrag support" >&6; }
5341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support by default" >&5
5342 $as_echo "Enabling e4defrag support by default" >&6; }
5348 # Check whether --enable-fsck was given.
5349 if test "${enable_fsck+set}" = set; then :
5350 enableval=$enable_fsck; if test "$enableval" = "no"
5352 FSCK_PROG='' FSCK_MAN=''
5353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper" >&5
5354 $as_echo "Not building fsck wrapper" >&6; }
5356 FSCK_PROG=fsck FSCK_MAN=fsck.8
5357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper" >&5
5358 $as_echo "Building fsck wrapper" >&6; }
5364 FSCK_PROG='' FSCK_MAN=''
5365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper by default" >&5
5366 $as_echo "Not building fsck wrapper by default" >&6; }
5369 FSCK_PROG=fsck FSCK_MAN=fsck.8
5370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper by default" >&5
5371 $as_echo "Building fsck wrapper by default" >&6; }
5378 # Check whether --enable-e2initrd-helper was given.
5379 if test "${enable_e2initrd_helper+set}" = set; then :
5380 enableval=$enable_e2initrd_helper; if test "$enableval" = "no"
5382 E2INITRD_PROG='' E2INITRD_MAN=''
5383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building e2initrd helper" >&5
5384 $as_echo "Not building e2initrd helper" >&6; }
5386 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
5387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper" >&5
5388 $as_echo "Building e2initrd helper" >&6; }
5392 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
5393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper by default" >&5
5394 $as_echo "Building e2initrd helper by default" >&6; }
5400 # Check whether --enable-tls was given.
5401 if test "${enable_tls+set}" = set; then :
5402 enableval=$enable_tls; if test "$enableval" = "no"
5405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling thread local support" >&5
5406 $as_echo "Disabling thread local support" >&6; }
5409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling thread local support" >&5
5410 $as_echo "Enabling thread local support" >&6; }
5414 if test -n "$WITH_DIET_LIBC"
5417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Diet libc does not support thread local support" >&5
5418 $as_echo "Diet libc does not support thread local support" >&6; }
5421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Try using thread local support by default" >&5
5422 $as_echo "Try using thread local support by default" >&6; }
5427 if test "$try_tls" = "yes"
5430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread local storage (TLS) class" >&5
5431 $as_echo_n "checking for thread local storage (TLS) class... " >&6; }
5432 if test "${ac_cv_tls+set}" = set; then :
5433 $as_echo_n "(cached) " >&6
5436 ax_tls_keywords="__thread __declspec(thread) none"
5437 for ax_tls_keyword in $ax_tls_keywords; do
5438 case $ax_tls_keyword in
5439 none) ac_cv_tls=none ; break ;;
5441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5442 /* end confdefs.h. */
5446 static $ax_tls_keyword int bar;
5457 if ac_fn_c_try_compile "$LINENO"; then :
5458 ac_cv_tls=$ax_tls_keyword ; break
5463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5470 if test "$ac_cv_tls" != "none"; then
5472 cat >>confdefs.h <<_ACEOF
5473 #define TLS $ac_cv_tls
5477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tls" >&5
5478 $as_echo "$ac_cv_tls" >&6; }
5482 # Check whether --enable-uuidd was given.
5483 if test "${enable_uuidd+set}" = set; then :
5484 enableval=$enable_uuidd; if test "$enableval" = "no"
5486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building uuidd" >&5
5487 $as_echo "Not building uuidd" >&6; }
5490 $as_echo "#define USE_UUIDD 1" >>confdefs.h
5493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd" >&5
5494 $as_echo "Building uuidd" >&6; }
5498 $as_echo "#define USE_UUIDD 1" >>confdefs.h
5501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd by default" >&5
5502 $as_echo "Building uuidd by default" >&6; }
5507 MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
5509 GETTEXT_PACKAGE=e2fsprogs
5511 VERSION="$E2FSPROGS_VERSION"
5514 cat >>confdefs.h <<_ACEOF
5515 #define PACKAGE "$PACKAGE"
5519 cat >>confdefs.h <<_ACEOF
5520 #define VERSION "$VERSION"
5527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5528 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5530 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5531 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
5532 $as_echo_n "(cached) " >&6
5534 cat >conftest.make <<\_ACEOF
5537 @echo '@@@%%%=$(MAKE)=@@@%%%'
5539 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5540 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5542 eval ac_cv_prog_make_${ac_make}_set=yes;;
5544 eval ac_cv_prog_make_${ac_make}_set=no;;
5548 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5550 $as_echo "yes" >&6; }
5553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5554 $as_echo "no" >&6; }
5555 SET_MAKE="MAKE=${MAKE-make}"
5558 # Find a good install program. We prefer a C program (faster),
5559 # so one script is as good as another. But avoid the broken or
5560 # incompatible versions:
5561 # SysV /etc/install, /usr/sbin/install
5562 # SunOS /usr/etc/install
5563 # IRIX /sbin/install
5565 # AmigaOS /C/install, which installs bootblocks on floppy discs
5566 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5567 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5568 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5569 # OS/2's system install, which has a completely different semantic
5570 # ./install, which can be erroneously created by make from ./install.sh.
5571 # Reject install programs that cannot install multiple files.
5572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
5573 $as_echo_n "checking for a BSD-compatible install... " >&6; }
5574 if test -z "$INSTALL"; then
5575 if test "${ac_cv_path_install+set}" = set; then :
5576 $as_echo_n "(cached) " >&6
5578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5582 test -z "$as_dir" && as_dir=.
5583 # Account for people who put trailing slashes in PATH elements.
5584 case $as_dir/ in #((
5585 ./ | .// | /[cC]/* | \
5586 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5587 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
5590 # OSF1 and SCO ODT 3.0 have their own names for install.
5591 # Don't use installbsd from OSF since it installs stuff as root
5593 for ac_prog in ginstall scoinst install; do
5594 for ac_exec_ext in '' $ac_executable_extensions; do
5595 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5596 if test $ac_prog = install &&
5597 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5598 # AIX install. It has an incompatible calling convention.
5600 elif test $ac_prog = install &&
5601 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5602 # program-specific install script used by HP pwplus--don't use.
5605 rm -rf conftest.one conftest.two conftest.dir
5606 echo one > conftest.one
5607 echo two > conftest.two
5609 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5610 test -s conftest.one && test -s conftest.two &&
5611 test -s conftest.dir/conftest.one &&
5612 test -s conftest.dir/conftest.two
5614 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5627 rm -rf conftest.one conftest.two conftest.dir
5630 if test "${ac_cv_path_install+set}" = set; then
5631 INSTALL=$ac_cv_path_install
5633 # As a last resort, use the slow shell script. Don't cache a
5634 # value for INSTALL within a source directory, because that will
5635 # break other packages using the cache if that directory is
5636 # removed, or if the value is a relative name.
5637 INSTALL=$ac_install_sh
5640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
5641 $as_echo "$INSTALL" >&6; }
5643 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5644 # It thinks the first close brace ends the variable substitution.
5645 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5647 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5649 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5653 if test -n "$ac_aux_dir"; then
5654 case "$ac_aux_dir" in
5655 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
5656 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
5659 if test -z "$MKINSTALLDIRS"; then
5660 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
5665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
5666 $as_echo_n "checking whether NLS is requested... " >&6; }
5667 # Check whether --enable-nls was given.
5668 if test "${enable_nls+set}" = set; then :
5669 enableval=$enable_nls; USE_NLS=$enableval
5674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
5675 $as_echo "$USE_NLS" >&6; }
5682 # Prepare PATH_SEPARATOR.
5683 # The user is always right.
5684 if test "${PATH_SEPARATOR+set}" != set; then
5685 echo "#! /bin/sh" >conf$$.sh
5686 echo "exit 0" >>conf$$.sh
5688 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5696 # Find out how to test for executable files. Don't use a zero-byte file,
5697 # as systems may use methods other than mode bits to determine executability.
5698 cat >conf$$.file <<_ASEOF
5702 chmod +x conf$$.file
5703 if test -x conf$$.file >/dev/null 2>&1; then
5704 ac_executable_p="test -x"
5706 ac_executable_p="test -f"
5710 # Extract the first word of "msgfmt", so it can be a program name with args.
5711 set dummy msgfmt; ac_word=$2
5712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5713 $as_echo_n "checking for $ac_word... " >&6; }
5714 if test "${ac_cv_path_MSGFMT+set}" = set; then :
5715 $as_echo_n "(cached) " >&6
5719 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5722 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5723 for ac_dir in $PATH; do
5725 test -z "$ac_dir" && ac_dir=.
5726 for ac_exec_ext in '' $ac_executable_extensions; do
5727 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5728 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
5729 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5730 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
5737 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
5741 MSGFMT="$ac_cv_path_MSGFMT"
5742 if test "$MSGFMT" != ":"; then
5743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
5744 $as_echo "$MSGFMT" >&6; }
5746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5747 $as_echo "no" >&6; }
5750 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5751 set dummy gmsgfmt; ac_word=$2
5752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5753 $as_echo_n "checking for $ac_word... " >&6; }
5754 if test "${ac_cv_path_GMSGFMT+set}" = set; then :
5755 $as_echo_n "(cached) " >&6
5759 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5766 test -z "$as_dir" && as_dir=.
5767 for ac_exec_ext in '' $ac_executable_extensions; do
5768 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5769 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5777 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5781 GMSGFMT=$ac_cv_path_GMSGFMT
5782 if test -n "$GMSGFMT"; then
5783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
5784 $as_echo "$GMSGFMT" >&6; }
5786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5787 $as_echo "no" >&6; }
5793 # Prepare PATH_SEPARATOR.
5794 # The user is always right.
5795 if test "${PATH_SEPARATOR+set}" != set; then
5796 echo "#! /bin/sh" >conf$$.sh
5797 echo "exit 0" >>conf$$.sh
5799 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5807 # Find out how to test for executable files. Don't use a zero-byte file,
5808 # as systems may use methods other than mode bits to determine executability.
5809 cat >conf$$.file <<_ASEOF
5813 chmod +x conf$$.file
5814 if test -x conf$$.file >/dev/null 2>&1; then
5815 ac_executable_p="test -x"
5817 ac_executable_p="test -f"
5821 # Extract the first word of "xgettext", so it can be a program name with args.
5822 set dummy xgettext; ac_word=$2
5823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5824 $as_echo_n "checking for $ac_word... " >&6; }
5825 if test "${ac_cv_path_XGETTEXT+set}" = set; then :
5826 $as_echo_n "(cached) " >&6
5830 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5833 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5834 for ac_dir in $PATH; do
5836 test -z "$ac_dir" && ac_dir=.
5837 for ac_exec_ext in '' $ac_executable_extensions; do
5838 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5839 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
5840 (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
5841 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
5848 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5852 XGETTEXT="$ac_cv_path_XGETTEXT"
5853 if test "$XGETTEXT" != ":"; then
5854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
5855 $as_echo "$XGETTEXT" >&6; }
5857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5858 $as_echo "no" >&6; }
5864 # Prepare PATH_SEPARATOR.
5865 # The user is always right.
5866 if test "${PATH_SEPARATOR+set}" != set; then
5867 echo "#! /bin/sh" >conf$$.sh
5868 echo "exit 0" >>conf$$.sh
5870 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5878 # Find out how to test for executable files. Don't use a zero-byte file,
5879 # as systems may use methods other than mode bits to determine executability.
5880 cat >conf$$.file <<_ASEOF
5884 chmod +x conf$$.file
5885 if test -x conf$$.file >/dev/null 2>&1; then
5886 ac_executable_p="test -x"
5888 ac_executable_p="test -f"
5892 # Extract the first word of "msgmerge", so it can be a program name with args.
5893 set dummy msgmerge; ac_word=$2
5894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5895 $as_echo_n "checking for $ac_word... " >&6; }
5896 if test "${ac_cv_path_MSGMERGE+set}" = set; then :
5897 $as_echo_n "(cached) " >&6
5901 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
5904 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5905 for ac_dir in $PATH; do
5907 test -z "$ac_dir" && ac_dir=.
5908 for ac_exec_ext in '' $ac_executable_extensions; do
5909 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5910 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
5911 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
5918 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
5922 MSGMERGE="$ac_cv_path_MSGMERGE"
5923 if test "$MSGMERGE" != ":"; then
5924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
5925 $as_echo "$MSGMERGE" >&6; }
5927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5928 $as_echo "no" >&6; }
5932 if test "$GMSGFMT" != ":"; then
5933 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
5934 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5937 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
5938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
5939 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
5944 if test "$XGETTEXT" != ":"; then
5945 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
5946 (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
5949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
5950 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
5956 ac_config_commands="$ac_config_commands default-1"
5959 if test -n "$ac_tool_prefix"; then
5960 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5961 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5963 $as_echo_n "checking for $ac_word... " >&6; }
5964 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5965 $as_echo_n "(cached) " >&6
5967 if test -n "$RANLIB"; then
5968 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5974 test -z "$as_dir" && as_dir=.
5975 for ac_exec_ext in '' $ac_executable_extensions; do
5976 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5977 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5987 RANLIB=$ac_cv_prog_RANLIB
5988 if test -n "$RANLIB"; then
5989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5990 $as_echo "$RANLIB" >&6; }
5992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5993 $as_echo "no" >&6; }
5998 if test -z "$ac_cv_prog_RANLIB"; then
5999 ac_ct_RANLIB=$RANLIB
6000 # Extract the first word of "ranlib", so it can be a program name with args.
6001 set dummy ranlib; ac_word=$2
6002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6003 $as_echo_n "checking for $ac_word... " >&6; }
6004 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6005 $as_echo_n "(cached) " >&6
6007 if test -n "$ac_ct_RANLIB"; then
6008 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6014 test -z "$as_dir" && as_dir=.
6015 for ac_exec_ext in '' $ac_executable_extensions; do
6016 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6017 ac_cv_prog_ac_ct_RANLIB="ranlib"
6018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6027 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6028 if test -n "$ac_ct_RANLIB"; then
6029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6030 $as_echo "$ac_ct_RANLIB" >&6; }
6032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6033 $as_echo "no" >&6; }
6036 if test "x$ac_ct_RANLIB" = x; then
6039 case $cross_compiling:$ac_tool_warned in
6041 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6042 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6043 ac_tool_warned=yes ;;
6045 RANLIB=$ac_ct_RANLIB
6048 RANLIB="$ac_cv_prog_RANLIB"
6052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror in -lcposix" >&5
6053 $as_echo_n "checking for strerror in -lcposix... " >&6; }
6054 if test "${ac_cv_lib_cposix_strerror+set}" = set; then :
6055 $as_echo_n "(cached) " >&6
6057 ac_check_lib_save_LIBS=$LIBS
6058 LIBS="-lcposix $LIBS"
6059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6060 /* end confdefs.h. */
6062 /* Override any GCC internal prototype to avoid an error.
6063 Use char because int might match the return type of a GCC
6064 builtin and then its argument prototype would still apply. */
6077 if ac_fn_c_try_link "$LINENO"; then :
6078 ac_cv_lib_cposix_strerror=yes
6080 ac_cv_lib_cposix_strerror=no
6082 rm -f core conftest.err conftest.$ac_objext \
6083 conftest$ac_exeext conftest.$ac_ext
6084 LIBS=$ac_check_lib_save_LIBS
6086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cposix_strerror" >&5
6087 $as_echo "$ac_cv_lib_cposix_strerror" >&6; }
6088 if test "x$ac_cv_lib_cposix_strerror" = x""yes; then :
6089 LIBS="$LIBS -lcposix"
6095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6096 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6097 if test "${ac_cv_path_GREP+set}" = set; then :
6098 $as_echo_n "(cached) " >&6
6100 if test -z "$GREP"; then
6101 ac_path_GREP_found=false
6102 # Loop through the user's path and test for each of PROGNAME-LIST
6103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6104 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6107 test -z "$as_dir" && as_dir=.
6108 for ac_prog in grep ggrep; do
6109 for ac_exec_ext in '' $ac_executable_extensions; do
6110 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6111 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
6112 # Check for GNU ac_path_GREP and select it if it is found.
6113 # Check for GNU $ac_path_GREP
6114 case `"$ac_path_GREP" --version 2>&1` in
6116 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6119 $as_echo_n 0123456789 >"conftest.in"
6122 cat "conftest.in" "conftest.in" >"conftest.tmp"
6123 mv "conftest.tmp" "conftest.in"
6124 cp "conftest.in" "conftest.nl"
6125 $as_echo 'GREP' >> "conftest.nl"
6126 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6127 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6128 as_fn_arith $ac_count + 1 && ac_count=$as_val
6129 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6130 # Best one so far, save it but keep looking for a better one
6131 ac_cv_path_GREP="$ac_path_GREP"
6132 ac_path_GREP_max=$ac_count
6134 # 10*(2^10) chars as input seems more than enough
6135 test $ac_count -gt 10 && break
6137 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6140 $ac_path_GREP_found && break 3
6145 if test -z "$ac_cv_path_GREP"; then
6146 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6149 ac_cv_path_GREP=$GREP
6153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6154 $as_echo "$ac_cv_path_GREP" >&6; }
6155 GREP="$ac_cv_path_GREP"
6158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6159 $as_echo_n "checking for egrep... " >&6; }
6160 if test "${ac_cv_path_EGREP+set}" = set; then :
6161 $as_echo_n "(cached) " >&6
6163 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6164 then ac_cv_path_EGREP="$GREP -E"
6166 if test -z "$EGREP"; then
6167 ac_path_EGREP_found=false
6168 # Loop through the user's path and test for each of PROGNAME-LIST
6169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6170 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6173 test -z "$as_dir" && as_dir=.
6174 for ac_prog in egrep; do
6175 for ac_exec_ext in '' $ac_executable_extensions; do
6176 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6177 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6178 # Check for GNU ac_path_EGREP and select it if it is found.
6179 # Check for GNU $ac_path_EGREP
6180 case `"$ac_path_EGREP" --version 2>&1` in
6182 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6185 $as_echo_n 0123456789 >"conftest.in"
6188 cat "conftest.in" "conftest.in" >"conftest.tmp"
6189 mv "conftest.tmp" "conftest.in"
6190 cp "conftest.in" "conftest.nl"
6191 $as_echo 'EGREP' >> "conftest.nl"
6192 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6193 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6194 as_fn_arith $ac_count + 1 && ac_count=$as_val
6195 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6196 # Best one so far, save it but keep looking for a better one
6197 ac_cv_path_EGREP="$ac_path_EGREP"
6198 ac_path_EGREP_max=$ac_count
6200 # 10*(2^10) chars as input seems more than enough
6201 test $ac_count -gt 10 && break
6203 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6206 $ac_path_EGREP_found && break 3
6211 if test -z "$ac_cv_path_EGREP"; then
6212 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6215 ac_cv_path_EGREP=$EGREP
6220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6221 $as_echo "$ac_cv_path_EGREP" >&6; }
6222 EGREP="$ac_cv_path_EGREP"
6225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6226 $as_echo_n "checking for ANSI C header files... " >&6; }
6227 if test "${ac_cv_header_stdc+set}" = set; then :
6228 $as_echo_n "(cached) " >&6
6230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6231 /* end confdefs.h. */
6245 if ac_fn_c_try_compile "$LINENO"; then :
6246 ac_cv_header_stdc=yes
6248 ac_cv_header_stdc=no
6250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6252 if test $ac_cv_header_stdc = yes; then
6253 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6255 /* end confdefs.h. */
6259 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6260 $EGREP "memchr" >/dev/null 2>&1; then :
6263 ac_cv_header_stdc=no
6269 if test $ac_cv_header_stdc = yes; then
6270 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6272 /* end confdefs.h. */
6276 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6277 $EGREP "free" >/dev/null 2>&1; then :
6280 ac_cv_header_stdc=no
6286 if test $ac_cv_header_stdc = yes; then
6287 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6288 if test "$cross_compiling" = yes; then :
6291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6292 /* end confdefs.h. */
6295 #if ((' ' & 0x0FF) == 0x020)
6296 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6297 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6299 # define ISLOWER(c) \
6300 (('a' <= (c) && (c) <= 'i') \
6301 || ('j' <= (c) && (c) <= 'r') \
6302 || ('s' <= (c) && (c) <= 'z'))
6303 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6306 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6311 for (i = 0; i < 256; i++)
6312 if (XOR (islower (i), ISLOWER (i))
6313 || toupper (i) != TOUPPER (i))
6318 if ac_fn_c_try_run "$LINENO"; then :
6321 ac_cv_header_stdc=no
6323 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6324 conftest.$ac_objext conftest.beam conftest.$ac_ext
6329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6330 $as_echo "$ac_cv_header_stdc" >&6; }
6331 if test $ac_cv_header_stdc = yes; then
6333 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
6338 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
6339 if test "${ac_cv_c_const+set}" = set; then :
6340 $as_echo_n "(cached) " >&6
6342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6343 /* end confdefs.h. */
6348 /* FIXME: Include the comments suggested by Paul. */
6350 /* Ultrix mips cc rejects this. */
6351 typedef int charset[2];
6353 /* SunOS 4.1.1 cc rejects this. */
6354 char const *const *pcpcc;
6356 /* NEC SVR4.0.2 mips cc rejects this. */
6357 struct point {int x, y;};
6358 static struct point const zero = {0,0};
6359 /* AIX XL C 1.02.0.0 rejects this.
6360 It does not let you subtract one const X* pointer from another in
6361 an arm of an if-expression whose if-part is not a constant
6363 const char *g = "string";
6364 pcpcc = &g + (g ? g-g : 0);
6365 /* HPUX 7.0 cc rejects these. */
6367 ppc = (char**) pcpcc;
6368 pcpcc = (char const *const *) ppc;
6369 { /* SCO 3.2v4 cc rejects this. */
6371 char const *s = 0 ? (char *) 0 : (char const *) 0;
6376 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6378 const int *foo = &x[0];
6381 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6382 typedef const int *iptr;
6386 { /* AIX XL C 1.02.0.0 rejects this saying
6387 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6388 struct s { int j; const int *ap[3]; };
6389 struct s *b; b->j = 5;
6391 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6395 return !cs[0] && !zero.x;
6402 if ac_fn_c_try_compile "$LINENO"; then :
6407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
6410 $as_echo "$ac_cv_c_const" >&6; }
6411 if test $ac_cv_c_const = no; then
6413 $as_echo "#define const /**/" >>confdefs.h
6418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed" >&5
6419 $as_echo_n "checking for signed... " >&6; }
6420 if test "${bh_cv_c_signed+set}" = set; then :
6421 $as_echo_n "(cached) " >&6
6423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6424 /* end confdefs.h. */
6434 if ac_fn_c_try_compile "$LINENO"; then :
6439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bh_cv_c_signed" >&5
6442 $as_echo "$bh_cv_c_signed" >&6; }
6443 if test $bh_cv_c_signed = no; then
6445 $as_echo "#define signed /**/" >>confdefs.h
6449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
6450 $as_echo_n "checking for inline... " >&6; }
6451 if test "${ac_cv_c_inline+set}" = set; then :
6452 $as_echo_n "(cached) " >&6
6455 for ac_kw in inline __inline__ __inline; do
6456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6457 /* end confdefs.h. */
6460 static $ac_kw foo_t static_foo () {return 0; }
6461 $ac_kw foo_t foo () {return 0; }
6465 if ac_fn_c_try_compile "$LINENO"; then :
6466 ac_cv_c_inline=$ac_kw
6468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6469 test "$ac_cv_c_inline" != no && break
6473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
6474 $as_echo "$ac_cv_c_inline" >&6; }
6476 case $ac_cv_c_inline in
6479 case $ac_cv_c_inline in
6481 *) ac_val=$ac_cv_c_inline;;
6483 cat >>confdefs.h <<_ACEOF
6485 #define inline $ac_val
6491 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6492 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6493 inttypes.h stdint.h unistd.h
6495 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6496 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6498 eval as_val=\$$as_ac_Header
6499 if test "x$as_val" = x""yes; then :
6500 cat >>confdefs.h <<_ACEOF
6501 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6509 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
6510 if test "x$ac_cv_type_off_t" = x""yes; then :
6514 cat >>confdefs.h <<_ACEOF
6515 #define off_t long int
6520 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6521 if test "x$ac_cv_type_size_t" = x""yes; then :
6525 cat >>confdefs.h <<_ACEOF
6526 #define size_t unsigned int
6532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long" >&5
6533 $as_echo_n "checking for long long... " >&6; }
6534 if test "${ac_cv_type_long_long+set}" = set; then :
6535 $as_echo_n "(cached) " >&6
6537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6538 /* end confdefs.h. */
6539 long long ll = 1LL; int i = 63;
6543 long long llmax = (long long) -1;
6544 return ll << i | ll >> i | llmax / ll | llmax % ll;
6549 if ac_fn_c_try_link "$LINENO"; then :
6550 ac_cv_type_long_long=yes
6552 ac_cv_type_long_long=no
6554 rm -f core conftest.err conftest.$ac_objext \
6555 conftest$ac_exeext conftest.$ac_ext
6557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long" >&5
6558 $as_echo "$ac_cv_type_long_long" >&6; }
6559 if test $ac_cv_type_long_long = yes; then
6561 $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
6566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
6567 $as_echo_n "checking for long double... " >&6; }
6568 if test "${gt_cv_c_long_double+set}" = set; then :
6569 $as_echo_n "(cached) " >&6
6571 if test "$GCC" = yes; then
6572 gt_cv_c_long_double=yes
6574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6575 /* end confdefs.h. */
6577 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
6578 long double foo = 0.0;
6579 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
6580 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
6590 if ac_fn_c_try_compile "$LINENO"; then :
6591 gt_cv_c_long_double=yes
6593 gt_cv_c_long_double=no
6595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_long_double" >&5
6599 $as_echo "$gt_cv_c_long_double" >&6; }
6600 if test $gt_cv_c_long_double = yes; then
6602 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
6607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
6608 $as_echo_n "checking for wchar_t... " >&6; }
6609 if test "${gt_cv_c_wchar_t+set}" = set; then :
6610 $as_echo_n "(cached) " >&6
6612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6613 /* end confdefs.h. */
6615 wchar_t foo = (wchar_t)'\0';
6624 if ac_fn_c_try_compile "$LINENO"; then :
6629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
6632 $as_echo "$gt_cv_c_wchar_t" >&6; }
6633 if test $gt_cv_c_wchar_t = yes; then
6635 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
6640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
6641 $as_echo_n "checking for wint_t... " >&6; }
6642 if test "${gt_cv_c_wint_t+set}" = set; then :
6643 $as_echo_n "(cached) " >&6
6645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6646 /* end confdefs.h. */
6648 wint_t foo = (wchar_t)'\0';
6657 if ac_fn_c_try_compile "$LINENO"; then :
6662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
6665 $as_echo "$gt_cv_c_wint_t" >&6; }
6666 if test $gt_cv_c_wint_t = yes; then
6668 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
6673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
6674 $as_echo_n "checking for inttypes.h... " >&6; }
6675 if test "${jm_ac_cv_header_inttypes_h+set}" = set; then :
6676 $as_echo_n "(cached) " >&6
6678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6679 /* end confdefs.h. */
6680 #include <sys/types.h>
6681 #include <inttypes.h>
6685 uintmax_t i = (uintmax_t) -1;
6690 if ac_fn_c_try_compile "$LINENO"; then :
6691 jm_ac_cv_header_inttypes_h=yes
6693 jm_ac_cv_header_inttypes_h=no
6695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_inttypes_h" >&5
6698 $as_echo "$jm_ac_cv_header_inttypes_h" >&6; }
6699 if test $jm_ac_cv_header_inttypes_h = yes; then
6701 cat >>confdefs.h <<_ACEOF
6702 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
6708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
6709 $as_echo_n "checking for stdint.h... " >&6; }
6710 if test "${jm_ac_cv_header_stdint_h+set}" = set; then :
6711 $as_echo_n "(cached) " >&6
6713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6714 /* end confdefs.h. */
6715 #include <sys/types.h>
6720 uintmax_t i = (uintmax_t) -1;
6725 if ac_fn_c_try_compile "$LINENO"; then :
6726 jm_ac_cv_header_stdint_h=yes
6728 jm_ac_cv_header_stdint_h=no
6730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_stdint_h" >&5
6733 $as_echo "$jm_ac_cv_header_stdint_h" >&6; }
6734 if test $jm_ac_cv_header_stdint_h = yes; then
6736 cat >>confdefs.h <<_ACEOF
6737 #define HAVE_STDINT_H_WITH_UINTMAX 1
6745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
6746 $as_echo_n "checking for intmax_t... " >&6; }
6747 if test "${gt_cv_c_intmax_t+set}" = set; then :
6748 $as_echo_n "(cached) " >&6
6750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6751 /* end confdefs.h. */
6755 #if HAVE_STDINT_H_WITH_UINTMAX
6758 #if HAVE_INTTYPES_H_WITH_UINTMAX
6759 #include <inttypes.h>
6770 if ac_fn_c_try_compile "$LINENO"; then :
6771 gt_cv_c_intmax_t=yes
6775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
6778 $as_echo "$gt_cv_c_intmax_t" >&6; }
6779 if test $gt_cv_c_intmax_t = yes; then
6781 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
6788 $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
6789 if test "${gt_cv_func_printf_posix+set}" = set; then :
6790 $as_echo_n "(cached) " >&6
6793 if test "$cross_compiling" = yes; then :
6795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6796 /* end confdefs.h. */
6798 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
6803 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6804 $EGREP "notposix" >/dev/null 2>&1; then :
6805 gt_cv_func_printf_posix="guessing no"
6807 gt_cv_func_printf_posix="guessing yes"
6813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6814 /* end confdefs.h. */
6818 /* The string "%2$d %1$d", with dollar characters protected from the shell's
6819 dollar expansion (possibly an autoconf bug). */
6820 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
6821 static char buf[100];
6824 sprintf (buf, format, 33, 55);
6825 return (strcmp (buf, "55 33") != 0);
6828 if ac_fn_c_try_run "$LINENO"; then :
6829 gt_cv_func_printf_posix=yes
6831 gt_cv_func_printf_posix=no
6833 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6834 conftest.$ac_objext conftest.beam conftest.$ac_ext
6839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
6840 $as_echo "$gt_cv_func_printf_posix" >&6; }
6841 case $gt_cv_func_printf_posix in
6844 $as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
6849 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6850 # for constant arguments. Useless!
6851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
6852 $as_echo_n "checking for working alloca.h... " >&6; }
6853 if test "${ac_cv_working_alloca_h+set}" = set; then :
6854 $as_echo_n "(cached) " >&6
6856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6857 /* end confdefs.h. */
6862 char *p = (char *) alloca (2 * sizeof (int));
6868 if ac_fn_c_try_link "$LINENO"; then :
6869 ac_cv_working_alloca_h=yes
6871 ac_cv_working_alloca_h=no
6873 rm -f core conftest.err conftest.$ac_objext \
6874 conftest$ac_exeext conftest.$ac_ext
6876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
6877 $as_echo "$ac_cv_working_alloca_h" >&6; }
6878 if test $ac_cv_working_alloca_h = yes; then
6880 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
6884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
6885 $as_echo_n "checking for alloca... " >&6; }
6886 if test "${ac_cv_func_alloca_works+set}" = set; then :
6887 $as_echo_n "(cached) " >&6
6889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6890 /* end confdefs.h. */
6892 # define alloca __builtin_alloca
6895 # include <malloc.h>
6896 # define alloca _alloca
6898 # ifdef HAVE_ALLOCA_H
6899 # include <alloca.h>
6904 # ifndef alloca /* predefined by HP cc +Olibcalls */
6915 char *p = (char *) alloca (1);
6921 if ac_fn_c_try_link "$LINENO"; then :
6922 ac_cv_func_alloca_works=yes
6924 ac_cv_func_alloca_works=no
6926 rm -f core conftest.err conftest.$ac_objext \
6927 conftest$ac_exeext conftest.$ac_ext
6929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
6930 $as_echo "$ac_cv_func_alloca_works" >&6; }
6932 if test $ac_cv_func_alloca_works = yes; then
6934 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
6937 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6938 # that cause trouble. Some versions do not even contain alloca or
6939 # contain a buggy version. If you still want to use their alloca,
6940 # use ar to extract alloca.o from them instead of compiling alloca.c.
6942 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
6944 $as_echo "#define C_ALLOCA 1" >>confdefs.h
6947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
6948 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
6949 if test "${ac_cv_os_cray+set}" = set; then :
6950 $as_echo_n "(cached) " >&6
6952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6953 /* end confdefs.h. */
6954 #if defined CRAY && ! defined CRAY2
6961 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6962 $EGREP "webecray" >/dev/null 2>&1; then :
6970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
6971 $as_echo "$ac_cv_os_cray" >&6; }
6972 if test $ac_cv_os_cray = yes; then
6973 for ac_func in _getb67 GETB67 getb67; do
6974 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6975 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6976 eval as_val=\$$as_ac_var
6977 if test "x$as_val" = x""yes; then :
6979 cat >>confdefs.h <<_ACEOF
6980 #define CRAY_STACKSEG_END $ac_func
6989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
6990 $as_echo_n "checking stack direction for C alloca... " >&6; }
6991 if test "${ac_cv_c_stack_direction+set}" = set; then :
6992 $as_echo_n "(cached) " >&6
6994 if test "$cross_compiling" = yes; then :
6995 ac_cv_c_stack_direction=0
6997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6998 /* end confdefs.h. */
6999 $ac_includes_default
7001 find_stack_direction ()
7003 static char *addr = 0;
7008 return find_stack_direction ();
7011 return (&dummy > addr) ? 1 : -1;
7017 return find_stack_direction () < 0;
7020 if ac_fn_c_try_run "$LINENO"; then :
7021 ac_cv_c_stack_direction=1
7023 ac_cv_c_stack_direction=-1
7025 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7026 conftest.$ac_objext conftest.beam conftest.$ac_ext
7030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
7031 $as_echo "$ac_cv_c_stack_direction" >&6; }
7032 cat >>confdefs.h <<_ACEOF
7033 #define STACK_DIRECTION $ac_cv_c_stack_direction
7042 for ac_header in $ac_header_list
7044 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7045 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7047 eval as_val=\$$as_ac_Header
7048 if test "x$as_val" = x""yes; then :
7049 cat >>confdefs.h <<_ACEOF
7050 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7064 for ac_func in getpagesize
7066 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
7067 if test "x$ac_cv_func_getpagesize" = x""yes; then :
7068 cat >>confdefs.h <<_ACEOF
7069 #define HAVE_GETPAGESIZE 1
7075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
7076 $as_echo_n "checking for working mmap... " >&6; }
7077 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
7078 $as_echo_n "(cached) " >&6
7080 if test "$cross_compiling" = yes; then :
7081 ac_cv_func_mmap_fixed_mapped=no
7083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7084 /* end confdefs.h. */
7085 $ac_includes_default
7086 /* malloc might have been renamed as rpl_malloc. */
7089 /* Thanks to Mike Haertel and Jim Avera for this test.
7090 Here is a matrix of mmap possibilities:
7091 mmap private not fixed
7092 mmap private fixed at somewhere currently unmapped
7093 mmap private fixed at somewhere already mapped
7094 mmap shared not fixed
7095 mmap shared fixed at somewhere currently unmapped
7096 mmap shared fixed at somewhere already mapped
7097 For private mappings, we should verify that changes cannot be read()
7098 back from the file, nor mmap's back from the file at a different
7099 address. (There have been systems where private was not correctly
7100 implemented like the infamous i386 svr4.0, and systems where the
7101 VM page cache was not coherent with the file system buffer cache
7102 like early versions of FreeBSD and possibly contemporary NetBSD.)
7103 For shared mappings, we should conversely verify that changes get
7104 propagated back to all the places they're supposed to be.
7106 Grep wants private fixed already mapped.
7107 The main things grep needs to know about mmap are:
7108 * does it exist and is it safe to write into the mmap'd area
7109 * how to use it (BSD variants) */
7112 #include <sys/mman.h>
7114 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7118 /* This mess was copied from the GNU getpagesize.h. */
7119 #ifndef HAVE_GETPAGESIZE
7120 # ifdef _SC_PAGESIZE
7121 # define getpagesize() sysconf(_SC_PAGESIZE)
7122 # else /* no _SC_PAGESIZE */
7123 # ifdef HAVE_SYS_PARAM_H
7124 # include <sys/param.h>
7125 # ifdef EXEC_PAGESIZE
7126 # define getpagesize() EXEC_PAGESIZE
7127 # else /* no EXEC_PAGESIZE */
7129 # define getpagesize() NBPG * CLSIZE
7132 # endif /* no CLSIZE */
7133 # else /* no NBPG */
7135 # define getpagesize() NBPC
7136 # else /* no NBPC */
7138 # define getpagesize() PAGESIZE
7139 # endif /* PAGESIZE */
7140 # endif /* no NBPC */
7141 # endif /* no NBPG */
7142 # endif /* no EXEC_PAGESIZE */
7143 # else /* no HAVE_SYS_PARAM_H */
7144 # define getpagesize() 8192 /* punt totally */
7145 # endif /* no HAVE_SYS_PARAM_H */
7146 # endif /* no _SC_PAGESIZE */
7148 #endif /* no HAVE_GETPAGESIZE */
7153 char *data, *data2, *data3;
7158 pagesize = getpagesize ();
7160 /* First, make a file with some known garbage in it. */
7161 data = (char *) malloc (pagesize);
7164 for (i = 0; i < pagesize; ++i)
7165 *(data + i) = rand ();
7167 fd = creat ("conftest.mmap", 0600);
7170 if (write (fd, data, pagesize) != pagesize)
7174 /* Next, check that the tail of a page is zero-filled. File must have
7175 non-zero length, otherwise we risk SIGBUS for entire page. */
7176 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7180 if (write (fd2, cdata2, 1) != 1)
7182 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7183 if (data2 == MAP_FAILED)
7185 for (i = 0; i < pagesize; ++i)
7189 if (munmap (data2, pagesize))
7192 /* Next, try to mmap the file at a fixed address which already has
7193 something else allocated at it. If we can, also make sure that
7194 we see the same garbage. */
7195 fd = open ("conftest.mmap", O_RDWR);
7198 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7199 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7201 for (i = 0; i < pagesize; ++i)
7202 if (*(data + i) != *(data2 + i))
7205 /* Finally, make sure that changes to the mapped area do not
7206 percolate back to the file as seen by read(). (This is a bug on
7207 some variants of i386 svr4.0.) */
7208 for (i = 0; i < pagesize; ++i)
7209 *(data2 + i) = *(data2 + i) + 1;
7210 data3 = (char *) malloc (pagesize);
7213 if (read (fd, data3, pagesize) != pagesize)
7215 for (i = 0; i < pagesize; ++i)
7216 if (*(data + i) != *(data3 + i))
7222 if ac_fn_c_try_run "$LINENO"; then :
7223 ac_cv_func_mmap_fixed_mapped=yes
7225 ac_cv_func_mmap_fixed_mapped=no
7227 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7228 conftest.$ac_objext conftest.beam conftest.$ac_ext
7232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
7233 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
7234 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7236 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
7239 rm -f conftest.mmap conftest.txt
7242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
7243 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
7244 if test "${ac_cv_gnu_library_2_1+set}" = set; then :
7245 $as_echo_n "(cached) " >&6
7247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7248 /* end confdefs.h. */
7250 #include <features.h>
7251 #ifdef __GNU_LIBRARY__
7252 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
7258 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7259 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
7260 ac_cv_gnu_library_2_1=yes
7262 ac_cv_gnu_library_2_1=no
7269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
7270 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
7272 GLIBC21="$ac_cv_gnu_library_2_1"
7277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
7278 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
7279 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then :
7280 $as_echo_n "(cached) " >&6
7283 if test "$cross_compiling" = yes; then :
7285 # Guess based on the CPU.
7287 alpha* | i3456786 | m68k | s390*)
7288 gt_cv_int_divbyzero_sigfpe="guessing yes";;
7290 gt_cv_int_divbyzero_sigfpe="guessing no";;
7294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7295 /* end confdefs.h. */
7302 sigfpe_handler (int sig)
7304 sigfpe_handler (sig) int sig;
7307 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
7308 exit (sig != SIGFPE);
7318 signal (SIGFPE, sigfpe_handler);
7319 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
7320 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
7321 signal (SIGTRAP, sigfpe_handler);
7323 /* Linux/SPARC yields signal SIGILL. */
7324 #if defined (__sparc__) && defined (__linux__)
7325 signal (SIGILL, sigfpe_handler);
7334 if ac_fn_c_try_run "$LINENO"; then :
7335 gt_cv_int_divbyzero_sigfpe=yes
7337 gt_cv_int_divbyzero_sigfpe=no
7339 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7340 conftest.$ac_objext conftest.beam conftest.$ac_ext
7345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
7346 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
7347 case "$gt_cv_int_divbyzero_sigfpe" in
7352 cat >>confdefs.h <<_ACEOF
7353 #define INTDIV0_RAISES_SIGFPE $value
7358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long" >&5
7359 $as_echo_n "checking for unsigned long long... " >&6; }
7360 if test "${ac_cv_type_unsigned_long_long+set}" = set; then :
7361 $as_echo_n "(cached) " >&6
7363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7364 /* end confdefs.h. */
7365 unsigned long long ull = 1ULL; int i = 63;
7369 unsigned long long ullmax = (unsigned long long) -1;
7370 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
7375 if ac_fn_c_try_link "$LINENO"; then :
7376 ac_cv_type_unsigned_long_long=yes
7378 ac_cv_type_unsigned_long_long=no
7380 rm -f core conftest.err conftest.$ac_objext \
7381 conftest$ac_exeext conftest.$ac_ext
7383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long" >&5
7384 $as_echo "$ac_cv_type_unsigned_long_long" >&6; }
7385 if test $ac_cv_type_unsigned_long_long = yes; then
7387 $as_echo "#define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h
7394 if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
7396 test $ac_cv_type_unsigned_long_long = yes \
7397 && ac_type='unsigned long long' \
7398 || ac_type='unsigned long'
7400 cat >>confdefs.h <<_ACEOF
7401 #define uintmax_t $ac_type
7406 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
7411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
7412 $as_echo_n "checking for inttypes.h... " >&6; }
7413 if test "${gt_cv_header_inttypes_h+set}" = set; then :
7414 $as_echo_n "(cached) " >&6
7417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7418 /* end confdefs.h. */
7419 #include <sys/types.h>
7420 #include <inttypes.h>
7429 if ac_fn_c_try_compile "$LINENO"; then :
7430 gt_cv_header_inttypes_h=yes
7432 gt_cv_header_inttypes_h=no
7434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_header_inttypes_h" >&5
7438 $as_echo "$gt_cv_header_inttypes_h" >&6; }
7439 if test $gt_cv_header_inttypes_h = yes; then
7441 cat >>confdefs.h <<_ACEOF
7442 #define HAVE_INTTYPES_H 1
7449 if test $gt_cv_header_inttypes_h = yes; then
7450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
7451 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
7452 if test "${gt_cv_inttypes_pri_broken+set}" = set; then :
7453 $as_echo_n "(cached) " >&6
7456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7457 /* end confdefs.h. */
7458 #include <inttypes.h>
7471 if ac_fn_c_try_compile "$LINENO"; then :
7472 gt_cv_inttypes_pri_broken=no
7474 gt_cv_inttypes_pri_broken=yes
7476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
7480 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
7482 if test "$gt_cv_inttypes_pri_broken" = yes; then
7484 cat >>confdefs.h <<_ACEOF
7485 #define PRI_MACROS_BROKEN 1
7491 for ac_header in stdint.h
7493 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
7494 if test "x$ac_cv_header_stdint_h" = x""yes; then :
7495 cat >>confdefs.h <<_ACEOF
7496 #define HAVE_STDINT_H 1
7503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
7504 $as_echo_n "checking for SIZE_MAX... " >&6; }
7506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7507 /* end confdefs.h. */
7518 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7519 $EGREP "Found it" >/dev/null 2>&1; then :
7524 if test -z "$result"; then
7525 if ac_fn_c_compute_int "$LINENO" "~(size_t)0 / 10" "res_hi" "#include <stddef.h>"; then :
7532 if ac_fn_c_compute_int "$LINENO" "~(size_t)0 % 10" "res_lo" "#include <stddef.h>"; then :
7539 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then :
7546 if test "$fits_in_uint" = 1; then
7547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7548 /* end confdefs.h. */
7551 extern unsigned long foo;
7561 if ac_fn_c_try_compile "$LINENO"; then :
7564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7566 if test -z "$result"; then
7567 if test "$fits_in_uint" = 1; then
7568 result="$res_hi$res_lo"U
7570 result="$res_hi$res_lo"UL
7576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
7577 $as_echo "$result" >&6; }
7578 if test "$result" != yes; then
7580 cat >>confdefs.h <<_ACEOF
7581 #define SIZE_MAX $result
7588 for ac_header in stdint.h
7590 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
7591 if test "x$ac_cv_header_stdint_h" = x""yes; then :
7592 cat >>confdefs.h <<_ACEOF
7593 #define HAVE_STDINT_H 1
7602 if test "X$prefix" = "XNONE"; then
7603 acl_final_prefix="$ac_default_prefix"
7605 acl_final_prefix="$prefix"
7607 if test "X$exec_prefix" = "XNONE"; then
7608 acl_final_exec_prefix='${prefix}'
7610 acl_final_exec_prefix="$exec_prefix"
7612 acl_save_prefix="$prefix"
7613 prefix="$acl_final_prefix"
7614 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7615 prefix="$acl_save_prefix"
7618 # Check whether --with-gnu-ld was given.
7619 if test "${with_gnu_ld+set}" = set; then :
7620 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7625 # Prepare PATH_SEPARATOR.
7626 # The user is always right.
7627 if test "${PATH_SEPARATOR+set}" != set; then
7628 echo "#! /bin/sh" >conf$$.sh
7629 echo "exit 0" >>conf$$.sh
7631 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7639 if test "$GCC" = yes; then
7640 # Check if gcc -print-prog-name=ld gives a path.
7641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
7642 $as_echo_n "checking for ld used by GCC... " >&6; }
7645 # gcc leaves a trailing carriage return which upsets mingw
7646 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7648 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7651 # Accept absolute paths.
7652 [\\/]* | [A-Za-z]:[\\/]*)
7653 re_direlt='/[^/][^/]*/\.\./'
7654 # Canonicalize the path of ld
7655 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
7656 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
7657 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
7659 test -z "$LD" && LD="$ac_prog"
7662 # If it fails, then pretend we aren't using GCC.
7666 # If it is relative, then search for the first ld in PATH.
7670 elif test "$with_gnu_ld" = yes; then
7671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7672 $as_echo_n "checking for GNU ld... " >&6; }
7674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7675 $as_echo_n "checking for non-GNU ld... " >&6; }
7677 if test "${acl_cv_path_LD+set}" = set; then :
7678 $as_echo_n "(cached) " >&6
7680 if test -z "$LD"; then
7681 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
7682 for ac_dir in $PATH; do
7683 test -z "$ac_dir" && ac_dir=.
7684 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7685 acl_cv_path_LD="$ac_dir/$ac_prog"
7686 # Check to see if the program is GNU ld. I'd rather use --version,
7687 # but apparently some GNU ld's only accept -v.
7688 # Break only if it was the GNU/non-GNU ld that we prefer.
7689 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
7690 *GNU* | *'with BFD'*)
7691 test "$with_gnu_ld" != no && break ;;
7693 test "$with_gnu_ld" != yes && break ;;
7699 acl_cv_path_LD="$LD" # Let the user override the test with a path.
7703 LD="$acl_cv_path_LD"
7704 if test -n "$LD"; then
7705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7706 $as_echo "$LD" >&6; }
7708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7709 $as_echo "no" >&6; }
7711 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
7712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7713 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7714 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
7715 $as_echo_n "(cached) " >&6
7717 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
7718 case `$LD -v 2>&1 </dev/null` in
7719 *GNU* | *'with BFD'*)
7720 acl_cv_prog_gnu_ld=yes ;;
7722 acl_cv_prog_gnu_ld=no ;;
7725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
7726 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
7727 with_gnu_ld=$acl_cv_prog_gnu_ld
7731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
7732 $as_echo_n "checking for shared library run path origin... " >&6; }
7733 if test "${acl_cv_rpath+set}" = set; then :
7734 $as_echo_n "(cached) " >&6
7737 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
7738 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
7745 $as_echo "$acl_cv_rpath" >&6; }
7747 libext="$acl_cv_libext"
7748 shlibext="$acl_cv_shlibext"
7749 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
7750 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
7751 hardcode_direct="$acl_cv_hardcode_direct"
7752 hardcode_minus_L="$acl_cv_hardcode_minus_L"
7753 # Check whether --enable-rpath was given.
7754 if test "${enable_rpath+set}" = set; then :
7755 enableval=$enable_rpath; :
7769 acl_save_prefix="$prefix"
7770 prefix="$acl_final_prefix"
7771 acl_save_exec_prefix="$exec_prefix"
7772 exec_prefix="$acl_final_exec_prefix"
7774 eval additional_includedir=\"$includedir\"
7775 eval additional_libdir=\"$libdir\"
7777 exec_prefix="$acl_save_exec_prefix"
7778 prefix="$acl_save_prefix"
7781 # Check whether --with-libiconv-prefix was given.
7782 if test "${with_libiconv_prefix+set}" = set; then :
7783 withval=$with_libiconv_prefix;
7784 if test "X$withval" = "Xno"; then
7787 if test "X$withval" = "X"; then
7789 acl_save_prefix="$prefix"
7790 prefix="$acl_final_prefix"
7791 acl_save_exec_prefix="$exec_prefix"
7792 exec_prefix="$acl_final_exec_prefix"
7794 eval additional_includedir=\"$includedir\"
7795 eval additional_libdir=\"$libdir\"
7797 exec_prefix="$acl_save_exec_prefix"
7798 prefix="$acl_save_prefix"
7801 additional_includedir="$withval/include"
7802 additional_libdir="$withval/lib"
7813 names_already_handled=
7814 names_next_round='iconv '
7815 while test -n "$names_next_round"; do
7816 names_this_round="$names_next_round"
7818 for name in $names_this_round; do
7820 for n in $names_already_handled; do
7821 if test "$n" = "$name"; then
7826 if test -z "$already_handled"; then
7827 names_already_handled="$names_already_handled $name"
7828 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7829 eval value=\"\$HAVE_LIB$uppername\"
7830 if test -n "$value"; then
7831 if test "$value" = yes; then
7832 eval value=\"\$LIB$uppername\"
7833 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
7834 eval value=\"\$LTLIB$uppername\"
7835 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
7844 if test $use_additional = yes; then
7845 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
7846 found_dir="$additional_libdir"
7847 found_so="$additional_libdir/lib$name.$shlibext"
7848 if test -f "$additional_libdir/lib$name.la"; then
7849 found_la="$additional_libdir/lib$name.la"
7852 if test -f "$additional_libdir/lib$name.$libext"; then
7853 found_dir="$additional_libdir"
7854 found_a="$additional_libdir/lib$name.$libext"
7855 if test -f "$additional_libdir/lib$name.la"; then
7856 found_la="$additional_libdir/lib$name.la"
7861 if test "X$found_dir" = "X"; then
7862 for x in $LDFLAGS $LTLIBICONV; do
7864 acl_save_prefix="$prefix"
7865 prefix="$acl_final_prefix"
7866 acl_save_exec_prefix="$exec_prefix"
7867 exec_prefix="$acl_final_exec_prefix"
7869 exec_prefix="$acl_save_exec_prefix"
7870 prefix="$acl_save_prefix"
7874 dir=`echo "X$x" | sed -e 's/^X-L//'`
7875 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
7877 found_so="$dir/lib$name.$shlibext"
7878 if test -f "$dir/lib$name.la"; then
7879 found_la="$dir/lib$name.la"
7882 if test -f "$dir/lib$name.$libext"; then
7884 found_a="$dir/lib$name.$libext"
7885 if test -f "$dir/lib$name.la"; then
7886 found_la="$dir/lib$name.la"
7892 if test "X$found_dir" != "X"; then
7897 if test "X$found_dir" != "X"; then
7898 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
7899 if test "X$found_so" != "X"; then
7900 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
7901 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7904 for x in $ltrpathdirs; do
7905 if test "X$x" = "X$found_dir"; then
7910 if test -z "$haveit"; then
7911 ltrpathdirs="$ltrpathdirs $found_dir"
7913 if test "$hardcode_direct" = yes; then
7914 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7916 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
7917 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7919 for x in $rpathdirs; do
7920 if test "X$x" = "X$found_dir"; then
7925 if test -z "$haveit"; then
7926 rpathdirs="$rpathdirs $found_dir"
7930 for x in $LDFLAGS $LIBICONV; do
7932 acl_save_prefix="$prefix"
7933 prefix="$acl_final_prefix"
7934 acl_save_exec_prefix="$exec_prefix"
7935 exec_prefix="$acl_final_exec_prefix"
7937 exec_prefix="$acl_save_exec_prefix"
7938 prefix="$acl_save_prefix"
7940 if test "X$x" = "X-L$found_dir"; then
7945 if test -z "$haveit"; then
7946 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
7948 if test "$hardcode_minus_L" != no; then
7949 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7951 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
7957 if test "X$found_a" != "X"; then
7958 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
7960 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
7963 additional_includedir=
7964 case "$found_dir" in
7966 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
7967 additional_includedir="$basedir/include"
7970 if test "X$additional_includedir" != "X"; then
7971 if test "X$additional_includedir" != "X/usr/include"; then
7973 if test "X$additional_includedir" = "X/usr/local/include"; then
7974 if test -n "$GCC"; then
7976 linux*) haveit=yes;;
7980 if test -z "$haveit"; then
7981 for x in $CPPFLAGS $INCICONV; do
7983 acl_save_prefix="$prefix"
7984 prefix="$acl_final_prefix"
7985 acl_save_exec_prefix="$exec_prefix"
7986 exec_prefix="$acl_final_exec_prefix"
7988 exec_prefix="$acl_save_exec_prefix"
7989 prefix="$acl_save_prefix"
7991 if test "X$x" = "X-I$additional_includedir"; then
7996 if test -z "$haveit"; then
7997 if test -d "$additional_includedir"; then
7998 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
8004 if test -n "$found_la"; then
8005 save_libdir="$libdir"
8007 */* | *\\*) . "$found_la" ;;
8008 *) . "./$found_la" ;;
8010 libdir="$save_libdir"
8011 for dep in $dependency_libs; do
8014 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8015 if test "X$additional_libdir" != "X/usr/lib"; then
8017 if test "X$additional_libdir" = "X/usr/local/lib"; then
8018 if test -n "$GCC"; then
8020 linux*) haveit=yes;;
8024 if test -z "$haveit"; then
8026 for x in $LDFLAGS $LIBICONV; do
8028 acl_save_prefix="$prefix"
8029 prefix="$acl_final_prefix"
8030 acl_save_exec_prefix="$exec_prefix"
8031 exec_prefix="$acl_final_exec_prefix"
8033 exec_prefix="$acl_save_exec_prefix"
8034 prefix="$acl_save_prefix"
8036 if test "X$x" = "X-L$additional_libdir"; then
8041 if test -z "$haveit"; then
8042 if test -d "$additional_libdir"; then
8043 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
8047 for x in $LDFLAGS $LTLIBICONV; do
8049 acl_save_prefix="$prefix"
8050 prefix="$acl_final_prefix"
8051 acl_save_exec_prefix="$exec_prefix"
8052 exec_prefix="$acl_final_exec_prefix"
8054 exec_prefix="$acl_save_exec_prefix"
8055 prefix="$acl_save_prefix"
8057 if test "X$x" = "X-L$additional_libdir"; then
8062 if test -z "$haveit"; then
8063 if test -d "$additional_libdir"; then
8064 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
8071 dir=`echo "X$dep" | sed -e 's/^X-R//'`
8072 if test "$enable_rpath" != no; then
8074 for x in $rpathdirs; do
8075 if test "X$x" = "X$dir"; then
8080 if test -z "$haveit"; then
8081 rpathdirs="$rpathdirs $dir"
8084 for x in $ltrpathdirs; do
8085 if test "X$x" = "X$dir"; then
8090 if test -z "$haveit"; then
8091 ltrpathdirs="$ltrpathdirs $dir"
8096 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8099 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8102 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
8103 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
8109 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8110 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
8116 if test "X$rpathdirs" != "X"; then
8117 if test -n "$hardcode_libdir_separator"; then
8119 for found_dir in $rpathdirs; do
8120 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8122 acl_save_libdir="$libdir"
8124 eval flag=\"$hardcode_libdir_flag_spec\"
8125 libdir="$acl_save_libdir"
8126 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8128 for found_dir in $rpathdirs; do
8129 acl_save_libdir="$libdir"
8131 eval flag=\"$hardcode_libdir_flag_spec\"
8132 libdir="$acl_save_libdir"
8133 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8137 if test "X$ltrpathdirs" != "X"; then
8138 for found_dir in $ltrpathdirs; do
8139 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
8150 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
8151 if test "x$ac_cv_type_ptrdiff_t" = x""yes; then :
8155 $as_echo "#define ptrdiff_t long" >>confdefs.h
8160 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
8161 stdlib.h string.h unistd.h sys/param.h
8163 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8164 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8165 eval as_val=\$$as_ac_Header
8166 if test "x$as_val" = x""yes; then :
8167 cat >>confdefs.h <<_ACEOF
8168 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8175 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
8176 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
8177 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
8180 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8181 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8182 eval as_val=\$$as_ac_var
8183 if test "x$as_val" = x""yes; then :
8184 cat >>confdefs.h <<_ACEOF
8185 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snprintf is declared" >&5
8194 $as_echo_n "checking whether _snprintf is declared... " >&6; }
8195 if test "${ac_cv_have_decl__snprintf+set}" = set; then :
8196 $as_echo_n "(cached) " >&6
8198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8199 /* end confdefs.h. */
8206 char *p = (char *) _snprintf;
8213 if ac_fn_c_try_compile "$LINENO"; then :
8214 ac_cv_have_decl__snprintf=yes
8216 ac_cv_have_decl__snprintf=no
8218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snprintf" >&5
8221 $as_echo "$ac_cv_have_decl__snprintf" >&6; }
8222 if test $ac_cv_have_decl__snprintf = yes; then
8228 cat >>confdefs.h <<_ACEOF
8229 #define HAVE_DECL__SNPRINTF $gt_value
8234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snwprintf is declared" >&5
8235 $as_echo_n "checking whether _snwprintf is declared... " >&6; }
8236 if test "${ac_cv_have_decl__snwprintf+set}" = set; then :
8237 $as_echo_n "(cached) " >&6
8239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8240 /* end confdefs.h. */
8247 char *p = (char *) _snwprintf;
8254 if ac_fn_c_try_compile "$LINENO"; then :
8255 ac_cv_have_decl__snwprintf=yes
8257 ac_cv_have_decl__snwprintf=no
8259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snwprintf" >&5
8262 $as_echo "$ac_cv_have_decl__snwprintf" >&6; }
8263 if test $ac_cv_have_decl__snwprintf = yes; then
8269 cat >>confdefs.h <<_ACEOF
8270 #define HAVE_DECL__SNWPRINTF $gt_value
8276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether feof_unlocked is declared" >&5
8277 $as_echo_n "checking whether feof_unlocked is declared... " >&6; }
8278 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then :
8279 $as_echo_n "(cached) " >&6
8281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8282 /* end confdefs.h. */
8288 #ifndef feof_unlocked
8289 char *p = (char *) feof_unlocked;
8296 if ac_fn_c_try_compile "$LINENO"; then :
8297 ac_cv_have_decl_feof_unlocked=yes
8299 ac_cv_have_decl_feof_unlocked=no
8301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_feof_unlocked" >&5
8304 $as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
8305 if test $ac_cv_have_decl_feof_unlocked = yes; then
8311 cat >>confdefs.h <<_ACEOF
8312 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
8317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fgets_unlocked is declared" >&5
8318 $as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
8319 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then :
8320 $as_echo_n "(cached) " >&6
8322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8323 /* end confdefs.h. */
8329 #ifndef fgets_unlocked
8330 char *p = (char *) fgets_unlocked;
8337 if ac_fn_c_try_compile "$LINENO"; then :
8338 ac_cv_have_decl_fgets_unlocked=yes
8340 ac_cv_have_decl_fgets_unlocked=no
8342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_fgets_unlocked" >&5
8345 $as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
8346 if test $ac_cv_have_decl_fgets_unlocked = yes; then
8352 cat >>confdefs.h <<_ACEOF
8353 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
8358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getc_unlocked is declared" >&5
8359 $as_echo_n "checking whether getc_unlocked is declared... " >&6; }
8360 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then :
8361 $as_echo_n "(cached) " >&6
8363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8364 /* end confdefs.h. */
8370 #ifndef getc_unlocked
8371 char *p = (char *) getc_unlocked;
8378 if ac_fn_c_try_compile "$LINENO"; then :
8379 ac_cv_have_decl_getc_unlocked=yes
8381 ac_cv_have_decl_getc_unlocked=no
8383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_getc_unlocked" >&5
8386 $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
8387 if test $ac_cv_have_decl_getc_unlocked = yes; then
8393 cat >>confdefs.h <<_ACEOF
8394 #define HAVE_DECL_GETC_UNLOCKED $gt_value
8399 case $gt_cv_func_printf_posix in
8400 *yes) HAVE_POSIX_PRINTF=1 ;;
8401 *) HAVE_POSIX_PRINTF=0 ;;
8404 if test "$ac_cv_func_asprintf" = yes; then
8410 if test "$ac_cv_func_snprintf" = yes; then
8416 if test "$ac_cv_func_wprintf" = yes; then
8428 am_save_CPPFLAGS="$CPPFLAGS"
8430 for element in $INCICONV; do
8432 for x in $CPPFLAGS; do
8434 acl_save_prefix="$prefix"
8435 prefix="$acl_final_prefix"
8436 acl_save_exec_prefix="$exec_prefix"
8437 exec_prefix="$acl_final_exec_prefix"
8439 exec_prefix="$acl_save_exec_prefix"
8440 prefix="$acl_save_prefix"
8442 if test "X$x" = "X$element"; then
8447 if test -z "$haveit"; then
8448 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
8454 $as_echo_n "checking for iconv... " >&6; }
8455 if test "${am_cv_func_iconv+set}" = set; then :
8456 $as_echo_n "(cached) " >&6
8459 am_cv_func_iconv="no, consider installing GNU libiconv"
8461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8462 /* end confdefs.h. */
8468 iconv_t cd = iconv_open("","");
8469 iconv(cd,NULL,NULL,NULL,NULL);
8475 if ac_fn_c_try_link "$LINENO"; then :
8476 am_cv_func_iconv=yes
8478 rm -f core conftest.err conftest.$ac_objext \
8479 conftest$ac_exeext conftest.$ac_ext
8480 if test "$am_cv_func_iconv" != yes; then
8481 am_save_LIBS="$LIBS"
8482 LIBS="$LIBS $LIBICONV"
8483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8484 /* end confdefs.h. */
8490 iconv_t cd = iconv_open("","");
8491 iconv(cd,NULL,NULL,NULL,NULL);
8497 if ac_fn_c_try_link "$LINENO"; then :
8499 am_cv_func_iconv=yes
8501 rm -f core conftest.err conftest.$ac_objext \
8502 conftest$ac_exeext conftest.$ac_ext
8503 LIBS="$am_save_LIBS"
8507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
8508 $as_echo "$am_cv_func_iconv" >&6; }
8509 if test "$am_cv_func_iconv" = yes; then
8511 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
8514 if test "$am_cv_lib_iconv" = yes; then
8515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
8516 $as_echo_n "checking how to link with libiconv... " >&6; }
8517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
8518 $as_echo "$LIBICONV" >&6; }
8520 CPPFLAGS="$am_save_CPPFLAGS"
8527 if test "$am_cv_func_iconv" = yes; then
8528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
8529 $as_echo_n "checking for iconv declaration... " >&6; }
8530 if test "${am_cv_proto_iconv+set}" = set; then :
8531 $as_echo_n "(cached) " >&6
8534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8535 /* end confdefs.h. */
8543 #if defined(__STDC__) || defined(__cplusplus)
8544 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
8557 if ac_fn_c_try_compile "$LINENO"; then :
8558 am_cv_proto_iconv_arg1=""
8560 am_cv_proto_iconv_arg1="const"
8562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8563 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);"
8566 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
8567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
8568 }$am_cv_proto_iconv" >&5
8570 }$am_cv_proto_iconv" >&6; }
8572 cat >>confdefs.h <<_ACEOF
8573 #define ICONV_CONST $am_cv_proto_iconv_arg1
8579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
8580 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
8581 if test "${am_cv_langinfo_codeset+set}" = set; then :
8582 $as_echo_n "(cached) " >&6
8584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8585 /* end confdefs.h. */
8586 #include <langinfo.h>
8590 char* cs = nl_langinfo(CODESET);
8595 if ac_fn_c_try_link "$LINENO"; then :
8596 am_cv_langinfo_codeset=yes
8598 am_cv_langinfo_codeset=no
8600 rm -f core conftest.err conftest.$ac_objext \
8601 conftest$ac_exeext conftest.$ac_ext
8604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
8605 $as_echo "$am_cv_langinfo_codeset" >&6; }
8606 if test $am_cv_langinfo_codeset = yes; then
8608 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
8612 if test $ac_cv_header_locale_h = yes; then
8614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
8615 $as_echo_n "checking for LC_MESSAGES... " >&6; }
8616 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
8617 $as_echo_n "(cached) " >&6
8619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8620 /* end confdefs.h. */
8630 if ac_fn_c_try_link "$LINENO"; then :
8631 am_cv_val_LC_MESSAGES=yes
8633 am_cv_val_LC_MESSAGES=no
8635 rm -f core conftest.err conftest.$ac_objext \
8636 conftest$ac_exeext conftest.$ac_ext
8638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
8639 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
8640 if test $am_cv_val_LC_MESSAGES = yes; then
8642 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
8648 for ac_prog in bison
8650 # Extract the first word of "$ac_prog", so it can be a program name with args.
8651 set dummy $ac_prog; ac_word=$2
8652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8653 $as_echo_n "checking for $ac_word... " >&6; }
8654 if test "${ac_cv_prog_INTLBISON+set}" = set; then :
8655 $as_echo_n "(cached) " >&6
8657 if test -n "$INTLBISON"; then
8658 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
8660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8664 test -z "$as_dir" && as_dir=.
8665 for ac_exec_ext in '' $ac_executable_extensions; do
8666 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8667 ac_cv_prog_INTLBISON="$ac_prog"
8668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8677 INTLBISON=$ac_cv_prog_INTLBISON
8678 if test -n "$INTLBISON"; then
8679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
8680 $as_echo "$INTLBISON" >&6; }
8682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8683 $as_echo "no" >&6; }
8687 test -n "$INTLBISON" && break
8690 if test -z "$INTLBISON"; then
8693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
8694 $as_echo_n "checking version of bison... " >&6; }
8695 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
8696 case $ac_prog_version in
8697 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
8698 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
8699 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
8700 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
8702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
8703 $as_echo "$ac_prog_version" >&6; }
8705 if test $ac_verc_fail = yes; then
8724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
8725 $as_echo_n "checking whether NLS is requested... " >&6; }
8726 # Check whether --enable-nls was given.
8727 if test "${enable_nls+set}" = set; then :
8728 enableval=$enable_nls; USE_NLS=$enableval
8733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
8734 $as_echo "$USE_NLS" >&6; }
8739 BUILD_INCLUDED_LIBINTL=no
8740 USE_INCLUDED_LIBINTL=no
8746 if test "$USE_NLS" = "yes"; then
8747 gt_use_preinstalled_gnugettext=no
8749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
8750 $as_echo_n "checking whether included gettext is requested... " >&6; }
8752 # Check whether --with-included-gettext was given.
8753 if test "${with_included_gettext+set}" = set; then :
8754 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
8756 nls_cv_force_use_gnu_gettext=no
8759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
8760 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
8762 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
8763 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
8770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
8771 $as_echo_n "checking for GNU gettext in libc... " >&6; }
8772 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then :
8773 $as_echo_n "(cached) " >&6
8775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8776 /* end confdefs.h. */
8777 #include <libintl.h>
8778 extern int _nl_msg_cat_cntr;
8779 extern int *_nl_domain_bindings;
8783 bindtextdomain ("", "");
8784 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
8789 if ac_fn_c_try_link "$LINENO"; then :
8790 gt_cv_func_gnugettext1_libc=yes
8792 gt_cv_func_gnugettext1_libc=no
8794 rm -f core conftest.err conftest.$ac_objext \
8795 conftest$ac_exeext conftest.$ac_ext
8797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
8798 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
8800 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
8806 acl_save_prefix="$prefix"
8807 prefix="$acl_final_prefix"
8808 acl_save_exec_prefix="$exec_prefix"
8809 exec_prefix="$acl_final_exec_prefix"
8811 eval additional_includedir=\"$includedir\"
8812 eval additional_libdir=\"$libdir\"
8814 exec_prefix="$acl_save_exec_prefix"
8815 prefix="$acl_save_prefix"
8818 # Check whether --with-libintl-prefix was given.
8819 if test "${with_libintl_prefix+set}" = set; then :
8820 withval=$with_libintl_prefix;
8821 if test "X$withval" = "Xno"; then
8824 if test "X$withval" = "X"; then
8826 acl_save_prefix="$prefix"
8827 prefix="$acl_final_prefix"
8828 acl_save_exec_prefix="$exec_prefix"
8829 exec_prefix="$acl_final_exec_prefix"
8831 eval additional_includedir=\"$includedir\"
8832 eval additional_libdir=\"$libdir\"
8834 exec_prefix="$acl_save_exec_prefix"
8835 prefix="$acl_save_prefix"
8838 additional_includedir="$withval/include"
8839 additional_libdir="$withval/lib"
8850 names_already_handled=
8851 names_next_round='intl '
8852 while test -n "$names_next_round"; do
8853 names_this_round="$names_next_round"
8855 for name in $names_this_round; do
8857 for n in $names_already_handled; do
8858 if test "$n" = "$name"; then
8863 if test -z "$already_handled"; then
8864 names_already_handled="$names_already_handled $name"
8865 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
8866 eval value=\"\$HAVE_LIB$uppername\"
8867 if test -n "$value"; then
8868 if test "$value" = yes; then
8869 eval value=\"\$LIB$uppername\"
8870 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
8871 eval value=\"\$LTLIB$uppername\"
8872 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
8881 if test $use_additional = yes; then
8882 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
8883 found_dir="$additional_libdir"
8884 found_so="$additional_libdir/lib$name.$shlibext"
8885 if test -f "$additional_libdir/lib$name.la"; then
8886 found_la="$additional_libdir/lib$name.la"
8889 if test -f "$additional_libdir/lib$name.$libext"; then
8890 found_dir="$additional_libdir"
8891 found_a="$additional_libdir/lib$name.$libext"
8892 if test -f "$additional_libdir/lib$name.la"; then
8893 found_la="$additional_libdir/lib$name.la"
8898 if test "X$found_dir" = "X"; then
8899 for x in $LDFLAGS $LTLIBINTL; do
8901 acl_save_prefix="$prefix"
8902 prefix="$acl_final_prefix"
8903 acl_save_exec_prefix="$exec_prefix"
8904 exec_prefix="$acl_final_exec_prefix"
8906 exec_prefix="$acl_save_exec_prefix"
8907 prefix="$acl_save_prefix"
8911 dir=`echo "X$x" | sed -e 's/^X-L//'`
8912 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
8914 found_so="$dir/lib$name.$shlibext"
8915 if test -f "$dir/lib$name.la"; then
8916 found_la="$dir/lib$name.la"
8919 if test -f "$dir/lib$name.$libext"; then
8921 found_a="$dir/lib$name.$libext"
8922 if test -f "$dir/lib$name.la"; then
8923 found_la="$dir/lib$name.la"
8929 if test "X$found_dir" != "X"; then
8934 if test "X$found_dir" != "X"; then
8935 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
8936 if test "X$found_so" != "X"; then
8937 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
8938 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8941 for x in $ltrpathdirs; do
8942 if test "X$x" = "X$found_dir"; then
8947 if test -z "$haveit"; then
8948 ltrpathdirs="$ltrpathdirs $found_dir"
8950 if test "$hardcode_direct" = yes; then
8951 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8953 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
8954 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8956 for x in $rpathdirs; do
8957 if test "X$x" = "X$found_dir"; then
8962 if test -z "$haveit"; then
8963 rpathdirs="$rpathdirs $found_dir"
8967 for x in $LDFLAGS $LIBINTL; do
8969 acl_save_prefix="$prefix"
8970 prefix="$acl_final_prefix"
8971 acl_save_exec_prefix="$exec_prefix"
8972 exec_prefix="$acl_final_exec_prefix"
8974 exec_prefix="$acl_save_exec_prefix"
8975 prefix="$acl_save_prefix"
8977 if test "X$x" = "X-L$found_dir"; then
8982 if test -z "$haveit"; then
8983 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
8985 if test "$hardcode_minus_L" != no; then
8986 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8988 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
8994 if test "X$found_a" != "X"; then
8995 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
8997 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
9000 additional_includedir=
9001 case "$found_dir" in
9003 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9004 additional_includedir="$basedir/include"
9007 if test "X$additional_includedir" != "X"; then
9008 if test "X$additional_includedir" != "X/usr/include"; then
9010 if test "X$additional_includedir" = "X/usr/local/include"; then
9011 if test -n "$GCC"; then
9013 linux*) haveit=yes;;
9017 if test -z "$haveit"; then
9018 for x in $CPPFLAGS $INCINTL; do
9020 acl_save_prefix="$prefix"
9021 prefix="$acl_final_prefix"
9022 acl_save_exec_prefix="$exec_prefix"
9023 exec_prefix="$acl_final_exec_prefix"
9025 exec_prefix="$acl_save_exec_prefix"
9026 prefix="$acl_save_prefix"
9028 if test "X$x" = "X-I$additional_includedir"; then
9033 if test -z "$haveit"; then
9034 if test -d "$additional_includedir"; then
9035 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
9041 if test -n "$found_la"; then
9042 save_libdir="$libdir"
9044 */* | *\\*) . "$found_la" ;;
9045 *) . "./$found_la" ;;
9047 libdir="$save_libdir"
9048 for dep in $dependency_libs; do
9051 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9052 if test "X$additional_libdir" != "X/usr/lib"; then
9054 if test "X$additional_libdir" = "X/usr/local/lib"; then
9055 if test -n "$GCC"; then
9057 linux*) haveit=yes;;
9061 if test -z "$haveit"; then
9063 for x in $LDFLAGS $LIBINTL; do
9065 acl_save_prefix="$prefix"
9066 prefix="$acl_final_prefix"
9067 acl_save_exec_prefix="$exec_prefix"
9068 exec_prefix="$acl_final_exec_prefix"
9070 exec_prefix="$acl_save_exec_prefix"
9071 prefix="$acl_save_prefix"
9073 if test "X$x" = "X-L$additional_libdir"; then
9078 if test -z "$haveit"; then
9079 if test -d "$additional_libdir"; then
9080 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
9084 for x in $LDFLAGS $LTLIBINTL; do
9086 acl_save_prefix="$prefix"
9087 prefix="$acl_final_prefix"
9088 acl_save_exec_prefix="$exec_prefix"
9089 exec_prefix="$acl_final_exec_prefix"
9091 exec_prefix="$acl_save_exec_prefix"
9092 prefix="$acl_save_prefix"
9094 if test "X$x" = "X-L$additional_libdir"; then
9099 if test -z "$haveit"; then
9100 if test -d "$additional_libdir"; then
9101 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
9108 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9109 if test "$enable_rpath" != no; then
9111 for x in $rpathdirs; do
9112 if test "X$x" = "X$dir"; then
9117 if test -z "$haveit"; then
9118 rpathdirs="$rpathdirs $dir"
9121 for x in $ltrpathdirs; do
9122 if test "X$x" = "X$dir"; then
9127 if test -z "$haveit"; then
9128 ltrpathdirs="$ltrpathdirs $dir"
9133 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9136 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9139 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
9140 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
9146 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
9147 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
9153 if test "X$rpathdirs" != "X"; then
9154 if test -n "$hardcode_libdir_separator"; then
9156 for found_dir in $rpathdirs; do
9157 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9159 acl_save_libdir="$libdir"
9161 eval flag=\"$hardcode_libdir_flag_spec\"
9162 libdir="$acl_save_libdir"
9163 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
9165 for found_dir in $rpathdirs; do
9166 acl_save_libdir="$libdir"
9168 eval flag=\"$hardcode_libdir_flag_spec\"
9169 libdir="$acl_save_libdir"
9170 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
9174 if test "X$ltrpathdirs" != "X"; then
9175 for found_dir in $ltrpathdirs; do
9176 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
9180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
9181 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
9182 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then :
9183 $as_echo_n "(cached) " >&6
9185 gt_save_CPPFLAGS="$CPPFLAGS"
9186 CPPFLAGS="$CPPFLAGS $INCINTL"
9187 gt_save_LIBS="$LIBS"
9188 LIBS="$LIBS $LIBINTL"
9189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9190 /* end confdefs.h. */
9191 #include <libintl.h>
9192 extern int _nl_msg_cat_cntr;
9197 const char *_nl_expand_alias ();
9201 bindtextdomain ("", "");
9202 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
9207 if ac_fn_c_try_link "$LINENO"; then :
9208 gt_cv_func_gnugettext1_libintl=yes
9210 gt_cv_func_gnugettext1_libintl=no
9212 rm -f core conftest.err conftest.$ac_objext \
9213 conftest$ac_exeext conftest.$ac_ext
9214 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
9215 LIBS="$LIBS $LIBICONV"
9216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9217 /* end confdefs.h. */
9218 #include <libintl.h>
9219 extern int _nl_msg_cat_cntr;
9224 const char *_nl_expand_alias ();
9228 bindtextdomain ("", "");
9229 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
9234 if ac_fn_c_try_link "$LINENO"; then :
9235 LIBINTL="$LIBINTL $LIBICONV"
9236 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
9237 gt_cv_func_gnugettext1_libintl=yes
9240 rm -f core conftest.err conftest.$ac_objext \
9241 conftest$ac_exeext conftest.$ac_ext
9243 CPPFLAGS="$gt_save_CPPFLAGS"
9244 LIBS="$gt_save_LIBS"
9246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
9247 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
9250 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
9251 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
9252 && test "$PACKAGE" != gettext-runtime \
9253 && test "$PACKAGE" != gettext-tools; }; then
9254 gt_use_preinstalled_gnugettext=yes
9262 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
9263 nls_cv_use_gnu_gettext=yes
9267 if test "$nls_cv_use_gnu_gettext" = "yes"; then
9268 BUILD_INCLUDED_LIBINTL=yes
9269 USE_INCLUDED_LIBINTL=yes
9270 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
9271 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
9272 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
9275 if test "$gt_use_preinstalled_gnugettext" = "yes" \
9276 || test "$nls_cv_use_gnu_gettext" = "yes"; then
9281 if test "$gt_use_preinstalled_gnugettext" = "yes" \
9282 || test "$nls_cv_use_gnu_gettext" = "yes"; then
9284 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
9291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
9292 $as_echo_n "checking whether to use NLS... " >&6; }
9293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
9294 $as_echo "$USE_NLS" >&6; }
9295 if test "$USE_NLS" = "yes"; then
9296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
9297 $as_echo_n "checking where the gettext function comes from... " >&6; }
9298 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
9299 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
9300 gt_source="external libintl"
9305 gt_source="included intl directory"
9307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
9308 $as_echo "$gt_source" >&6; }
9311 if test "$USE_NLS" = "yes"; then
9313 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
9314 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
9315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
9316 $as_echo_n "checking how to link with libintl... " >&6; }
9317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
9318 $as_echo "$LIBINTL" >&6; }
9320 for element in $INCINTL; do
9322 for x in $CPPFLAGS; do
9324 acl_save_prefix="$prefix"
9325 prefix="$acl_final_prefix"
9326 acl_save_exec_prefix="$exec_prefix"
9327 exec_prefix="$acl_final_exec_prefix"
9329 exec_prefix="$acl_save_exec_prefix"
9330 prefix="$acl_save_prefix"
9332 if test "X$x" = "X$element"; then
9337 if test -z "$haveit"; then
9338 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9345 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
9348 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
9356 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
9357 BUILD_INCLUDED_LIBINTL=yes
9365 nls_cv_header_libgt=
9376 if test "$USE_INCLUDED_LIBINTL" = yes; then
9377 INTLOBJS="\$(GETTOBJS)"
9381 INTL_LIBTOOL_SUFFIX_PREFIX=
9393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9394 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
9396 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
9397 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
9398 $as_echo_n "(cached) " >&6
9400 cat >conftest.make <<\_ACEOF
9403 @echo '@@@%%%=$(MAKE)=@@@%%%'
9405 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9406 case `${MAKE-make} -f conftest.make 2>/dev/null` in
9408 eval ac_cv_prog_make_${ac_make}_set=yes;;
9410 eval ac_cv_prog_make_${ac_make}_set=no;;
9414 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9416 $as_echo "yes" >&6; }
9419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9420 $as_echo "no" >&6; }
9421 SET_MAKE="MAKE=${MAKE-make}"
9424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5
9425 $as_echo_n "checking for GNU make... " >&6; }
9426 if test "${_cv_gnu_make_command+set}" = set; then :
9427 $as_echo_n "(cached) " >&6
9429 _cv_gnu_make_command='' ;
9430 for a in "$MAKE" make gmake gnumake ; do
9431 if test -z "$a" ; then continue ; fi ;
9432 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
9433 _cv_gnu_make_command=$a ;
9439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_cv_gnu_make_command" >&5
9440 $as_echo "$_cv_gnu_make_command" >&6; } ;
9441 if test "x$_cv_gnu_make_command" != "x" ; then
9447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"Not found\"" >&5
9448 $as_echo "\"Not found\"" >&6; };
9453 # Extract the first word of "ln", so it can be a program name with args.
9454 set dummy ln; ac_word=$2
9455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9456 $as_echo_n "checking for $ac_word... " >&6; }
9457 if test "${ac_cv_path_LN+set}" = set; then :
9458 $as_echo_n "(cached) " >&6
9462 ac_cv_path_LN="$LN" # Let the user override the test with a path.
9465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9469 test -z "$as_dir" && as_dir=.
9470 for ac_exec_ext in '' $ac_executable_extensions; do
9471 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9472 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
9473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9480 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
9485 if test -n "$LN"; then
9486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
9487 $as_echo "$LN" >&6; }
9489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9490 $as_echo "no" >&6; }
9494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
9495 $as_echo_n "checking whether ln -s works... " >&6; }
9497 if test "$LN_S" = "ln -s"; then
9498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9499 $as_echo "yes" >&6; }
9501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
9502 $as_echo "no, using $LN_S" >&6; }
9505 # Extract the first word of "mv", so it can be a program name with args.
9506 set dummy mv; ac_word=$2
9507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9508 $as_echo_n "checking for $ac_word... " >&6; }
9509 if test "${ac_cv_path_MV+set}" = set; then :
9510 $as_echo_n "(cached) " >&6
9514 ac_cv_path_MV="$MV" # Let the user override the test with a path.
9517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9521 test -z "$as_dir" && as_dir=.
9522 for ac_exec_ext in '' $ac_executable_extensions; do
9523 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9524 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
9525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9532 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
9537 if test -n "$MV"; then
9538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
9539 $as_echo "$MV" >&6; }
9541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9542 $as_echo "no" >&6; }
9546 # Extract the first word of "cp", so it can be a program name with args.
9547 set dummy cp; ac_word=$2
9548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9549 $as_echo_n "checking for $ac_word... " >&6; }
9550 if test "${ac_cv_path_CP+set}" = set; then :
9551 $as_echo_n "(cached) " >&6
9555 ac_cv_path_CP="$CP" # Let the user override the test with a path.
9558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9562 test -z "$as_dir" && as_dir=.
9563 for ac_exec_ext in '' $ac_executable_extensions; do
9564 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9565 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
9566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9573 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
9578 if test -n "$CP"; then
9579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
9580 $as_echo "$CP" >&6; }
9582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9583 $as_echo "no" >&6; }
9587 # Extract the first word of "rm", so it can be a program name with args.
9588 set dummy rm; ac_word=$2
9589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9590 $as_echo_n "checking for $ac_word... " >&6; }
9591 if test "${ac_cv_path_RM+set}" = set; then :
9592 $as_echo_n "(cached) " >&6
9596 ac_cv_path_RM="$RM" # Let the user override the test with a path.
9599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9603 test -z "$as_dir" && as_dir=.
9604 for ac_exec_ext in '' $ac_executable_extensions; do
9605 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9606 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
9607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9614 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
9619 if test -n "$RM"; then
9620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
9621 $as_echo "$RM" >&6; }
9623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9624 $as_echo "no" >&6; }
9628 # Extract the first word of "chmod", so it can be a program name with args.
9629 set dummy chmod; ac_word=$2
9630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9631 $as_echo_n "checking for $ac_word... " >&6; }
9632 if test "${ac_cv_path_CHMOD+set}" = set; then :
9633 $as_echo_n "(cached) " >&6
9637 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
9640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9644 test -z "$as_dir" && as_dir=.
9645 for ac_exec_ext in '' $ac_executable_extensions; do
9646 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9647 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
9648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9655 test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
9659 CHMOD=$ac_cv_path_CHMOD
9660 if test -n "$CHMOD"; then
9661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
9662 $as_echo "$CHMOD" >&6; }
9664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9665 $as_echo "no" >&6; }
9669 for ac_prog in gawk mawk nawk awk
9671 # Extract the first word of "$ac_prog", so it can be a program name with args.
9672 set dummy $ac_prog; 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_prog_AWK+set}" = set; then :
9676 $as_echo_n "(cached) " >&6
9678 if test -n "$AWK"; then
9679 ac_cv_prog_AWK="$AWK" # Let the user override the test.
9681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9685 test -z "$as_dir" && as_dir=.
9686 for ac_exec_ext in '' $ac_executable_extensions; do
9687 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9688 ac_cv_prog_AWK="$ac_prog"
9689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9699 if test -n "$AWK"; then
9700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
9701 $as_echo "$AWK" >&6; }
9703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9704 $as_echo "no" >&6; }
9708 test -n "$AWK" && break
9711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
9712 $as_echo_n "checking for egrep... " >&6; }
9713 if test "${ac_cv_path_EGREP+set}" = set; then :
9714 $as_echo_n "(cached) " >&6
9716 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
9717 then ac_cv_path_EGREP="$GREP -E"
9719 if test -z "$EGREP"; then
9720 ac_path_EGREP_found=false
9721 # Loop through the user's path and test for each of PROGNAME-LIST
9722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9723 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
9726 test -z "$as_dir" && as_dir=.
9727 for ac_prog in egrep; do
9728 for ac_exec_ext in '' $ac_executable_extensions; do
9729 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
9730 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
9731 # Check for GNU ac_path_EGREP and select it if it is found.
9732 # Check for GNU $ac_path_EGREP
9733 case `"$ac_path_EGREP" --version 2>&1` in
9735 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
9738 $as_echo_n 0123456789 >"conftest.in"
9741 cat "conftest.in" "conftest.in" >"conftest.tmp"
9742 mv "conftest.tmp" "conftest.in"
9743 cp "conftest.in" "conftest.nl"
9744 $as_echo 'EGREP' >> "conftest.nl"
9745 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
9746 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
9747 as_fn_arith $ac_count + 1 && ac_count=$as_val
9748 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
9749 # Best one so far, save it but keep looking for a better one
9750 ac_cv_path_EGREP="$ac_path_EGREP"
9751 ac_path_EGREP_max=$ac_count
9753 # 10*(2^10) chars as input seems more than enough
9754 test $ac_count -gt 10 && break
9756 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
9759 $ac_path_EGREP_found && break 3
9764 if test -z "$ac_cv_path_EGREP"; then
9765 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
9768 ac_cv_path_EGREP=$EGREP
9773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
9774 $as_echo "$ac_cv_path_EGREP" >&6; }
9775 EGREP="$ac_cv_path_EGREP"
9778 # Extract the first word of "sed", so it can be a program name with args.
9779 set dummy sed; ac_word=$2
9780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9781 $as_echo_n "checking for $ac_word... " >&6; }
9782 if test "${ac_cv_path_SED+set}" = set; then :
9783 $as_echo_n "(cached) " >&6
9787 ac_cv_path_SED="$SED" # Let the user override the test with a path.
9790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9794 test -z "$as_dir" && as_dir=.
9795 for ac_exec_ext in '' $ac_executable_extensions; do
9796 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9797 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
9798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9805 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
9810 if test -n "$SED"; then
9811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
9812 $as_echo "$SED" >&6; }
9814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9815 $as_echo "no" >&6; }
9819 # Extract the first word of "perl", so it can be a program name with args.
9820 set dummy perl; ac_word=$2
9821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9822 $as_echo_n "checking for $ac_word... " >&6; }
9823 if test "${ac_cv_path_PERL+set}" = set; then :
9824 $as_echo_n "(cached) " >&6
9828 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
9831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9835 test -z "$as_dir" && as_dir=.
9836 for ac_exec_ext in '' $ac_executable_extensions; do
9837 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9838 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
9839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9846 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
9850 PERL=$ac_cv_path_PERL
9851 if test -n "$PERL"; then
9852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
9853 $as_echo "$PERL" >&6; }
9855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9856 $as_echo "no" >&6; }
9860 # Extract the first word of "ldconfig", so it can be a program name with args.
9861 set dummy ldconfig; ac_word=$2
9862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9863 $as_echo_n "checking for $ac_word... " >&6; }
9864 if test "${ac_cv_path_LDCONFIG+set}" = set; then :
9865 $as_echo_n "(cached) " >&6
9869 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
9872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9876 test -z "$as_dir" && as_dir=.
9877 for ac_exec_ext in '' $ac_executable_extensions; do
9878 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9879 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
9880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9887 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
9891 LDCONFIG=$ac_cv_path_LDCONFIG
9892 if test -n "$LDCONFIG"; then
9893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
9894 $as_echo "$LDCONFIG" >&6; }
9896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9897 $as_echo "no" >&6; }
9901 if test -n "$ac_tool_prefix"; then
9902 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
9903 set dummy ${ac_tool_prefix}ar; ac_word=$2
9904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9905 $as_echo_n "checking for $ac_word... " >&6; }
9906 if test "${ac_cv_prog_AR+set}" = set; then :
9907 $as_echo_n "(cached) " >&6
9909 if test -n "$AR"; then
9910 ac_cv_prog_AR="$AR" # Let the user override the test.
9912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9916 test -z "$as_dir" && as_dir=.
9917 for ac_exec_ext in '' $ac_executable_extensions; do
9918 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9919 ac_cv_prog_AR="${ac_tool_prefix}ar"
9920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9930 if test -n "$AR"; then
9931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
9932 $as_echo "$AR" >&6; }
9934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9935 $as_echo "no" >&6; }
9940 if test -z "$ac_cv_prog_AR"; then
9942 # Extract the first word of "ar", so it can be a program name with args.
9943 set dummy ar; ac_word=$2
9944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9945 $as_echo_n "checking for $ac_word... " >&6; }
9946 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
9947 $as_echo_n "(cached) " >&6
9949 if test -n "$ac_ct_AR"; then
9950 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
9952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9956 test -z "$as_dir" && as_dir=.
9957 for ac_exec_ext in '' $ac_executable_extensions; do
9958 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9959 ac_cv_prog_ac_ct_AR="ar"
9960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9969 ac_ct_AR=$ac_cv_prog_ac_ct_AR
9970 if test -n "$ac_ct_AR"; then
9971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
9972 $as_echo "$ac_ct_AR" >&6; }
9974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9975 $as_echo "no" >&6; }
9978 if test "x$ac_ct_AR" = x; then
9981 case $cross_compiling:$ac_tool_warned in
9983 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9984 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9985 ac_tool_warned=yes ;;
9993 if test -n "$ac_tool_prefix"; then
9994 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
9995 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
9996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9997 $as_echo_n "checking for $ac_word... " >&6; }
9998 if test "${ac_cv_prog_RANLIB+set}" = set; then :
9999 $as_echo_n "(cached) " >&6
10001 if test -n "$RANLIB"; then
10002 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10005 for as_dir in $PATH
10008 test -z "$as_dir" && as_dir=.
10009 for ac_exec_ext in '' $ac_executable_extensions; do
10010 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10011 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
10012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10021 RANLIB=$ac_cv_prog_RANLIB
10022 if test -n "$RANLIB"; then
10023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
10024 $as_echo "$RANLIB" >&6; }
10026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10027 $as_echo "no" >&6; }
10032 if test -z "$ac_cv_prog_RANLIB"; then
10033 ac_ct_RANLIB=$RANLIB
10034 # Extract the first word of "ranlib", so it can be a program name with args.
10035 set dummy ranlib; ac_word=$2
10036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10037 $as_echo_n "checking for $ac_word... " >&6; }
10038 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
10039 $as_echo_n "(cached) " >&6
10041 if test -n "$ac_ct_RANLIB"; then
10042 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
10044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10045 for as_dir in $PATH
10048 test -z "$as_dir" && as_dir=.
10049 for ac_exec_ext in '' $ac_executable_extensions; do
10050 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10051 ac_cv_prog_ac_ct_RANLIB="ranlib"
10052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10061 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
10062 if test -n "$ac_ct_RANLIB"; then
10063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
10064 $as_echo "$ac_ct_RANLIB" >&6; }
10066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10067 $as_echo "no" >&6; }
10070 if test "x$ac_ct_RANLIB" = x; then
10073 case $cross_compiling:$ac_tool_warned in
10075 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10076 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10077 ac_tool_warned=yes ;;
10079 RANLIB=$ac_ct_RANLIB
10082 RANLIB="$ac_cv_prog_RANLIB"
10085 if test -n "$ac_tool_prefix"; then
10086 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
10087 set dummy ${ac_tool_prefix}strip; ac_word=$2
10088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10089 $as_echo_n "checking for $ac_word... " >&6; }
10090 if test "${ac_cv_prog_STRIP+set}" = set; then :
10091 $as_echo_n "(cached) " >&6
10093 if test -n "$STRIP"; then
10094 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
10096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10097 for as_dir in $PATH
10100 test -z "$as_dir" && as_dir=.
10101 for ac_exec_ext in '' $ac_executable_extensions; do
10102 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10103 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
10104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10113 STRIP=$ac_cv_prog_STRIP
10114 if test -n "$STRIP"; then
10115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
10116 $as_echo "$STRIP" >&6; }
10118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10119 $as_echo "no" >&6; }
10124 if test -z "$ac_cv_prog_STRIP"; then
10126 # Extract the first word of "strip", so it can be a program name with args.
10127 set dummy strip; ac_word=$2
10128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10129 $as_echo_n "checking for $ac_word... " >&6; }
10130 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
10131 $as_echo_n "(cached) " >&6
10133 if test -n "$ac_ct_STRIP"; then
10134 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
10136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10137 for as_dir in $PATH
10140 test -z "$as_dir" && as_dir=.
10141 for ac_exec_ext in '' $ac_executable_extensions; do
10142 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10143 ac_cv_prog_ac_ct_STRIP="strip"
10144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10153 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
10154 if test -n "$ac_ct_STRIP"; then
10155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
10156 $as_echo "$ac_ct_STRIP" >&6; }
10158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10159 $as_echo "no" >&6; }
10162 if test "x$ac_ct_STRIP" = x; then
10165 case $cross_compiling:$ac_tool_warned in
10167 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10168 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10169 ac_tool_warned=yes ;;
10174 STRIP="$ac_cv_prog_STRIP"
10177 # Extract the first word of "makeinfo", so it can be a program name with args.
10178 set dummy makeinfo; ac_word=$2
10179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10180 $as_echo_n "checking for $ac_word... " >&6; }
10181 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
10182 $as_echo_n "(cached) " >&6
10184 if test -n "$MAKEINFO"; then
10185 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
10187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10188 for as_dir in $PATH
10191 test -z "$as_dir" && as_dir=.
10192 for ac_exec_ext in '' $ac_executable_extensions; do
10193 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10194 ac_cv_prog_MAKEINFO="makeinfo"
10195 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10204 MAKEINFO=$ac_cv_prog_MAKEINFO
10205 if test -n "$MAKEINFO"; then
10206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
10207 $as_echo "$MAKEINFO" >&6; }
10209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10210 $as_echo "no" >&6; }
10214 if test "_$MAKEINFO" = "_"; then
10215 MAKEINFO="@echo Makeinfo is missing. Info documentation will not be built.;true"
10217 case "$MAKEINFO" in
10219 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
10220 *** Makeinfo is missing. Info documentation will not be built." >&5
10221 $as_echo "$as_me: WARNING:
10222 *** Makeinfo is missing. Info documentation will not be built." >&2;}
10230 # See if we need a separate native compiler.
10231 if test $cross_compiling = no; then
10235 for ac_prog in gcc cc
10237 # Extract the first word of "$ac_prog", so it can be a program name with args.
10238 set dummy $ac_prog; ac_word=$2
10239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10240 $as_echo_n "checking for $ac_word... " >&6; }
10241 if test "${ac_cv_prog_BUILD_CC+set}" = set; then :
10242 $as_echo_n "(cached) " >&6
10244 if test -n "$BUILD_CC"; then
10245 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
10247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10248 for as_dir in $PATH
10251 test -z "$as_dir" && as_dir=.
10252 for ac_exec_ext in '' $ac_executable_extensions; do
10253 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10254 ac_cv_prog_BUILD_CC="$ac_prog"
10255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10264 BUILD_CC=$ac_cv_prog_BUILD_CC
10265 if test -n "$BUILD_CC"; then
10266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
10267 $as_echo "$BUILD_CC" >&6; }
10269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10270 $as_echo "no" >&6; }
10274 test -n "$BUILD_CC" && break
10278 for ac_header in dirent.h errno.h execinfo.h getopt.h malloc.h mntent.h paths.h semaphore.h setjmp.h signal.h stdarg.h stdint.h stdlib.h termios.h termio.h unistd.h utime.h linux/falloc.h linux/fd.h linux/major.h net/if_dl.h netinet/in.h sys/disklabel.h sys/file.h sys/ioctl.h sys/mkdev.h sys/mman.h sys/prctl.h sys/queue.h sys/resource.h sys/select.h sys/socket.h sys/sockio.h sys/stat.h sys/syscall.h sys/sysmacros.h sys/time.h sys/types.h sys/un.h sys/wait.h
10280 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10281 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10282 eval as_val=\$$as_ac_Header
10283 if test "x$as_val" = x""yes; then :
10284 cat >>confdefs.h <<_ACEOF
10285 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10292 for ac_header in sys/disk.h sys/mount.h
10294 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10295 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
10296 #if HAVE_SYS_QUEUE_H
10297 #include <sys/queue.h>
10301 eval as_val=\$$as_ac_Header
10302 if test "x$as_val" = x""yes; then :
10303 cat >>confdefs.h <<_ACEOF
10304 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10311 for ac_header in net/if.h
10313 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
10314 #if HAVE_SYS_TYPES_H
10315 #include <sys/types.h>
10317 #if HAVE_SYS_SOCKET
10318 #include <sys/socket.h>
10322 if test "x$ac_cv_header_net_if_h" = x""yes; then :
10323 cat >>confdefs.h <<_ACEOF
10324 #define HAVE_NET_IF_H 1
10331 for ac_func in vprintf
10333 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
10334 if test "x$ac_cv_func_vprintf" = x""yes; then :
10335 cat >>confdefs.h <<_ACEOF
10336 #define HAVE_VPRINTF 1
10339 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
10340 if test "x$ac_cv_func__doprnt" = x""yes; then :
10342 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
10350 ac_fn_c_check_member "$LINENO" "struct dirent" "d_reclen" "ac_cv_member_struct_dirent_d_reclen" "#include <dirent.h>
10352 if test "x$ac_cv_member_struct_dirent_d_reclen" = x""yes; then :
10354 $as_echo "#define HAVE_RECLEN_DIRENT 1" >>confdefs.h
10358 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "#include <sys/types.h>
10360 if test "x$ac_cv_type_ssize_t" = x""yes; then :
10362 $as_echo "#define HAVE_TYPE_SSIZE_T 1" >>confdefs.h
10366 ac_fn_c_check_decl "$LINENO" "llseek" "ac_cv_have_decl_llseek" "#include <unistd.h>
10368 if test "x$ac_cv_have_decl_llseek" = x""yes; then :
10370 $as_echo "#define HAVE_LLSEEK_PROTOTYPE 1" >>confdefs.h
10374 ac_fn_c_check_decl "$LINENO" "lseek64" "ac_cv_have_decl_lseek64" "#define _LARGEFILE_SOURCE
10375 #define _LARGEFILE64_SOURCE
10376 #include <unistd.h>
10378 if test "x$ac_cv_have_decl_lseek64" = x""yes; then :
10380 $as_echo "#define HAVE_LSEEK64_PROTOTYPE 1" >>confdefs.h
10384 # The cast to long int works around a bug in the HP C Compiler
10385 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10386 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10387 # This bug is HP SR number 8606223364.
10388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
10389 $as_echo_n "checking size of short... " >&6; }
10390 if test "${ac_cv_sizeof_short+set}" = set; then :
10391 $as_echo_n "(cached) " >&6
10393 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
10396 if test "$ac_cv_type_short" = yes; then
10397 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10398 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10399 { as_fn_set_status 77
10400 as_fn_error "cannot compute sizeof (short)
10401 See \`config.log' for more details." "$LINENO" 5; }; }
10403 ac_cv_sizeof_short=0
10408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
10409 $as_echo "$ac_cv_sizeof_short" >&6; }
10413 cat >>confdefs.h <<_ACEOF
10414 #define SIZEOF_SHORT $ac_cv_sizeof_short
10418 # The cast to long int works around a bug in the HP C Compiler
10419 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10420 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10421 # This bug is HP SR number 8606223364.
10422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
10423 $as_echo_n "checking size of int... " >&6; }
10424 if test "${ac_cv_sizeof_int+set}" = set; then :
10425 $as_echo_n "(cached) " >&6
10427 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
10430 if test "$ac_cv_type_int" = yes; then
10431 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10432 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10433 { as_fn_set_status 77
10434 as_fn_error "cannot compute sizeof (int)
10435 See \`config.log' for more details." "$LINENO" 5; }; }
10442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
10443 $as_echo "$ac_cv_sizeof_int" >&6; }
10447 cat >>confdefs.h <<_ACEOF
10448 #define SIZEOF_INT $ac_cv_sizeof_int
10452 # The cast to long int works around a bug in the HP C Compiler
10453 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10454 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10455 # This bug is HP SR number 8606223364.
10456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
10457 $as_echo_n "checking size of long... " >&6; }
10458 if test "${ac_cv_sizeof_long+set}" = set; then :
10459 $as_echo_n "(cached) " >&6
10461 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
10464 if test "$ac_cv_type_long" = yes; then
10465 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10466 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10467 { as_fn_set_status 77
10468 as_fn_error "cannot compute sizeof (long)
10469 See \`config.log' for more details." "$LINENO" 5; }; }
10471 ac_cv_sizeof_long=0
10476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
10477 $as_echo "$ac_cv_sizeof_long" >&6; }
10481 cat >>confdefs.h <<_ACEOF
10482 #define SIZEOF_LONG $ac_cv_sizeof_long
10486 # The cast to long int works around a bug in the HP C Compiler
10487 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10488 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10489 # This bug is HP SR number 8606223364.
10490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
10491 $as_echo_n "checking size of long long... " >&6; }
10492 if test "${ac_cv_sizeof_long_long+set}" = set; then :
10493 $as_echo_n "(cached) " >&6
10495 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
10498 if test "$ac_cv_type_long_long" = yes; then
10499 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10500 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10501 { as_fn_set_status 77
10502 as_fn_error "cannot compute sizeof (long long)
10503 See \`config.log' for more details." "$LINENO" 5; }; }
10505 ac_cv_sizeof_long_long=0
10510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
10511 $as_echo "$ac_cv_sizeof_long_long" >&6; }
10515 cat >>confdefs.h <<_ACEOF
10516 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10520 SIZEOF_SHORT=$ac_cv_sizeof_short
10521 SIZEOF_INT=$ac_cv_sizeof_int
10522 SIZEOF_LONG=$ac_cv_sizeof_long
10523 SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
10528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
10529 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
10530 if test "${ac_cv_c_bigendian+set}" = set; then :
10531 $as_echo_n "(cached) " >&6
10533 ac_cv_c_bigendian=unknown
10534 # See if we're dealing with a universal compiler.
10535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10536 /* end confdefs.h. */
10537 #ifndef __APPLE_CC__
10538 not a universal capable compiler
10543 if ac_fn_c_try_compile "$LINENO"; then :
10545 # Check for potential -arch flags. It is not universal unless
10546 # there are at least two -arch flags with different values.
10549 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
10550 if test -n "$ac_prev"; then
10552 i?86 | x86_64 | ppc | ppc64)
10553 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
10556 ac_cv_c_bigendian=universal
10562 elif test "x$ac_word" = "x-arch"; then
10567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10568 if test $ac_cv_c_bigendian = unknown; then
10569 # See if sys/param.h defines the BYTE_ORDER macro.
10570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10571 /* end confdefs.h. */
10572 #include <sys/types.h>
10573 #include <sys/param.h>
10578 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
10579 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
10581 bogus endian macros
10588 if ac_fn_c_try_compile "$LINENO"; then :
10589 # It does; now see whether it defined to BIG_ENDIAN or not.
10590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10591 /* end confdefs.h. */
10592 #include <sys/types.h>
10593 #include <sys/param.h>
10598 #if BYTE_ORDER != BIG_ENDIAN
10606 if ac_fn_c_try_compile "$LINENO"; then :
10607 ac_cv_c_bigendian=yes
10609 ac_cv_c_bigendian=no
10611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10615 if test $ac_cv_c_bigendian = unknown; then
10616 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
10617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10618 /* end confdefs.h. */
10619 #include <limits.h>
10624 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
10625 bogus endian macros
10632 if ac_fn_c_try_compile "$LINENO"; then :
10633 # It does; now see whether it defined to _BIG_ENDIAN or not.
10634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10635 /* end confdefs.h. */
10636 #include <limits.h>
10641 #ifndef _BIG_ENDIAN
10649 if ac_fn_c_try_compile "$LINENO"; then :
10650 ac_cv_c_bigendian=yes
10652 ac_cv_c_bigendian=no
10654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10658 if test $ac_cv_c_bigendian = unknown; then
10659 # Compile a test program.
10660 if test "$cross_compiling" = yes; then :
10661 # Try to guess by grepping values from an object file.
10662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10663 /* end confdefs.h. */
10664 short int ascii_mm[] =
10665 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
10666 short int ascii_ii[] =
10667 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
10668 int use_ascii (int i) {
10669 return ascii_mm[i] + ascii_ii[i];
10671 short int ebcdic_ii[] =
10672 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
10673 short int ebcdic_mm[] =
10674 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
10675 int use_ebcdic (int i) {
10676 return ebcdic_mm[i] + ebcdic_ii[i];
10683 return use_ascii (foo) == use_ebcdic (foo);
10688 if ac_fn_c_try_compile "$LINENO"; then :
10689 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
10690 ac_cv_c_bigendian=yes
10692 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
10693 if test "$ac_cv_c_bigendian" = unknown; then
10694 ac_cv_c_bigendian=no
10696 # finding both strings is unlikely to happen, but who knows?
10697 ac_cv_c_bigendian=unknown
10701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10704 /* end confdefs.h. */
10705 $ac_includes_default
10710 /* Are we little or big endian? From Harbison&Steele. */
10714 char c[sizeof (long int)];
10717 return u.c[sizeof (long int) - 1] == 1;
10723 if ac_fn_c_try_run "$LINENO"; then :
10724 ac_cv_c_bigendian=no
10726 ac_cv_c_bigendian=yes
10728 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10729 conftest.$ac_objext conftest.beam conftest.$ac_ext
10734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
10735 $as_echo "$ac_cv_c_bigendian" >&6; }
10736 case $ac_cv_c_bigendian in #(
10738 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
10744 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
10748 as_fn_error "unknown endianness
10749 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
10752 BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
10753 ASM_TYPES_HEADER=./asm_types.h
10755 echo "/* These defines are needed for the public ext2fs.h header file */" \
10757 if grep HAVE_SYS_TYPES_H confdefs.h > tmp_config.$$; then
10758 uniq tmp_config.$$ >> public_config.h
10760 echo "#undef HAVE_SYS_TYPES_H" >> public_config.h
10762 if grep WORDS_BIGENDIAN confdefs.h > tmp_config.$$; then
10763 uniq tmp_config.$$ >> public_config.h
10765 echo "#undef WORDS_BIGENDIAN" >> public_config.h
10767 rm -f tmp_config.$$
10768 PUBLIC_CONFIG_HEADER=./public_config.h
10770 for ac_header in inttypes.h
10772 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
10773 if test "x$ac_cv_header_inttypes_h" = x""yes; then :
10774 cat >>confdefs.h <<_ACEOF
10775 #define HAVE_INTTYPES_H 1
10782 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
10783 if test "x$ac_cv_type_intptr_t" = x""yes; then :
10785 cat >>confdefs.h <<_ACEOF
10786 #define HAVE_INTPTR_T 1
10792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat has a st_flags field" >&5
10793 $as_echo_n "checking whether struct stat has a st_flags field... " >&6; }
10794 if test "${e2fsprogs_cv_struct_st_flags+set}" = set; then :
10795 $as_echo_n "(cached) " >&6
10797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10798 /* end confdefs.h. */
10799 #include <sys/stat.h>
10803 struct stat stat; stat.st_flags = 0;
10808 if ac_fn_c_try_compile "$LINENO"; then :
10809 e2fsprogs_cv_struct_st_flags=yes
10811 e2fsprogs_cv_struct_st_flags=no
10813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags" >&5
10817 $as_echo "$e2fsprogs_cv_struct_st_flags" >&6; }
10818 if test "$e2fsprogs_cv_struct_st_flags" = yes; then
10819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether st_flags field is useful" >&5
10820 $as_echo_n "checking whether st_flags field is useful... " >&6; }
10821 if test "${e2fsprogs_cv_struct_st_flags_immut+set}" = set; then :
10822 $as_echo_n "(cached) " >&6
10824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10825 /* end confdefs.h. */
10826 #include <sys/stat.h>
10830 struct stat stat; stat.st_flags |= UF_IMMUTABLE;
10835 if ac_fn_c_try_compile "$LINENO"; then :
10836 e2fsprogs_cv_struct_st_flags_immut=yes
10838 e2fsprogs_cv_struct_st_flags_immut=no
10840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags_immut" >&5
10844 $as_echo "$e2fsprogs_cv_struct_st_flags_immut" >&6; }
10845 if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
10847 $as_echo "#define HAVE_STAT_FLAGS 1" >>confdefs.h
10851 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h>
10852 #include <sys/socket.h>
10854 if test "x$ac_cv_member_struct_sockaddr_sa_len" = x""yes; then :
10856 cat >>confdefs.h <<_ACEOF
10857 #define HAVE_SA_LEN 1
10862 if test -n "$BLKID_CMT"; then
10863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing blkid_probe_all" >&5
10864 $as_echo_n "checking for library containing blkid_probe_all... " >&6; }
10865 if test "${ac_cv_search_blkid_probe_all+set}" = set; then :
10866 $as_echo_n "(cached) " >&6
10868 ac_func_search_save_LIBS=$LIBS
10869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10870 /* end confdefs.h. */
10872 /* Override any GCC internal prototype to avoid an error.
10873 Use char because int might match the return type of a GCC
10874 builtin and then its argument prototype would still apply. */
10878 char blkid_probe_all ();
10882 return blkid_probe_all ();
10887 for ac_lib in '' blkid; do
10888 if test -z "$ac_lib"; then
10889 ac_res="none required"
10892 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10894 if ac_fn_c_try_link "$LINENO"; then :
10895 ac_cv_search_blkid_probe_all=$ac_res
10897 rm -f core conftest.err conftest.$ac_objext \
10899 if test "${ac_cv_search_blkid_probe_all+set}" = set; then :
10903 if test "${ac_cv_search_blkid_probe_all+set}" = set; then :
10906 ac_cv_search_blkid_probe_all=no
10908 rm conftest.$ac_ext
10909 LIBS=$ac_func_search_save_LIBS
10911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_blkid_probe_all" >&5
10912 $as_echo "$ac_cv_search_blkid_probe_all" >&6; }
10913 ac_res=$ac_cv_search_blkid_probe_all
10914 if test "$ac_res" != no; then :
10915 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10920 for ac_func in __secure_getenv backtrace blkid_probe_get_topology chflags fallocate fallocate64 fchown fdatasync fstat64 ftruncate64 getdtablesize getmntinfo getpwuid_r getrlimit getrusage jrand48 llseek lseek64 mallinfo mbstowcs memalign mmap msync nanosleep open64 pathconf posix_fadvise posix_memalign prctl setmntent setresgid setresuid srandom strcasecmp strdup strnlen strptime strtoull sync_file_range sysconf usleep utime valloc
10922 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10923 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10924 eval as_val=\$$as_ac_var
10925 if test "x$as_val" = x""yes; then :
10926 cat >>confdefs.h <<_ACEOF
10927 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
10935 $as_echo_n "checking for socket in -lsocket... " >&6; }
10936 if test "${ac_cv_lib_socket_socket+set}" = set; then :
10937 $as_echo_n "(cached) " >&6
10939 ac_check_lib_save_LIBS=$LIBS
10940 LIBS="-lsocket $LIBS"
10941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10942 /* end confdefs.h. */
10944 /* Override any GCC internal prototype to avoid an error.
10945 Use char because int might match the return type of a GCC
10946 builtin and then its argument prototype would still apply. */
10959 if ac_fn_c_try_link "$LINENO"; then :
10960 ac_cv_lib_socket_socket=yes
10962 ac_cv_lib_socket_socket=no
10964 rm -f core conftest.err conftest.$ac_objext \
10965 conftest$ac_exeext conftest.$ac_ext
10966 LIBS=$ac_check_lib_save_LIBS
10968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
10969 $as_echo "$ac_cv_lib_socket_socket" >&6; }
10970 if test "x$ac_cv_lib_socket_socket" = x""yes; then :
10971 SOCKET_LIB=-lsocket
10975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for optreset" >&5
10976 $as_echo_n "checking for optreset... " >&6; }
10977 if test "${ac_cv_have_optreset+set}" = set; then :
10978 $as_echo_n "(cached) " >&6
10980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10981 /* end confdefs.h. */
10982 #include <unistd.h>
10985 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10986 $EGREP "optreset" >/dev/null 2>&1; then :
10987 ac_cv_have_optreset=yes
10989 ac_cv_have_optreset=no
10994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_optreset" >&5
10995 $as_echo "$ac_cv_have_optreset" >&6; }
10996 if test $ac_cv_have_optreset = yes; then
10998 $as_echo "#define HAVE_OPTRESET 1" >>confdefs.h
11003 ac_fn_c_check_func "$LINENO" "sem_init" "ac_cv_func_sem_init"
11004 if test "x$ac_cv_func_sem_init" = x""yes; then :
11007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lpthread" >&5
11008 $as_echo_n "checking for sem_init in -lpthread... " >&6; }
11009 if test "${ac_cv_lib_pthread_sem_init+set}" = set; then :
11010 $as_echo_n "(cached) " >&6
11012 ac_check_lib_save_LIBS=$LIBS
11013 LIBS="-lpthread $LIBS"
11014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11015 /* end confdefs.h. */
11017 /* Override any GCC internal prototype to avoid an error.
11018 Use char because int might match the return type of a GCC
11019 builtin and then its argument prototype would still apply. */
11027 return sem_init ();
11032 if ac_fn_c_try_link "$LINENO"; then :
11033 ac_cv_lib_pthread_sem_init=yes
11035 ac_cv_lib_pthread_sem_init=no
11037 rm -f core conftest.err conftest.$ac_objext \
11038 conftest$ac_exeext conftest.$ac_ext
11039 LIBS=$ac_check_lib_save_LIBS
11041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_sem_init" >&5
11042 $as_echo "$ac_cv_lib_pthread_sem_init" >&6; }
11043 if test "x$ac_cv_lib_pthread_sem_init" = x""yes; then :
11044 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
11046 SEM_INIT_LIB=-lpthread
11048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lrt" >&5
11049 $as_echo_n "checking for sem_init in -lrt... " >&6; }
11050 if test "${ac_cv_lib_rt_sem_init+set}" = set; then :
11051 $as_echo_n "(cached) " >&6
11053 ac_check_lib_save_LIBS=$LIBS
11055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11056 /* end confdefs.h. */
11058 /* Override any GCC internal prototype to avoid an error.
11059 Use char because int might match the return type of a GCC
11060 builtin and then its argument prototype would still apply. */
11068 return sem_init ();
11073 if ac_fn_c_try_link "$LINENO"; then :
11074 ac_cv_lib_rt_sem_init=yes
11076 ac_cv_lib_rt_sem_init=no
11078 rm -f core conftest.err conftest.$ac_objext \
11079 conftest$ac_exeext conftest.$ac_ext
11080 LIBS=$ac_check_lib_save_LIBS
11082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sem_init" >&5
11083 $as_echo "$ac_cv_lib_rt_sem_init" >&6; }
11084 if test "x$ac_cv_lib_rt_sem_init" = x""yes; then :
11085 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
11089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lposix4" >&5
11090 $as_echo_n "checking for sem_init in -lposix4... " >&6; }
11091 if test "${ac_cv_lib_posix4_sem_init+set}" = set; then :
11092 $as_echo_n "(cached) " >&6
11094 ac_check_lib_save_LIBS=$LIBS
11095 LIBS="-lposix4 $LIBS"
11096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11097 /* end confdefs.h. */
11099 /* Override any GCC internal prototype to avoid an error.
11100 Use char because int might match the return type of a GCC
11101 builtin and then its argument prototype would still apply. */
11109 return sem_init ();
11114 if ac_fn_c_try_link "$LINENO"; then :
11115 ac_cv_lib_posix4_sem_init=yes
11117 ac_cv_lib_posix4_sem_init=no
11119 rm -f core conftest.err conftest.$ac_objext \
11120 conftest$ac_exeext conftest.$ac_ext
11121 LIBS=$ac_check_lib_save_LIBS
11123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sem_init" >&5
11124 $as_echo "$ac_cv_lib_posix4_sem_init" >&6; }
11125 if test "x$ac_cv_lib_posix4_sem_init" = x""yes; then :
11126 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
11128 SEM_INIT_LIB=-lposix4
11137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unified diff option" >&5
11138 $as_echo_n "checking for unified diff option... " >&6; }
11139 if diff -u $0 $0 > /dev/null 2>&1 ; then
11144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNI_DIFF_OPTS" >&5
11145 $as_echo "$UNI_DIFF_OPTS" >&6; }
11150 $as_echo "#define HAVE_EXT2_IOCTLS 1" >>confdefs.h
11170 linux* | gnu* | k*bsd*-gnu)
11171 if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
11173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, root_prefix defaults to ''" >&5
11174 $as_echo "On $host_os systems, root_prefix defaults to ''" >&6; }
11179 linux* | gnu* | k*bsd*-gnu)
11180 if test "$prefix" = NONE ; then
11182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, prefix defaults to /usr" >&5
11183 $as_echo "On $host_os systems, prefix defaults to /usr" >&6; }
11184 if test "$mandir" = '${prefix}/man' ; then
11185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ...and mandir defaults to /usr/share/man" >&5
11186 $as_echo "...and mandir defaults to /usr/share/man" >&6; }
11187 mandir=/usr/share/man
11192 if test "$root_prefix" = NONE ; then
11193 if test "$prefix" = NONE ; then
11194 root_prefix="$ac_default_prefix"
11196 root_prefix="$prefix"
11198 root_bindir=$bindir
11199 root_sbindir=$sbindir
11200 root_libdir=$libdir
11201 root_sysconfdir=$sysconfdir
11203 root_bindir='${root_prefix}/bin'
11204 root_sbindir='${root_prefix}/sbin'
11205 root_libdir='${root_prefix}/lib'
11206 root_sysconfdir='${root_prefix}/etc'
11208 if test "$bindir" != '${exec_prefix}/bin'; then
11209 root_bindir=$bindir
11210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_bindir to $root_bindir" >&5
11211 $as_echo "Setting root_bindir to $root_bindir" >&6; }
11213 if test "$sbindir" != '${exec_prefix}/sbin'; then
11214 root_sbindir=$sbindir
11215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sbindir to $root_sbindir" >&5
11216 $as_echo "Setting root_sbindir to $root_sbindir" >&6; }
11218 if test "$libdir" != '${exec_prefix}/lib'; then
11219 root_libdir=$libdir
11220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_libdir to $root_libdir" >&5
11221 $as_echo "Setting root_libdir to $root_libdir" >&6; }
11223 if test "$sysconfdir" != '${prefix}/etc'; then
11224 root_sysconfdir=$sysconfdir
11225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sysconfdir to $root_sysconfdir" >&5
11226 $as_echo "Setting root_sysconfdir to $root_sysconfdir" >&6; }
11234 # Check whether --with-multiarch was given.
11235 if test "${with_multiarch+set}" = set; then :
11236 withval=$with_multiarch; libdir=$libdir/$withval
11237 root_libdir=$root_libdir/$withval
11240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linker accepts -static" >&5
11241 $as_echo_n "checking whether linker accepts -static... " >&6; }
11242 if test "${ac_cv_e2fsprogs_use_static+set}" = set; then :
11243 $as_echo_n "(cached) " >&6
11245 SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static"
11246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11247 /* end confdefs.h. */
11257 if ac_fn_c_try_link "$LINENO"; then :
11258 ac_cv_e2fsprogs_use_static=yes
11260 ac_cv_e2fsprogs_use_static=no
11262 rm -f core conftest.err conftest.$ac_objext \
11263 conftest$ac_exeext conftest.$ac_ext
11264 LDFLAGS=$SAVE_LDFLAGS
11269 ac_cv_e2fsprogs_use_static=no
11272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_e2fsprogs_use_static" >&5
11273 $as_echo "$ac_cv_e2fsprogs_use_static" >&6; }
11275 if test $ac_cv_e2fsprogs_use_static = yes; then
11276 LDFLAG_STATIC=-static
11281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using Apple Darwin / GNU libintl workaround" >&5
11282 $as_echo "Using Apple Darwin / GNU libintl workaround" >&6; }
11284 $as_echo "#define _INTL_REDIRECT_MACROS 1" >>confdefs.h
11288 SS_DIR=`cd ${srcdir}/lib/ss; pwd`
11289 ET_DIR=`cd ${srcdir}/lib/et; pwd`
11292 if test "$cross_compiling" = yes ; then
11295 DO_TEST_SUITE=check
11298 INCLUDES='-I. -I$(top_builddir)/lib -I$(top_srcdir)/lib'
11299 if test -n "$CPPFLAGS" ; then
11300 INCLUDES="$INCLUDES $CPPFLAGS"
11302 if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
11303 INCLUDES=$INCLUDES' -I$(top_builddir)/intl -I$(top_srcdir)/intl'
11306 if test $cross_compiling = no; then
11307 BUILD_CFLAGS="$CFLAGS"
11308 BUILD_LDFLAGS="$LDFLAGS"
11315 test -d lib || mkdir lib
11316 test -d include || mkdir include
11317 test -d include/linux || mkdir include/linux
11318 test -d include/asm || mkdir include/asm
11319 for i in MCONFIG Makefile e2fsprogs.spec \
11320 e2fsprogs-RHEL-6.spec \
11321 e2fsprogs-SUSE_LINUX-11.spec \
11322 util/Makefile util/subst.conf util/gen-tarball util/install-symlink \
11323 lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \
11324 lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \
11325 lib/uuid/Makefile lib/uuid/uuid_types.h \
11326 lib/blkid/Makefile lib/blkid/blkid_types.h lib/quota/Makefile \
11327 lib/ss/ss.pc lib/uuid/uuid.pc lib/et/com_err.pc \
11328 lib/e2p/e2p.pc lib/blkid/blkid.pc lib/ext2fs/ext2fs.pc \
11329 misc/Makefile ext2ed/Makefile e2fsck/Makefile \
11330 debugfs/Makefile tests/Makefile tests/progs/Makefile \
11331 resize/Makefile doc/Makefile intl/Makefile \
11332 intl/libgnuintl.h po/Makefile.in ; do
11333 if test -d `dirname ${srcdir}/$i` ; then
11334 outlist="$outlist $i"
11337 ac_config_files="$ac_config_files $outlist"
11339 cat >confcache <<\_ACEOF
11340 # This file is a shell script that caches the results of configure
11341 # tests run on this system so they can be shared between configure
11342 # scripts and configure runs, see configure's option --config-cache.
11343 # It is not useful on other systems. If it contains results you don't
11344 # want to keep, you may remove or edit it.
11346 # config.status only pays attention to the cache file if you give it
11347 # the --recheck option to rerun configure.
11349 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11350 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11351 # following values.
11355 # The following way of writing the cache mishandles newlines in values,
11356 # but we know of no workaround that is simple, portable, and efficient.
11357 # So, we kill variables containing newlines.
11358 # Ultrix sh set writes to stderr and can't be redirected directly,
11359 # and sets the high bit in the cache file unless we assign to the vars.
11361 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11362 eval ac_val=\$$ac_var
11366 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11367 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11370 _ | IFS | as_nl) ;; #(
11371 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11372 *) { eval $ac_var=; unset $ac_var;} ;;
11378 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11379 *${as_nl}ac_space=\ *)
11380 # `set' does not quote correctly, so add quotes: double-quote
11381 # substitution turns \\\\ into \\, and sed turns \\ into \.
11384 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11387 # `set' quotes correctly as required by POSIX, so do not add quotes.
11388 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11397 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11399 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11401 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11402 if test -w "$cache_file"; then
11403 test "x$cache_file" != "x/dev/null" &&
11404 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11405 $as_echo "$as_me: updating cache $cache_file" >&6;}
11406 cat confcache >$cache_file
11408 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11409 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11414 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11415 # Let make expand exec_prefix.
11416 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11418 DEFS=-DHAVE_CONFIG_H
11422 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11423 # 1. Remove the extension, and $U if already installed.
11424 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11425 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11426 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11427 # will be set to the directory where LIBOBJS objects are built.
11428 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11429 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11431 LIBOBJS=$ac_libobjs
11433 LTLIBOBJS=$ac_ltlibobjs
11438 : ${CONFIG_STATUS=./config.status}
11440 ac_clean_files_save=$ac_clean_files
11441 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11442 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11443 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11445 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11447 # Generated by $as_me.
11448 # Run this file to recreate the current configuration.
11449 # Compiler output produced by configure, useful for debugging
11450 # configure, is in config.log if it exists.
11453 ac_cs_recheck=false
11456 SHELL=\${CONFIG_SHELL-$SHELL}
11459 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11460 ## -------------------- ##
11461 ## M4sh Initialization. ##
11462 ## -------------------- ##
11464 # Be more Bourne compatible
11465 DUALCASE=1; export DUALCASE # for MKS sh
11466 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11469 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11470 # is contrary to our usage. Disable this feature.
11471 alias -g '${1+"$@"}'='"$@"'
11472 setopt NO_GLOB_SUBST
11474 case `(set -o) 2>/dev/null` in #(
11486 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11487 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11488 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11489 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11490 # Prefer a ksh shell builtin over an external printf program on Solaris,
11491 # but without wasting forks for bash or zsh.
11492 if test -z "$BASH_VERSION$ZSH_VERSION" \
11493 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11494 as_echo='print -r --'
11495 as_echo_n='print -rn --'
11496 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11497 as_echo='printf %s\n'
11498 as_echo_n='printf %s'
11500 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11501 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11502 as_echo_n='/usr/ucb/echo -n'
11504 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11505 as_echo_n_body='eval
11509 expr "X$arg" : "X\\(.*\\)$as_nl";
11510 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11512 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11514 export as_echo_n_body
11515 as_echo_n='sh -c $as_echo_n_body as_echo'
11517 export as_echo_body
11518 as_echo='sh -c $as_echo_body as_echo'
11521 # The user is always right.
11522 if test "${PATH_SEPARATOR+set}" != set; then
11524 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11525 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11532 # We need space, tab and new line, in precisely that order. Quoting is
11533 # there to prevent editors from complaining about space-tab.
11534 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11535 # splitting by setting IFS to empty value.)
11538 # Find who we are. Look in the path if we contain no directory separator.
11540 *[\\/]* ) as_myself=$0 ;;
11541 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11542 for as_dir in $PATH
11545 test -z "$as_dir" && as_dir=.
11546 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11552 # We did not find ourselves, most probably we were run as `sh COMMAND'
11553 # in which case we are not to be found in the path.
11554 if test "x$as_myself" = x; then
11557 if test ! -f "$as_myself"; then
11558 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11562 # Unset variables that we do not need and which cause bugs (e.g. in
11563 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11564 # suppresses any "Segmentation fault" message there. '((' could
11565 # trigger a bug in pdksh 5.2.14.
11566 for as_var in BASH_ENV ENV MAIL MAILPATH
11567 do eval test x\${$as_var+set} = xset \
11568 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11581 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11584 # as_fn_error ERROR [LINENO LOG_FD]
11585 # ---------------------------------
11586 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11587 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11588 # script with status $?, using 1 if that was 0.
11591 as_status=$?; test $as_status -eq 0 && as_status=1
11593 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11594 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
11596 $as_echo "$as_me: error: $1" >&2
11597 as_fn_exit $as_status
11601 # as_fn_set_status STATUS
11602 # -----------------------
11603 # Set $? to STATUS, without forking.
11604 as_fn_set_status ()
11607 } # as_fn_set_status
11609 # as_fn_exit STATUS
11610 # -----------------
11611 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11615 as_fn_set_status $1
11621 # Portably unset VAR.
11624 { eval $1=; unset $1;}
11626 as_unset=as_fn_unset
11627 # as_fn_append VAR VALUE
11628 # ----------------------
11629 # Append the text in VALUE to the end of the definition contained in VAR. Take
11630 # advantage of any shell optimizations that allow amortized linear growth over
11631 # repeated appends, instead of the typical quadratic growth present in naive
11633 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11634 eval 'as_fn_append ()
11645 # as_fn_arith ARG...
11646 # ------------------
11647 # Perform arithmetic evaluation on the ARGs, and store the result in the
11648 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11649 # must be portable across $(()) and expr.
11650 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11651 eval 'as_fn_arith ()
11658 as_val=`expr "$@" || test $? -eq 1`
11663 if expr a : '\(a\)' >/dev/null 2>&1 &&
11664 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11670 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11671 as_basename=basename
11676 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11682 as_me=`$as_basename -- "$0" ||
11683 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11684 X"$0" : 'X\(//\)$' \| \
11685 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11687 sed '/^.*\/\([^/][^/]*\)\/*$/{
11701 # Avoid depending upon Character Ranges.
11702 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11703 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11704 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11705 as_cr_digits='0123456789'
11706 as_cr_alnum=$as_cr_Letters$as_cr_digits
11708 ECHO_C= ECHO_N= ECHO_T=
11709 case `echo -n x` in #(((((
11711 case `echo 'xy\c'` in
11712 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11714 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11721 rm -f conf$$ conf$$.exe conf$$.file
11722 if test -d conf$$.dir; then
11723 rm -f conf$$.dir/conf$$.file
11726 mkdir conf$$.dir 2>/dev/null
11728 if (echo >conf$$.file) 2>/dev/null; then
11729 if ln -s conf$$.file conf$$ 2>/dev/null; then
11731 # ... but there are two gotchas:
11732 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11733 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11734 # In both cases, we have to default to `cp -p'.
11735 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11737 elif ln conf$$.file conf$$ 2>/dev/null; then
11745 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11746 rmdir conf$$.dir 2>/dev/null
11751 # Create "$as_dir" as a directory, including parents if necessary.
11756 -*) as_dir=./$as_dir;;
11758 test -d "$as_dir" || eval $as_mkdir_p || {
11762 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11763 *) as_qdir=$as_dir;;
11765 as_dirs="'$as_qdir' $as_dirs"
11766 as_dir=`$as_dirname -- "$as_dir" ||
11767 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11768 X"$as_dir" : 'X\(//\)[^/]' \| \
11769 X"$as_dir" : 'X\(//\)$' \| \
11770 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11771 $as_echo X"$as_dir" |
11772 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11776 /^X\(\/\/\)[^/].*/{
11789 test -d "$as_dir" && break
11791 test -z "$as_dirs" || eval "mkdir $as_dirs"
11792 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
11796 if mkdir -p . 2>/dev/null; then
11797 as_mkdir_p='mkdir -p "$as_dir"'
11799 test -d ./-p && rmdir ./-p
11803 if test -x / >/dev/null 2>&1; then
11804 as_test_x='test -x'
11806 if ls -dL / >/dev/null 2>&1; then
11813 if test -d "$1"; then
11819 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
11820 ???[sx]*):;;*)false;;esac;fi
11824 as_executable_p=$as_test_x
11826 # Sed expression to map a string onto a valid CPP name.
11827 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11829 # Sed expression to map a string onto a valid variable name.
11830 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11834 ## ----------------------------------- ##
11835 ## Main body of $CONFIG_STATUS script. ##
11836 ## ----------------------------------- ##
11838 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11840 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11841 # Save the log message, to keep $0 and so on meaningful, and to
11842 # report actual input values of CONFIG_FILES etc. instead of their
11843 # values after options handling.
11845 This file was extended by $as_me, which was
11846 generated by GNU Autoconf 2.65. Invocation command line was
11848 CONFIG_FILES = $CONFIG_FILES
11849 CONFIG_HEADERS = $CONFIG_HEADERS
11850 CONFIG_LINKS = $CONFIG_LINKS
11851 CONFIG_COMMANDS = $CONFIG_COMMANDS
11854 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11859 case $ac_config_files in *"
11860 "*) set x $ac_config_files; shift; ac_config_files=$*;;
11863 case $ac_config_headers in *"
11864 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11868 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11869 # Files that config.status was made for.
11870 config_files="$ac_config_files"
11871 config_headers="$ac_config_headers"
11872 config_commands="$ac_config_commands"
11876 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11878 \`$as_me' instantiates files and other configuration actions
11879 from templates according to the current configuration. Unless the files
11880 and actions are specified as TAGs, all are instantiated by default.
11882 Usage: $0 [OPTION]... [TAG]...
11884 -h, --help print this help, then exit
11885 -V, --version print version number and configuration settings, then exit
11886 --config print configuration, then exit
11887 -q, --quiet, --silent
11888 do not print progress messages
11889 -d, --debug don't remove temporary files
11890 --recheck update $as_me by reconfiguring in the same conditions
11891 --file=FILE[:TEMPLATE]
11892 instantiate the configuration file FILE
11893 --header=FILE[:TEMPLATE]
11894 instantiate the configuration header FILE
11896 Configuration files:
11899 Configuration headers:
11902 Configuration commands:
11905 Report bugs to the package provider."
11908 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11909 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11912 configured by $0, generated by GNU Autoconf 2.65,
11913 with options \\"\$ac_cs_config\\"
11915 Copyright (C) 2009 Free Software Foundation, Inc.
11916 This config.status script is free software; the Free Software Foundation
11917 gives unlimited permission to copy, distribute and modify it."
11923 test -n "\$AWK" || AWK=awk
11926 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11927 # The default lists apply if the user does not specify any file.
11933 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11934 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11945 # Handling of the options.
11946 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11948 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11949 $as_echo "$ac_cs_version"; exit ;;
11950 --config | --confi | --conf | --con | --co | --c )
11951 $as_echo "$ac_cs_config"; exit ;;
11952 --debug | --debu | --deb | --de | --d | -d )
11954 --file | --fil | --fi | --f )
11957 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11959 as_fn_append CONFIG_FILES " '$ac_optarg'"
11960 ac_need_defaults=false;;
11961 --header | --heade | --head | --hea )
11964 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11966 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11967 ac_need_defaults=false;;
11969 # Conflict between --help and --header
11970 as_fn_error "ambiguous option: \`$1'
11971 Try \`$0 --help' for more information.";;
11972 --help | --hel | -h )
11973 $as_echo "$ac_cs_usage"; exit ;;
11974 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11975 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11978 # This is an error.
11979 -*) as_fn_error "unrecognized option: \`$1'
11980 Try \`$0 --help' for more information." ;;
11982 *) as_fn_append ac_config_targets " $1"
11983 ac_need_defaults=false ;;
11989 ac_configure_extra_args=
11991 if $ac_cs_silent; then
11993 ac_configure_extra_args="$ac_configure_extra_args --silent"
11997 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11998 if \$ac_cs_recheck; then
11999 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12001 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12002 CONFIG_SHELL='$SHELL'
12003 export CONFIG_SHELL
12008 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12012 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12013 ## Running $as_me. ##
12019 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12023 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
12024 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
12026 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
12027 # Capture the value of LINGUAS because we need it to compute CATALOGS.
12028 LINGUAS="${LINGUAS-%UNSET%}"
12033 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12035 # Handling of arguments.
12036 for ac_config_target in $ac_config_targets
12038 case $ac_config_target in
12039 "lib/config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/config.h" ;;
12040 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
12041 "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;;
12043 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12048 # If the user did not use the arguments to specify the items to instantiate,
12049 # then the envvar interface is used. Set only those that are not.
12050 # We use the long form for the default assignment because of an extremely
12051 # bizarre bug on SunOS 4.1.3.
12052 if $ac_need_defaults; then
12053 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12054 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12055 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12058 # Have a temporary directory for convenience. Make it in the build tree
12059 # simply because there is no reason against having it here, and in addition,
12060 # creating and moving files from /tmp can sometimes cause problems.
12061 # Hook for its removal unless debugging.
12062 # Note that there is a small window in which the directory will not be cleaned:
12063 # after its creation but before its name has been assigned to `$tmp'.
12067 trap 'exit_status=$?
12068 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
12070 trap 'as_fn_exit 1' 1 2 13 15
12072 # Create a (secure) tmp directory for tmp files.
12075 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12076 test -n "$tmp" && test -d "$tmp"
12079 tmp=./conf$$-$RANDOM
12080 (umask 077 && mkdir "$tmp")
12081 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
12083 # Set up the scripts for CONFIG_FILES section.
12084 # No need to generate them if there are no CONFIG_FILES.
12085 # This happens for instance with `./config.status config.h'.
12086 if test -n "$CONFIG_FILES"; then
12088 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
12089 ac_cs_awk_getline=:
12090 ac_cs_awk_pipe_init=
12091 ac_cs_awk_read_file='
12092 while ((getline aline < (F[key])) > 0)
12095 ac_cs_awk_pipe_fini=
12097 ac_cs_awk_getline=false
12098 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
12099 ac_cs_awk_read_file='
12101 print "cat " F[key] " &&"
12102 '$ac_cs_awk_pipe_init
12103 # The final `:' finishes the AND list.
12104 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
12106 ac_cr=`echo X | tr X '\015'`
12107 # On cygwin, bash can eat \r inside `` if the user requested igncr.
12108 # But we know of no other shell where ac_cr would be empty at this
12109 # point, so we can use a bashism as a fallback.
12110 if test "x$ac_cr" = x; then
12111 eval ac_cr=\$\'\\r\'
12113 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12114 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12117 ac_cs_awk_cr=$ac_cr
12120 echo 'BEGIN {' >"$tmp/subs1.awk" &&
12123 # Create commands to substitute file output variables.
12125 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
12126 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
12127 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
12130 } >conf$$files.sh &&
12131 . ./conf$$files.sh ||
12132 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
12133 rm -f conf$$files.sh
12136 echo "cat >conf$$subs.awk <<_ACEOF" &&
12137 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12139 } >conf$$subs.sh ||
12140 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
12141 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
12143 for ac_last_try in false false false false false :; do
12144 . ./conf$$subs.sh ||
12145 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
12147 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12148 if test $ac_delim_n = $ac_delim_num; then
12150 elif $ac_last_try; then
12151 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
12153 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12156 rm -f conf$$subs.sh
12158 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12159 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
12163 s/^/S["/; s/!.*/"]=/
12173 s/\(.\{148\}\)..*/\1/
12175 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12180 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12187 s/\(.\{148\}\)..*/\1/
12189 s/["\\]/\\&/g; s/^/"/; s/$/"/
12193 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12198 ' <conf$$subs.awk | sed '
12203 ' >>$CONFIG_STATUS || ac_write_fail=1
12204 rm -f conf$$subs.awk
12205 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12207 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
12208 for (key in S) S_is_set[key] = 1
12210 \$ac_cs_awk_pipe_init
12214 nfields = split(line, field, "@")
12216 len = length(field[1])
12217 for (i = 2; i < nfields; i++) {
12219 keylen = length(key)
12220 if (S_is_set[key]) {
12222 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12223 len += length(value) + length(field[++i])
12228 if (nfields == 3 && !substed) {
12230 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
12231 \$ac_cs_awk_read_file
12237 \$ac_cs_awk_pipe_fini
12240 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12241 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12242 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12245 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
12246 || as_fn_error "could not setup config files machinery" "$LINENO" 5
12249 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12250 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12251 # trailing colons and then remove the whole line if VPATH becomes empty
12252 # (actually we leave an empty line to preserve line numbers).
12253 if test "x$srcdir" = x.; then
12254 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12255 s/:*\$(srcdir):*/:/
12256 s/:*\${srcdir}:*/:/
12258 s/^\([^=]*=[ ]*\):*/\1/
12264 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12265 fi # test -n "$CONFIG_FILES"
12267 # Set up the scripts for CONFIG_HEADERS section.
12268 # No need to generate them if there are no CONFIG_HEADERS.
12269 # This happens for instance with `./config.status Makefile'.
12270 if test -n "$CONFIG_HEADERS"; then
12271 cat >"$tmp/defines.awk" <<\_ACAWK ||
12275 # Transform confdefs.h into an awk script `defines.awk', embedded as
12276 # here-document in config.status, that substitutes the proper values into
12277 # config.h.in to produce config.h.
12279 # Create a delimiter string that does not exist in confdefs.h, to ease
12280 # handling of long lines.
12282 for ac_last_try in false false :; do
12283 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
12284 if test -z "$ac_t"; then
12286 elif $ac_last_try; then
12287 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
12289 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12293 # For the awk script, D is an array of macro values keyed by name,
12294 # likewise P contains macro parameters if any. Preserve backslash
12295 # newline sequences.
12297 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12299 s/.\{148\}/&'"$ac_delim"'/g
12302 s/^[ ]*#[ ]*define[ ][ ]*/ /
12309 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12311 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12315 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12316 D["\1"]=" \3\\\\\\n"\\/p
12318 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12323 s/.\{148\}/&'"$ac_delim"'/g
12328 s/["\\]/\\&/g; s/^/"/; s/$/"/p
12331 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12333 ' <confdefs.h | sed '
12334 s/'"$ac_delim"'/"\\\
12335 "/g' >>$CONFIG_STATUS || ac_write_fail=1
12337 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12338 for (key in D) D_is_set[key] = 1
12341 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12343 split(line, arg, " ")
12344 if (arg[1] == "#") {
12348 defundef = substr(arg[1], 2)
12351 split(mac1, mac2, "(") #)
12353 prefix = substr(line, 1, index(line, defundef) - 1)
12354 if (D_is_set[macro]) {
12355 # Preserve the white space surrounding the "#".
12356 print prefix "define", macro P[macro] D[macro]
12359 # Replace #undef with comments. This is necessary, for example,
12360 # in the case of _POSIX_SOURCE, which is predefined and required
12361 # on some systems where configure will not decide to define it.
12362 if (defundef == "undef") {
12363 print "/*", prefix defundef, macro, "*/"
12371 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12372 as_fn_error "could not setup config headers machinery" "$LINENO" 5
12373 fi # test -n "$CONFIG_HEADERS"
12376 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
12381 :[FHLC]) ac_mode=$ac_tag; continue;;
12383 case $ac_mode$ac_tag in
12385 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
12386 :[FH]-) ac_tag=-:-;;
12387 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12404 -) ac_f="$tmp/stdin";;
12405 *) # Look for the file first in the build tree, then in the source tree
12406 # (if the path is not absolute). The absolute path cannot be DOS-style,
12407 # because $ac_f cannot contain `:'.
12411 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12413 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12415 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12416 as_fn_append ac_file_inputs " '$ac_f'"
12419 # Let's still pretend it is `configure' which instantiates (i.e., don't
12420 # use $as_me), people would be surprised to read:
12421 # /* config.h. Generated by config.status. */
12422 configure_input='Generated from '`
12423 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12425 if test x"$ac_file" != x-; then
12426 configure_input="$ac_file. $configure_input"
12427 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12428 $as_echo "$as_me: creating $ac_file" >&6;}
12430 # Neutralize special characters interpreted by sed in replacement strings.
12431 case $configure_input in #(
12432 *\&* | *\|* | *\\* )
12433 ac_sed_conf_input=`$as_echo "$configure_input" |
12434 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12435 *) ac_sed_conf_input=$configure_input;;
12439 *:-:* | *:-) cat >"$tmp/stdin" \
12440 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
12445 ac_dir=`$as_dirname -- "$ac_file" ||
12446 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12447 X"$ac_file" : 'X\(//\)[^/]' \| \
12448 X"$ac_file" : 'X\(//\)$' \| \
12449 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12450 $as_echo X"$ac_file" |
12451 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12455 /^X\(\/\/\)[^/].*/{
12468 as_dir="$ac_dir"; as_fn_mkdir_p
12472 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12474 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12475 # A ".." for each directory in $ac_dir_suffix.
12476 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12477 case $ac_top_builddir_sub in
12478 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12479 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12482 ac_abs_top_builddir=$ac_pwd
12483 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12484 # for backward compatibility:
12485 ac_top_builddir=$ac_top_build_prefix
12488 .) # We are building in place.
12490 ac_top_srcdir=$ac_top_builddir_sub
12491 ac_abs_top_srcdir=$ac_pwd ;;
12492 [\\/]* | ?:[\\/]* ) # Absolute name.
12493 ac_srcdir=$srcdir$ac_dir_suffix;
12494 ac_top_srcdir=$srcdir
12495 ac_abs_top_srcdir=$srcdir ;;
12496 *) # Relative name.
12497 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12498 ac_top_srcdir=$ac_top_build_prefix$srcdir
12499 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12501 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12511 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12512 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12516 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12517 # If the template does not know about datarootdir, expand it.
12518 # FIXME: This hack should be removed a few years after 2.60.
12519 ac_datarootdir_hack=; ac_datarootdir_seen=
12530 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12531 *datarootdir*) ac_datarootdir_seen=yes;;
12532 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12533 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12534 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12536 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12537 ac_datarootdir_hack='
12538 s&@datadir@&$datadir&g
12539 s&@docdir@&$docdir&g
12540 s&@infodir@&$infodir&g
12541 s&@localedir@&$localedir&g
12542 s&@mandir@&$mandir&g
12543 s&\\\${datarootdir}&$datarootdir&g' ;;
12547 # Neutralize VPATH when `$srcdir' = `.'.
12548 # Shell code in configure.ac might set extrasub.
12549 # FIXME: do we really want to maintain this feature?
12550 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12551 ac_sed_extra="$ac_vpsub
12554 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12556 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12557 s|@configure_input@|$ac_sed_conf_input|;t t
12558 s&@top_builddir@&$ac_top_builddir_sub&;t t
12559 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12560 s&@srcdir@&$ac_srcdir&;t t
12561 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12562 s&@top_srcdir@&$ac_top_srcdir&;t t
12563 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12564 s&@builddir@&$ac_builddir&;t t
12565 s&@abs_builddir@&$ac_abs_builddir&;t t
12566 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12567 s&@INSTALL@&$ac_INSTALL&;t t
12568 $ac_datarootdir_hack
12570 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
12571 if $ac_cs_awk_getline; then
12572 $AWK -f "$tmp/subs.awk"
12574 $AWK -f "$tmp/subs.awk" | $SHELL
12576 || as_fn_error "could not create $ac_file" "$LINENO" 5
12578 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12579 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
12580 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
12581 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12582 which seems to be undefined. Please make sure it is defined." >&5
12583 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12584 which seems to be undefined. Please make sure it is defined." >&2;}
12588 -) cat "$tmp/out" && rm -f "$tmp/out";;
12589 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
12591 || as_fn_error "could not create $ac_file" "$LINENO" 5
12597 if test x"$ac_file" != x-; then
12599 $as_echo "/* $configure_input */" \
12600 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
12601 } >"$tmp/config.h" \
12602 || as_fn_error "could not create $ac_file" "$LINENO" 5
12603 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
12604 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12605 $as_echo "$as_me: $ac_file is unchanged" >&6;}
12608 mv "$tmp/config.h" "$ac_file" \
12609 || as_fn_error "could not create $ac_file" "$LINENO" 5
12612 $as_echo "/* $configure_input */" \
12613 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
12614 || as_fn_error "could not create -" "$LINENO" 5
12618 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12619 $as_echo "$as_me: executing $ac_file commands" >&6;}
12624 case $ac_file$ac_mode in
12626 for ac_file in $CONFIG_FILES; do
12627 # Support "outfile[:infile[:infile...]]"
12629 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
12631 # PO directories have a Makefile.in generated from Makefile.in.in.
12632 case "$ac_file" in */Makefile.in)
12633 # Adjust a relative srcdir.
12634 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
12635 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
12636 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
12637 # In autoconf-2.13 it is called $ac_given_srcdir.
12638 # In autoconf-2.50 it is called $srcdir.
12639 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
12640 case "$ac_given_srcdir" in
12641 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
12642 /*) top_srcdir="$ac_given_srcdir" ;;
12643 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
12645 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
12646 rm -f "$ac_dir/POTFILES"
12647 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
12648 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
12649 POMAKEFILEDEPS="POTFILES.in"
12650 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
12651 # on $ac_dir but don't depend on user-specified configuration
12653 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
12654 # The LINGUAS file contains the set of available languages.
12655 if test -n "$OBSOLETE_ALL_LINGUAS"; then
12656 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
12658 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
12659 # Hide the ALL_LINGUAS assigment from automake.
12660 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
12661 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
12663 # The set of available languages was given in configure.in.
12664 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
12667 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
12668 # Compute UPDATEPOFILES
12669 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
12670 # Compute DUMMYPOFILES
12671 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
12673 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
12674 case "$ac_given_srcdir" in
12676 *) srcdirpre='$(srcdir)/' ;;
12682 for lang in $ALL_LINGUAS; do
12683 POFILES="$POFILES $srcdirpre$lang.po"
12684 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
12685 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
12686 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
12688 # CATALOGS depends on both $ac_dir and the user's LINGUAS
12689 # environment variable.
12691 if test -n "$ALL_LINGUAS"; then
12692 for presentlang in $ALL_LINGUAS; do
12694 if test "%UNSET%" != "$LINGUAS"; then
12695 desiredlanguages="$LINGUAS"
12697 desiredlanguages="$ALL_LINGUAS"
12699 for desiredlang in $desiredlanguages; do
12700 # Use the presentlang catalog if desiredlang is
12701 # a. equal to presentlang, or
12702 # b. a variant of presentlang (because in this case,
12703 # presentlang can be used as a fallback for messages
12704 # which are not translated in the desiredlang catalog).
12705 case "$desiredlang" in
12706 "$presentlang"*) useit=yes;;
12709 if test $useit = yes; then
12710 INST_LINGUAS="$INST_LINGUAS $presentlang"
12715 if test -n "$INST_LINGUAS"; then
12716 for lang in $INST_LINGUAS; do
12717 CATALOGS="$CATALOGS $lang.gmo"
12720 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
12721 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"
12722 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
12723 if test -f "$f"; then
12725 *.orig | *.bak | *~) ;;
12726 *) cat "$f" >> "$ac_dir/Makefile" ;;
12741 ac_clean_files=$ac_clean_files_save
12743 test $ac_write_fail = 0 ||
12744 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
12747 # configure is writing to config.log, and then calls config.status.
12748 # config.status does its own redirection, appending to config.log.
12749 # Unfortunately, on DOS this fails, as config.log is still kept open
12750 # by configure, so config.status won't be able to write to it; its
12751 # output is simply discarded. So we exec the FD to /dev/null,
12752 # effectively closing config.log, so it can be properly (re)opened and
12753 # appended to by config.status. When coming back to configure, we
12754 # need to make the FD available again.
12755 if test "$no_create" != yes; then
12757 ac_config_status_args=
12758 test "$silent" = yes &&
12759 ac_config_status_args="$ac_config_status_args --quiet"
12761 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12763 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12764 # would make configure fail if this is the last instruction.
12765 $ac_cs_success || as_fn_exit $?
12767 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12768 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12769 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12772 if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi