2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65.
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 as_echo_n='sh -c $as_echo_n_body as_echo'
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
91 # Find who we are. Look in the path if we contain no directory separator.
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x; then
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there. '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\${$as_var+set} = xset \
121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136 if test "x$CONFIG_SHELL" = x; then
137 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
145 case \`(set -o) 2>/dev/null\` in #(
153 as_required="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167 exitcode=1; echo positional parameters were not saved.
169 test x\$exitcode = x0 || exit 1"
170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174 test \$(( 1 + 1 )) = 2 || exit 1"
175 if (eval "$as_required") 2>/dev/null; then :
180 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
185 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
188 test -z "$as_dir" && as_dir=.
192 for as_base in sh bash ksh sh5; do
193 # Try only shells that exist, to save several forks.
194 as_shell=$as_dir/$as_base
195 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 CONFIG_SHELL=$as_shell as_have_required=yes
198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
206 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208 CONFIG_SHELL=$SHELL as_have_required=yes
213 if test "x$CONFIG_SHELL" != x; then :
214 # We cannot yet assume a decent shell, so we have to provide a
215 # neutralization value for shells without unset; and this also
216 # works around shells that cannot unset nonexistent variables.
219 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224 if test x$as_have_required = xno; then :
225 $as_echo "$0: This script requires a shell more modern than all"
226 $as_echo "$0: the shells that I found on your system."
227 if test x${ZSH_VERSION+set} = xset ; then
228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
231 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
232 $0: including any error possibly output before this
233 $0: message. Then install a modern shell, or manually run
234 $0: the script under such a shell if you do have one."
240 SHELL=${CONFIG_SHELL-/bin/sh}
242 # Unset more variables known to interfere with behavior of common tools.
243 CLICOLOR_FORCE= GREP_OPTIONS=
244 unset CLICOLOR_FORCE GREP_OPTIONS
246 ## --------------------- ##
247 ## M4sh Shell Functions. ##
248 ## --------------------- ##
251 # Portably unset VAR.
254 { eval $1=; unset $1;}
258 # as_fn_set_status STATUS
259 # -----------------------
260 # Set $? to STATUS, without forking.
268 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
278 # Create "$as_dir" as a directory, including parents if necessary.
283 -*) as_dir=./$as_dir;;
285 test -d "$as_dir" || eval $as_mkdir_p || {
289 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
292 as_dirs="'$as_qdir' $as_dirs"
293 as_dir=`$as_dirname -- "$as_dir" ||
294 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
295 X"$as_dir" : 'X\(//\)[^/]' \| \
296 X"$as_dir" : 'X\(//\)$' \| \
297 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
298 $as_echo X"$as_dir" |
299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
316 test -d "$as_dir" && break
318 test -z "$as_dirs" || eval "mkdir $as_dirs"
319 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
323 # as_fn_append VAR VALUE
324 # ----------------------
325 # Append the text in VALUE to the end of the definition contained in VAR. Take
326 # advantage of any shell optimizations that allow amortized linear growth over
327 # repeated appends, instead of the typical quadratic growth present in naive
329 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
330 eval 'as_fn_append ()
343 # Perform arithmetic evaluation on the ARGs, and store the result in the
344 # global $as_val. Take advantage of shells that can avoid forks. The arguments
345 # must be portable across $(()) and expr.
346 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
354 as_val=`expr "$@" || test $? -eq 1`
359 # as_fn_error ERROR [LINENO LOG_FD]
360 # ---------------------------------
361 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
362 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
363 # script with status $?, using 1 if that was 0.
366 as_status=$?; test $as_status -eq 0 && as_status=1
368 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
369 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
371 $as_echo "$as_me: error: $1" >&2
372 as_fn_exit $as_status
375 if expr a : '\(a\)' >/dev/null 2>&1 &&
376 test "X`expr 00001 : '.*\(...\)'`" = X001; then
382 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
388 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
394 as_me=`$as_basename -- "$0" ||
395 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
396 X"$0" : 'X\(//\)$' \| \
397 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
399 sed '/^.*\/\([^/][^/]*\)\/*$/{
413 # Avoid depending upon Character Ranges.
414 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
415 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
416 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
417 as_cr_digits='0123456789'
418 as_cr_alnum=$as_cr_Letters$as_cr_digits
421 as_lineno_1=$LINENO as_lineno_1a=$LINENO
422 as_lineno_2=$LINENO as_lineno_2a=$LINENO
423 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
424 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
425 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
437 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
441 chmod +x "$as_me.lineno" ||
442 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
444 # Don't try to exec as it changes $[0], causing all sort of problems
445 # (the dirname of $[0] is not the place where we might find the
446 # original and so on. Autoconf is especially sensitive to this).
448 # Exit status is that of the last command.
452 ECHO_C= ECHO_N= ECHO_T=
453 case `echo -n x` in #(((((
455 case `echo 'xy\c'` in
456 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
458 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
465 rm -f conf$$ conf$$.exe conf$$.file
466 if test -d conf$$.dir; then
467 rm -f conf$$.dir/conf$$.file
470 mkdir conf$$.dir 2>/dev/null
472 if (echo >conf$$.file) 2>/dev/null; then
473 if ln -s conf$$.file conf$$ 2>/dev/null; then
475 # ... but there are two gotchas:
476 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
477 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
478 # In both cases, we have to default to `cp -p'.
479 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
481 elif ln conf$$.file conf$$ 2>/dev/null; then
489 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
490 rmdir conf$$.dir 2>/dev/null
492 if mkdir -p . 2>/dev/null; then
493 as_mkdir_p='mkdir -p "$as_dir"'
495 test -d ./-p && rmdir ./-p
499 if test -x / >/dev/null 2>&1; then
502 if ls -dL / >/dev/null 2>&1; then
509 if test -d "$1"; then
515 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
516 ???[sx]*):;;*)false;;esac;fi
520 as_executable_p=$as_test_x
522 # Sed expression to map a string onto a valid CPP name.
523 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
525 # Sed expression to map a string onto a valid variable name.
526 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
529 test -n "$DJDIR" || exec 7<&0 </dev/null
533 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
534 # so uname gets run too.
535 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
540 ac_default_prefix=/usr/local
542 ac_config_libobj_dir=.
549 # Identity of this package.
557 ac_unique_file="version.h"
558 # Factoring default headers for most tests.
559 ac_includes_default="\
561 #ifdef HAVE_SYS_TYPES_H
562 # include <sys/types.h>
564 #ifdef HAVE_SYS_STAT_H
565 # include <sys/stat.h>
571 # ifdef HAVE_STDLIB_H
576 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
581 #ifdef HAVE_STRINGS_H
582 # include <strings.h>
584 #ifdef HAVE_INTTYPES_H
585 # include <inttypes.h>
595 ac_subst_vars='LTLIBOBJS
641 INTL_LIBTOOL_SUFFIX_PREFIX
648 BUILD_INCLUDED_LIBINTL
777 program_transform_name
788 ac_subst_files='MCONFIG
795 PUBLIC_CONFIG_HEADER'
797 enable_option_checking
803 enable_maintainer_mode
804 enable_symlink_install
805 enable_symlink_relative_symlinks
807 enable_verbose_makecmds
827 enable_e2initrd_helper
834 with_included_gettext
838 ac_precious_vars='build_alias
850 # Initialize some variables set by options.
852 ac_init_version=false
853 ac_unrecognized_opts=
855 # The variables have the same names as the options, with
856 # dashes changed to underlines.
864 program_transform_name=s,x,x,
872 # Installation directory options.
873 # These are left unexpanded so users can "make install exec_prefix=/foo"
874 # and all the variables that are supposed to be based on exec_prefix
875 # by default will actually change.
876 # Use braces instead of parens because sh, perl, etc. also accept them.
877 # (The list follows the same order as the GNU Coding Standards.)
878 bindir='${exec_prefix}/bin'
879 sbindir='${exec_prefix}/sbin'
880 libexecdir='${exec_prefix}/libexec'
881 datarootdir='${prefix}/share'
882 datadir='${datarootdir}'
883 sysconfdir='${prefix}/etc'
884 sharedstatedir='${prefix}/com'
885 localstatedir='${prefix}/var'
886 includedir='${prefix}/include'
887 oldincludedir='/usr/include'
888 docdir='${datarootdir}/doc/${PACKAGE}'
889 infodir='${datarootdir}/info'
894 libdir='${exec_prefix}/lib'
895 localedir='${datarootdir}/locale'
896 mandir='${datarootdir}/man'
902 # If the previous option needs an argument, assign it.
903 if test -n "$ac_prev"; then
904 eval $ac_prev=\$ac_option
910 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
914 # Accept the important Cygnus configure options, so we can diagnose typos.
916 case $ac_dashdash$ac_option in
920 -bindir | --bindir | --bindi | --bind | --bin | --bi)
922 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
925 -build | --build | --buil | --bui | --bu)
926 ac_prev=build_alias ;;
927 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
928 build_alias=$ac_optarg ;;
930 -cache-file | --cache-file | --cache-fil | --cache-fi \
931 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
932 ac_prev=cache_file ;;
933 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
934 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
935 cache_file=$ac_optarg ;;
938 cache_file=config.cache ;;
940 -datadir | --datadir | --datadi | --datad)
942 -datadir=* | --datadir=* | --datadi=* | --datad=*)
943 datadir=$ac_optarg ;;
945 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
946 | --dataroo | --dataro | --datar)
947 ac_prev=datarootdir ;;
948 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
949 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
950 datarootdir=$ac_optarg ;;
952 -disable-* | --disable-*)
953 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
954 # Reject names that are not valid shell variable names.
955 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
956 as_fn_error "invalid feature name: $ac_useropt"
957 ac_useropt_orig=$ac_useropt
958 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
959 case $ac_user_opts in
963 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
964 ac_unrecognized_sep=', ';;
966 eval enable_$ac_useropt=no ;;
968 -docdir | --docdir | --docdi | --doc | --do)
970 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
973 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
975 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
978 -enable-* | --enable-*)
979 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
980 # Reject names that are not valid shell variable names.
981 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
982 as_fn_error "invalid feature name: $ac_useropt"
983 ac_useropt_orig=$ac_useropt
984 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
985 case $ac_user_opts in
989 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
990 ac_unrecognized_sep=', ';;
992 eval enable_$ac_useropt=\$ac_optarg ;;
994 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
995 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
996 | --exec | --exe | --ex)
997 ac_prev=exec_prefix ;;
998 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
999 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1000 | --exec=* | --exe=* | --ex=*)
1001 exec_prefix=$ac_optarg ;;
1003 -gas | --gas | --ga | --g)
1004 # Obsolete; use --with-gas.
1007 -help | --help | --hel | --he | -h)
1008 ac_init_help=long ;;
1009 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1010 ac_init_help=recursive ;;
1011 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1012 ac_init_help=short ;;
1014 -host | --host | --hos | --ho)
1015 ac_prev=host_alias ;;
1016 -host=* | --host=* | --hos=* | --ho=*)
1017 host_alias=$ac_optarg ;;
1019 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1021 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1023 htmldir=$ac_optarg ;;
1025 -includedir | --includedir | --includedi | --included | --include \
1026 | --includ | --inclu | --incl | --inc)
1027 ac_prev=includedir ;;
1028 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1029 | --includ=* | --inclu=* | --incl=* | --inc=*)
1030 includedir=$ac_optarg ;;
1032 -infodir | --infodir | --infodi | --infod | --info | --inf)
1034 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1035 infodir=$ac_optarg ;;
1037 -libdir | --libdir | --libdi | --libd)
1039 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1040 libdir=$ac_optarg ;;
1042 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1043 | --libexe | --libex | --libe)
1044 ac_prev=libexecdir ;;
1045 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1046 | --libexe=* | --libex=* | --libe=*)
1047 libexecdir=$ac_optarg ;;
1049 -localedir | --localedir | --localedi | --localed | --locale)
1050 ac_prev=localedir ;;
1051 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1052 localedir=$ac_optarg ;;
1054 -localstatedir | --localstatedir | --localstatedi | --localstated \
1055 | --localstate | --localstat | --localsta | --localst | --locals)
1056 ac_prev=localstatedir ;;
1057 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1058 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1059 localstatedir=$ac_optarg ;;
1061 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1063 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1064 mandir=$ac_optarg ;;
1066 -nfp | --nfp | --nf)
1067 # Obsolete; use --without-fp.
1070 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1071 | --no-cr | --no-c | -n)
1074 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1075 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1078 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1079 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1080 | --oldin | --oldi | --old | --ol | --o)
1081 ac_prev=oldincludedir ;;
1082 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1083 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1084 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1085 oldincludedir=$ac_optarg ;;
1087 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1089 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1090 prefix=$ac_optarg ;;
1092 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1093 | --program-pre | --program-pr | --program-p)
1094 ac_prev=program_prefix ;;
1095 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1096 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1097 program_prefix=$ac_optarg ;;
1099 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1100 | --program-suf | --program-su | --program-s)
1101 ac_prev=program_suffix ;;
1102 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1103 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1104 program_suffix=$ac_optarg ;;
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 ac_prev=program_transform_name ;;
1114 -program-transform-name=* | --program-transform-name=* \
1115 | --program-transform-nam=* | --program-transform-na=* \
1116 | --program-transform-n=* | --program-transform-=* \
1117 | --program-transform=* | --program-transfor=* \
1118 | --program-transfo=* | --program-transf=* \
1119 | --program-trans=* | --program-tran=* \
1120 | --progr-tra=* | --program-tr=* | --program-t=*)
1121 program_transform_name=$ac_optarg ;;
1123 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1125 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1126 pdfdir=$ac_optarg ;;
1128 -psdir | --psdir | --psdi | --psd | --ps)
1130 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1133 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1134 | -silent | --silent | --silen | --sile | --sil)
1137 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1139 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1141 sbindir=$ac_optarg ;;
1143 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1144 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1145 | --sharedst | --shareds | --shared | --share | --shar \
1147 ac_prev=sharedstatedir ;;
1148 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1149 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1150 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1152 sharedstatedir=$ac_optarg ;;
1154 -site | --site | --sit)
1156 -site=* | --site=* | --sit=*)
1159 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1161 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1162 srcdir=$ac_optarg ;;
1164 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1165 | --syscon | --sysco | --sysc | --sys | --sy)
1166 ac_prev=sysconfdir ;;
1167 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1168 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1169 sysconfdir=$ac_optarg ;;
1171 -target | --target | --targe | --targ | --tar | --ta | --t)
1172 ac_prev=target_alias ;;
1173 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1174 target_alias=$ac_optarg ;;
1176 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1179 -version | --version | --versio | --versi | --vers | -V)
1180 ac_init_version=: ;;
1183 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1184 # Reject names that are not valid shell variable names.
1185 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1186 as_fn_error "invalid package name: $ac_useropt"
1187 ac_useropt_orig=$ac_useropt
1188 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1189 case $ac_user_opts in
1193 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1194 ac_unrecognized_sep=', ';;
1196 eval with_$ac_useropt=\$ac_optarg ;;
1198 -without-* | --without-*)
1199 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1200 # Reject names that are not valid shell variable names.
1201 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1202 as_fn_error "invalid package name: $ac_useropt"
1203 ac_useropt_orig=$ac_useropt
1204 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1205 case $ac_user_opts in
1209 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1210 ac_unrecognized_sep=', ';;
1212 eval with_$ac_useropt=no ;;
1215 # Obsolete; use --with-x.
1218 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1219 | --x-incl | --x-inc | --x-in | --x-i)
1220 ac_prev=x_includes ;;
1221 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1222 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1223 x_includes=$ac_optarg ;;
1225 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1226 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1227 ac_prev=x_libraries ;;
1228 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1229 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1230 x_libraries=$ac_optarg ;;
1232 -*) as_fn_error "unrecognized option: \`$ac_option'
1233 Try \`$0 --help' for more information."
1237 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1238 # Reject names that are not valid shell variable names.
1239 case $ac_envvar in #(
1240 '' | [0-9]* | *[!_$as_cr_alnum]* )
1241 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1243 eval $ac_envvar=\$ac_optarg
1244 export $ac_envvar ;;
1247 # FIXME: should be removed in autoconf 3.0.
1248 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1249 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1250 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1251 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1257 if test -n "$ac_prev"; then
1258 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1259 as_fn_error "missing argument to $ac_option"
1262 if test -n "$ac_unrecognized_opts"; then
1263 case $enable_option_checking in
1265 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1266 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1270 # Check all directory arguments for consistency.
1271 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1272 datadir sysconfdir sharedstatedir localstatedir includedir \
1273 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1274 libdir localedir mandir
1276 eval ac_val=\$$ac_var
1277 # Remove trailing slashes.
1280 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1281 eval $ac_var=\$ac_val;;
1283 # Be sure to have absolute directory names.
1285 [\\/$]* | ?:[\\/]* ) continue;;
1286 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1288 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1291 # There might be people who depend on the old broken behavior: `$host'
1292 # used to hold the argument of --host etc.
1293 # FIXME: To remove some day.
1296 target=$target_alias
1298 # FIXME: To remove some day.
1299 if test "x$host_alias" != x; then
1300 if test "x$build_alias" = x; then
1301 cross_compiling=maybe
1302 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1303 If a cross compiler is detected then cross compile mode will be used." >&2
1304 elif test "x$build_alias" != "x$host_alias"; then
1310 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1312 test "$silent" = yes && exec 6>/dev/null
1315 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1316 ac_ls_di=`ls -di .` &&
1317 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1318 as_fn_error "working directory cannot be determined"
1319 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1320 as_fn_error "pwd does not report name of working directory"
1323 # Find the source files, if location was not specified.
1324 if test -z "$srcdir"; then
1325 ac_srcdir_defaulted=yes
1326 # Try the directory containing this script, then the parent directory.
1327 ac_confdir=`$as_dirname -- "$as_myself" ||
1328 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1329 X"$as_myself" : 'X\(//\)[^/]' \| \
1330 X"$as_myself" : 'X\(//\)$' \| \
1331 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1332 $as_echo X"$as_myself" |
1333 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1351 if test ! -r "$srcdir/$ac_unique_file"; then
1355 ac_srcdir_defaulted=no
1357 if test ! -r "$srcdir/$ac_unique_file"; then
1358 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1359 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1361 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1363 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1365 # When building in place, set srcdir=.
1366 if test "$ac_abs_confdir" = "$ac_pwd"; then
1369 # Remove unnecessary trailing slashes from srcdir.
1370 # Double slashes in file names in object file debugging info
1371 # mess up M-x gdb in Emacs.
1373 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1375 for ac_var in $ac_precious_vars; do
1376 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1377 eval ac_env_${ac_var}_value=\$${ac_var}
1378 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1379 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1383 # Report the --help message.
1385 if test "$ac_init_help" = "long"; then
1386 # Omit some internal or obsolete options to make the list less imposing.
1387 # This message is too long to be a string in the A/UX 3.1 sh.
1389 \`configure' configures this package to adapt to many kinds of systems.
1391 Usage: $0 [OPTION]... [VAR=VALUE]...
1393 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1394 VAR=VALUE. See below for descriptions of some of the useful variables.
1396 Defaults for the options are specified in brackets.
1399 -h, --help display this help and exit
1400 --help=short display options specific to this package
1401 --help=recursive display the short help of all the included packages
1402 -V, --version display version information and exit
1403 -q, --quiet, --silent do not print \`checking...' messages
1404 --cache-file=FILE cache test results in FILE [disabled]
1405 -C, --config-cache alias for \`--cache-file=config.cache'
1406 -n, --no-create do not create output files
1407 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1409 Installation directories:
1410 --prefix=PREFIX install architecture-independent files in PREFIX
1411 [$ac_default_prefix]
1412 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1415 By default, \`make install' will install all the files in
1416 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1417 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1418 for instance \`--prefix=\$HOME'.
1420 For better control, use the options below.
1422 Fine tuning of the installation directories:
1423 --bindir=DIR user executables [EPREFIX/bin]
1424 --sbindir=DIR system admin executables [EPREFIX/sbin]
1425 --libexecdir=DIR program executables [EPREFIX/libexec]
1426 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1427 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1428 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1429 --libdir=DIR object code libraries [EPREFIX/lib]
1430 --includedir=DIR C header files [PREFIX/include]
1431 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1432 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1433 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1434 --infodir=DIR info documentation [DATAROOTDIR/info]
1435 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1436 --mandir=DIR man documentation [DATAROOTDIR/man]
1437 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1438 --htmldir=DIR html documentation [DOCDIR]
1439 --dvidir=DIR dvi documentation [DOCDIR]
1440 --pdfdir=DIR pdf documentation [DOCDIR]
1441 --psdir=DIR ps documentation [DOCDIR]
1447 --build=BUILD configure for building on BUILD [guessed]
1448 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1452 if test -n "$ac_init_help"; then
1457 --disable-option-checking ignore unrecognized --enable/--with options
1458 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1459 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1460 --enable-maintainer-mode enable makefile rules useful for maintainers
1461 --enable-symlink-install use symlinks when installing instead of hard links
1462 --enable-relative-symlinks use relative symlinks when installing
1463 --enable-symlink-build use symlinks while building instead of hard links
1464 --enable-verbose-makecmds enable verbose make command output
1465 --disable-lfsck disable EXPERIMENTAL Lustre lfsck support
1466 --enable-compression enable EXPERIMENTAL compression support
1467 --enable-htree enable EXPERIMENTAL htree directory support
1468 --enable-elf-shlibs select ELF shared libraries
1469 --enable-bsd-shlibs select BSD shared libraries
1470 --enable-profile build profiling libraries
1471 --enable-checker build checker libraries
1472 --enable-jbd-debug enable journal debugging
1473 --enable-blkid-debug enable blkid debugging
1474 --disable-testio-debug disable the use of the test I/O manager for debugging
1475 --disable-libuuid do not build private uuid library
1476 --disable-libblkid do not build private blkid library
1477 --enable-libquota enable quota support
1478 --disable-debugfs disable support of debugfs program
1479 --disable-imager disable support of e2image program
1480 --disable-resizer disable support of e2resize program
1481 --disable-defrag disable support of e4defrag program
1482 --enable-fsck build fsck wrapper program
1483 --enable-e2initrd-helper build e2initrd-helper program
1484 --disable-tls disable use of thread local support
1485 --disable-uuidd disable building the uuid daemon
1486 --disable-nls do not use Native Language Support
1487 --disable-rpath do not hardcode runtime library paths
1490 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1491 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1492 --with-diet-libc use diet libc
1493 --with-cc no longer supported, use CC= instead
1494 --with-ccopts no longer supported, use CFLAGS= instead
1495 --with-ldopts no longer supported, use LDFLAGS= instead
1496 --with-root-prefix=PREFIX override prefix variable for files to be placed in the root
1497 --with-lustre=LUSTRE path to Lustre sources for lfsck (default=/usr for RPM)
1498 --with-gnu-ld assume the C compiler uses GNU ld default=no
1499 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1500 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1501 --with-included-gettext use the GNU gettext library included here
1502 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1503 --without-libintl-prefix don't search for libintl in includedir and libdir
1504 --with-multiarch=ARCH specify the multiarch triplet
1506 Some influential environment variables:
1507 CC C compiler command
1508 CFLAGS C compiler flags
1509 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1510 nonstandard directory <lib dir>
1511 LIBS libraries to pass to the linker, e.g. -l<library>
1512 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1513 you have headers in a nonstandard directory <include dir>
1515 PKG_CONFIG path to pkg-config utility
1517 Use these variables to override the choices made by `configure' or to help
1518 it to find libraries and programs with nonstandard names/locations.
1520 Report bugs to the package provider.
1525 if test "$ac_init_help" = "recursive"; then
1526 # If there are subdirs, report their specific --help.
1527 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1528 test -d "$ac_dir" ||
1529 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1534 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1536 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1537 # A ".." for each directory in $ac_dir_suffix.
1538 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1539 case $ac_top_builddir_sub in
1540 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1541 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1544 ac_abs_top_builddir=$ac_pwd
1545 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1546 # for backward compatibility:
1547 ac_top_builddir=$ac_top_build_prefix
1550 .) # We are building in place.
1552 ac_top_srcdir=$ac_top_builddir_sub
1553 ac_abs_top_srcdir=$ac_pwd ;;
1554 [\\/]* | ?:[\\/]* ) # Absolute name.
1555 ac_srcdir=$srcdir$ac_dir_suffix;
1556 ac_top_srcdir=$srcdir
1557 ac_abs_top_srcdir=$srcdir ;;
1559 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1560 ac_top_srcdir=$ac_top_build_prefix$srcdir
1561 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1563 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1565 cd "$ac_dir" || { ac_status=$?; continue; }
1566 # Check for guested configure.
1567 if test -f "$ac_srcdir/configure.gnu"; then
1569 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1570 elif test -f "$ac_srcdir/configure"; then
1572 $SHELL "$ac_srcdir/configure" --help=recursive
1574 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1576 cd "$ac_pwd" || { ac_status=$?; break; }
1580 test -n "$ac_init_help" && exit $ac_status
1581 if $ac_init_version; then
1584 generated by GNU Autoconf 2.65
1586 Copyright (C) 2009 Free Software Foundation, Inc.
1587 This configure script is free software; the Free Software Foundation
1588 gives unlimited permission to copy, distribute and modify it.
1593 ## ------------------------ ##
1594 ## Autoconf initialization. ##
1595 ## ------------------------ ##
1597 # ac_fn_c_try_compile LINENO
1598 # --------------------------
1599 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1600 ac_fn_c_try_compile ()
1602 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1603 rm -f conftest.$ac_objext
1604 if { { ac_try="$ac_compile"
1606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1607 *) ac_try_echo=$ac_try;;
1609 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1610 $as_echo "$ac_try_echo"; } >&5
1611 (eval "$ac_compile") 2>conftest.err
1613 if test -s conftest.err; then
1614 grep -v '^ *+' conftest.err >conftest.er1
1615 cat conftest.er1 >&5
1616 mv -f conftest.er1 conftest.err
1618 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1619 test $ac_status = 0; } && {
1620 test -z "$ac_c_werror_flag" ||
1621 test ! -s conftest.err
1622 } && test -s conftest.$ac_objext; then :
1625 $as_echo "$as_me: failed program was:" >&5
1626 sed 's/^/| /' conftest.$ac_ext >&5
1630 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1631 as_fn_set_status $ac_retval
1633 } # ac_fn_c_try_compile
1635 # ac_fn_c_try_link LINENO
1636 # -----------------------
1637 # Try to link conftest.$ac_ext, and return whether this succeeded.
1640 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1641 rm -f conftest.$ac_objext conftest$ac_exeext
1642 if { { ac_try="$ac_link"
1644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1645 *) ac_try_echo=$ac_try;;
1647 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1648 $as_echo "$ac_try_echo"; } >&5
1649 (eval "$ac_link") 2>conftest.err
1651 if test -s conftest.err; then
1652 grep -v '^ *+' conftest.err >conftest.er1
1653 cat conftest.er1 >&5
1654 mv -f conftest.er1 conftest.err
1656 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1657 test $ac_status = 0; } && {
1658 test -z "$ac_c_werror_flag" ||
1659 test ! -s conftest.err
1660 } && test -s conftest$ac_exeext && {
1661 test "$cross_compiling" = yes ||
1662 $as_test_x conftest$ac_exeext
1666 $as_echo "$as_me: failed program was:" >&5
1667 sed 's/^/| /' conftest.$ac_ext >&5
1671 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1672 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1673 # interfere with the next link command; also delete a directory that is
1674 # left behind by Apple's compiler. We do this before executing the actions.
1675 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1676 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1677 as_fn_set_status $ac_retval
1679 } # ac_fn_c_try_link
1681 # ac_fn_c_try_cpp LINENO
1682 # ----------------------
1683 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1686 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1687 if { { ac_try="$ac_cpp conftest.$ac_ext"
1689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1690 *) ac_try_echo=$ac_try;;
1692 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1693 $as_echo "$ac_try_echo"; } >&5
1694 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1696 if test -s conftest.err; then
1697 grep -v '^ *+' conftest.err >conftest.er1
1698 cat conftest.er1 >&5
1699 mv -f conftest.er1 conftest.err
1701 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1702 test $ac_status = 0; } >/dev/null && {
1703 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1704 test ! -s conftest.err
1708 $as_echo "$as_me: failed program was:" >&5
1709 sed 's/^/| /' conftest.$ac_ext >&5
1713 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1714 as_fn_set_status $ac_retval
1718 # ac_fn_c_try_run LINENO
1719 # ----------------------
1720 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1721 # that executables *can* be run.
1724 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1725 if { { ac_try="$ac_link"
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_link") 2>&5
1734 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1735 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1736 { { case "(($ac_try" in
1737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1738 *) ac_try_echo=$ac_try;;
1740 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1741 $as_echo "$ac_try_echo"; } >&5
1742 (eval "$ac_try") 2>&5
1744 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1745 test $ac_status = 0; }; }; then :
1748 $as_echo "$as_me: program exited with status $ac_status" >&5
1749 $as_echo "$as_me: failed program was:" >&5
1750 sed 's/^/| /' conftest.$ac_ext >&5
1752 ac_retval=$ac_status
1754 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1755 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1756 as_fn_set_status $ac_retval
1760 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1761 # -------------------------------------------
1762 # Tests whether TYPE exists after having included INCLUDES, setting cache
1763 # variable VAR accordingly.
1764 ac_fn_c_check_type ()
1766 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1768 $as_echo_n "checking for $2... " >&6; }
1769 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1770 $as_echo_n "(cached) " >&6
1773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1774 /* end confdefs.h. */
1785 if ac_fn_c_try_compile "$LINENO"; then :
1786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1787 /* end confdefs.h. */
1798 if ac_fn_c_try_compile "$LINENO"; then :
1803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1809 $as_echo "$ac_res" >&6; }
1810 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1812 } # ac_fn_c_check_type
1814 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1815 # -------------------------------------------------------
1816 # Tests whether HEADER exists and can be compiled using the include files in
1817 # INCLUDES, setting the cache variable VAR accordingly.
1818 ac_fn_c_check_header_compile ()
1820 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1822 $as_echo_n "checking for $2... " >&6; }
1823 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1824 $as_echo_n "(cached) " >&6
1826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1827 /* end confdefs.h. */
1831 if ac_fn_c_try_compile "$LINENO"; then :
1836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1840 $as_echo "$ac_res" >&6; }
1841 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1843 } # ac_fn_c_check_header_compile
1845 # ac_fn_c_check_func LINENO FUNC VAR
1846 # ----------------------------------
1847 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1848 ac_fn_c_check_func ()
1850 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1852 $as_echo_n "checking for $2... " >&6; }
1853 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1854 $as_echo_n "(cached) " >&6
1856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1857 /* end confdefs.h. */
1858 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1859 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1860 #define $2 innocuous_$2
1862 /* System header to define __stub macros and hopefully few prototypes,
1863 which can conflict with char $2 (); below.
1864 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1865 <limits.h> exists even on freestanding compilers. */
1868 # include <limits.h>
1870 # include <assert.h>
1875 /* Override any GCC internal prototype to avoid an error.
1876 Use char because int might match the return type of a GCC
1877 builtin and then its argument prototype would still apply. */
1882 /* The GNU C library defines this for functions which it implements
1883 to always fail with ENOSYS. Some functions are actually named
1884 something starting with __ and the normal name is an alias. */
1885 #if defined __stub_$2 || defined __stub___$2
1897 if ac_fn_c_try_link "$LINENO"; then :
1902 rm -f core conftest.err conftest.$ac_objext \
1903 conftest$ac_exeext conftest.$ac_ext
1906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1907 $as_echo "$ac_res" >&6; }
1908 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1910 } # ac_fn_c_check_func
1912 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1913 # -------------------------------------------------------
1914 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1915 # the include files in INCLUDES and setting the cache variable VAR
1917 ac_fn_c_check_header_mongrel ()
1919 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1920 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1922 $as_echo_n "checking for $2... " >&6; }
1923 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1924 $as_echo_n "(cached) " >&6
1927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1928 $as_echo "$ac_res" >&6; }
1930 # Is the header compilable?
1931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1932 $as_echo_n "checking $2 usability... " >&6; }
1933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1934 /* end confdefs.h. */
1938 if ac_fn_c_try_compile "$LINENO"; then :
1939 ac_header_compiler=yes
1941 ac_header_compiler=no
1943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1945 $as_echo "$ac_header_compiler" >&6; }
1947 # Is the header present?
1948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1949 $as_echo_n "checking $2 presence... " >&6; }
1950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1951 /* end confdefs.h. */
1954 if ac_fn_c_try_cpp "$LINENO"; then :
1955 ac_header_preproc=yes
1957 ac_header_preproc=no
1959 rm -f conftest.err conftest.$ac_ext
1960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1961 $as_echo "$ac_header_preproc" >&6; }
1963 # So? What about this header?
1964 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1966 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1967 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1968 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1969 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1972 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1973 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1974 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1975 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1976 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1977 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1978 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1979 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1980 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1981 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1985 $as_echo_n "checking for $2... " >&6; }
1986 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1987 $as_echo_n "(cached) " >&6
1989 eval "$3=\$ac_header_compiler"
1992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1993 $as_echo "$ac_res" >&6; }
1995 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1997 } # ac_fn_c_check_header_mongrel
1999 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2000 # --------------------------------------------
2001 # Tries to find the compile-time value of EXPR in a program that includes
2002 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2004 ac_fn_c_compute_int ()
2006 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2007 if test "$cross_compiling" = yes; then
2008 # Depending upon the size, compute the lo and hi bounds.
2009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2010 /* end confdefs.h. */
2015 static int test_array [1 - 2 * !(($2) >= 0)];
2022 if ac_fn_c_try_compile "$LINENO"; then :
2025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2026 /* end confdefs.h. */
2031 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2038 if ac_fn_c_try_compile "$LINENO"; then :
2039 ac_hi=$ac_mid; break
2041 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2042 if test $ac_lo -le $ac_mid; then
2046 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2052 /* end confdefs.h. */
2057 static int test_array [1 - 2 * !(($2) < 0)];
2064 if ac_fn_c_try_compile "$LINENO"; then :
2067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2068 /* end confdefs.h. */
2073 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2080 if ac_fn_c_try_compile "$LINENO"; then :
2081 ac_lo=$ac_mid; break
2083 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2084 if test $ac_mid -le $ac_hi; then
2088 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2098 # Binary search between lo and hi bounds.
2099 while test "x$ac_lo" != "x$ac_hi"; do
2100 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2102 /* end confdefs.h. */
2107 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2114 if ac_fn_c_try_compile "$LINENO"; then :
2117 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2122 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2127 /* end confdefs.h. */
2129 static long int longval () { return $2; }
2130 static unsigned long int ulongval () { return $2; }
2137 FILE *f = fopen ("conftest.val", "w");
2142 long int i = longval ();
2145 fprintf (f, "%ld", i);
2149 unsigned long int i = ulongval ();
2152 fprintf (f, "%lu", i);
2154 /* Do not output a trailing newline, as this causes \r\n confusion
2155 on some platforms. */
2156 return ferror (f) || fclose (f) != 0;
2162 if ac_fn_c_try_run "$LINENO"; then :
2163 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2167 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2168 conftest.$ac_objext conftest.beam conftest.$ac_ext
2172 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2173 as_fn_set_status $ac_retval
2175 } # ac_fn_c_compute_int
2177 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2178 # ----------------------------------------------------
2179 # Tries to find if the field MEMBER exists in type AGGR, after including
2180 # INCLUDES, setting cache variable VAR accordingly.
2181 ac_fn_c_check_member ()
2183 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2185 $as_echo_n "checking for $2.$3... " >&6; }
2186 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2187 $as_echo_n "(cached) " >&6
2189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2190 /* end confdefs.h. */
2202 if ac_fn_c_try_compile "$LINENO"; then :
2205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2206 /* end confdefs.h. */
2212 if (sizeof ac_aggr.$3)
2218 if ac_fn_c_try_compile "$LINENO"; then :
2223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2229 $as_echo "$ac_res" >&6; }
2230 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2232 } # ac_fn_c_check_member
2234 # ac_fn_c_check_decl LINENO SYMBOL VAR
2235 # ------------------------------------
2236 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2237 ac_fn_c_check_decl ()
2239 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2241 $as_echo_n "checking whether $2 is declared... " >&6; }
2242 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2243 $as_echo_n "(cached) " >&6
2245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2246 /* end confdefs.h. */
2259 if ac_fn_c_try_compile "$LINENO"; then :
2264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2268 $as_echo "$ac_res" >&6; }
2269 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2271 } # ac_fn_c_check_decl
2272 cat >config.log <<_ACEOF
2273 This file contains any messages produced by compilers while
2274 running configure, to aid debugging if configure makes a mistake.
2276 It was created by $as_me, which was
2277 generated by GNU Autoconf 2.65. Invocation command line was
2289 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2290 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2291 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2292 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2293 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2295 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2296 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2298 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2299 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2300 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2301 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2302 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2303 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2304 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2312 test -z "$as_dir" && as_dir=.
2313 $as_echo "PATH: $as_dir"
2329 # Keep a trace of the command line.
2330 # Strip out --no-create and --no-recursion so they do not pile up.
2331 # Strip out --silent because we don't want to record it for future runs.
2332 # Also quote any args containing shell meta-characters.
2333 # Make two passes to allow for proper duplicate-argument suppression.
2337 ac_must_keep_next=false
2343 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2344 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2345 | -silent | --silent | --silen | --sile | --sil)
2348 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2351 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2353 as_fn_append ac_configure_args1 " '$ac_arg'"
2354 if test $ac_must_keep_next = true; then
2355 ac_must_keep_next=false # Got value, back to normal.
2358 *=* | --config-cache | -C | -disable-* | --disable-* \
2359 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2360 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2361 | -with-* | --with-* | -without-* | --without-* | --x)
2362 case "$ac_configure_args0 " in
2363 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2366 -* ) ac_must_keep_next=true ;;
2369 as_fn_append ac_configure_args " '$ac_arg'"
2374 { ac_configure_args0=; unset ac_configure_args0;}
2375 { ac_configure_args1=; unset ac_configure_args1;}
2377 # When interrupted or exit'd, cleanup temporary files, and complete
2378 # config.log. We remove comments because anyway the quotes in there
2379 # would cause problems or look ugly.
2380 # WARNING: Use '\'' to represent an apostrophe within the trap.
2381 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2382 trap 'exit_status=$?
2383 # Save into config.log some information that might help in debugging.
2388 ## ---------------- ##
2389 ## Cache variables. ##
2390 ## ---------------- ##
2393 # The following way of writing the cache mishandles newlines in values,
2395 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2396 eval ac_val=\$$ac_var
2400 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2401 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2404 _ | IFS | as_nl) ;; #(
2405 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2406 *) { eval $ac_var=; unset $ac_var;} ;;
2411 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2412 *${as_nl}ac_space=\ *)
2414 "s/'\''/'\''\\\\'\'''\''/g;
2415 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2418 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2426 ## ----------------- ##
2427 ## Output variables. ##
2428 ## ----------------- ##
2431 for ac_var in $ac_subst_vars
2433 eval ac_val=\$$ac_var
2435 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2437 $as_echo "$ac_var='\''$ac_val'\''"
2441 if test -n "$ac_subst_files"; then
2443 ## ------------------- ##
2444 ## File substitutions. ##
2445 ## ------------------- ##
2448 for ac_var in $ac_subst_files
2450 eval ac_val=\$$ac_var
2452 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2454 $as_echo "$ac_var='\''$ac_val'\''"
2459 if test -s confdefs.h; then
2469 test "$ac_signal" != 0 &&
2470 $as_echo "$as_me: caught signal $ac_signal"
2471 $as_echo "$as_me: exit $exit_status"
2473 rm -f core *.core core.conftest.* &&
2474 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2477 for ac_signal in 1 2 13 15; do
2478 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2482 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2483 rm -f -r conftest* confdefs.h
2485 $as_echo "/* confdefs.h */" > confdefs.h
2487 # Predefined preprocessor variables.
2489 cat >>confdefs.h <<_ACEOF
2490 #define PACKAGE_NAME "$PACKAGE_NAME"
2493 cat >>confdefs.h <<_ACEOF
2494 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2497 cat >>confdefs.h <<_ACEOF
2498 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2501 cat >>confdefs.h <<_ACEOF
2502 #define PACKAGE_STRING "$PACKAGE_STRING"
2505 cat >>confdefs.h <<_ACEOF
2506 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2509 cat >>confdefs.h <<_ACEOF
2510 #define PACKAGE_URL "$PACKAGE_URL"
2514 # Let the site file select an alternate cache file if it wants to.
2515 # Prefer an explicitly selected file to automatically selected ones.
2518 if test -n "$CONFIG_SITE"; then
2519 ac_site_file1=$CONFIG_SITE
2520 elif test "x$prefix" != xNONE; then
2521 ac_site_file1=$prefix/share/config.site
2522 ac_site_file2=$prefix/etc/config.site
2524 ac_site_file1=$ac_default_prefix/share/config.site
2525 ac_site_file2=$ac_default_prefix/etc/config.site
2527 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2529 test "x$ac_site_file" = xNONE && continue
2530 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2531 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2532 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2533 sed 's/^/| /' "$ac_site_file" >&5
2538 if test -r "$cache_file"; then
2539 # Some versions of bash will fail to source /dev/null (special files
2540 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2541 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2542 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2543 $as_echo "$as_me: loading cache $cache_file" >&6;}
2545 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2546 *) . "./$cache_file";;
2550 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2551 $as_echo "$as_me: creating cache $cache_file" >&6;}
2555 as_fn_append ac_header_list " stdlib.h"
2556 as_fn_append ac_header_list " unistd.h"
2557 as_fn_append ac_header_list " sys/param.h"
2558 # Check that the precious variables saved in the cache have kept the same
2560 ac_cache_corrupted=false
2561 for ac_var in $ac_precious_vars; do
2562 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2563 eval ac_new_set=\$ac_env_${ac_var}_set
2564 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2565 eval ac_new_val=\$ac_env_${ac_var}_value
2566 case $ac_old_set,$ac_new_set in
2568 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2569 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2570 ac_cache_corrupted=: ;;
2572 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2573 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2574 ac_cache_corrupted=: ;;
2577 if test "x$ac_old_val" != "x$ac_new_val"; then
2578 # differences in whitespace do not lead to failure.
2579 ac_old_val_w=`echo x $ac_old_val`
2580 ac_new_val_w=`echo x $ac_new_val`
2581 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2582 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2583 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2584 ac_cache_corrupted=:
2586 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2587 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2588 eval $ac_var=\$ac_old_val
2590 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2591 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2592 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2593 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2596 # Pass precious variables to config.status.
2597 if test "$ac_new_set" = set; then
2599 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2600 *) ac_arg=$ac_var=$ac_new_val ;;
2602 case " $ac_configure_args " in
2603 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2604 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2608 if $ac_cache_corrupted; then
2609 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2610 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2611 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2612 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2613 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2615 ## -------------------- ##
2616 ## Main body of script. ##
2617 ## -------------------- ##
2620 ac_cpp='$CPP $CPPFLAGS'
2621 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2622 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2623 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2628 for ac_dir in config "$srcdir"/config; do
2629 for ac_t in install-sh install.sh shtool; do
2630 if test -f "$ac_dir/$ac_t"; then
2632 ac_install_sh="$ac_aux_dir/$ac_t -c"
2637 if test -z "$ac_aux_dir"; then
2638 as_fn_error "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2641 # These three variables are undocumented and unsupported,
2642 # and are intended to be withdrawn in a future Autoconf release.
2643 # They can cause serious problems if a builder's source tree is in a directory
2644 # whose full name contains unusual characters.
2645 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2646 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2647 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2650 ac_config_headers="$ac_config_headers lib/config.h"
2656 E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \
2657 | awk '{print $3}' | tr \" " " | awk '{print $1}'`
2658 DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
2660 E2FSPROGS_DAY=`echo $DATE | awk -F- '{print $1}'`
2661 MONTH=`echo $DATE | awk -F- '{print $2}'`
2662 YEAR=`echo $DATE | awk -F- '{print $3}'`
2664 if expr $YEAR ">" 1900 > /dev/null ; then
2665 E2FSPROGS_YEAR=$YEAR
2666 elif expr $YEAR ">" 90 >/dev/null ; then
2667 E2FSPROGS_YEAR=19$YEAR
2669 E2FSPROGS_YEAR=20$YEAR
2673 Jan) MONTH_NUM=01; E2FSPROGS_MONTH="January" ;;
2674 Feb) MONTH_NUM=02; E2FSPROGS_MONTH="February" ;;
2675 Mar) MONTH_NUM=03; E2FSPROGS_MONTH="March" ;;
2676 Apr) MONTH_NUM=04; E2FSPROGS_MONTH="April" ;;
2677 May) MONTH_NUM=05; E2FSPROGS_MONTH="May" ;;
2678 Jun) MONTH_NUM=06; E2FSPROGS_MONTH="June" ;;
2679 Jul) MONTH_NUM=07; E2FSPROGS_MONTH="July" ;;
2680 Aug) MONTH_NUM=08; E2FSPROGS_MONTH="August" ;;
2681 Sep) MONTH_NUM=09; E2FSPROGS_MONTH="September" ;;
2682 Oct) MONTH_NUM=10; E2FSPROGS_MONTH="October" ;;
2683 Nov) MONTH_NUM=11; E2FSPROGS_MONTH="November" ;;
2684 Dec) MONTH_NUM=12; E2FSPROGS_MONTH="December" ;;
2685 *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unknown month $MONTH??" >&5
2686 $as_echo "$as_me: WARNING: Unknown month $MONTH??" >&2;} ;;
2689 base_ver=`echo $E2FSPROGS_VERSION | \
2690 sed -e 's/-WIP//' -e 's/pre-//' -e 's/-PLUS//'`
2692 date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY}
2694 case $E2FSPROGS_VERSION in
2696 E2FSPROGS_PKGVER="$base_ver~WIP-$E2FSPROGS_YEAR-$MONTH_NUM-$E2FSPROGS_DAY"
2699 E2FSPROGS_PKGVER="$base_ver"
2703 unset DATE MONTH YEAR base_ver pre_vers date_spec
2704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&5
2705 $as_echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&6; }
2706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&5
2707 $as_echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&6; }
2713 # Make sure we can run config.sub.
2714 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2715 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2718 $as_echo_n "checking build system type... " >&6; }
2719 if test "${ac_cv_build+set}" = set; then :
2720 $as_echo_n "(cached) " >&6
2722 ac_build_alias=$build_alias
2723 test "x$ac_build_alias" = x &&
2724 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2725 test "x$ac_build_alias" = x &&
2726 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2727 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2728 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2732 $as_echo "$ac_cv_build" >&6; }
2733 case $ac_cv_build in
2735 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2738 ac_save_IFS=$IFS; IFS='-'
2744 # Remember, the first character of IFS is used to create $*,
2745 # except with old shells:
2748 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2752 $as_echo_n "checking host system type... " >&6; }
2753 if test "${ac_cv_host+set}" = set; then :
2754 $as_echo_n "(cached) " >&6
2756 if test "x$host_alias" = x; then
2757 ac_cv_host=$ac_cv_build
2759 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2760 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2765 $as_echo "$ac_cv_host" >&6; }
2768 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2771 ac_save_IFS=$IFS; IFS='-'
2777 # Remember, the first character of IFS is used to create $*,
2778 # except with old shells:
2781 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2786 ac_cpp='$CPP $CPPFLAGS'
2787 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2788 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2789 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2790 if test -n "$ac_tool_prefix"; then
2791 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2792 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2794 $as_echo_n "checking for $ac_word... " >&6; }
2795 if test "${ac_cv_prog_CC+set}" = set; then :
2796 $as_echo_n "(cached) " >&6
2798 if test -n "$CC"; then
2799 ac_cv_prog_CC="$CC" # Let the user override the test.
2801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2805 test -z "$as_dir" && as_dir=.
2806 for ac_exec_ext in '' $ac_executable_extensions; do
2807 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2808 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2809 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2819 if test -n "$CC"; then
2820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2821 $as_echo "$CC" >&6; }
2823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2824 $as_echo "no" >&6; }
2829 if test -z "$ac_cv_prog_CC"; then
2831 # Extract the first word of "gcc", so it can be a program name with args.
2832 set dummy gcc; ac_word=$2
2833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2834 $as_echo_n "checking for $ac_word... " >&6; }
2835 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2836 $as_echo_n "(cached) " >&6
2838 if test -n "$ac_ct_CC"; then
2839 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2845 test -z "$as_dir" && as_dir=.
2846 for ac_exec_ext in '' $ac_executable_extensions; do
2847 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2848 ac_cv_prog_ac_ct_CC="gcc"
2849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2858 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2859 if test -n "$ac_ct_CC"; then
2860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2861 $as_echo "$ac_ct_CC" >&6; }
2863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2864 $as_echo "no" >&6; }
2867 if test "x$ac_ct_CC" = x; then
2870 case $cross_compiling:$ac_tool_warned in
2872 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2873 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2874 ac_tool_warned=yes ;;
2882 if test -z "$CC"; then
2883 if test -n "$ac_tool_prefix"; then
2884 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2885 set dummy ${ac_tool_prefix}cc; ac_word=$2
2886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2887 $as_echo_n "checking for $ac_word... " >&6; }
2888 if test "${ac_cv_prog_CC+set}" = set; then :
2889 $as_echo_n "(cached) " >&6
2891 if test -n "$CC"; then
2892 ac_cv_prog_CC="$CC" # Let the user override the test.
2894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2898 test -z "$as_dir" && as_dir=.
2899 for ac_exec_ext in '' $ac_executable_extensions; do
2900 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2901 ac_cv_prog_CC="${ac_tool_prefix}cc"
2902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2912 if test -n "$CC"; then
2913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2914 $as_echo "$CC" >&6; }
2916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2917 $as_echo "no" >&6; }
2923 if test -z "$CC"; then
2924 # Extract the first word of "cc", so it can be a program name with args.
2925 set dummy cc; ac_word=$2
2926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2927 $as_echo_n "checking for $ac_word... " >&6; }
2928 if test "${ac_cv_prog_CC+set}" = set; then :
2929 $as_echo_n "(cached) " >&6
2931 if test -n "$CC"; then
2932 ac_cv_prog_CC="$CC" # Let the user override the test.
2935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2939 test -z "$as_dir" && as_dir=.
2940 for ac_exec_ext in '' $ac_executable_extensions; do
2941 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2942 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2943 ac_prog_rejected=yes
2947 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2954 if test $ac_prog_rejected = yes; then
2955 # We found a bogon in the path, so make sure we never use it.
2956 set dummy $ac_cv_prog_CC
2958 if test $# != 0; then
2959 # We chose a different compiler from the bogus one.
2960 # However, it has the same basename, so the bogon will be chosen
2961 # first if we set CC to just the basename; use the full file name.
2963 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2969 if test -n "$CC"; then
2970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2971 $as_echo "$CC" >&6; }
2973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2974 $as_echo "no" >&6; }
2979 if test -z "$CC"; then
2980 if test -n "$ac_tool_prefix"; then
2981 for ac_prog in cl.exe
2983 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2984 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2986 $as_echo_n "checking for $ac_word... " >&6; }
2987 if test "${ac_cv_prog_CC+set}" = set; then :
2988 $as_echo_n "(cached) " >&6
2990 if test -n "$CC"; then
2991 ac_cv_prog_CC="$CC" # Let the user override the test.
2993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2997 test -z "$as_dir" && as_dir=.
2998 for ac_exec_ext in '' $ac_executable_extensions; do
2999 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3000 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3011 if test -n "$CC"; then
3012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3013 $as_echo "$CC" >&6; }
3015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3016 $as_echo "no" >&6; }
3020 test -n "$CC" && break
3023 if test -z "$CC"; then
3025 for ac_prog in cl.exe
3027 # Extract the first word of "$ac_prog", so it can be a program name with args.
3028 set dummy $ac_prog; ac_word=$2
3029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3030 $as_echo_n "checking for $ac_word... " >&6; }
3031 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3032 $as_echo_n "(cached) " >&6
3034 if test -n "$ac_ct_CC"; then
3035 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3041 test -z "$as_dir" && as_dir=.
3042 for ac_exec_ext in '' $ac_executable_extensions; do
3043 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3044 ac_cv_prog_ac_ct_CC="$ac_prog"
3045 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3054 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3055 if test -n "$ac_ct_CC"; then
3056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3057 $as_echo "$ac_ct_CC" >&6; }
3059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3060 $as_echo "no" >&6; }
3064 test -n "$ac_ct_CC" && break
3067 if test "x$ac_ct_CC" = x; then
3070 case $cross_compiling:$ac_tool_warned in
3072 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3073 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3074 ac_tool_warned=yes ;;
3083 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3084 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3085 as_fn_error "no acceptable C compiler found in \$PATH
3086 See \`config.log' for more details." "$LINENO" 5; }
3088 # Provide some information about the compiler.
3089 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3092 for ac_option in --version -v -V -qversion; do
3093 { { ac_try="$ac_compiler $ac_option >&5"
3095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3096 *) ac_try_echo=$ac_try;;
3098 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3099 $as_echo "$ac_try_echo"; } >&5
3100 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3102 if test -s conftest.err; then
3104 ... rest of stderr output deleted ...
3105 10q' conftest.err >conftest.er1
3106 cat conftest.er1 >&5
3108 rm -f conftest.er1 conftest.err
3109 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3110 test $ac_status = 0; }
3113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3114 /* end confdefs.h. */
3124 ac_clean_files_save=$ac_clean_files
3125 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3126 # Try to create an executable without -o first, disregard a.out.
3127 # It will help us diagnose broken compilers, and finding out an intuition
3129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3130 $as_echo_n "checking whether the C compiler works... " >&6; }
3131 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3133 # The possible output files:
3134 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3137 for ac_file in $ac_files
3140 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3141 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3146 if { { ac_try="$ac_link_default"
3148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3149 *) ac_try_echo=$ac_try;;
3151 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3152 $as_echo "$ac_try_echo"; } >&5
3153 (eval "$ac_link_default") 2>&5
3155 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3156 test $ac_status = 0; }; then :
3157 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3158 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3159 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3160 # so that the user can short-circuit this test for compilers unknown to
3162 for ac_file in $ac_files ''
3164 test -f "$ac_file" || continue
3166 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3169 # We found the default executable, but exeext='' is most
3173 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3175 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3177 # We set ac_cv_exeext here because the later test for it is not
3178 # safe: cross compilers may not add the suffix if given an `-o'
3179 # argument, so we may need to know it at that point already.
3180 # Even if this section looks crufty: it has the advantage of
3187 test "$ac_cv_exeext" = no && ac_cv_exeext=
3192 if test -z "$ac_file"; then :
3193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3194 $as_echo "no" >&6; }
3195 $as_echo "$as_me: failed program was:" >&5
3196 sed 's/^/| /' conftest.$ac_ext >&5
3198 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3199 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3200 { as_fn_set_status 77
3201 as_fn_error "C compiler cannot create executables
3202 See \`config.log' for more details." "$LINENO" 5; }; }
3204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3205 $as_echo "yes" >&6; }
3207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3208 $as_echo_n "checking for C compiler default output file name... " >&6; }
3209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3210 $as_echo "$ac_file" >&6; }
3211 ac_exeext=$ac_cv_exeext
3213 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3214 ac_clean_files=$ac_clean_files_save
3215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3216 $as_echo_n "checking for suffix of executables... " >&6; }
3217 if { { ac_try="$ac_link"
3219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3220 *) ac_try_echo=$ac_try;;
3222 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3223 $as_echo "$ac_try_echo"; } >&5
3224 (eval "$ac_link") 2>&5
3226 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3227 test $ac_status = 0; }; then :
3228 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3229 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3230 # work properly (i.e., refer to `conftest.exe'), while it won't with
3232 for ac_file in conftest.exe conftest conftest.*; do
3233 test -f "$ac_file" || continue
3235 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3236 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3242 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3243 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3244 as_fn_error "cannot compute suffix of executables: cannot compile and link
3245 See \`config.log' for more details." "$LINENO" 5; }
3247 rm -f conftest conftest$ac_cv_exeext
3248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3249 $as_echo "$ac_cv_exeext" >&6; }
3251 rm -f conftest.$ac_ext
3252 EXEEXT=$ac_cv_exeext
3254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3255 /* end confdefs.h. */
3260 FILE *f = fopen ("conftest.out", "w");
3261 return ferror (f) || fclose (f) != 0;
3267 ac_clean_files="$ac_clean_files conftest.out"
3268 # Check that the compiler produces executables we can run. If not, either
3269 # the compiler is broken, or we cross compile.
3270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3271 $as_echo_n "checking whether we are cross compiling... " >&6; }
3272 if test "$cross_compiling" != yes; then
3273 { { ac_try="$ac_link"
3275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3276 *) ac_try_echo=$ac_try;;
3278 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3279 $as_echo "$ac_try_echo"; } >&5
3280 (eval "$ac_link") 2>&5
3282 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3283 test $ac_status = 0; }
3284 if { ac_try='./conftest$ac_cv_exeext'
3285 { { case "(($ac_try" in
3286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3287 *) ac_try_echo=$ac_try;;
3289 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3290 $as_echo "$ac_try_echo"; } >&5
3291 (eval "$ac_try") 2>&5
3293 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3294 test $ac_status = 0; }; }; then
3297 if test "$cross_compiling" = maybe; then
3300 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3301 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3302 as_fn_error "cannot run C compiled programs.
3303 If you meant to cross compile, use \`--host'.
3304 See \`config.log' for more details." "$LINENO" 5; }
3308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3309 $as_echo "$cross_compiling" >&6; }
3311 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3312 ac_clean_files=$ac_clean_files_save
3313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3314 $as_echo_n "checking for suffix of object files... " >&6; }
3315 if test "${ac_cv_objext+set}" = set; then :
3316 $as_echo_n "(cached) " >&6
3318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3319 /* end confdefs.h. */
3329 rm -f conftest.o conftest.obj
3330 if { { ac_try="$ac_compile"
3332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3333 *) ac_try_echo=$ac_try;;
3335 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3336 $as_echo "$ac_try_echo"; } >&5
3337 (eval "$ac_compile") 2>&5
3339 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3340 test $ac_status = 0; }; then :
3341 for ac_file in conftest.o conftest.obj conftest.*; do
3342 test -f "$ac_file" || continue;
3344 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3345 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3350 $as_echo "$as_me: failed program was:" >&5
3351 sed 's/^/| /' conftest.$ac_ext >&5
3353 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3354 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3355 as_fn_error "cannot compute suffix of object files: cannot compile
3356 See \`config.log' for more details." "$LINENO" 5; }
3358 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3361 $as_echo "$ac_cv_objext" >&6; }
3362 OBJEXT=$ac_cv_objext
3364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3365 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3366 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3367 $as_echo_n "(cached) " >&6
3369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3370 /* end confdefs.h. */
3383 if ac_fn_c_try_compile "$LINENO"; then :
3388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3389 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3393 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3394 if test $ac_compiler_gnu = yes; then
3399 ac_test_CFLAGS=${CFLAGS+set}
3400 ac_save_CFLAGS=$CFLAGS
3401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3402 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3403 if test "${ac_cv_prog_cc_g+set}" = set; then :
3404 $as_echo_n "(cached) " >&6
3406 ac_save_c_werror_flag=$ac_c_werror_flag
3407 ac_c_werror_flag=yes
3410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3411 /* end confdefs.h. */
3421 if ac_fn_c_try_compile "$LINENO"; then :
3425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3426 /* end confdefs.h. */
3436 if ac_fn_c_try_compile "$LINENO"; then :
3439 ac_c_werror_flag=$ac_save_c_werror_flag
3441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3442 /* end confdefs.h. */
3452 if ac_fn_c_try_compile "$LINENO"; then :
3455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3460 ac_c_werror_flag=$ac_save_c_werror_flag
3462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3463 $as_echo "$ac_cv_prog_cc_g" >&6; }
3464 if test "$ac_test_CFLAGS" = set; then
3465 CFLAGS=$ac_save_CFLAGS
3466 elif test $ac_cv_prog_cc_g = yes; then
3467 if test "$GCC" = yes; then
3473 if test "$GCC" = yes; then
3479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3480 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3481 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3482 $as_echo_n "(cached) " >&6
3484 ac_cv_prog_cc_c89=no
3486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3487 /* end confdefs.h. */
3490 #include <sys/types.h>
3491 #include <sys/stat.h>
3492 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3493 struct buf { int x; };
3494 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3495 static char *e (p, i)
3501 static char *f (char * (*g) (char **, int), char **p, ...)
3506 s = g (p, va_arg (v,int));
3511 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3512 function prototypes and stuff, but not '\xHH' hex character constants.
3513 These don't provoke an error unfortunately, instead are silently treated
3514 as 'x'. The following induces an error, until -std is added to get
3515 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3516 array size at least. It's necessary to write '\x00'==0 to get something
3517 that's true only with -std. */
3518 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3520 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3521 inside strings and character constants. */
3523 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3525 int test (int i, double x);
3526 struct s1 {int (*f) (int a);};
3527 struct s2 {int (*f) (double a);};
3528 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3534 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3539 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3540 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3542 CC="$ac_save_CC $ac_arg"
3543 if ac_fn_c_try_compile "$LINENO"; then :
3544 ac_cv_prog_cc_c89=$ac_arg
3546 rm -f core conftest.err conftest.$ac_objext
3547 test "x$ac_cv_prog_cc_c89" != "xno" && break
3549 rm -f conftest.$ac_ext
3554 case "x$ac_cv_prog_cc_c89" in
3556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3557 $as_echo "none needed" >&6; } ;;
3559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3560 $as_echo "unsupported" >&6; } ;;
3562 CC="$CC $ac_cv_prog_cc_c89"
3563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3564 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3566 if test "x$ac_cv_prog_cc_c89" != xno; then :
3571 ac_cpp='$CPP $CPPFLAGS'
3572 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3573 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3574 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
3578 $as_echo_n "checking for dlopen in -ldl... " >&6; }
3579 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
3580 $as_echo_n "(cached) " >&6
3582 ac_check_lib_save_LIBS=$LIBS
3584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3585 /* end confdefs.h. */
3587 /* Override any GCC internal prototype to avoid an error.
3588 Use char because int might match the return type of a GCC
3589 builtin and then its argument prototype would still apply. */
3602 if ac_fn_c_try_link "$LINENO"; then :
3603 ac_cv_lib_dl_dlopen=yes
3605 ac_cv_lib_dl_dlopen=no
3607 rm -f core conftest.err conftest.$ac_objext \
3608 conftest$ac_exeext conftest.$ac_ext
3609 LIBS=$ac_check_lib_save_LIBS
3611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
3612 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
3613 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
3616 $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
3623 # Check whether --with-diet-libc was given.
3624 if test "${with_diet_libc+set}" = set; then :
3625 withval=$with_diet_libc; CC="diet cc -nostdinc"
3627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: CC=$CC" >&5
3628 $as_echo "CC=$CC" >&6; }
3631 # Check whether --with-cc was given.
3632 if test "${with_cc+set}" = set; then :
3633 withval=$with_cc; as_fn_error "--with-cc no longer supported; use CC= instead" "$LINENO" 5
3637 # Check whether --with-ccopts was given.
3638 if test "${with_ccopts+set}" = set; then :
3639 withval=$with_ccopts; as_fn_error "--with-ccopts no longer supported; use CFLAGS= instead" "$LINENO" 5
3643 # Check whether --with-ldopts was given.
3644 if test "${with_ldopts+set}" = set; then :
3645 withval=$with_ldopts; as_fn_error "--with-ldopts no longer supported; use LDFLAGS= instead" "$LINENO" 5
3649 ac_cpp='$CPP $CPPFLAGS'
3650 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3651 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3652 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3653 if test -n "$ac_tool_prefix"; then
3654 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3655 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3657 $as_echo_n "checking for $ac_word... " >&6; }
3658 if test "${ac_cv_prog_CC+set}" = set; then :
3659 $as_echo_n "(cached) " >&6
3661 if test -n "$CC"; then
3662 ac_cv_prog_CC="$CC" # Let the user override the test.
3664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3668 test -z "$as_dir" && as_dir=.
3669 for ac_exec_ext in '' $ac_executable_extensions; do
3670 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3671 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3682 if test -n "$CC"; then
3683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3684 $as_echo "$CC" >&6; }
3686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3687 $as_echo "no" >&6; }
3692 if test -z "$ac_cv_prog_CC"; then
3694 # Extract the first word of "gcc", so it can be a program name with args.
3695 set dummy gcc; ac_word=$2
3696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3697 $as_echo_n "checking for $ac_word... " >&6; }
3698 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3699 $as_echo_n "(cached) " >&6
3701 if test -n "$ac_ct_CC"; then
3702 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3708 test -z "$as_dir" && as_dir=.
3709 for ac_exec_ext in '' $ac_executable_extensions; do
3710 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3711 ac_cv_prog_ac_ct_CC="gcc"
3712 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3721 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3722 if test -n "$ac_ct_CC"; then
3723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3724 $as_echo "$ac_ct_CC" >&6; }
3726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3727 $as_echo "no" >&6; }
3730 if test "x$ac_ct_CC" = x; then
3733 case $cross_compiling:$ac_tool_warned in
3735 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3736 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3737 ac_tool_warned=yes ;;
3745 if test -z "$CC"; then
3746 if test -n "$ac_tool_prefix"; then
3747 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3748 set dummy ${ac_tool_prefix}cc; ac_word=$2
3749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3750 $as_echo_n "checking for $ac_word... " >&6; }
3751 if test "${ac_cv_prog_CC+set}" = set; then :
3752 $as_echo_n "(cached) " >&6
3754 if test -n "$CC"; then
3755 ac_cv_prog_CC="$CC" # Let the user override the test.
3757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3761 test -z "$as_dir" && as_dir=.
3762 for ac_exec_ext in '' $ac_executable_extensions; do
3763 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3764 ac_cv_prog_CC="${ac_tool_prefix}cc"
3765 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3775 if test -n "$CC"; then
3776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3777 $as_echo "$CC" >&6; }
3779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3780 $as_echo "no" >&6; }
3786 if test -z "$CC"; then
3787 # Extract the first word of "cc", so it can be a program name with args.
3788 set dummy cc; ac_word=$2
3789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3790 $as_echo_n "checking for $ac_word... " >&6; }
3791 if test "${ac_cv_prog_CC+set}" = set; then :
3792 $as_echo_n "(cached) " >&6
3794 if test -n "$CC"; then
3795 ac_cv_prog_CC="$CC" # Let the user override the test.
3798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3802 test -z "$as_dir" && as_dir=.
3803 for ac_exec_ext in '' $ac_executable_extensions; do
3804 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3805 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3806 ac_prog_rejected=yes
3810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3817 if test $ac_prog_rejected = yes; then
3818 # We found a bogon in the path, so make sure we never use it.
3819 set dummy $ac_cv_prog_CC
3821 if test $# != 0; then
3822 # We chose a different compiler from the bogus one.
3823 # However, it has the same basename, so the bogon will be chosen
3824 # first if we set CC to just the basename; use the full file name.
3826 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3832 if test -n "$CC"; then
3833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3834 $as_echo "$CC" >&6; }
3836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3837 $as_echo "no" >&6; }
3842 if test -z "$CC"; then
3843 if test -n "$ac_tool_prefix"; then
3844 for ac_prog in cl.exe
3846 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3847 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3849 $as_echo_n "checking for $ac_word... " >&6; }
3850 if test "${ac_cv_prog_CC+set}" = set; then :
3851 $as_echo_n "(cached) " >&6
3853 if test -n "$CC"; then
3854 ac_cv_prog_CC="$CC" # Let the user override the test.
3856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3860 test -z "$as_dir" && as_dir=.
3861 for ac_exec_ext in '' $ac_executable_extensions; do
3862 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3863 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3864 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3874 if test -n "$CC"; then
3875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3876 $as_echo "$CC" >&6; }
3878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3879 $as_echo "no" >&6; }
3883 test -n "$CC" && break
3886 if test -z "$CC"; then
3888 for ac_prog in cl.exe
3890 # Extract the first word of "$ac_prog", so it can be a program name with args.
3891 set dummy $ac_prog; ac_word=$2
3892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3893 $as_echo_n "checking for $ac_word... " >&6; }
3894 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3895 $as_echo_n "(cached) " >&6
3897 if test -n "$ac_ct_CC"; then
3898 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3904 test -z "$as_dir" && as_dir=.
3905 for ac_exec_ext in '' $ac_executable_extensions; do
3906 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3907 ac_cv_prog_ac_ct_CC="$ac_prog"
3908 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3917 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3918 if test -n "$ac_ct_CC"; then
3919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3920 $as_echo "$ac_ct_CC" >&6; }
3922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3923 $as_echo "no" >&6; }
3927 test -n "$ac_ct_CC" && break
3930 if test "x$ac_ct_CC" = x; then
3933 case $cross_compiling:$ac_tool_warned in
3935 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3936 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3937 ac_tool_warned=yes ;;
3946 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3947 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3948 as_fn_error "no acceptable C compiler found in \$PATH
3949 See \`config.log' for more details." "$LINENO" 5; }
3951 # Provide some information about the compiler.
3952 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3955 for ac_option in --version -v -V -qversion; do
3956 { { ac_try="$ac_compiler $ac_option >&5"
3958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3959 *) ac_try_echo=$ac_try;;
3961 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3962 $as_echo "$ac_try_echo"; } >&5
3963 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3965 if test -s conftest.err; then
3967 ... rest of stderr output deleted ...
3968 10q' conftest.err >conftest.er1
3969 cat conftest.er1 >&5
3971 rm -f conftest.er1 conftest.err
3972 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3973 test $ac_status = 0; }
3976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3977 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3978 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3979 $as_echo_n "(cached) " >&6
3981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3982 /* end confdefs.h. */
3995 if ac_fn_c_try_compile "$LINENO"; then :
4000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4001 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4005 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4006 if test $ac_compiler_gnu = yes; then
4011 ac_test_CFLAGS=${CFLAGS+set}
4012 ac_save_CFLAGS=$CFLAGS
4013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4014 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4015 if test "${ac_cv_prog_cc_g+set}" = set; then :
4016 $as_echo_n "(cached) " >&6
4018 ac_save_c_werror_flag=$ac_c_werror_flag
4019 ac_c_werror_flag=yes
4022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4023 /* end confdefs.h. */
4033 if ac_fn_c_try_compile "$LINENO"; then :
4037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4038 /* end confdefs.h. */
4048 if ac_fn_c_try_compile "$LINENO"; then :
4051 ac_c_werror_flag=$ac_save_c_werror_flag
4053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4054 /* end confdefs.h. */
4064 if ac_fn_c_try_compile "$LINENO"; then :
4067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4072 ac_c_werror_flag=$ac_save_c_werror_flag
4074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4075 $as_echo "$ac_cv_prog_cc_g" >&6; }
4076 if test "$ac_test_CFLAGS" = set; then
4077 CFLAGS=$ac_save_CFLAGS
4078 elif test $ac_cv_prog_cc_g = yes; then
4079 if test "$GCC" = yes; then
4085 if test "$GCC" = yes; then
4091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4092 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4093 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4094 $as_echo_n "(cached) " >&6
4096 ac_cv_prog_cc_c89=no
4098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4099 /* end confdefs.h. */
4102 #include <sys/types.h>
4103 #include <sys/stat.h>
4104 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4105 struct buf { int x; };
4106 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4107 static char *e (p, i)
4113 static char *f (char * (*g) (char **, int), char **p, ...)
4118 s = g (p, va_arg (v,int));
4123 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4124 function prototypes and stuff, but not '\xHH' hex character constants.
4125 These don't provoke an error unfortunately, instead are silently treated
4126 as 'x'. The following induces an error, until -std is added to get
4127 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4128 array size at least. It's necessary to write '\x00'==0 to get something
4129 that's true only with -std. */
4130 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4132 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4133 inside strings and character constants. */
4135 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4137 int test (int i, double x);
4138 struct s1 {int (*f) (int a);};
4139 struct s2 {int (*f) (double a);};
4140 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4146 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4151 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4152 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4154 CC="$ac_save_CC $ac_arg"
4155 if ac_fn_c_try_compile "$LINENO"; then :
4156 ac_cv_prog_cc_c89=$ac_arg
4158 rm -f core conftest.err conftest.$ac_objext
4159 test "x$ac_cv_prog_cc_c89" != "xno" && break
4161 rm -f conftest.$ac_ext
4166 case "x$ac_cv_prog_cc_c89" in
4168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4169 $as_echo "none needed" >&6; } ;;
4171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4172 $as_echo "unsupported" >&6; } ;;
4174 CC="$CC $ac_cv_prog_cc_c89"
4175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4176 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4178 if test "x$ac_cv_prog_cc_c89" != xno; then :
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
4188 if test "$GCC" = yes; then
4189 RDYNAMIC="-rdynamic"
4193 ac_cpp='$CPP $CPPFLAGS'
4194 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4195 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4196 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4198 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4199 # On Suns, sometimes $CPP names a directory.
4200 if test -n "$CPP" && test -d "$CPP"; then
4203 if test -z "$CPP"; then
4204 if test "${ac_cv_prog_CPP+set}" = set; then :
4205 $as_echo_n "(cached) " >&6
4207 # Double quotes because CPP needs to be expanded
4208 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4211 for ac_c_preproc_warn_flag in '' yes
4213 # Use a header file that comes with gcc, so configuring glibc
4214 # with a fresh cross-compiler works.
4215 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4216 # <limits.h> exists even on freestanding compilers.
4217 # On the NeXT, cc -E runs the code through the compiler's parser,
4218 # not just through cpp. "Syntax error" is here to catch this case.
4219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4220 /* end confdefs.h. */
4222 # include <limits.h>
4224 # include <assert.h>
4228 if ac_fn_c_try_cpp "$LINENO"; then :
4231 # Broken: fails on valid input.
4234 rm -f conftest.err conftest.$ac_ext
4236 # OK, works on sane cases. Now check whether nonexistent headers
4237 # can be detected and how.
4238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4239 /* end confdefs.h. */
4240 #include <ac_nonexistent.h>
4242 if ac_fn_c_try_cpp "$LINENO"; then :
4243 # Broken: success on invalid input.
4246 # Passes both tests.
4250 rm -f conftest.err conftest.$ac_ext
4253 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4254 rm -f conftest.err conftest.$ac_ext
4255 if $ac_preproc_ok; then :
4267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4268 $as_echo "$CPP" >&6; }
4270 for ac_c_preproc_warn_flag in '' yes
4272 # Use a header file that comes with gcc, so configuring glibc
4273 # with a fresh cross-compiler works.
4274 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4275 # <limits.h> exists even on freestanding compilers.
4276 # On the NeXT, cc -E runs the code through the compiler's parser,
4277 # not just through cpp. "Syntax error" is here to catch this case.
4278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4279 /* end confdefs.h. */
4281 # include <limits.h>
4283 # include <assert.h>
4287 if ac_fn_c_try_cpp "$LINENO"; then :
4290 # Broken: fails on valid input.
4293 rm -f conftest.err conftest.$ac_ext
4295 # OK, works on sane cases. Now check whether nonexistent headers
4296 # can be detected and how.
4297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4298 /* end confdefs.h. */
4299 #include <ac_nonexistent.h>
4301 if ac_fn_c_try_cpp "$LINENO"; then :
4302 # Broken: success on invalid input.
4305 # Passes both tests.
4309 rm -f conftest.err conftest.$ac_ext
4312 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4313 rm -f conftest.err conftest.$ac_ext
4314 if $ac_preproc_ok; then :
4317 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4318 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4319 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4320 See \`config.log' for more details." "$LINENO" 5; }
4324 ac_cpp='$CPP $CPPFLAGS'
4325 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4326 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4327 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for additional special compiler flags" >&5
4330 $as_echo_n "checking for additional special compiler flags... " >&6; }
4331 if test "$GCC" = yes
4334 alpha) addcflags="-mieee" ;;
4337 if test "x$addcflags" != x
4339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $addcflags" >&5
4340 $as_echo "$addcflags" >&6; }
4341 CFLAGS="$addcflags $CFLAGS"
4343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (none)" >&5
4344 $as_echo "(none)" >&6; }
4350 # Check whether --with-root-prefix was given.
4351 if test "${with_root_prefix+set}" = set; then :
4352 withval=$with_root_prefix; root_prefix=$withval
4356 # Check whether --enable-maintainer-mode was given.
4357 if test "${enable_maintainer_mode+set}" = set; then :
4358 enableval=$enable_maintainer_mode; if test "$enableval" = "no"
4361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode" >&5
4362 $as_echo "Disabling maintainer mode" >&6; }
4365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling maintainer mode" >&5
4366 $as_echo "Enabling maintainer mode" >&6; }
4371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode by default" >&5
4372 $as_echo "Disabling maintainer mode by default" >&6; }
4377 # Check whether --enable-symlink-install was given.
4378 if test "${enable_symlink_install+set}" = set; then :
4379 enableval=$enable_symlink_install; if test "$enableval" = "no"
4381 LINK_INSTALL_FLAGS=-f
4382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install" >&5
4383 $as_echo "Disabling symlinks for install" >&6; }
4385 LINK_INSTALL_FLAGS=-sf
4386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for install" >&5
4387 $as_echo "Enabling symlinks for install" >&6; }
4391 LINK_INSTALL_FLAGS=-f
4392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install by default" >&5
4393 $as_echo "Disabling symlinks for install by default" >&6; }
4398 # Check whether --enable-symlink-relative-symlinks was given.
4399 if test "${enable_symlink_relative_symlinks+set}" = set; then :
4400 enableval=$enable_symlink_relative_symlinks; if test "$enableval" = "no"
4403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
4404 $as_echo "Disabling relative symlinks for install" >&6; }
4406 SYMLINK_RELATIVE=--relative
4407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for install" >&5
4408 $as_echo "Enabling symlinks for install" >&6; }
4413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install by default" >&5
4414 $as_echo "Disabling relative symlinks for install by default" >&6; }
4419 # Check whether --enable-symlink-build was given.
4420 if test "${enable_symlink_build+set}" = set; then :
4421 enableval=$enable_symlink_build; if test "$enableval" = "no"
4424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build" >&5
4425 $as_echo "Disabling symlinks for build" >&6; }
4428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for build" >&5
4429 $as_echo "Enabling symlinks for build" >&6; }
4434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build by default" >&5
4435 $as_echo "Disabling symlinks for build by default" >&6; }
4440 # Check whether --enable-verbose-makecmds was given.
4441 if test "${enable_verbose_makecmds+set}" = set; then :
4442 enableval=$enable_verbose_makecmds; if test "$enableval" = "no"
4444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
4445 $as_echo "Disabling verbose make commands" >&6; }
4449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling verbose make commands" >&5
4450 $as_echo "Enabling verbose make commands" >&6; }
4456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
4457 $as_echo "Disabling verbose make commands" >&6; }
4465 # Check whether --enable-lfsck was given.
4466 if test "${enable_lfsck+set}" = set; then :
4467 enableval=$enable_lfsck; if test "$enableval" = "no"
4471 ENABLE_LFSCK="--disable-lfsck"
4472 echo "Disabling Lustre lfsck support"
4476 ENABLE_LFSCK="--enable-lfsck"
4478 $as_echo "#define HAVE_LFSCK 1" >>confdefs.h
4480 echo "Enabling Lustre lfsck support"
4488 $as_echo "#define HAVE_LFSCK 1" >>confdefs.h
4490 echo "Enabling Lustre lfsck support by default"
4498 # Check whether --with-lustre was given.
4499 if test "${with_lustre+set}" = set; then :
4500 withval=$with_lustre; { $as_echo "$as_me:${as_lineno-$LINENO}: result: LUSTRE is in $withval" >&5
4501 $as_echo "LUSTRE is in $withval" >&6; }
4503 WITH_LUSTRE="--with-lustre=$withval"
4511 if test "x$enable_lfsck" != "xno"; then :
4513 as_ac_File=`$as_echo "ac_cv_file_$LUSTRE/include/lustre/liblustreapi.h" | $as_tr_sh`
4514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LUSTRE/include/lustre/liblustreapi.h" >&5
4515 $as_echo_n "checking for $LUSTRE/include/lustre/liblustreapi.h... " >&6; }
4516 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then :
4517 $as_echo_n "(cached) " >&6
4519 test "$cross_compiling" = yes &&
4520 as_fn_error "cannot check for file existence when cross compiling" "$LINENO" 5
4521 if test -r "$LUSTRE/include/lustre/liblustreapi.h"; then
4522 eval "$as_ac_File=yes"
4524 eval "$as_ac_File=no"
4527 eval ac_res=\$$as_ac_File
4528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
4529 $as_echo "$ac_res" >&6; }
4530 eval as_val=\$$as_ac_File
4531 if test "x$as_val" = x""yes; then :
4534 as_ac_File=`$as_echo "ac_cv_file_$LUSTRE/lustre/include/lustre/liblustreapi.h" | $as_tr_sh`
4535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LUSTRE/lustre/include/lustre/liblustreapi.h" >&5
4536 $as_echo_n "checking for $LUSTRE/lustre/include/lustre/liblustreapi.h... " >&6; }
4537 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then :
4538 $as_echo_n "(cached) " >&6
4540 test "$cross_compiling" = yes &&
4541 as_fn_error "cannot check for file existence when cross compiling" "$LINENO" 5
4542 if test -r "$LUSTRE/lustre/include/lustre/liblustreapi.h"; then
4543 eval "$as_ac_File=yes"
4545 eval "$as_ac_File=no"
4548 eval ac_res=\$$as_ac_File
4549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
4550 $as_echo "$ac_res" >&6; }
4551 eval as_val=\$$as_ac_File
4552 if test "x$as_val" = x""yes; then :
4555 as_fn_error "No lustre includes found." "$LINENO" 5
4563 # Check whether --enable-compression was given.
4564 if test "${enable_compression+set}" = set; then :
4565 enableval=$enable_compression; if test "$enableval" = "no"
4567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling compression support" >&5
4568 $as_echo "Disabling compression support" >&6; }
4571 $as_echo "#define ENABLE_COMPRESSION 1" >>confdefs.h
4573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling compression support" >&5
4574 $as_echo "Enabling compression support" >&6; }
4575 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Compression support is experimental" >&5
4576 $as_echo "$as_me: WARNING: Compression support is experimental" >&2;}
4580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling compression support by default" >&5
4581 $as_echo "Disabling compression support by default" >&6; }
4586 # Check whether --enable-htree was given.
4587 if test "${enable_htree+set}" = set; then :
4588 enableval=$enable_htree; if test "$enableval" = "no"
4591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling htree directory support" >&5
4592 $as_echo "Disabling htree directory support" >&6; }
4595 $as_echo "#define ENABLE_HTREE 1" >>confdefs.h
4597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling htree directory support" >&5
4598 $as_echo "Enabling htree directory support" >&6; }
4603 $as_echo "#define ENABLE_HTREE 1" >>confdefs.h
4605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling htree directory support by default" >&5
4606 $as_echo "Enabling htree directory support by default" >&6; }
4611 E2_PKG_CONFIG_STATIC=--static
4614 # Check whether --enable-elf-shlibs was given.
4615 if test "${enable_elf_shlibs+set}" = set; then :
4616 enableval=$enable_elf_shlibs; if test "$enableval" = "no"
4619 MAKEFILE_ELF=/dev/null
4620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries" >&5
4621 $as_echo "Disabling ELF shared libraries" >&6; }
4623 E2_PKG_CONFIG_STATIC=
4625 MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
4628 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
4634 LDFLAG_DYNAMIC='-Wl,-rpath-link,$(top_builddir)/lib'
4635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling ELF shared libraries" >&5
4636 $as_echo "Enabling ELF shared libraries" >&6; }
4640 MAKEFILE_ELF=/dev/null
4642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries by default" >&5
4643 $as_echo "Disabling ELF shared libraries by default" >&6; }
4649 # Check whether --enable-bsd-shlibs was given.
4650 if test "${enable_bsd_shlibs+set}" = set; then :
4651 enableval=$enable_bsd_shlibs; if test "$enableval" = "no"
4654 MAKEFILE_BSDLIB=/dev/null
4655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries" >&5
4656 $as_echo "Disabling BSD shared libraries" >&6; }
4658 E2_PKG_CONFIG_STATIC=
4660 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
4664 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib
4668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling BSD shared libraries" >&5
4669 $as_echo "Enabling BSD shared libraries" >&6; }
4673 MAKEFILE_BSDLIB=/dev/null
4675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries by default" >&5
4676 $as_echo "Disabling BSD shared libraries by default" >&6; }
4682 # Check whether --enable-profile was given.
4683 if test "${enable_profile+set}" = set; then :
4684 enableval=$enable_profile; if test "$enableval" = "no"
4687 MAKEFILE_PROFILE=/dev/null
4688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries" >&5
4689 $as_echo "Disabling profiling libraries" >&6; }
4692 MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
4693 PROFILED_LIB_EXT=_p.a
4694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building profiling libraries" >&5
4695 $as_echo "Building profiling libraries" >&6; }
4700 MAKEFILE_PROFILE=/dev/null
4701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries by default" >&5
4702 $as_echo "Disabling profiling libraries by default" >&6; }
4708 # Check whether --enable-checker was given.
4709 if test "${enable_checker+set}" = set; then :
4710 enableval=$enable_checker; if test "$enableval" = "no"
4713 MAKEFILE_CHECKER=/dev/null
4714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling checker libraries" >&5
4715 $as_echo "Disabling checker libraries" >&6; }
4718 MAKEFILE_CHECKER=$srcdir/lib/Makefile.checker
4719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building checker libraries" >&5
4720 $as_echo "Building checker libraries" >&6; }
4725 MAKEFILE_CHECKER=/dev/null
4726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling checker libraries by default" >&5
4727 $as_echo "Disabling checker libraries by default" >&6; }
4738 # Check whether --enable-jbd-debug was given.
4739 if test "${enable_jbd_debug+set}" = set; then :
4740 enableval=$enable_jbd_debug; if test "$enableval" = "no"
4742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging" >&5
4743 $as_echo "Disabling journal debugging" >&6; }
4746 $as_echo "#define CONFIG_JBD_DEBUG 1" >>confdefs.h
4748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling journal debugging" >&5
4749 $as_echo "Enabling journal debugging" >&6; }
4753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging by default" >&5
4754 $as_echo "Disabling journal debugging by default" >&6; }
4758 # Check whether --enable-blkid-debug was given.
4759 if test "${enable_blkid_debug+set}" = set; then :
4760 enableval=$enable_blkid_debug; if test "$enableval" = "no"
4762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging" >&5
4763 $as_echo "Disabling blkid debugging" >&6; }
4766 $as_echo "#define CONFIG_BLKID_DEBUG 1" >>confdefs.h
4768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling blkid debugging" >&5
4769 $as_echo "Enabling blkid debugging" >&6; }
4773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging by default" >&5
4774 $as_echo "Disabling blkid debugging by default" >&6; }
4778 # Check whether --enable-testio-debug was given.
4779 if test "${enable_testio_debug+set}" = set; then :
4780 enableval=$enable_testio_debug;
4781 if test "$enableval" = "no"
4783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling testio debugging" >&5
4784 $as_echo "Disabling testio debugging" >&6; }
4788 $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
4790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging" >&5
4791 $as_echo "Enabling testio debugging" >&6; }
4795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging by default" >&5
4796 $as_echo "Enabling testio debugging by default" >&6; }
4797 $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
4806 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4807 if test -n "$ac_tool_prefix"; then
4808 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4809 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4811 $as_echo_n "checking for $ac_word... " >&6; }
4812 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
4813 $as_echo_n "(cached) " >&6
4817 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4824 test -z "$as_dir" && as_dir=.
4825 for ac_exec_ext in '' $ac_executable_extensions; do
4826 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4827 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4828 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4838 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4839 if test -n "$PKG_CONFIG"; then
4840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4841 $as_echo "$PKG_CONFIG" >&6; }
4843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4844 $as_echo "no" >&6; }
4849 if test -z "$ac_cv_path_PKG_CONFIG"; then
4850 ac_pt_PKG_CONFIG=$PKG_CONFIG
4851 # Extract the first word of "pkg-config", so it can be a program name with args.
4852 set dummy pkg-config; ac_word=$2
4853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4854 $as_echo_n "checking for $ac_word... " >&6; }
4855 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
4856 $as_echo_n "(cached) " >&6
4858 case $ac_pt_PKG_CONFIG in
4860 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4867 test -z "$as_dir" && as_dir=.
4868 for ac_exec_ext in '' $ac_executable_extensions; do
4869 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4870 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4881 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4882 if test -n "$ac_pt_PKG_CONFIG"; then
4883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4884 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4887 $as_echo "no" >&6; }
4890 if test "x$ac_pt_PKG_CONFIG" = x; then
4893 case $cross_compiling:$ac_tool_warned in
4895 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4896 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4897 ac_tool_warned=yes ;;
4899 PKG_CONFIG=$ac_pt_PKG_CONFIG
4902 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4906 if test -n "$PKG_CONFIG"; then
4907 _pkg_min_version=0.9.0
4908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4909 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4910 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4912 $as_echo "yes" >&6; }
4914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4915 $as_echo "no" >&6; }
4925 DEPPROFILED_LIBUUID=
4927 # Check whether --enable-libuuid was given.
4928 if test "${enable_libuuid+set}" = set; then :
4929 enableval=$enable_libuuid; if test "$enableval" = "no"
4931 if test -z "$PKG_CONFIG"; then
4932 as_fn_error "pkg-config not installed; please install it." "$LINENO" 5
4935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
4936 $as_echo_n "checking for uuid_generate in -luuid... " >&6; }
4937 if test "${ac_cv_lib_uuid_uuid_generate+set}" = set; then :
4938 $as_echo_n "(cached) " >&6
4940 ac_check_lib_save_LIBS=$LIBS
4941 LIBS="-luuid $LIBUUID $LIBS"
4942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4943 /* end confdefs.h. */
4945 /* Override any GCC internal prototype to avoid an error.
4946 Use char because int might match the return type of a GCC
4947 builtin and then its argument prototype would still apply. */
4951 char uuid_generate ();
4955 return uuid_generate ();
4960 if ac_fn_c_try_link "$LINENO"; then :
4961 ac_cv_lib_uuid_uuid_generate=yes
4963 ac_cv_lib_uuid_uuid_generate=no
4965 rm -f core conftest.err conftest.$ac_objext \
4966 conftest$ac_exeext conftest.$ac_ext
4967 LIBS=$ac_check_lib_save_LIBS
4969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
4970 $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
4971 if test "x$ac_cv_lib_uuid_uuid_generate" = x""yes; then :
4972 LIBUUID=`$PKG_CONFIG --libs uuid`;
4973 STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid`
4975 as_fn_error "external uuid library not found" "$LINENO" 5
4979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private uuid library" >&5
4980 $as_echo "Disabling private uuid library" >&6; }
4982 LIBUUID='$(LIB)/libuuid'$LIB_EXT
4984 STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
4985 DEPSTATIC_LIBUUID=$STATIC_LIBUUID
4986 PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
4987 DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
4988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library" >&5
4989 $as_echo "Enabling private uuid library" >&6; }
4993 LIBUUID='$(LIB)/libuuid'$LIB_EXT
4995 STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
4996 DEPSTATIC_LIBUUID=$STATIC_LIBUUID
4997 PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
4998 DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
4999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library by default" >&5
5000 $as_echo "Enabling private uuid library by default" >&6; }
5013 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5014 if test -n "$ac_tool_prefix"; then
5015 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5016 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5018 $as_echo_n "checking for $ac_word... " >&6; }
5019 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
5020 $as_echo_n "(cached) " >&6
5024 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5031 test -z "$as_dir" && as_dir=.
5032 for ac_exec_ext in '' $ac_executable_extensions; do
5033 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5034 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5035 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5045 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5046 if test -n "$PKG_CONFIG"; then
5047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5048 $as_echo "$PKG_CONFIG" >&6; }
5050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5051 $as_echo "no" >&6; }
5056 if test -z "$ac_cv_path_PKG_CONFIG"; then
5057 ac_pt_PKG_CONFIG=$PKG_CONFIG
5058 # Extract the first word of "pkg-config", so it can be a program name with args.
5059 set dummy pkg-config; ac_word=$2
5060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5061 $as_echo_n "checking for $ac_word... " >&6; }
5062 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
5063 $as_echo_n "(cached) " >&6
5065 case $ac_pt_PKG_CONFIG in
5067 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5074 test -z "$as_dir" && as_dir=.
5075 for ac_exec_ext in '' $ac_executable_extensions; do
5076 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5077 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5088 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5089 if test -n "$ac_pt_PKG_CONFIG"; then
5090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5091 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5094 $as_echo "no" >&6; }
5097 if test "x$ac_pt_PKG_CONFIG" = x; then
5100 case $cross_compiling:$ac_tool_warned in
5102 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5103 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5104 ac_tool_warned=yes ;;
5106 PKG_CONFIG=$ac_pt_PKG_CONFIG
5109 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5113 if test -n "$PKG_CONFIG"; then
5114 _pkg_min_version=0.9.0
5115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5116 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5117 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5119 $as_echo "yes" >&6; }
5121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5122 $as_echo "no" >&6; }
5132 DEPPROFILED_LIBBLKID=
5135 # Check whether --enable-libblkid was given.
5136 if test "${enable_libblkid+set}" = set; then :
5137 enableval=$enable_libblkid; if test "$enableval" = "no"
5139 if test -z "$PKG_CONFIG"; then
5140 as_fn_error "pkg-config not installed; please install it." "$LINENO" 5
5143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
5144 $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
5145 if test "${ac_cv_lib_blkid_blkid_get_cache+set}" = set; then :
5146 $as_echo_n "(cached) " >&6
5148 ac_check_lib_save_LIBS=$LIBS
5149 LIBS="-lblkid $LIBBLKID $LIBS"
5150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5151 /* end confdefs.h. */
5153 /* Override any GCC internal prototype to avoid an error.
5154 Use char because int might match the return type of a GCC
5155 builtin and then its argument prototype would still apply. */
5159 char blkid_get_cache ();
5163 return blkid_get_cache ();
5168 if ac_fn_c_try_link "$LINENO"; then :
5169 ac_cv_lib_blkid_blkid_get_cache=yes
5171 ac_cv_lib_blkid_blkid_get_cache=no
5173 rm -f core conftest.err conftest.$ac_objext \
5174 conftest$ac_exeext conftest.$ac_ext
5175 LIBS=$ac_check_lib_save_LIBS
5177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
5178 $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
5179 if test "x$ac_cv_lib_blkid_blkid_get_cache" = x""yes; then :
5180 LIBBLKID=`$PKG_CONFIG --libs blkid`;
5181 STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid`
5183 as_fn_error "external blkid library not found" "$LINENO" 5
5187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private blkid library" >&5
5188 $as_echo "Disabling private blkid library" >&6; }
5190 LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5191 DEPLIBBLKID=$LIBBLKID
5192 STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5193 DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5194 PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5195 DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
5196 $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
5198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library" >&5
5199 $as_echo "Enabling private blkid library" >&6; }
5203 LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5204 DEPLIBBLKID=$LIBBLKID
5205 STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5206 DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5207 PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5208 DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
5209 $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
5211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library by default" >&5
5212 $as_echo "Enabling private blkid library by default" >&6; }
5225 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5226 if test -n "$ac_tool_prefix"; then
5227 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5228 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5230 $as_echo_n "checking for $ac_word... " >&6; }
5231 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
5232 $as_echo_n "(cached) " >&6
5236 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5243 test -z "$as_dir" && as_dir=.
5244 for ac_exec_ext in '' $ac_executable_extensions; do
5245 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5246 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5247 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5257 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5258 if test -n "$PKG_CONFIG"; then
5259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5260 $as_echo "$PKG_CONFIG" >&6; }
5262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5263 $as_echo "no" >&6; }
5268 if test -z "$ac_cv_path_PKG_CONFIG"; then
5269 ac_pt_PKG_CONFIG=$PKG_CONFIG
5270 # Extract the first word of "pkg-config", so it can be a program name with args.
5271 set dummy pkg-config; ac_word=$2
5272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5273 $as_echo_n "checking for $ac_word... " >&6; }
5274 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
5275 $as_echo_n "(cached) " >&6
5277 case $ac_pt_PKG_CONFIG in
5279 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5286 test -z "$as_dir" && as_dir=.
5287 for ac_exec_ext in '' $ac_executable_extensions; do
5288 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5289 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5290 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5300 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5301 if test -n "$ac_pt_PKG_CONFIG"; then
5302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5303 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5306 $as_echo "no" >&6; }
5309 if test "x$ac_pt_PKG_CONFIG" = x; then
5312 case $cross_compiling:$ac_tool_warned in
5314 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5315 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5316 ac_tool_warned=yes ;;
5318 PKG_CONFIG=$ac_pt_PKG_CONFIG
5321 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5325 if test -n "$PKG_CONFIG"; then
5326 _pkg_min_version=0.9.0
5327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5328 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5329 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5331 $as_echo "yes" >&6; }
5333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5334 $as_echo "no" >&6; }
5340 # Check whether --enable-quota was given.
5341 if test "${enable_quota+set}" = set; then :
5342 enableval=$enable_quota; if test "$enableval" = "no"
5344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling quota support" >&5
5345 $as_echo "Disabling quota support" >&6; }
5347 $as_echo "#define CONFIG_QUOTA 1" >>confdefs.h
5349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling quota support" >&5
5350 $as_echo "Enabling quota support" >&6; }
5354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling quota support by default" >&5
5355 $as_echo "Disabling quota support by default" >&6; }
5359 LIBQUOTA='$(LIB)/libquota'$LIB_EXT
5360 DEPLIBQUOTA=$LIBQUOTA
5361 STATIC_LIBQUOTA='$(LIB)/libquota'$STATIC_LIB_EXT
5362 DEPSTATIC_LIBQUOTA=$STATIC_LIBQUOTA
5363 PROFILED_LIBQUOTA='$(LIB)/libquota'$PROFILED_LIB_EXT
5364 DEPPROFILED_LIBQUOTA=$PROFILED_LIBQUOTA
5372 # Check whether --enable-debugfs was given.
5373 if test "${enable_debugfs+set}" = set; then :
5374 enableval=$enable_debugfs; if test "$enableval" = "no"
5376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling debugfs support" >&5
5377 $as_echo "Disabling debugfs support" >&6; }
5381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support" >&5
5382 $as_echo "Enabling debugfs support" >&6; }
5386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support by default" >&5
5387 $as_echo "Enabling debugfs support by default" >&6; }
5393 # Check whether --enable-imager was given.
5394 if test "${enable_imager+set}" = set; then :
5395 enableval=$enable_imager; if test "$enableval" = "no"
5397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2image support" >&5
5398 $as_echo "Disabling e2image support" >&6; }
5402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support" >&5
5403 $as_echo "Enabling e2image support" >&6; }
5407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support by default" >&5
5408 $as_echo "Enabling e2image support by default" >&6; }
5414 # Check whether --enable-resizer was given.
5415 if test "${enable_resizer+set}" = set; then :
5416 enableval=$enable_resizer; if test "$enableval" = "no"
5418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2resize support" >&5
5419 $as_echo "Disabling e2resize support" >&6; }
5423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support" >&5
5424 $as_echo "Enabling e2resize support" >&6; }
5428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support by default" >&5
5429 $as_echo "Enabling e2resize support by default" >&6; }
5435 # Check whether --enable-defrag was given.
5436 if test "${enable_defrag+set}" = set; then :
5437 enableval=$enable_defrag; if test "$enableval" = "no"
5439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support" >&5
5440 $as_echo "Disabling e4defrag support" >&6; }
5444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support" >&5
5445 $as_echo "Enabling e4defrag support" >&6; }
5449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support by default" >&5
5450 $as_echo "Enabling e4defrag support by default" >&6; }
5456 # Check whether --enable-fsck was given.
5457 if test "${enable_fsck+set}" = set; then :
5458 enableval=$enable_fsck; if test "$enableval" = "no"
5460 FSCK_PROG='' FSCK_MAN=''
5461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper" >&5
5462 $as_echo "Not building fsck wrapper" >&6; }
5464 FSCK_PROG=fsck FSCK_MAN=fsck.8
5465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper" >&5
5466 $as_echo "Building fsck wrapper" >&6; }
5472 FSCK_PROG='' FSCK_MAN=''
5473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper by default" >&5
5474 $as_echo "Not building fsck wrapper by default" >&6; }
5477 FSCK_PROG=fsck FSCK_MAN=fsck.8
5478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper by default" >&5
5479 $as_echo "Building fsck wrapper by default" >&6; }
5486 # Check whether --enable-e2initrd-helper was given.
5487 if test "${enable_e2initrd_helper+set}" = set; then :
5488 enableval=$enable_e2initrd_helper; if test "$enableval" = "no"
5490 E2INITRD_PROG='' E2INITRD_MAN=''
5491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building e2initrd helper" >&5
5492 $as_echo "Not building e2initrd helper" >&6; }
5494 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
5495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper" >&5
5496 $as_echo "Building e2initrd helper" >&6; }
5500 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
5501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper by default" >&5
5502 $as_echo "Building e2initrd helper by default" >&6; }
5508 # Check whether --enable-tls was given.
5509 if test "${enable_tls+set}" = set; then :
5510 enableval=$enable_tls; if test "$enableval" = "no"
5513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling thread local support" >&5
5514 $as_echo "Disabling thread local support" >&6; }
5517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling thread local support" >&5
5518 $as_echo "Enabling thread local support" >&6; }
5522 if test -n "$WITH_DIET_LIBC"
5525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Diet libc does not support thread local support" >&5
5526 $as_echo "Diet libc does not support thread local support" >&6; }
5529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Try using thread local support by default" >&5
5530 $as_echo "Try using thread local support by default" >&6; }
5535 if test "$try_tls" = "yes"
5538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread local storage (TLS) class" >&5
5539 $as_echo_n "checking for thread local storage (TLS) class... " >&6; }
5540 if test "${ac_cv_tls+set}" = set; then :
5541 $as_echo_n "(cached) " >&6
5544 ax_tls_keywords="__thread __declspec(thread) none"
5545 for ax_tls_keyword in $ax_tls_keywords; do
5546 case $ax_tls_keyword in
5547 none) ac_cv_tls=none ; break ;;
5549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5550 /* end confdefs.h. */
5554 static $ax_tls_keyword int bar;
5565 if ac_fn_c_try_compile "$LINENO"; then :
5566 ac_cv_tls=$ax_tls_keyword ; break
5571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5578 if test "$ac_cv_tls" != "none"; then
5580 cat >>confdefs.h <<_ACEOF
5581 #define TLS $ac_cv_tls
5585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tls" >&5
5586 $as_echo "$ac_cv_tls" >&6; }
5590 # Check whether --enable-uuidd was given.
5591 if test "${enable_uuidd+set}" = set; then :
5592 enableval=$enable_uuidd; if test "$enableval" = "no"
5594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building uuidd" >&5
5595 $as_echo "Not building uuidd" >&6; }
5598 $as_echo "#define USE_UUIDD 1" >>confdefs.h
5601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd" >&5
5602 $as_echo "Building uuidd" >&6; }
5606 $as_echo "#define USE_UUIDD 1" >>confdefs.h
5609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd by default" >&5
5610 $as_echo "Building uuidd by default" >&6; }
5615 MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
5617 GETTEXT_PACKAGE=e2fsprogs
5619 VERSION="$E2FSPROGS_VERSION"
5622 cat >>confdefs.h <<_ACEOF
5623 #define PACKAGE "$PACKAGE"
5627 cat >>confdefs.h <<_ACEOF
5628 #define VERSION "$VERSION"
5635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5636 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5638 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5639 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
5640 $as_echo_n "(cached) " >&6
5642 cat >conftest.make <<\_ACEOF
5645 @echo '@@@%%%=$(MAKE)=@@@%%%'
5647 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5648 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5650 eval ac_cv_prog_make_${ac_make}_set=yes;;
5652 eval ac_cv_prog_make_${ac_make}_set=no;;
5656 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5658 $as_echo "yes" >&6; }
5661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5662 $as_echo "no" >&6; }
5663 SET_MAKE="MAKE=${MAKE-make}"
5666 # Find a good install program. We prefer a C program (faster),
5667 # so one script is as good as another. But avoid the broken or
5668 # incompatible versions:
5669 # SysV /etc/install, /usr/sbin/install
5670 # SunOS /usr/etc/install
5671 # IRIX /sbin/install
5673 # AmigaOS /C/install, which installs bootblocks on floppy discs
5674 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5675 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5676 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5677 # OS/2's system install, which has a completely different semantic
5678 # ./install, which can be erroneously created by make from ./install.sh.
5679 # Reject install programs that cannot install multiple files.
5680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
5681 $as_echo_n "checking for a BSD-compatible install... " >&6; }
5682 if test -z "$INSTALL"; then
5683 if test "${ac_cv_path_install+set}" = set; then :
5684 $as_echo_n "(cached) " >&6
5686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5690 test -z "$as_dir" && as_dir=.
5691 # Account for people who put trailing slashes in PATH elements.
5692 case $as_dir/ in #((
5693 ./ | .// | /[cC]/* | \
5694 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5695 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
5698 # OSF1 and SCO ODT 3.0 have their own names for install.
5699 # Don't use installbsd from OSF since it installs stuff as root
5701 for ac_prog in ginstall scoinst install; do
5702 for ac_exec_ext in '' $ac_executable_extensions; do
5703 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5704 if test $ac_prog = install &&
5705 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5706 # AIX install. It has an incompatible calling convention.
5708 elif test $ac_prog = install &&
5709 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5710 # program-specific install script used by HP pwplus--don't use.
5713 rm -rf conftest.one conftest.two conftest.dir
5714 echo one > conftest.one
5715 echo two > conftest.two
5717 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5718 test -s conftest.one && test -s conftest.two &&
5719 test -s conftest.dir/conftest.one &&
5720 test -s conftest.dir/conftest.two
5722 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5735 rm -rf conftest.one conftest.two conftest.dir
5738 if test "${ac_cv_path_install+set}" = set; then
5739 INSTALL=$ac_cv_path_install
5741 # As a last resort, use the slow shell script. Don't cache a
5742 # value for INSTALL within a source directory, because that will
5743 # break other packages using the cache if that directory is
5744 # removed, or if the value is a relative name.
5745 INSTALL=$ac_install_sh
5748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
5749 $as_echo "$INSTALL" >&6; }
5751 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5752 # It thinks the first close brace ends the variable substitution.
5753 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5755 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5757 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5761 if test -n "$ac_aux_dir"; then
5762 case "$ac_aux_dir" in
5763 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
5764 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
5767 if test -z "$MKINSTALLDIRS"; then
5768 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
5773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
5774 $as_echo_n "checking whether NLS is requested... " >&6; }
5775 # Check whether --enable-nls was given.
5776 if test "${enable_nls+set}" = set; then :
5777 enableval=$enable_nls; USE_NLS=$enableval
5782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
5783 $as_echo "$USE_NLS" >&6; }
5790 # Prepare PATH_SEPARATOR.
5791 # The user is always right.
5792 if test "${PATH_SEPARATOR+set}" != set; then
5793 echo "#! /bin/sh" >conf$$.sh
5794 echo "exit 0" >>conf$$.sh
5796 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5804 # Find out how to test for executable files. Don't use a zero-byte file,
5805 # as systems may use methods other than mode bits to determine executability.
5806 cat >conf$$.file <<_ASEOF
5810 chmod +x conf$$.file
5811 if test -x conf$$.file >/dev/null 2>&1; then
5812 ac_executable_p="test -x"
5814 ac_executable_p="test -f"
5818 # Extract the first word of "msgfmt", so it can be a program name with args.
5819 set dummy msgfmt; ac_word=$2
5820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5821 $as_echo_n "checking for $ac_word... " >&6; }
5822 if test "${ac_cv_path_MSGFMT+set}" = set; then :
5823 $as_echo_n "(cached) " >&6
5827 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5830 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5831 for ac_dir in $PATH; do
5833 test -z "$ac_dir" && ac_dir=.
5834 for ac_exec_ext in '' $ac_executable_extensions; do
5835 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5836 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
5837 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5838 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
5845 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
5849 MSGFMT="$ac_cv_path_MSGFMT"
5850 if test "$MSGFMT" != ":"; then
5851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
5852 $as_echo "$MSGFMT" >&6; }
5854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5855 $as_echo "no" >&6; }
5858 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5859 set dummy gmsgfmt; ac_word=$2
5860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5861 $as_echo_n "checking for $ac_word... " >&6; }
5862 if test "${ac_cv_path_GMSGFMT+set}" = set; then :
5863 $as_echo_n "(cached) " >&6
5867 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5874 test -z "$as_dir" && as_dir=.
5875 for ac_exec_ext in '' $ac_executable_extensions; do
5876 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5877 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5878 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5885 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5889 GMSGFMT=$ac_cv_path_GMSGFMT
5890 if test -n "$GMSGFMT"; then
5891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
5892 $as_echo "$GMSGFMT" >&6; }
5894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5895 $as_echo "no" >&6; }
5901 # Prepare PATH_SEPARATOR.
5902 # The user is always right.
5903 if test "${PATH_SEPARATOR+set}" != set; then
5904 echo "#! /bin/sh" >conf$$.sh
5905 echo "exit 0" >>conf$$.sh
5907 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5915 # Find out how to test for executable files. Don't use a zero-byte file,
5916 # as systems may use methods other than mode bits to determine executability.
5917 cat >conf$$.file <<_ASEOF
5921 chmod +x conf$$.file
5922 if test -x conf$$.file >/dev/null 2>&1; then
5923 ac_executable_p="test -x"
5925 ac_executable_p="test -f"
5929 # Extract the first word of "xgettext", so it can be a program name with args.
5930 set dummy xgettext; ac_word=$2
5931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5932 $as_echo_n "checking for $ac_word... " >&6; }
5933 if test "${ac_cv_path_XGETTEXT+set}" = set; then :
5934 $as_echo_n "(cached) " >&6
5938 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5941 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5942 for ac_dir in $PATH; do
5944 test -z "$ac_dir" && ac_dir=.
5945 for ac_exec_ext in '' $ac_executable_extensions; do
5946 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5947 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
5948 (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
5949 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
5956 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5960 XGETTEXT="$ac_cv_path_XGETTEXT"
5961 if test "$XGETTEXT" != ":"; then
5962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
5963 $as_echo "$XGETTEXT" >&6; }
5965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5966 $as_echo "no" >&6; }
5972 # Prepare PATH_SEPARATOR.
5973 # The user is always right.
5974 if test "${PATH_SEPARATOR+set}" != set; then
5975 echo "#! /bin/sh" >conf$$.sh
5976 echo "exit 0" >>conf$$.sh
5978 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5986 # Find out how to test for executable files. Don't use a zero-byte file,
5987 # as systems may use methods other than mode bits to determine executability.
5988 cat >conf$$.file <<_ASEOF
5992 chmod +x conf$$.file
5993 if test -x conf$$.file >/dev/null 2>&1; then
5994 ac_executable_p="test -x"
5996 ac_executable_p="test -f"
6000 # Extract the first word of "msgmerge", so it can be a program name with args.
6001 set dummy msgmerge; 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_path_MSGMERGE+set}" = set; then :
6005 $as_echo_n "(cached) " >&6
6009 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
6012 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6013 for ac_dir in $PATH; do
6015 test -z "$ac_dir" && ac_dir=.
6016 for ac_exec_ext in '' $ac_executable_extensions; do
6017 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6018 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
6019 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
6026 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
6030 MSGMERGE="$ac_cv_path_MSGMERGE"
6031 if test "$MSGMERGE" != ":"; then
6032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
6033 $as_echo "$MSGMERGE" >&6; }
6035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6036 $as_echo "no" >&6; }
6040 if test "$GMSGFMT" != ":"; then
6041 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
6042 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6045 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
6046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
6047 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
6052 if test "$XGETTEXT" != ":"; then
6053 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
6054 (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
6057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
6058 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
6064 ac_config_commands="$ac_config_commands default-1"
6067 if test -n "$ac_tool_prefix"; then
6068 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6069 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6071 $as_echo_n "checking for $ac_word... " >&6; }
6072 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6073 $as_echo_n "(cached) " >&6
6075 if test -n "$RANLIB"; then
6076 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6082 test -z "$as_dir" && as_dir=.
6083 for ac_exec_ext in '' $ac_executable_extensions; do
6084 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6085 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6086 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6095 RANLIB=$ac_cv_prog_RANLIB
6096 if test -n "$RANLIB"; then
6097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6098 $as_echo "$RANLIB" >&6; }
6100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6101 $as_echo "no" >&6; }
6106 if test -z "$ac_cv_prog_RANLIB"; then
6107 ac_ct_RANLIB=$RANLIB
6108 # Extract the first word of "ranlib", so it can be a program name with args.
6109 set dummy ranlib; ac_word=$2
6110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6111 $as_echo_n "checking for $ac_word... " >&6; }
6112 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6113 $as_echo_n "(cached) " >&6
6115 if test -n "$ac_ct_RANLIB"; then
6116 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6122 test -z "$as_dir" && as_dir=.
6123 for ac_exec_ext in '' $ac_executable_extensions; do
6124 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6125 ac_cv_prog_ac_ct_RANLIB="ranlib"
6126 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6135 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6136 if test -n "$ac_ct_RANLIB"; then
6137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6138 $as_echo "$ac_ct_RANLIB" >&6; }
6140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6141 $as_echo "no" >&6; }
6144 if test "x$ac_ct_RANLIB" = x; then
6147 case $cross_compiling:$ac_tool_warned in
6149 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6150 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6151 ac_tool_warned=yes ;;
6153 RANLIB=$ac_ct_RANLIB
6156 RANLIB="$ac_cv_prog_RANLIB"
6160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror in -lcposix" >&5
6161 $as_echo_n "checking for strerror in -lcposix... " >&6; }
6162 if test "${ac_cv_lib_cposix_strerror+set}" = set; then :
6163 $as_echo_n "(cached) " >&6
6165 ac_check_lib_save_LIBS=$LIBS
6166 LIBS="-lcposix $LIBS"
6167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6168 /* end confdefs.h. */
6170 /* Override any GCC internal prototype to avoid an error.
6171 Use char because int might match the return type of a GCC
6172 builtin and then its argument prototype would still apply. */
6185 if ac_fn_c_try_link "$LINENO"; then :
6186 ac_cv_lib_cposix_strerror=yes
6188 ac_cv_lib_cposix_strerror=no
6190 rm -f core conftest.err conftest.$ac_objext \
6191 conftest$ac_exeext conftest.$ac_ext
6192 LIBS=$ac_check_lib_save_LIBS
6194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cposix_strerror" >&5
6195 $as_echo "$ac_cv_lib_cposix_strerror" >&6; }
6196 if test "x$ac_cv_lib_cposix_strerror" = x""yes; then :
6197 LIBS="$LIBS -lcposix"
6203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6204 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6205 if test "${ac_cv_path_GREP+set}" = set; then :
6206 $as_echo_n "(cached) " >&6
6208 if test -z "$GREP"; then
6209 ac_path_GREP_found=false
6210 # Loop through the user's path and test for each of PROGNAME-LIST
6211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6212 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6215 test -z "$as_dir" && as_dir=.
6216 for ac_prog in grep ggrep; do
6217 for ac_exec_ext in '' $ac_executable_extensions; do
6218 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6219 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
6220 # Check for GNU ac_path_GREP and select it if it is found.
6221 # Check for GNU $ac_path_GREP
6222 case `"$ac_path_GREP" --version 2>&1` in
6224 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6227 $as_echo_n 0123456789 >"conftest.in"
6230 cat "conftest.in" "conftest.in" >"conftest.tmp"
6231 mv "conftest.tmp" "conftest.in"
6232 cp "conftest.in" "conftest.nl"
6233 $as_echo 'GREP' >> "conftest.nl"
6234 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6235 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6236 as_fn_arith $ac_count + 1 && ac_count=$as_val
6237 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6238 # Best one so far, save it but keep looking for a better one
6239 ac_cv_path_GREP="$ac_path_GREP"
6240 ac_path_GREP_max=$ac_count
6242 # 10*(2^10) chars as input seems more than enough
6243 test $ac_count -gt 10 && break
6245 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6248 $ac_path_GREP_found && break 3
6253 if test -z "$ac_cv_path_GREP"; then
6254 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6257 ac_cv_path_GREP=$GREP
6261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6262 $as_echo "$ac_cv_path_GREP" >&6; }
6263 GREP="$ac_cv_path_GREP"
6266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6267 $as_echo_n "checking for egrep... " >&6; }
6268 if test "${ac_cv_path_EGREP+set}" = set; then :
6269 $as_echo_n "(cached) " >&6
6271 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6272 then ac_cv_path_EGREP="$GREP -E"
6274 if test -z "$EGREP"; then
6275 ac_path_EGREP_found=false
6276 # Loop through the user's path and test for each of PROGNAME-LIST
6277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6278 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6281 test -z "$as_dir" && as_dir=.
6282 for ac_prog in egrep; do
6283 for ac_exec_ext in '' $ac_executable_extensions; do
6284 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6285 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6286 # Check for GNU ac_path_EGREP and select it if it is found.
6287 # Check for GNU $ac_path_EGREP
6288 case `"$ac_path_EGREP" --version 2>&1` in
6290 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6293 $as_echo_n 0123456789 >"conftest.in"
6296 cat "conftest.in" "conftest.in" >"conftest.tmp"
6297 mv "conftest.tmp" "conftest.in"
6298 cp "conftest.in" "conftest.nl"
6299 $as_echo 'EGREP' >> "conftest.nl"
6300 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6301 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6302 as_fn_arith $ac_count + 1 && ac_count=$as_val
6303 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6304 # Best one so far, save it but keep looking for a better one
6305 ac_cv_path_EGREP="$ac_path_EGREP"
6306 ac_path_EGREP_max=$ac_count
6308 # 10*(2^10) chars as input seems more than enough
6309 test $ac_count -gt 10 && break
6311 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6314 $ac_path_EGREP_found && break 3
6319 if test -z "$ac_cv_path_EGREP"; then
6320 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6323 ac_cv_path_EGREP=$EGREP
6328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6329 $as_echo "$ac_cv_path_EGREP" >&6; }
6330 EGREP="$ac_cv_path_EGREP"
6333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6334 $as_echo_n "checking for ANSI C header files... " >&6; }
6335 if test "${ac_cv_header_stdc+set}" = set; then :
6336 $as_echo_n "(cached) " >&6
6338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6339 /* end confdefs.h. */
6353 if ac_fn_c_try_compile "$LINENO"; then :
6354 ac_cv_header_stdc=yes
6356 ac_cv_header_stdc=no
6358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6360 if test $ac_cv_header_stdc = yes; then
6361 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6363 /* end confdefs.h. */
6367 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6368 $EGREP "memchr" >/dev/null 2>&1; then :
6371 ac_cv_header_stdc=no
6377 if test $ac_cv_header_stdc = yes; then
6378 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6380 /* end confdefs.h. */
6384 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6385 $EGREP "free" >/dev/null 2>&1; then :
6388 ac_cv_header_stdc=no
6394 if test $ac_cv_header_stdc = yes; then
6395 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6396 if test "$cross_compiling" = yes; then :
6399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6400 /* end confdefs.h. */
6403 #if ((' ' & 0x0FF) == 0x020)
6404 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6405 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6407 # define ISLOWER(c) \
6408 (('a' <= (c) && (c) <= 'i') \
6409 || ('j' <= (c) && (c) <= 'r') \
6410 || ('s' <= (c) && (c) <= 'z'))
6411 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6414 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6419 for (i = 0; i < 256; i++)
6420 if (XOR (islower (i), ISLOWER (i))
6421 || toupper (i) != TOUPPER (i))
6426 if ac_fn_c_try_run "$LINENO"; then :
6429 ac_cv_header_stdc=no
6431 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6432 conftest.$ac_objext conftest.beam conftest.$ac_ext
6437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6438 $as_echo "$ac_cv_header_stdc" >&6; }
6439 if test $ac_cv_header_stdc = yes; then
6441 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
6446 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
6447 if test "${ac_cv_c_const+set}" = set; then :
6448 $as_echo_n "(cached) " >&6
6450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6451 /* end confdefs.h. */
6456 /* FIXME: Include the comments suggested by Paul. */
6458 /* Ultrix mips cc rejects this. */
6459 typedef int charset[2];
6461 /* SunOS 4.1.1 cc rejects this. */
6462 char const *const *pcpcc;
6464 /* NEC SVR4.0.2 mips cc rejects this. */
6465 struct point {int x, y;};
6466 static struct point const zero = {0,0};
6467 /* AIX XL C 1.02.0.0 rejects this.
6468 It does not let you subtract one const X* pointer from another in
6469 an arm of an if-expression whose if-part is not a constant
6471 const char *g = "string";
6472 pcpcc = &g + (g ? g-g : 0);
6473 /* HPUX 7.0 cc rejects these. */
6475 ppc = (char**) pcpcc;
6476 pcpcc = (char const *const *) ppc;
6477 { /* SCO 3.2v4 cc rejects this. */
6479 char const *s = 0 ? (char *) 0 : (char const *) 0;
6484 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6486 const int *foo = &x[0];
6489 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6490 typedef const int *iptr;
6494 { /* AIX XL C 1.02.0.0 rejects this saying
6495 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6496 struct s { int j; const int *ap[3]; };
6497 struct s *b; b->j = 5;
6499 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6503 return !cs[0] && !zero.x;
6510 if ac_fn_c_try_compile "$LINENO"; then :
6515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
6518 $as_echo "$ac_cv_c_const" >&6; }
6519 if test $ac_cv_c_const = no; then
6521 $as_echo "#define const /**/" >>confdefs.h
6526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed" >&5
6527 $as_echo_n "checking for signed... " >&6; }
6528 if test "${bh_cv_c_signed+set}" = set; then :
6529 $as_echo_n "(cached) " >&6
6531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6532 /* end confdefs.h. */
6542 if ac_fn_c_try_compile "$LINENO"; then :
6547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bh_cv_c_signed" >&5
6550 $as_echo "$bh_cv_c_signed" >&6; }
6551 if test $bh_cv_c_signed = no; then
6553 $as_echo "#define signed /**/" >>confdefs.h
6557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
6558 $as_echo_n "checking for inline... " >&6; }
6559 if test "${ac_cv_c_inline+set}" = set; then :
6560 $as_echo_n "(cached) " >&6
6563 for ac_kw in inline __inline__ __inline; do
6564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6565 /* end confdefs.h. */
6568 static $ac_kw foo_t static_foo () {return 0; }
6569 $ac_kw foo_t foo () {return 0; }
6573 if ac_fn_c_try_compile "$LINENO"; then :
6574 ac_cv_c_inline=$ac_kw
6576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6577 test "$ac_cv_c_inline" != no && break
6581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
6582 $as_echo "$ac_cv_c_inline" >&6; }
6584 case $ac_cv_c_inline in
6587 case $ac_cv_c_inline in
6589 *) ac_val=$ac_cv_c_inline;;
6591 cat >>confdefs.h <<_ACEOF
6593 #define inline $ac_val
6599 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6600 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6601 inttypes.h stdint.h unistd.h
6603 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6604 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6606 eval as_val=\$$as_ac_Header
6607 if test "x$as_val" = x""yes; then :
6608 cat >>confdefs.h <<_ACEOF
6609 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6617 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
6618 if test "x$ac_cv_type_off_t" = x""yes; then :
6622 cat >>confdefs.h <<_ACEOF
6623 #define off_t long int
6628 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6629 if test "x$ac_cv_type_size_t" = x""yes; then :
6633 cat >>confdefs.h <<_ACEOF
6634 #define size_t unsigned int
6640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long" >&5
6641 $as_echo_n "checking for long long... " >&6; }
6642 if test "${ac_cv_type_long_long+set}" = set; then :
6643 $as_echo_n "(cached) " >&6
6645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6646 /* end confdefs.h. */
6647 long long ll = 1LL; int i = 63;
6651 long long llmax = (long long) -1;
6652 return ll << i | ll >> i | llmax / ll | llmax % ll;
6657 if ac_fn_c_try_link "$LINENO"; then :
6658 ac_cv_type_long_long=yes
6660 ac_cv_type_long_long=no
6662 rm -f core conftest.err conftest.$ac_objext \
6663 conftest$ac_exeext conftest.$ac_ext
6665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long" >&5
6666 $as_echo "$ac_cv_type_long_long" >&6; }
6667 if test $ac_cv_type_long_long = yes; then
6669 $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
6674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
6675 $as_echo_n "checking for long double... " >&6; }
6676 if test "${gt_cv_c_long_double+set}" = set; then :
6677 $as_echo_n "(cached) " >&6
6679 if test "$GCC" = yes; then
6680 gt_cv_c_long_double=yes
6682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6683 /* end confdefs.h. */
6685 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
6686 long double foo = 0.0;
6687 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
6688 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
6698 if ac_fn_c_try_compile "$LINENO"; then :
6699 gt_cv_c_long_double=yes
6701 gt_cv_c_long_double=no
6703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_long_double" >&5
6707 $as_echo "$gt_cv_c_long_double" >&6; }
6708 if test $gt_cv_c_long_double = yes; then
6710 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
6715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
6716 $as_echo_n "checking for wchar_t... " >&6; }
6717 if test "${gt_cv_c_wchar_t+set}" = set; then :
6718 $as_echo_n "(cached) " >&6
6720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6721 /* end confdefs.h. */
6723 wchar_t foo = (wchar_t)'\0';
6732 if ac_fn_c_try_compile "$LINENO"; then :
6737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
6740 $as_echo "$gt_cv_c_wchar_t" >&6; }
6741 if test $gt_cv_c_wchar_t = yes; then
6743 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
6748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
6749 $as_echo_n "checking for wint_t... " >&6; }
6750 if test "${gt_cv_c_wint_t+set}" = set; then :
6751 $as_echo_n "(cached) " >&6
6753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6754 /* end confdefs.h. */
6756 wint_t foo = (wchar_t)'\0';
6765 if ac_fn_c_try_compile "$LINENO"; then :
6770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
6773 $as_echo "$gt_cv_c_wint_t" >&6; }
6774 if test $gt_cv_c_wint_t = yes; then
6776 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
6781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
6782 $as_echo_n "checking for inttypes.h... " >&6; }
6783 if test "${jm_ac_cv_header_inttypes_h+set}" = set; then :
6784 $as_echo_n "(cached) " >&6
6786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6787 /* end confdefs.h. */
6788 #include <sys/types.h>
6789 #include <inttypes.h>
6793 uintmax_t i = (uintmax_t) -1;
6798 if ac_fn_c_try_compile "$LINENO"; then :
6799 jm_ac_cv_header_inttypes_h=yes
6801 jm_ac_cv_header_inttypes_h=no
6803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_inttypes_h" >&5
6806 $as_echo "$jm_ac_cv_header_inttypes_h" >&6; }
6807 if test $jm_ac_cv_header_inttypes_h = yes; then
6809 cat >>confdefs.h <<_ACEOF
6810 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
6816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
6817 $as_echo_n "checking for stdint.h... " >&6; }
6818 if test "${jm_ac_cv_header_stdint_h+set}" = set; then :
6819 $as_echo_n "(cached) " >&6
6821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6822 /* end confdefs.h. */
6823 #include <sys/types.h>
6828 uintmax_t i = (uintmax_t) -1;
6833 if ac_fn_c_try_compile "$LINENO"; then :
6834 jm_ac_cv_header_stdint_h=yes
6836 jm_ac_cv_header_stdint_h=no
6838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_stdint_h" >&5
6841 $as_echo "$jm_ac_cv_header_stdint_h" >&6; }
6842 if test $jm_ac_cv_header_stdint_h = yes; then
6844 cat >>confdefs.h <<_ACEOF
6845 #define HAVE_STDINT_H_WITH_UINTMAX 1
6853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
6854 $as_echo_n "checking for intmax_t... " >&6; }
6855 if test "${gt_cv_c_intmax_t+set}" = set; then :
6856 $as_echo_n "(cached) " >&6
6858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6859 /* end confdefs.h. */
6863 #if HAVE_STDINT_H_WITH_UINTMAX
6866 #if HAVE_INTTYPES_H_WITH_UINTMAX
6867 #include <inttypes.h>
6878 if ac_fn_c_try_compile "$LINENO"; then :
6879 gt_cv_c_intmax_t=yes
6883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
6886 $as_echo "$gt_cv_c_intmax_t" >&6; }
6887 if test $gt_cv_c_intmax_t = yes; then
6889 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
6896 $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
6897 if test "${gt_cv_func_printf_posix+set}" = set; then :
6898 $as_echo_n "(cached) " >&6
6901 if test "$cross_compiling" = yes; then :
6903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6904 /* end confdefs.h. */
6906 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
6911 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6912 $EGREP "notposix" >/dev/null 2>&1; then :
6913 gt_cv_func_printf_posix="guessing no"
6915 gt_cv_func_printf_posix="guessing yes"
6921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6922 /* end confdefs.h. */
6926 /* The string "%2$d %1$d", with dollar characters protected from the shell's
6927 dollar expansion (possibly an autoconf bug). */
6928 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
6929 static char buf[100];
6932 sprintf (buf, format, 33, 55);
6933 return (strcmp (buf, "55 33") != 0);
6936 if ac_fn_c_try_run "$LINENO"; then :
6937 gt_cv_func_printf_posix=yes
6939 gt_cv_func_printf_posix=no
6941 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6942 conftest.$ac_objext conftest.beam conftest.$ac_ext
6947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
6948 $as_echo "$gt_cv_func_printf_posix" >&6; }
6949 case $gt_cv_func_printf_posix in
6952 $as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
6957 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6958 # for constant arguments. Useless!
6959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
6960 $as_echo_n "checking for working alloca.h... " >&6; }
6961 if test "${ac_cv_working_alloca_h+set}" = set; then :
6962 $as_echo_n "(cached) " >&6
6964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6965 /* end confdefs.h. */
6970 char *p = (char *) alloca (2 * sizeof (int));
6976 if ac_fn_c_try_link "$LINENO"; then :
6977 ac_cv_working_alloca_h=yes
6979 ac_cv_working_alloca_h=no
6981 rm -f core conftest.err conftest.$ac_objext \
6982 conftest$ac_exeext conftest.$ac_ext
6984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
6985 $as_echo "$ac_cv_working_alloca_h" >&6; }
6986 if test $ac_cv_working_alloca_h = yes; then
6988 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
6992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
6993 $as_echo_n "checking for alloca... " >&6; }
6994 if test "${ac_cv_func_alloca_works+set}" = set; then :
6995 $as_echo_n "(cached) " >&6
6997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6998 /* end confdefs.h. */
7000 # define alloca __builtin_alloca
7003 # include <malloc.h>
7004 # define alloca _alloca
7006 # ifdef HAVE_ALLOCA_H
7007 # include <alloca.h>
7012 # ifndef alloca /* predefined by HP cc +Olibcalls */
7023 char *p = (char *) alloca (1);
7029 if ac_fn_c_try_link "$LINENO"; then :
7030 ac_cv_func_alloca_works=yes
7032 ac_cv_func_alloca_works=no
7034 rm -f core conftest.err conftest.$ac_objext \
7035 conftest$ac_exeext conftest.$ac_ext
7037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
7038 $as_echo "$ac_cv_func_alloca_works" >&6; }
7040 if test $ac_cv_func_alloca_works = yes; then
7042 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
7045 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
7046 # that cause trouble. Some versions do not even contain alloca or
7047 # contain a buggy version. If you still want to use their alloca,
7048 # use ar to extract alloca.o from them instead of compiling alloca.c.
7050 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
7052 $as_echo "#define C_ALLOCA 1" >>confdefs.h
7055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
7056 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
7057 if test "${ac_cv_os_cray+set}" = set; then :
7058 $as_echo_n "(cached) " >&6
7060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7061 /* end confdefs.h. */
7062 #if defined CRAY && ! defined CRAY2
7069 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7070 $EGREP "webecray" >/dev/null 2>&1; then :
7078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
7079 $as_echo "$ac_cv_os_cray" >&6; }
7080 if test $ac_cv_os_cray = yes; then
7081 for ac_func in _getb67 GETB67 getb67; do
7082 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7083 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7084 eval as_val=\$$as_ac_var
7085 if test "x$as_val" = x""yes; then :
7087 cat >>confdefs.h <<_ACEOF
7088 #define CRAY_STACKSEG_END $ac_func
7097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
7098 $as_echo_n "checking stack direction for C alloca... " >&6; }
7099 if test "${ac_cv_c_stack_direction+set}" = set; then :
7100 $as_echo_n "(cached) " >&6
7102 if test "$cross_compiling" = yes; then :
7103 ac_cv_c_stack_direction=0
7105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7106 /* end confdefs.h. */
7107 $ac_includes_default
7109 find_stack_direction ()
7111 static char *addr = 0;
7116 return find_stack_direction ();
7119 return (&dummy > addr) ? 1 : -1;
7125 return find_stack_direction () < 0;
7128 if ac_fn_c_try_run "$LINENO"; then :
7129 ac_cv_c_stack_direction=1
7131 ac_cv_c_stack_direction=-1
7133 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7134 conftest.$ac_objext conftest.beam conftest.$ac_ext
7138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
7139 $as_echo "$ac_cv_c_stack_direction" >&6; }
7140 cat >>confdefs.h <<_ACEOF
7141 #define STACK_DIRECTION $ac_cv_c_stack_direction
7150 for ac_header in $ac_header_list
7152 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7153 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7155 eval as_val=\$$as_ac_Header
7156 if test "x$as_val" = x""yes; then :
7157 cat >>confdefs.h <<_ACEOF
7158 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7172 for ac_func in getpagesize
7174 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
7175 if test "x$ac_cv_func_getpagesize" = x""yes; then :
7176 cat >>confdefs.h <<_ACEOF
7177 #define HAVE_GETPAGESIZE 1
7183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
7184 $as_echo_n "checking for working mmap... " >&6; }
7185 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
7186 $as_echo_n "(cached) " >&6
7188 if test "$cross_compiling" = yes; then :
7189 ac_cv_func_mmap_fixed_mapped=no
7191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7192 /* end confdefs.h. */
7193 $ac_includes_default
7194 /* malloc might have been renamed as rpl_malloc. */
7197 /* Thanks to Mike Haertel and Jim Avera for this test.
7198 Here is a matrix of mmap possibilities:
7199 mmap private not fixed
7200 mmap private fixed at somewhere currently unmapped
7201 mmap private fixed at somewhere already mapped
7202 mmap shared not fixed
7203 mmap shared fixed at somewhere currently unmapped
7204 mmap shared fixed at somewhere already mapped
7205 For private mappings, we should verify that changes cannot be read()
7206 back from the file, nor mmap's back from the file at a different
7207 address. (There have been systems where private was not correctly
7208 implemented like the infamous i386 svr4.0, and systems where the
7209 VM page cache was not coherent with the file system buffer cache
7210 like early versions of FreeBSD and possibly contemporary NetBSD.)
7211 For shared mappings, we should conversely verify that changes get
7212 propagated back to all the places they're supposed to be.
7214 Grep wants private fixed already mapped.
7215 The main things grep needs to know about mmap are:
7216 * does it exist and is it safe to write into the mmap'd area
7217 * how to use it (BSD variants) */
7220 #include <sys/mman.h>
7222 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7226 /* This mess was copied from the GNU getpagesize.h. */
7227 #ifndef HAVE_GETPAGESIZE
7228 # ifdef _SC_PAGESIZE
7229 # define getpagesize() sysconf(_SC_PAGESIZE)
7230 # else /* no _SC_PAGESIZE */
7231 # ifdef HAVE_SYS_PARAM_H
7232 # include <sys/param.h>
7233 # ifdef EXEC_PAGESIZE
7234 # define getpagesize() EXEC_PAGESIZE
7235 # else /* no EXEC_PAGESIZE */
7237 # define getpagesize() NBPG * CLSIZE
7240 # endif /* no CLSIZE */
7241 # else /* no NBPG */
7243 # define getpagesize() NBPC
7244 # else /* no NBPC */
7246 # define getpagesize() PAGESIZE
7247 # endif /* PAGESIZE */
7248 # endif /* no NBPC */
7249 # endif /* no NBPG */
7250 # endif /* no EXEC_PAGESIZE */
7251 # else /* no HAVE_SYS_PARAM_H */
7252 # define getpagesize() 8192 /* punt totally */
7253 # endif /* no HAVE_SYS_PARAM_H */
7254 # endif /* no _SC_PAGESIZE */
7256 #endif /* no HAVE_GETPAGESIZE */
7261 char *data, *data2, *data3;
7266 pagesize = getpagesize ();
7268 /* First, make a file with some known garbage in it. */
7269 data = (char *) malloc (pagesize);
7272 for (i = 0; i < pagesize; ++i)
7273 *(data + i) = rand ();
7275 fd = creat ("conftest.mmap", 0600);
7278 if (write (fd, data, pagesize) != pagesize)
7282 /* Next, check that the tail of a page is zero-filled. File must have
7283 non-zero length, otherwise we risk SIGBUS for entire page. */
7284 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7288 if (write (fd2, cdata2, 1) != 1)
7290 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7291 if (data2 == MAP_FAILED)
7293 for (i = 0; i < pagesize; ++i)
7297 if (munmap (data2, pagesize))
7300 /* Next, try to mmap the file at a fixed address which already has
7301 something else allocated at it. If we can, also make sure that
7302 we see the same garbage. */
7303 fd = open ("conftest.mmap", O_RDWR);
7306 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7307 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7309 for (i = 0; i < pagesize; ++i)
7310 if (*(data + i) != *(data2 + i))
7313 /* Finally, make sure that changes to the mapped area do not
7314 percolate back to the file as seen by read(). (This is a bug on
7315 some variants of i386 svr4.0.) */
7316 for (i = 0; i < pagesize; ++i)
7317 *(data2 + i) = *(data2 + i) + 1;
7318 data3 = (char *) malloc (pagesize);
7321 if (read (fd, data3, pagesize) != pagesize)
7323 for (i = 0; i < pagesize; ++i)
7324 if (*(data + i) != *(data3 + i))
7330 if ac_fn_c_try_run "$LINENO"; then :
7331 ac_cv_func_mmap_fixed_mapped=yes
7333 ac_cv_func_mmap_fixed_mapped=no
7335 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7336 conftest.$ac_objext conftest.beam conftest.$ac_ext
7340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
7341 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
7342 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7344 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
7347 rm -f conftest.mmap conftest.txt
7350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
7351 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
7352 if test "${ac_cv_gnu_library_2_1+set}" = set; then :
7353 $as_echo_n "(cached) " >&6
7355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7356 /* end confdefs.h. */
7358 #include <features.h>
7359 #ifdef __GNU_LIBRARY__
7360 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
7366 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7367 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
7368 ac_cv_gnu_library_2_1=yes
7370 ac_cv_gnu_library_2_1=no
7377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
7378 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
7380 GLIBC21="$ac_cv_gnu_library_2_1"
7385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
7386 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
7387 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then :
7388 $as_echo_n "(cached) " >&6
7391 if test "$cross_compiling" = yes; then :
7393 # Guess based on the CPU.
7395 alpha* | i3456786 | m68k | s390*)
7396 gt_cv_int_divbyzero_sigfpe="guessing yes";;
7398 gt_cv_int_divbyzero_sigfpe="guessing no";;
7402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7403 /* end confdefs.h. */
7410 sigfpe_handler (int sig)
7412 sigfpe_handler (sig) int sig;
7415 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
7416 exit (sig != SIGFPE);
7426 signal (SIGFPE, sigfpe_handler);
7427 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
7428 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
7429 signal (SIGTRAP, sigfpe_handler);
7431 /* Linux/SPARC yields signal SIGILL. */
7432 #if defined (__sparc__) && defined (__linux__)
7433 signal (SIGILL, sigfpe_handler);
7442 if ac_fn_c_try_run "$LINENO"; then :
7443 gt_cv_int_divbyzero_sigfpe=yes
7445 gt_cv_int_divbyzero_sigfpe=no
7447 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7448 conftest.$ac_objext conftest.beam conftest.$ac_ext
7453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
7454 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
7455 case "$gt_cv_int_divbyzero_sigfpe" in
7460 cat >>confdefs.h <<_ACEOF
7461 #define INTDIV0_RAISES_SIGFPE $value
7466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long" >&5
7467 $as_echo_n "checking for unsigned long long... " >&6; }
7468 if test "${ac_cv_type_unsigned_long_long+set}" = set; then :
7469 $as_echo_n "(cached) " >&6
7471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7472 /* end confdefs.h. */
7473 unsigned long long ull = 1ULL; int i = 63;
7477 unsigned long long ullmax = (unsigned long long) -1;
7478 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
7483 if ac_fn_c_try_link "$LINENO"; then :
7484 ac_cv_type_unsigned_long_long=yes
7486 ac_cv_type_unsigned_long_long=no
7488 rm -f core conftest.err conftest.$ac_objext \
7489 conftest$ac_exeext conftest.$ac_ext
7491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long" >&5
7492 $as_echo "$ac_cv_type_unsigned_long_long" >&6; }
7493 if test $ac_cv_type_unsigned_long_long = yes; then
7495 $as_echo "#define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h
7502 if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
7504 test $ac_cv_type_unsigned_long_long = yes \
7505 && ac_type='unsigned long long' \
7506 || ac_type='unsigned long'
7508 cat >>confdefs.h <<_ACEOF
7509 #define uintmax_t $ac_type
7514 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
7519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
7520 $as_echo_n "checking for inttypes.h... " >&6; }
7521 if test "${gt_cv_header_inttypes_h+set}" = set; then :
7522 $as_echo_n "(cached) " >&6
7525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7526 /* end confdefs.h. */
7527 #include <sys/types.h>
7528 #include <inttypes.h>
7537 if ac_fn_c_try_compile "$LINENO"; then :
7538 gt_cv_header_inttypes_h=yes
7540 gt_cv_header_inttypes_h=no
7542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_header_inttypes_h" >&5
7546 $as_echo "$gt_cv_header_inttypes_h" >&6; }
7547 if test $gt_cv_header_inttypes_h = yes; then
7549 cat >>confdefs.h <<_ACEOF
7550 #define HAVE_INTTYPES_H 1
7557 if test $gt_cv_header_inttypes_h = yes; then
7558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
7559 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
7560 if test "${gt_cv_inttypes_pri_broken+set}" = set; then :
7561 $as_echo_n "(cached) " >&6
7564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7565 /* end confdefs.h. */
7566 #include <inttypes.h>
7579 if ac_fn_c_try_compile "$LINENO"; then :
7580 gt_cv_inttypes_pri_broken=no
7582 gt_cv_inttypes_pri_broken=yes
7584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
7588 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
7590 if test "$gt_cv_inttypes_pri_broken" = yes; then
7592 cat >>confdefs.h <<_ACEOF
7593 #define PRI_MACROS_BROKEN 1
7599 for ac_header in stdint.h
7601 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
7602 if test "x$ac_cv_header_stdint_h" = x""yes; then :
7603 cat >>confdefs.h <<_ACEOF
7604 #define HAVE_STDINT_H 1
7611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
7612 $as_echo_n "checking for SIZE_MAX... " >&6; }
7614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7615 /* end confdefs.h. */
7626 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7627 $EGREP "Found it" >/dev/null 2>&1; then :
7632 if test -z "$result"; then
7633 if ac_fn_c_compute_int "$LINENO" "~(size_t)0 / 10" "res_hi" "#include <stddef.h>"; then :
7640 if ac_fn_c_compute_int "$LINENO" "~(size_t)0 % 10" "res_lo" "#include <stddef.h>"; then :
7647 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then :
7654 if test "$fits_in_uint" = 1; then
7655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7656 /* end confdefs.h. */
7659 extern unsigned long foo;
7669 if ac_fn_c_try_compile "$LINENO"; then :
7672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7674 if test -z "$result"; then
7675 if test "$fits_in_uint" = 1; then
7676 result="$res_hi$res_lo"U
7678 result="$res_hi$res_lo"UL
7684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
7685 $as_echo "$result" >&6; }
7686 if test "$result" != yes; then
7688 cat >>confdefs.h <<_ACEOF
7689 #define SIZE_MAX $result
7696 for ac_header in stdint.h
7698 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
7699 if test "x$ac_cv_header_stdint_h" = x""yes; then :
7700 cat >>confdefs.h <<_ACEOF
7701 #define HAVE_STDINT_H 1
7710 if test "X$prefix" = "XNONE"; then
7711 acl_final_prefix="$ac_default_prefix"
7713 acl_final_prefix="$prefix"
7715 if test "X$exec_prefix" = "XNONE"; then
7716 acl_final_exec_prefix='${prefix}'
7718 acl_final_exec_prefix="$exec_prefix"
7720 acl_save_prefix="$prefix"
7721 prefix="$acl_final_prefix"
7722 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7723 prefix="$acl_save_prefix"
7726 # Check whether --with-gnu-ld was given.
7727 if test "${with_gnu_ld+set}" = set; then :
7728 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7733 # Prepare PATH_SEPARATOR.
7734 # The user is always right.
7735 if test "${PATH_SEPARATOR+set}" != set; then
7736 echo "#! /bin/sh" >conf$$.sh
7737 echo "exit 0" >>conf$$.sh
7739 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7747 if test "$GCC" = yes; then
7748 # Check if gcc -print-prog-name=ld gives a path.
7749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
7750 $as_echo_n "checking for ld used by GCC... " >&6; }
7753 # gcc leaves a trailing carriage return which upsets mingw
7754 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7756 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7759 # Accept absolute paths.
7760 [\\/]* | [A-Za-z]:[\\/]*)
7761 re_direlt='/[^/][^/]*/\.\./'
7762 # Canonicalize the path of ld
7763 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
7764 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
7765 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
7767 test -z "$LD" && LD="$ac_prog"
7770 # If it fails, then pretend we aren't using GCC.
7774 # If it is relative, then search for the first ld in PATH.
7778 elif test "$with_gnu_ld" = yes; then
7779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7780 $as_echo_n "checking for GNU ld... " >&6; }
7782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7783 $as_echo_n "checking for non-GNU ld... " >&6; }
7785 if test "${acl_cv_path_LD+set}" = set; then :
7786 $as_echo_n "(cached) " >&6
7788 if test -z "$LD"; then
7789 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
7790 for ac_dir in $PATH; do
7791 test -z "$ac_dir" && ac_dir=.
7792 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7793 acl_cv_path_LD="$ac_dir/$ac_prog"
7794 # Check to see if the program is GNU ld. I'd rather use --version,
7795 # but apparently some GNU ld's only accept -v.
7796 # Break only if it was the GNU/non-GNU ld that we prefer.
7797 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
7798 *GNU* | *'with BFD'*)
7799 test "$with_gnu_ld" != no && break ;;
7801 test "$with_gnu_ld" != yes && break ;;
7807 acl_cv_path_LD="$LD" # Let the user override the test with a path.
7811 LD="$acl_cv_path_LD"
7812 if test -n "$LD"; then
7813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7814 $as_echo "$LD" >&6; }
7816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7817 $as_echo "no" >&6; }
7819 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
7820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7821 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7822 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
7823 $as_echo_n "(cached) " >&6
7825 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
7826 case `$LD -v 2>&1 </dev/null` in
7827 *GNU* | *'with BFD'*)
7828 acl_cv_prog_gnu_ld=yes ;;
7830 acl_cv_prog_gnu_ld=no ;;
7833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
7834 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
7835 with_gnu_ld=$acl_cv_prog_gnu_ld
7839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
7840 $as_echo_n "checking for shared library run path origin... " >&6; }
7841 if test "${acl_cv_rpath+set}" = set; then :
7842 $as_echo_n "(cached) " >&6
7845 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
7846 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
7853 $as_echo "$acl_cv_rpath" >&6; }
7855 libext="$acl_cv_libext"
7856 shlibext="$acl_cv_shlibext"
7857 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
7858 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
7859 hardcode_direct="$acl_cv_hardcode_direct"
7860 hardcode_minus_L="$acl_cv_hardcode_minus_L"
7861 # Check whether --enable-rpath was given.
7862 if test "${enable_rpath+set}" = set; then :
7863 enableval=$enable_rpath; :
7877 acl_save_prefix="$prefix"
7878 prefix="$acl_final_prefix"
7879 acl_save_exec_prefix="$exec_prefix"
7880 exec_prefix="$acl_final_exec_prefix"
7882 eval additional_includedir=\"$includedir\"
7883 eval additional_libdir=\"$libdir\"
7885 exec_prefix="$acl_save_exec_prefix"
7886 prefix="$acl_save_prefix"
7889 # Check whether --with-libiconv-prefix was given.
7890 if test "${with_libiconv_prefix+set}" = set; then :
7891 withval=$with_libiconv_prefix;
7892 if test "X$withval" = "Xno"; then
7895 if test "X$withval" = "X"; then
7897 acl_save_prefix="$prefix"
7898 prefix="$acl_final_prefix"
7899 acl_save_exec_prefix="$exec_prefix"
7900 exec_prefix="$acl_final_exec_prefix"
7902 eval additional_includedir=\"$includedir\"
7903 eval additional_libdir=\"$libdir\"
7905 exec_prefix="$acl_save_exec_prefix"
7906 prefix="$acl_save_prefix"
7909 additional_includedir="$withval/include"
7910 additional_libdir="$withval/lib"
7921 names_already_handled=
7922 names_next_round='iconv '
7923 while test -n "$names_next_round"; do
7924 names_this_round="$names_next_round"
7926 for name in $names_this_round; do
7928 for n in $names_already_handled; do
7929 if test "$n" = "$name"; then
7934 if test -z "$already_handled"; then
7935 names_already_handled="$names_already_handled $name"
7936 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7937 eval value=\"\$HAVE_LIB$uppername\"
7938 if test -n "$value"; then
7939 if test "$value" = yes; then
7940 eval value=\"\$LIB$uppername\"
7941 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
7942 eval value=\"\$LTLIB$uppername\"
7943 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
7952 if test $use_additional = yes; then
7953 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
7954 found_dir="$additional_libdir"
7955 found_so="$additional_libdir/lib$name.$shlibext"
7956 if test -f "$additional_libdir/lib$name.la"; then
7957 found_la="$additional_libdir/lib$name.la"
7960 if test -f "$additional_libdir/lib$name.$libext"; then
7961 found_dir="$additional_libdir"
7962 found_a="$additional_libdir/lib$name.$libext"
7963 if test -f "$additional_libdir/lib$name.la"; then
7964 found_la="$additional_libdir/lib$name.la"
7969 if test "X$found_dir" = "X"; then
7970 for x in $LDFLAGS $LTLIBICONV; do
7972 acl_save_prefix="$prefix"
7973 prefix="$acl_final_prefix"
7974 acl_save_exec_prefix="$exec_prefix"
7975 exec_prefix="$acl_final_exec_prefix"
7977 exec_prefix="$acl_save_exec_prefix"
7978 prefix="$acl_save_prefix"
7982 dir=`echo "X$x" | sed -e 's/^X-L//'`
7983 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
7985 found_so="$dir/lib$name.$shlibext"
7986 if test -f "$dir/lib$name.la"; then
7987 found_la="$dir/lib$name.la"
7990 if test -f "$dir/lib$name.$libext"; then
7992 found_a="$dir/lib$name.$libext"
7993 if test -f "$dir/lib$name.la"; then
7994 found_la="$dir/lib$name.la"
8000 if test "X$found_dir" != "X"; then
8005 if test "X$found_dir" != "X"; then
8006 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
8007 if test "X$found_so" != "X"; then
8008 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
8009 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8012 for x in $ltrpathdirs; do
8013 if test "X$x" = "X$found_dir"; then
8018 if test -z "$haveit"; then
8019 ltrpathdirs="$ltrpathdirs $found_dir"
8021 if test "$hardcode_direct" = yes; then
8022 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8024 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
8025 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8027 for x in $rpathdirs; do
8028 if test "X$x" = "X$found_dir"; then
8033 if test -z "$haveit"; then
8034 rpathdirs="$rpathdirs $found_dir"
8038 for x in $LDFLAGS $LIBICONV; do
8040 acl_save_prefix="$prefix"
8041 prefix="$acl_final_prefix"
8042 acl_save_exec_prefix="$exec_prefix"
8043 exec_prefix="$acl_final_exec_prefix"
8045 exec_prefix="$acl_save_exec_prefix"
8046 prefix="$acl_save_prefix"
8048 if test "X$x" = "X-L$found_dir"; then
8053 if test -z "$haveit"; then
8054 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
8056 if test "$hardcode_minus_L" != no; then
8057 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8059 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8065 if test "X$found_a" != "X"; then
8066 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
8068 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
8071 additional_includedir=
8072 case "$found_dir" in
8074 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
8075 additional_includedir="$basedir/include"
8078 if test "X$additional_includedir" != "X"; then
8079 if test "X$additional_includedir" != "X/usr/include"; then
8081 if test "X$additional_includedir" = "X/usr/local/include"; then
8082 if test -n "$GCC"; then
8084 linux*) haveit=yes;;
8088 if test -z "$haveit"; then
8089 for x in $CPPFLAGS $INCICONV; do
8091 acl_save_prefix="$prefix"
8092 prefix="$acl_final_prefix"
8093 acl_save_exec_prefix="$exec_prefix"
8094 exec_prefix="$acl_final_exec_prefix"
8096 exec_prefix="$acl_save_exec_prefix"
8097 prefix="$acl_save_prefix"
8099 if test "X$x" = "X-I$additional_includedir"; then
8104 if test -z "$haveit"; then
8105 if test -d "$additional_includedir"; then
8106 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
8112 if test -n "$found_la"; then
8113 save_libdir="$libdir"
8115 */* | *\\*) . "$found_la" ;;
8116 *) . "./$found_la" ;;
8118 libdir="$save_libdir"
8119 for dep in $dependency_libs; do
8122 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8123 if test "X$additional_libdir" != "X/usr/lib"; then
8125 if test "X$additional_libdir" = "X/usr/local/lib"; then
8126 if test -n "$GCC"; then
8128 linux*) haveit=yes;;
8132 if test -z "$haveit"; then
8134 for x in $LDFLAGS $LIBICONV; do
8136 acl_save_prefix="$prefix"
8137 prefix="$acl_final_prefix"
8138 acl_save_exec_prefix="$exec_prefix"
8139 exec_prefix="$acl_final_exec_prefix"
8141 exec_prefix="$acl_save_exec_prefix"
8142 prefix="$acl_save_prefix"
8144 if test "X$x" = "X-L$additional_libdir"; then
8149 if test -z "$haveit"; then
8150 if test -d "$additional_libdir"; then
8151 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
8155 for x in $LDFLAGS $LTLIBICONV; do
8157 acl_save_prefix="$prefix"
8158 prefix="$acl_final_prefix"
8159 acl_save_exec_prefix="$exec_prefix"
8160 exec_prefix="$acl_final_exec_prefix"
8162 exec_prefix="$acl_save_exec_prefix"
8163 prefix="$acl_save_prefix"
8165 if test "X$x" = "X-L$additional_libdir"; then
8170 if test -z "$haveit"; then
8171 if test -d "$additional_libdir"; then
8172 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
8179 dir=`echo "X$dep" | sed -e 's/^X-R//'`
8180 if test "$enable_rpath" != no; then
8182 for x in $rpathdirs; do
8183 if test "X$x" = "X$dir"; then
8188 if test -z "$haveit"; then
8189 rpathdirs="$rpathdirs $dir"
8192 for x in $ltrpathdirs; do
8193 if test "X$x" = "X$dir"; then
8198 if test -z "$haveit"; then
8199 ltrpathdirs="$ltrpathdirs $dir"
8204 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8207 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8210 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
8211 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
8217 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8218 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
8224 if test "X$rpathdirs" != "X"; then
8225 if test -n "$hardcode_libdir_separator"; then
8227 for found_dir in $rpathdirs; do
8228 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8230 acl_save_libdir="$libdir"
8232 eval flag=\"$hardcode_libdir_flag_spec\"
8233 libdir="$acl_save_libdir"
8234 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8236 for found_dir in $rpathdirs; do
8237 acl_save_libdir="$libdir"
8239 eval flag=\"$hardcode_libdir_flag_spec\"
8240 libdir="$acl_save_libdir"
8241 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8245 if test "X$ltrpathdirs" != "X"; then
8246 for found_dir in $ltrpathdirs; do
8247 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
8258 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
8259 if test "x$ac_cv_type_ptrdiff_t" = x""yes; then :
8263 $as_echo "#define ptrdiff_t long" >>confdefs.h
8268 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
8269 stdlib.h string.h unistd.h sys/param.h
8271 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8272 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8273 eval as_val=\$$as_ac_Header
8274 if test "x$as_val" = x""yes; then :
8275 cat >>confdefs.h <<_ACEOF
8276 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8283 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
8284 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
8285 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
8288 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8289 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8290 eval as_val=\$$as_ac_var
8291 if test "x$as_val" = x""yes; then :
8292 cat >>confdefs.h <<_ACEOF
8293 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snprintf is declared" >&5
8302 $as_echo_n "checking whether _snprintf is declared... " >&6; }
8303 if test "${ac_cv_have_decl__snprintf+set}" = set; then :
8304 $as_echo_n "(cached) " >&6
8306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8307 /* end confdefs.h. */
8314 char *p = (char *) _snprintf;
8321 if ac_fn_c_try_compile "$LINENO"; then :
8322 ac_cv_have_decl__snprintf=yes
8324 ac_cv_have_decl__snprintf=no
8326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snprintf" >&5
8329 $as_echo "$ac_cv_have_decl__snprintf" >&6; }
8330 if test $ac_cv_have_decl__snprintf = yes; then
8336 cat >>confdefs.h <<_ACEOF
8337 #define HAVE_DECL__SNPRINTF $gt_value
8342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snwprintf is declared" >&5
8343 $as_echo_n "checking whether _snwprintf is declared... " >&6; }
8344 if test "${ac_cv_have_decl__snwprintf+set}" = set; then :
8345 $as_echo_n "(cached) " >&6
8347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8348 /* end confdefs.h. */
8355 char *p = (char *) _snwprintf;
8362 if ac_fn_c_try_compile "$LINENO"; then :
8363 ac_cv_have_decl__snwprintf=yes
8365 ac_cv_have_decl__snwprintf=no
8367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snwprintf" >&5
8370 $as_echo "$ac_cv_have_decl__snwprintf" >&6; }
8371 if test $ac_cv_have_decl__snwprintf = yes; then
8377 cat >>confdefs.h <<_ACEOF
8378 #define HAVE_DECL__SNWPRINTF $gt_value
8384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether feof_unlocked is declared" >&5
8385 $as_echo_n "checking whether feof_unlocked is declared... " >&6; }
8386 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then :
8387 $as_echo_n "(cached) " >&6
8389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8390 /* end confdefs.h. */
8396 #ifndef feof_unlocked
8397 char *p = (char *) feof_unlocked;
8404 if ac_fn_c_try_compile "$LINENO"; then :
8405 ac_cv_have_decl_feof_unlocked=yes
8407 ac_cv_have_decl_feof_unlocked=no
8409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_feof_unlocked" >&5
8412 $as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
8413 if test $ac_cv_have_decl_feof_unlocked = yes; then
8419 cat >>confdefs.h <<_ACEOF
8420 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
8425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fgets_unlocked is declared" >&5
8426 $as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
8427 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then :
8428 $as_echo_n "(cached) " >&6
8430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8431 /* end confdefs.h. */
8437 #ifndef fgets_unlocked
8438 char *p = (char *) fgets_unlocked;
8445 if ac_fn_c_try_compile "$LINENO"; then :
8446 ac_cv_have_decl_fgets_unlocked=yes
8448 ac_cv_have_decl_fgets_unlocked=no
8450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_fgets_unlocked" >&5
8453 $as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
8454 if test $ac_cv_have_decl_fgets_unlocked = yes; then
8460 cat >>confdefs.h <<_ACEOF
8461 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
8466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getc_unlocked is declared" >&5
8467 $as_echo_n "checking whether getc_unlocked is declared... " >&6; }
8468 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then :
8469 $as_echo_n "(cached) " >&6
8471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8472 /* end confdefs.h. */
8478 #ifndef getc_unlocked
8479 char *p = (char *) getc_unlocked;
8486 if ac_fn_c_try_compile "$LINENO"; then :
8487 ac_cv_have_decl_getc_unlocked=yes
8489 ac_cv_have_decl_getc_unlocked=no
8491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_getc_unlocked" >&5
8494 $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
8495 if test $ac_cv_have_decl_getc_unlocked = yes; then
8501 cat >>confdefs.h <<_ACEOF
8502 #define HAVE_DECL_GETC_UNLOCKED $gt_value
8507 case $gt_cv_func_printf_posix in
8508 *yes) HAVE_POSIX_PRINTF=1 ;;
8509 *) HAVE_POSIX_PRINTF=0 ;;
8512 if test "$ac_cv_func_asprintf" = yes; then
8518 if test "$ac_cv_func_snprintf" = yes; then
8524 if test "$ac_cv_func_wprintf" = yes; then
8536 am_save_CPPFLAGS="$CPPFLAGS"
8538 for element in $INCICONV; do
8540 for x in $CPPFLAGS; do
8542 acl_save_prefix="$prefix"
8543 prefix="$acl_final_prefix"
8544 acl_save_exec_prefix="$exec_prefix"
8545 exec_prefix="$acl_final_exec_prefix"
8547 exec_prefix="$acl_save_exec_prefix"
8548 prefix="$acl_save_prefix"
8550 if test "X$x" = "X$element"; then
8555 if test -z "$haveit"; then
8556 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
8562 $as_echo_n "checking for iconv... " >&6; }
8563 if test "${am_cv_func_iconv+set}" = set; then :
8564 $as_echo_n "(cached) " >&6
8567 am_cv_func_iconv="no, consider installing GNU libiconv"
8569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8570 /* end confdefs.h. */
8576 iconv_t cd = iconv_open("","");
8577 iconv(cd,NULL,NULL,NULL,NULL);
8583 if ac_fn_c_try_link "$LINENO"; then :
8584 am_cv_func_iconv=yes
8586 rm -f core conftest.err conftest.$ac_objext \
8587 conftest$ac_exeext conftest.$ac_ext
8588 if test "$am_cv_func_iconv" != yes; then
8589 am_save_LIBS="$LIBS"
8590 LIBS="$LIBS $LIBICONV"
8591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8592 /* end confdefs.h. */
8598 iconv_t cd = iconv_open("","");
8599 iconv(cd,NULL,NULL,NULL,NULL);
8605 if ac_fn_c_try_link "$LINENO"; then :
8607 am_cv_func_iconv=yes
8609 rm -f core conftest.err conftest.$ac_objext \
8610 conftest$ac_exeext conftest.$ac_ext
8611 LIBS="$am_save_LIBS"
8615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
8616 $as_echo "$am_cv_func_iconv" >&6; }
8617 if test "$am_cv_func_iconv" = yes; then
8619 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
8622 if test "$am_cv_lib_iconv" = yes; then
8623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
8624 $as_echo_n "checking how to link with libiconv... " >&6; }
8625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
8626 $as_echo "$LIBICONV" >&6; }
8628 CPPFLAGS="$am_save_CPPFLAGS"
8635 if test "$am_cv_func_iconv" = yes; then
8636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
8637 $as_echo_n "checking for iconv declaration... " >&6; }
8638 if test "${am_cv_proto_iconv+set}" = set; then :
8639 $as_echo_n "(cached) " >&6
8642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8643 /* end confdefs.h. */
8651 #if defined(__STDC__) || defined(__cplusplus)
8652 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
8665 if ac_fn_c_try_compile "$LINENO"; then :
8666 am_cv_proto_iconv_arg1=""
8668 am_cv_proto_iconv_arg1="const"
8670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8671 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);"
8674 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
8675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
8676 }$am_cv_proto_iconv" >&5
8678 }$am_cv_proto_iconv" >&6; }
8680 cat >>confdefs.h <<_ACEOF
8681 #define ICONV_CONST $am_cv_proto_iconv_arg1
8687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
8688 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
8689 if test "${am_cv_langinfo_codeset+set}" = set; then :
8690 $as_echo_n "(cached) " >&6
8692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8693 /* end confdefs.h. */
8694 #include <langinfo.h>
8698 char* cs = nl_langinfo(CODESET);
8703 if ac_fn_c_try_link "$LINENO"; then :
8704 am_cv_langinfo_codeset=yes
8706 am_cv_langinfo_codeset=no
8708 rm -f core conftest.err conftest.$ac_objext \
8709 conftest$ac_exeext conftest.$ac_ext
8712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
8713 $as_echo "$am_cv_langinfo_codeset" >&6; }
8714 if test $am_cv_langinfo_codeset = yes; then
8716 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
8720 if test $ac_cv_header_locale_h = yes; then
8722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
8723 $as_echo_n "checking for LC_MESSAGES... " >&6; }
8724 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
8725 $as_echo_n "(cached) " >&6
8727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8728 /* end confdefs.h. */
8738 if ac_fn_c_try_link "$LINENO"; then :
8739 am_cv_val_LC_MESSAGES=yes
8741 am_cv_val_LC_MESSAGES=no
8743 rm -f core conftest.err conftest.$ac_objext \
8744 conftest$ac_exeext conftest.$ac_ext
8746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
8747 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
8748 if test $am_cv_val_LC_MESSAGES = yes; then
8750 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
8756 for ac_prog in bison
8758 # Extract the first word of "$ac_prog", so it can be a program name with args.
8759 set dummy $ac_prog; ac_word=$2
8760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8761 $as_echo_n "checking for $ac_word... " >&6; }
8762 if test "${ac_cv_prog_INTLBISON+set}" = set; then :
8763 $as_echo_n "(cached) " >&6
8765 if test -n "$INTLBISON"; then
8766 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
8768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8772 test -z "$as_dir" && as_dir=.
8773 for ac_exec_ext in '' $ac_executable_extensions; do
8774 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8775 ac_cv_prog_INTLBISON="$ac_prog"
8776 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8785 INTLBISON=$ac_cv_prog_INTLBISON
8786 if test -n "$INTLBISON"; then
8787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
8788 $as_echo "$INTLBISON" >&6; }
8790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8791 $as_echo "no" >&6; }
8795 test -n "$INTLBISON" && break
8798 if test -z "$INTLBISON"; then
8801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
8802 $as_echo_n "checking version of bison... " >&6; }
8803 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
8804 case $ac_prog_version in
8805 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
8806 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
8807 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
8808 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
8810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
8811 $as_echo "$ac_prog_version" >&6; }
8813 if test $ac_verc_fail = yes; then
8832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
8833 $as_echo_n "checking whether NLS is requested... " >&6; }
8834 # Check whether --enable-nls was given.
8835 if test "${enable_nls+set}" = set; then :
8836 enableval=$enable_nls; USE_NLS=$enableval
8841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
8842 $as_echo "$USE_NLS" >&6; }
8847 BUILD_INCLUDED_LIBINTL=no
8848 USE_INCLUDED_LIBINTL=no
8854 if test "$USE_NLS" = "yes"; then
8855 gt_use_preinstalled_gnugettext=no
8857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
8858 $as_echo_n "checking whether included gettext is requested... " >&6; }
8860 # Check whether --with-included-gettext was given.
8861 if test "${with_included_gettext+set}" = set; then :
8862 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
8864 nls_cv_force_use_gnu_gettext=no
8867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
8868 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
8870 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
8871 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
8878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
8879 $as_echo_n "checking for GNU gettext in libc... " >&6; }
8880 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then :
8881 $as_echo_n "(cached) " >&6
8883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8884 /* end confdefs.h. */
8885 #include <libintl.h>
8886 extern int _nl_msg_cat_cntr;
8887 extern int *_nl_domain_bindings;
8891 bindtextdomain ("", "");
8892 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
8897 if ac_fn_c_try_link "$LINENO"; then :
8898 gt_cv_func_gnugettext1_libc=yes
8900 gt_cv_func_gnugettext1_libc=no
8902 rm -f core conftest.err conftest.$ac_objext \
8903 conftest$ac_exeext conftest.$ac_ext
8905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
8906 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
8908 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
8914 acl_save_prefix="$prefix"
8915 prefix="$acl_final_prefix"
8916 acl_save_exec_prefix="$exec_prefix"
8917 exec_prefix="$acl_final_exec_prefix"
8919 eval additional_includedir=\"$includedir\"
8920 eval additional_libdir=\"$libdir\"
8922 exec_prefix="$acl_save_exec_prefix"
8923 prefix="$acl_save_prefix"
8926 # Check whether --with-libintl-prefix was given.
8927 if test "${with_libintl_prefix+set}" = set; then :
8928 withval=$with_libintl_prefix;
8929 if test "X$withval" = "Xno"; then
8932 if test "X$withval" = "X"; then
8934 acl_save_prefix="$prefix"
8935 prefix="$acl_final_prefix"
8936 acl_save_exec_prefix="$exec_prefix"
8937 exec_prefix="$acl_final_exec_prefix"
8939 eval additional_includedir=\"$includedir\"
8940 eval additional_libdir=\"$libdir\"
8942 exec_prefix="$acl_save_exec_prefix"
8943 prefix="$acl_save_prefix"
8946 additional_includedir="$withval/include"
8947 additional_libdir="$withval/lib"
8958 names_already_handled=
8959 names_next_round='intl '
8960 while test -n "$names_next_round"; do
8961 names_this_round="$names_next_round"
8963 for name in $names_this_round; do
8965 for n in $names_already_handled; do
8966 if test "$n" = "$name"; then
8971 if test -z "$already_handled"; then
8972 names_already_handled="$names_already_handled $name"
8973 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
8974 eval value=\"\$HAVE_LIB$uppername\"
8975 if test -n "$value"; then
8976 if test "$value" = yes; then
8977 eval value=\"\$LIB$uppername\"
8978 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
8979 eval value=\"\$LTLIB$uppername\"
8980 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
8989 if test $use_additional = yes; then
8990 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
8991 found_dir="$additional_libdir"
8992 found_so="$additional_libdir/lib$name.$shlibext"
8993 if test -f "$additional_libdir/lib$name.la"; then
8994 found_la="$additional_libdir/lib$name.la"
8997 if test -f "$additional_libdir/lib$name.$libext"; then
8998 found_dir="$additional_libdir"
8999 found_a="$additional_libdir/lib$name.$libext"
9000 if test -f "$additional_libdir/lib$name.la"; then
9001 found_la="$additional_libdir/lib$name.la"
9006 if test "X$found_dir" = "X"; then
9007 for x in $LDFLAGS $LTLIBINTL; do
9009 acl_save_prefix="$prefix"
9010 prefix="$acl_final_prefix"
9011 acl_save_exec_prefix="$exec_prefix"
9012 exec_prefix="$acl_final_exec_prefix"
9014 exec_prefix="$acl_save_exec_prefix"
9015 prefix="$acl_save_prefix"
9019 dir=`echo "X$x" | sed -e 's/^X-L//'`
9020 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9022 found_so="$dir/lib$name.$shlibext"
9023 if test -f "$dir/lib$name.la"; then
9024 found_la="$dir/lib$name.la"
9027 if test -f "$dir/lib$name.$libext"; then
9029 found_a="$dir/lib$name.$libext"
9030 if test -f "$dir/lib$name.la"; then
9031 found_la="$dir/lib$name.la"
9037 if test "X$found_dir" != "X"; then
9042 if test "X$found_dir" != "X"; then
9043 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
9044 if test "X$found_so" != "X"; then
9045 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9046 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9049 for x in $ltrpathdirs; do
9050 if test "X$x" = "X$found_dir"; then
9055 if test -z "$haveit"; then
9056 ltrpathdirs="$ltrpathdirs $found_dir"
9058 if test "$hardcode_direct" = yes; then
9059 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9061 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9062 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9064 for x in $rpathdirs; do
9065 if test "X$x" = "X$found_dir"; then
9070 if test -z "$haveit"; then
9071 rpathdirs="$rpathdirs $found_dir"
9075 for x in $LDFLAGS $LIBINTL; do
9077 acl_save_prefix="$prefix"
9078 prefix="$acl_final_prefix"
9079 acl_save_exec_prefix="$exec_prefix"
9080 exec_prefix="$acl_final_exec_prefix"
9082 exec_prefix="$acl_save_exec_prefix"
9083 prefix="$acl_save_prefix"
9085 if test "X$x" = "X-L$found_dir"; then
9090 if test -z "$haveit"; then
9091 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
9093 if test "$hardcode_minus_L" != no; then
9094 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9096 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
9102 if test "X$found_a" != "X"; then
9103 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
9105 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
9108 additional_includedir=
9109 case "$found_dir" in
9111 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9112 additional_includedir="$basedir/include"
9115 if test "X$additional_includedir" != "X"; then
9116 if test "X$additional_includedir" != "X/usr/include"; then
9118 if test "X$additional_includedir" = "X/usr/local/include"; then
9119 if test -n "$GCC"; then
9121 linux*) haveit=yes;;
9125 if test -z "$haveit"; then
9126 for x in $CPPFLAGS $INCINTL; do
9128 acl_save_prefix="$prefix"
9129 prefix="$acl_final_prefix"
9130 acl_save_exec_prefix="$exec_prefix"
9131 exec_prefix="$acl_final_exec_prefix"
9133 exec_prefix="$acl_save_exec_prefix"
9134 prefix="$acl_save_prefix"
9136 if test "X$x" = "X-I$additional_includedir"; then
9141 if test -z "$haveit"; then
9142 if test -d "$additional_includedir"; then
9143 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
9149 if test -n "$found_la"; then
9150 save_libdir="$libdir"
9152 */* | *\\*) . "$found_la" ;;
9153 *) . "./$found_la" ;;
9155 libdir="$save_libdir"
9156 for dep in $dependency_libs; do
9159 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9160 if test "X$additional_libdir" != "X/usr/lib"; then
9162 if test "X$additional_libdir" = "X/usr/local/lib"; then
9163 if test -n "$GCC"; then
9165 linux*) haveit=yes;;
9169 if test -z "$haveit"; then
9171 for x in $LDFLAGS $LIBINTL; do
9173 acl_save_prefix="$prefix"
9174 prefix="$acl_final_prefix"
9175 acl_save_exec_prefix="$exec_prefix"
9176 exec_prefix="$acl_final_exec_prefix"
9178 exec_prefix="$acl_save_exec_prefix"
9179 prefix="$acl_save_prefix"
9181 if test "X$x" = "X-L$additional_libdir"; then
9186 if test -z "$haveit"; then
9187 if test -d "$additional_libdir"; then
9188 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
9192 for x in $LDFLAGS $LTLIBINTL; do
9194 acl_save_prefix="$prefix"
9195 prefix="$acl_final_prefix"
9196 acl_save_exec_prefix="$exec_prefix"
9197 exec_prefix="$acl_final_exec_prefix"
9199 exec_prefix="$acl_save_exec_prefix"
9200 prefix="$acl_save_prefix"
9202 if test "X$x" = "X-L$additional_libdir"; then
9207 if test -z "$haveit"; then
9208 if test -d "$additional_libdir"; then
9209 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
9216 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9217 if test "$enable_rpath" != no; then
9219 for x in $rpathdirs; do
9220 if test "X$x" = "X$dir"; then
9225 if test -z "$haveit"; then
9226 rpathdirs="$rpathdirs $dir"
9229 for x in $ltrpathdirs; do
9230 if test "X$x" = "X$dir"; then
9235 if test -z "$haveit"; then
9236 ltrpathdirs="$ltrpathdirs $dir"
9241 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9244 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9247 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
9248 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
9254 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
9255 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
9261 if test "X$rpathdirs" != "X"; then
9262 if test -n "$hardcode_libdir_separator"; then
9264 for found_dir in $rpathdirs; do
9265 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9267 acl_save_libdir="$libdir"
9269 eval flag=\"$hardcode_libdir_flag_spec\"
9270 libdir="$acl_save_libdir"
9271 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
9273 for found_dir in $rpathdirs; do
9274 acl_save_libdir="$libdir"
9276 eval flag=\"$hardcode_libdir_flag_spec\"
9277 libdir="$acl_save_libdir"
9278 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
9282 if test "X$ltrpathdirs" != "X"; then
9283 for found_dir in $ltrpathdirs; do
9284 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
9288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
9289 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
9290 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then :
9291 $as_echo_n "(cached) " >&6
9293 gt_save_CPPFLAGS="$CPPFLAGS"
9294 CPPFLAGS="$CPPFLAGS $INCINTL"
9295 gt_save_LIBS="$LIBS"
9296 LIBS="$LIBS $LIBINTL"
9297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9298 /* end confdefs.h. */
9299 #include <libintl.h>
9300 extern int _nl_msg_cat_cntr;
9305 const char *_nl_expand_alias ();
9309 bindtextdomain ("", "");
9310 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
9315 if ac_fn_c_try_link "$LINENO"; then :
9316 gt_cv_func_gnugettext1_libintl=yes
9318 gt_cv_func_gnugettext1_libintl=no
9320 rm -f core conftest.err conftest.$ac_objext \
9321 conftest$ac_exeext conftest.$ac_ext
9322 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
9323 LIBS="$LIBS $LIBICONV"
9324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9325 /* end confdefs.h. */
9326 #include <libintl.h>
9327 extern int _nl_msg_cat_cntr;
9332 const char *_nl_expand_alias ();
9336 bindtextdomain ("", "");
9337 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
9342 if ac_fn_c_try_link "$LINENO"; then :
9343 LIBINTL="$LIBINTL $LIBICONV"
9344 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
9345 gt_cv_func_gnugettext1_libintl=yes
9348 rm -f core conftest.err conftest.$ac_objext \
9349 conftest$ac_exeext conftest.$ac_ext
9351 CPPFLAGS="$gt_save_CPPFLAGS"
9352 LIBS="$gt_save_LIBS"
9354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
9355 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
9358 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
9359 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
9360 && test "$PACKAGE" != gettext-runtime \
9361 && test "$PACKAGE" != gettext-tools; }; then
9362 gt_use_preinstalled_gnugettext=yes
9370 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
9371 nls_cv_use_gnu_gettext=yes
9375 if test "$nls_cv_use_gnu_gettext" = "yes"; then
9376 BUILD_INCLUDED_LIBINTL=yes
9377 USE_INCLUDED_LIBINTL=yes
9378 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
9379 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
9380 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
9383 if test "$gt_use_preinstalled_gnugettext" = "yes" \
9384 || test "$nls_cv_use_gnu_gettext" = "yes"; then
9389 if test "$gt_use_preinstalled_gnugettext" = "yes" \
9390 || test "$nls_cv_use_gnu_gettext" = "yes"; then
9392 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
9399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
9400 $as_echo_n "checking whether to use NLS... " >&6; }
9401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
9402 $as_echo "$USE_NLS" >&6; }
9403 if test "$USE_NLS" = "yes"; then
9404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
9405 $as_echo_n "checking where the gettext function comes from... " >&6; }
9406 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
9407 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
9408 gt_source="external libintl"
9413 gt_source="included intl directory"
9415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
9416 $as_echo "$gt_source" >&6; }
9419 if test "$USE_NLS" = "yes"; then
9421 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
9422 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
9423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
9424 $as_echo_n "checking how to link with libintl... " >&6; }
9425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
9426 $as_echo "$LIBINTL" >&6; }
9428 for element in $INCINTL; do
9430 for x in $CPPFLAGS; do
9432 acl_save_prefix="$prefix"
9433 prefix="$acl_final_prefix"
9434 acl_save_exec_prefix="$exec_prefix"
9435 exec_prefix="$acl_final_exec_prefix"
9437 exec_prefix="$acl_save_exec_prefix"
9438 prefix="$acl_save_prefix"
9440 if test "X$x" = "X$element"; then
9445 if test -z "$haveit"; then
9446 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9453 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
9456 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
9464 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
9465 BUILD_INCLUDED_LIBINTL=yes
9473 nls_cv_header_libgt=
9484 if test "$USE_INCLUDED_LIBINTL" = yes; then
9485 INTLOBJS="\$(GETTOBJS)"
9489 INTL_LIBTOOL_SUFFIX_PREFIX=
9501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9502 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
9504 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
9505 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
9506 $as_echo_n "(cached) " >&6
9508 cat >conftest.make <<\_ACEOF
9511 @echo '@@@%%%=$(MAKE)=@@@%%%'
9513 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9514 case `${MAKE-make} -f conftest.make 2>/dev/null` in
9516 eval ac_cv_prog_make_${ac_make}_set=yes;;
9518 eval ac_cv_prog_make_${ac_make}_set=no;;
9522 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9524 $as_echo "yes" >&6; }
9527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9528 $as_echo "no" >&6; }
9529 SET_MAKE="MAKE=${MAKE-make}"
9532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5
9533 $as_echo_n "checking for GNU make... " >&6; }
9534 if test "${_cv_gnu_make_command+set}" = set; then :
9535 $as_echo_n "(cached) " >&6
9537 _cv_gnu_make_command='' ;
9538 for a in "$MAKE" make gmake gnumake ; do
9539 if test -z "$a" ; then continue ; fi ;
9540 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
9541 _cv_gnu_make_command=$a ;
9547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_cv_gnu_make_command" >&5
9548 $as_echo "$_cv_gnu_make_command" >&6; } ;
9549 if test "x$_cv_gnu_make_command" != "x" ; then
9555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"Not found\"" >&5
9556 $as_echo "\"Not found\"" >&6; };
9561 # Extract the first word of "ln", so it can be a program name with args.
9562 set dummy ln; ac_word=$2
9563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9564 $as_echo_n "checking for $ac_word... " >&6; }
9565 if test "${ac_cv_path_LN+set}" = set; then :
9566 $as_echo_n "(cached) " >&6
9570 ac_cv_path_LN="$LN" # Let the user override the test with a path.
9573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9577 test -z "$as_dir" && as_dir=.
9578 for ac_exec_ext in '' $ac_executable_extensions; do
9579 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9580 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
9581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9588 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
9593 if test -n "$LN"; then
9594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
9595 $as_echo "$LN" >&6; }
9597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9598 $as_echo "no" >&6; }
9602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
9603 $as_echo_n "checking whether ln -s works... " >&6; }
9605 if test "$LN_S" = "ln -s"; then
9606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9607 $as_echo "yes" >&6; }
9609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
9610 $as_echo "no, using $LN_S" >&6; }
9613 # Extract the first word of "mv", so it can be a program name with args.
9614 set dummy mv; ac_word=$2
9615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9616 $as_echo_n "checking for $ac_word... " >&6; }
9617 if test "${ac_cv_path_MV+set}" = set; then :
9618 $as_echo_n "(cached) " >&6
9622 ac_cv_path_MV="$MV" # Let the user override the test with a path.
9625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9629 test -z "$as_dir" && as_dir=.
9630 for ac_exec_ext in '' $ac_executable_extensions; do
9631 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9632 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
9633 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9640 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
9645 if test -n "$MV"; then
9646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
9647 $as_echo "$MV" >&6; }
9649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9650 $as_echo "no" >&6; }
9654 # Extract the first word of "cp", so it can be a program name with args.
9655 set dummy cp; ac_word=$2
9656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9657 $as_echo_n "checking for $ac_word... " >&6; }
9658 if test "${ac_cv_path_CP+set}" = set; then :
9659 $as_echo_n "(cached) " >&6
9663 ac_cv_path_CP="$CP" # Let the user override the test with a path.
9666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9670 test -z "$as_dir" && as_dir=.
9671 for ac_exec_ext in '' $ac_executable_extensions; do
9672 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9673 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
9674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9681 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
9686 if test -n "$CP"; then
9687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
9688 $as_echo "$CP" >&6; }
9690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9691 $as_echo "no" >&6; }
9695 # Extract the first word of "rm", so it can be a program name with args.
9696 set dummy rm; ac_word=$2
9697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9698 $as_echo_n "checking for $ac_word... " >&6; }
9699 if test "${ac_cv_path_RM+set}" = set; then :
9700 $as_echo_n "(cached) " >&6
9704 ac_cv_path_RM="$RM" # Let the user override the test with a path.
9707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9711 test -z "$as_dir" && as_dir=.
9712 for ac_exec_ext in '' $ac_executable_extensions; do
9713 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9714 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
9715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9722 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
9727 if test -n "$RM"; then
9728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
9729 $as_echo "$RM" >&6; }
9731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9732 $as_echo "no" >&6; }
9736 # Extract the first word of "chmod", so it can be a program name with args.
9737 set dummy chmod; ac_word=$2
9738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9739 $as_echo_n "checking for $ac_word... " >&6; }
9740 if test "${ac_cv_path_CHMOD+set}" = set; then :
9741 $as_echo_n "(cached) " >&6
9745 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
9748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9752 test -z "$as_dir" && as_dir=.
9753 for ac_exec_ext in '' $ac_executable_extensions; do
9754 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9755 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
9756 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9763 test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
9767 CHMOD=$ac_cv_path_CHMOD
9768 if test -n "$CHMOD"; then
9769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
9770 $as_echo "$CHMOD" >&6; }
9772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9773 $as_echo "no" >&6; }
9777 for ac_prog in gawk mawk nawk awk
9779 # Extract the first word of "$ac_prog", so it can be a program name with args.
9780 set dummy $ac_prog; ac_word=$2
9781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9782 $as_echo_n "checking for $ac_word... " >&6; }
9783 if test "${ac_cv_prog_AWK+set}" = set; then :
9784 $as_echo_n "(cached) " >&6
9786 if test -n "$AWK"; then
9787 ac_cv_prog_AWK="$AWK" # Let the user override the test.
9789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9793 test -z "$as_dir" && as_dir=.
9794 for ac_exec_ext in '' $ac_executable_extensions; do
9795 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9796 ac_cv_prog_AWK="$ac_prog"
9797 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9807 if test -n "$AWK"; then
9808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
9809 $as_echo "$AWK" >&6; }
9811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9812 $as_echo "no" >&6; }
9816 test -n "$AWK" && break
9819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
9820 $as_echo_n "checking for egrep... " >&6; }
9821 if test "${ac_cv_path_EGREP+set}" = set; then :
9822 $as_echo_n "(cached) " >&6
9824 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
9825 then ac_cv_path_EGREP="$GREP -E"
9827 if test -z "$EGREP"; then
9828 ac_path_EGREP_found=false
9829 # Loop through the user's path and test for each of PROGNAME-LIST
9830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9831 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
9834 test -z "$as_dir" && as_dir=.
9835 for ac_prog in egrep; do
9836 for ac_exec_ext in '' $ac_executable_extensions; do
9837 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
9838 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
9839 # Check for GNU ac_path_EGREP and select it if it is found.
9840 # Check for GNU $ac_path_EGREP
9841 case `"$ac_path_EGREP" --version 2>&1` in
9843 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
9846 $as_echo_n 0123456789 >"conftest.in"
9849 cat "conftest.in" "conftest.in" >"conftest.tmp"
9850 mv "conftest.tmp" "conftest.in"
9851 cp "conftest.in" "conftest.nl"
9852 $as_echo 'EGREP' >> "conftest.nl"
9853 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
9854 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
9855 as_fn_arith $ac_count + 1 && ac_count=$as_val
9856 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
9857 # Best one so far, save it but keep looking for a better one
9858 ac_cv_path_EGREP="$ac_path_EGREP"
9859 ac_path_EGREP_max=$ac_count
9861 # 10*(2^10) chars as input seems more than enough
9862 test $ac_count -gt 10 && break
9864 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
9867 $ac_path_EGREP_found && break 3
9872 if test -z "$ac_cv_path_EGREP"; then
9873 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
9876 ac_cv_path_EGREP=$EGREP
9881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
9882 $as_echo "$ac_cv_path_EGREP" >&6; }
9883 EGREP="$ac_cv_path_EGREP"
9886 # Extract the first word of "sed", so it can be a program name with args.
9887 set dummy sed; ac_word=$2
9888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9889 $as_echo_n "checking for $ac_word... " >&6; }
9890 if test "${ac_cv_path_SED+set}" = set; then :
9891 $as_echo_n "(cached) " >&6
9895 ac_cv_path_SED="$SED" # Let the user override the test with a path.
9898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9902 test -z "$as_dir" && as_dir=.
9903 for ac_exec_ext in '' $ac_executable_extensions; do
9904 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9905 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
9906 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9913 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
9918 if test -n "$SED"; then
9919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
9920 $as_echo "$SED" >&6; }
9922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9923 $as_echo "no" >&6; }
9927 # Extract the first word of "perl", so it can be a program name with args.
9928 set dummy perl; ac_word=$2
9929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9930 $as_echo_n "checking for $ac_word... " >&6; }
9931 if test "${ac_cv_path_PERL+set}" = set; then :
9932 $as_echo_n "(cached) " >&6
9936 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
9939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9943 test -z "$as_dir" && as_dir=.
9944 for ac_exec_ext in '' $ac_executable_extensions; do
9945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9946 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
9947 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9954 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
9958 PERL=$ac_cv_path_PERL
9959 if test -n "$PERL"; then
9960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
9961 $as_echo "$PERL" >&6; }
9963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9964 $as_echo "no" >&6; }
9968 # Extract the first word of "ldconfig", so it can be a program name with args.
9969 set dummy ldconfig; ac_word=$2
9970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9971 $as_echo_n "checking for $ac_word... " >&6; }
9972 if test "${ac_cv_path_LDCONFIG+set}" = set; then :
9973 $as_echo_n "(cached) " >&6
9977 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
9980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9984 test -z "$as_dir" && as_dir=.
9985 for ac_exec_ext in '' $ac_executable_extensions; do
9986 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9987 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
9988 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9995 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
9999 LDCONFIG=$ac_cv_path_LDCONFIG
10000 if test -n "$LDCONFIG"; then
10001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
10002 $as_echo "$LDCONFIG" >&6; }
10004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10005 $as_echo "no" >&6; }
10009 if test -n "$ac_tool_prefix"; then
10010 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
10011 set dummy ${ac_tool_prefix}ar; ac_word=$2
10012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10013 $as_echo_n "checking for $ac_word... " >&6; }
10014 if test "${ac_cv_prog_AR+set}" = set; then :
10015 $as_echo_n "(cached) " >&6
10017 if test -n "$AR"; then
10018 ac_cv_prog_AR="$AR" # Let the user override the test.
10020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10021 for as_dir in $PATH
10024 test -z "$as_dir" && as_dir=.
10025 for ac_exec_ext in '' $ac_executable_extensions; do
10026 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10027 ac_cv_prog_AR="${ac_tool_prefix}ar"
10028 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10038 if test -n "$AR"; then
10039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10040 $as_echo "$AR" >&6; }
10042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10043 $as_echo "no" >&6; }
10048 if test -z "$ac_cv_prog_AR"; then
10050 # Extract the first word of "ar", so it can be a program name with args.
10051 set dummy ar; ac_word=$2
10052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10053 $as_echo_n "checking for $ac_word... " >&6; }
10054 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
10055 $as_echo_n "(cached) " >&6
10057 if test -n "$ac_ct_AR"; then
10058 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
10060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10061 for as_dir in $PATH
10064 test -z "$as_dir" && as_dir=.
10065 for ac_exec_ext in '' $ac_executable_extensions; do
10066 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10067 ac_cv_prog_ac_ct_AR="ar"
10068 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10077 ac_ct_AR=$ac_cv_prog_ac_ct_AR
10078 if test -n "$ac_ct_AR"; then
10079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
10080 $as_echo "$ac_ct_AR" >&6; }
10082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10083 $as_echo "no" >&6; }
10086 if test "x$ac_ct_AR" = x; then
10089 case $cross_compiling:$ac_tool_warned in
10091 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10092 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10093 ac_tool_warned=yes ;;
10098 AR="$ac_cv_prog_AR"
10101 if test -n "$ac_tool_prefix"; then
10102 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
10103 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
10104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10105 $as_echo_n "checking for $ac_word... " >&6; }
10106 if test "${ac_cv_prog_RANLIB+set}" = set; then :
10107 $as_echo_n "(cached) " >&6
10109 if test -n "$RANLIB"; then
10110 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10113 for as_dir in $PATH
10116 test -z "$as_dir" && as_dir=.
10117 for ac_exec_ext in '' $ac_executable_extensions; do
10118 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10119 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
10120 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10129 RANLIB=$ac_cv_prog_RANLIB
10130 if test -n "$RANLIB"; then
10131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
10132 $as_echo "$RANLIB" >&6; }
10134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10135 $as_echo "no" >&6; }
10140 if test -z "$ac_cv_prog_RANLIB"; then
10141 ac_ct_RANLIB=$RANLIB
10142 # Extract the first word of "ranlib", so it can be a program name with args.
10143 set dummy ranlib; ac_word=$2
10144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10145 $as_echo_n "checking for $ac_word... " >&6; }
10146 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
10147 $as_echo_n "(cached) " >&6
10149 if test -n "$ac_ct_RANLIB"; then
10150 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
10152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10153 for as_dir in $PATH
10156 test -z "$as_dir" && as_dir=.
10157 for ac_exec_ext in '' $ac_executable_extensions; do
10158 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10159 ac_cv_prog_ac_ct_RANLIB="ranlib"
10160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10169 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
10170 if test -n "$ac_ct_RANLIB"; then
10171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
10172 $as_echo "$ac_ct_RANLIB" >&6; }
10174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10175 $as_echo "no" >&6; }
10178 if test "x$ac_ct_RANLIB" = x; then
10181 case $cross_compiling:$ac_tool_warned in
10183 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10184 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10185 ac_tool_warned=yes ;;
10187 RANLIB=$ac_ct_RANLIB
10190 RANLIB="$ac_cv_prog_RANLIB"
10193 if test -n "$ac_tool_prefix"; then
10194 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
10195 set dummy ${ac_tool_prefix}strip; ac_word=$2
10196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10197 $as_echo_n "checking for $ac_word... " >&6; }
10198 if test "${ac_cv_prog_STRIP+set}" = set; then :
10199 $as_echo_n "(cached) " >&6
10201 if test -n "$STRIP"; then
10202 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
10204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10205 for as_dir in $PATH
10208 test -z "$as_dir" && as_dir=.
10209 for ac_exec_ext in '' $ac_executable_extensions; do
10210 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10211 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
10212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10221 STRIP=$ac_cv_prog_STRIP
10222 if test -n "$STRIP"; then
10223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
10224 $as_echo "$STRIP" >&6; }
10226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10227 $as_echo "no" >&6; }
10232 if test -z "$ac_cv_prog_STRIP"; then
10234 # Extract the first word of "strip", so it can be a program name with args.
10235 set dummy strip; ac_word=$2
10236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10237 $as_echo_n "checking for $ac_word... " >&6; }
10238 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
10239 $as_echo_n "(cached) " >&6
10241 if test -n "$ac_ct_STRIP"; then
10242 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
10244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10245 for as_dir in $PATH
10248 test -z "$as_dir" && as_dir=.
10249 for ac_exec_ext in '' $ac_executable_extensions; do
10250 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10251 ac_cv_prog_ac_ct_STRIP="strip"
10252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10261 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
10262 if test -n "$ac_ct_STRIP"; then
10263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
10264 $as_echo "$ac_ct_STRIP" >&6; }
10266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10267 $as_echo "no" >&6; }
10270 if test "x$ac_ct_STRIP" = x; then
10273 case $cross_compiling:$ac_tool_warned in
10275 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10276 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10277 ac_tool_warned=yes ;;
10282 STRIP="$ac_cv_prog_STRIP"
10285 # Extract the first word of "makeinfo", so it can be a program name with args.
10286 set dummy makeinfo; ac_word=$2
10287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10288 $as_echo_n "checking for $ac_word... " >&6; }
10289 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
10290 $as_echo_n "(cached) " >&6
10292 if test -n "$MAKEINFO"; then
10293 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
10295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10296 for as_dir in $PATH
10299 test -z "$as_dir" && as_dir=.
10300 for ac_exec_ext in '' $ac_executable_extensions; do
10301 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10302 ac_cv_prog_MAKEINFO="makeinfo"
10303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10312 MAKEINFO=$ac_cv_prog_MAKEINFO
10313 if test -n "$MAKEINFO"; then
10314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
10315 $as_echo "$MAKEINFO" >&6; }
10317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10318 $as_echo "no" >&6; }
10322 if test "_$MAKEINFO" = "_"; then
10323 MAKEINFO="@echo Makeinfo is missing. Info documentation will not be built.;true"
10325 case "$MAKEINFO" in
10327 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
10328 *** Makeinfo is missing. Info documentation will not be built." >&5
10329 $as_echo "$as_me: WARNING:
10330 *** Makeinfo is missing. Info documentation will not be built." >&2;}
10338 # See if we need a separate native compiler.
10339 if test $cross_compiling = no; then
10343 for ac_prog in gcc cc
10345 # Extract the first word of "$ac_prog", so it can be a program name with args.
10346 set dummy $ac_prog; ac_word=$2
10347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10348 $as_echo_n "checking for $ac_word... " >&6; }
10349 if test "${ac_cv_prog_BUILD_CC+set}" = set; then :
10350 $as_echo_n "(cached) " >&6
10352 if test -n "$BUILD_CC"; then
10353 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
10355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10356 for as_dir in $PATH
10359 test -z "$as_dir" && as_dir=.
10360 for ac_exec_ext in '' $ac_executable_extensions; do
10361 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10362 ac_cv_prog_BUILD_CC="$ac_prog"
10363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10372 BUILD_CC=$ac_cv_prog_BUILD_CC
10373 if test -n "$BUILD_CC"; then
10374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
10375 $as_echo "$BUILD_CC" >&6; }
10377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10378 $as_echo "no" >&6; }
10382 test -n "$BUILD_CC" && break
10386 for ac_header in attr/xattr.h 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 sys/xattr.h
10388 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10389 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10390 eval as_val=\$$as_ac_Header
10391 if test "x$as_val" = x""yes; then :
10392 cat >>confdefs.h <<_ACEOF
10393 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10400 for ac_header in sys/disk.h sys/mount.h
10402 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10403 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
10404 #if HAVE_SYS_QUEUE_H
10405 #include <sys/queue.h>
10409 eval as_val=\$$as_ac_Header
10410 if test "x$as_val" = x""yes; then :
10411 cat >>confdefs.h <<_ACEOF
10412 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10419 for ac_header in net/if.h
10421 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
10422 #if HAVE_SYS_TYPES_H
10423 #include <sys/types.h>
10425 #if HAVE_SYS_SOCKET
10426 #include <sys/socket.h>
10430 if test "x$ac_cv_header_net_if_h" = x""yes; then :
10431 cat >>confdefs.h <<_ACEOF
10432 #define HAVE_NET_IF_H 1
10439 for ac_header in db.h
10441 ac_fn_c_check_header_mongrel "$LINENO" "db.h" "ac_cv_header_db_h" "$ac_includes_default"
10442 if test "x$ac_cv_header_db_h" = x""yes; then :
10443 cat >>confdefs.h <<_ACEOF
10444 #define HAVE_DB_H 1
10451 for ac_func in vprintf
10453 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
10454 if test "x$ac_cv_func_vprintf" = x""yes; then :
10455 cat >>confdefs.h <<_ACEOF
10456 #define HAVE_VPRINTF 1
10459 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
10460 if test "x$ac_cv_func__doprnt" = x""yes; then :
10462 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
10470 ac_fn_c_check_member "$LINENO" "struct dirent" "d_reclen" "ac_cv_member_struct_dirent_d_reclen" "#include <dirent.h>
10472 if test "x$ac_cv_member_struct_dirent_d_reclen" = x""yes; then :
10474 $as_echo "#define HAVE_RECLEN_DIRENT 1" >>confdefs.h
10478 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "#include <sys/types.h>
10480 if test "x$ac_cv_type_ssize_t" = x""yes; then :
10482 $as_echo "#define HAVE_TYPE_SSIZE_T 1" >>confdefs.h
10486 ac_fn_c_check_decl "$LINENO" "llseek" "ac_cv_have_decl_llseek" "#include <unistd.h>
10488 if test "x$ac_cv_have_decl_llseek" = x""yes; then :
10490 $as_echo "#define HAVE_LLSEEK_PROTOTYPE 1" >>confdefs.h
10494 ac_fn_c_check_decl "$LINENO" "lseek64" "ac_cv_have_decl_lseek64" "#define _LARGEFILE_SOURCE
10495 #define _LARGEFILE64_SOURCE
10496 #include <unistd.h>
10498 if test "x$ac_cv_have_decl_lseek64" = x""yes; then :
10500 $as_echo "#define HAVE_LSEEK64_PROTOTYPE 1" >>confdefs.h
10504 # The cast to long int works around a bug in the HP C Compiler
10505 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10506 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10507 # This bug is HP SR number 8606223364.
10508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
10509 $as_echo_n "checking size of short... " >&6; }
10510 if test "${ac_cv_sizeof_short+set}" = set; then :
10511 $as_echo_n "(cached) " >&6
10513 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
10516 if test "$ac_cv_type_short" = yes; then
10517 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10518 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10519 { as_fn_set_status 77
10520 as_fn_error "cannot compute sizeof (short)
10521 See \`config.log' for more details." "$LINENO" 5; }; }
10523 ac_cv_sizeof_short=0
10528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
10529 $as_echo "$ac_cv_sizeof_short" >&6; }
10533 cat >>confdefs.h <<_ACEOF
10534 #define SIZEOF_SHORT $ac_cv_sizeof_short
10538 # The cast to long int works around a bug in the HP C Compiler
10539 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10540 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10541 # This bug is HP SR number 8606223364.
10542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
10543 $as_echo_n "checking size of int... " >&6; }
10544 if test "${ac_cv_sizeof_int+set}" = set; then :
10545 $as_echo_n "(cached) " >&6
10547 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
10550 if test "$ac_cv_type_int" = yes; then
10551 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10552 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10553 { as_fn_set_status 77
10554 as_fn_error "cannot compute sizeof (int)
10555 See \`config.log' for more details." "$LINENO" 5; }; }
10562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
10563 $as_echo "$ac_cv_sizeof_int" >&6; }
10567 cat >>confdefs.h <<_ACEOF
10568 #define SIZEOF_INT $ac_cv_sizeof_int
10572 # The cast to long int works around a bug in the HP C Compiler
10573 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10574 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10575 # This bug is HP SR number 8606223364.
10576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
10577 $as_echo_n "checking size of long... " >&6; }
10578 if test "${ac_cv_sizeof_long+set}" = set; then :
10579 $as_echo_n "(cached) " >&6
10581 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
10584 if test "$ac_cv_type_long" = yes; then
10585 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10586 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10587 { as_fn_set_status 77
10588 as_fn_error "cannot compute sizeof (long)
10589 See \`config.log' for more details." "$LINENO" 5; }; }
10591 ac_cv_sizeof_long=0
10596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
10597 $as_echo "$ac_cv_sizeof_long" >&6; }
10601 cat >>confdefs.h <<_ACEOF
10602 #define SIZEOF_LONG $ac_cv_sizeof_long
10606 # The cast to long int works around a bug in the HP C Compiler
10607 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10608 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10609 # This bug is HP SR number 8606223364.
10610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
10611 $as_echo_n "checking size of long long... " >&6; }
10612 if test "${ac_cv_sizeof_long_long+set}" = set; then :
10613 $as_echo_n "(cached) " >&6
10615 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
10618 if test "$ac_cv_type_long_long" = yes; then
10619 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10620 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10621 { as_fn_set_status 77
10622 as_fn_error "cannot compute sizeof (long long)
10623 See \`config.log' for more details." "$LINENO" 5; }; }
10625 ac_cv_sizeof_long_long=0
10630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
10631 $as_echo "$ac_cv_sizeof_long_long" >&6; }
10635 cat >>confdefs.h <<_ACEOF
10636 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10640 SIZEOF_SHORT=$ac_cv_sizeof_short
10641 SIZEOF_INT=$ac_cv_sizeof_int
10642 SIZEOF_LONG=$ac_cv_sizeof_long
10643 SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
10648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
10649 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
10650 if test "${ac_cv_c_bigendian+set}" = set; then :
10651 $as_echo_n "(cached) " >&6
10653 ac_cv_c_bigendian=unknown
10654 # See if we're dealing with a universal compiler.
10655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10656 /* end confdefs.h. */
10657 #ifndef __APPLE_CC__
10658 not a universal capable compiler
10663 if ac_fn_c_try_compile "$LINENO"; then :
10665 # Check for potential -arch flags. It is not universal unless
10666 # there are at least two -arch flags with different values.
10669 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
10670 if test -n "$ac_prev"; then
10672 i?86 | x86_64 | ppc | ppc64)
10673 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
10676 ac_cv_c_bigendian=universal
10682 elif test "x$ac_word" = "x-arch"; then
10687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10688 if test $ac_cv_c_bigendian = unknown; then
10689 # See if sys/param.h defines the BYTE_ORDER macro.
10690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10691 /* end confdefs.h. */
10692 #include <sys/types.h>
10693 #include <sys/param.h>
10698 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
10699 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
10701 bogus endian macros
10708 if ac_fn_c_try_compile "$LINENO"; then :
10709 # It does; now see whether it defined to BIG_ENDIAN or not.
10710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10711 /* end confdefs.h. */
10712 #include <sys/types.h>
10713 #include <sys/param.h>
10718 #if BYTE_ORDER != BIG_ENDIAN
10726 if ac_fn_c_try_compile "$LINENO"; then :
10727 ac_cv_c_bigendian=yes
10729 ac_cv_c_bigendian=no
10731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10735 if test $ac_cv_c_bigendian = unknown; then
10736 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
10737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10738 /* end confdefs.h. */
10739 #include <limits.h>
10744 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
10745 bogus endian macros
10752 if ac_fn_c_try_compile "$LINENO"; then :
10753 # It does; now see whether it defined to _BIG_ENDIAN or not.
10754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10755 /* end confdefs.h. */
10756 #include <limits.h>
10761 #ifndef _BIG_ENDIAN
10769 if ac_fn_c_try_compile "$LINENO"; then :
10770 ac_cv_c_bigendian=yes
10772 ac_cv_c_bigendian=no
10774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10778 if test $ac_cv_c_bigendian = unknown; then
10779 # Compile a test program.
10780 if test "$cross_compiling" = yes; then :
10781 # Try to guess by grepping values from an object file.
10782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10783 /* end confdefs.h. */
10784 short int ascii_mm[] =
10785 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
10786 short int ascii_ii[] =
10787 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
10788 int use_ascii (int i) {
10789 return ascii_mm[i] + ascii_ii[i];
10791 short int ebcdic_ii[] =
10792 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
10793 short int ebcdic_mm[] =
10794 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
10795 int use_ebcdic (int i) {
10796 return ebcdic_mm[i] + ebcdic_ii[i];
10803 return use_ascii (foo) == use_ebcdic (foo);
10808 if ac_fn_c_try_compile "$LINENO"; then :
10809 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
10810 ac_cv_c_bigendian=yes
10812 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
10813 if test "$ac_cv_c_bigendian" = unknown; then
10814 ac_cv_c_bigendian=no
10816 # finding both strings is unlikely to happen, but who knows?
10817 ac_cv_c_bigendian=unknown
10821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10824 /* end confdefs.h. */
10825 $ac_includes_default
10830 /* Are we little or big endian? From Harbison&Steele. */
10834 char c[sizeof (long int)];
10837 return u.c[sizeof (long int) - 1] == 1;
10843 if ac_fn_c_try_run "$LINENO"; then :
10844 ac_cv_c_bigendian=no
10846 ac_cv_c_bigendian=yes
10848 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10849 conftest.$ac_objext conftest.beam conftest.$ac_ext
10854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
10855 $as_echo "$ac_cv_c_bigendian" >&6; }
10856 case $ac_cv_c_bigendian in #(
10858 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
10864 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
10868 as_fn_error "unknown endianness
10869 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
10872 BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
10873 ASM_TYPES_HEADER=./asm_types.h
10875 echo "/* These defines are needed for the public ext2fs.h header file */" \
10877 if grep HAVE_SYS_TYPES_H confdefs.h > tmp_config.$$; then
10878 uniq tmp_config.$$ >> public_config.h
10880 echo "#undef HAVE_SYS_TYPES_H" >> public_config.h
10882 if grep WORDS_BIGENDIAN confdefs.h > tmp_config.$$; then
10883 uniq tmp_config.$$ >> public_config.h
10885 echo "#undef WORDS_BIGENDIAN" >> public_config.h
10887 rm -f tmp_config.$$
10888 PUBLIC_CONFIG_HEADER=./public_config.h
10890 for ac_header in inttypes.h
10892 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
10893 if test "x$ac_cv_header_inttypes_h" = x""yes; then :
10894 cat >>confdefs.h <<_ACEOF
10895 #define HAVE_INTTYPES_H 1
10902 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
10903 if test "x$ac_cv_type_intptr_t" = x""yes; then :
10905 cat >>confdefs.h <<_ACEOF
10906 #define HAVE_INTPTR_T 1
10912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat has a st_flags field" >&5
10913 $as_echo_n "checking whether struct stat has a st_flags field... " >&6; }
10914 if test "${e2fsprogs_cv_struct_st_flags+set}" = set; then :
10915 $as_echo_n "(cached) " >&6
10917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10918 /* end confdefs.h. */
10919 #include <sys/stat.h>
10923 struct stat stat; stat.st_flags = 0;
10928 if ac_fn_c_try_compile "$LINENO"; then :
10929 e2fsprogs_cv_struct_st_flags=yes
10931 e2fsprogs_cv_struct_st_flags=no
10933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags" >&5
10937 $as_echo "$e2fsprogs_cv_struct_st_flags" >&6; }
10938 if test "$e2fsprogs_cv_struct_st_flags" = yes; then
10939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether st_flags field is useful" >&5
10940 $as_echo_n "checking whether st_flags field is useful... " >&6; }
10941 if test "${e2fsprogs_cv_struct_st_flags_immut+set}" = set; then :
10942 $as_echo_n "(cached) " >&6
10944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10945 /* end confdefs.h. */
10946 #include <sys/stat.h>
10950 struct stat stat; stat.st_flags |= UF_IMMUTABLE;
10955 if ac_fn_c_try_compile "$LINENO"; then :
10956 e2fsprogs_cv_struct_st_flags_immut=yes
10958 e2fsprogs_cv_struct_st_flags_immut=no
10960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags_immut" >&5
10964 $as_echo "$e2fsprogs_cv_struct_st_flags_immut" >&6; }
10965 if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
10967 $as_echo "#define HAVE_STAT_FLAGS 1" >>confdefs.h
10971 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h>
10972 #include <sys/socket.h>
10974 if test "x$ac_cv_member_struct_sockaddr_sa_len" = x""yes; then :
10976 cat >>confdefs.h <<_ACEOF
10977 #define HAVE_SA_LEN 1
10982 if test -n "$BLKID_CMT"; then
10983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing blkid_probe_all" >&5
10984 $as_echo_n "checking for library containing blkid_probe_all... " >&6; }
10985 if test "${ac_cv_search_blkid_probe_all+set}" = set; then :
10986 $as_echo_n "(cached) " >&6
10988 ac_func_search_save_LIBS=$LIBS
10989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10990 /* end confdefs.h. */
10992 /* Override any GCC internal prototype to avoid an error.
10993 Use char because int might match the return type of a GCC
10994 builtin and then its argument prototype would still apply. */
10998 char blkid_probe_all ();
11002 return blkid_probe_all ();
11007 for ac_lib in '' blkid; do
11008 if test -z "$ac_lib"; then
11009 ac_res="none required"
11012 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11014 if ac_fn_c_try_link "$LINENO"; then :
11015 ac_cv_search_blkid_probe_all=$ac_res
11017 rm -f core conftest.err conftest.$ac_objext \
11019 if test "${ac_cv_search_blkid_probe_all+set}" = set; then :
11023 if test "${ac_cv_search_blkid_probe_all+set}" = set; then :
11026 ac_cv_search_blkid_probe_all=no
11028 rm conftest.$ac_ext
11029 LIBS=$ac_func_search_save_LIBS
11031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_blkid_probe_all" >&5
11032 $as_echo "$ac_cv_search_blkid_probe_all" >&6; }
11033 ac_res=$ac_cv_search_blkid_probe_all
11034 if test "$ac_res" != no; then :
11035 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11040 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
11042 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11043 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11044 eval as_val=\$$as_ac_var
11045 if test "x$as_val" = x""yes; then :
11046 cat >>confdefs.h <<_ACEOF
11047 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
11055 $as_echo_n "checking for socket in -lsocket... " >&6; }
11056 if test "${ac_cv_lib_socket_socket+set}" = set; then :
11057 $as_echo_n "(cached) " >&6
11059 ac_check_lib_save_LIBS=$LIBS
11060 LIBS="-lsocket $LIBS"
11061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11062 /* end confdefs.h. */
11064 /* Override any GCC internal prototype to avoid an error.
11065 Use char because int might match the return type of a GCC
11066 builtin and then its argument prototype would still apply. */
11079 if ac_fn_c_try_link "$LINENO"; then :
11080 ac_cv_lib_socket_socket=yes
11082 ac_cv_lib_socket_socket=no
11084 rm -f core conftest.err conftest.$ac_objext \
11085 conftest$ac_exeext conftest.$ac_ext
11086 LIBS=$ac_check_lib_save_LIBS
11088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
11089 $as_echo "$ac_cv_lib_socket_socket" >&6; }
11090 if test "x$ac_cv_lib_socket_socket" = x""yes; then :
11091 SOCKET_LIB=-lsocket
11095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for db_env_create in -ldb-4.1" >&5
11096 $as_echo_n "checking for db_env_create in -ldb-4.1... " >&6; }
11097 if test "${ac_cv_lib_db_4_1_db_env_create+set}" = set; then :
11098 $as_echo_n "(cached) " >&6
11100 ac_check_lib_save_LIBS=$LIBS
11101 LIBS="-ldb-4.1 $LIBS"
11102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11103 /* end confdefs.h. */
11105 /* Override any GCC internal prototype to avoid an error.
11106 Use char because int might match the return type of a GCC
11107 builtin and then its argument prototype would still apply. */
11111 char db_env_create ();
11115 return db_env_create ();
11120 if ac_fn_c_try_link "$LINENO"; then :
11121 ac_cv_lib_db_4_1_db_env_create=yes
11123 ac_cv_lib_db_4_1_db_env_create=no
11125 rm -f core conftest.err conftest.$ac_objext \
11126 conftest$ac_exeext conftest.$ac_ext
11127 LIBS=$ac_check_lib_save_LIBS
11129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_db_4_1_db_env_create" >&5
11130 $as_echo "$ac_cv_lib_db_4_1_db_env_create" >&6; }
11131 if test "x$ac_cv_lib_db_4_1_db_env_create" = x""yes; then :
11134 $as_echo "#define HAVE_DB4 1" >>confdefs.h
11139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for db_env_create in -ldb-4.2" >&5
11140 $as_echo_n "checking for db_env_create in -ldb-4.2... " >&6; }
11141 if test "${ac_cv_lib_db_4_2_db_env_create+set}" = set; then :
11142 $as_echo_n "(cached) " >&6
11144 ac_check_lib_save_LIBS=$LIBS
11145 LIBS="-ldb-4.2 $LIBS"
11146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11147 /* end confdefs.h. */
11149 /* Override any GCC internal prototype to avoid an error.
11150 Use char because int might match the return type of a GCC
11151 builtin and then its argument prototype would still apply. */
11155 char db_env_create ();
11159 return db_env_create ();
11164 if ac_fn_c_try_link "$LINENO"; then :
11165 ac_cv_lib_db_4_2_db_env_create=yes
11167 ac_cv_lib_db_4_2_db_env_create=no
11169 rm -f core conftest.err conftest.$ac_objext \
11170 conftest$ac_exeext conftest.$ac_ext
11171 LIBS=$ac_check_lib_save_LIBS
11173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_db_4_2_db_env_create" >&5
11174 $as_echo "$ac_cv_lib_db_4_2_db_env_create" >&6; }
11175 if test "x$ac_cv_lib_db_4_2_db_env_create" = x""yes; then :
11178 $as_echo "#define HAVE_DB4 1" >>confdefs.h
11183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for db_env_create in -ldb-4.3" >&5
11184 $as_echo_n "checking for db_env_create in -ldb-4.3... " >&6; }
11185 if test "${ac_cv_lib_db_4_3_db_env_create+set}" = set; then :
11186 $as_echo_n "(cached) " >&6
11188 ac_check_lib_save_LIBS=$LIBS
11189 LIBS="-ldb-4.3 $LIBS"
11190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11191 /* end confdefs.h. */
11193 /* Override any GCC internal prototype to avoid an error.
11194 Use char because int might match the return type of a GCC
11195 builtin and then its argument prototype would still apply. */
11199 char db_env_create ();
11203 return db_env_create ();
11208 if ac_fn_c_try_link "$LINENO"; then :
11209 ac_cv_lib_db_4_3_db_env_create=yes
11211 ac_cv_lib_db_4_3_db_env_create=no
11213 rm -f core conftest.err conftest.$ac_objext \
11214 conftest$ac_exeext conftest.$ac_ext
11215 LIBS=$ac_check_lib_save_LIBS
11217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_db_4_3_db_env_create" >&5
11218 $as_echo "$ac_cv_lib_db_4_3_db_env_create" >&6; }
11219 if test "x$ac_cv_lib_db_4_3_db_env_create" = x""yes; then :
11222 $as_echo "#define HAVE_DB4 1" >>confdefs.h
11227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for db_env_create in -ldb-4.5" >&5
11228 $as_echo_n "checking for db_env_create in -ldb-4.5... " >&6; }
11229 if test "${ac_cv_lib_db_4_5_db_env_create+set}" = set; then :
11230 $as_echo_n "(cached) " >&6
11232 ac_check_lib_save_LIBS=$LIBS
11233 LIBS="-ldb-4.5 $LIBS"
11234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11235 /* end confdefs.h. */
11237 /* Override any GCC internal prototype to avoid an error.
11238 Use char because int might match the return type of a GCC
11239 builtin and then its argument prototype would still apply. */
11243 char db_env_create ();
11247 return db_env_create ();
11252 if ac_fn_c_try_link "$LINENO"; then :
11253 ac_cv_lib_db_4_5_db_env_create=yes
11255 ac_cv_lib_db_4_5_db_env_create=no
11257 rm -f core conftest.err conftest.$ac_objext \
11258 conftest$ac_exeext conftest.$ac_ext
11259 LIBS=$ac_check_lib_save_LIBS
11261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_db_4_5_db_env_create" >&5
11262 $as_echo "$ac_cv_lib_db_4_5_db_env_create" >&6; }
11263 if test "x$ac_cv_lib_db_4_5_db_env_create" = x""yes; then :
11266 $as_echo "#define HAVE_DB4 1" >>confdefs.h
11271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for db_env_create in -ldb-4.6" >&5
11272 $as_echo_n "checking for db_env_create in -ldb-4.6... " >&6; }
11273 if test "${ac_cv_lib_db_4_6_db_env_create+set}" = set; then :
11274 $as_echo_n "(cached) " >&6
11276 ac_check_lib_save_LIBS=$LIBS
11277 LIBS="-ldb-4.6 $LIBS"
11278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11279 /* end confdefs.h. */
11281 /* Override any GCC internal prototype to avoid an error.
11282 Use char because int might match the return type of a GCC
11283 builtin and then its argument prototype would still apply. */
11287 char db_env_create ();
11291 return db_env_create ();
11296 if ac_fn_c_try_link "$LINENO"; then :
11297 ac_cv_lib_db_4_6_db_env_create=yes
11299 ac_cv_lib_db_4_6_db_env_create=no
11301 rm -f core conftest.err conftest.$ac_objext \
11302 conftest$ac_exeext conftest.$ac_ext
11303 LIBS=$ac_check_lib_save_LIBS
11305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_db_4_6_db_env_create" >&5
11306 $as_echo "$ac_cv_lib_db_4_6_db_env_create" >&6; }
11307 if test "x$ac_cv_lib_db_4_6_db_env_create" = x""yes; then :
11310 $as_echo "#define HAVE_DB4 1" >>confdefs.h
11315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for db_env_create in -ldb-4.7" >&5
11316 $as_echo_n "checking for db_env_create in -ldb-4.7... " >&6; }
11317 if test "${ac_cv_lib_db_4_7_db_env_create+set}" = set; then :
11318 $as_echo_n "(cached) " >&6
11320 ac_check_lib_save_LIBS=$LIBS
11321 LIBS="-ldb-4.7 $LIBS"
11322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11323 /* end confdefs.h. */
11325 /* Override any GCC internal prototype to avoid an error.
11326 Use char because int might match the return type of a GCC
11327 builtin and then its argument prototype would still apply. */
11331 char db_env_create ();
11335 return db_env_create ();
11340 if ac_fn_c_try_link "$LINENO"; then :
11341 ac_cv_lib_db_4_7_db_env_create=yes
11343 ac_cv_lib_db_4_7_db_env_create=no
11345 rm -f core conftest.err conftest.$ac_objext \
11346 conftest$ac_exeext conftest.$ac_ext
11347 LIBS=$ac_check_lib_save_LIBS
11349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_db_4_7_db_env_create" >&5
11350 $as_echo "$ac_cv_lib_db_4_7_db_env_create" >&6; }
11351 if test "x$ac_cv_lib_db_4_7_db_env_create" = x""yes; then :
11354 $as_echo "#define HAVE_DB4 1" >>confdefs.h
11359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for db_env_create in -ldb-4.8" >&5
11360 $as_echo_n "checking for db_env_create in -ldb-4.8... " >&6; }
11361 if test "${ac_cv_lib_db_4_8_db_env_create+set}" = set; then :
11362 $as_echo_n "(cached) " >&6
11364 ac_check_lib_save_LIBS=$LIBS
11365 LIBS="-ldb-4.8 $LIBS"
11366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11367 /* end confdefs.h. */
11369 /* Override any GCC internal prototype to avoid an error.
11370 Use char because int might match the return type of a GCC
11371 builtin and then its argument prototype would still apply. */
11375 char db_env_create ();
11379 return db_env_create ();
11384 if ac_fn_c_try_link "$LINENO"; then :
11385 ac_cv_lib_db_4_8_db_env_create=yes
11387 ac_cv_lib_db_4_8_db_env_create=no
11389 rm -f core conftest.err conftest.$ac_objext \
11390 conftest$ac_exeext conftest.$ac_ext
11391 LIBS=$ac_check_lib_save_LIBS
11393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_db_4_8_db_env_create" >&5
11394 $as_echo "$ac_cv_lib_db_4_8_db_env_create" >&6; }
11395 if test "x$ac_cv_lib_db_4_8_db_env_create" = x""yes; then :
11398 $as_echo "#define HAVE_DB4 1" >>confdefs.h
11404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for optreset" >&5
11405 $as_echo_n "checking for optreset... " >&6; }
11406 if test "${ac_cv_have_optreset+set}" = set; then :
11407 $as_echo_n "(cached) " >&6
11409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11410 /* end confdefs.h. */
11411 #include <unistd.h>
11414 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11415 $EGREP "optreset" >/dev/null 2>&1; then :
11416 ac_cv_have_optreset=yes
11418 ac_cv_have_optreset=no
11423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_optreset" >&5
11424 $as_echo "$ac_cv_have_optreset" >&6; }
11425 if test $ac_cv_have_optreset = yes; then
11427 $as_echo "#define HAVE_OPTRESET 1" >>confdefs.h
11432 ac_fn_c_check_func "$LINENO" "sem_init" "ac_cv_func_sem_init"
11433 if test "x$ac_cv_func_sem_init" = x""yes; then :
11436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lpthread" >&5
11437 $as_echo_n "checking for sem_init in -lpthread... " >&6; }
11438 if test "${ac_cv_lib_pthread_sem_init+set}" = set; then :
11439 $as_echo_n "(cached) " >&6
11441 ac_check_lib_save_LIBS=$LIBS
11442 LIBS="-lpthread $LIBS"
11443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11444 /* end confdefs.h. */
11446 /* Override any GCC internal prototype to avoid an error.
11447 Use char because int might match the return type of a GCC
11448 builtin and then its argument prototype would still apply. */
11456 return sem_init ();
11461 if ac_fn_c_try_link "$LINENO"; then :
11462 ac_cv_lib_pthread_sem_init=yes
11464 ac_cv_lib_pthread_sem_init=no
11466 rm -f core conftest.err conftest.$ac_objext \
11467 conftest$ac_exeext conftest.$ac_ext
11468 LIBS=$ac_check_lib_save_LIBS
11470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_sem_init" >&5
11471 $as_echo "$ac_cv_lib_pthread_sem_init" >&6; }
11472 if test "x$ac_cv_lib_pthread_sem_init" = x""yes; then :
11473 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
11475 SEM_INIT_LIB=-lpthread
11477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lrt" >&5
11478 $as_echo_n "checking for sem_init in -lrt... " >&6; }
11479 if test "${ac_cv_lib_rt_sem_init+set}" = set; then :
11480 $as_echo_n "(cached) " >&6
11482 ac_check_lib_save_LIBS=$LIBS
11484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11485 /* end confdefs.h. */
11487 /* Override any GCC internal prototype to avoid an error.
11488 Use char because int might match the return type of a GCC
11489 builtin and then its argument prototype would still apply. */
11497 return sem_init ();
11502 if ac_fn_c_try_link "$LINENO"; then :
11503 ac_cv_lib_rt_sem_init=yes
11505 ac_cv_lib_rt_sem_init=no
11507 rm -f core conftest.err conftest.$ac_objext \
11508 conftest$ac_exeext conftest.$ac_ext
11509 LIBS=$ac_check_lib_save_LIBS
11511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sem_init" >&5
11512 $as_echo "$ac_cv_lib_rt_sem_init" >&6; }
11513 if test "x$ac_cv_lib_rt_sem_init" = x""yes; then :
11514 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
11518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lposix4" >&5
11519 $as_echo_n "checking for sem_init in -lposix4... " >&6; }
11520 if test "${ac_cv_lib_posix4_sem_init+set}" = set; then :
11521 $as_echo_n "(cached) " >&6
11523 ac_check_lib_save_LIBS=$LIBS
11524 LIBS="-lposix4 $LIBS"
11525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11526 /* end confdefs.h. */
11528 /* Override any GCC internal prototype to avoid an error.
11529 Use char because int might match the return type of a GCC
11530 builtin and then its argument prototype would still apply. */
11538 return sem_init ();
11543 if ac_fn_c_try_link "$LINENO"; then :
11544 ac_cv_lib_posix4_sem_init=yes
11546 ac_cv_lib_posix4_sem_init=no
11548 rm -f core conftest.err conftest.$ac_objext \
11549 conftest$ac_exeext conftest.$ac_ext
11550 LIBS=$ac_check_lib_save_LIBS
11552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sem_init" >&5
11553 $as_echo "$ac_cv_lib_posix4_sem_init" >&6; }
11554 if test "x$ac_cv_lib_posix4_sem_init" = x""yes; then :
11555 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
11557 SEM_INIT_LIB=-lposix4
11566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unified diff option" >&5
11567 $as_echo_n "checking for unified diff option... " >&6; }
11568 if diff -u $0 $0 > /dev/null 2>&1 ; then
11573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNI_DIFF_OPTS" >&5
11574 $as_echo "$UNI_DIFF_OPTS" >&6; }
11579 $as_echo "#define HAVE_EXT2_IOCTLS 1" >>confdefs.h
11599 linux* | gnu* | k*bsd*-gnu)
11600 if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
11602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, root_prefix defaults to ''" >&5
11603 $as_echo "On $host_os systems, root_prefix defaults to ''" >&6; }
11608 linux* | gnu* | k*bsd*-gnu)
11609 if test "$prefix" = NONE ; then
11611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, prefix defaults to /usr" >&5
11612 $as_echo "On $host_os systems, prefix defaults to /usr" >&6; }
11613 if test "$mandir" = '${prefix}/man' ; then
11614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ...and mandir defaults to /usr/share/man" >&5
11615 $as_echo "...and mandir defaults to /usr/share/man" >&6; }
11616 mandir=/usr/share/man
11621 if test "$root_prefix" = NONE ; then
11622 if test "$prefix" = NONE ; then
11623 root_prefix="$ac_default_prefix"
11625 root_prefix="$prefix"
11627 root_bindir=$bindir
11628 root_sbindir=$sbindir
11629 root_libdir=$libdir
11630 root_sysconfdir=$sysconfdir
11632 root_bindir='${root_prefix}/bin'
11633 root_sbindir='${root_prefix}/sbin'
11634 root_libdir='${root_prefix}/lib'
11635 root_sysconfdir='${root_prefix}/etc'
11637 if test "$bindir" != '${exec_prefix}/bin'; then
11638 root_bindir=$bindir
11639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_bindir to $root_bindir" >&5
11640 $as_echo "Setting root_bindir to $root_bindir" >&6; }
11642 if test "$sbindir" != '${exec_prefix}/sbin'; then
11643 root_sbindir=$sbindir
11644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sbindir to $root_sbindir" >&5
11645 $as_echo "Setting root_sbindir to $root_sbindir" >&6; }
11647 if test "$libdir" != '${exec_prefix}/lib'; then
11648 root_libdir=$libdir
11649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_libdir to $root_libdir" >&5
11650 $as_echo "Setting root_libdir to $root_libdir" >&6; }
11652 if test "$sysconfdir" != '${prefix}/etc'; then
11653 root_sysconfdir=$sysconfdir
11654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sysconfdir to $root_sysconfdir" >&5
11655 $as_echo "Setting root_sysconfdir to $root_sysconfdir" >&6; }
11663 # Check whether --with-multiarch was given.
11664 if test "${with_multiarch+set}" = set; then :
11665 withval=$with_multiarch; libdir=$libdir/$withval
11666 root_libdir=$root_libdir/$withval
11669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linker accepts -static" >&5
11670 $as_echo_n "checking whether linker accepts -static... " >&6; }
11671 if test "${ac_cv_e2fsprogs_use_static+set}" = set; then :
11672 $as_echo_n "(cached) " >&6
11674 SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static"
11675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11676 /* end confdefs.h. */
11686 if ac_fn_c_try_link "$LINENO"; then :
11687 ac_cv_e2fsprogs_use_static=yes
11689 ac_cv_e2fsprogs_use_static=no
11691 rm -f core conftest.err conftest.$ac_objext \
11692 conftest$ac_exeext conftest.$ac_ext
11693 LDFLAGS=$SAVE_LDFLAGS
11698 ac_cv_e2fsprogs_use_static=no
11701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_e2fsprogs_use_static" >&5
11702 $as_echo "$ac_cv_e2fsprogs_use_static" >&6; }
11704 if test $ac_cv_e2fsprogs_use_static = yes; then
11705 LDFLAG_STATIC=-static
11710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using Apple Darwin / GNU libintl workaround" >&5
11711 $as_echo "Using Apple Darwin / GNU libintl workaround" >&6; }
11713 $as_echo "#define _INTL_REDIRECT_MACROS 1" >>confdefs.h
11717 SS_DIR=`cd ${srcdir}/lib/ss; pwd`
11718 ET_DIR=`cd ${srcdir}/lib/et; pwd`
11721 if test "$cross_compiling" = yes ; then
11724 DO_TEST_SUITE=check
11727 INCLUDES='-I. -I$(top_builddir)/lib -I$(top_srcdir)/lib'
11728 if test -n "$CPPFLAGS" ; then
11729 INCLUDES="$INCLUDES $CPPFLAGS"
11731 if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
11732 INCLUDES=$INCLUDES' -I$(top_builddir)/intl -I$(top_srcdir)/intl'
11735 if test $cross_compiling = no; then
11736 BUILD_CFLAGS="$CFLAGS"
11737 BUILD_LDFLAGS="$LDFLAGS"
11744 test -d lib || mkdir lib
11745 test -d include || mkdir include
11746 test -d include/linux || mkdir include/linux
11747 test -d include/asm || mkdir include/asm
11748 for i in MCONFIG Makefile e2fsprogs.spec \
11749 e2fsprogs-RHEL-6.spec \
11750 e2fsprogs-SUSE_LINUX-11.spec \
11751 util/Makefile util/subst.conf util/gen-tarball util/install-symlink \
11752 lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \
11753 lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \
11754 lib/uuid/Makefile lib/uuid/uuid_types.h \
11755 lib/blkid/Makefile lib/blkid/blkid_types.h lib/quota/Makefile \
11756 lib/ss/ss.pc lib/uuid/uuid.pc lib/et/com_err.pc \
11757 lib/e2p/e2p.pc lib/blkid/blkid.pc lib/ext2fs/ext2fs.pc \
11758 misc/Makefile ext2ed/Makefile e2fsck/Makefile \
11759 debugfs/Makefile tests/Makefile tests/progs/Makefile \
11760 resize/Makefile doc/Makefile intl/Makefile \
11761 intl/libgnuintl.h po/Makefile.in ; do
11762 if test -d `dirname ${srcdir}/$i` ; then
11763 outlist="$outlist $i"
11766 ac_config_files="$ac_config_files $outlist"
11768 cat >confcache <<\_ACEOF
11769 # This file is a shell script that caches the results of configure
11770 # tests run on this system so they can be shared between configure
11771 # scripts and configure runs, see configure's option --config-cache.
11772 # It is not useful on other systems. If it contains results you don't
11773 # want to keep, you may remove or edit it.
11775 # config.status only pays attention to the cache file if you give it
11776 # the --recheck option to rerun configure.
11778 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11779 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11780 # following values.
11784 # The following way of writing the cache mishandles newlines in values,
11785 # but we know of no workaround that is simple, portable, and efficient.
11786 # So, we kill variables containing newlines.
11787 # Ultrix sh set writes to stderr and can't be redirected directly,
11788 # and sets the high bit in the cache file unless we assign to the vars.
11790 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11791 eval ac_val=\$$ac_var
11795 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11796 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11799 _ | IFS | as_nl) ;; #(
11800 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11801 *) { eval $ac_var=; unset $ac_var;} ;;
11807 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11808 *${as_nl}ac_space=\ *)
11809 # `set' does not quote correctly, so add quotes: double-quote
11810 # substitution turns \\\\ into \\, and sed turns \\ into \.
11813 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11816 # `set' quotes correctly as required by POSIX, so do not add quotes.
11817 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11826 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11828 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11830 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11831 if test -w "$cache_file"; then
11832 test "x$cache_file" != "x/dev/null" &&
11833 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11834 $as_echo "$as_me: updating cache $cache_file" >&6;}
11835 cat confcache >$cache_file
11837 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11838 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11843 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11844 # Let make expand exec_prefix.
11845 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11847 DEFS=-DHAVE_CONFIG_H
11851 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11852 # 1. Remove the extension, and $U if already installed.
11853 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11854 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11855 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11856 # will be set to the directory where LIBOBJS objects are built.
11857 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11858 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11860 LIBOBJS=$ac_libobjs
11862 LTLIBOBJS=$ac_ltlibobjs
11867 : ${CONFIG_STATUS=./config.status}
11869 ac_clean_files_save=$ac_clean_files
11870 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11871 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11872 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11874 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11876 # Generated by $as_me.
11877 # Run this file to recreate the current configuration.
11878 # Compiler output produced by configure, useful for debugging
11879 # configure, is in config.log if it exists.
11882 ac_cs_recheck=false
11885 SHELL=\${CONFIG_SHELL-$SHELL}
11888 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11889 ## -------------------- ##
11890 ## M4sh Initialization. ##
11891 ## -------------------- ##
11893 # Be more Bourne compatible
11894 DUALCASE=1; export DUALCASE # for MKS sh
11895 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11898 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11899 # is contrary to our usage. Disable this feature.
11900 alias -g '${1+"$@"}'='"$@"'
11901 setopt NO_GLOB_SUBST
11903 case `(set -o) 2>/dev/null` in #(
11915 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11916 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11917 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11918 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11919 # Prefer a ksh shell builtin over an external printf program on Solaris,
11920 # but without wasting forks for bash or zsh.
11921 if test -z "$BASH_VERSION$ZSH_VERSION" \
11922 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11923 as_echo='print -r --'
11924 as_echo_n='print -rn --'
11925 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11926 as_echo='printf %s\n'
11927 as_echo_n='printf %s'
11929 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11930 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11931 as_echo_n='/usr/ucb/echo -n'
11933 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11934 as_echo_n_body='eval
11938 expr "X$arg" : "X\\(.*\\)$as_nl";
11939 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11941 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11943 export as_echo_n_body
11944 as_echo_n='sh -c $as_echo_n_body as_echo'
11946 export as_echo_body
11947 as_echo='sh -c $as_echo_body as_echo'
11950 # The user is always right.
11951 if test "${PATH_SEPARATOR+set}" != set; then
11953 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11954 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11961 # We need space, tab and new line, in precisely that order. Quoting is
11962 # there to prevent editors from complaining about space-tab.
11963 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11964 # splitting by setting IFS to empty value.)
11967 # Find who we are. Look in the path if we contain no directory separator.
11969 *[\\/]* ) as_myself=$0 ;;
11970 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11971 for as_dir in $PATH
11974 test -z "$as_dir" && as_dir=.
11975 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11981 # We did not find ourselves, most probably we were run as `sh COMMAND'
11982 # in which case we are not to be found in the path.
11983 if test "x$as_myself" = x; then
11986 if test ! -f "$as_myself"; then
11987 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11991 # Unset variables that we do not need and which cause bugs (e.g. in
11992 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11993 # suppresses any "Segmentation fault" message there. '((' could
11994 # trigger a bug in pdksh 5.2.14.
11995 for as_var in BASH_ENV ENV MAIL MAILPATH
11996 do eval test x\${$as_var+set} = xset \
11997 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12010 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12013 # as_fn_error ERROR [LINENO LOG_FD]
12014 # ---------------------------------
12015 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12016 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12017 # script with status $?, using 1 if that was 0.
12020 as_status=$?; test $as_status -eq 0 && as_status=1
12022 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12023 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
12025 $as_echo "$as_me: error: $1" >&2
12026 as_fn_exit $as_status
12030 # as_fn_set_status STATUS
12031 # -----------------------
12032 # Set $? to STATUS, without forking.
12033 as_fn_set_status ()
12036 } # as_fn_set_status
12038 # as_fn_exit STATUS
12039 # -----------------
12040 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12044 as_fn_set_status $1
12050 # Portably unset VAR.
12053 { eval $1=; unset $1;}
12055 as_unset=as_fn_unset
12056 # as_fn_append VAR VALUE
12057 # ----------------------
12058 # Append the text in VALUE to the end of the definition contained in VAR. Take
12059 # advantage of any shell optimizations that allow amortized linear growth over
12060 # repeated appends, instead of the typical quadratic growth present in naive
12062 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12063 eval 'as_fn_append ()
12074 # as_fn_arith ARG...
12075 # ------------------
12076 # Perform arithmetic evaluation on the ARGs, and store the result in the
12077 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12078 # must be portable across $(()) and expr.
12079 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12080 eval 'as_fn_arith ()
12087 as_val=`expr "$@" || test $? -eq 1`
12092 if expr a : '\(a\)' >/dev/null 2>&1 &&
12093 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12099 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12100 as_basename=basename
12105 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12111 as_me=`$as_basename -- "$0" ||
12112 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12113 X"$0" : 'X\(//\)$' \| \
12114 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12116 sed '/^.*\/\([^/][^/]*\)\/*$/{
12130 # Avoid depending upon Character Ranges.
12131 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12132 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12133 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12134 as_cr_digits='0123456789'
12135 as_cr_alnum=$as_cr_Letters$as_cr_digits
12137 ECHO_C= ECHO_N= ECHO_T=
12138 case `echo -n x` in #(((((
12140 case `echo 'xy\c'` in
12141 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12143 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
12150 rm -f conf$$ conf$$.exe conf$$.file
12151 if test -d conf$$.dir; then
12152 rm -f conf$$.dir/conf$$.file
12155 mkdir conf$$.dir 2>/dev/null
12157 if (echo >conf$$.file) 2>/dev/null; then
12158 if ln -s conf$$.file conf$$ 2>/dev/null; then
12160 # ... but there are two gotchas:
12161 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12162 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12163 # In both cases, we have to default to `cp -p'.
12164 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12166 elif ln conf$$.file conf$$ 2>/dev/null; then
12174 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12175 rmdir conf$$.dir 2>/dev/null
12180 # Create "$as_dir" as a directory, including parents if necessary.
12185 -*) as_dir=./$as_dir;;
12187 test -d "$as_dir" || eval $as_mkdir_p || {
12191 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12192 *) as_qdir=$as_dir;;
12194 as_dirs="'$as_qdir' $as_dirs"
12195 as_dir=`$as_dirname -- "$as_dir" ||
12196 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12197 X"$as_dir" : 'X\(//\)[^/]' \| \
12198 X"$as_dir" : 'X\(//\)$' \| \
12199 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12200 $as_echo X"$as_dir" |
12201 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12205 /^X\(\/\/\)[^/].*/{
12218 test -d "$as_dir" && break
12220 test -z "$as_dirs" || eval "mkdir $as_dirs"
12221 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
12225 if mkdir -p . 2>/dev/null; then
12226 as_mkdir_p='mkdir -p "$as_dir"'
12228 test -d ./-p && rmdir ./-p
12232 if test -x / >/dev/null 2>&1; then
12233 as_test_x='test -x'
12235 if ls -dL / >/dev/null 2>&1; then
12242 if test -d "$1"; then
12248 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
12249 ???[sx]*):;;*)false;;esac;fi
12253 as_executable_p=$as_test_x
12255 # Sed expression to map a string onto a valid CPP name.
12256 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12258 # Sed expression to map a string onto a valid variable name.
12259 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12263 ## ----------------------------------- ##
12264 ## Main body of $CONFIG_STATUS script. ##
12265 ## ----------------------------------- ##
12267 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12269 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12270 # Save the log message, to keep $0 and so on meaningful, and to
12271 # report actual input values of CONFIG_FILES etc. instead of their
12272 # values after options handling.
12274 This file was extended by $as_me, which was
12275 generated by GNU Autoconf 2.65. Invocation command line was
12277 CONFIG_FILES = $CONFIG_FILES
12278 CONFIG_HEADERS = $CONFIG_HEADERS
12279 CONFIG_LINKS = $CONFIG_LINKS
12280 CONFIG_COMMANDS = $CONFIG_COMMANDS
12283 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12288 case $ac_config_files in *"
12289 "*) set x $ac_config_files; shift; ac_config_files=$*;;
12292 case $ac_config_headers in *"
12293 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12297 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12298 # Files that config.status was made for.
12299 config_files="$ac_config_files"
12300 config_headers="$ac_config_headers"
12301 config_commands="$ac_config_commands"
12305 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12307 \`$as_me' instantiates files and other configuration actions
12308 from templates according to the current configuration. Unless the files
12309 and actions are specified as TAGs, all are instantiated by default.
12311 Usage: $0 [OPTION]... [TAG]...
12313 -h, --help print this help, then exit
12314 -V, --version print version number and configuration settings, then exit
12315 --config print configuration, then exit
12316 -q, --quiet, --silent
12317 do not print progress messages
12318 -d, --debug don't remove temporary files
12319 --recheck update $as_me by reconfiguring in the same conditions
12320 --file=FILE[:TEMPLATE]
12321 instantiate the configuration file FILE
12322 --header=FILE[:TEMPLATE]
12323 instantiate the configuration header FILE
12325 Configuration files:
12328 Configuration headers:
12331 Configuration commands:
12334 Report bugs to the package provider."
12337 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12338 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12341 configured by $0, generated by GNU Autoconf 2.65,
12342 with options \\"\$ac_cs_config\\"
12344 Copyright (C) 2009 Free Software Foundation, Inc.
12345 This config.status script is free software; the Free Software Foundation
12346 gives unlimited permission to copy, distribute and modify it."
12352 test -n "\$AWK" || AWK=awk
12355 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12356 # The default lists apply if the user does not specify any file.
12362 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12363 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12374 # Handling of the options.
12375 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12377 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12378 $as_echo "$ac_cs_version"; exit ;;
12379 --config | --confi | --conf | --con | --co | --c )
12380 $as_echo "$ac_cs_config"; exit ;;
12381 --debug | --debu | --deb | --de | --d | -d )
12383 --file | --fil | --fi | --f )
12386 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12388 as_fn_append CONFIG_FILES " '$ac_optarg'"
12389 ac_need_defaults=false;;
12390 --header | --heade | --head | --hea )
12393 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12395 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12396 ac_need_defaults=false;;
12398 # Conflict between --help and --header
12399 as_fn_error "ambiguous option: \`$1'
12400 Try \`$0 --help' for more information.";;
12401 --help | --hel | -h )
12402 $as_echo "$ac_cs_usage"; exit ;;
12403 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12404 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12407 # This is an error.
12408 -*) as_fn_error "unrecognized option: \`$1'
12409 Try \`$0 --help' for more information." ;;
12411 *) as_fn_append ac_config_targets " $1"
12412 ac_need_defaults=false ;;
12418 ac_configure_extra_args=
12420 if $ac_cs_silent; then
12422 ac_configure_extra_args="$ac_configure_extra_args --silent"
12426 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12427 if \$ac_cs_recheck; then
12428 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12430 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12431 CONFIG_SHELL='$SHELL'
12432 export CONFIG_SHELL
12437 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12441 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12442 ## Running $as_me. ##
12448 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12452 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
12453 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
12455 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
12456 # Capture the value of LINGUAS because we need it to compute CATALOGS.
12457 LINGUAS="${LINGUAS-%UNSET%}"
12462 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12464 # Handling of arguments.
12465 for ac_config_target in $ac_config_targets
12467 case $ac_config_target in
12468 "lib/config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/config.h" ;;
12469 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
12470 "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;;
12472 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12477 # If the user did not use the arguments to specify the items to instantiate,
12478 # then the envvar interface is used. Set only those that are not.
12479 # We use the long form for the default assignment because of an extremely
12480 # bizarre bug on SunOS 4.1.3.
12481 if $ac_need_defaults; then
12482 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12483 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12484 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12487 # Have a temporary directory for convenience. Make it in the build tree
12488 # simply because there is no reason against having it here, and in addition,
12489 # creating and moving files from /tmp can sometimes cause problems.
12490 # Hook for its removal unless debugging.
12491 # Note that there is a small window in which the directory will not be cleaned:
12492 # after its creation but before its name has been assigned to `$tmp'.
12496 trap 'exit_status=$?
12497 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
12499 trap 'as_fn_exit 1' 1 2 13 15
12501 # Create a (secure) tmp directory for tmp files.
12504 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12505 test -n "$tmp" && test -d "$tmp"
12508 tmp=./conf$$-$RANDOM
12509 (umask 077 && mkdir "$tmp")
12510 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
12512 # Set up the scripts for CONFIG_FILES section.
12513 # No need to generate them if there are no CONFIG_FILES.
12514 # This happens for instance with `./config.status config.h'.
12515 if test -n "$CONFIG_FILES"; then
12517 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
12518 ac_cs_awk_getline=:
12519 ac_cs_awk_pipe_init=
12520 ac_cs_awk_read_file='
12521 while ((getline aline < (F[key])) > 0)
12524 ac_cs_awk_pipe_fini=
12526 ac_cs_awk_getline=false
12527 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
12528 ac_cs_awk_read_file='
12530 print "cat " F[key] " &&"
12531 '$ac_cs_awk_pipe_init
12532 # The final `:' finishes the AND list.
12533 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
12535 ac_cr=`echo X | tr X '\015'`
12536 # On cygwin, bash can eat \r inside `` if the user requested igncr.
12537 # But we know of no other shell where ac_cr would be empty at this
12538 # point, so we can use a bashism as a fallback.
12539 if test "x$ac_cr" = x; then
12540 eval ac_cr=\$\'\\r\'
12542 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12543 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12546 ac_cs_awk_cr=$ac_cr
12549 echo 'BEGIN {' >"$tmp/subs1.awk" &&
12552 # Create commands to substitute file output variables.
12554 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
12555 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
12556 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
12559 } >conf$$files.sh &&
12560 . ./conf$$files.sh ||
12561 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
12562 rm -f conf$$files.sh
12565 echo "cat >conf$$subs.awk <<_ACEOF" &&
12566 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12568 } >conf$$subs.sh ||
12569 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
12570 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
12572 for ac_last_try in false false false false false :; do
12573 . ./conf$$subs.sh ||
12574 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
12576 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12577 if test $ac_delim_n = $ac_delim_num; then
12579 elif $ac_last_try; then
12580 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
12582 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12585 rm -f conf$$subs.sh
12587 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12588 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
12592 s/^/S["/; s/!.*/"]=/
12602 s/\(.\{148\}\)..*/\1/
12604 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12609 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12616 s/\(.\{148\}\)..*/\1/
12618 s/["\\]/\\&/g; s/^/"/; s/$/"/
12622 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12627 ' <conf$$subs.awk | sed '
12632 ' >>$CONFIG_STATUS || ac_write_fail=1
12633 rm -f conf$$subs.awk
12634 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12636 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
12637 for (key in S) S_is_set[key] = 1
12639 \$ac_cs_awk_pipe_init
12643 nfields = split(line, field, "@")
12645 len = length(field[1])
12646 for (i = 2; i < nfields; i++) {
12648 keylen = length(key)
12649 if (S_is_set[key]) {
12651 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12652 len += length(value) + length(field[++i])
12657 if (nfields == 3 && !substed) {
12659 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
12660 \$ac_cs_awk_read_file
12666 \$ac_cs_awk_pipe_fini
12669 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12670 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12671 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12674 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
12675 || as_fn_error "could not setup config files machinery" "$LINENO" 5
12678 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12679 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12680 # trailing colons and then remove the whole line if VPATH becomes empty
12681 # (actually we leave an empty line to preserve line numbers).
12682 if test "x$srcdir" = x.; then
12683 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12684 s/:*\$(srcdir):*/:/
12685 s/:*\${srcdir}:*/:/
12687 s/^\([^=]*=[ ]*\):*/\1/
12693 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12694 fi # test -n "$CONFIG_FILES"
12696 # Set up the scripts for CONFIG_HEADERS section.
12697 # No need to generate them if there are no CONFIG_HEADERS.
12698 # This happens for instance with `./config.status Makefile'.
12699 if test -n "$CONFIG_HEADERS"; then
12700 cat >"$tmp/defines.awk" <<\_ACAWK ||
12704 # Transform confdefs.h into an awk script `defines.awk', embedded as
12705 # here-document in config.status, that substitutes the proper values into
12706 # config.h.in to produce config.h.
12708 # Create a delimiter string that does not exist in confdefs.h, to ease
12709 # handling of long lines.
12711 for ac_last_try in false false :; do
12712 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
12713 if test -z "$ac_t"; then
12715 elif $ac_last_try; then
12716 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
12718 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12722 # For the awk script, D is an array of macro values keyed by name,
12723 # likewise P contains macro parameters if any. Preserve backslash
12724 # newline sequences.
12726 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12728 s/.\{148\}/&'"$ac_delim"'/g
12731 s/^[ ]*#[ ]*define[ ][ ]*/ /
12738 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12740 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12744 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12745 D["\1"]=" \3\\\\\\n"\\/p
12747 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12752 s/.\{148\}/&'"$ac_delim"'/g
12757 s/["\\]/\\&/g; s/^/"/; s/$/"/p
12760 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12762 ' <confdefs.h | sed '
12763 s/'"$ac_delim"'/"\\\
12764 "/g' >>$CONFIG_STATUS || ac_write_fail=1
12766 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12767 for (key in D) D_is_set[key] = 1
12770 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12772 split(line, arg, " ")
12773 if (arg[1] == "#") {
12777 defundef = substr(arg[1], 2)
12780 split(mac1, mac2, "(") #)
12782 prefix = substr(line, 1, index(line, defundef) - 1)
12783 if (D_is_set[macro]) {
12784 # Preserve the white space surrounding the "#".
12785 print prefix "define", macro P[macro] D[macro]
12788 # Replace #undef with comments. This is necessary, for example,
12789 # in the case of _POSIX_SOURCE, which is predefined and required
12790 # on some systems where configure will not decide to define it.
12791 if (defundef == "undef") {
12792 print "/*", prefix defundef, macro, "*/"
12800 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12801 as_fn_error "could not setup config headers machinery" "$LINENO" 5
12802 fi # test -n "$CONFIG_HEADERS"
12805 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
12810 :[FHLC]) ac_mode=$ac_tag; continue;;
12812 case $ac_mode$ac_tag in
12814 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
12815 :[FH]-) ac_tag=-:-;;
12816 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12833 -) ac_f="$tmp/stdin";;
12834 *) # Look for the file first in the build tree, then in the source tree
12835 # (if the path is not absolute). The absolute path cannot be DOS-style,
12836 # because $ac_f cannot contain `:'.
12840 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12842 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12844 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12845 as_fn_append ac_file_inputs " '$ac_f'"
12848 # Let's still pretend it is `configure' which instantiates (i.e., don't
12849 # use $as_me), people would be surprised to read:
12850 # /* config.h. Generated by config.status. */
12851 configure_input='Generated from '`
12852 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12854 if test x"$ac_file" != x-; then
12855 configure_input="$ac_file. $configure_input"
12856 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12857 $as_echo "$as_me: creating $ac_file" >&6;}
12859 # Neutralize special characters interpreted by sed in replacement strings.
12860 case $configure_input in #(
12861 *\&* | *\|* | *\\* )
12862 ac_sed_conf_input=`$as_echo "$configure_input" |
12863 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12864 *) ac_sed_conf_input=$configure_input;;
12868 *:-:* | *:-) cat >"$tmp/stdin" \
12869 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
12874 ac_dir=`$as_dirname -- "$ac_file" ||
12875 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12876 X"$ac_file" : 'X\(//\)[^/]' \| \
12877 X"$ac_file" : 'X\(//\)$' \| \
12878 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12879 $as_echo X"$ac_file" |
12880 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12884 /^X\(\/\/\)[^/].*/{
12897 as_dir="$ac_dir"; as_fn_mkdir_p
12901 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12903 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12904 # A ".." for each directory in $ac_dir_suffix.
12905 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12906 case $ac_top_builddir_sub in
12907 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12908 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12911 ac_abs_top_builddir=$ac_pwd
12912 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12913 # for backward compatibility:
12914 ac_top_builddir=$ac_top_build_prefix
12917 .) # We are building in place.
12919 ac_top_srcdir=$ac_top_builddir_sub
12920 ac_abs_top_srcdir=$ac_pwd ;;
12921 [\\/]* | ?:[\\/]* ) # Absolute name.
12922 ac_srcdir=$srcdir$ac_dir_suffix;
12923 ac_top_srcdir=$srcdir
12924 ac_abs_top_srcdir=$srcdir ;;
12925 *) # Relative name.
12926 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12927 ac_top_srcdir=$ac_top_build_prefix$srcdir
12928 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12930 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12940 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12941 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12945 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12946 # If the template does not know about datarootdir, expand it.
12947 # FIXME: This hack should be removed a few years after 2.60.
12948 ac_datarootdir_hack=; ac_datarootdir_seen=
12959 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12960 *datarootdir*) ac_datarootdir_seen=yes;;
12961 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12962 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12963 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12965 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12966 ac_datarootdir_hack='
12967 s&@datadir@&$datadir&g
12968 s&@docdir@&$docdir&g
12969 s&@infodir@&$infodir&g
12970 s&@localedir@&$localedir&g
12971 s&@mandir@&$mandir&g
12972 s&\\\${datarootdir}&$datarootdir&g' ;;
12976 # Neutralize VPATH when `$srcdir' = `.'.
12977 # Shell code in configure.ac might set extrasub.
12978 # FIXME: do we really want to maintain this feature?
12979 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12980 ac_sed_extra="$ac_vpsub
12983 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12985 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12986 s|@configure_input@|$ac_sed_conf_input|;t t
12987 s&@top_builddir@&$ac_top_builddir_sub&;t t
12988 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12989 s&@srcdir@&$ac_srcdir&;t t
12990 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12991 s&@top_srcdir@&$ac_top_srcdir&;t t
12992 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12993 s&@builddir@&$ac_builddir&;t t
12994 s&@abs_builddir@&$ac_abs_builddir&;t t
12995 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12996 s&@INSTALL@&$ac_INSTALL&;t t
12997 $ac_datarootdir_hack
12999 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
13000 if $ac_cs_awk_getline; then
13001 $AWK -f "$tmp/subs.awk"
13003 $AWK -f "$tmp/subs.awk" | $SHELL
13005 || as_fn_error "could not create $ac_file" "$LINENO" 5
13007 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13008 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
13009 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
13010 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13011 which seems to be undefined. Please make sure it is defined." >&5
13012 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13013 which seems to be undefined. Please make sure it is defined." >&2;}
13017 -) cat "$tmp/out" && rm -f "$tmp/out";;
13018 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
13020 || as_fn_error "could not create $ac_file" "$LINENO" 5
13026 if test x"$ac_file" != x-; then
13028 $as_echo "/* $configure_input */" \
13029 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
13030 } >"$tmp/config.h" \
13031 || as_fn_error "could not create $ac_file" "$LINENO" 5
13032 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
13033 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13034 $as_echo "$as_me: $ac_file is unchanged" >&6;}
13037 mv "$tmp/config.h" "$ac_file" \
13038 || as_fn_error "could not create $ac_file" "$LINENO" 5
13041 $as_echo "/* $configure_input */" \
13042 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
13043 || as_fn_error "could not create -" "$LINENO" 5
13047 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13048 $as_echo "$as_me: executing $ac_file commands" >&6;}
13053 case $ac_file$ac_mode in
13055 for ac_file in $CONFIG_FILES; do
13056 # Support "outfile[:infile[:infile...]]"
13058 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
13060 # PO directories have a Makefile.in generated from Makefile.in.in.
13061 case "$ac_file" in */Makefile.in)
13062 # Adjust a relative srcdir.
13063 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
13064 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
13065 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
13066 # In autoconf-2.13 it is called $ac_given_srcdir.
13067 # In autoconf-2.50 it is called $srcdir.
13068 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
13069 case "$ac_given_srcdir" in
13070 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
13071 /*) top_srcdir="$ac_given_srcdir" ;;
13072 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
13074 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
13075 rm -f "$ac_dir/POTFILES"
13076 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
13077 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
13078 POMAKEFILEDEPS="POTFILES.in"
13079 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
13080 # on $ac_dir but don't depend on user-specified configuration
13082 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
13083 # The LINGUAS file contains the set of available languages.
13084 if test -n "$OBSOLETE_ALL_LINGUAS"; then
13085 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
13087 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
13088 # Hide the ALL_LINGUAS assigment from automake.
13089 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
13090 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
13092 # The set of available languages was given in configure.in.
13093 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
13096 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
13097 # Compute UPDATEPOFILES
13098 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
13099 # Compute DUMMYPOFILES
13100 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
13102 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
13103 case "$ac_given_srcdir" in
13105 *) srcdirpre='$(srcdir)/' ;;
13111 for lang in $ALL_LINGUAS; do
13112 POFILES="$POFILES $srcdirpre$lang.po"
13113 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
13114 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
13115 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
13117 # CATALOGS depends on both $ac_dir and the user's LINGUAS
13118 # environment variable.
13120 if test -n "$ALL_LINGUAS"; then
13121 for presentlang in $ALL_LINGUAS; do
13123 if test "%UNSET%" != "$LINGUAS"; then
13124 desiredlanguages="$LINGUAS"
13126 desiredlanguages="$ALL_LINGUAS"
13128 for desiredlang in $desiredlanguages; do
13129 # Use the presentlang catalog if desiredlang is
13130 # a. equal to presentlang, or
13131 # b. a variant of presentlang (because in this case,
13132 # presentlang can be used as a fallback for messages
13133 # which are not translated in the desiredlang catalog).
13134 case "$desiredlang" in
13135 "$presentlang"*) useit=yes;;
13138 if test $useit = yes; then
13139 INST_LINGUAS="$INST_LINGUAS $presentlang"
13144 if test -n "$INST_LINGUAS"; then
13145 for lang in $INST_LINGUAS; do
13146 CATALOGS="$CATALOGS $lang.gmo"
13149 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
13150 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"
13151 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
13152 if test -f "$f"; then
13154 *.orig | *.bak | *~) ;;
13155 *) cat "$f" >> "$ac_dir/Makefile" ;;
13170 ac_clean_files=$ac_clean_files_save
13172 test $ac_write_fail = 0 ||
13173 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
13176 # configure is writing to config.log, and then calls config.status.
13177 # config.status does its own redirection, appending to config.log.
13178 # Unfortunately, on DOS this fails, as config.log is still kept open
13179 # by configure, so config.status won't be able to write to it; its
13180 # output is simply discarded. So we exec the FD to /dev/null,
13181 # effectively closing config.log, so it can be properly (re)opened and
13182 # appended to by config.status. When coming back to configure, we
13183 # need to make the FD available again.
13184 if test "$no_create" != yes; then
13186 ac_config_status_args=
13187 test "$silent" = yes &&
13188 ac_config_status_args="$ac_config_status_args --quiet"
13190 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13192 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13193 # would make configure fail if this is the last instruction.
13194 $ac_cs_success || as_fn_exit $?
13196 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13197 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13198 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13201 if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi