2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE
=1; export DUALCASE
# for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in #(
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46 as_echo_n='print
-rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
53 as_echo_n='/usr
/ucb
/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
66 as_echo_n='sh
-c $as_echo_n_body as_echo
'
69 as_echo='sh
-c $as_echo_body as_echo
'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
89 # Find who we are. Look in the path if we contain no directory separator.
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x
; then
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var
in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\
${$as_var+set} = xset \
120 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
133 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x
"${_as_can_reexec}" != xno
&& test "x$CONFIG_SHELL" != x
; then
138 _as_can_reexec
=no
; export _as_can_reexec
;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
145 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
147 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec
=; unset _as_can_reexec
;}
160 if test "x$CONFIG_SHELL" = x
; then
161 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 case \`(set -o) 2>/dev/null\` in #(
177 as_required
="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
195 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1"
200 if (eval "$as_required") 2>/dev
/null
; then :
205 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
208 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
210 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
213 test -z "$as_dir" && as_dir
=.
217 for as_base
in sh bash ksh sh5
; do
218 # Try only shells that exist, to save several forks.
219 as_shell
=$as_dir/$as_base
220 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
222 CONFIG_SHELL
=$as_shell as_have_required
=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
231 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
233 CONFIG_SHELL
=$SHELL as_have_required
=yes
238 if test "x$CONFIG_SHELL" != x
; then :
240 # We cannot yet assume a decent shell, so we have to provide a
241 # neutralization value for shells without unset; and this also
242 # works around shells that cannot unset nonexistent variables.
243 # Preserve -v and -x to the replacement shell.
246 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
248 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254 # Admittedly, this is quite paranoid, since all the known shells bail
255 # out after a failed `exec'.
256 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
260 if test x
$as_have_required = xno
; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x
${ZSH_VERSION+set} = xset
; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268 $0: including any error possibly output before this
269 $0: message. Then install a modern shell, or manually run
270 $0: the script under such a shell if you do have one."
276 SHELL
=${CONFIG_SHELL-/bin/sh}
278 # Unset more variables known to interfere with behavior of common tools.
279 CLICOLOR_FORCE
= GREP_OPTIONS
=
280 unset CLICOLOR_FORCE GREP_OPTIONS
282 ## --------------------- ##
283 ## M4sh Shell Functions. ##
284 ## --------------------- ##
287 # Portably unset VAR.
290 { eval $1=; unset $1;}
294 # as_fn_set_status STATUS
295 # -----------------------
296 # Set $? to STATUS, without forking.
304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
314 # Create "$as_dir" as a directory, including parents if necessary.
319 -*) as_dir
=.
/$as_dir;;
321 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
325 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
328 as_dirs
="'$as_qdir' $as_dirs"
329 as_dir
=`$as_dirname -- "$as_dir" ||
330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334 $as_echo X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
352 test -d "$as_dir" && break
354 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
355 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
360 # as_fn_executable_p FILE
361 # -----------------------
362 # Test if FILE is an executable regular file.
363 as_fn_executable_p
()
365 test -f "$1" && test -x "$1"
366 } # as_fn_executable_p
367 # as_fn_append VAR VALUE
368 # ----------------------
369 # Append the text in VALUE to the end of the definition contained in VAR. Take
370 # advantage of any shell optimizations that allow amortized linear growth over
371 # repeated appends, instead of the typical quadratic growth present in naive
373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
374 eval 'as_fn_append ()
387 # Perform arithmetic evaluation on the ARGs, and store the result in the
388 # global $as_val. Take advantage of shells that can avoid forks. The arguments
389 # must be portable across $(()) and expr.
390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
398 as_val
=`expr "$@" || test $? -eq 1`
403 # as_fn_error STATUS ERROR [LINENO LOG_FD]
404 # ----------------------------------------
405 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407 # script with STATUS, using 1 if that was 0.
410 as_status
=$1; test $as_status -eq 0 && as_status
=1
412 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
415 $as_echo "$as_me: error: $2" >&2
416 as_fn_exit
$as_status
419 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
426 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
432 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
438 as_me
=`$as_basename -- "$0" ||
439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
443 sed '/^.*\/\([^/][^/]*\)\/*$/{
457 # Avoid depending upon Character Ranges.
458 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
459 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
461 as_cr_digits
='0123456789'
462 as_cr_alnum
=$as_cr_Letters$as_cr_digits
465 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
466 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
485 chmod +x
"$as_me.lineno" ||
486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec
=no
; export _as_can_reexec
492 # Don't try to exec as it changes $[0], causing all sort of problems
493 # (the dirname of $[0] is not the place where we might find the
494 # original and so on. Autoconf is especially sensitive to this).
496 # Exit status is that of the last command.
500 ECHO_C
= ECHO_N
= ECHO_T
=
501 case `echo -n x` in #(((((
503 case `echo 'xy\c'` in
504 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
513 rm -f conf$$ conf$$.exe conf$$.
file
514 if test -d conf$$.dir
; then
515 rm -f conf$$.dir
/conf$$.
file
518 mkdir conf$$.dir
2>/dev
/null
520 if (echo >conf$$.
file) 2>/dev
/null
; then
521 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526 # In both cases, we have to default to `cp -pR'.
527 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
529 elif ln conf$$.
file conf$$
2>/dev
/null
; then
537 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
538 rmdir conf$$.dir
2>/dev
/null
540 if mkdir
-p .
2>/dev
/null
; then
541 as_mkdir_p
='mkdir -p "$as_dir"'
543 test -d .
/-p && rmdir .
/-p
548 as_executable_p
=as_fn_executable_p
550 # Sed expression to map a string onto a valid CPP name.
551 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
553 # Sed expression to map a string onto a valid variable name.
554 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
557 test -n "$DJDIR" ||
exec 7<&0 </dev
/null
561 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562 # so uname gets run too.
563 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
568 ac_default_prefix
=/usr
/local
570 ac_config_libobj_dir
=.
577 # Identity of this package.
585 ac_unique_file
="version.h"
586 # Factoring default headers for most tests.
587 ac_includes_default
="\
589 #ifdef HAVE_SYS_TYPES_H
590 # include <sys/types.h>
592 #ifdef HAVE_SYS_STAT_H
593 # include <sys/stat.h>
599 # ifdef HAVE_STDLIB_H
604 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
609 #ifdef HAVE_STRINGS_H
610 # include <strings.h>
612 #ifdef HAVE_INTTYPES_H
613 # include <inttypes.h>
623 ac_subst_vars
='LTLIBOBJS
669 INTL_LIBTOOL_SUFFIX_PREFIX
676 BUILD_INCLUDED_LIBINTL
802 program_transform_name
813 ac_subst_files
='MCONFIG
820 PUBLIC_CONFIG_HEADER'
822 enable_option_checking
828 enable_maintainer_mode
829 enable_symlink_install
830 enable_relative_symlinks
831 enable_symlink_relative_symlinks
833 enable_verbose_makecmds
852 enable_e2initrd_helper
857 enable_bmap_stats_ops
862 with_included_gettext
866 ac_precious_vars
='build_alias
878 # Initialize some variables set by options.
880 ac_init_version
=false
881 ac_unrecognized_opts
=
883 # The variables have the same names as the options, with
884 # dashes changed to underlines.
892 program_transform_name
=s
,x
,x
,
900 # Installation directory options.
901 # These are left unexpanded so users can "make install exec_prefix=/foo"
902 # and all the variables that are supposed to be based on exec_prefix
903 # by default will actually change.
904 # Use braces instead of parens because sh, perl, etc. also accept them.
905 # (The list follows the same order as the GNU Coding Standards.)
906 bindir
='${exec_prefix}/bin'
907 sbindir
='${exec_prefix}/sbin'
908 libexecdir
='${exec_prefix}/libexec'
909 datarootdir
='${prefix}/share'
910 datadir
='${datarootdir}'
911 sysconfdir
='${prefix}/etc'
912 sharedstatedir
='${prefix}/com'
913 localstatedir
='${prefix}/var'
914 includedir
='${prefix}/include'
915 oldincludedir
='/usr/include'
916 docdir
='${datarootdir}/doc/${PACKAGE}'
917 infodir
='${datarootdir}/info'
922 libdir
='${exec_prefix}/lib'
923 localedir
='${datarootdir}/locale'
924 mandir
='${datarootdir}/man'
930 # If the previous option needs an argument, assign it.
931 if test -n "$ac_prev"; then
932 eval $ac_prev=\
$ac_option
938 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
943 # Accept the important Cygnus configure options, so we can diagnose typos.
945 case $ac_dashdash$ac_option in
949 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
951 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
954 -build |
--build |
--buil |
--bui |
--bu)
955 ac_prev
=build_alias
;;
956 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
957 build_alias
=$ac_optarg ;;
959 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
960 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
961 ac_prev
=cache_file
;;
962 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
963 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
964 cache_file
=$ac_optarg ;;
967 cache_file
=config.cache
;;
969 -datadir |
--datadir |
--datadi |
--datad)
971 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
972 datadir
=$ac_optarg ;;
974 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
975 |
--dataroo |
--dataro |
--datar)
976 ac_prev
=datarootdir
;;
977 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
978 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
979 datarootdir
=$ac_optarg ;;
981 -disable-* |
--disable-*)
982 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
983 # Reject names that are not valid shell variable names.
984 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
985 as_fn_error $?
"invalid feature name: $ac_useropt"
986 ac_useropt_orig
=$ac_useropt
987 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
988 case $ac_user_opts in
992 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
993 ac_unrecognized_sep
=', ';;
995 eval enable_
$ac_useropt=no
;;
997 -docdir |
--docdir |
--docdi |
--doc |
--do)
999 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1000 docdir
=$ac_optarg ;;
1002 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1004 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1005 dvidir
=$ac_optarg ;;
1007 -enable-* |
--enable-*)
1008 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1009 # Reject names that are not valid shell variable names.
1010 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1011 as_fn_error $?
"invalid feature name: $ac_useropt"
1012 ac_useropt_orig
=$ac_useropt
1013 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1014 case $ac_user_opts in
1016 "enable_
$ac_useropt"
1018 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1019 ac_unrecognized_sep
=', ';;
1021 eval enable_
$ac_useropt=\
$ac_optarg ;;
1023 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1024 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1025 |
--exec |
--exe |
--ex)
1026 ac_prev
=exec_prefix
;;
1027 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1028 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1029 |
--exec=* |
--exe=* |
--ex=*)
1030 exec_prefix
=$ac_optarg ;;
1032 -gas |
--gas |
--ga |
--g)
1033 # Obsolete; use --with-gas.
1036 -help |
--help |
--hel |
--he |
-h)
1037 ac_init_help
=long
;;
1038 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1039 ac_init_help
=recursive
;;
1040 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1041 ac_init_help
=short
;;
1043 -host |
--host |
--hos |
--ho)
1044 ac_prev
=host_alias
;;
1045 -host=* |
--host=* |
--hos=* |
--ho=*)
1046 host_alias
=$ac_optarg ;;
1048 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1050 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1052 htmldir
=$ac_optarg ;;
1054 -includedir |
--includedir |
--includedi |
--included |
--include \
1055 |
--includ |
--inclu |
--incl |
--inc)
1056 ac_prev
=includedir
;;
1057 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1058 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1059 includedir
=$ac_optarg ;;
1061 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1063 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1064 infodir
=$ac_optarg ;;
1066 -libdir |
--libdir |
--libdi |
--libd)
1068 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1069 libdir
=$ac_optarg ;;
1071 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1072 |
--libexe |
--libex |
--libe)
1073 ac_prev
=libexecdir
;;
1074 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1075 |
--libexe=* |
--libex=* |
--libe=*)
1076 libexecdir
=$ac_optarg ;;
1078 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1079 ac_prev
=localedir
;;
1080 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1081 localedir
=$ac_optarg ;;
1083 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1084 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1085 ac_prev
=localstatedir
;;
1086 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1087 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1088 localstatedir
=$ac_optarg ;;
1090 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1092 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1093 mandir
=$ac_optarg ;;
1095 -nfp |
--nfp |
--nf)
1096 # Obsolete; use --without-fp.
1099 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1100 |
--no-cr |
--no-c |
-n)
1103 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1104 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1107 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1108 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1109 |
--oldin |
--oldi |
--old |
--ol |
--o)
1110 ac_prev
=oldincludedir
;;
1111 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1112 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1113 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1114 oldincludedir
=$ac_optarg ;;
1116 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1118 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1119 prefix
=$ac_optarg ;;
1121 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1122 |
--program-pre |
--program-pr |
--program-p)
1123 ac_prev
=program_prefix
;;
1124 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1125 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1126 program_prefix
=$ac_optarg ;;
1128 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1129 |
--program-suf |
--program-su |
--program-s)
1130 ac_prev
=program_suffix
;;
1131 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1132 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1133 program_suffix
=$ac_optarg ;;
1135 -program-transform-name |
--program-transform-name \
1136 |
--program-transform-nam |
--program-transform-na \
1137 |
--program-transform-n |
--program-transform- \
1138 |
--program-transform |
--program-transfor \
1139 |
--program-transfo |
--program-transf \
1140 |
--program-trans |
--program-tran \
1141 |
--progr-tra |
--program-tr |
--program-t)
1142 ac_prev
=program_transform_name
;;
1143 -program-transform-name=* |
--program-transform-name=* \
1144 |
--program-transform-nam=* |
--program-transform-na=* \
1145 |
--program-transform-n=* |
--program-transform-=* \
1146 |
--program-transform=* |
--program-transfor=* \
1147 |
--program-transfo=* |
--program-transf=* \
1148 |
--program-trans=* |
--program-tran=* \
1149 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1150 program_transform_name
=$ac_optarg ;;
1152 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1154 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1155 pdfdir
=$ac_optarg ;;
1157 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1159 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1162 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1163 |
-silent |
--silent |
--silen |
--sile |
--sil)
1166 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1168 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1170 sbindir
=$ac_optarg ;;
1172 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1173 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1174 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1176 ac_prev
=sharedstatedir
;;
1177 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1178 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1179 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1181 sharedstatedir
=$ac_optarg ;;
1183 -site |
--site |
--sit)
1185 -site=* |
--site=* |
--sit=*)
1188 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1190 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1191 srcdir
=$ac_optarg ;;
1193 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1194 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1195 ac_prev
=sysconfdir
;;
1196 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1197 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1198 sysconfdir
=$ac_optarg ;;
1200 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1201 ac_prev
=target_alias
;;
1202 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1203 target_alias
=$ac_optarg ;;
1205 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1208 -version |
--version |
--versio |
--versi |
--vers |
-V)
1209 ac_init_version
=: ;;
1212 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1213 # Reject names that are not valid shell variable names.
1214 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1215 as_fn_error $?
"invalid package name: $ac_useropt"
1216 ac_useropt_orig
=$ac_useropt
1217 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1218 case $ac_user_opts in
1222 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1223 ac_unrecognized_sep
=', ';;
1225 eval with_
$ac_useropt=\
$ac_optarg ;;
1227 -without-* |
--without-*)
1228 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1229 # Reject names that are not valid shell variable names.
1230 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1231 as_fn_error $?
"invalid package name: $ac_useropt"
1232 ac_useropt_orig
=$ac_useropt
1233 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1234 case $ac_user_opts in
1238 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1239 ac_unrecognized_sep
=', ';;
1241 eval with_
$ac_useropt=no
;;
1244 # Obsolete; use --with-x.
1247 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1248 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1249 ac_prev
=x_includes
;;
1250 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1251 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1252 x_includes
=$ac_optarg ;;
1254 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1255 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1256 ac_prev
=x_libraries
;;
1257 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1258 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1259 x_libraries
=$ac_optarg ;;
1261 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1262 Try \`$0 --help' for more information"
1266 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1267 # Reject names that are not valid shell variable names.
1268 case $ac_envvar in #(
1269 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1270 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1272 eval $ac_envvar=\
$ac_optarg
1273 export $ac_envvar ;;
1276 # FIXME: should be removed in autoconf 3.0.
1277 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1278 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1279 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1280 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1286 if test -n "$ac_prev"; then
1287 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1288 as_fn_error $?
"missing argument to $ac_option"
1291 if test -n "$ac_unrecognized_opts"; then
1292 case $enable_option_checking in
1294 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1295 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1299 # Check all directory arguments for consistency.
1300 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1301 datadir sysconfdir sharedstatedir localstatedir includedir \
1302 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1303 libdir localedir mandir
1305 eval ac_val
=\$
$ac_var
1306 # Remove trailing slashes.
1309 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1310 eval $ac_var=\
$ac_val;;
1312 # Be sure to have absolute directory names.
1314 [\\/$
]* | ?
:[\\/]* ) continue;;
1315 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1317 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1320 # There might be people who depend on the old broken behavior: `$host'
1321 # used to hold the argument of --host etc.
1322 # FIXME: To remove some day.
1325 target
=$target_alias
1327 # FIXME: To remove some day.
1328 if test "x$host_alias" != x
; then
1329 if test "x$build_alias" = x
; then
1330 cross_compiling
=maybe
1331 elif test "x$build_alias" != "x$host_alias"; then
1337 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1339 test "$silent" = yes && exec 6>/dev
/null
1342 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1343 ac_ls_di
=`ls -di .` &&
1344 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1345 as_fn_error $?
"working directory cannot be determined"
1346 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1347 as_fn_error $?
"pwd does not report name of working directory"
1350 # Find the source files, if location was not specified.
1351 if test -z "$srcdir"; then
1352 ac_srcdir_defaulted
=yes
1353 # Try the directory containing this script, then the parent directory.
1354 ac_confdir
=`$as_dirname -- "$as_myself" ||
1355 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1356 X"$as_myself" : 'X\(//\)[^/]' \| \
1357 X"$as_myself" : 'X\(//\)$' \| \
1358 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1359 $as_echo X"$as_myself" |
1360 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1378 if test ! -r "$srcdir/$ac_unique_file"; then
1382 ac_srcdir_defaulted
=no
1384 if test ! -r "$srcdir/$ac_unique_file"; then
1385 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1386 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1388 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1390 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1392 # When building in place, set srcdir=.
1393 if test "$ac_abs_confdir" = "$ac_pwd"; then
1396 # Remove unnecessary trailing slashes from srcdir.
1397 # Double slashes in file names in object file debugging info
1398 # mess up M-x gdb in Emacs.
1400 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1402 for ac_var
in $ac_precious_vars; do
1403 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1404 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1405 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1406 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1410 # Report the --help message.
1412 if test "$ac_init_help" = "long"; then
1413 # Omit some internal or obsolete options to make the list less imposing.
1414 # This message is too long to be a string in the A/UX 3.1 sh.
1416 \`configure' configures this package to adapt to many kinds of systems.
1418 Usage: $0 [OPTION]... [VAR=VALUE]...
1420 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1421 VAR=VALUE. See below for descriptions of some of the useful variables.
1423 Defaults for the options are specified in brackets.
1426 -h, --help display this help and exit
1427 --help=short display options specific to this package
1428 --help=recursive display the short help of all the included packages
1429 -V, --version display version information and exit
1430 -q, --quiet, --silent do not print \`checking ...' messages
1431 --cache-file=FILE cache test results in FILE [disabled]
1432 -C, --config-cache alias for \`--cache-file=config.cache'
1433 -n, --no-create do not create output files
1434 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1436 Installation directories:
1437 --prefix=PREFIX install architecture-independent files in PREFIX
1438 [$ac_default_prefix]
1439 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1442 By default, \`make install' will install all the files in
1443 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1444 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1445 for instance \`--prefix=\$HOME'.
1447 For better control, use the options below.
1449 Fine tuning of the installation directories:
1450 --bindir=DIR user executables [EPREFIX/bin]
1451 --sbindir=DIR system admin executables [EPREFIX/sbin]
1452 --libexecdir=DIR program executables [EPREFIX/libexec]
1453 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1454 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1455 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1456 --libdir=DIR object code libraries [EPREFIX/lib]
1457 --includedir=DIR C header files [PREFIX/include]
1458 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1459 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1460 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1461 --infodir=DIR info documentation [DATAROOTDIR/info]
1462 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1463 --mandir=DIR man documentation [DATAROOTDIR/man]
1464 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1465 --htmldir=DIR html documentation [DOCDIR]
1466 --dvidir=DIR dvi documentation [DOCDIR]
1467 --pdfdir=DIR pdf documentation [DOCDIR]
1468 --psdir=DIR ps documentation [DOCDIR]
1474 --build=BUILD configure
for building on BUILD
[guessed
]
1475 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1479 if test -n "$ac_init_help"; then
1484 --disable-option-checking ignore unrecognized
--enable/--with options
1485 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1486 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1487 --enable-maintainer-mode enable makefile rules useful
for maintainers
1488 --enable-symlink-install use symlinks when installing instead of hard links
1489 --enable-relative-symlinks use relative symlinks when installing
1491 --enable-symlink-build use symlinks
while building instead of hard links
1492 --enable-verbose-makecmds enable verbose
make command output
1493 --enable-compression enable EXPERIMENTAL compression support
1494 --enable-htree enable EXPERIMENTAL htree directory support
1495 --enable-elf-shlibs select ELF shared libraries
1496 --enable-bsd-shlibs select BSD shared libraries
1497 --enable-profile build profiling libraries
1498 --enable-checker build checker libraries
1499 --enable-jbd-debug enable journal debugging
1500 --enable-blkid-debug enable blkid debugging
1501 --disable-testio-debug disable the use of the
test I
/O manager
for debugging
1502 --disable-libuuid do not build private uuid library
1503 --disable-libblkid do not build private blkid library
1504 --enable-quota enable quota support
1505 --disable-backtrace disable use backtrace
1506 --disable-debugfs disable support of debugfs program
1507 --disable-imager disable support of e2image program
1508 --disable-resizer disable support of e2resize program
1509 --disable-defrag disable support of e4defrag program
1510 --enable-fsck build fsck wrapper program
1511 --enable-e2initrd-helper build e2initrd-helper program
1512 --disable-tls disable use of thread
local support
1513 --disable-uuidd disable building the uuid daemon
1514 --disable-mmp disable support mmp
, Multi Mount Protection
1515 --disable-bmap-stats disable collection of bitmap stats.
1516 --enable-bmap-stats-ops enable collection of additional bitmap stats
1517 --disable-nls do not use Native Language Support
1518 --disable-rpath do not hardcode runtime library paths
1521 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1522 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1523 --with-diet-libc use diet libc
1524 --with-cc no longer supported
, use CC
= instead
1525 --with-ccopts no longer supported
, use CFLAGS
= instead
1526 --with-ldopts no longer supported
, use LDFLAGS
= instead
1527 --with-root-prefix=PREFIX override prefix variable
for files to be placed
in the root
1528 --with-gnu-ld assume the C compiler uses GNU ld default
=no
1529 --with-libiconv-prefix[=DIR
] search
for libiconv
in DIR
/include and DIR
/lib
1530 --without-libiconv-prefix don
't search for libiconv in includedir and libdir
1531 --with-included-gettext use the GNU gettext library included here
1532 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1533 --without-libintl-prefix don't search
for libintl
in includedir and libdir
1534 --with-multiarch=ARCH specify the multiarch triplet
1536 Some influential environment variables
:
1537 CC C compiler
command
1538 CFLAGS C compiler flags
1539 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1540 nonstandard directory
<lib dir
>
1541 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1542 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1543 you have headers
in a nonstandard directory
<include dir
>
1545 PKG_CONFIG path to pkg-config utility
1547 Use these variables to override the choices made by
`configure' or to help
1548 it to find libraries and programs with nonstandard names/locations.
1550 Report bugs to the package provider.
1555 if test "$ac_init_help" = "recursive"; then
1556 # If there are subdirs, report their specific --help.
1557 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1558 test -d "$ac_dir" ||
1559 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1564 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1566 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1567 # A ".." for each directory in $ac_dir_suffix.
1568 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1569 case $ac_top_builddir_sub in
1570 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1571 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1574 ac_abs_top_builddir=$ac_pwd
1575 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1576 # for backward compatibility:
1577 ac_top_builddir=$ac_top_build_prefix
1580 .) # We are building in place.
1582 ac_top_srcdir=$ac_top_builddir_sub
1583 ac_abs_top_srcdir=$ac_pwd ;;
1584 [\\/]* | ?:[\\/]* ) # Absolute name.
1585 ac_srcdir=$srcdir$ac_dir_suffix;
1586 ac_top_srcdir=$srcdir
1587 ac_abs_top_srcdir=$srcdir ;;
1589 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1590 ac_top_srcdir=$ac_top_build_prefix$srcdir
1591 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1593 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1595 cd "$ac_dir" || { ac_status=$?; continue; }
1596 # Check for guested configure.
1597 if test -f "$ac_srcdir/configure.gnu"; then
1599 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1600 elif test -f "$ac_srcdir/configure"; then
1602 $SHELL "$ac_srcdir/configure" --help=recursive
1604 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1606 cd "$ac_pwd" || { ac_status=$?; break; }
1610 test -n "$ac_init_help" && exit $ac_status
1611 if $ac_init_version; then
1614 generated by GNU Autoconf 2.69
1616 Copyright (C) 2012 Free Software Foundation, Inc.
1617 This configure script is free software; the Free Software Foundation
1618 gives unlimited permission to copy, distribute and modify it.
1623 ## ------------------------ ##
1624 ## Autoconf initialization. ##
1625 ## ------------------------ ##
1627 # ac_fn_c_try_compile LINENO
1628 # --------------------------
1629 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1630 ac_fn_c_try_compile ()
1632 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1633 rm -f conftest.$ac_objext
1634 if { { ac_try="$ac_compile"
1636 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1637 *) ac_try_echo
=$ac_try;;
1639 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1640 $as_echo "$ac_try_echo"; } >&5
1641 (eval "$ac_compile") 2>conftest.err
1643 if test -s conftest.err
; then
1644 grep -v '^ *+' conftest.err
>conftest.er1
1645 cat conftest.er1
>&5
1646 mv -f conftest.er1 conftest.err
1648 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1649 test $ac_status = 0; } && {
1650 test -z "$ac_c_werror_flag" ||
1651 test ! -s conftest.err
1652 } && test -s conftest.
$ac_objext; then :
1655 $as_echo "$as_me: failed program was:" >&5
1656 sed 's/^/| /' conftest.
$ac_ext >&5
1660 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1661 as_fn_set_status
$ac_retval
1663 } # ac_fn_c_try_compile
1665 # ac_fn_c_try_link LINENO
1666 # -----------------------
1667 # Try to link conftest.$ac_ext, and return whether this succeeded.
1670 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1671 rm -f conftest.
$ac_objext conftest
$ac_exeext
1672 if { { ac_try
="$ac_link"
1674 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1675 *) ac_try_echo=$ac_try;;
1677 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1678 $as_echo "$ac_try_echo"; } >&5
1679 (eval "$ac_link") 2>conftest.err
1681 if test -s conftest.err; then
1682 grep -v '^ *+' conftest.err >conftest.er1
1683 cat conftest.er1 >&5
1684 mv -f conftest.er1 conftest.err
1686 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1687 test $ac_status = 0; } && {
1688 test -z "$ac_c_werror_flag" ||
1689 test ! -s conftest.err
1690 } && test -s conftest$ac_exeext && {
1691 test "$cross_compiling" = yes ||
1692 test -x conftest$ac_exeext
1696 $as_echo "$as_me: failed program was:" >&5
1697 sed 's/^/| /' conftest.$ac_ext >&5
1701 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1702 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1703 # interfere with the next link command; also delete a directory that is
1704 # left behind by Apple's compiler. We do this before executing the actions.
1705 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1706 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1707 as_fn_set_status $ac_retval
1709 } # ac_fn_c_try_link
1711 # ac_fn_c_try_cpp LINENO
1712 # ----------------------
1713 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1716 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1717 if { { ac_try="$ac_cpp conftest.$ac_ext"
1719 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1720 *) ac_try_echo
=$ac_try;;
1722 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1723 $as_echo "$ac_try_echo"; } >&5
1724 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1726 if test -s conftest.err
; then
1727 grep -v '^ *+' conftest.err
>conftest.er1
1728 cat conftest.er1
>&5
1729 mv -f conftest.er1 conftest.err
1731 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1732 test $ac_status = 0; } > conftest.i
&& {
1733 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1734 test ! -s conftest.err
1738 $as_echo "$as_me: failed program was:" >&5
1739 sed 's/^/| /' conftest.
$ac_ext >&5
1743 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1744 as_fn_set_status
$ac_retval
1748 # ac_fn_c_try_run LINENO
1749 # ----------------------
1750 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1751 # that executables *can* be run.
1754 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1755 if { { ac_try
="$ac_link"
1757 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1758 *) ac_try_echo=$ac_try;;
1760 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1761 $as_echo "$ac_try_echo"; } >&5
1762 (eval "$ac_link") 2>&5
1764 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1765 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1766 { { case "(($ac_try" in
1767 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1768 *) ac_try_echo
=$ac_try;;
1770 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1771 $as_echo "$ac_try_echo"; } >&5
1772 (eval "$ac_try") 2>&5
1774 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1775 test $ac_status = 0; }; }; then :
1778 $as_echo "$as_me: program exited with status $ac_status" >&5
1779 $as_echo "$as_me: failed program was:" >&5
1780 sed 's/^/| /' conftest.
$ac_ext >&5
1782 ac_retval
=$ac_status
1784 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1785 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1786 as_fn_set_status
$ac_retval
1790 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1791 # -------------------------------------------
1792 # Tests whether TYPE exists after having included INCLUDES, setting cache
1793 # variable VAR accordingly.
1794 ac_fn_c_check_type
()
1796 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1798 $as_echo_n "checking for $2... " >&6; }
1799 if eval \
${$3+:} false
; then :
1800 $as_echo_n "(cached) " >&6
1803 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1804 /* end confdefs.h. */
1815 if ac_fn_c_try_compile
"$LINENO"; then :
1816 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1817 /* end confdefs.h. */
1828 if ac_fn_c_try_compile
"$LINENO"; then :
1833 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1835 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1839 $as_echo "$ac_res" >&6; }
1840 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1842 } # ac_fn_c_check_type
1844 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1845 # -------------------------------------------------------
1846 # Tests whether HEADER exists and can be compiled using the include files in
1847 # INCLUDES, setting the cache variable VAR accordingly.
1848 ac_fn_c_check_header_compile
()
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 eval \
${$3+:} false
; then :
1854 $as_echo_n "(cached) " >&6
1856 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1857 /* end confdefs.h. */
1861 if ac_fn_c_try_compile
"$LINENO"; then :
1866 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1870 $as_echo "$ac_res" >&6; }
1871 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1873 } # ac_fn_c_check_header_compile
1875 # ac_fn_c_check_func LINENO FUNC VAR
1876 # ----------------------------------
1877 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1878 ac_fn_c_check_func
()
1880 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1882 $as_echo_n "checking for $2... " >&6; }
1883 if eval \
${$3+:} false
; then :
1884 $as_echo_n "(cached) " >&6
1886 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1887 /* end confdefs.h. */
1888 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1889 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1890 #define $2 innocuous_$2
1892 /* System header to define __stub macros and hopefully few prototypes,
1893 which can conflict with char $2 (); below.
1894 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1895 <limits.h> exists even on freestanding compilers. */
1898 # include <limits.h>
1900 # include <assert.h>
1905 /* Override any GCC internal prototype to avoid an error.
1906 Use char because int might match the return type of a GCC
1907 builtin and then its argument prototype would still apply. */
1912 /* The GNU C library defines this for functions which it implements
1913 to always fail with ENOSYS. Some functions are actually named
1914 something starting with __ and the normal name is an alias. */
1915 #if defined __stub_$2 || defined __stub___$2
1927 if ac_fn_c_try_link
"$LINENO"; then :
1932 rm -f core conftest.err conftest.
$ac_objext \
1933 conftest
$ac_exeext conftest.
$ac_ext
1936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1937 $as_echo "$ac_res" >&6; }
1938 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1940 } # ac_fn_c_check_func
1942 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1943 # -------------------------------------------------------
1944 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1945 # the include files in INCLUDES and setting the cache variable VAR
1947 ac_fn_c_check_header_mongrel
()
1949 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1950 if eval \
${$3+:} false
; then :
1951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1952 $as_echo_n "checking for $2... " >&6; }
1953 if eval \
${$3+:} false
; then :
1954 $as_echo_n "(cached) " >&6
1957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1958 $as_echo "$ac_res" >&6; }
1960 # Is the header compilable?
1961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1962 $as_echo_n "checking $2 usability... " >&6; }
1963 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1964 /* end confdefs.h. */
1968 if ac_fn_c_try_compile
"$LINENO"; then :
1969 ac_header_compiler
=yes
1971 ac_header_compiler
=no
1973 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1975 $as_echo "$ac_header_compiler" >&6; }
1977 # Is the header present?
1978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1979 $as_echo_n "checking $2 presence... " >&6; }
1980 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1981 /* end confdefs.h. */
1984 if ac_fn_c_try_cpp
"$LINENO"; then :
1985 ac_header_preproc
=yes
1987 ac_header_preproc
=no
1989 rm -f conftest.err conftest.i conftest.
$ac_ext
1990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1991 $as_echo "$ac_header_preproc" >&6; }
1993 # So? What about this header?
1994 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1996 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1997 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1998 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1999 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2002 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2003 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2004 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2005 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2006 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2007 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2008 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2009 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2010 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2011 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2015 $as_echo_n "checking for $2... " >&6; }
2016 if eval \
${$3+:} false
; then :
2017 $as_echo_n "(cached) " >&6
2019 eval "$3=\$ac_header_compiler"
2022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2023 $as_echo "$ac_res" >&6; }
2025 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2027 } # ac_fn_c_check_header_mongrel
2029 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2030 # --------------------------------------------
2031 # Tries to find the compile-time value of EXPR in a program that includes
2032 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2034 ac_fn_c_compute_int
()
2036 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2037 if test "$cross_compiling" = yes; then
2038 # Depending upon the size, compute the lo and hi bounds.
2039 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2040 /* end confdefs.h. */
2045 static int test_array [1 - 2 * !(($2) >= 0)];
2047 return test_array [0];
2053 if ac_fn_c_try_compile
"$LINENO"; then :
2056 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2057 /* end confdefs.h. */
2062 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2064 return test_array [0];
2070 if ac_fn_c_try_compile
"$LINENO"; then :
2071 ac_hi
=$ac_mid; break
2073 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
2074 if test $ac_lo -le $ac_mid; then
2078 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
2080 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2083 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2084 /* end confdefs.h. */
2089 static int test_array [1 - 2 * !(($2) < 0)];
2091 return test_array [0];
2097 if ac_fn_c_try_compile
"$LINENO"; then :
2100 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2101 /* end confdefs.h. */
2106 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2108 return test_array [0];
2114 if ac_fn_c_try_compile
"$LINENO"; then :
2115 ac_lo
=$ac_mid; break
2117 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
2118 if test $ac_mid -le $ac_hi; then
2122 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
2124 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2129 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2131 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2132 # Binary search between lo and hi bounds.
2133 while test "x$ac_lo" != "x$ac_hi"; do
2134 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
2135 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2136 /* end confdefs.h. */
2141 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2143 return test_array [0];
2149 if ac_fn_c_try_compile
"$LINENO"; then :
2152 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
2154 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2157 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
2161 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2162 /* end confdefs.h. */
2164 static long int longval () { return $2; }
2165 static unsigned long int ulongval () { return $2; }
2172 FILE *f = fopen ("conftest.val", "w");
2177 long int i = longval ();
2180 fprintf (f, "%ld", i);
2184 unsigned long int i = ulongval ();
2187 fprintf (f, "%lu", i);
2189 /* Do not output a trailing newline, as this causes \r\n confusion
2190 on some platforms. */
2191 return ferror (f) || fclose (f) != 0;
2197 if ac_fn_c_try_run
"$LINENO"; then :
2198 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
2202 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
2203 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2207 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2208 as_fn_set_status
$ac_retval
2210 } # ac_fn_c_compute_int
2212 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2213 # ----------------------------------------------------
2214 # Tries to find if the field MEMBER exists in type AGGR, after including
2215 # INCLUDES, setting cache variable VAR accordingly.
2216 ac_fn_c_check_member
()
2218 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2220 $as_echo_n "checking for $2.$3... " >&6; }
2221 if eval \
${$4+:} false
; then :
2222 $as_echo_n "(cached) " >&6
2224 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2225 /* end confdefs.h. */
2237 if ac_fn_c_try_compile
"$LINENO"; then :
2240 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2241 /* end confdefs.h. */
2247 if (sizeof ac_aggr.$3)
2253 if ac_fn_c_try_compile
"$LINENO"; then :
2258 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2260 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2264 $as_echo "$ac_res" >&6; }
2265 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2267 } # ac_fn_c_check_member
2269 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2270 # ---------------------------------------------
2271 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2273 ac_fn_c_check_decl
()
2275 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2276 as_decl_name
=`echo $2|sed 's/ *(.*//'`
2277 as_decl_use
=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2279 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2280 if eval \
${$3+:} false
; then :
2281 $as_echo_n "(cached) " >&6
2283 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2284 /* end confdefs.h. */
2289 #ifndef $as_decl_name
2291 (void) $as_decl_use;
2293 (void) $as_decl_name;
2301 if ac_fn_c_try_compile
"$LINENO"; then :
2306 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2310 $as_echo "$ac_res" >&6; }
2311 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2313 } # ac_fn_c_check_decl
2314 cat >config.log
<<_ACEOF
2315 This file contains any messages produced by compilers while
2316 running configure, to aid debugging if configure makes a mistake.
2318 It was created by $as_me, which was
2319 generated by GNU Autoconf 2.69. Invocation command line was
2331 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2332 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2333 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2334 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2335 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2337 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2338 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2340 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2341 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2342 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2343 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2344 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2345 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2346 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2350 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2354 test -z "$as_dir" && as_dir
=.
2355 $as_echo "PATH: $as_dir"
2371 # Keep a trace of the command line.
2372 # Strip out --no-create and --no-recursion so they do not pile up.
2373 # Strip out --silent because we don't want to record it for future runs.
2374 # Also quote any args containing shell meta-characters.
2375 # Make two passes to allow for proper duplicate-argument suppression.
2379 ac_must_keep_next
=false
2385 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2386 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2387 |
-silent |
--silent |
--silen |
--sile |
--sil)
2390 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2393 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2395 as_fn_append ac_configure_args1
" '$ac_arg'"
2396 if test $ac_must_keep_next = true
; then
2397 ac_must_keep_next
=false
# Got value, back to normal.
2400 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2401 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2402 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2403 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2404 case "$ac_configure_args0 " in
2405 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2408 -* ) ac_must_keep_next
=true
;;
2411 as_fn_append ac_configure_args
" '$ac_arg'"
2416 { ac_configure_args0
=; unset ac_configure_args0
;}
2417 { ac_configure_args1
=; unset ac_configure_args1
;}
2419 # When interrupted or exit'd, cleanup temporary files, and complete
2420 # config.log. We remove comments because anyway the quotes in there
2421 # would cause problems or look ugly.
2422 # WARNING: Use '\'' to represent an apostrophe within the trap.
2423 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2424 trap 'exit_status=$?
2425 # Save into config.log some information that might help in debugging.
2429 $as_echo "## ---------------- ##
2430 ## Cache variables. ##
2431 ## ---------------- ##"
2433 # The following way of writing the cache mishandles newlines in values,
2435 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2436 eval ac_val=\$$ac_var
2440 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2441 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2444 _ | IFS | as_nl) ;; #(
2445 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2446 *) { eval $ac_var=; unset $ac_var;} ;;
2451 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2452 *${as_nl}ac_space=\ *)
2454 "s/'\''/'\''\\\\'\'''\''/g;
2455 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2458 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2465 $as_echo "## ----------------- ##
2466 ## Output variables. ##
2467 ## ----------------- ##"
2469 for ac_var in $ac_subst_vars
2471 eval ac_val=\$$ac_var
2473 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2475 $as_echo "$ac_var='\''$ac_val'\''"
2479 if test -n "$ac_subst_files"; then
2480 $as_echo "## ------------------- ##
2481 ## File substitutions. ##
2482 ## ------------------- ##"
2484 for ac_var
in $ac_subst_files
2486 eval ac_val
=\$
$ac_var
2488 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2490 $as_echo "$ac_var='\''$ac_val'\''"
2495 if test -s confdefs.h; then
2496 $as_echo "## ----------- ##
2503 test "$ac_signal" != 0 &&
2504 $as_echo "$as_me: caught signal $ac_signal"
2505 $as_echo "$as_me: exit $exit_status"
2507 rm -f core *.core core.conftest.* &&
2508 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2511 for ac_signal
in 1 2 13 15; do
2512 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2516 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2517 rm -f -r conftest
* confdefs.h
2519 $as_echo "/* confdefs.h */" > confdefs.h
2521 # Predefined preprocessor variables.
2523 cat >>confdefs.h
<<_ACEOF
2524 #define PACKAGE_NAME "$PACKAGE_NAME"
2527 cat >>confdefs.h
<<_ACEOF
2528 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2531 cat >>confdefs.h
<<_ACEOF
2532 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2535 cat >>confdefs.h
<<_ACEOF
2536 #define PACKAGE_STRING "$PACKAGE_STRING"
2539 cat >>confdefs.h
<<_ACEOF
2540 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2543 cat >>confdefs.h
<<_ACEOF
2544 #define PACKAGE_URL "$PACKAGE_URL"
2548 # Let the site file select an alternate cache file if it wants to.
2549 # Prefer an explicitly selected file to automatically selected ones.
2552 if test -n "$CONFIG_SITE"; then
2553 # We do not want a PATH search for config.site.
2554 case $CONFIG_SITE in #((
2555 -*) ac_site_file1
=.
/$CONFIG_SITE;;
2556 */*) ac_site_file1
=$CONFIG_SITE;;
2557 *) ac_site_file1
=.
/$CONFIG_SITE;;
2559 elif test "x$prefix" != xNONE
; then
2560 ac_site_file1
=$prefix/share
/config.site
2561 ac_site_file2
=$prefix/etc
/config.site
2563 ac_site_file1
=$ac_default_prefix/share
/config.site
2564 ac_site_file2
=$ac_default_prefix/etc
/config.site
2566 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
2568 test "x$ac_site_file" = xNONE
&& continue
2569 if test /dev
/null
!= "$ac_site_file" && test -r "$ac_site_file"; then
2570 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2571 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2572 sed 's/^/| /' "$ac_site_file" >&5
2574 ||
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2575 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2576 as_fn_error $?
"failed to load site script $ac_site_file
2577 See \`config.log' for more details" "$LINENO" 5; }
2581 if test -r "$cache_file"; then
2582 # Some versions of bash will fail to source /dev/null (special files
2583 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2584 if test /dev
/null
!= "$cache_file" && test -f "$cache_file"; then
2585 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2586 $as_echo "$as_me: loading cache $cache_file" >&6;}
2588 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2589 *) .
"./$cache_file";;
2593 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2594 $as_echo "$as_me: creating cache $cache_file" >&6;}
2598 as_fn_append ac_header_list
" stdlib.h"
2599 as_fn_append ac_header_list
" unistd.h"
2600 as_fn_append ac_header_list
" sys/param.h"
2601 # Check that the precious variables saved in the cache have kept the same
2603 ac_cache_corrupted
=false
2604 for ac_var
in $ac_precious_vars; do
2605 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2606 eval ac_new_set
=\
$ac_env_${ac_var}_set
2607 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2608 eval ac_new_val
=\
$ac_env_${ac_var}_value
2609 case $ac_old_set,$ac_new_set in
2611 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2612 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2613 ac_cache_corrupted
=: ;;
2615 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2616 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2617 ac_cache_corrupted
=: ;;
2620 if test "x$ac_old_val" != "x$ac_new_val"; then
2621 # differences in whitespace do not lead to failure.
2622 ac_old_val_w
=`echo x $ac_old_val`
2623 ac_new_val_w
=`echo x $ac_new_val`
2624 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2625 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2626 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2627 ac_cache_corrupted
=:
2629 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2630 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2631 eval $ac_var=\
$ac_old_val
2633 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2634 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2635 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2636 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2639 # Pass precious variables to config.status.
2640 if test "$ac_new_set" = set; then
2642 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2643 *) ac_arg
=$ac_var=$ac_new_val ;;
2645 case " $ac_configure_args " in
2646 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2647 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
2651 if $ac_cache_corrupted; then
2652 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2653 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2654 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2655 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2656 as_fn_error $?
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2658 ## -------------------- ##
2659 ## Main body of script. ##
2660 ## -------------------- ##
2663 ac_cpp
='$CPP $CPPFLAGS'
2664 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2665 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2666 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2671 for ac_dir
in config
"$srcdir"/config
; do
2672 if test -f "$ac_dir/install-sh"; then
2674 ac_install_sh
="$ac_aux_dir/install-sh -c"
2676 elif test -f "$ac_dir/install.sh"; then
2678 ac_install_sh
="$ac_aux_dir/install.sh -c"
2680 elif test -f "$ac_dir/shtool"; then
2682 ac_install_sh
="$ac_aux_dir/shtool install -c"
2686 if test -z "$ac_aux_dir"; then
2687 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2690 # These three variables are undocumented and unsupported,
2691 # and are intended to be withdrawn in a future Autoconf release.
2692 # They can cause serious problems if a builder's source tree is in a directory
2693 # whose full name contains unusual characters.
2694 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2695 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2696 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2699 ac_config_headers
="$ac_config_headers lib/config.h"
2705 E2FSPROGS_VERSION
=`grep E2FSPROGS_VERSION ${srcdir}/version.h \
2706 | awk '{print $3}' | tr \" " " | awk '{print $1}'`
2707 DATE
=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
2709 E2FSPROGS_DAY
=`echo $DATE | awk -F- '{print $1}'`
2710 MONTH
=`echo $DATE | awk -F- '{print $2}'`
2711 YEAR
=`echo $DATE | awk -F- '{print $3}'`
2713 if expr $YEAR ">" 1900 > /dev
/null
; then
2714 E2FSPROGS_YEAR
=$YEAR
2715 elif expr $YEAR ">" 90 >/dev
/null
; then
2716 E2FSPROGS_YEAR
=19$YEAR
2718 E2FSPROGS_YEAR
=20$YEAR
2722 Jan
) MONTH_NUM
=01; E2FSPROGS_MONTH
="January" ;;
2723 Feb
) MONTH_NUM
=02; E2FSPROGS_MONTH
="February" ;;
2724 Mar
) MONTH_NUM
=03; E2FSPROGS_MONTH
="March" ;;
2725 Apr
) MONTH_NUM
=04; E2FSPROGS_MONTH
="April" ;;
2726 May
) MONTH_NUM
=05; E2FSPROGS_MONTH
="May" ;;
2727 Jun
) MONTH_NUM
=06; E2FSPROGS_MONTH
="June" ;;
2728 Jul
) MONTH_NUM
=07; E2FSPROGS_MONTH
="July" ;;
2729 Aug
) MONTH_NUM
=08; E2FSPROGS_MONTH
="August" ;;
2730 Sep
) MONTH_NUM
=09; E2FSPROGS_MONTH
="September" ;;
2731 Oct
) MONTH_NUM
=10; E2FSPROGS_MONTH
="October" ;;
2732 Nov
) MONTH_NUM
=11; E2FSPROGS_MONTH
="November" ;;
2733 Dec
) MONTH_NUM
=12; E2FSPROGS_MONTH
="December" ;;
2734 *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unknown month $MONTH??" >&5
2735 $as_echo "$as_me: WARNING: Unknown month $MONTH??" >&2;} ;;
2738 base_ver
=`echo $E2FSPROGS_VERSION | \
2739 sed -e 's/-WIP//' -e 's/pre-//' -e 's/-PLUS//'`
2741 date_spec
=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY}
2743 case $E2FSPROGS_VERSION in
2745 E2FSPROGS_PKGVER
="$base_ver~WIP-$E2FSPROGS_YEAR-$MONTH_NUM-$E2FSPROGS_DAY"
2748 E2FSPROGS_PKGVER
="$base_ver"
2752 unset DATE MONTH YEAR base_ver pre_vers date_spec
2753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&5
2754 $as_echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&6; }
2755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&5
2756 $as_echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&6; }
2762 # Make sure we can run config.sub.
2763 $SHELL "$ac_aux_dir/config.sub
" sun4 >/dev/null 2>&1 ||
2764 as_fn_error $? "cannot run
$SHELL $ac_aux_dir/config.sub
" "$LINENO" 5
2766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system
type" >&5
2767 $as_echo_n "checking build system
type...
" >&6; }
2768 if ${ac_cv_build+:} false; then :
2769 $as_echo_n "(cached
) " >&6
2771 ac_build_alias=$build_alias
2772 test "x
$ac_build_alias" = x &&
2773 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess
"`
2774 test "x
$ac_build_alias" = x &&
2775 as_fn_error $? "cannot guess build
type; you must specify one
" "$LINENO" 5
2776 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub
" $ac_build_alias` ||
2777 as_fn_error $? "$SHELL $ac_aux_dir/config.sub
$ac_build_alias failed
" "$LINENO" 5
2780 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_build" >&5
2781 $as_echo "$ac_cv_build" >&6; }
2782 case $ac_cv_build in
2784 *) as_fn_error $? "invalid value of canonical build
" "$LINENO" 5;;
2787 ac_save_IFS=$IFS; IFS='-'
2793 # Remember, the first character of IFS is used to create $*,
2794 # except with old shells:
2797 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
host system
type" >&5
2801 $as_echo_n "checking
host system
type...
" >&6; }
2802 if ${ac_cv_host+:} false; then :
2803 $as_echo_n "(cached
) " >&6
2805 if test "x
$host_alias" = x; then
2806 ac_cv_host=$ac_cv_build
2808 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub
" $host_alias` ||
2809 as_fn_error $? "$SHELL $ac_aux_dir/config.sub
$host_alias failed
" "$LINENO" 5
2813 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_host" >&5
2814 $as_echo "$ac_cv_host" >&6; }
2817 *) as_fn_error $? "invalid value of canonical
host" "$LINENO" 5;;
2820 ac_save_IFS=$IFS; IFS='-'
2826 # Remember, the first character of IFS is used to create $*,
2827 # except with old shells:
2830 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2835 ac_cpp='$CPP $CPPFLAGS'
2836 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2837 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2838 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2839 if test -n "$ac_tool_prefix"; then
2840 # Extract the first word of "${ac_tool_prefix}gcc
", so it can be a program name with args.
2841 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
2843 $as_echo_n "checking
for $ac_word...
" >&6; }
2844 if ${ac_cv_prog_CC+:} false; then :
2845 $as_echo_n "(cached
) " >&6
2847 if test -n "$CC"; then
2848 ac_cv_prog_CC="$CC" # Let the user override the test.
2850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2854 test -z "$as_dir" && as_dir=.
2855 for ac_exec_ext in '' $ac_executable_extensions; do
2856 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2857 ac_cv_prog_CC="${ac_tool_prefix}gcc
"
2858 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
2868 if test -n "$CC"; then
2869 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CC" >&5
2870 $as_echo "$CC" >&6; }
2872 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
2873 $as_echo "no
" >&6; }
2878 if test -z "$ac_cv_prog_CC"; then
2880 # Extract the first word of "gcc
", so it can be a program name with args.
2881 set dummy gcc; ac_word=$2
2882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
2883 $as_echo_n "checking
for $ac_word...
" >&6; }
2884 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2885 $as_echo_n "(cached
) " >&6
2887 if test -n "$ac_ct_CC"; then
2888 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2894 test -z "$as_dir" && as_dir=.
2895 for ac_exec_ext in '' $ac_executable_extensions; do
2896 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2897 ac_cv_prog_ac_ct_CC="gcc
"
2898 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
2907 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2908 if test -n "$ac_ct_CC"; then
2909 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_CC" >&5
2910 $as_echo "$ac_ct_CC" >&6; }
2912 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
2913 $as_echo "no
" >&6; }
2916 if test "x
$ac_ct_CC" = x; then
2919 case $cross_compiling:$ac_tool_warned in
2921 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
2922 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
2923 ac_tool_warned=yes ;;
2931 if test -z "$CC"; then
2932 if test -n "$ac_tool_prefix"; then
2933 # Extract the first word of "${ac_tool_prefix}cc
", so it can be a program name with args.
2934 set dummy ${ac_tool_prefix}cc; ac_word=$2
2935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
2936 $as_echo_n "checking
for $ac_word...
" >&6; }
2937 if ${ac_cv_prog_CC+:} false; then :
2938 $as_echo_n "(cached
) " >&6
2940 if test -n "$CC"; then
2941 ac_cv_prog_CC="$CC" # Let the user override the test.
2943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2947 test -z "$as_dir" && as_dir=.
2948 for ac_exec_ext in '' $ac_executable_extensions; do
2949 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2950 ac_cv_prog_CC="${ac_tool_prefix}cc
"
2951 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
2961 if test -n "$CC"; then
2962 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CC" >&5
2963 $as_echo "$CC" >&6; }
2965 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
2966 $as_echo "no
" >&6; }
2972 if test -z "$CC"; then
2973 # Extract the first word of "cc
", so it can be a program name with args.
2974 set dummy cc; ac_word=$2
2975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
2976 $as_echo_n "checking
for $ac_word...
" >&6; }
2977 if ${ac_cv_prog_CC+:} false; then :
2978 $as_echo_n "(cached
) " >&6
2980 if test -n "$CC"; then
2981 ac_cv_prog_CC="$CC" # Let the user override the test.
2984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2988 test -z "$as_dir" && as_dir=.
2989 for ac_exec_ext in '' $ac_executable_extensions; do
2990 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2991 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr
/ucb
/cc
"; then
2992 ac_prog_rejected=yes
2996 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
3003 if test $ac_prog_rejected = yes; then
3004 # We found a bogon in the path, so make sure we never use it.
3005 set dummy $ac_cv_prog_CC
3007 if test $# != 0; then
3008 # We chose a different compiler from the bogus one.
3009 # However, it has the same basename, so the bogon will be chosen
3010 # first if we set CC to just the basename; use the full file name.
3012 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@
"
3018 if test -n "$CC"; then
3019 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CC" >&5
3020 $as_echo "$CC" >&6; }
3022 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
3023 $as_echo "no
" >&6; }
3028 if test -z "$CC"; then
3029 if test -n "$ac_tool_prefix"; then
3030 for ac_prog in cl.exe
3032 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3033 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
3035 $as_echo_n "checking
for $ac_word...
" >&6; }
3036 if ${ac_cv_prog_CC+:} false; then :
3037 $as_echo_n "(cached
) " >&6
3039 if test -n "$CC"; then
3040 ac_cv_prog_CC="$CC" # Let the user override the test.
3042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3046 test -z "$as_dir" && as_dir=.
3047 for ac_exec_ext in '' $ac_executable_extensions; do
3048 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3049 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3050 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
3060 if test -n "$CC"; then
3061 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CC" >&5
3062 $as_echo "$CC" >&6; }
3064 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
3065 $as_echo "no
" >&6; }
3069 test -n "$CC" && break
3072 if test -z "$CC"; then
3074 for ac_prog in cl.exe
3076 # Extract the first word of "$ac_prog", so it can be a program name with args.
3077 set dummy $ac_prog; ac_word=$2
3078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
3079 $as_echo_n "checking
for $ac_word...
" >&6; }
3080 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3081 $as_echo_n "(cached
) " >&6
3083 if test -n "$ac_ct_CC"; then
3084 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3090 test -z "$as_dir" && as_dir=.
3091 for ac_exec_ext in '' $ac_executable_extensions; do
3092 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3093 ac_cv_prog_ac_ct_CC="$ac_prog"
3094 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
3103 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3104 if test -n "$ac_ct_CC"; then
3105 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_CC" >&5
3106 $as_echo "$ac_ct_CC" >&6; }
3108 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
3109 $as_echo "no
" >&6; }
3113 test -n "$ac_ct_CC" && break
3116 if test "x
$ac_ct_CC" = x; then
3119 case $cross_compiling:$ac_tool_warned in
3121 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
3122 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
3123 ac_tool_warned=yes ;;
3132 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
3133 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3134 as_fn_error $? "no acceptable C compiler found in \$PATH
3135 See \`config.log' for more details
" "$LINENO" 5; }
3137 # Provide some information about the compiler.
3138 $as_echo "$as_me:${as_lineno-$LINENO}: checking
for C compiler version
" >&5
3141 for ac_option in --version -v -V -qversion; do
3142 { { ac_try="$ac_compiler $ac_option >&5"
3144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3145 *) ac_try_echo=$ac_try;;
3147 eval ac_try_echo="\"\
$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3148 $as_echo "$ac_try_echo"; } >&5
3149 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3151 if test -s conftest.err; then
3153 ... rest of stderr output deleted ...
3154 10q' conftest.err >conftest.er1
3155 cat conftest.er1 >&5
3157 rm -f conftest.er1 conftest.err
3158 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
3159 test $ac_status = 0; }
3162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3163 /* end confdefs.h. */
3173 ac_clean_files_save=$ac_clean_files
3174 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out
"
3175 # Try to create an executable without -o first, disregard a.out.
3176 # It will help us diagnose broken compilers, and finding out an intuition
3178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works
" >&5
3179 $as_echo_n "checking whether the C compiler works...
" >&6; }
3180 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3182 # The possible output files:
3183 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.
*"
3186 for ac_file in $ac_files
3189 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3190 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3195 if { { ac_try="$ac_link_default"
3197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3198 *) ac_try_echo=$ac_try;;
3200 eval ac_try_echo="\"\
$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3201 $as_echo "$ac_try_echo"; } >&5
3202 (eval "$ac_link_default") 2>&5
3204 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
3205 test $ac_status = 0; }; then :
3206 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3207 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3208 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3209 # so that the user can short-circuit this test for compilers unknown to
3211 for ac_file in $ac_files ''
3213 test -f "$ac_file" || continue
3215 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3218 # We found the default executable, but exeext='' is most
3222 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3224 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3226 # We set ac_cv_exeext here because the later test for it is not
3227 # safe: cross compilers may not add the suffix if given an `-o'
3228 # argument, so we may need to know it at that point already.
3229 # Even if this section looks crufty: it has the advantage of
3236 test "$ac_cv_exeext" = no && ac_cv_exeext=
3241 if test -z "$ac_file"; then :
3242 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
3243 $as_echo "no
" >&6; }
3244 $as_echo "$as_me: failed program was
:" >&5
3245 sed 's/^/| /' conftest.$ac_ext >&5
3247 { { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
3248 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3249 as_fn_error 77 "C compiler cannot create executables
3250 See \`config.log' for more details
" "$LINENO" 5; }
3252 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
3253 $as_echo "yes" >&6; }
3255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for C compiler default output
file name
" >&5
3256 $as_echo_n "checking
for C compiler default output
file name...
" >&6; }
3257 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_file" >&5
3258 $as_echo "$ac_file" >&6; }
3259 ac_exeext=$ac_cv_exeext
3261 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3262 ac_clean_files=$ac_clean_files_save
3263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for suffix of executables
" >&5
3264 $as_echo_n "checking
for suffix of executables...
" >&6; }
3265 if { { ac_try="$ac_link"
3267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3268 *) ac_try_echo=$ac_try;;
3270 eval ac_try_echo="\"\
$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3271 $as_echo "$ac_try_echo"; } >&5
3272 (eval "$ac_link") 2>&5
3274 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
3275 test $ac_status = 0; }; then :
3276 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3277 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3278 # work properly (i.e., refer to `conftest.exe'), while it won't with
3280 for ac_file in conftest.exe conftest conftest.*; do
3281 test -f "$ac_file" || continue
3283 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3284 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3290 { { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
3291 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3292 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3293 See \`config.log' for more details
" "$LINENO" 5; }
3295 rm -f conftest conftest$ac_cv_exeext
3296 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_exeext" >&5
3297 $as_echo "$ac_cv_exeext" >&6; }
3299 rm -f conftest.$ac_ext
3300 EXEEXT=$ac_cv_exeext
3302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3303 /* end confdefs.h. */
3308 FILE *f = fopen ("conftest.out
", "w
");
3309 return ferror (f) || fclose (f) != 0;
3315 ac_clean_files="$ac_clean_files conftest.out
"
3316 # Check that the compiler produces executables we can run. If not, either
3317 # the compiler is broken, or we cross compile.
3318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling
" >&5
3319 $as_echo_n "checking whether we are cross compiling...
" >&6; }
3320 if test "$cross_compiling" != yes; then
3321 { { ac_try="$ac_link"
3323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3324 *) ac_try_echo=$ac_try;;
3326 eval ac_try_echo="\"\
$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3327 $as_echo "$ac_try_echo"; } >&5
3328 (eval "$ac_link") 2>&5
3330 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
3331 test $ac_status = 0; }
3332 if { ac_try='./conftest$ac_cv_exeext'
3333 { { case "(($ac_try" in
3334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3335 *) ac_try_echo=$ac_try;;
3337 eval ac_try_echo="\"\
$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3338 $as_echo "$ac_try_echo"; } >&5
3339 (eval "$ac_try") 2>&5
3341 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
3342 test $ac_status = 0; }; }; then
3345 if test "$cross_compiling" = maybe; then
3348 { { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
3349 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3350 as_fn_error $? "cannot run C compiled programs.
3351 If you meant to cross compile, use \`--host'.
3352 See \
`config.log' for more details" "$LINENO" 5; }
3356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3357 $as_echo "$cross_compiling" >&6; }
3359 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3360 ac_clean_files=$ac_clean_files_save
3361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3362 $as_echo_n "checking for suffix of object files... " >&6; }
3363 if ${ac_cv_objext+:} false; then :
3364 $as_echo_n "(cached) " >&6
3366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3367 /* end confdefs.h. */
3377 rm -f conftest.o conftest.obj
3378 if { { ac_try="$ac_compile"
3380 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3381 *) ac_try_echo
=$ac_try;;
3383 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3384 $as_echo "$ac_try_echo"; } >&5
3385 (eval "$ac_compile") 2>&5
3387 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3388 test $ac_status = 0; }; then :
3389 for ac_file
in conftest.o conftest.obj conftest.
*; do
3390 test -f "$ac_file" ||
continue;
3392 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM
) ;;
3393 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
3398 $as_echo "$as_me: failed program was:" >&5
3399 sed 's/^/| /' conftest.
$ac_ext >&5
3401 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3402 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3403 as_fn_error $?
"cannot compute suffix of object files: cannot compile
3404 See \`config.log' for more details" "$LINENO" 5; }
3406 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
3408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3409 $as_echo "$ac_cv_objext" >&6; }
3410 OBJEXT
=$ac_cv_objext
3412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3413 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3414 if ${ac_cv_c_compiler_gnu+:} false
; then :
3415 $as_echo_n "(cached) " >&6
3417 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3418 /* end confdefs.h. */
3431 if ac_fn_c_try_compile
"$LINENO"; then :
3436 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3437 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
3440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3441 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3442 if test $ac_compiler_gnu = yes; then
3447 ac_test_CFLAGS
=${CFLAGS+set}
3448 ac_save_CFLAGS
=$CFLAGS
3449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3450 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3451 if ${ac_cv_prog_cc_g+:} false
; then :
3452 $as_echo_n "(cached) " >&6
3454 ac_save_c_werror_flag
=$ac_c_werror_flag
3455 ac_c_werror_flag
=yes
3458 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3459 /* end confdefs.h. */
3469 if ac_fn_c_try_compile
"$LINENO"; then :
3473 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3474 /* end confdefs.h. */
3484 if ac_fn_c_try_compile
"$LINENO"; then :
3487 ac_c_werror_flag
=$ac_save_c_werror_flag
3489 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3490 /* end confdefs.h. */
3500 if ac_fn_c_try_compile
"$LINENO"; then :
3503 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3505 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3507 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3508 ac_c_werror_flag
=$ac_save_c_werror_flag
3510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3511 $as_echo "$ac_cv_prog_cc_g" >&6; }
3512 if test "$ac_test_CFLAGS" = set; then
3513 CFLAGS
=$ac_save_CFLAGS
3514 elif test $ac_cv_prog_cc_g = yes; then
3515 if test "$GCC" = yes; then
3521 if test "$GCC" = yes; then
3527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3528 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3529 if ${ac_cv_prog_cc_c89+:} false
; then :
3530 $as_echo_n "(cached) " >&6
3532 ac_cv_prog_cc_c89
=no
3534 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3535 /* end confdefs.h. */
3539 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3540 struct buf { int x; };
3541 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3542 static char *e (p, i)
3548 static char *f (char * (*g) (char **, int), char **p, ...)
3553 s = g (p, va_arg (v,int));
3558 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3559 function prototypes and stuff, but not '\xHH' hex character constants.
3560 These don't provoke an error unfortunately, instead are silently treated
3561 as 'x'. The following induces an error, until -std is added to get
3562 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3563 array size at least. It's necessary to write '\x00'==0 to get something
3564 that's true only with -std. */
3565 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3567 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3568 inside strings and character constants. */
3570 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3572 int test (int i, double x);
3573 struct s1 {int (*f) (int a);};
3574 struct s2 {int (*f) (double a);};
3575 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3581 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3586 for ac_arg
in '' -qlanglvl=extc89
-qlanglvl=ansi
-std \
3587 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3589 CC
="$ac_save_CC $ac_arg"
3590 if ac_fn_c_try_compile
"$LINENO"; then :
3591 ac_cv_prog_cc_c89
=$ac_arg
3593 rm -f core conftest.err conftest.
$ac_objext
3594 test "x$ac_cv_prog_cc_c89" != "xno" && break
3596 rm -f conftest.
$ac_ext
3601 case "x$ac_cv_prog_cc_c89" in
3603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3604 $as_echo "none needed" >&6; } ;;
3606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3607 $as_echo "unsupported" >&6; } ;;
3609 CC
="$CC $ac_cv_prog_cc_c89"
3610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3611 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3613 if test "x$ac_cv_prog_cc_c89" != xno
; then :
3618 ac_cpp
='$CPP $CPPFLAGS'
3619 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3620 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3621 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
3625 $as_echo_n "checking for dlopen in -ldl... " >&6; }
3626 if ${ac_cv_lib_dl_dlopen+:} false
; then :
3627 $as_echo_n "(cached) " >&6
3629 ac_check_lib_save_LIBS
=$LIBS
3631 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3632 /* end confdefs.h. */
3634 /* Override any GCC internal prototype to avoid an error.
3635 Use char because int might match the return type of a GCC
3636 builtin and then its argument prototype would still apply. */
3649 if ac_fn_c_try_link
"$LINENO"; then :
3650 ac_cv_lib_dl_dlopen
=yes
3652 ac_cv_lib_dl_dlopen
=no
3654 rm -f core conftest.err conftest.
$ac_objext \
3655 conftest
$ac_exeext conftest.
$ac_ext
3656 LIBS
=$ac_check_lib_save_LIBS
3658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
3659 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
3660 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
3663 $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
3670 # Check whether --with-diet-libc was given.
3671 if test "${with_diet_libc+set}" = set; then :
3672 withval
=$with_diet_libc; CC
="diet cc -nostdinc"
3674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: CC=$CC" >&5
3675 $as_echo "CC=$CC" >&6; }
3678 # Check whether --with-cc was given.
3679 if test "${with_cc+set}" = set; then :
3680 withval
=$with_cc; as_fn_error $?
"--with-cc no longer supported; use CC= instead" "$LINENO" 5
3684 # Check whether --with-ccopts was given.
3685 if test "${with_ccopts+set}" = set; then :
3686 withval
=$with_ccopts; as_fn_error $?
"--with-ccopts no longer supported; use CFLAGS= instead" "$LINENO" 5
3690 # Check whether --with-ldopts was given.
3691 if test "${with_ldopts+set}" = set; then :
3692 withval
=$with_ldopts; as_fn_error $?
"--with-ldopts no longer supported; use LDFLAGS= instead" "$LINENO" 5
3696 ac_cpp
='$CPP $CPPFLAGS'
3697 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3698 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3699 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3700 if test -n "$ac_tool_prefix"; then
3701 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3702 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3704 $as_echo_n "checking for $ac_word... " >&6; }
3705 if ${ac_cv_prog_CC+:} false
; then :
3706 $as_echo_n "(cached) " >&6
3708 if test -n "$CC"; then
3709 ac_cv_prog_CC
="$CC" # Let the user override the test.
3711 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3715 test -z "$as_dir" && as_dir
=.
3716 for ac_exec_ext
in '' $ac_executable_extensions; do
3717 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3718 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3719 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3729 if test -n "$CC"; then
3730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3731 $as_echo "$CC" >&6; }
3733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3734 $as_echo "no" >&6; }
3739 if test -z "$ac_cv_prog_CC"; then
3741 # Extract the first word of "gcc", so it can be a program name with args.
3742 set dummy gcc
; ac_word
=$2
3743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3744 $as_echo_n "checking for $ac_word... " >&6; }
3745 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
3746 $as_echo_n "(cached) " >&6
3748 if test -n "$ac_ct_CC"; then
3749 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3751 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3755 test -z "$as_dir" && as_dir
=.
3756 for ac_exec_ext
in '' $ac_executable_extensions; do
3757 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3758 ac_cv_prog_ac_ct_CC
="gcc"
3759 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3768 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3769 if test -n "$ac_ct_CC"; then
3770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3771 $as_echo "$ac_ct_CC" >&6; }
3773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3774 $as_echo "no" >&6; }
3777 if test "x$ac_ct_CC" = x
; then
3780 case $cross_compiling:$ac_tool_warned in
3782 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3783 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3784 ac_tool_warned
=yes ;;
3792 if test -z "$CC"; then
3793 if test -n "$ac_tool_prefix"; then
3794 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3795 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3797 $as_echo_n "checking for $ac_word... " >&6; }
3798 if ${ac_cv_prog_CC+:} false
; then :
3799 $as_echo_n "(cached) " >&6
3801 if test -n "$CC"; then
3802 ac_cv_prog_CC
="$CC" # Let the user override the test.
3804 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3808 test -z "$as_dir" && as_dir
=.
3809 for ac_exec_ext
in '' $ac_executable_extensions; do
3810 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3811 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3822 if test -n "$CC"; then
3823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3824 $as_echo "$CC" >&6; }
3826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3827 $as_echo "no" >&6; }
3833 if test -z "$CC"; then
3834 # Extract the first word of "cc", so it can be a program name with args.
3835 set dummy cc
; ac_word
=$2
3836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3837 $as_echo_n "checking for $ac_word... " >&6; }
3838 if ${ac_cv_prog_CC+:} false
; then :
3839 $as_echo_n "(cached) " >&6
3841 if test -n "$CC"; then
3842 ac_cv_prog_CC
="$CC" # Let the user override the test.
3845 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3849 test -z "$as_dir" && as_dir
=.
3850 for ac_exec_ext
in '' $ac_executable_extensions; do
3851 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3852 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3853 ac_prog_rejected
=yes
3857 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3864 if test $ac_prog_rejected = yes; then
3865 # We found a bogon in the path, so make sure we never use it.
3866 set dummy
$ac_cv_prog_CC
3868 if test $# != 0; then
3869 # We chose a different compiler from the bogus one.
3870 # However, it has the same basename, so the bogon will be chosen
3871 # first if we set CC to just the basename; use the full file name.
3873 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3879 if test -n "$CC"; then
3880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3881 $as_echo "$CC" >&6; }
3883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3884 $as_echo "no" >&6; }
3889 if test -z "$CC"; then
3890 if test -n "$ac_tool_prefix"; then
3891 for ac_prog
in cl.exe
3893 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3894 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3896 $as_echo_n "checking for $ac_word... " >&6; }
3897 if ${ac_cv_prog_CC+:} false
; then :
3898 $as_echo_n "(cached) " >&6
3900 if test -n "$CC"; then
3901 ac_cv_prog_CC
="$CC" # Let the user override the test.
3903 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3907 test -z "$as_dir" && as_dir
=.
3908 for ac_exec_ext
in '' $ac_executable_extensions; do
3909 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3910 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3921 if test -n "$CC"; then
3922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3923 $as_echo "$CC" >&6; }
3925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3926 $as_echo "no" >&6; }
3930 test -n "$CC" && break
3933 if test -z "$CC"; then
3935 for ac_prog
in cl.exe
3937 # Extract the first word of "$ac_prog", so it can be a program name with args.
3938 set dummy
$ac_prog; ac_word
=$2
3939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3940 $as_echo_n "checking for $ac_word... " >&6; }
3941 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
3942 $as_echo_n "(cached) " >&6
3944 if test -n "$ac_ct_CC"; then
3945 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3947 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3951 test -z "$as_dir" && as_dir
=.
3952 for ac_exec_ext
in '' $ac_executable_extensions; do
3953 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3954 ac_cv_prog_ac_ct_CC
="$ac_prog"
3955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3964 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3965 if test -n "$ac_ct_CC"; then
3966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3967 $as_echo "$ac_ct_CC" >&6; }
3969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3970 $as_echo "no" >&6; }
3974 test -n "$ac_ct_CC" && break
3977 if test "x$ac_ct_CC" = x
; then
3980 case $cross_compiling:$ac_tool_warned in
3982 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3983 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3984 ac_tool_warned
=yes ;;
3993 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3994 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3995 as_fn_error $?
"no acceptable C compiler found in \$PATH
3996 See \`config.log' for more details" "$LINENO" 5; }
3998 # Provide some information about the compiler.
3999 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4002 for ac_option
in --version -v -V -qversion; do
4003 { { ac_try
="$ac_compiler $ac_option >&5"
4005 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4006 *) ac_try_echo=$ac_try;;
4008 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4009 $as_echo "$ac_try_echo"; } >&5
4010 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4012 if test -s conftest.err; then
4014 ... rest of stderr output deleted ...
4015 10q' conftest.err >conftest.er1
4016 cat conftest.er1 >&5
4018 rm -f conftest.er1 conftest.err
4019 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4020 test $ac_status = 0; }
4023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4024 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4025 if ${ac_cv_c_compiler_gnu+:} false; then :
4026 $as_echo_n "(cached) " >&6
4028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4029 /* end confdefs.h. */
4042 if ac_fn_c_try_compile "$LINENO"; then :
4047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4048 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4052 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4053 if test $ac_compiler_gnu = yes; then
4058 ac_test_CFLAGS=${CFLAGS+set}
4059 ac_save_CFLAGS=$CFLAGS
4060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4061 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4062 if ${ac_cv_prog_cc_g+:} false; then :
4063 $as_echo_n "(cached) " >&6
4065 ac_save_c_werror_flag=$ac_c_werror_flag
4066 ac_c_werror_flag=yes
4069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4070 /* end confdefs.h. */
4080 if ac_fn_c_try_compile "$LINENO"; then :
4084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4085 /* end confdefs.h. */
4095 if ac_fn_c_try_compile "$LINENO"; then :
4098 ac_c_werror_flag=$ac_save_c_werror_flag
4100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4101 /* end confdefs.h. */
4111 if ac_fn_c_try_compile "$LINENO"; then :
4114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4119 ac_c_werror_flag=$ac_save_c_werror_flag
4121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4122 $as_echo "$ac_cv_prog_cc_g" >&6; }
4123 if test "$ac_test_CFLAGS" = set; then
4124 CFLAGS=$ac_save_CFLAGS
4125 elif test $ac_cv_prog_cc_g = yes; then
4126 if test "$GCC" = yes; then
4132 if test "$GCC" = yes; then
4138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4139 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4140 if ${ac_cv_prog_cc_c89+:} false; then :
4141 $as_echo_n "(cached) " >&6
4143 ac_cv_prog_cc_c89=no
4145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4146 /* end confdefs.h. */
4150 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4151 struct buf { int x; };
4152 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4153 static char *e (p, i)
4159 static char *f (char * (*g) (char **, int), char **p, ...)
4164 s = g (p, va_arg (v,int));
4169 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4170 function prototypes and stuff, but not '\xHH' hex character constants.
4171 These don't provoke an error unfortunately, instead are silently treated
4172 as 'x'. The following induces an error, until -std is added to get
4173 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4174 array size at least. It's necessary to write '\x00'==0 to get something
4175 that's true only with -std. */
4176 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4178 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4179 inside strings and character constants. */
4181 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4183 int test (int i, double x);
4184 struct s1 {int (*f) (int a);};
4185 struct s2 {int (*f) (double a);};
4186 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4192 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4197 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4198 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4200 CC="$ac_save_CC $ac_arg"
4201 if ac_fn_c_try_compile "$LINENO"; then :
4202 ac_cv_prog_cc_c89=$ac_arg
4204 rm -f core conftest.err conftest.$ac_objext
4205 test "x$ac_cv_prog_cc_c89" != "xno" && break
4207 rm -f conftest.$ac_ext
4212 case "x$ac_cv_prog_cc_c89" in
4214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4215 $as_echo "none needed" >&6; } ;;
4217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4218 $as_echo "unsupported" >&6; } ;;
4220 CC="$CC $ac_cv_prog_cc_c89"
4221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4222 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4224 if test "x$ac_cv_prog_cc_c89" != xno; then :
4229 ac_cpp='$CPP $CPPFLAGS'
4230 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4231 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4232 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4234 if test "$GCC" = yes; then
4235 RDYNAMIC="-rdynamic"
4239 ac_cpp='$CPP $CPPFLAGS'
4240 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4241 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4242 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4244 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4245 # On Suns, sometimes $CPP names a directory.
4246 if test -n "$CPP" && test -d "$CPP"; then
4249 if test -z "$CPP"; then
4250 if ${ac_cv_prog_CPP+:} false; then :
4251 $as_echo_n "(cached) " >&6
4253 # Double quotes because CPP needs to be expanded
4254 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4257 for ac_c_preproc_warn_flag in '' yes
4259 # Use a header file that comes with gcc, so configuring glibc
4260 # with a fresh cross-compiler works.
4261 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4262 # <limits.h> exists even on freestanding compilers.
4263 # On the NeXT, cc -E runs the code through the compiler's parser,
4264 # not just through cpp. "Syntax error" is here to catch this case.
4265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4266 /* end confdefs.h. */
4268 # include <limits.h>
4270 # include <assert.h>
4274 if ac_fn_c_try_cpp "$LINENO"; then :
4277 # Broken: fails on valid input.
4280 rm -f conftest.err conftest.i conftest.$ac_ext
4282 # OK, works on sane cases. Now check whether nonexistent headers
4283 # can be detected and how.
4284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4285 /* end confdefs.h. */
4286 #include <ac_nonexistent.h>
4288 if ac_fn_c_try_cpp "$LINENO"; then :
4289 # Broken: success on invalid input.
4292 # Passes both tests.
4296 rm -f conftest.err conftest.i conftest.$ac_ext
4299 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4300 rm -f conftest.i conftest.err conftest.
$ac_ext
4301 if $ac_preproc_ok; then :
4313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4314 $as_echo "$CPP" >&6; }
4316 for ac_c_preproc_warn_flag
in '' yes
4318 # Use a header file that comes with gcc, so configuring glibc
4319 # with a fresh cross-compiler works.
4320 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4321 # <limits.h> exists even on freestanding compilers.
4322 # On the NeXT, cc -E runs the code through the compiler's parser,
4323 # not just through cpp. "Syntax error" is here to catch this case.
4324 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4325 /* end confdefs.h. */
4327 # include <limits.h>
4329 # include <assert.h>
4333 if ac_fn_c_try_cpp
"$LINENO"; then :
4336 # Broken: fails on valid input.
4339 rm -f conftest.err conftest.i conftest.
$ac_ext
4341 # OK, works on sane cases. Now check whether nonexistent headers
4342 # can be detected and how.
4343 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4344 /* end confdefs.h. */
4345 #include <ac_nonexistent.h>
4347 if ac_fn_c_try_cpp
"$LINENO"; then :
4348 # Broken: success on invalid input.
4351 # Passes both tests.
4355 rm -f conftest.err conftest.i conftest.
$ac_ext
4358 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4359 rm -f conftest.i conftest.err conftest.
$ac_ext
4360 if $ac_preproc_ok; then :
4363 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4364 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4365 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
4366 See \`config.log' for more details" "$LINENO" 5; }
4370 ac_cpp
='$CPP $CPPFLAGS'
4371 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4372 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4373 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for additional special compiler flags" >&5
4376 $as_echo_n "checking for additional special compiler flags... " >&6; }
4377 if test "$GCC" = yes
4380 alpha
) addcflags
="-mieee" ;;
4383 if test "x$addcflags" != x
4385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $addcflags" >&5
4386 $as_echo "$addcflags" >&6; }
4387 CFLAGS
="$addcflags $CFLAGS"
4389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (none)" >&5
4390 $as_echo "(none)" >&6; }
4396 # Check whether --with-root-prefix was given.
4397 if test "${with_root_prefix+set}" = set; then :
4398 withval
=$with_root_prefix; root_prefix
=$withval
4402 # Check whether --enable-maintainer-mode was given.
4403 if test "${enable_maintainer_mode+set}" = set; then :
4404 enableval
=$enable_maintainer_mode; if test "$enableval" = "no"
4407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode" >&5
4408 $as_echo "Disabling maintainer mode" >&6; }
4411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling maintainer mode" >&5
4412 $as_echo "Enabling maintainer mode" >&6; }
4417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode by default" >&5
4418 $as_echo "Disabling maintainer mode by default" >&6; }
4423 # Check whether --enable-symlink-install was given.
4424 if test "${enable_symlink_install+set}" = set; then :
4425 enableval
=$enable_symlink_install; if test "$enableval" = "no"
4427 LINK_INSTALL_FLAGS
=-f
4428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install" >&5
4429 $as_echo "Disabling symlinks for install" >&6; }
4431 LINK_INSTALL_FLAGS
=-sf
4432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for install" >&5
4433 $as_echo "Enabling symlinks for install" >&6; }
4437 LINK_INSTALL_FLAGS
=-f
4438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install by default" >&5
4439 $as_echo "Disabling symlinks for install by default" >&6; }
4444 relative_symlink_defined
=
4445 # Check whether --enable-relative-symlinks was given.
4446 if test "${enable_relative_symlinks+set}" = set; then :
4447 enableval
=$enable_relative_symlinks; if test "$enableval" = "no"
4450 relative_symlink_defined
=yes
4451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
4452 $as_echo "Disabling relative symlinks for install" >&6; }
4454 SYMLINK_RELATIVE
=--relative
4455 relative_symlink_defined
=yes
4456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5
4457 $as_echo "Enabling relative symlinks for install" >&6; }
4461 # Check whether --enable-symlink-relative-symlinks was given.
4462 if test "${enable_symlink_relative_symlinks+set}" = set; then :
4463 enableval
=$enable_symlink_relative_symlinks; if test "$enableval" = "no"
4465 SYMLINK_RELATIVE
=yes
4466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
4467 $as_echo "Disabling relative symlinks for install" >&6; }
4469 SYMLINK_RELATIVE
=--relative
4470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5
4471 $as_echo "Enabling relative symlinks for install" >&6; }
4475 if test -z "$relative_symlink_defined"
4478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install by default" >&5
4479 $as_echo "Disabling relative symlinks for install by default" >&6; }
4485 # Check whether --enable-symlink-build was given.
4486 if test "${enable_symlink_build+set}" = set; then :
4487 enableval
=$enable_symlink_build; if test "$enableval" = "no"
4490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build" >&5
4491 $as_echo "Disabling symlinks for build" >&6; }
4494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for build" >&5
4495 $as_echo "Enabling symlinks for build" >&6; }
4500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build by default" >&5
4501 $as_echo "Disabling symlinks for build by default" >&6; }
4506 # Check whether --enable-verbose-makecmds was given.
4507 if test "${enable_verbose_makecmds+set}" = set; then :
4508 enableval
=$enable_verbose_makecmds; if test "$enableval" = "no"
4510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
4511 $as_echo "Disabling verbose make commands" >&6; }
4516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling verbose make commands" >&5
4517 $as_echo "Enabling verbose make commands" >&6; }
4524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
4525 $as_echo "Disabling verbose make commands" >&6; }
4535 # Check whether --enable-compression was given.
4536 if test "${enable_compression+set}" = set; then :
4537 enableval
=$enable_compression; if test "$enableval" = "no"
4539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling compression support" >&5
4540 $as_echo "Disabling compression support" >&6; }
4543 $as_echo "#define ENABLE_COMPRESSION 1" >>confdefs.h
4545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling compression support" >&5
4546 $as_echo "Enabling compression support" >&6; }
4547 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Compression support is experimental" >&5
4548 $as_echo "$as_me: WARNING: Compression support is experimental" >&2;}
4552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling compression support by default" >&5
4553 $as_echo "Disabling compression support by default" >&6; }
4558 # Check whether --enable-htree was given.
4559 if test "${enable_htree+set}" = set; then :
4560 enableval
=$enable_htree; if test "$enableval" = "no"
4563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling htree directory support" >&5
4564 $as_echo "Disabling htree directory support" >&6; }
4567 $as_echo "#define ENABLE_HTREE 1" >>confdefs.h
4569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling htree directory support" >&5
4570 $as_echo "Enabling htree directory support" >&6; }
4575 $as_echo "#define ENABLE_HTREE 1" >>confdefs.h
4577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling htree directory support by default" >&5
4578 $as_echo "Enabling htree directory support by default" >&6; }
4583 E2_PKG_CONFIG_STATIC
=--static
4586 # Check whether --enable-elf-shlibs was given.
4587 if test "${enable_elf_shlibs+set}" = set; then :
4588 enableval
=$enable_elf_shlibs; if test "$enableval" = "no"
4591 MAKEFILE_ELF
=/dev
/null
4592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries" >&5
4593 $as_echo "Disabling ELF shared libraries" >&6; }
4595 E2_PKG_CONFIG_STATIC
=
4597 MAKEFILE_ELF
=$srcdir/lib
/Makefile.elf-lib
4600 MAKEFILE_ELF
=$srcdir/lib
/Makefile.solaris-lib
4606 LDFLAG_DYNAMIC
='-Wl,-rpath-link,$(top_builddir)/lib'
4607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling ELF shared libraries" >&5
4608 $as_echo "Enabling ELF shared libraries" >&6; }
4612 MAKEFILE_ELF
=/dev
/null
4614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries by default" >&5
4615 $as_echo "Disabling ELF shared libraries by default" >&6; }
4621 # Check whether --enable-bsd-shlibs was given.
4622 if test "${enable_bsd_shlibs+set}" = set; then :
4623 enableval
=$enable_bsd_shlibs; if test "$enableval" = "no"
4626 MAKEFILE_BSDLIB
=/dev
/null
4627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries" >&5
4628 $as_echo "Disabling BSD shared libraries" >&6; }
4630 E2_PKG_CONFIG_STATIC
=
4632 MAKEFILE_BSDLIB
=$srcdir/lib
/Makefile.bsd-lib
4636 MAKEFILE_BSDLIB
=$srcdir/lib
/Makefile.darwin-lib
4640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling BSD shared libraries" >&5
4641 $as_echo "Enabling BSD shared libraries" >&6; }
4645 MAKEFILE_BSDLIB
=/dev
/null
4647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries by default" >&5
4648 $as_echo "Disabling BSD shared libraries by default" >&6; }
4654 # Check whether --enable-profile was given.
4655 if test "${enable_profile+set}" = set; then :
4656 enableval
=$enable_profile; if test "$enableval" = "no"
4659 MAKEFILE_PROFILE
=/dev
/null
4660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries" >&5
4661 $as_echo "Disabling profiling libraries" >&6; }
4664 MAKEFILE_PROFILE
=$srcdir/lib
/Makefile.profile
4665 PROFILED_LIB_EXT
=_p.a
4666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building profiling libraries" >&5
4667 $as_echo "Building profiling libraries" >&6; }
4672 MAKEFILE_PROFILE
=/dev
/null
4673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries by default" >&5
4674 $as_echo "Disabling profiling libraries by default" >&6; }
4680 # Check whether --enable-checker was given.
4681 if test "${enable_checker+set}" = set; then :
4682 enableval
=$enable_checker; if test "$enableval" = "no"
4685 MAKEFILE_CHECKER
=/dev
/null
4686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling checker libraries" >&5
4687 $as_echo "Disabling checker libraries" >&6; }
4690 MAKEFILE_CHECKER
=$srcdir/lib
/Makefile.checker
4691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building checker libraries" >&5
4692 $as_echo "Building checker libraries" >&6; }
4697 MAKEFILE_CHECKER
=/dev
/null
4698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling checker libraries by default" >&5
4699 $as_echo "Disabling checker libraries by default" >&6; }
4710 # Check whether --enable-jbd-debug was given.
4711 if test "${enable_jbd_debug+set}" = set; then :
4712 enableval
=$enable_jbd_debug; if test "$enableval" = "no"
4714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging" >&5
4715 $as_echo "Disabling journal debugging" >&6; }
4718 $as_echo "#define CONFIG_JBD_DEBUG 1" >>confdefs.h
4720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling journal debugging" >&5
4721 $as_echo "Enabling journal debugging" >&6; }
4725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging by default" >&5
4726 $as_echo "Disabling journal debugging by default" >&6; }
4730 # Check whether --enable-blkid-debug was given.
4731 if test "${enable_blkid_debug+set}" = set; then :
4732 enableval
=$enable_blkid_debug; if test "$enableval" = "no"
4734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging" >&5
4735 $as_echo "Disabling blkid debugging" >&6; }
4738 $as_echo "#define CONFIG_BLKID_DEBUG 1" >>confdefs.h
4740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling blkid debugging" >&5
4741 $as_echo "Enabling blkid debugging" >&6; }
4745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging by default" >&5
4746 $as_echo "Disabling blkid debugging by default" >&6; }
4750 # Check whether --enable-testio-debug was given.
4751 if test "${enable_testio_debug+set}" = set; then :
4752 enableval
=$enable_testio_debug;
4753 if test "$enableval" = "no"
4755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling testio debugging" >&5
4756 $as_echo "Disabling testio debugging" >&6; }
4760 $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
4762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging" >&5
4763 $as_echo "Enabling testio debugging" >&6; }
4767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging by default" >&5
4768 $as_echo "Enabling testio debugging by default" >&6; }
4769 $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
4778 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4779 if test -n "$ac_tool_prefix"; then
4780 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4781 set dummy
${ac_tool_prefix}pkg-config
; ac_word
=$2
4782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4783 $as_echo_n "checking for $ac_word... " >&6; }
4784 if ${ac_cv_path_PKG_CONFIG+:} false
; then :
4785 $as_echo_n "(cached) " >&6
4789 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
4792 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4796 test -z "$as_dir" && as_dir
=.
4797 for ac_exec_ext
in '' $ac_executable_extensions; do
4798 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4799 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
4800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4810 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
4811 if test -n "$PKG_CONFIG"; then
4812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4813 $as_echo "$PKG_CONFIG" >&6; }
4815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4816 $as_echo "no" >&6; }
4821 if test -z "$ac_cv_path_PKG_CONFIG"; then
4822 ac_pt_PKG_CONFIG
=$PKG_CONFIG
4823 # Extract the first word of "pkg-config", so it can be a program name with args.
4824 set dummy pkg-config
; ac_word
=$2
4825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4826 $as_echo_n "checking for $ac_word... " >&6; }
4827 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false
; then :
4828 $as_echo_n "(cached) " >&6
4830 case $ac_pt_PKG_CONFIG in
4832 ac_cv_path_ac_pt_PKG_CONFIG
="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4835 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4839 test -z "$as_dir" && as_dir
=.
4840 for ac_exec_ext
in '' $ac_executable_extensions; do
4841 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4842 ac_cv_path_ac_pt_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
4843 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4853 ac_pt_PKG_CONFIG
=$ac_cv_path_ac_pt_PKG_CONFIG
4854 if test -n "$ac_pt_PKG_CONFIG"; then
4855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4856 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4859 $as_echo "no" >&6; }
4862 if test "x$ac_pt_PKG_CONFIG" = x
; then
4865 case $cross_compiling:$ac_tool_warned in
4867 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4868 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4869 ac_tool_warned
=yes ;;
4871 PKG_CONFIG
=$ac_pt_PKG_CONFIG
4874 PKG_CONFIG
="$ac_cv_path_PKG_CONFIG"
4878 if test -n "$PKG_CONFIG"; then
4879 _pkg_min_version
=0.9.0
4880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4881 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4882 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4884 $as_echo "yes" >&6; }
4886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4887 $as_echo "no" >&6; }
4897 DEPPROFILED_LIBUUID
=
4899 # Check whether --enable-libuuid was given.
4900 if test "${enable_libuuid+set}" = set; then :
4901 enableval
=$enable_libuuid; if test "$enableval" = "no"
4903 if test -z "$PKG_CONFIG"; then
4904 as_fn_error $?
"pkg-config not installed; please install it." "$LINENO" 5
4907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
4908 $as_echo_n "checking for uuid_generate in -luuid... " >&6; }
4909 if ${ac_cv_lib_uuid_uuid_generate+:} false
; then :
4910 $as_echo_n "(cached) " >&6
4912 ac_check_lib_save_LIBS
=$LIBS
4913 LIBS
="-luuid $LIBUUID $LIBS"
4914 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4915 /* end confdefs.h. */
4917 /* Override any GCC internal prototype to avoid an error.
4918 Use char because int might match the return type of a GCC
4919 builtin and then its argument prototype would still apply. */
4923 char uuid_generate ();
4927 return uuid_generate ();
4932 if ac_fn_c_try_link
"$LINENO"; then :
4933 ac_cv_lib_uuid_uuid_generate
=yes
4935 ac_cv_lib_uuid_uuid_generate
=no
4937 rm -f core conftest.err conftest.
$ac_objext \
4938 conftest
$ac_exeext conftest.
$ac_ext
4939 LIBS
=$ac_check_lib_save_LIBS
4941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
4942 $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
4943 if test "x$ac_cv_lib_uuid_uuid_generate" = xyes
; then :
4944 LIBUUID
=`$PKG_CONFIG --libs uuid`;
4945 STATIC_LIBUUID
=`$PKG_CONFIG --static --libs uuid`
4947 as_fn_error $?
"external uuid library not found" "$LINENO" 5
4951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private uuid library" >&5
4952 $as_echo "Disabling private uuid library" >&6; }
4954 LIBUUID
='$(LIB)/libuuid'$LIB_EXT
4956 STATIC_LIBUUID
='$(LIB)/libuuid'$STATIC_LIB_EXT
4957 DEPSTATIC_LIBUUID
=$STATIC_LIBUUID
4958 PROFILED_LIBUUID
='$(LIB)/libuuid'$PROFILED_LIB_EXT
4959 DEPPROFILED_LIBUUID
=$PROFILED_LIBUUID
4960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library" >&5
4961 $as_echo "Enabling private uuid library" >&6; }
4965 LIBUUID
='$(LIB)/libuuid'$LIB_EXT
4967 STATIC_LIBUUID
='$(LIB)/libuuid'$STATIC_LIB_EXT
4968 DEPSTATIC_LIBUUID
=$STATIC_LIBUUID
4969 PROFILED_LIBUUID
='$(LIB)/libuuid'$PROFILED_LIB_EXT
4970 DEPPROFILED_LIBUUID
=$PROFILED_LIBUUID
4971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library by default" >&5
4972 $as_echo "Enabling private uuid library by default" >&6; }
4985 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4986 if test -n "$ac_tool_prefix"; then
4987 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4988 set dummy
${ac_tool_prefix}pkg-config
; ac_word
=$2
4989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4990 $as_echo_n "checking for $ac_word... " >&6; }
4991 if ${ac_cv_path_PKG_CONFIG+:} false
; then :
4992 $as_echo_n "(cached) " >&6
4996 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
4999 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5003 test -z "$as_dir" && as_dir
=.
5004 for ac_exec_ext
in '' $ac_executable_extensions; do
5005 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5006 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
5007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5017 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
5018 if test -n "$PKG_CONFIG"; then
5019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5020 $as_echo "$PKG_CONFIG" >&6; }
5022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5023 $as_echo "no" >&6; }
5028 if test -z "$ac_cv_path_PKG_CONFIG"; then
5029 ac_pt_PKG_CONFIG
=$PKG_CONFIG
5030 # Extract the first word of "pkg-config", so it can be a program name with args.
5031 set dummy pkg-config
; ac_word
=$2
5032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5033 $as_echo_n "checking for $ac_word... " >&6; }
5034 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false
; then :
5035 $as_echo_n "(cached) " >&6
5037 case $ac_pt_PKG_CONFIG in
5039 ac_cv_path_ac_pt_PKG_CONFIG
="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5042 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5046 test -z "$as_dir" && as_dir
=.
5047 for ac_exec_ext
in '' $ac_executable_extensions; do
5048 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5049 ac_cv_path_ac_pt_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
5050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5060 ac_pt_PKG_CONFIG
=$ac_cv_path_ac_pt_PKG_CONFIG
5061 if test -n "$ac_pt_PKG_CONFIG"; then
5062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5063 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5066 $as_echo "no" >&6; }
5069 if test "x$ac_pt_PKG_CONFIG" = x
; then
5072 case $cross_compiling:$ac_tool_warned in
5074 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5075 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5076 ac_tool_warned
=yes ;;
5078 PKG_CONFIG
=$ac_pt_PKG_CONFIG
5081 PKG_CONFIG
="$ac_cv_path_PKG_CONFIG"
5085 if test -n "$PKG_CONFIG"; then
5086 _pkg_min_version
=0.9.0
5087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5088 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5089 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5091 $as_echo "yes" >&6; }
5093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5094 $as_echo "no" >&6; }
5104 DEPPROFILED_LIBBLKID
=
5107 # Check whether --enable-libblkid was given.
5108 if test "${enable_libblkid+set}" = set; then :
5109 enableval
=$enable_libblkid; if test "$enableval" = "no"
5111 if test -z "$PKG_CONFIG"; then
5112 as_fn_error $?
"pkg-config not installed; please install it." "$LINENO" 5
5115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
5116 $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
5117 if ${ac_cv_lib_blkid_blkid_get_cache+:} false
; then :
5118 $as_echo_n "(cached) " >&6
5120 ac_check_lib_save_LIBS
=$LIBS
5121 LIBS
="-lblkid $LIBBLKID $LIBS"
5122 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5123 /* end confdefs.h. */
5125 /* Override any GCC internal prototype to avoid an error.
5126 Use char because int might match the return type of a GCC
5127 builtin and then its argument prototype would still apply. */
5131 char blkid_get_cache ();
5135 return blkid_get_cache ();
5140 if ac_fn_c_try_link
"$LINENO"; then :
5141 ac_cv_lib_blkid_blkid_get_cache
=yes
5143 ac_cv_lib_blkid_blkid_get_cache
=no
5145 rm -f core conftest.err conftest.
$ac_objext \
5146 conftest
$ac_exeext conftest.
$ac_ext
5147 LIBS
=$ac_check_lib_save_LIBS
5149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
5150 $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
5151 if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes
; then :
5152 LIBBLKID
=`$PKG_CONFIG --libs blkid`;
5153 STATIC_LIBBLKID
=`$PKG_CONFIG --static --libs blkid`
5155 as_fn_error $?
"external blkid library not found" "$LINENO" 5
5159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private blkid library" >&5
5160 $as_echo "Disabling private blkid library" >&6; }
5162 LIBBLKID
='$(LIB)/libblkid'$LIB_EXT
5163 DEPLIBBLKID
=$LIBBLKID
5164 STATIC_LIBBLKID
='$(LIB)/libblkid'$STATIC_LIB_EXT
5165 DEPSTATIC_LIBBLKID
=$STATIC_LIBBLKID
5166 PROFILED_LIBBLKID
='$(LIB)/libblkid'$PROFILED_LIB_EXT
5167 DEPPROFILED_LIBBLKID
=$PROFILED_LIBBLKID
5168 $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
5170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library" >&5
5171 $as_echo "Enabling private blkid library" >&6; }
5175 LIBBLKID
='$(LIB)/libblkid'$LIB_EXT
5176 DEPLIBBLKID
=$LIBBLKID
5177 STATIC_LIBBLKID
='$(LIB)/libblkid'$STATIC_LIB_EXT
5178 DEPSTATIC_LIBBLKID
=$STATIC_LIBBLKID
5179 PROFILED_LIBBLKID
='$(LIB)/libblkid'$PROFILED_LIB_EXT
5180 DEPPROFILED_LIBBLKID
=$PROFILED_LIBBLKID
5181 $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
5183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library by default" >&5
5184 $as_echo "Enabling private blkid library by default" >&6; }
5195 QUOTA_MAN_COMMENT
='.\"'
5200 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5201 if test -n "$ac_tool_prefix"; then
5202 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5203 set dummy
${ac_tool_prefix}pkg-config
; ac_word
=$2
5204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5205 $as_echo_n "checking for $ac_word... " >&6; }
5206 if ${ac_cv_path_PKG_CONFIG+:} false
; then :
5207 $as_echo_n "(cached) " >&6
5211 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
5214 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5218 test -z "$as_dir" && as_dir
=.
5219 for ac_exec_ext
in '' $ac_executable_extensions; do
5220 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5221 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
5222 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5232 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
5233 if test -n "$PKG_CONFIG"; then
5234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5235 $as_echo "$PKG_CONFIG" >&6; }
5237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5238 $as_echo "no" >&6; }
5243 if test -z "$ac_cv_path_PKG_CONFIG"; then
5244 ac_pt_PKG_CONFIG
=$PKG_CONFIG
5245 # Extract the first word of "pkg-config", so it can be a program name with args.
5246 set dummy pkg-config
; ac_word
=$2
5247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5248 $as_echo_n "checking for $ac_word... " >&6; }
5249 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false
; then :
5250 $as_echo_n "(cached) " >&6
5252 case $ac_pt_PKG_CONFIG in
5254 ac_cv_path_ac_pt_PKG_CONFIG
="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5257 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5261 test -z "$as_dir" && as_dir
=.
5262 for ac_exec_ext
in '' $ac_executable_extensions; do
5263 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5264 ac_cv_path_ac_pt_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
5265 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5275 ac_pt_PKG_CONFIG
=$ac_cv_path_ac_pt_PKG_CONFIG
5276 if test -n "$ac_pt_PKG_CONFIG"; then
5277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5278 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5281 $as_echo "no" >&6; }
5284 if test "x$ac_pt_PKG_CONFIG" = x
; then
5287 case $cross_compiling:$ac_tool_warned in
5289 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5290 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5291 ac_tool_warned
=yes ;;
5293 PKG_CONFIG
=$ac_pt_PKG_CONFIG
5296 PKG_CONFIG
="$ac_cv_path_PKG_CONFIG"
5300 if test -n "$PKG_CONFIG"; then
5301 _pkg_min_version
=0.9.0
5302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5303 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5304 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5306 $as_echo "yes" >&6; }
5308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5309 $as_echo "no" >&6; }
5315 # Check whether --enable-quota was given.
5316 if test "${enable_quota+set}" = set; then :
5317 enableval
=$enable_quota; if test "$enableval" = "no"
5320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling quota support" >&5
5321 $as_echo "Disabling quota support" >&6; }
5324 $as_echo "#define CONFIG_QUOTA 1" >>confdefs.h
5326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling quota support" >&5
5327 $as_echo "Enabling quota support" >&6; }
5328 QUOTA_MAN_COMMENT
=""
5334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling quota support by default" >&5
5335 $as_echo "Disabling quota support by default" >&6; }
5339 LIBQUOTA
='$(LIB)/libquota'$LIB_EXT
5340 DEPLIBQUOTA
=$LIBQUOTA
5341 STATIC_LIBQUOTA
='$(LIB)/libquota'$STATIC_LIB_EXT
5342 DEPSTATIC_LIBQUOTA
=$STATIC_LIBQUOTA
5343 PROFILED_LIBQUOTA
='$(LIB)/libquota'$PROFILED_LIB_EXT
5344 DEPPROFILED_LIBQUOTA
=$PROFILED_LIBQUOTA
5353 # Check whether --enable-backtrace was given.
5354 if test "${enable_backtrace+set}" = set; then :
5355 enableval
=$enable_backtrace; if test "$enableval" = "no"
5357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling use of backtrace" >&5
5358 $as_echo "Disabling use of backtrace" >&6; }
5359 $as_echo "#define DISABLE_BACKTRACE 1" >>confdefs.h
5362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace" >&5
5363 $as_echo "Enabling use of backtrace" >&6; }
5367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace by default" >&5
5368 $as_echo "Enabling use of backtrace by default" >&6; }
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 ${ac_cv_tls+:} false
; 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; }
5616 # Check whether --enable-mmp was given.
5617 if test "${enable_mmp+set}" = set; then :
5618 enableval
=$enable_mmp; if test "$enableval" = "no"
5620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling mmp support" >&5
5621 $as_echo "Disabling mmp support" >&6; }
5623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support" >&5
5624 $as_echo "Enabling mmp support" >&6; }
5625 $as_echo "#define CONFIG_MMP 1" >>confdefs.h
5630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support by default" >&5
5631 $as_echo "Enabling mmp support by default" >&6; }
5632 $as_echo "#define CONFIG_MMP 1" >>confdefs.h
5638 # Check whether --enable-bmap-stats was given.
5639 if test "${enable_bmap_stats+set}" = set; then :
5640 enableval
=$enable_bmap_stats; if test "$enableval" = "no"
5642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling bitmap statistics support" >&5
5643 $as_echo "Disabling bitmap statistics support" >&6; }
5645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling bitmap statistics support" >&5
5646 $as_echo "Enabling bitmap statistics support" >&6; }
5647 $as_echo "#define ENABLE_BMAP_STATS 1" >>confdefs.h
5652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling bitmap statistics support by default" >&5
5653 $as_echo "Enabling bitmap statistics support by default" >&6; }
5654 $as_echo "#define ENABLE_BMAP_STATS 1" >>confdefs.h
5660 # Check whether --enable-bmap-stats-ops was given.
5661 if test "${enable_bmap_stats_ops+set}" = set; then :
5662 enableval
=$enable_bmap_stats_ops; if test "$enableval" = "no"
5664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling additional bitmap statistics" >&5
5665 $as_echo "Disabling additional bitmap statistics" >&6; }
5667 if test "x${enable_bmap_stats}" = "xno"; then :
5668 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5669 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5670 as_fn_error $?
"Error --enable-bmap-stats-ops requires bmap-stats
5671 See \`config.log' for more details" "$LINENO" 5; }
5674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling additional bitmap statistics" >&5
5675 $as_echo "Enabling additional bitmap statistics" >&6; }
5676 $as_echo "#define ENABLE_BMAP_STATS_OPS 1" >>confdefs.h
5681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling additional bitmap statistics by default" >&5
5682 $as_echo "Disabling additional bitmap statistics by default" >&6; }
5686 MAKEFILE_LIBRARY
=$srcdir/lib
/Makefile.library
5688 GETTEXT_PACKAGE
=e2fsprogs
5690 VERSION
="$E2FSPROGS_VERSION"
5693 cat >>confdefs.h
<<_ACEOF
5694 #define PACKAGE "$PACKAGE"
5698 cat >>confdefs.h
<<_ACEOF
5699 #define VERSION "$VERSION"
5706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5707 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5709 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5710 if eval \
${ac_cv_prog_make_${ac_make}_set+:} false
; then :
5711 $as_echo_n "(cached) " >&6
5713 cat >conftest.
make <<\_ACEOF
5716 @
echo '@@@%%%=$(MAKE)=@@@%%%'
5718 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5719 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5721 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
5723 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
5727 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
5728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5729 $as_echo "yes" >&6; }
5732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5733 $as_echo "no" >&6; }
5734 SET_MAKE
="MAKE=${MAKE-make}"
5737 # Find a good install program. We prefer a C program (faster),
5738 # so one script is as good as another. But avoid the broken or
5739 # incompatible versions:
5740 # SysV /etc/install, /usr/sbin/install
5741 # SunOS /usr/etc/install
5742 # IRIX /sbin/install
5744 # AmigaOS /C/install, which installs bootblocks on floppy discs
5745 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5746 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5747 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5748 # OS/2's system install, which has a completely different semantic
5749 # ./install, which can be erroneously created by make from ./install.sh.
5750 # Reject install programs that cannot install multiple files.
5751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
5752 $as_echo_n "checking for a BSD-compatible install... " >&6; }
5753 if test -z "$INSTALL"; then
5754 if ${ac_cv_path_install+:} false
; then :
5755 $as_echo_n "(cached) " >&6
5757 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5761 test -z "$as_dir" && as_dir
=.
5762 # Account for people who put trailing slashes in PATH elements.
5763 case $as_dir/ in #((
5764 .
/ | .
// |
/[cC
]/* | \
5765 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
5766 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
5769 # OSF1 and SCO ODT 3.0 have their own names for install.
5770 # Don't use installbsd from OSF since it installs stuff as root
5772 for ac_prog
in ginstall scoinst
install; do
5773 for ac_exec_ext
in '' $ac_executable_extensions; do
5774 if as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext"; then
5775 if test $ac_prog = install &&
5776 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
5777 # AIX install. It has an incompatible calling convention.
5779 elif test $ac_prog = install &&
5780 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
5781 # program-specific install script used by HP pwplus--don't use.
5784 rm -rf conftest.one conftest.two conftest.dir
5785 echo one
> conftest.one
5786 echo two
> conftest.two
5788 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
5789 test -s conftest.one
&& test -s conftest.two
&&
5790 test -s conftest.dir
/conftest.one
&&
5791 test -s conftest.dir
/conftest.two
5793 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
5806 rm -rf conftest.one conftest.two conftest.dir
5809 if test "${ac_cv_path_install+set}" = set; then
5810 INSTALL
=$ac_cv_path_install
5812 # As a last resort, use the slow shell script. Don't cache a
5813 # value for INSTALL within a source directory, because that will
5814 # break other packages using the cache if that directory is
5815 # removed, or if the value is a relative name.
5816 INSTALL
=$ac_install_sh
5819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
5820 $as_echo "$INSTALL" >&6; }
5822 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5823 # It thinks the first close brace ends the variable substitution.
5824 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
5826 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
5828 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
5832 if test -n "$ac_aux_dir"; then
5833 case "$ac_aux_dir" in
5834 /*) MKINSTALLDIRS
="$ac_aux_dir/mkinstalldirs" ;;
5835 *) MKINSTALLDIRS
="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
5838 if test -z "$MKINSTALLDIRS"; then
5839 MKINSTALLDIRS
="\$(top_srcdir)/mkinstalldirs"
5844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
5845 $as_echo_n "checking whether NLS is requested... " >&6; }
5846 # Check whether --enable-nls was given.
5847 if test "${enable_nls+set}" = set; then :
5848 enableval
=$enable_nls; USE_NLS
=$enableval
5853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
5854 $as_echo "$USE_NLS" >&6; }
5861 # Prepare PATH_SEPARATOR.
5862 # The user is always right.
5863 if test "${PATH_SEPARATOR+set}" != set; then
5864 echo "#! /bin/sh" >conf$$.sh
5865 echo "exit 0" >>conf$$.sh
5867 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
5875 # Find out how to test for executable files. Don't use a zero-byte file,
5876 # as systems may use methods other than mode bits to determine executability.
5877 cat >conf$$.
file <<_ASEOF
5881 chmod +x conf$$.
file
5882 if test -x conf$$.
file >/dev
/null
2>&1; then
5883 ac_executable_p
="test -x"
5885 ac_executable_p
="test -f"
5889 # Extract the first word of "msgfmt", so it can be a program name with args.
5890 set dummy msgfmt
; ac_word
=$2
5891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5892 $as_echo_n "checking for $ac_word... " >&6; }
5893 if ${ac_cv_path_MSGFMT+:} false
; then :
5894 $as_echo_n "(cached) " >&6
5898 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
5901 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
5902 for ac_dir
in $PATH; do
5904 test -z "$ac_dir" && ac_dir
=.
5905 for ac_exec_ext
in '' $ac_executable_extensions; do
5906 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5907 if $ac_dir/$ac_word --statistics /dev
/null
>/dev
/null
2>&1 &&
5908 (if $ac_dir/$ac_word --statistics /dev
/null
2>&1 >/dev
/null |
grep usage
>/dev
/null
; then exit 1; else exit 0; fi); then
5909 ac_cv_path_MSGFMT
="$ac_dir/$ac_word$ac_exec_ext"
5916 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
=":"
5920 MSGFMT
="$ac_cv_path_MSGFMT"
5921 if test "$MSGFMT" != ":"; then
5922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
5923 $as_echo "$MSGFMT" >&6; }
5925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5926 $as_echo "no" >&6; }
5929 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5930 set dummy gmsgfmt
; 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 ${ac_cv_path_GMSGFMT+:} false
; then :
5934 $as_echo_n "(cached) " >&6
5938 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
5941 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5945 test -z "$as_dir" && as_dir
=.
5946 for ac_exec_ext
in '' $ac_executable_extensions; do
5947 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5948 ac_cv_path_GMSGFMT
="$as_dir/$ac_word$ac_exec_ext"
5949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5956 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
5960 GMSGFMT
=$ac_cv_path_GMSGFMT
5961 if test -n "$GMSGFMT"; then
5962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
5963 $as_echo "$GMSGFMT" >&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 "xgettext", so it can be a program name with args.
6001 set dummy xgettext
; 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 ${ac_cv_path_XGETTEXT+:} false
; then :
6005 $as_echo_n "(cached) " >&6
6009 ac_cv_path_XGETTEXT
="$XGETTEXT" # 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 --omit-header --copyright-holder= --msgid-bugs-address= /dev
/null
>/dev
/null
2>&1 &&
6019 (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
6020 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word$ac_exec_ext"
6027 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
6031 XGETTEXT
="$ac_cv_path_XGETTEXT"
6032 if test "$XGETTEXT" != ":"; then
6033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
6034 $as_echo "$XGETTEXT" >&6; }
6036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6037 $as_echo "no" >&6; }
6043 # Prepare PATH_SEPARATOR.
6044 # The user is always right.
6045 if test "${PATH_SEPARATOR+set}" != set; then
6046 echo "#! /bin/sh" >conf$$.sh
6047 echo "exit 0" >>conf$$.sh
6049 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
6057 # Find out how to test for executable files. Don't use a zero-byte file,
6058 # as systems may use methods other than mode bits to determine executability.
6059 cat >conf$$.
file <<_ASEOF
6063 chmod +x conf$$.
file
6064 if test -x conf$$.
file >/dev
/null
2>&1; then
6065 ac_executable_p
="test -x"
6067 ac_executable_p
="test -f"
6071 # Extract the first word of "msgmerge", so it can be a program name with args.
6072 set dummy msgmerge
; ac_word
=$2
6073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6074 $as_echo_n "checking for $ac_word... " >&6; }
6075 if ${ac_cv_path_MSGMERGE+:} false
; then :
6076 $as_echo_n "(cached) " >&6
6080 ac_cv_path_MSGMERGE
="$MSGMERGE" # Let the user override the test with a path.
6083 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
6084 for ac_dir
in $PATH; do
6086 test -z "$ac_dir" && ac_dir
=.
6087 for ac_exec_ext
in '' $ac_executable_extensions; do
6088 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6089 if $ac_dir/$ac_word --update -q /dev
/null
/dev
/null
>/dev
/null
2>&1; then
6090 ac_cv_path_MSGMERGE
="$ac_dir/$ac_word$ac_exec_ext"
6097 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE
=":"
6101 MSGMERGE
="$ac_cv_path_MSGMERGE"
6102 if test "$MSGMERGE" != ":"; then
6103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
6104 $as_echo "$MSGMERGE" >&6; }
6106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6107 $as_echo "no" >&6; }
6111 if test "$GMSGFMT" != ":"; then
6112 if $GMSGFMT --statistics /dev
/null
>/dev
/null
2>&1 &&
6113 (if $GMSGFMT --statistics /dev
/null
2>&1 >/dev
/null |
grep usage
>/dev
/null
; then exit 1; else exit 0; fi); then
6116 GMSGFMT
=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
6117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
6118 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
6123 if test "$XGETTEXT" != ":"; then
6124 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev
/null
>/dev
/null
2>&1 &&
6125 (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
6128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
6129 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
6135 ac_config_commands
="$ac_config_commands default-1"
6138 if test -n "$ac_tool_prefix"; then
6139 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6140 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
6141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6142 $as_echo_n "checking for $ac_word... " >&6; }
6143 if ${ac_cv_prog_RANLIB+:} false
; then :
6144 $as_echo_n "(cached) " >&6
6146 if test -n "$RANLIB"; then
6147 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
6149 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6153 test -z "$as_dir" && as_dir
=.
6154 for ac_exec_ext
in '' $ac_executable_extensions; do
6155 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6156 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
6157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6166 RANLIB
=$ac_cv_prog_RANLIB
6167 if test -n "$RANLIB"; then
6168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6169 $as_echo "$RANLIB" >&6; }
6171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6172 $as_echo "no" >&6; }
6177 if test -z "$ac_cv_prog_RANLIB"; then
6178 ac_ct_RANLIB
=$RANLIB
6179 # Extract the first word of "ranlib", so it can be a program name with args.
6180 set dummy ranlib
; ac_word
=$2
6181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6182 $as_echo_n "checking for $ac_word... " >&6; }
6183 if ${ac_cv_prog_ac_ct_RANLIB+:} false
; then :
6184 $as_echo_n "(cached) " >&6
6186 if test -n "$ac_ct_RANLIB"; then
6187 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
6189 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6193 test -z "$as_dir" && as_dir
=.
6194 for ac_exec_ext
in '' $ac_executable_extensions; do
6195 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6196 ac_cv_prog_ac_ct_RANLIB
="ranlib"
6197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6206 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
6207 if test -n "$ac_ct_RANLIB"; then
6208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6209 $as_echo "$ac_ct_RANLIB" >&6; }
6211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6212 $as_echo "no" >&6; }
6215 if test "x$ac_ct_RANLIB" = x
; then
6218 case $cross_compiling:$ac_tool_warned in
6220 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6221 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6222 ac_tool_warned
=yes ;;
6224 RANLIB
=$ac_ct_RANLIB
6227 RANLIB
="$ac_cv_prog_RANLIB"
6231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror in -lcposix" >&5
6232 $as_echo_n "checking for strerror in -lcposix... " >&6; }
6233 if ${ac_cv_lib_cposix_strerror+:} false
; then :
6234 $as_echo_n "(cached) " >&6
6236 ac_check_lib_save_LIBS
=$LIBS
6237 LIBS
="-lcposix $LIBS"
6238 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6239 /* end confdefs.h. */
6241 /* Override any GCC internal prototype to avoid an error.
6242 Use char because int might match the return type of a GCC
6243 builtin and then its argument prototype would still apply. */
6256 if ac_fn_c_try_link
"$LINENO"; then :
6257 ac_cv_lib_cposix_strerror
=yes
6259 ac_cv_lib_cposix_strerror
=no
6261 rm -f core conftest.err conftest.
$ac_objext \
6262 conftest
$ac_exeext conftest.
$ac_ext
6263 LIBS
=$ac_check_lib_save_LIBS
6265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cposix_strerror" >&5
6266 $as_echo "$ac_cv_lib_cposix_strerror" >&6; }
6267 if test "x$ac_cv_lib_cposix_strerror" = xyes
; then :
6268 LIBS
="$LIBS -lcposix"
6274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6275 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6276 if ${ac_cv_path_GREP+:} false
; then :
6277 $as_echo_n "(cached) " >&6
6279 if test -z "$GREP"; then
6280 ac_path_GREP_found
=false
6281 # Loop through the user's path and test for each of PROGNAME-LIST
6282 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6283 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
6286 test -z "$as_dir" && as_dir
=.
6287 for ac_prog
in grep ggrep
; do
6288 for ac_exec_ext
in '' $ac_executable_extensions; do
6289 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
6290 as_fn_executable_p
"$ac_path_GREP" ||
continue
6291 # Check for GNU ac_path_GREP and select it if it is found.
6292 # Check for GNU $ac_path_GREP
6293 case `"$ac_path_GREP" --version 2>&1` in
6295 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
6298 $as_echo_n 0123456789 >"conftest.in"
6301 cat "conftest.in" "conftest.in" >"conftest.tmp"
6302 mv "conftest.tmp" "conftest.in"
6303 cp "conftest.in" "conftest.nl"
6304 $as_echo 'GREP' >> "conftest.nl"
6305 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
6306 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
6307 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
6308 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6309 # Best one so far, save it but keep looking for a better one
6310 ac_cv_path_GREP
="$ac_path_GREP"
6311 ac_path_GREP_max
=$ac_count
6313 # 10*(2^10) chars as input seems more than enough
6314 test $ac_count -gt 10 && break
6316 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
6319 $ac_path_GREP_found && break 3
6324 if test -z "$ac_cv_path_GREP"; then
6325 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6328 ac_cv_path_GREP
=$GREP
6332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6333 $as_echo "$ac_cv_path_GREP" >&6; }
6334 GREP
="$ac_cv_path_GREP"
6337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6338 $as_echo_n "checking for egrep... " >&6; }
6339 if ${ac_cv_path_EGREP+:} false
; then :
6340 $as_echo_n "(cached) " >&6
6342 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
6343 then ac_cv_path_EGREP
="$GREP -E"
6345 if test -z "$EGREP"; then
6346 ac_path_EGREP_found
=false
6347 # Loop through the user's path and test for each of PROGNAME-LIST
6348 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6349 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
6352 test -z "$as_dir" && as_dir
=.
6353 for ac_prog
in egrep; do
6354 for ac_exec_ext
in '' $ac_executable_extensions; do
6355 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
6356 as_fn_executable_p
"$ac_path_EGREP" ||
continue
6357 # Check for GNU ac_path_EGREP and select it if it is found.
6358 # Check for GNU $ac_path_EGREP
6359 case `"$ac_path_EGREP" --version 2>&1` in
6361 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
6364 $as_echo_n 0123456789 >"conftest.in"
6367 cat "conftest.in" "conftest.in" >"conftest.tmp"
6368 mv "conftest.tmp" "conftest.in"
6369 cp "conftest.in" "conftest.nl"
6370 $as_echo 'EGREP' >> "conftest.nl"
6371 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
6372 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
6373 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
6374 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6375 # Best one so far, save it but keep looking for a better one
6376 ac_cv_path_EGREP
="$ac_path_EGREP"
6377 ac_path_EGREP_max
=$ac_count
6379 # 10*(2^10) chars as input seems more than enough
6380 test $ac_count -gt 10 && break
6382 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
6385 $ac_path_EGREP_found && break 3
6390 if test -z "$ac_cv_path_EGREP"; then
6391 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6394 ac_cv_path_EGREP
=$EGREP
6399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6400 $as_echo "$ac_cv_path_EGREP" >&6; }
6401 EGREP
="$ac_cv_path_EGREP"
6404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6405 $as_echo_n "checking for ANSI C header files... " >&6; }
6406 if ${ac_cv_header_stdc+:} false
; then :
6407 $as_echo_n "(cached) " >&6
6409 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6410 /* end confdefs.h. */
6424 if ac_fn_c_try_compile
"$LINENO"; then :
6425 ac_cv_header_stdc
=yes
6427 ac_cv_header_stdc
=no
6429 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6431 if test $ac_cv_header_stdc = yes; then
6432 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6433 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6434 /* end confdefs.h. */
6438 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6439 $EGREP "memchr" >/dev
/null
2>&1; then :
6442 ac_cv_header_stdc
=no
6448 if test $ac_cv_header_stdc = yes; then
6449 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6450 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6451 /* end confdefs.h. */
6455 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6456 $EGREP "free" >/dev
/null
2>&1; then :
6459 ac_cv_header_stdc
=no
6465 if test $ac_cv_header_stdc = yes; then
6466 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6467 if test "$cross_compiling" = yes; then :
6470 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6471 /* end confdefs.h. */
6474 #if ((' ' & 0x0FF) == 0x020)
6475 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6476 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6478 # define ISLOWER(c) \
6479 (('a' <= (c) && (c) <= 'i') \
6480 || ('j' <= (c) && (c) <= 'r') \
6481 || ('s' <= (c) && (c) <= 'z'))
6482 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6485 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6490 for (i = 0; i < 256; i++)
6491 if (XOR (islower (i), ISLOWER (i))
6492 || toupper (i) != TOUPPER (i))
6497 if ac_fn_c_try_run
"$LINENO"; then :
6500 ac_cv_header_stdc
=no
6502 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6503 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6509 $as_echo "$ac_cv_header_stdc" >&6; }
6510 if test $ac_cv_header_stdc = yes; then
6512 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
6517 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
6518 if ${ac_cv_c_const+:} false
; then :
6519 $as_echo_n "(cached) " >&6
6521 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6522 /* end confdefs.h. */
6529 /* Ultrix mips cc rejects this sort of thing. */
6530 typedef int charset[2];
6531 const charset cs = { 0, 0 };
6532 /* SunOS 4.1.1 cc rejects this. */
6533 char const *const *pcpcc;
6535 /* NEC SVR4.0.2 mips cc rejects this. */
6536 struct point {int x, y;};
6537 static struct point const zero = {0,0};
6538 /* AIX XL C 1.02.0.0 rejects this.
6539 It does not let you subtract one const X* pointer from another in
6540 an arm of an if-expression whose if-part is not a constant
6542 const char *g = "string";
6543 pcpcc = &g + (g ? g-g : 0);
6544 /* HPUX 7.0 cc rejects these. */
6546 ppc = (char**) pcpcc;
6547 pcpcc = (char const *const *) ppc;
6548 { /* SCO 3.2v4 cc rejects this sort of thing. */
6551 char const *s = 0 ? (char *) 0 : (char const *) 0;
6556 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6558 const int *foo = &x[0];
6561 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6562 typedef const int *iptr;
6566 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
6567 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6568 struct s { int j; const int *ap[3]; } bx;
6569 struct s *b = &bx; b->j = 5;
6571 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6575 return !cs[0] && !zero.x;
6582 if ac_fn_c_try_compile
"$LINENO"; then :
6587 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
6590 $as_echo "$ac_cv_c_const" >&6; }
6591 if test $ac_cv_c_const = no
; then
6593 $as_echo "#define const /**/" >>confdefs.h
6598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed" >&5
6599 $as_echo_n "checking for signed... " >&6; }
6600 if ${bh_cv_c_signed+:} false
; then :
6601 $as_echo_n "(cached) " >&6
6603 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6604 /* end confdefs.h. */
6614 if ac_fn_c_try_compile
"$LINENO"; then :
6619 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bh_cv_c_signed" >&5
6622 $as_echo "$bh_cv_c_signed" >&6; }
6623 if test $bh_cv_c_signed = no
; then
6625 $as_echo "#define signed /**/" >>confdefs.h
6629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
6630 $as_echo_n "checking for inline... " >&6; }
6631 if ${ac_cv_c_inline+:} false
; then :
6632 $as_echo_n "(cached) " >&6
6635 for ac_kw
in inline __inline__ __inline
; do
6636 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6637 /* end confdefs.h. */
6640 static $ac_kw foo_t static_foo () {return 0; }
6641 $ac_kw foo_t foo () {return 0; }
6645 if ac_fn_c_try_compile
"$LINENO"; then :
6646 ac_cv_c_inline
=$ac_kw
6648 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6649 test "$ac_cv_c_inline" != no
&& break
6653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
6654 $as_echo "$ac_cv_c_inline" >&6; }
6656 case $ac_cv_c_inline in
6659 case $ac_cv_c_inline in
6661 *) ac_val
=$ac_cv_c_inline;;
6663 cat >>confdefs.h
<<_ACEOF
6665 #define inline $ac_val
6671 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6672 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
6673 inttypes.h stdint.h unistd.h
6675 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6676 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6678 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
6679 cat >>confdefs.h
<<_ACEOF
6680 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6688 ac_fn_c_check_type
"$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
6689 if test "x$ac_cv_type_off_t" = xyes
; then :
6693 cat >>confdefs.h
<<_ACEOF
6694 #define off_t long int
6699 ac_fn_c_check_type
"$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6700 if test "x$ac_cv_type_size_t" = xyes
; then :
6704 cat >>confdefs.h
<<_ACEOF
6705 #define size_t unsigned int
6711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long" >&5
6712 $as_echo_n "checking for long long... " >&6; }
6713 if ${ac_cv_type_long_long+:} false
; then :
6714 $as_echo_n "(cached) " >&6
6716 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6717 /* end confdefs.h. */
6718 long long ll = 1LL; int i = 63;
6722 long long llmax = (long long) -1;
6723 return ll << i | ll >> i | llmax / ll | llmax % ll;
6728 if ac_fn_c_try_link
"$LINENO"; then :
6729 ac_cv_type_long_long
=yes
6731 ac_cv_type_long_long
=no
6733 rm -f core conftest.err conftest.
$ac_objext \
6734 conftest
$ac_exeext conftest.
$ac_ext
6736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long" >&5
6737 $as_echo "$ac_cv_type_long_long" >&6; }
6738 if test $ac_cv_type_long_long = yes; then
6740 $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
6745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
6746 $as_echo_n "checking for long double... " >&6; }
6747 if ${gt_cv_c_long_double+:} false
; then :
6748 $as_echo_n "(cached) " >&6
6750 if test "$GCC" = yes; then
6751 gt_cv_c_long_double
=yes
6753 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6754 /* end confdefs.h. */
6756 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
6757 long double foo = 0.0;
6758 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
6759 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
6769 if ac_fn_c_try_compile
"$LINENO"; then :
6770 gt_cv_c_long_double
=yes
6772 gt_cv_c_long_double
=no
6774 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_long_double" >&5
6778 $as_echo "$gt_cv_c_long_double" >&6; }
6779 if test $gt_cv_c_long_double = yes; then
6781 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
6786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
6787 $as_echo_n "checking for wchar_t... " >&6; }
6788 if ${gt_cv_c_wchar_t+:} false
; then :
6789 $as_echo_n "(cached) " >&6
6791 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6792 /* end confdefs.h. */
6794 wchar_t foo = (wchar_t)'\0';
6803 if ac_fn_c_try_compile
"$LINENO"; then :
6808 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
6811 $as_echo "$gt_cv_c_wchar_t" >&6; }
6812 if test $gt_cv_c_wchar_t = yes; then
6814 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
6819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
6820 $as_echo_n "checking for wint_t... " >&6; }
6821 if ${gt_cv_c_wint_t+:} false
; then :
6822 $as_echo_n "(cached) " >&6
6824 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6825 /* end confdefs.h. */
6827 wint_t foo = (wchar_t)'\0';
6836 if ac_fn_c_try_compile
"$LINENO"; then :
6841 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
6844 $as_echo "$gt_cv_c_wint_t" >&6; }
6845 if test $gt_cv_c_wint_t = yes; then
6847 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
6852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
6853 $as_echo_n "checking for inttypes.h... " >&6; }
6854 if ${jm_ac_cv_header_inttypes_h+:} false
; then :
6855 $as_echo_n "(cached) " >&6
6857 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6858 /* end confdefs.h. */
6859 #include <sys/types.h>
6860 #include <inttypes.h>
6864 uintmax_t i = (uintmax_t) -1;
6869 if ac_fn_c_try_compile
"$LINENO"; then :
6870 jm_ac_cv_header_inttypes_h
=yes
6872 jm_ac_cv_header_inttypes_h
=no
6874 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_inttypes_h" >&5
6877 $as_echo "$jm_ac_cv_header_inttypes_h" >&6; }
6878 if test $jm_ac_cv_header_inttypes_h = yes; then
6880 cat >>confdefs.h
<<_ACEOF
6881 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
6887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
6888 $as_echo_n "checking for stdint.h... " >&6; }
6889 if ${jm_ac_cv_header_stdint_h+:} false
; then :
6890 $as_echo_n "(cached) " >&6
6892 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6893 /* end confdefs.h. */
6894 #include <sys/types.h>
6899 uintmax_t i = (uintmax_t) -1;
6904 if ac_fn_c_try_compile
"$LINENO"; then :
6905 jm_ac_cv_header_stdint_h
=yes
6907 jm_ac_cv_header_stdint_h
=no
6909 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_stdint_h" >&5
6912 $as_echo "$jm_ac_cv_header_stdint_h" >&6; }
6913 if test $jm_ac_cv_header_stdint_h = yes; then
6915 cat >>confdefs.h
<<_ACEOF
6916 #define HAVE_STDINT_H_WITH_UINTMAX 1
6924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
6925 $as_echo_n "checking for intmax_t... " >&6; }
6926 if ${gt_cv_c_intmax_t+:} false
; then :
6927 $as_echo_n "(cached) " >&6
6929 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6930 /* end confdefs.h. */
6934 #if HAVE_STDINT_H_WITH_UINTMAX
6937 #if HAVE_INTTYPES_H_WITH_UINTMAX
6938 #include <inttypes.h>
6949 if ac_fn_c_try_compile
"$LINENO"; then :
6950 gt_cv_c_intmax_t
=yes
6954 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
6957 $as_echo "$gt_cv_c_intmax_t" >&6; }
6958 if test $gt_cv_c_intmax_t = yes; then
6960 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
6967 $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
6968 if ${gt_cv_func_printf_posix+:} false
; then :
6969 $as_echo_n "(cached) " >&6
6972 if test "$cross_compiling" = yes; then :
6974 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6975 /* end confdefs.h. */
6977 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
6982 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6983 $EGREP "notposix" >/dev
/null
2>&1; then :
6984 gt_cv_func_printf_posix
="guessing no"
6986 gt_cv_func_printf_posix
="guessing yes"
6992 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6993 /* end confdefs.h. */
6997 /* The string "%2$d %1$d", with dollar characters protected from the shell's
6998 dollar expansion (possibly an autoconf bug). */
6999 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
7000 static char buf[100];
7003 sprintf (buf, format, 33, 55);
7004 return (strcmp (buf, "55 33") != 0);
7007 if ac_fn_c_try_run
"$LINENO"; then :
7008 gt_cv_func_printf_posix
=yes
7010 gt_cv_func_printf_posix
=no
7012 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7013 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
7019 $as_echo "$gt_cv_func_printf_posix" >&6; }
7020 case $gt_cv_func_printf_posix in
7023 $as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
7028 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
7029 # for constant arguments. Useless!
7030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
7031 $as_echo_n "checking for working alloca.h... " >&6; }
7032 if ${ac_cv_working_alloca_h+:} false
; then :
7033 $as_echo_n "(cached) " >&6
7035 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7036 /* end confdefs.h. */
7041 char *p = (char *) alloca (2 * sizeof (int));
7047 if ac_fn_c_try_link
"$LINENO"; then :
7048 ac_cv_working_alloca_h
=yes
7050 ac_cv_working_alloca_h
=no
7052 rm -f core conftest.err conftest.
$ac_objext \
7053 conftest
$ac_exeext conftest.
$ac_ext
7055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
7056 $as_echo "$ac_cv_working_alloca_h" >&6; }
7057 if test $ac_cv_working_alloca_h = yes; then
7059 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
7063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
7064 $as_echo_n "checking for alloca... " >&6; }
7065 if ${ac_cv_func_alloca_works+:} false
; then :
7066 $as_echo_n "(cached) " >&6
7068 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7069 /* end confdefs.h. */
7071 # define alloca __builtin_alloca
7074 # include <malloc.h>
7075 # define alloca _alloca
7077 # ifdef HAVE_ALLOCA_H
7078 # include <alloca.h>
7083 # ifndef alloca /* predefined by HP cc +Olibcalls */
7084 void *alloca (size_t);
7094 char *p = (char *) alloca (1);
7100 if ac_fn_c_try_link
"$LINENO"; then :
7101 ac_cv_func_alloca_works
=yes
7103 ac_cv_func_alloca_works
=no
7105 rm -f core conftest.err conftest.
$ac_objext \
7106 conftest
$ac_exeext conftest.
$ac_ext
7108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
7109 $as_echo "$ac_cv_func_alloca_works" >&6; }
7111 if test $ac_cv_func_alloca_works = yes; then
7113 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
7116 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
7117 # that cause trouble. Some versions do not even contain alloca or
7118 # contain a buggy version. If you still want to use their alloca,
7119 # use ar to extract alloca.o from them instead of compiling alloca.c.
7121 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
7123 $as_echo "#define C_ALLOCA 1" >>confdefs.h
7126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
7127 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
7128 if ${ac_cv_os_cray+:} false
; then :
7129 $as_echo_n "(cached) " >&6
7131 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7132 /* end confdefs.h. */
7133 #if defined CRAY && ! defined CRAY2
7140 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7141 $EGREP "webecray" >/dev
/null
2>&1; then :
7149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
7150 $as_echo "$ac_cv_os_cray" >&6; }
7151 if test $ac_cv_os_cray = yes; then
7152 for ac_func
in _getb67 GETB67 getb67
; do
7153 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7154 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
7155 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
7157 cat >>confdefs.h
<<_ACEOF
7158 #define CRAY_STACKSEG_END $ac_func
7167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
7168 $as_echo_n "checking stack direction for C alloca... " >&6; }
7169 if ${ac_cv_c_stack_direction+:} false
; then :
7170 $as_echo_n "(cached) " >&6
7172 if test "$cross_compiling" = yes; then :
7173 ac_cv_c_stack_direction
=0
7175 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7176 /* end confdefs.h. */
7177 $ac_includes_default
7179 find_stack_direction (int *addr, int depth)
7184 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
7185 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
7190 main (int argc, char **argv)
7192 return find_stack_direction (0, argc + !argv + 20) < 0;
7195 if ac_fn_c_try_run
"$LINENO"; then :
7196 ac_cv_c_stack_direction
=1
7198 ac_cv_c_stack_direction
=-1
7200 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7201 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
7206 $as_echo "$ac_cv_c_stack_direction" >&6; }
7207 cat >>confdefs.h
<<_ACEOF
7208 #define STACK_DIRECTION $ac_cv_c_stack_direction
7217 for ac_header
in $ac_header_list
7219 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7220 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7222 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
7223 cat >>confdefs.h
<<_ACEOF
7224 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7238 for ac_func
in getpagesize
7240 ac_fn_c_check_func
"$LINENO" "getpagesize" "ac_cv_func_getpagesize"
7241 if test "x$ac_cv_func_getpagesize" = xyes
; then :
7242 cat >>confdefs.h
<<_ACEOF
7243 #define HAVE_GETPAGESIZE 1
7249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
7250 $as_echo_n "checking for working mmap... " >&6; }
7251 if ${ac_cv_func_mmap_fixed_mapped+:} false
; then :
7252 $as_echo_n "(cached) " >&6
7254 if test "$cross_compiling" = yes; then :
7255 ac_cv_func_mmap_fixed_mapped
=no
7257 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7258 /* end confdefs.h. */
7259 $ac_includes_default
7260 /* malloc might have been renamed as rpl_malloc. */
7263 /* Thanks to Mike Haertel and Jim Avera for this test.
7264 Here is a matrix of mmap possibilities:
7265 mmap private not fixed
7266 mmap private fixed at somewhere currently unmapped
7267 mmap private fixed at somewhere already mapped
7268 mmap shared not fixed
7269 mmap shared fixed at somewhere currently unmapped
7270 mmap shared fixed at somewhere already mapped
7271 For private mappings, we should verify that changes cannot be read()
7272 back from the file, nor mmap's back from the file at a different
7273 address. (There have been systems where private was not correctly
7274 implemented like the infamous i386 svr4.0, and systems where the
7275 VM page cache was not coherent with the file system buffer cache
7276 like early versions of FreeBSD and possibly contemporary NetBSD.)
7277 For shared mappings, we should conversely verify that changes get
7278 propagated back to all the places they're supposed to be.
7280 Grep wants private fixed already mapped.
7281 The main things grep needs to know about mmap are:
7282 * does it exist and is it safe to write into the mmap'd area
7283 * how to use it (BSD variants) */
7286 #include <sys/mman.h>
7288 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7292 /* This mess was copied from the GNU getpagesize.h. */
7293 #ifndef HAVE_GETPAGESIZE
7294 # ifdef _SC_PAGESIZE
7295 # define getpagesize() sysconf(_SC_PAGESIZE)
7296 # else /* no _SC_PAGESIZE */
7297 # ifdef HAVE_SYS_PARAM_H
7298 # include <sys/param.h>
7299 # ifdef EXEC_PAGESIZE
7300 # define getpagesize() EXEC_PAGESIZE
7301 # else /* no EXEC_PAGESIZE */
7303 # define getpagesize() NBPG * CLSIZE
7306 # endif /* no CLSIZE */
7307 # else /* no NBPG */
7309 # define getpagesize() NBPC
7310 # else /* no NBPC */
7312 # define getpagesize() PAGESIZE
7313 # endif /* PAGESIZE */
7314 # endif /* no NBPC */
7315 # endif /* no NBPG */
7316 # endif /* no EXEC_PAGESIZE */
7317 # else /* no HAVE_SYS_PARAM_H */
7318 # define getpagesize() 8192 /* punt totally */
7319 # endif /* no HAVE_SYS_PARAM_H */
7320 # endif /* no _SC_PAGESIZE */
7322 #endif /* no HAVE_GETPAGESIZE */
7327 char *data, *data2, *data3;
7332 pagesize = getpagesize ();
7334 /* First, make a file with some known garbage in it. */
7335 data = (char *) malloc (pagesize);
7338 for (i = 0; i < pagesize; ++i)
7339 *(data + i) = rand ();
7341 fd = creat ("conftest.mmap", 0600);
7344 if (write (fd, data, pagesize) != pagesize)
7348 /* Next, check that the tail of a page is zero-filled. File must have
7349 non-zero length, otherwise we risk SIGBUS for entire page. */
7350 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7354 if (write (fd2, cdata2, 1) != 1)
7356 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7357 if (data2 == MAP_FAILED)
7359 for (i = 0; i < pagesize; ++i)
7363 if (munmap (data2, pagesize))
7366 /* Next, try to mmap the file at a fixed address which already has
7367 something else allocated at it. If we can, also make sure that
7368 we see the same garbage. */
7369 fd = open ("conftest.mmap", O_RDWR);
7372 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7373 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7375 for (i = 0; i < pagesize; ++i)
7376 if (*(data + i) != *(data2 + i))
7379 /* Finally, make sure that changes to the mapped area do not
7380 percolate back to the file as seen by read(). (This is a bug on
7381 some variants of i386 svr4.0.) */
7382 for (i = 0; i < pagesize; ++i)
7383 *(data2 + i) = *(data2 + i) + 1;
7384 data3 = (char *) malloc (pagesize);
7387 if (read (fd, data3, pagesize) != pagesize)
7389 for (i = 0; i < pagesize; ++i)
7390 if (*(data + i) != *(data3 + i))
7396 if ac_fn_c_try_run
"$LINENO"; then :
7397 ac_cv_func_mmap_fixed_mapped
=yes
7399 ac_cv_func_mmap_fixed_mapped
=no
7401 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7402 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
7407 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
7408 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7410 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
7413 rm -f conftest.mmap conftest.txt
7416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
7417 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
7418 if ${ac_cv_gnu_library_2_1+:} false
; then :
7419 $as_echo_n "(cached) " >&6
7421 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7422 /* end confdefs.h. */
7424 #include <features.h>
7425 #ifdef __GNU_LIBRARY__
7426 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
7432 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7433 $EGREP "Lucky GNU user" >/dev
/null
2>&1; then :
7434 ac_cv_gnu_library_2_1
=yes
7436 ac_cv_gnu_library_2_1
=no
7443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
7444 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
7446 GLIBC21
="$ac_cv_gnu_library_2_1"
7451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
7452 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
7453 if ${gt_cv_int_divbyzero_sigfpe+:} false
; then :
7454 $as_echo_n "(cached) " >&6
7457 if test "$cross_compiling" = yes; then :
7459 # Guess based on the CPU.
7461 alpha
* | i3456786 | m68k | s390
*)
7462 gt_cv_int_divbyzero_sigfpe
="guessing yes";;
7464 gt_cv_int_divbyzero_sigfpe
="guessing no";;
7468 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7469 /* end confdefs.h. */
7476 sigfpe_handler (int sig)
7478 sigfpe_handler (sig) int sig;
7481 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
7482 exit (sig != SIGFPE);
7492 signal (SIGFPE, sigfpe_handler);
7493 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
7494 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
7495 signal (SIGTRAP, sigfpe_handler);
7497 /* Linux/SPARC yields signal SIGILL. */
7498 #if defined (__sparc__) && defined (__linux__)
7499 signal (SIGILL, sigfpe_handler);
7508 if ac_fn_c_try_run
"$LINENO"; then :
7509 gt_cv_int_divbyzero_sigfpe
=yes
7511 gt_cv_int_divbyzero_sigfpe
=no
7513 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7514 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
7520 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
7521 case "$gt_cv_int_divbyzero_sigfpe" in
7526 cat >>confdefs.h
<<_ACEOF
7527 #define INTDIV0_RAISES_SIGFPE $value
7532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long" >&5
7533 $as_echo_n "checking for unsigned long long... " >&6; }
7534 if ${ac_cv_type_unsigned_long_long+:} false
; then :
7535 $as_echo_n "(cached) " >&6
7537 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7538 /* end confdefs.h. */
7539 unsigned long long ull = 1ULL; int i = 63;
7543 unsigned long long ullmax = (unsigned long long) -1;
7544 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
7549 if ac_fn_c_try_link
"$LINENO"; then :
7550 ac_cv_type_unsigned_long_long
=yes
7552 ac_cv_type_unsigned_long_long
=no
7554 rm -f core conftest.err conftest.
$ac_objext \
7555 conftest
$ac_exeext conftest.
$ac_ext
7557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long" >&5
7558 $as_echo "$ac_cv_type_unsigned_long_long" >&6; }
7559 if test $ac_cv_type_unsigned_long_long = yes; then
7561 $as_echo "#define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h
7568 if test $jm_ac_cv_header_inttypes_h = no
&& test $jm_ac_cv_header_stdint_h = no
; then
7570 test $ac_cv_type_unsigned_long_long = yes \
7571 && ac_type
='unsigned long long' \
7572 || ac_type
='unsigned long'
7574 cat >>confdefs.h
<<_ACEOF
7575 #define uintmax_t $ac_type
7580 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
7585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
7586 $as_echo_n "checking for inttypes.h... " >&6; }
7587 if ${gt_cv_header_inttypes_h+:} false
; then :
7588 $as_echo_n "(cached) " >&6
7591 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7592 /* end confdefs.h. */
7593 #include <sys/types.h>
7594 #include <inttypes.h>
7603 if ac_fn_c_try_compile
"$LINENO"; then :
7604 gt_cv_header_inttypes_h
=yes
7606 gt_cv_header_inttypes_h
=no
7608 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_header_inttypes_h" >&5
7612 $as_echo "$gt_cv_header_inttypes_h" >&6; }
7613 if test $gt_cv_header_inttypes_h = yes; then
7615 cat >>confdefs.h
<<_ACEOF
7616 #define HAVE_INTTYPES_H 1
7623 if test $gt_cv_header_inttypes_h = yes; then
7624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
7625 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
7626 if ${gt_cv_inttypes_pri_broken+:} false
; then :
7627 $as_echo_n "(cached) " >&6
7630 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7631 /* end confdefs.h. */
7632 #include <inttypes.h>
7645 if ac_fn_c_try_compile
"$LINENO"; then :
7646 gt_cv_inttypes_pri_broken
=no
7648 gt_cv_inttypes_pri_broken
=yes
7650 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
7654 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
7656 if test "$gt_cv_inttypes_pri_broken" = yes; then
7658 cat >>confdefs.h
<<_ACEOF
7659 #define PRI_MACROS_BROKEN 1
7665 for ac_header
in stdint.h
7667 ac_fn_c_check_header_mongrel
"$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
7668 if test "x$ac_cv_header_stdint_h" = xyes
; then :
7669 cat >>confdefs.h
<<_ACEOF
7670 #define HAVE_STDINT_H 1
7677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
7678 $as_echo_n "checking for SIZE_MAX... " >&6; }
7680 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7681 /* end confdefs.h. */
7692 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7693 $EGREP "Found it" >/dev
/null
2>&1; then :
7698 if test -z "$result"; then
7699 if ac_fn_c_compute_int
"$LINENO" "~(size_t)0 / 10" "res_hi" "#include <stddef.h>"; then :
7706 if ac_fn_c_compute_int
"$LINENO" "~(size_t)0 % 10" "res_lo" "#include <stddef.h>"; then :
7713 if ac_fn_c_compute_int
"$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then :
7720 if test "$fits_in_uint" = 1; then
7721 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7722 /* end confdefs.h. */
7725 extern unsigned long foo;
7735 if ac_fn_c_try_compile
"$LINENO"; then :
7738 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7740 if test -z "$result"; then
7741 if test "$fits_in_uint" = 1; then
7742 result
="$res_hi$res_lo"U
7744 result
="$res_hi$res_lo"UL
7750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
7751 $as_echo "$result" >&6; }
7752 if test "$result" != yes; then
7754 cat >>confdefs.h
<<_ACEOF
7755 #define SIZE_MAX $result
7762 for ac_header
in stdint.h
7764 ac_fn_c_check_header_mongrel
"$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
7765 if test "x$ac_cv_header_stdint_h" = xyes
; then :
7766 cat >>confdefs.h
<<_ACEOF
7767 #define HAVE_STDINT_H 1
7776 if test "X$prefix" = "XNONE"; then
7777 acl_final_prefix
="$ac_default_prefix"
7779 acl_final_prefix
="$prefix"
7781 if test "X$exec_prefix" = "XNONE"; then
7782 acl_final_exec_prefix
='${prefix}'
7784 acl_final_exec_prefix
="$exec_prefix"
7786 acl_save_prefix
="$prefix"
7787 prefix
="$acl_final_prefix"
7788 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
7789 prefix
="$acl_save_prefix"
7792 # Check whether --with-gnu-ld was given.
7793 if test "${with_gnu_ld+set}" = set; then :
7794 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
7799 # Prepare PATH_SEPARATOR.
7800 # The user is always right.
7801 if test "${PATH_SEPARATOR+set}" != set; then
7802 echo "#! /bin/sh" >conf$$.sh
7803 echo "exit 0" >>conf$$.sh
7805 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
7813 if test "$GCC" = yes; then
7814 # Check if gcc -print-prog-name=ld gives a path.
7815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
7816 $as_echo_n "checking for ld used by GCC... " >&6; }
7819 # gcc leaves a trailing carriage return which upsets mingw
7820 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7822 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
7825 # Accept absolute paths.
7826 [\\/]* |
[A-Za-z
]:[\\/]*)
7827 re_direlt
='/[^/][^/]*/\.\./'
7828 # Canonicalize the path of ld
7829 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
7830 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
7831 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
7833 test -z "$LD" && LD
="$ac_prog"
7836 # If it fails, then pretend we aren't using GCC.
7840 # If it is relative, then search for the first ld in PATH.
7844 elif test "$with_gnu_ld" = yes; then
7845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7846 $as_echo_n "checking for GNU ld... " >&6; }
7848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7849 $as_echo_n "checking for non-GNU ld... " >&6; }
7851 if ${acl_cv_path_LD+:} false
; then :
7852 $as_echo_n "(cached) " >&6
7854 if test -z "$LD"; then
7855 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
7856 for ac_dir
in $PATH; do
7857 test -z "$ac_dir" && ac_dir
=.
7858 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
7859 acl_cv_path_LD
="$ac_dir/$ac_prog"
7860 # Check to see if the program is GNU ld. I'd rather use --version,
7861 # but apparently some GNU ld's only accept -v.
7862 # Break only if it was the GNU/non-GNU ld that we prefer.
7863 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
7864 *GNU
* |
*'with BFD'*)
7865 test "$with_gnu_ld" != no
&& break ;;
7867 test "$with_gnu_ld" != yes && break ;;
7873 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
7877 LD
="$acl_cv_path_LD"
7878 if test -n "$LD"; then
7879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7880 $as_echo "$LD" >&6; }
7882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7883 $as_echo "no" >&6; }
7885 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
7886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7887 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7888 if ${acl_cv_prog_gnu_ld+:} false
; then :
7889 $as_echo_n "(cached) " >&6
7891 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
7892 case `$LD -v 2>&1 </dev/null` in
7893 *GNU
* |
*'with BFD'*)
7894 acl_cv_prog_gnu_ld
=yes ;;
7896 acl_cv_prog_gnu_ld
=no
;;
7899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
7900 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
7901 with_gnu_ld
=$acl_cv_prog_gnu_ld
7905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
7906 $as_echo_n "checking for shared library run path origin... " >&6; }
7907 if ${acl_cv_rpath+:} false
; then :
7908 $as_echo_n "(cached) " >&6
7911 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
7912 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
7919 $as_echo "$acl_cv_rpath" >&6; }
7921 libext
="$acl_cv_libext"
7922 shlibext
="$acl_cv_shlibext"
7923 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
7924 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
7925 hardcode_direct
="$acl_cv_hardcode_direct"
7926 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
7927 # Check whether --enable-rpath was given.
7928 if test "${enable_rpath+set}" = set; then :
7929 enableval
=$enable_rpath; :
7943 acl_save_prefix
="$prefix"
7944 prefix
="$acl_final_prefix"
7945 acl_save_exec_prefix
="$exec_prefix"
7946 exec_prefix
="$acl_final_exec_prefix"
7948 eval additional_includedir
=\"$includedir\"
7949 eval additional_libdir
=\"$libdir\"
7951 exec_prefix
="$acl_save_exec_prefix"
7952 prefix
="$acl_save_prefix"
7955 # Check whether --with-libiconv-prefix was given.
7956 if test "${with_libiconv_prefix+set}" = set; then :
7957 withval
=$with_libiconv_prefix;
7958 if test "X$withval" = "Xno"; then
7961 if test "X$withval" = "X"; then
7963 acl_save_prefix
="$prefix"
7964 prefix
="$acl_final_prefix"
7965 acl_save_exec_prefix
="$exec_prefix"
7966 exec_prefix
="$acl_final_exec_prefix"
7968 eval additional_includedir
=\"$includedir\"
7969 eval additional_libdir
=\"$libdir\"
7971 exec_prefix
="$acl_save_exec_prefix"
7972 prefix
="$acl_save_prefix"
7975 additional_includedir
="$withval/include"
7976 additional_libdir
="$withval/lib"
7987 names_already_handled
=
7988 names_next_round
='iconv '
7989 while test -n "$names_next_round"; do
7990 names_this_round
="$names_next_round"
7992 for name
in $names_this_round; do
7994 for n
in $names_already_handled; do
7995 if test "$n" = "$name"; then
8000 if test -z "$already_handled"; then
8001 names_already_handled
="$names_already_handled $name"
8002 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
8003 eval value
=\"\
$HAVE_LIB$uppername\"
8004 if test -n "$value"; then
8005 if test "$value" = yes; then
8006 eval value
=\"\
$LIB$uppername\"
8007 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
8008 eval value
=\"\
$LTLIB$uppername\"
8009 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
8018 if test $use_additional = yes; then
8019 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
8020 found_dir
="$additional_libdir"
8021 found_so
="$additional_libdir/lib$name.$shlibext"
8022 if test -f "$additional_libdir/lib$name.la"; then
8023 found_la
="$additional_libdir/lib$name.la"
8026 if test -f "$additional_libdir/lib$name.$libext"; then
8027 found_dir
="$additional_libdir"
8028 found_a
="$additional_libdir/lib$name.$libext"
8029 if test -f "$additional_libdir/lib$name.la"; then
8030 found_la
="$additional_libdir/lib$name.la"
8035 if test "X$found_dir" = "X"; then
8036 for x
in $LDFLAGS $LTLIBICONV; do
8038 acl_save_prefix
="$prefix"
8039 prefix
="$acl_final_prefix"
8040 acl_save_exec_prefix
="$exec_prefix"
8041 exec_prefix
="$acl_final_exec_prefix"
8043 exec_prefix
="$acl_save_exec_prefix"
8044 prefix
="$acl_save_prefix"
8048 dir
=`echo "X$x" | sed -e 's/^X-L//'`
8049 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
8051 found_so
="$dir/lib$name.$shlibext"
8052 if test -f "$dir/lib$name.la"; then
8053 found_la
="$dir/lib$name.la"
8056 if test -f "$dir/lib$name.$libext"; then
8058 found_a
="$dir/lib$name.$libext"
8059 if test -f "$dir/lib$name.la"; then
8060 found_la
="$dir/lib$name.la"
8066 if test "X$found_dir" != "X"; then
8071 if test "X$found_dir" != "X"; then
8072 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
8073 if test "X$found_so" != "X"; then
8074 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
8075 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
8078 for x
in $ltrpathdirs; do
8079 if test "X$x" = "X$found_dir"; then
8084 if test -z "$haveit"; then
8085 ltrpathdirs
="$ltrpathdirs $found_dir"
8087 if test "$hardcode_direct" = yes; then
8088 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
8090 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
8091 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
8093 for x
in $rpathdirs; do
8094 if test "X$x" = "X$found_dir"; then
8099 if test -z "$haveit"; then
8100 rpathdirs
="$rpathdirs $found_dir"
8104 for x
in $LDFLAGS $LIBICONV; do
8106 acl_save_prefix
="$prefix"
8107 prefix
="$acl_final_prefix"
8108 acl_save_exec_prefix
="$exec_prefix"
8109 exec_prefix
="$acl_final_exec_prefix"
8111 exec_prefix
="$acl_save_exec_prefix"
8112 prefix
="$acl_save_prefix"
8114 if test "X$x" = "X-L$found_dir"; then
8119 if test -z "$haveit"; then
8120 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
8122 if test "$hardcode_minus_L" != no
; then
8123 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
8125 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
8131 if test "X$found_a" != "X"; then
8132 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
8134 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
8137 additional_includedir
=
8138 case "$found_dir" in
8140 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
8141 additional_includedir
="$basedir/include"
8144 if test "X$additional_includedir" != "X"; then
8145 if test "X$additional_includedir" != "X/usr/include"; then
8147 if test "X$additional_includedir" = "X/usr/local/include"; then
8148 if test -n "$GCC"; then
8150 linux
*) haveit
=yes;;
8154 if test -z "$haveit"; then
8155 for x
in $CPPFLAGS $INCICONV; 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-I$additional_includedir"; then
8170 if test -z "$haveit"; then
8171 if test -d "$additional_includedir"; then
8172 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
8178 if test -n "$found_la"; then
8179 save_libdir
="$libdir"
8181 */* |
*\\*) .
"$found_la" ;;
8182 *) .
"./$found_la" ;;
8184 libdir
="$save_libdir"
8185 for dep
in $dependency_libs; do
8188 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
8189 if test "X$additional_libdir" != "X/usr/lib"; then
8191 if test "X$additional_libdir" = "X/usr/local/lib"; then
8192 if test -n "$GCC"; then
8194 linux
*) haveit
=yes;;
8198 if test -z "$haveit"; then
8200 for x
in $LDFLAGS $LIBICONV; do
8202 acl_save_prefix
="$prefix"
8203 prefix
="$acl_final_prefix"
8204 acl_save_exec_prefix
="$exec_prefix"
8205 exec_prefix
="$acl_final_exec_prefix"
8207 exec_prefix
="$acl_save_exec_prefix"
8208 prefix
="$acl_save_prefix"
8210 if test "X$x" = "X-L$additional_libdir"; then
8215 if test -z "$haveit"; then
8216 if test -d "$additional_libdir"; then
8217 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
8221 for x
in $LDFLAGS $LTLIBICONV; do
8223 acl_save_prefix
="$prefix"
8224 prefix
="$acl_final_prefix"
8225 acl_save_exec_prefix
="$exec_prefix"
8226 exec_prefix
="$acl_final_exec_prefix"
8228 exec_prefix
="$acl_save_exec_prefix"
8229 prefix
="$acl_save_prefix"
8231 if test "X$x" = "X-L$additional_libdir"; then
8236 if test -z "$haveit"; then
8237 if test -d "$additional_libdir"; then
8238 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
8245 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
8246 if test "$enable_rpath" != no
; then
8248 for x
in $rpathdirs; do
8249 if test "X$x" = "X$dir"; then
8254 if test -z "$haveit"; then
8255 rpathdirs
="$rpathdirs $dir"
8258 for x
in $ltrpathdirs; do
8259 if test "X$x" = "X$dir"; then
8264 if test -z "$haveit"; then
8265 ltrpathdirs
="$ltrpathdirs $dir"
8270 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8273 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8276 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
8277 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
8283 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
8284 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
8290 if test "X$rpathdirs" != "X"; then
8291 if test -n "$hardcode_libdir_separator"; then
8293 for found_dir
in $rpathdirs; do
8294 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8296 acl_save_libdir
="$libdir"
8298 eval flag
=\"$hardcode_libdir_flag_spec\"
8299 libdir
="$acl_save_libdir"
8300 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
8302 for found_dir
in $rpathdirs; do
8303 acl_save_libdir
="$libdir"
8305 eval flag
=\"$hardcode_libdir_flag_spec\"
8306 libdir
="$acl_save_libdir"
8307 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
8311 if test "X$ltrpathdirs" != "X"; then
8312 for found_dir
in $ltrpathdirs; do
8313 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
8324 ac_fn_c_check_type
"$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
8325 if test "x$ac_cv_type_ptrdiff_t" = xyes
; then :
8329 $as_echo "#define ptrdiff_t long" >>confdefs.h
8334 for ac_header
in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
8335 stdlib.h string.h unistd.h sys
/param.h
8337 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8338 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8339 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
8340 cat >>confdefs.h
<<_ACEOF
8341 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8348 for ac_func
in asprintf fwprintf getcwd getegid geteuid getgid getuid \
8349 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
8350 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
8353 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8354 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
8355 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
8356 cat >>confdefs.h
<<_ACEOF
8357 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snprintf is declared" >&5
8366 $as_echo_n "checking whether _snprintf is declared... " >&6; }
8367 if ${ac_cv_have_decl__snprintf+:} false
; then :
8368 $as_echo_n "(cached) " >&6
8370 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8371 /* end confdefs.h. */
8378 char *p = (char *) _snprintf;
8385 if ac_fn_c_try_compile
"$LINENO"; then :
8386 ac_cv_have_decl__snprintf
=yes
8388 ac_cv_have_decl__snprintf
=no
8390 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snprintf" >&5
8393 $as_echo "$ac_cv_have_decl__snprintf" >&6; }
8394 if test $ac_cv_have_decl__snprintf = yes; then
8400 cat >>confdefs.h
<<_ACEOF
8401 #define HAVE_DECL__SNPRINTF $gt_value
8406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snwprintf is declared" >&5
8407 $as_echo_n "checking whether _snwprintf is declared... " >&6; }
8408 if ${ac_cv_have_decl__snwprintf+:} false
; then :
8409 $as_echo_n "(cached) " >&6
8411 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8412 /* end confdefs.h. */
8419 char *p = (char *) _snwprintf;
8426 if ac_fn_c_try_compile
"$LINENO"; then :
8427 ac_cv_have_decl__snwprintf
=yes
8429 ac_cv_have_decl__snwprintf
=no
8431 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snwprintf" >&5
8434 $as_echo "$ac_cv_have_decl__snwprintf" >&6; }
8435 if test $ac_cv_have_decl__snwprintf = yes; then
8441 cat >>confdefs.h
<<_ACEOF
8442 #define HAVE_DECL__SNWPRINTF $gt_value
8448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether feof_unlocked is declared" >&5
8449 $as_echo_n "checking whether feof_unlocked is declared... " >&6; }
8450 if ${ac_cv_have_decl_feof_unlocked+:} false
; then :
8451 $as_echo_n "(cached) " >&6
8453 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8454 /* end confdefs.h. */
8460 #ifndef feof_unlocked
8461 char *p = (char *) feof_unlocked;
8468 if ac_fn_c_try_compile
"$LINENO"; then :
8469 ac_cv_have_decl_feof_unlocked
=yes
8471 ac_cv_have_decl_feof_unlocked
=no
8473 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_feof_unlocked" >&5
8476 $as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
8477 if test $ac_cv_have_decl_feof_unlocked = yes; then
8483 cat >>confdefs.h
<<_ACEOF
8484 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
8489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fgets_unlocked is declared" >&5
8490 $as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
8491 if ${ac_cv_have_decl_fgets_unlocked+:} false
; then :
8492 $as_echo_n "(cached) " >&6
8494 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8495 /* end confdefs.h. */
8501 #ifndef fgets_unlocked
8502 char *p = (char *) fgets_unlocked;
8509 if ac_fn_c_try_compile
"$LINENO"; then :
8510 ac_cv_have_decl_fgets_unlocked
=yes
8512 ac_cv_have_decl_fgets_unlocked
=no
8514 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_fgets_unlocked" >&5
8517 $as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
8518 if test $ac_cv_have_decl_fgets_unlocked = yes; then
8524 cat >>confdefs.h
<<_ACEOF
8525 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
8530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getc_unlocked is declared" >&5
8531 $as_echo_n "checking whether getc_unlocked is declared... " >&6; }
8532 if ${ac_cv_have_decl_getc_unlocked+:} false
; then :
8533 $as_echo_n "(cached) " >&6
8535 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8536 /* end confdefs.h. */
8542 #ifndef getc_unlocked
8543 char *p = (char *) getc_unlocked;
8550 if ac_fn_c_try_compile
"$LINENO"; then :
8551 ac_cv_have_decl_getc_unlocked
=yes
8553 ac_cv_have_decl_getc_unlocked
=no
8555 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_getc_unlocked" >&5
8558 $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
8559 if test $ac_cv_have_decl_getc_unlocked = yes; then
8565 cat >>confdefs.h
<<_ACEOF
8566 #define HAVE_DECL_GETC_UNLOCKED $gt_value
8571 case $gt_cv_func_printf_posix in
8572 *yes) HAVE_POSIX_PRINTF
=1 ;;
8573 *) HAVE_POSIX_PRINTF
=0 ;;
8576 if test "$ac_cv_func_asprintf" = yes; then
8582 if test "$ac_cv_func_snprintf" = yes; then
8588 if test "$ac_cv_func_wprintf" = yes; then
8600 am_save_CPPFLAGS
="$CPPFLAGS"
8602 for element
in $INCICONV; do
8604 for x
in $CPPFLAGS; do
8606 acl_save_prefix
="$prefix"
8607 prefix
="$acl_final_prefix"
8608 acl_save_exec_prefix
="$exec_prefix"
8609 exec_prefix
="$acl_final_exec_prefix"
8611 exec_prefix
="$acl_save_exec_prefix"
8612 prefix
="$acl_save_prefix"
8614 if test "X$x" = "X$element"; then
8619 if test -z "$haveit"; then
8620 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
8625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
8626 $as_echo_n "checking for iconv... " >&6; }
8627 if ${am_cv_func_iconv+:} false
; then :
8628 $as_echo_n "(cached) " >&6
8631 am_cv_func_iconv
="no, consider installing GNU libiconv"
8633 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8634 /* end confdefs.h. */
8640 iconv_t cd = iconv_open("","");
8641 iconv(cd,NULL,NULL,NULL,NULL);
8647 if ac_fn_c_try_link
"$LINENO"; then :
8648 am_cv_func_iconv
=yes
8650 rm -f core conftest.err conftest.
$ac_objext \
8651 conftest
$ac_exeext conftest.
$ac_ext
8652 if test "$am_cv_func_iconv" != yes; then
8653 am_save_LIBS
="$LIBS"
8654 LIBS
="$LIBS $LIBICONV"
8655 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8656 /* end confdefs.h. */
8662 iconv_t cd = iconv_open("","");
8663 iconv(cd,NULL,NULL,NULL,NULL);
8669 if ac_fn_c_try_link
"$LINENO"; then :
8671 am_cv_func_iconv
=yes
8673 rm -f core conftest.err conftest.
$ac_objext \
8674 conftest
$ac_exeext conftest.
$ac_ext
8675 LIBS
="$am_save_LIBS"
8679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
8680 $as_echo "$am_cv_func_iconv" >&6; }
8681 if test "$am_cv_func_iconv" = yes; then
8683 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
8686 if test "$am_cv_lib_iconv" = yes; then
8687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
8688 $as_echo_n "checking how to link with libiconv... " >&6; }
8689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
8690 $as_echo "$LIBICONV" >&6; }
8692 CPPFLAGS
="$am_save_CPPFLAGS"
8699 if test "$am_cv_func_iconv" = yes; then
8700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
8701 $as_echo_n "checking for iconv declaration... " >&6; }
8702 if ${am_cv_proto_iconv+:} false
; then :
8703 $as_echo_n "(cached) " >&6
8706 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8707 /* end confdefs.h. */
8715 #if defined(__STDC__) || defined(__cplusplus)
8716 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
8729 if ac_fn_c_try_compile
"$LINENO"; then :
8730 am_cv_proto_iconv_arg1
=""
8732 am_cv_proto_iconv_arg1
="const"
8734 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8735 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);"
8738 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
8739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
8740 }$am_cv_proto_iconv" >&5
8742 }$am_cv_proto_iconv" >&6; }
8744 cat >>confdefs.h
<<_ACEOF
8745 #define ICONV_CONST $am_cv_proto_iconv_arg1
8751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
8752 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
8753 if ${am_cv_langinfo_codeset+:} false
; then :
8754 $as_echo_n "(cached) " >&6
8756 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8757 /* end confdefs.h. */
8758 #include <langinfo.h>
8762 char* cs = nl_langinfo(CODESET);
8767 if ac_fn_c_try_link
"$LINENO"; then :
8768 am_cv_langinfo_codeset
=yes
8770 am_cv_langinfo_codeset
=no
8772 rm -f core conftest.err conftest.
$ac_objext \
8773 conftest
$ac_exeext conftest.
$ac_ext
8776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
8777 $as_echo "$am_cv_langinfo_codeset" >&6; }
8778 if test $am_cv_langinfo_codeset = yes; then
8780 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
8784 if test $ac_cv_header_locale_h = yes; then
8786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
8787 $as_echo_n "checking for LC_MESSAGES... " >&6; }
8788 if ${am_cv_val_LC_MESSAGES+:} false
; then :
8789 $as_echo_n "(cached) " >&6
8791 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8792 /* end confdefs.h. */
8802 if ac_fn_c_try_link
"$LINENO"; then :
8803 am_cv_val_LC_MESSAGES
=yes
8805 am_cv_val_LC_MESSAGES
=no
8807 rm -f core conftest.err conftest.
$ac_objext \
8808 conftest
$ac_exeext conftest.
$ac_ext
8810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
8811 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
8812 if test $am_cv_val_LC_MESSAGES = yes; then
8814 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
8820 for ac_prog
in bison
8822 # Extract the first word of "$ac_prog", so it can be a program name with args.
8823 set dummy
$ac_prog; ac_word
=$2
8824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8825 $as_echo_n "checking for $ac_word... " >&6; }
8826 if ${ac_cv_prog_INTLBISON+:} false
; then :
8827 $as_echo_n "(cached) " >&6
8829 if test -n "$INTLBISON"; then
8830 ac_cv_prog_INTLBISON
="$INTLBISON" # Let the user override the test.
8832 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8836 test -z "$as_dir" && as_dir
=.
8837 for ac_exec_ext
in '' $ac_executable_extensions; do
8838 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8839 ac_cv_prog_INTLBISON
="$ac_prog"
8840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8849 INTLBISON
=$ac_cv_prog_INTLBISON
8850 if test -n "$INTLBISON"; then
8851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
8852 $as_echo "$INTLBISON" >&6; }
8854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8855 $as_echo "no" >&6; }
8859 test -n "$INTLBISON" && break
8862 if test -z "$INTLBISON"; then
8865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
8866 $as_echo_n "checking version of bison... " >&6; }
8867 ac_prog_version
=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
8868 case $ac_prog_version in
8869 '') ac_prog_version
="v. ?.??, bad"; ac_verc_fail
=yes;;
8870 1.2[6-9]* |
1.
[3-9][0-9]* |
[2-9].
*)
8871 ac_prog_version
="$ac_prog_version, ok"; ac_verc_fail
=no
;;
8872 *) ac_prog_version
="$ac_prog_version, bad"; ac_verc_fail
=yes;;
8874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
8875 $as_echo "$ac_prog_version" >&6; }
8877 if test $ac_verc_fail = yes; then
8896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
8897 $as_echo_n "checking whether NLS is requested... " >&6; }
8898 # Check whether --enable-nls was given.
8899 if test "${enable_nls+set}" = set; then :
8900 enableval
=$enable_nls; USE_NLS
=$enableval
8905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
8906 $as_echo "$USE_NLS" >&6; }
8911 BUILD_INCLUDED_LIBINTL
=no
8912 USE_INCLUDED_LIBINTL
=no
8918 if test "$USE_NLS" = "yes"; then
8919 gt_use_preinstalled_gnugettext
=no
8921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
8922 $as_echo_n "checking whether included gettext is requested... " >&6; }
8924 # Check whether --with-included-gettext was given.
8925 if test "${with_included_gettext+set}" = set; then :
8926 withval
=$with_included_gettext; nls_cv_force_use_gnu_gettext
=$withval
8928 nls_cv_force_use_gnu_gettext
=no
8931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
8932 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
8934 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
8935 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
8942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
8943 $as_echo_n "checking for GNU gettext in libc... " >&6; }
8944 if ${gt_cv_func_gnugettext1_libc+:} false
; then :
8945 $as_echo_n "(cached) " >&6
8947 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8948 /* end confdefs.h. */
8949 #include <libintl.h>
8950 extern int _nl_msg_cat_cntr;
8951 extern int *_nl_domain_bindings;
8955 bindtextdomain ("", "");
8956 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
8961 if ac_fn_c_try_link
"$LINENO"; then :
8962 gt_cv_func_gnugettext1_libc
=yes
8964 gt_cv_func_gnugettext1_libc
=no
8966 rm -f core conftest.err conftest.
$ac_objext \
8967 conftest
$ac_exeext conftest.
$ac_ext
8969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
8970 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
8972 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
8978 acl_save_prefix
="$prefix"
8979 prefix
="$acl_final_prefix"
8980 acl_save_exec_prefix
="$exec_prefix"
8981 exec_prefix
="$acl_final_exec_prefix"
8983 eval additional_includedir
=\"$includedir\"
8984 eval additional_libdir
=\"$libdir\"
8986 exec_prefix
="$acl_save_exec_prefix"
8987 prefix
="$acl_save_prefix"
8990 # Check whether --with-libintl-prefix was given.
8991 if test "${with_libintl_prefix+set}" = set; then :
8992 withval
=$with_libintl_prefix;
8993 if test "X$withval" = "Xno"; then
8996 if test "X$withval" = "X"; then
8998 acl_save_prefix
="$prefix"
8999 prefix
="$acl_final_prefix"
9000 acl_save_exec_prefix
="$exec_prefix"
9001 exec_prefix
="$acl_final_exec_prefix"
9003 eval additional_includedir
=\"$includedir\"
9004 eval additional_libdir
=\"$libdir\"
9006 exec_prefix
="$acl_save_exec_prefix"
9007 prefix
="$acl_save_prefix"
9010 additional_includedir
="$withval/include"
9011 additional_libdir
="$withval/lib"
9022 names_already_handled
=
9023 names_next_round
='intl '
9024 while test -n "$names_next_round"; do
9025 names_this_round
="$names_next_round"
9027 for name
in $names_this_round; do
9029 for n
in $names_already_handled; do
9030 if test "$n" = "$name"; then
9035 if test -z "$already_handled"; then
9036 names_already_handled
="$names_already_handled $name"
9037 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9038 eval value
=\"\
$HAVE_LIB$uppername\"
9039 if test -n "$value"; then
9040 if test "$value" = yes; then
9041 eval value
=\"\
$LIB$uppername\"
9042 test -z "$value" || LIBINTL
="${LIBINTL}${LIBINTL:+ }$value"
9043 eval value
=\"\
$LTLIB$uppername\"
9044 test -z "$value" || LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }$value"
9053 if test $use_additional = yes; then
9054 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9055 found_dir
="$additional_libdir"
9056 found_so
="$additional_libdir/lib$name.$shlibext"
9057 if test -f "$additional_libdir/lib$name.la"; then
9058 found_la
="$additional_libdir/lib$name.la"
9061 if test -f "$additional_libdir/lib$name.$libext"; then
9062 found_dir
="$additional_libdir"
9063 found_a
="$additional_libdir/lib$name.$libext"
9064 if test -f "$additional_libdir/lib$name.la"; then
9065 found_la
="$additional_libdir/lib$name.la"
9070 if test "X$found_dir" = "X"; then
9071 for x
in $LDFLAGS $LTLIBINTL; do
9073 acl_save_prefix
="$prefix"
9074 prefix
="$acl_final_prefix"
9075 acl_save_exec_prefix
="$exec_prefix"
9076 exec_prefix
="$acl_final_exec_prefix"
9078 exec_prefix
="$acl_save_exec_prefix"
9079 prefix
="$acl_save_prefix"
9083 dir
=`echo "X$x" | sed -e 's/^X-L//'`
9084 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9086 found_so
="$dir/lib$name.$shlibext"
9087 if test -f "$dir/lib$name.la"; then
9088 found_la
="$dir/lib$name.la"
9091 if test -f "$dir/lib$name.$libext"; then
9093 found_a
="$dir/lib$name.$libext"
9094 if test -f "$dir/lib$name.la"; then
9095 found_la
="$dir/lib$name.la"
9101 if test "X$found_dir" != "X"; then
9106 if test "X$found_dir" != "X"; then
9107 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
9108 if test "X$found_so" != "X"; then
9109 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
9110 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_so"
9113 for x
in $ltrpathdirs; do
9114 if test "X$x" = "X$found_dir"; then
9119 if test -z "$haveit"; then
9120 ltrpathdirs
="$ltrpathdirs $found_dir"
9122 if test "$hardcode_direct" = yes; then
9123 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_so"
9125 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
9126 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_so"
9128 for x
in $rpathdirs; do
9129 if test "X$x" = "X$found_dir"; then
9134 if test -z "$haveit"; then
9135 rpathdirs
="$rpathdirs $found_dir"
9139 for x
in $LDFLAGS $LIBINTL; do
9141 acl_save_prefix
="$prefix"
9142 prefix
="$acl_final_prefix"
9143 acl_save_exec_prefix
="$exec_prefix"
9144 exec_prefix
="$acl_final_exec_prefix"
9146 exec_prefix
="$acl_save_exec_prefix"
9147 prefix
="$acl_save_prefix"
9149 if test "X$x" = "X-L$found_dir"; then
9154 if test -z "$haveit"; then
9155 LIBINTL
="${LIBINTL}${LIBINTL:+ }-L$found_dir"
9157 if test "$hardcode_minus_L" != no
; then
9158 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_so"
9160 LIBINTL
="${LIBINTL}${LIBINTL:+ }-l$name"
9166 if test "X$found_a" != "X"; then
9167 LIBINTL
="${LIBINTL}${LIBINTL:+ }$found_a"
9169 LIBINTL
="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
9172 additional_includedir
=
9173 case "$found_dir" in
9175 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9176 additional_includedir
="$basedir/include"
9179 if test "X$additional_includedir" != "X"; then
9180 if test "X$additional_includedir" != "X/usr/include"; then
9182 if test "X$additional_includedir" = "X/usr/local/include"; then
9183 if test -n "$GCC"; then
9185 linux
*) haveit
=yes;;
9189 if test -z "$haveit"; then
9190 for x
in $CPPFLAGS $INCINTL; do
9192 acl_save_prefix
="$prefix"
9193 prefix
="$acl_final_prefix"
9194 acl_save_exec_prefix
="$exec_prefix"
9195 exec_prefix
="$acl_final_exec_prefix"
9197 exec_prefix
="$acl_save_exec_prefix"
9198 prefix
="$acl_save_prefix"
9200 if test "X$x" = "X-I$additional_includedir"; then
9205 if test -z "$haveit"; then
9206 if test -d "$additional_includedir"; then
9207 INCINTL
="${INCINTL}${INCINTL:+ }-I$additional_includedir"
9213 if test -n "$found_la"; then
9214 save_libdir
="$libdir"
9216 */* |
*\\*) .
"$found_la" ;;
9217 *) .
"./$found_la" ;;
9219 libdir
="$save_libdir"
9220 for dep
in $dependency_libs; do
9223 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
9224 if test "X$additional_libdir" != "X/usr/lib"; then
9226 if test "X$additional_libdir" = "X/usr/local/lib"; then
9227 if test -n "$GCC"; then
9229 linux
*) haveit
=yes;;
9233 if test -z "$haveit"; then
9235 for x
in $LDFLAGS $LIBINTL; do
9237 acl_save_prefix
="$prefix"
9238 prefix
="$acl_final_prefix"
9239 acl_save_exec_prefix
="$exec_prefix"
9240 exec_prefix
="$acl_final_exec_prefix"
9242 exec_prefix
="$acl_save_exec_prefix"
9243 prefix
="$acl_save_prefix"
9245 if test "X$x" = "X-L$additional_libdir"; then
9250 if test -z "$haveit"; then
9251 if test -d "$additional_libdir"; then
9252 LIBINTL
="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
9256 for x
in $LDFLAGS $LTLIBINTL; do
9258 acl_save_prefix
="$prefix"
9259 prefix
="$acl_final_prefix"
9260 acl_save_exec_prefix
="$exec_prefix"
9261 exec_prefix
="$acl_final_exec_prefix"
9263 exec_prefix
="$acl_save_exec_prefix"
9264 prefix
="$acl_save_prefix"
9266 if test "X$x" = "X-L$additional_libdir"; then
9271 if test -z "$haveit"; then
9272 if test -d "$additional_libdir"; then
9273 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
9280 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
9281 if test "$enable_rpath" != no
; then
9283 for x
in $rpathdirs; do
9284 if test "X$x" = "X$dir"; then
9289 if test -z "$haveit"; then
9290 rpathdirs
="$rpathdirs $dir"
9293 for x
in $ltrpathdirs; do
9294 if test "X$x" = "X$dir"; then
9299 if test -z "$haveit"; then
9300 ltrpathdirs
="$ltrpathdirs $dir"
9305 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9308 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9311 LIBINTL
="${LIBINTL}${LIBINTL:+ }$dep"
9312 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }$dep"
9318 LIBINTL
="${LIBINTL}${LIBINTL:+ }-l$name"
9319 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
9325 if test "X$rpathdirs" != "X"; then
9326 if test -n "$hardcode_libdir_separator"; then
9328 for found_dir
in $rpathdirs; do
9329 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9331 acl_save_libdir
="$libdir"
9333 eval flag
=\"$hardcode_libdir_flag_spec\"
9334 libdir
="$acl_save_libdir"
9335 LIBINTL
="${LIBINTL}${LIBINTL:+ }$flag"
9337 for found_dir
in $rpathdirs; do
9338 acl_save_libdir
="$libdir"
9340 eval flag
=\"$hardcode_libdir_flag_spec\"
9341 libdir
="$acl_save_libdir"
9342 LIBINTL
="${LIBINTL}${LIBINTL:+ }$flag"
9346 if test "X$ltrpathdirs" != "X"; then
9347 for found_dir
in $ltrpathdirs; do
9348 LTLIBINTL
="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
9352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
9353 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
9354 if ${gt_cv_func_gnugettext1_libintl+:} false
; then :
9355 $as_echo_n "(cached) " >&6
9357 gt_save_CPPFLAGS
="$CPPFLAGS"
9358 CPPFLAGS
="$CPPFLAGS $INCINTL"
9359 gt_save_LIBS
="$LIBS"
9360 LIBS
="$LIBS $LIBINTL"
9361 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9362 /* end confdefs.h. */
9363 #include <libintl.h>
9364 extern int _nl_msg_cat_cntr;
9369 const char *_nl_expand_alias ();
9373 bindtextdomain ("", "");
9374 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
9379 if ac_fn_c_try_link
"$LINENO"; then :
9380 gt_cv_func_gnugettext1_libintl
=yes
9382 gt_cv_func_gnugettext1_libintl
=no
9384 rm -f core conftest.err conftest.
$ac_objext \
9385 conftest
$ac_exeext conftest.
$ac_ext
9386 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
9387 LIBS
="$LIBS $LIBICONV"
9388 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9389 /* end confdefs.h. */
9390 #include <libintl.h>
9391 extern int _nl_msg_cat_cntr;
9396 const char *_nl_expand_alias ();
9400 bindtextdomain ("", "");
9401 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
9406 if ac_fn_c_try_link
"$LINENO"; then :
9407 LIBINTL
="$LIBINTL $LIBICONV"
9408 LTLIBINTL
="$LTLIBINTL $LTLIBICONV"
9409 gt_cv_func_gnugettext1_libintl
=yes
9412 rm -f core conftest.err conftest.
$ac_objext \
9413 conftest
$ac_exeext conftest.
$ac_ext
9415 CPPFLAGS
="$gt_save_CPPFLAGS"
9416 LIBS
="$gt_save_LIBS"
9418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
9419 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
9422 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
9423 ||
{ test "$gt_cv_func_gnugettext1_libintl" = "yes" \
9424 && test "$PACKAGE" != gettext-runtime \
9425 && test "$PACKAGE" != gettext-tools
; }; then
9426 gt_use_preinstalled_gnugettext
=yes
9434 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
9435 nls_cv_use_gnu_gettext
=yes
9439 if test "$nls_cv_use_gnu_gettext" = "yes"; then
9440 BUILD_INCLUDED_LIBINTL
=yes
9441 USE_INCLUDED_LIBINTL
=yes
9442 LIBINTL
="\${top_builddir}/intl/libintl.a $LIBICONV"
9443 LTLIBINTL
="\${top_builddir}/intl/libintl.a $LTLIBICONV"
9444 LIBS
=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
9447 if test "$gt_use_preinstalled_gnugettext" = "yes" \
9448 ||
test "$nls_cv_use_gnu_gettext" = "yes"; then
9453 if test "$gt_use_preinstalled_gnugettext" = "yes" \
9454 ||
test "$nls_cv_use_gnu_gettext" = "yes"; then
9456 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
9463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
9464 $as_echo_n "checking whether to use NLS... " >&6; }
9465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
9466 $as_echo "$USE_NLS" >&6; }
9467 if test "$USE_NLS" = "yes"; then
9468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
9469 $as_echo_n "checking where the gettext function comes from... " >&6; }
9470 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
9471 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
9472 gt_source
="external libintl"
9477 gt_source
="included intl directory"
9479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
9480 $as_echo "$gt_source" >&6; }
9483 if test "$USE_NLS" = "yes"; then
9485 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
9486 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
9487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
9488 $as_echo_n "checking how to link with libintl... " >&6; }
9489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
9490 $as_echo "$LIBINTL" >&6; }
9492 for element
in $INCINTL; do
9494 for x
in $CPPFLAGS; do
9496 acl_save_prefix
="$prefix"
9497 prefix
="$acl_final_prefix"
9498 acl_save_exec_prefix
="$exec_prefix"
9499 exec_prefix
="$acl_final_exec_prefix"
9501 exec_prefix
="$acl_save_exec_prefix"
9502 prefix
="$acl_save_prefix"
9504 if test "X$x" = "X$element"; then
9509 if test -z "$haveit"; then
9510 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
9517 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
9520 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
9528 if test "$PACKAGE" = gettext-runtime ||
test "$PACKAGE" = gettext-tools
; then
9529 BUILD_INCLUDED_LIBINTL
=yes
9537 nls_cv_header_libgt
=
9548 if test "$USE_INCLUDED_LIBINTL" = yes; then
9549 INTLOBJS
="\$(GETTOBJS)"
9553 INTL_LIBTOOL_SUFFIX_PREFIX
=
9565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9566 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
9568 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
9569 if eval \
${ac_cv_prog_make_${ac_make}_set+:} false
; then :
9570 $as_echo_n "(cached) " >&6
9572 cat >conftest.
make <<\_ACEOF
9575 @
echo '@@@%%%=$(MAKE)=@@@%%%'
9577 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
9578 case `${MAKE-make} -f conftest.make 2>/dev/null` in
9580 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
9582 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
9586 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
9587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9588 $as_echo "yes" >&6; }
9591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9592 $as_echo "no" >&6; }
9593 SET_MAKE
="MAKE=${MAKE-make}"
9596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5
9597 $as_echo_n "checking for GNU make... " >&6; }
9598 if ${_cv_gnu_make_command+:} false
; then :
9599 $as_echo_n "(cached) " >&6
9601 _cv_gnu_make_command
='' ;
9602 for a
in "$MAKE" make gmake gnumake
; do
9603 if test -z "$a" ; then continue ; fi ;
9604 if ( sh
-c "$a --version" 2> /dev
/null |
grep GNU
2>&1 > /dev
/null
) ; then
9605 _cv_gnu_make_command
=$a ;
9611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_cv_gnu_make_command" >&5
9612 $as_echo "$_cv_gnu_make_command" >&6; } ;
9613 if test "x$_cv_gnu_make_command" != "x" ; then
9619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"Not found\"" >&5
9620 $as_echo "\"Not found\"" >&6; };
9625 # Extract the first word of "ln", so it can be a program name with args.
9626 set dummy
ln; ac_word
=$2
9627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9628 $as_echo_n "checking for $ac_word... " >&6; }
9629 if ${ac_cv_path_LN+:} false
; then :
9630 $as_echo_n "(cached) " >&6
9634 ac_cv_path_LN
="$LN" # Let the user override the test with a path.
9637 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9641 test -z "$as_dir" && as_dir
=.
9642 for ac_exec_ext
in '' $ac_executable_extensions; do
9643 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9644 ac_cv_path_LN
="$as_dir/$ac_word$ac_exec_ext"
9645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9652 test -z "$ac_cv_path_LN" && ac_cv_path_LN
="ln"
9657 if test -n "$LN"; then
9658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
9659 $as_echo "$LN" >&6; }
9661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9662 $as_echo "no" >&6; }
9666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
9667 $as_echo_n "checking whether ln -s works... " >&6; }
9669 if test "$LN_S" = "ln -s"; then
9670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9671 $as_echo "yes" >&6; }
9673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
9674 $as_echo "no, using $LN_S" >&6; }
9677 # Extract the first word of "mv", so it can be a program name with args.
9678 set dummy
mv; ac_word
=$2
9679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9680 $as_echo_n "checking for $ac_word... " >&6; }
9681 if ${ac_cv_path_MV+:} false
; then :
9682 $as_echo_n "(cached) " >&6
9686 ac_cv_path_MV
="$MV" # Let the user override the test with a path.
9689 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9693 test -z "$as_dir" && as_dir
=.
9694 for ac_exec_ext
in '' $ac_executable_extensions; do
9695 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9696 ac_cv_path_MV
="$as_dir/$ac_word$ac_exec_ext"
9697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9704 test -z "$ac_cv_path_MV" && ac_cv_path_MV
="mv"
9709 if test -n "$MV"; then
9710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
9711 $as_echo "$MV" >&6; }
9713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9714 $as_echo "no" >&6; }
9718 # Extract the first word of "cp", so it can be a program name with args.
9719 set dummy
cp; ac_word
=$2
9720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9721 $as_echo_n "checking for $ac_word... " >&6; }
9722 if ${ac_cv_path_CP+:} false
; then :
9723 $as_echo_n "(cached) " >&6
9727 ac_cv_path_CP
="$CP" # Let the user override the test with a path.
9730 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9734 test -z "$as_dir" && as_dir
=.
9735 for ac_exec_ext
in '' $ac_executable_extensions; do
9736 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9737 ac_cv_path_CP
="$as_dir/$ac_word$ac_exec_ext"
9738 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9745 test -z "$ac_cv_path_CP" && ac_cv_path_CP
="cp"
9750 if test -n "$CP"; then
9751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
9752 $as_echo "$CP" >&6; }
9754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9755 $as_echo "no" >&6; }
9759 # Extract the first word of "rm", so it can be a program name with args.
9760 set dummy
rm; ac_word
=$2
9761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9762 $as_echo_n "checking for $ac_word... " >&6; }
9763 if ${ac_cv_path_RM+:} false
; then :
9764 $as_echo_n "(cached) " >&6
9768 ac_cv_path_RM
="$RM" # Let the user override the test with a path.
9771 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9775 test -z "$as_dir" && as_dir
=.
9776 for ac_exec_ext
in '' $ac_executable_extensions; do
9777 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9778 ac_cv_path_RM
="$as_dir/$ac_word$ac_exec_ext"
9779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9786 test -z "$ac_cv_path_RM" && ac_cv_path_RM
="rm"
9791 if test -n "$RM"; then
9792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
9793 $as_echo "$RM" >&6; }
9795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9796 $as_echo "no" >&6; }
9800 # Extract the first word of "chmod", so it can be a program name with args.
9801 set dummy
chmod; ac_word
=$2
9802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9803 $as_echo_n "checking for $ac_word... " >&6; }
9804 if ${ac_cv_path_CHMOD+:} false
; then :
9805 $as_echo_n "(cached) " >&6
9809 ac_cv_path_CHMOD
="$CHMOD" # Let the user override the test with a path.
9812 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9816 test -z "$as_dir" && as_dir
=.
9817 for ac_exec_ext
in '' $ac_executable_extensions; do
9818 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9819 ac_cv_path_CHMOD
="$as_dir/$ac_word$ac_exec_ext"
9820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9827 test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD
=":"
9831 CHMOD
=$ac_cv_path_CHMOD
9832 if test -n "$CHMOD"; then
9833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
9834 $as_echo "$CHMOD" >&6; }
9836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9837 $as_echo "no" >&6; }
9841 for ac_prog
in gawk mawk nawk
awk
9843 # Extract the first word of "$ac_prog", so it can be a program name with args.
9844 set dummy
$ac_prog; ac_word
=$2
9845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9846 $as_echo_n "checking for $ac_word... " >&6; }
9847 if ${ac_cv_prog_AWK+:} false
; then :
9848 $as_echo_n "(cached) " >&6
9850 if test -n "$AWK"; then
9851 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
9853 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9857 test -z "$as_dir" && as_dir
=.
9858 for ac_exec_ext
in '' $ac_executable_extensions; do
9859 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9860 ac_cv_prog_AWK
="$ac_prog"
9861 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9871 if test -n "$AWK"; then
9872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
9873 $as_echo "$AWK" >&6; }
9875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9876 $as_echo "no" >&6; }
9880 test -n "$AWK" && break
9883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
9884 $as_echo_n "checking for egrep... " >&6; }
9885 if ${ac_cv_path_EGREP+:} false
; then :
9886 $as_echo_n "(cached) " >&6
9888 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
9889 then ac_cv_path_EGREP
="$GREP -E"
9891 if test -z "$EGREP"; then
9892 ac_path_EGREP_found
=false
9893 # Loop through the user's path and test for each of PROGNAME-LIST
9894 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9895 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
9898 test -z "$as_dir" && as_dir
=.
9899 for ac_prog
in egrep; do
9900 for ac_exec_ext
in '' $ac_executable_extensions; do
9901 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
9902 as_fn_executable_p
"$ac_path_EGREP" ||
continue
9903 # Check for GNU ac_path_EGREP and select it if it is found.
9904 # Check for GNU $ac_path_EGREP
9905 case `"$ac_path_EGREP" --version 2>&1` in
9907 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
9910 $as_echo_n 0123456789 >"conftest.in"
9913 cat "conftest.in" "conftest.in" >"conftest.tmp"
9914 mv "conftest.tmp" "conftest.in"
9915 cp "conftest.in" "conftest.nl"
9916 $as_echo 'EGREP' >> "conftest.nl"
9917 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
9918 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
9919 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
9920 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
9921 # Best one so far, save it but keep looking for a better one
9922 ac_cv_path_EGREP
="$ac_path_EGREP"
9923 ac_path_EGREP_max
=$ac_count
9925 # 10*(2^10) chars as input seems more than enough
9926 test $ac_count -gt 10 && break
9928 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
9931 $ac_path_EGREP_found && break 3
9936 if test -z "$ac_cv_path_EGREP"; then
9937 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
9940 ac_cv_path_EGREP
=$EGREP
9945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
9946 $as_echo "$ac_cv_path_EGREP" >&6; }
9947 EGREP
="$ac_cv_path_EGREP"
9950 # Extract the first word of "sed", so it can be a program name with args.
9951 set dummy
sed; ac_word
=$2
9952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9953 $as_echo_n "checking for $ac_word... " >&6; }
9954 if ${ac_cv_path_SED+:} false
; then :
9955 $as_echo_n "(cached) " >&6
9959 ac_cv_path_SED
="$SED" # Let the user override the test with a path.
9962 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9966 test -z "$as_dir" && as_dir
=.
9967 for ac_exec_ext
in '' $ac_executable_extensions; do
9968 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
9969 ac_cv_path_SED
="$as_dir/$ac_word$ac_exec_ext"
9970 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9977 test -z "$ac_cv_path_SED" && ac_cv_path_SED
="sed"
9982 if test -n "$SED"; then
9983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
9984 $as_echo "$SED" >&6; }
9986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9987 $as_echo "no" >&6; }
9991 # Extract the first word of "perl", so it can be a program name with args.
9992 set dummy perl
; ac_word
=$2
9993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9994 $as_echo_n "checking for $ac_word... " >&6; }
9995 if ${ac_cv_path_PERL+:} false
; then :
9996 $as_echo_n "(cached) " >&6
10000 ac_cv_path_PERL
="$PERL" # Let the user override the test with a path.
10003 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10004 for as_dir
in $PATH
10007 test -z "$as_dir" && as_dir
=.
10008 for ac_exec_ext
in '' $ac_executable_extensions; do
10009 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10010 ac_cv_path_PERL
="$as_dir/$ac_word$ac_exec_ext"
10011 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10018 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL
="perl"
10022 PERL
=$ac_cv_path_PERL
10023 if test -n "$PERL"; then
10024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
10025 $as_echo "$PERL" >&6; }
10027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10028 $as_echo "no" >&6; }
10032 # Extract the first word of "ldconfig", so it can be a program name with args.
10033 set dummy ldconfig
; ac_word
=$2
10034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10035 $as_echo_n "checking for $ac_word... " >&6; }
10036 if ${ac_cv_path_LDCONFIG+:} false
; then :
10037 $as_echo_n "(cached) " >&6
10041 ac_cv_path_LDCONFIG
="$LDCONFIG" # Let the user override the test with a path.
10044 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10045 for as_dir
in $PATH
10048 test -z "$as_dir" && as_dir
=.
10049 for ac_exec_ext
in '' $ac_executable_extensions; do
10050 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10051 ac_cv_path_LDCONFIG
="$as_dir/$ac_word$ac_exec_ext"
10052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10059 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG
=":"
10063 LDCONFIG
=$ac_cv_path_LDCONFIG
10064 if test -n "$LDCONFIG"; then
10065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
10066 $as_echo "$LDCONFIG" >&6; }
10068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10069 $as_echo "no" >&6; }
10073 if test -n "$ac_tool_prefix"; then
10074 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
10075 set dummy
${ac_tool_prefix}ar; ac_word
=$2
10076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10077 $as_echo_n "checking for $ac_word... " >&6; }
10078 if ${ac_cv_prog_AR+:} false
; then :
10079 $as_echo_n "(cached) " >&6
10081 if test -n "$AR"; then
10082 ac_cv_prog_AR
="$AR" # Let the user override the test.
10084 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10085 for as_dir
in $PATH
10088 test -z "$as_dir" && as_dir
=.
10089 for ac_exec_ext
in '' $ac_executable_extensions; do
10090 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10091 ac_cv_prog_AR
="${ac_tool_prefix}ar"
10092 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10102 if test -n "$AR"; then
10103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10104 $as_echo "$AR" >&6; }
10106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10107 $as_echo "no" >&6; }
10112 if test -z "$ac_cv_prog_AR"; then
10114 # Extract the first word of "ar", so it can be a program name with args.
10115 set dummy
ar; ac_word
=$2
10116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10117 $as_echo_n "checking for $ac_word... " >&6; }
10118 if ${ac_cv_prog_ac_ct_AR+:} false
; then :
10119 $as_echo_n "(cached) " >&6
10121 if test -n "$ac_ct_AR"; then
10122 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
10124 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10125 for as_dir
in $PATH
10128 test -z "$as_dir" && as_dir
=.
10129 for ac_exec_ext
in '' $ac_executable_extensions; do
10130 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10131 ac_cv_prog_ac_ct_AR
="ar"
10132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10141 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
10142 if test -n "$ac_ct_AR"; then
10143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
10144 $as_echo "$ac_ct_AR" >&6; }
10146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10147 $as_echo "no" >&6; }
10150 if test "x$ac_ct_AR" = x
; then
10153 case $cross_compiling:$ac_tool_warned in
10155 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10156 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10157 ac_tool_warned
=yes ;;
10162 AR
="$ac_cv_prog_AR"
10165 if test -n "$ac_tool_prefix"; then
10166 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
10167 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
10168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10169 $as_echo_n "checking for $ac_word... " >&6; }
10170 if ${ac_cv_prog_RANLIB+:} false
; then :
10171 $as_echo_n "(cached) " >&6
10173 if test -n "$RANLIB"; then
10174 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
10176 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10177 for as_dir
in $PATH
10180 test -z "$as_dir" && as_dir
=.
10181 for ac_exec_ext
in '' $ac_executable_extensions; do
10182 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10183 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
10184 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10193 RANLIB
=$ac_cv_prog_RANLIB
10194 if test -n "$RANLIB"; then
10195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
10196 $as_echo "$RANLIB" >&6; }
10198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10199 $as_echo "no" >&6; }
10204 if test -z "$ac_cv_prog_RANLIB"; then
10205 ac_ct_RANLIB
=$RANLIB
10206 # Extract the first word of "ranlib", so it can be a program name with args.
10207 set dummy ranlib
; ac_word
=$2
10208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10209 $as_echo_n "checking for $ac_word... " >&6; }
10210 if ${ac_cv_prog_ac_ct_RANLIB+:} false
; then :
10211 $as_echo_n "(cached) " >&6
10213 if test -n "$ac_ct_RANLIB"; then
10214 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
10216 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10217 for as_dir
in $PATH
10220 test -z "$as_dir" && as_dir
=.
10221 for ac_exec_ext
in '' $ac_executable_extensions; do
10222 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10223 ac_cv_prog_ac_ct_RANLIB
="ranlib"
10224 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10233 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
10234 if test -n "$ac_ct_RANLIB"; then
10235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
10236 $as_echo "$ac_ct_RANLIB" >&6; }
10238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10239 $as_echo "no" >&6; }
10242 if test "x$ac_ct_RANLIB" = x
; then
10245 case $cross_compiling:$ac_tool_warned in
10247 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10248 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10249 ac_tool_warned
=yes ;;
10251 RANLIB
=$ac_ct_RANLIB
10254 RANLIB
="$ac_cv_prog_RANLIB"
10257 if test -n "$ac_tool_prefix"; then
10258 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
10259 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
10260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10261 $as_echo_n "checking for $ac_word... " >&6; }
10262 if ${ac_cv_prog_STRIP+:} false
; then :
10263 $as_echo_n "(cached) " >&6
10265 if test -n "$STRIP"; then
10266 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
10268 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10269 for as_dir
in $PATH
10272 test -z "$as_dir" && as_dir
=.
10273 for ac_exec_ext
in '' $ac_executable_extensions; do
10274 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10275 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
10276 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10285 STRIP
=$ac_cv_prog_STRIP
10286 if test -n "$STRIP"; then
10287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
10288 $as_echo "$STRIP" >&6; }
10290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10291 $as_echo "no" >&6; }
10296 if test -z "$ac_cv_prog_STRIP"; then
10298 # Extract the first word of "strip", so it can be a program name with args.
10299 set dummy strip
; ac_word
=$2
10300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10301 $as_echo_n "checking for $ac_word... " >&6; }
10302 if ${ac_cv_prog_ac_ct_STRIP+:} false
; then :
10303 $as_echo_n "(cached) " >&6
10305 if test -n "$ac_ct_STRIP"; then
10306 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
10308 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10309 for as_dir
in $PATH
10312 test -z "$as_dir" && as_dir
=.
10313 for ac_exec_ext
in '' $ac_executable_extensions; do
10314 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10315 ac_cv_prog_ac_ct_STRIP
="strip"
10316 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10325 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
10326 if test -n "$ac_ct_STRIP"; then
10327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
10328 $as_echo "$ac_ct_STRIP" >&6; }
10330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10331 $as_echo "no" >&6; }
10334 if test "x$ac_ct_STRIP" = x
; then
10337 case $cross_compiling:$ac_tool_warned in
10339 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10340 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10341 ac_tool_warned
=yes ;;
10346 STRIP
="$ac_cv_prog_STRIP"
10349 # Extract the first word of "makeinfo", so it can be a program name with args.
10350 set dummy makeinfo
; ac_word
=$2
10351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10352 $as_echo_n "checking for $ac_word... " >&6; }
10353 if ${ac_cv_prog_MAKEINFO+:} false
; then :
10354 $as_echo_n "(cached) " >&6
10356 if test -n "$MAKEINFO"; then
10357 ac_cv_prog_MAKEINFO
="$MAKEINFO" # Let the user override the test.
10359 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10360 for as_dir
in $PATH
10363 test -z "$as_dir" && as_dir
=.
10364 for ac_exec_ext
in '' $ac_executable_extensions; do
10365 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10366 ac_cv_prog_MAKEINFO
="makeinfo"
10367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10376 MAKEINFO
=$ac_cv_prog_MAKEINFO
10377 if test -n "$MAKEINFO"; then
10378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
10379 $as_echo "$MAKEINFO" >&6; }
10381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10382 $as_echo "no" >&6; }
10386 if test "_$MAKEINFO" = "_"; then
10387 MAKEINFO
="@echo Makeinfo is missing. Info documentation will not be built.;true"
10389 case "$MAKEINFO" in
10391 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
10392 *** Makeinfo is missing. Info documentation will not be built." >&5
10393 $as_echo "$as_me: WARNING:
10394 *** Makeinfo is missing. Info documentation will not be built." >&2;}
10402 # See if we need a separate native compiler.
10403 if test $cross_compiling = no
; then
10407 for ac_prog
in gcc cc
10409 # Extract the first word of "$ac_prog", so it can be a program name with args.
10410 set dummy
$ac_prog; ac_word
=$2
10411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10412 $as_echo_n "checking for $ac_word... " >&6; }
10413 if ${ac_cv_prog_BUILD_CC+:} false
; then :
10414 $as_echo_n "(cached) " >&6
10416 if test -n "$BUILD_CC"; then
10417 ac_cv_prog_BUILD_CC
="$BUILD_CC" # Let the user override the test.
10419 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10420 for as_dir
in $PATH
10423 test -z "$as_dir" && as_dir
=.
10424 for ac_exec_ext
in '' $ac_executable_extensions; do
10425 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10426 ac_cv_prog_BUILD_CC
="$ac_prog"
10427 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10436 BUILD_CC
=$ac_cv_prog_BUILD_CC
10437 if test -n "$BUILD_CC"; then
10438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
10439 $as_echo "$BUILD_CC" >&6; }
10441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10442 $as_echo "no" >&6; }
10446 test -n "$BUILD_CC" && break
10450 for ac_header
in dirent.h errno.h execinfo.h getopt.h malloc.h mntent.h paths.h semaphore.h setjmp.h signal.h stdarg.h stdint.h stdlib.h termios.h termio.h unistd.h utime.h linux
/falloc.h linux
/fd.h linux
/major.h linux
/loop.h net
/if_dl.h netinet
/in.h sys
/disklabel.h sys
/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
10452 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10453 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10454 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
10455 cat >>confdefs.h
<<_ACEOF
10456 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10463 for ac_header
in sys
/disk.h sys
/mount.h
10465 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10466 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "
10467 #if HAVE_SYS_QUEUE_H
10468 #include <sys/queue.h>
10472 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
10473 cat >>confdefs.h
<<_ACEOF
10474 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10481 for ac_header
in net
/if.h
10483 ac_fn_c_check_header_compile
"$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
10484 #if HAVE_SYS_TYPES_H
10485 #include <sys/types.h>
10487 #if HAVE_SYS_SOCKET
10488 #include <sys/socket.h>
10492 if test "x$ac_cv_header_net_if_h" = xyes
; then :
10493 cat >>confdefs.h
<<_ACEOF
10494 #define HAVE_NET_IF_H 1
10501 for ac_func
in vprintf
10503 ac_fn_c_check_func
"$LINENO" "vprintf" "ac_cv_func_vprintf"
10504 if test "x$ac_cv_func_vprintf" = xyes
; then :
10505 cat >>confdefs.h
<<_ACEOF
10506 #define HAVE_VPRINTF 1
10509 ac_fn_c_check_func
"$LINENO" "_doprnt" "ac_cv_func__doprnt"
10510 if test "x$ac_cv_func__doprnt" = xyes
; then :
10512 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
10520 ac_fn_c_check_member
"$LINENO" "struct dirent" "d_reclen" "ac_cv_member_struct_dirent_d_reclen" "#include <dirent.h>
10522 if test "x$ac_cv_member_struct_dirent_d_reclen" = xyes
; then :
10524 $as_echo "#define HAVE_RECLEN_DIRENT 1" >>confdefs.h
10528 ac_fn_c_check_type
"$LINENO" "ssize_t" "ac_cv_type_ssize_t" "#include <sys/types.h>
10530 if test "x$ac_cv_type_ssize_t" = xyes
; then :
10532 $as_echo "#define HAVE_TYPE_SSIZE_T 1" >>confdefs.h
10536 ac_fn_c_check_decl
"$LINENO" "llseek" "ac_cv_have_decl_llseek" "#include <unistd.h>
10538 if test "x$ac_cv_have_decl_llseek" = xyes
; then :
10540 $as_echo "#define HAVE_LLSEEK_PROTOTYPE 1" >>confdefs.h
10544 ac_fn_c_check_decl
"$LINENO" "lseek64" "ac_cv_have_decl_lseek64" "#define _LARGEFILE_SOURCE
10545 #define _LARGEFILE64_SOURCE
10546 #include <unistd.h>
10548 if test "x$ac_cv_have_decl_lseek64" = xyes
; then :
10550 $as_echo "#define HAVE_LSEEK64_PROTOTYPE 1" >>confdefs.h
10554 # The cast to long int works around a bug in the HP C Compiler
10555 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10556 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10557 # This bug is HP SR number 8606223364.
10558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
10559 $as_echo_n "checking size of short... " >&6; }
10560 if ${ac_cv_sizeof_short+:} false
; then :
10561 $as_echo_n "(cached) " >&6
10563 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
10566 if test "$ac_cv_type_short" = yes; then
10567 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10568 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10569 as_fn_error
77 "cannot compute sizeof (short)
10570 See \`config.log' for more details" "$LINENO" 5; }
10572 ac_cv_sizeof_short
=0
10577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
10578 $as_echo "$ac_cv_sizeof_short" >&6; }
10582 cat >>confdefs.h
<<_ACEOF
10583 #define SIZEOF_SHORT $ac_cv_sizeof_short
10587 # The cast to long int works around a bug in the HP C Compiler
10588 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10589 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10590 # This bug is HP SR number 8606223364.
10591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
10592 $as_echo_n "checking size of int... " >&6; }
10593 if ${ac_cv_sizeof_int+:} false
; then :
10594 $as_echo_n "(cached) " >&6
10596 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
10599 if test "$ac_cv_type_int" = yes; then
10600 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10601 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10602 as_fn_error
77 "cannot compute sizeof (int)
10603 See \`config.log' for more details" "$LINENO" 5; }
10610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
10611 $as_echo "$ac_cv_sizeof_int" >&6; }
10615 cat >>confdefs.h
<<_ACEOF
10616 #define SIZEOF_INT $ac_cv_sizeof_int
10620 # The cast to long int works around a bug in the HP C Compiler
10621 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10622 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10623 # This bug is HP SR number 8606223364.
10624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
10625 $as_echo_n "checking size of long... " >&6; }
10626 if ${ac_cv_sizeof_long+:} false
; then :
10627 $as_echo_n "(cached) " >&6
10629 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
10632 if test "$ac_cv_type_long" = yes; then
10633 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10634 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10635 as_fn_error
77 "cannot compute sizeof (long)
10636 See \`config.log' for more details" "$LINENO" 5; }
10638 ac_cv_sizeof_long
=0
10643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
10644 $as_echo "$ac_cv_sizeof_long" >&6; }
10648 cat >>confdefs.h
<<_ACEOF
10649 #define SIZEOF_LONG $ac_cv_sizeof_long
10653 # The cast to long int works around a bug in the HP C Compiler
10654 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10655 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10656 # This bug is HP SR number 8606223364.
10657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
10658 $as_echo_n "checking size of long long... " >&6; }
10659 if ${ac_cv_sizeof_long_long+:} false
; then :
10660 $as_echo_n "(cached) " >&6
10662 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
10665 if test "$ac_cv_type_long_long" = yes; then
10666 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10667 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10668 as_fn_error
77 "cannot compute sizeof (long long)
10669 See \`config.log' for more details" "$LINENO" 5; }
10671 ac_cv_sizeof_long_long
=0
10676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
10677 $as_echo "$ac_cv_sizeof_long_long" >&6; }
10681 cat >>confdefs.h
<<_ACEOF
10682 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10686 # The cast to long int works around a bug in the HP C Compiler
10687 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10688 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10689 # This bug is HP SR number 8606223364.
10690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
10691 $as_echo_n "checking size of off_t... " >&6; }
10692 if ${ac_cv_sizeof_off_t+:} false
; then :
10693 $as_echo_n "(cached) " >&6
10695 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
10698 if test "$ac_cv_type_off_t" = yes; then
10699 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10700 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10701 as_fn_error
77 "cannot compute sizeof (off_t)
10702 See \`config.log' for more details" "$LINENO" 5; }
10704 ac_cv_sizeof_off_t
=0
10709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
10710 $as_echo "$ac_cv_sizeof_off_t" >&6; }
10714 cat >>confdefs.h
<<_ACEOF
10715 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
10719 SIZEOF_SHORT
=$ac_cv_sizeof_short
10720 SIZEOF_INT
=$ac_cv_sizeof_int
10721 SIZEOF_LONG
=$ac_cv_sizeof_long
10722 SIZEOF_LONG_LONG
=$ac_cv_sizeof_long_long
10723 SIZEOF_OFF_T
=$ac_cv_sizeof_off_t
10729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
10730 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
10731 if ${ac_cv_c_bigendian+:} false
; then :
10732 $as_echo_n "(cached) " >&6
10734 ac_cv_c_bigendian
=unknown
10735 # See if we're dealing with a universal compiler.
10736 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10737 /* end confdefs.h. */
10738 #ifndef __APPLE_CC__
10739 not a universal capable compiler
10744 if ac_fn_c_try_compile
"$LINENO"; then :
10746 # Check for potential -arch flags. It is not universal unless
10747 # there are at least two -arch flags with different values.
10750 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
10751 if test -n "$ac_prev"; then
10753 i?
86 | x86_64 | ppc | ppc64
)
10754 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
10757 ac_cv_c_bigendian
=universal
10763 elif test "x$ac_word" = "x-arch"; then
10768 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10769 if test $ac_cv_c_bigendian = unknown
; then
10770 # See if sys/param.h defines the BYTE_ORDER macro.
10771 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10772 /* end confdefs.h. */
10773 #include <sys/types.h>
10774 #include <sys/param.h>
10779 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
10780 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
10782 bogus endian macros
10789 if ac_fn_c_try_compile
"$LINENO"; then :
10790 # It does; now see whether it defined to BIG_ENDIAN or not.
10791 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10792 /* end confdefs.h. */
10793 #include <sys/types.h>
10794 #include <sys/param.h>
10799 #if BYTE_ORDER != BIG_ENDIAN
10807 if ac_fn_c_try_compile
"$LINENO"; then :
10808 ac_cv_c_bigendian
=yes
10810 ac_cv_c_bigendian
=no
10812 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10814 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10816 if test $ac_cv_c_bigendian = unknown
; then
10817 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
10818 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10819 /* end confdefs.h. */
10820 #include <limits.h>
10825 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
10826 bogus endian macros
10833 if ac_fn_c_try_compile
"$LINENO"; then :
10834 # It does; now see whether it defined to _BIG_ENDIAN or not.
10835 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10836 /* end confdefs.h. */
10837 #include <limits.h>
10842 #ifndef _BIG_ENDIAN
10850 if ac_fn_c_try_compile
"$LINENO"; then :
10851 ac_cv_c_bigendian
=yes
10853 ac_cv_c_bigendian
=no
10855 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10857 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10859 if test $ac_cv_c_bigendian = unknown
; then
10860 # Compile a test program.
10861 if test "$cross_compiling" = yes; then :
10862 # Try to guess by grepping values from an object file.
10863 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10864 /* end confdefs.h. */
10865 short int ascii_mm[] =
10866 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
10867 short int ascii_ii[] =
10868 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
10869 int use_ascii (int i) {
10870 return ascii_mm[i] + ascii_ii[i];
10872 short int ebcdic_ii[] =
10873 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
10874 short int ebcdic_mm[] =
10875 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
10876 int use_ebcdic (int i) {
10877 return ebcdic_mm[i] + ebcdic_ii[i];
10884 return use_ascii (foo) == use_ebcdic (foo);
10889 if ac_fn_c_try_compile
"$LINENO"; then :
10890 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
10891 ac_cv_c_bigendian
=yes
10893 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
10894 if test "$ac_cv_c_bigendian" = unknown
; then
10895 ac_cv_c_bigendian
=no
10897 # finding both strings is unlikely to happen, but who knows?
10898 ac_cv_c_bigendian
=unknown
10902 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10904 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10905 /* end confdefs.h. */
10906 $ac_includes_default
10911 /* Are we little or big endian? From Harbison&Steele. */
10915 char c[sizeof (long int)];
10918 return u.c[sizeof (long int) - 1] == 1;
10924 if ac_fn_c_try_run
"$LINENO"; then :
10925 ac_cv_c_bigendian
=no
10927 ac_cv_c_bigendian
=yes
10929 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10930 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
10936 $as_echo "$ac_cv_c_bigendian" >&6; }
10937 case $ac_cv_c_bigendian in #(
10939 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
10945 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
10949 as_fn_error $?
"unknown endianness
10950 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
10953 BUILD_CC
="$BUILD_CC" CPP
="$CPP" /bin
/sh
$ac_aux_dir/parse-types.sh
10954 ASM_TYPES_HEADER
=.
/asm_types.h
10956 echo "/* These defines are needed for the public ext2fs.h header file */" \
10958 if grep HAVE_SYS_TYPES_H confdefs.h
> tmp_config.$$
; then
10959 uniq tmp_config.$$
>> public_config.h
10961 echo "#undef HAVE_SYS_TYPES_H" >> public_config.h
10963 if grep WORDS_BIGENDIAN confdefs.h
> tmp_config.$$
; then
10964 uniq tmp_config.$$
>> public_config.h
10966 echo "#undef WORDS_BIGENDIAN" >> public_config.h
10968 rm -f tmp_config.$$
10969 PUBLIC_CONFIG_HEADER
=.
/public_config.h
10971 for ac_header
in inttypes.h
10973 ac_fn_c_check_header_mongrel
"$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
10974 if test "x$ac_cv_header_inttypes_h" = xyes
; then :
10975 cat >>confdefs.h
<<_ACEOF
10976 #define HAVE_INTTYPES_H 1
10983 ac_fn_c_check_type
"$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
10984 if test "x$ac_cv_type_intptr_t" = xyes
; then :
10986 cat >>confdefs.h
<<_ACEOF
10987 #define HAVE_INTPTR_T 1
10993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat has a st_flags field" >&5
10994 $as_echo_n "checking whether struct stat has a st_flags field... " >&6; }
10995 if ${e2fsprogs_cv_struct_st_flags+:} false
; then :
10996 $as_echo_n "(cached) " >&6
10998 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10999 /* end confdefs.h. */
11000 #include <sys/stat.h>
11004 struct stat stat; stat.st_flags = 0;
11009 if ac_fn_c_try_compile
"$LINENO"; then :
11010 e2fsprogs_cv_struct_st_flags
=yes
11012 e2fsprogs_cv_struct_st_flags
=no
11014 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags" >&5
11018 $as_echo "$e2fsprogs_cv_struct_st_flags" >&6; }
11019 if test "$e2fsprogs_cv_struct_st_flags" = yes; then
11020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether st_flags field is useful" >&5
11021 $as_echo_n "checking whether st_flags field is useful... " >&6; }
11022 if ${e2fsprogs_cv_struct_st_flags_immut+:} false
; then :
11023 $as_echo_n "(cached) " >&6
11025 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11026 /* end confdefs.h. */
11027 #include <sys/stat.h>
11031 struct stat stat; stat.st_flags |= UF_IMMUTABLE;
11036 if ac_fn_c_try_compile
"$LINENO"; then :
11037 e2fsprogs_cv_struct_st_flags_immut
=yes
11039 e2fsprogs_cv_struct_st_flags_immut
=no
11041 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags_immut" >&5
11045 $as_echo "$e2fsprogs_cv_struct_st_flags_immut" >&6; }
11046 if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
11048 $as_echo "#define HAVE_STAT_FLAGS 1" >>confdefs.h
11052 ac_fn_c_check_member
"$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h>
11053 #include <sys/socket.h>
11055 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes
; then :
11057 cat >>confdefs.h
<<_ACEOF
11058 #define HAVE_SA_LEN 1
11063 if test -n "$BLKID_CMT"; then
11064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing blkid_probe_all" >&5
11065 $as_echo_n "checking for library containing blkid_probe_all... " >&6; }
11066 if ${ac_cv_search_blkid_probe_all+:} false
; then :
11067 $as_echo_n "(cached) " >&6
11069 ac_func_search_save_LIBS
=$LIBS
11070 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11071 /* end confdefs.h. */
11073 /* Override any GCC internal prototype to avoid an error.
11074 Use char because int might match the return type of a GCC
11075 builtin and then its argument prototype would still apply. */
11079 char blkid_probe_all ();
11083 return blkid_probe_all ();
11088 for ac_lib
in '' blkid
; do
11089 if test -z "$ac_lib"; then
11090 ac_res
="none required"
11093 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
11095 if ac_fn_c_try_link
"$LINENO"; then :
11096 ac_cv_search_blkid_probe_all
=$ac_res
11098 rm -f core conftest.err conftest.
$ac_objext \
11100 if ${ac_cv_search_blkid_probe_all+:} false
; then :
11104 if ${ac_cv_search_blkid_probe_all+:} false
; then :
11107 ac_cv_search_blkid_probe_all
=no
11109 rm conftest.
$ac_ext
11110 LIBS
=$ac_func_search_save_LIBS
11112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_blkid_probe_all" >&5
11113 $as_echo "$ac_cv_search_blkid_probe_all" >&6; }
11114 ac_res
=$ac_cv_search_blkid_probe_all
11115 if test "$ac_res" != no
; then :
11116 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
11121 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 secure_getenv setmntent setresgid setresuid srandom strcasecmp strdup strnlen strptime strtoull sync_file_range sysconf
usleep utime valloc
11123 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11124 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
11125 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
11126 cat >>confdefs.h
<<_ACEOF
11127 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
11135 $as_echo_n "checking for socket in -lsocket... " >&6; }
11136 if ${ac_cv_lib_socket_socket+:} false
; then :
11137 $as_echo_n "(cached) " >&6
11139 ac_check_lib_save_LIBS
=$LIBS
11140 LIBS
="-lsocket $LIBS"
11141 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11142 /* end confdefs.h. */
11144 /* Override any GCC internal prototype to avoid an error.
11145 Use char because int might match the return type of a GCC
11146 builtin and then its argument prototype would still apply. */
11159 if ac_fn_c_try_link
"$LINENO"; then :
11160 ac_cv_lib_socket_socket
=yes
11162 ac_cv_lib_socket_socket
=no
11164 rm -f core conftest.err conftest.
$ac_objext \
11165 conftest
$ac_exeext conftest.
$ac_ext
11166 LIBS
=$ac_check_lib_save_LIBS
11168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
11169 $as_echo "$ac_cv_lib_socket_socket" >&6; }
11170 if test "x$ac_cv_lib_socket_socket" = xyes
; then :
11171 SOCKET_LIB
=-lsocket
11175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for optreset" >&5
11176 $as_echo_n "checking for optreset... " >&6; }
11177 if ${ac_cv_have_optreset+:} false
; then :
11178 $as_echo_n "(cached) " >&6
11180 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11181 /* end confdefs.h. */
11182 #include <unistd.h>
11185 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11186 $EGREP "optreset" >/dev
/null
2>&1; then :
11187 ac_cv_have_optreset
=yes
11189 ac_cv_have_optreset
=no
11194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_optreset" >&5
11195 $as_echo "$ac_cv_have_optreset" >&6; }
11196 if test $ac_cv_have_optreset = yes; then
11198 $as_echo "#define HAVE_OPTRESET 1" >>confdefs.h
11203 ac_fn_c_check_func
"$LINENO" "sem_init" "ac_cv_func_sem_init"
11204 if test "x$ac_cv_func_sem_init" = xyes
; then :
11207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lpthread" >&5
11208 $as_echo_n "checking for sem_init in -lpthread... " >&6; }
11209 if ${ac_cv_lib_pthread_sem_init+:} false
; then :
11210 $as_echo_n "(cached) " >&6
11212 ac_check_lib_save_LIBS
=$LIBS
11213 LIBS
="-lpthread $LIBS"
11214 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11215 /* end confdefs.h. */
11217 /* Override any GCC internal prototype to avoid an error.
11218 Use char because int might match the return type of a GCC
11219 builtin and then its argument prototype would still apply. */
11227 return sem_init ();
11232 if ac_fn_c_try_link
"$LINENO"; then :
11233 ac_cv_lib_pthread_sem_init
=yes
11235 ac_cv_lib_pthread_sem_init
=no
11237 rm -f core conftest.err conftest.
$ac_objext \
11238 conftest
$ac_exeext conftest.
$ac_ext
11239 LIBS
=$ac_check_lib_save_LIBS
11241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_sem_init" >&5
11242 $as_echo "$ac_cv_lib_pthread_sem_init" >&6; }
11243 if test "x$ac_cv_lib_pthread_sem_init" = xyes
; then :
11244 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
11246 SEM_INIT_LIB
=-lpthread
11248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lrt" >&5
11249 $as_echo_n "checking for sem_init in -lrt... " >&6; }
11250 if ${ac_cv_lib_rt_sem_init+:} false
; then :
11251 $as_echo_n "(cached) " >&6
11253 ac_check_lib_save_LIBS
=$LIBS
11255 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11256 /* end confdefs.h. */
11258 /* Override any GCC internal prototype to avoid an error.
11259 Use char because int might match the return type of a GCC
11260 builtin and then its argument prototype would still apply. */
11268 return sem_init ();
11273 if ac_fn_c_try_link
"$LINENO"; then :
11274 ac_cv_lib_rt_sem_init
=yes
11276 ac_cv_lib_rt_sem_init
=no
11278 rm -f core conftest.err conftest.
$ac_objext \
11279 conftest
$ac_exeext conftest.
$ac_ext
11280 LIBS
=$ac_check_lib_save_LIBS
11282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sem_init" >&5
11283 $as_echo "$ac_cv_lib_rt_sem_init" >&6; }
11284 if test "x$ac_cv_lib_rt_sem_init" = xyes
; then :
11285 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
11289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lposix4" >&5
11290 $as_echo_n "checking for sem_init in -lposix4... " >&6; }
11291 if ${ac_cv_lib_posix4_sem_init+:} false
; then :
11292 $as_echo_n "(cached) " >&6
11294 ac_check_lib_save_LIBS
=$LIBS
11295 LIBS
="-lposix4 $LIBS"
11296 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11297 /* end confdefs.h. */
11299 /* Override any GCC internal prototype to avoid an error.
11300 Use char because int might match the return type of a GCC
11301 builtin and then its argument prototype would still apply. */
11309 return sem_init ();
11314 if ac_fn_c_try_link
"$LINENO"; then :
11315 ac_cv_lib_posix4_sem_init
=yes
11317 ac_cv_lib_posix4_sem_init
=no
11319 rm -f core conftest.err conftest.
$ac_objext \
11320 conftest
$ac_exeext conftest.
$ac_ext
11321 LIBS
=$ac_check_lib_save_LIBS
11323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sem_init" >&5
11324 $as_echo "$ac_cv_lib_posix4_sem_init" >&6; }
11325 if test "x$ac_cv_lib_posix4_sem_init" = xyes
; then :
11326 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
11328 SEM_INIT_LIB
=-lposix4
11337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unified diff option" >&5
11338 $as_echo_n "checking for unified diff option... " >&6; }
11339 if diff -u $0 $0 > /dev
/null
2>&1 ; then
11344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNI_DIFF_OPTS" >&5
11345 $as_echo "$UNI_DIFF_OPTS" >&6; }
11350 $as_echo "#define HAVE_EXT2_IOCTLS 1" >>confdefs.h
11370 linux
* | gnu
* | k
*bsd
*-gnu)
11371 if test "$prefix" = NONE
-a "$root_prefix" = NONE
; then
11373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, root_prefix defaults to ''" >&5
11374 $as_echo "On $host_os systems, root_prefix defaults to ''" >&6; }
11379 linux
* | gnu
* | k
*bsd
*-gnu)
11380 if test "$prefix" = NONE
; then
11382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, prefix defaults to /usr" >&5
11383 $as_echo "On $host_os systems, prefix defaults to /usr" >&6; }
11384 if test "$mandir" = '${prefix}/man' ; then
11385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ...and mandir defaults to /usr/share/man" >&5
11386 $as_echo "...and mandir defaults to /usr/share/man" >&6; }
11387 mandir
=/usr
/share
/man
11392 if test "$root_prefix" = NONE
; then
11393 if test "$prefix" = NONE
; then
11394 root_prefix
="$ac_default_prefix"
11396 root_prefix
="$prefix"
11398 root_bindir
=$bindir
11399 root_sbindir
=$sbindir
11400 root_libdir
=$libdir
11401 root_sysconfdir
=$sysconfdir
11403 root_bindir
='${root_prefix}/bin'
11404 root_sbindir
='${root_prefix}/sbin'
11405 root_libdir
='${root_prefix}/lib'
11406 root_sysconfdir
='${root_prefix}/etc'
11408 if test "$bindir" != '${exec_prefix}/bin'; then
11409 root_bindir
=$bindir
11410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_bindir to $root_bindir" >&5
11411 $as_echo "Setting root_bindir to $root_bindir" >&6; }
11413 if test "$sbindir" != '${exec_prefix}/sbin'; then
11414 root_sbindir
=$sbindir
11415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sbindir to $root_sbindir" >&5
11416 $as_echo "Setting root_sbindir to $root_sbindir" >&6; }
11418 if test "$libdir" != '${exec_prefix}/lib'; then
11419 root_libdir
=$libdir
11420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_libdir to $root_libdir" >&5
11421 $as_echo "Setting root_libdir to $root_libdir" >&6; }
11423 if test "$sysconfdir" != '${prefix}/etc'; then
11424 root_sysconfdir
=$sysconfdir
11425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sysconfdir to $root_sysconfdir" >&5
11426 $as_echo "Setting root_sysconfdir to $root_sysconfdir" >&6; }
11434 # Check whether --with-multiarch was given.
11435 if test "${with_multiarch+set}" = set; then :
11436 withval
=$with_multiarch; libdir
=$libdir/$withval
11437 root_libdir
=$root_libdir/$withval
11440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can link with -static" >&5
11441 $as_echo_n "checking whether we can link with -static... " >&6; }
11442 if ${ac_cv_e2fsprogs_use_static+:} false
; then :
11443 $as_echo_n "(cached) " >&6
11445 SAVE_LDFLAGS
=$LDFLAGS; LDFLAGS
="$LDFLAGS -static"
11446 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11447 /* end confdefs.h. */
11457 if ac_fn_c_try_link
"$LINENO"; then :
11458 ac_cv_e2fsprogs_use_static
=yes
11460 ac_cv_e2fsprogs_use_static
=no
11462 rm -f core conftest.err conftest.
$ac_objext \
11463 conftest
$ac_exeext conftest.
$ac_ext
11464 LDFLAGS
=$SAVE_LDFLAGS
11469 ac_cv_e2fsprogs_use_static
=no
11472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_e2fsprogs_use_static" >&5
11473 $as_echo "$ac_cv_e2fsprogs_use_static" >&6; }
11475 if test $ac_cv_e2fsprogs_use_static = yes; then
11476 LDFLAG_STATIC
=-static
11481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using Apple Darwin / GNU libintl workaround" >&5
11482 $as_echo "Using Apple Darwin / GNU libintl workaround" >&6; }
11484 $as_echo "#define _INTL_REDIRECT_MACROS 1" >>confdefs.h
11488 SS_DIR
=`cd ${srcdir}/lib/ss; pwd`
11489 ET_DIR
=`cd ${srcdir}/lib/et; pwd`
11492 if test "$cross_compiling" = yes ; then
11495 DO_TEST_SUITE
=check
11498 INCLUDES
='-I. -I$(top_builddir)/lib -I$(top_srcdir)/lib'
11499 if test -n "$CPPFLAGS" ; then
11500 INCLUDES
="$INCLUDES $CPPFLAGS"
11502 if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
11503 INCLUDES
=$INCLUDES' -I$(top_builddir)/intl -I$(top_srcdir)/intl'
11506 if test $cross_compiling = no
; then
11507 BUILD_CFLAGS
="$CFLAGS $CPPFLAGS"
11508 BUILD_LDFLAGS
="$LDFLAGS"
11515 test -d lib || mkdir lib
11516 test -d include || mkdir include
11517 test -d include
/linux || mkdir include
/linux
11518 test -d include
/asm || mkdir include
/asm
11519 for i
in MCONFIG Makefile e2fsprogs.spec \
11520 util
/Makefile util
/subst.conf util
/gen-tarball util
/install-symlink \
11521 lib
/et
/Makefile lib
/ss
/Makefile lib
/e2p
/Makefile \
11522 lib
/ext2fs
/Makefile lib
/ext2fs
/ext2_types.h \
11523 lib
/uuid
/Makefile lib
/uuid
/uuid_types.h \
11524 lib
/blkid
/Makefile lib
/blkid
/blkid_types.h lib
/quota
/Makefile \
11525 lib
/ss
/ss.pc lib
/uuid
/uuid.pc lib
/et
/com_err.pc \
11526 lib
/e2p
/e2p.pc lib
/blkid
/blkid.pc lib
/ext2fs
/ext2fs.pc \
11527 misc
/Makefile ext2ed
/Makefile e2fsck
/Makefile \
11528 debugfs
/Makefile
tests
/Makefile
tests
/progs
/Makefile \
11529 resize
/Makefile
doc
/Makefile intl
/Makefile \
11530 intl
/libgnuintl.h po
/Makefile.
in ; do
11531 if test -d `dirname ${srcdir}/$i` ; then
11532 outlist
="$outlist $i"
11535 ac_config_files
="$ac_config_files $outlist"
11537 cat >confcache
<<\_ACEOF
11538 # This file is a shell script that caches the results of configure
11539 # tests run on this system so they can be shared between configure
11540 # scripts and configure runs, see configure's option --config-cache.
11541 # It is not useful on other systems. If it contains results you don't
11542 # want to keep, you may remove or edit it.
11544 # config.status only pays attention to the cache file if you give it
11545 # the --recheck option to rerun configure.
11547 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11548 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11549 # following values.
11553 # The following way of writing the cache mishandles newlines in values,
11554 # but we know of no workaround that is simple, portable, and efficient.
11555 # So, we kill variables containing newlines.
11556 # Ultrix sh set writes to stderr and can't be redirected directly,
11557 # and sets the high bit in the cache file unless we assign to the vars.
11559 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11560 eval ac_val
=\$
$ac_var
11564 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11565 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11568 _ | IFS | as_nl
) ;; #(
11569 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
11570 *) { eval $ac_var=; unset $ac_var;} ;;
11576 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11577 *${as_nl}ac_space
=\
*)
11578 # `set' does not quote correctly, so add quotes: double-quote
11579 # substitution turns \\\\ into \\, and sed turns \\ into \.
11582 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11585 # `set' quotes correctly as required by POSIX, so do not add quotes.
11586 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11595 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11597 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11599 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
11600 if test -w "$cache_file"; then
11601 if test "x$cache_file" != "x/dev/null"; then
11602 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11603 $as_echo "$as_me: updating cache $cache_file" >&6;}
11604 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
11605 cat confcache
>"$cache_file"
11607 case $cache_file in #(
11609 mv -f confcache
"$cache_file"$$
&&
11610 mv -f "$cache_file"$$
"$cache_file" ;; #(
11612 mv -f confcache
"$cache_file" ;;
11617 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11618 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11623 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
11624 # Let make expand exec_prefix.
11625 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
11627 DEFS
=-DHAVE_CONFIG_H
11632 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
11633 # 1. Remove the extension, and $U if already installed.
11634 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
11635 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
11636 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11637 # will be set to the directory where LIBOBJS objects are built.
11638 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11639 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
11641 LIBOBJS
=$ac_libobjs
11643 LTLIBOBJS
=$ac_ltlibobjs
11648 : "${CONFIG_STATUS=./config.status}"
11650 ac_clean_files_save
=$ac_clean_files
11651 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
11652 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11653 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11655 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11657 # Generated by $as_me.
11658 # Run this file to recreate the current configuration.
11659 # Compiler output produced by configure, useful for debugging
11660 # configure, is in config.log if it exists.
11663 ac_cs_recheck=false
11666 SHELL=\${CONFIG_SHELL-$SHELL}
11669 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
11670 ## -------------------- ##
11671 ## M4sh Initialization. ##
11672 ## -------------------- ##
11674 # Be more Bourne compatible
11675 DUALCASE
=1; export DUALCASE
# for MKS sh
11676 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
11679 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11680 # is contrary to our usage. Disable this feature.
11681 alias -g '${1+"$@"}'='"$@"'
11682 setopt NO_GLOB_SUBST
11684 case `(set -o) 2>/dev/null` in #(
11696 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11697 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11698 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11699 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11700 # Prefer a ksh shell builtin over an external printf program on Solaris,
11701 # but without wasting forks for bash or zsh.
11702 if test -z "$BASH_VERSION$ZSH_VERSION" \
11703 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11704 as_echo='print
-r --'
11705 as_echo_n='print
-rn --'
11706 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11707 as_echo='printf %s
\n'
11708 as_echo_n='printf %s
'
11710 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11711 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
11712 as_echo_n='/usr
/ucb
/echo -n'
11714 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11715 as_echo_n_body='eval
11719 expr "X$arg" : "X\\(.*\\)$as_nl";
11720 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11722 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
11724 export as_echo_n_body
11725 as_echo_n='sh
-c $as_echo_n_body as_echo
'
11727 export as_echo_body
11728 as_echo='sh
-c $as_echo_body as_echo
'
11731 # The user is always right.
11732 if test "${PATH_SEPARATOR+set}" != set; then
11734 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11735 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11742 # We need space, tab and new line, in precisely that order. Quoting is
11743 # there to prevent editors from complaining about space-tab.
11744 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11745 # splitting by setting IFS to empty value.)
11748 # Find who we are. Look in the path if we contain no directory separator.
11751 *[\\/]* ) as_myself=$0 ;;
11752 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11753 for as_dir in $PATH
11756 test -z "$as_dir" && as_dir=.
11757 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11763 # We did not find ourselves, most probably we were run as `sh COMMAND'
11764 # in which case we are not to be found in the path.
11765 if test "x$as_myself" = x
; then
11768 if test ! -f "$as_myself"; then
11769 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11773 # Unset variables that we do not need and which cause bugs (e.g. in
11774 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11775 # suppresses any "Segmentation fault" message there. '((' could
11776 # trigger a bug in pdksh 5.2.14.
11777 for as_var
in BASH_ENV ENV MAIL MAILPATH
11778 do eval test x\
${$as_var+set} = xset \
11779 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
11792 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
11795 # as_fn_error STATUS ERROR [LINENO LOG_FD]
11796 # ----------------------------------------
11797 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11798 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11799 # script with STATUS, using 1 if that was 0.
11802 as_status
=$1; test $as_status -eq 0 && as_status
=1
11804 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
11805 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11807 $as_echo "$as_me: error: $2" >&2
11808 as_fn_exit
$as_status
11812 # as_fn_set_status STATUS
11813 # -----------------------
11814 # Set $? to STATUS, without forking.
11815 as_fn_set_status
()
11818 } # as_fn_set_status
11820 # as_fn_exit STATUS
11821 # -----------------
11822 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11826 as_fn_set_status
$1
11832 # Portably unset VAR.
11835 { eval $1=; unset $1;}
11837 as_unset
=as_fn_unset
11838 # as_fn_append VAR VALUE
11839 # ----------------------
11840 # Append the text in VALUE to the end of the definition contained in VAR. Take
11841 # advantage of any shell optimizations that allow amortized linear growth over
11842 # repeated appends, instead of the typical quadratic growth present in naive
11844 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
11845 eval 'as_fn_append ()
11856 # as_fn_arith ARG...
11857 # ------------------
11858 # Perform arithmetic evaluation on the ARGs, and store the result in the
11859 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11860 # must be portable across $(()) and expr.
11861 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
11862 eval 'as_fn_arith ()
11869 as_val
=`expr "$@" || test $? -eq 1`
11874 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
11875 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
11881 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11882 as_basename
=basename
11887 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
11893 as_me
=`$as_basename -- "$0" ||
11894 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11895 X"$0" : 'X\(//\)$' \| \
11896 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11898 sed '/^.*\/\([^/][^/]*\)\/*$/{
11912 # Avoid depending upon Character Ranges.
11913 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
11914 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11915 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
11916 as_cr_digits
='0123456789'
11917 as_cr_alnum
=$as_cr_Letters$as_cr_digits
11919 ECHO_C
= ECHO_N
= ECHO_T
=
11920 case `echo -n x` in #(((((
11922 case `echo 'xy\c'` in
11923 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
11925 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
11932 rm -f conf$$ conf$$.exe conf$$.
file
11933 if test -d conf$$.dir
; then
11934 rm -f conf$$.dir
/conf$$.
file
11937 mkdir conf$$.dir
2>/dev
/null
11939 if (echo >conf$$.
file) 2>/dev
/null
; then
11940 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
11942 # ... but there are two gotchas:
11943 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11944 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11945 # In both cases, we have to default to `cp -pR'.
11946 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
11948 elif ln conf$$.
file conf$$
2>/dev
/null
; then
11956 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
11957 rmdir conf$$.dir
2>/dev
/null
11962 # Create "$as_dir" as a directory, including parents if necessary.
11967 -*) as_dir
=.
/$as_dir;;
11969 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
11973 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11974 *) as_qdir
=$as_dir;;
11976 as_dirs
="'$as_qdir' $as_dirs"
11977 as_dir
=`$as_dirname -- "$as_dir" ||
11978 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11979 X"$as_dir" : 'X\(//\)[^/]' \| \
11980 X"$as_dir" : 'X\(//\)$' \| \
11981 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11982 $as_echo X"$as_dir" |
11983 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11987 /^X\(\/\/\)[^/].*/{
12000 test -d "$as_dir" && break
12002 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
12003 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
12007 if mkdir
-p .
2>/dev
/null
; then
12008 as_mkdir_p
='mkdir -p "$as_dir"'
12010 test -d .
/-p && rmdir .
/-p
12015 # as_fn_executable_p FILE
12016 # -----------------------
12017 # Test if FILE is an executable regular file.
12018 as_fn_executable_p
()
12020 test -f "$1" && test -x "$1"
12021 } # as_fn_executable_p
12022 as_test_x
='test -x'
12023 as_executable_p
=as_fn_executable_p
12025 # Sed expression to map a string onto a valid CPP name.
12026 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12028 # Sed expression to map a string onto a valid variable name.
12029 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12033 ## ----------------------------------- ##
12034 ## Main body of $CONFIG_STATUS script. ##
12035 ## ----------------------------------- ##
12037 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
12039 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
12040 # Save the log message, to keep $0 and so on meaningful, and to
12041 # report actual input values of CONFIG_FILES etc. instead of their
12042 # values after options handling.
12044 This file was extended by $as_me, which was
12045 generated by GNU Autoconf 2.69. Invocation command line was
12047 CONFIG_FILES = $CONFIG_FILES
12048 CONFIG_HEADERS = $CONFIG_HEADERS
12049 CONFIG_LINKS = $CONFIG_LINKS
12050 CONFIG_COMMANDS = $CONFIG_COMMANDS
12053 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12058 case $ac_config_files in *"
12059 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
12062 case $ac_config_headers in *"
12063 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
12067 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12068 # Files that config.status was made for.
12069 config_files="$ac_config_files"
12070 config_headers="$ac_config_headers"
12071 config_commands="$ac_config_commands"
12075 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
12077 \`$as_me' instantiates files and other configuration actions
12078 from templates according to the current configuration. Unless the files
12079 and actions are specified as TAGs, all are instantiated by default.
12081 Usage: $0 [OPTION]... [TAG]...
12083 -h, --help print this help, then exit
12084 -V, --version print version number and configuration settings, then exit
12085 --config print configuration, then exit
12086 -q, --quiet, --silent
12087 do not print progress messages
12088 -d, --debug don't remove temporary files
12089 --recheck update $as_me by reconfiguring in the same conditions
12090 --file=FILE[:TEMPLATE]
12091 instantiate the configuration file FILE
12092 --header=FILE[:TEMPLATE]
12093 instantiate the configuration header FILE
12095 Configuration files:
12098 Configuration headers:
12101 Configuration commands:
12104 Report bugs to the package provider."
12107 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12108 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12111 configured by $0, generated by GNU Autoconf 2.69,
12112 with options \\"\$ac_cs_config\\"
12114 Copyright (C) 2012 Free Software Foundation, Inc.
12115 This config.status script is free software; the Free Software Foundation
12116 gives unlimited permission to copy, distribute and modify it."
12122 test -n "\$AWK" || AWK=awk
12125 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
12126 # The default lists apply if the user does not specify any file.
12132 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
12133 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
12137 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
12149 # Handling of the options.
12150 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
12152 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
12153 $as_echo "$ac_cs_version"; exit ;;
12154 --config |
--confi |
--conf |
--con |
--co |
--c )
12155 $as_echo "$ac_cs_config"; exit ;;
12156 --debug |
--debu |
--deb |
--de |
--d |
-d )
12158 --file |
--fil |
--fi |
--f )
12161 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12162 '') as_fn_error $?
"missing file argument" ;;
12164 as_fn_append CONFIG_FILES
" '$ac_optarg'"
12165 ac_need_defaults
=false
;;
12166 --header |
--heade |
--head |
--hea )
12169 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12171 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
12172 ac_need_defaults
=false
;;
12174 # Conflict between --help and --header
12175 as_fn_error $?
"ambiguous option: \`$1'
12176 Try \`$0 --help' for more information.";;
12177 --help |
--hel |
-h )
12178 $as_echo "$ac_cs_usage"; exit ;;
12179 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
12180 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
12183 # This is an error.
12184 -*) as_fn_error $?
"unrecognized option: \`$1'
12185 Try \`$0 --help' for more information." ;;
12187 *) as_fn_append ac_config_targets
" $1"
12188 ac_need_defaults
=false
;;
12194 ac_configure_extra_args
=
12196 if $ac_cs_silent; then
12198 ac_configure_extra_args
="$ac_configure_extra_args --silent"
12202 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12203 if \$ac_cs_recheck; then
12204 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12206 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12207 CONFIG_SHELL='$SHELL'
12208 export CONFIG_SHELL
12213 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
12217 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12218 ## Running $as_me. ##
12224 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12228 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
12229 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
12231 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
12232 # Capture the value of LINGUAS because we need it to compute CATALOGS.
12233 LINGUAS="${LINGUAS-%UNSET%}"
12238 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
12240 # Handling of arguments.
12241 for ac_config_target
in $ac_config_targets
12243 case $ac_config_target in
12244 "lib/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS lib/config.h" ;;
12245 "default-1") CONFIG_COMMANDS
="$CONFIG_COMMANDS default-1" ;;
12246 "$outlist") CONFIG_FILES
="$CONFIG_FILES $outlist" ;;
12248 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12253 # If the user did not use the arguments to specify the items to instantiate,
12254 # then the envvar interface is used. Set only those that are not.
12255 # We use the long form for the default assignment because of an extremely
12256 # bizarre bug on SunOS 4.1.3.
12257 if $ac_need_defaults; then
12258 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
12259 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
12260 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
12263 # Have a temporary directory for convenience. Make it in the build tree
12264 # simply because there is no reason against having it here, and in addition,
12265 # creating and moving files from /tmp can sometimes cause problems.
12266 # Hook for its removal unless debugging.
12267 # Note that there is a small window in which the directory will not be cleaned:
12268 # after its creation but before its name has been assigned to `$tmp'.
12272 trap 'exit_status=$?
12273 : "${ac_tmp:=$tmp}"
12274 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12276 trap 'as_fn_exit 1' 1 2 13 15
12278 # Create a (secure) tmp directory for tmp files.
12281 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12285 tmp
=.
/conf$$
-$RANDOM
12286 (umask 077 && mkdir
"$tmp")
12287 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
12290 # Set up the scripts for CONFIG_FILES section.
12291 # No need to generate them if there are no CONFIG_FILES.
12292 # This happens for instance with `./config.status config.h'.
12293 if test -n "$CONFIG_FILES"; then
12295 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
12296 ac_cs_awk_getline
=:
12297 ac_cs_awk_pipe_init
=
12298 ac_cs_awk_read_file
='
12299 while ((getline aline < (F[key])) > 0)
12302 ac_cs_awk_pipe_fini
=
12304 ac_cs_awk_getline
=false
12305 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
12306 ac_cs_awk_read_file
='
12308 print "cat " F[key] " &&"
12309 '$ac_cs_awk_pipe_init
12310 # The final `:' finishes the AND list.
12311 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
12313 ac_cr
=`echo X | tr X '\015'`
12314 # On cygwin, bash can eat \r inside `` if the user requested igncr.
12315 # But we know of no other shell where ac_cr would be empty at this
12316 # point, so we can use a bashism as a fallback.
12317 if test "x$ac_cr" = x
; then
12318 eval ac_cr
=\$
\'\\r
\'
12320 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12321 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12324 ac_cs_awk_cr
=$ac_cr
12327 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12330 # Create commands to substitute file output variables.
12332 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
12333 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
12334 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
12337 } >conf$
$files.sh
&&
12338 . .
/conf$
$files.sh ||
12339 as_fn_error $?
"could not make $CONFIG_STATUS" "$LINENO" 5
12340 rm -f conf$
$files.sh
12343 echo "cat >conf$$subs.awk <<_ACEOF" &&
12344 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12346 } >conf$$subs.sh ||
12347 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
12348 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12350 for ac_last_try in false false false false false :; do
12351 . ./conf$$subs.sh ||
12352 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
12354 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
12355 if test $ac_delim_n = $ac_delim_num; then
12357 elif $ac_last_try; then
12358 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
12360 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
12363 rm -f conf$$subs.sh
12365 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12366 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
12370 s/^/S["/; s
/!.
*/"]=/
12380 s/\(.\{148\}\)..*/\1/
12382 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
12387 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
12394 s/\(.\{148\}\)..*/\1/
12396 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
12400 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
12405 ' <conf$$subs.awk | sed '
12410 ' >>$CONFIG_STATUS || ac_write_fail=1
12411 rm -f conf$$subs.awk
12412 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12414 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
12415 for (key in S) S_is_set[key] = 1
12417 \$ac_cs_awk_pipe_init
12421 nfields = split(line, field, "@
")
12423 len = length(field[1])
12424 for (i = 2; i < nfields; i++) {
12426 keylen = length(key)
12427 if (S_is_set[key]) {
12429 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12430 len += length(value) + length(field[++i])
12435 if (nfields == 3 && !substed) {
12437 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
12438 \$ac_cs_awk_read_file
12444 \$ac_cs_awk_pipe_fini
12447 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12448 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12449 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
12452 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
12453 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
12456 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12457 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
12458 # trailing colons and then remove the whole line if VPATH becomes empty
12459 # (actually we leave an empty line to preserve line numbers).
12460 if test "x
$srcdir" = x.; then
12461 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
12479 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12480 fi # test -n "$CONFIG_FILES"
12482 # Set up the scripts for CONFIG_HEADERS section.
12483 # No need to generate them if there are no CONFIG_HEADERS.
12484 # This happens for instance with `./config.status Makefile'.
12485 if test -n "$CONFIG_HEADERS"; then
12486 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
12490 # Transform confdefs.h into an awk script `defines.awk', embedded as
12491 # here-document in config.status, that substitutes the proper values into
12492 # config.h.in to produce config.h.
12494 # Create a delimiter string that does not exist in confdefs.h, to ease
12495 # handling of long lines.
12497 for ac_last_try in false false :; do
12498 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
12499 if test -z "$ac_tt"; then
12501 elif $ac_last_try; then
12502 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
12504 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
12508 # For the awk script, D is an array of macro values keyed by name,
12509 # likewise P contains macro parameters if any. Preserve backslash
12510 # newline sequences.
12512 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12514 s/.\{148\}/&'"$ac_delim"'/g
12517 s/^[ ]*#[ ]*define[ ][ ]*/ /
12524 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
12526 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
12530 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
12531 D["\
1"]=" \
3\\\\\\n
"\\/p
12533 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
12538 s/.\{148\}/&'"$ac_delim"'/g
12543 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
12546 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
12548 ' <confdefs.h | sed '
12549 s/'"$ac_delim"'/"\\\
12550 "/g' >>$CONFIG_STATUS || ac_write_fail=1
12552 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12553 for (key in D) D_is_set[key] = 1
12556 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12558 split(line, arg, " ")
12559 if (arg[1] == "#") {
12563 defundef
= substr
(arg
[1], 2)
12566 split(mac1
, mac2
, "(") #)
12568 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
12569 if (D_is_set
[macro
]) {
12570 # Preserve the white space surrounding the "#".
12571 print prefix
"define", macro P
[macro
] D
[macro
]
12574 # Replace #undef with comments. This is necessary, for example,
12575 # in the case of _POSIX_SOURCE, which is predefined and required
12576 # on some systems where configure will not decide to define it.
12577 if (defundef
== "undef") {
12578 print
"/*", prefix defundef
, macro
, "*/"
12586 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
12587 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
12588 fi # test -n "$CONFIG_HEADERS"
12591 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
12596 :[FHLC
]) ac_mode
=$ac_tag; continue;;
12598 case $ac_mode$ac_tag in
12600 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
12601 :[FH
]-) ac_tag
=-:-;;
12602 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
12619 -) ac_f
="$ac_tmp/stdin";;
12620 *) # Look for the file first in the build tree, then in the source tree
12621 # (if the path is not absolute). The absolute path cannot be DOS-style,
12622 # because $ac_f cannot contain `:'.
12626 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
12628 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12630 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12631 as_fn_append ac_file_inputs
" '$ac_f'"
12634 # Let's still pretend it is `configure' which instantiates (i.e., don't
12635 # use $as_me), people would be surprised to read:
12636 # /* config.h. Generated by config.status. */
12637 configure_input
='Generated from '`
12638 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12640 if test x
"$ac_file" != x-
; then
12641 configure_input
="$ac_file. $configure_input"
12642 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12643 $as_echo "$as_me: creating $ac_file" >&6;}
12645 # Neutralize special characters interpreted by sed in replacement strings.
12646 case $configure_input in #(
12647 *\
&* |
*\|
* |
*\\* )
12648 ac_sed_conf_input
=`$as_echo "$configure_input" |
12649 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12650 *) ac_sed_conf_input
=$configure_input;;
12654 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
12655 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
12660 ac_dir
=`$as_dirname -- "$ac_file" ||
12661 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12662 X"$ac_file" : 'X\(//\)[^/]' \| \
12663 X"$ac_file" : 'X\(//\)$' \| \
12664 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12665 $as_echo X"$ac_file" |
12666 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12670 /^X\(\/\/\)[^/].*/{
12683 as_dir
="$ac_dir"; as_fn_mkdir_p
12687 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
12689 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12690 # A ".." for each directory in $ac_dir_suffix.
12691 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12692 case $ac_top_builddir_sub in
12693 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
12694 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
12697 ac_abs_top_builddir
=$ac_pwd
12698 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
12699 # for backward compatibility:
12700 ac_top_builddir
=$ac_top_build_prefix
12703 .
) # We are building in place.
12705 ac_top_srcdir
=$ac_top_builddir_sub
12706 ac_abs_top_srcdir
=$ac_pwd ;;
12707 [\\/]* | ?
:[\\/]* ) # Absolute name.
12708 ac_srcdir
=$srcdir$ac_dir_suffix;
12709 ac_top_srcdir
=$srcdir
12710 ac_abs_top_srcdir
=$srcdir ;;
12711 *) # Relative name.
12712 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
12713 ac_top_srcdir
=$ac_top_build_prefix$srcdir
12714 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
12716 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
12726 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
12727 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
12731 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
12732 # If the template does not know about datarootdir, expand it.
12733 # FIXME: This hack should be removed a few years after 2.60.
12734 ac_datarootdir_hack
=; ac_datarootdir_seen
=
12745 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12746 *datarootdir
*) ac_datarootdir_seen
=yes;;
12747 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
12748 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12749 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12751 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12752 ac_datarootdir_hack='
12753 s&@datadir@&$datadir&g
12754 s&@docdir@&$docdir&g
12755 s&@infodir@&$infodir&g
12756 s&@localedir@&$localedir&g
12757 s&@mandir@&$mandir&g
12758 s&\\\${datarootdir}&$datarootdir&g' ;;
12762 # Neutralize VPATH when `$srcdir' = `.'.
12763 # Shell code in configure.ac might set extrasub.
12764 # FIXME: do we really want to maintain this feature?
12765 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12766 ac_sed_extra="$ac_vpsub
12769 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
12771 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
12772 s|@configure_input@|
$ac_sed_conf_input|
;t t
12773 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
12774 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
12775 s
&@srcdir@
&$ac_srcdir&;t t
12776 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
12777 s
&@top_srcdir@
&$ac_top_srcdir&;t t
12778 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
12779 s
&@builddir@
&$ac_builddir&;t t
12780 s
&@abs_builddir@
&$ac_abs_builddir&;t t
12781 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
12782 s
&@INSTALL@
&$ac_INSTALL&;t t
12783 $ac_datarootdir_hack
12785 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
12786 if $ac_cs_awk_getline; then
12787 $AWK -f "$ac_tmp/subs.
awk"
12789 $AWK -f "$ac_tmp/subs.
awk" | $SHELL
12791 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
12793 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12794 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
12795 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
12796 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
12797 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
12798 which seems to be undefined. Please make sure it is defined" >&5
12799 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
12800 which seems to be undefined. Please make sure it is defined" >&2;}
12802 rm -f "$ac_tmp/stdin"
12804 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12805 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12807 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12813 if test x"$ac_file" != x-; then
12815 $as_echo "/* $configure_input */" \
12816 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12817 } >"$ac_tmp/config.h" \
12818 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12819 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12820 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12821 $as_echo "$as_me: $ac_file is unchanged" >&6;}
12824 mv "$ac_tmp/config.h" "$ac_file" \
12825 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12828 $as_echo "/* $configure_input */" \
12829 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12830 || as_fn_error $? "could not create -" "$LINENO" 5
12834 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12835 $as_echo "$as_me: executing $ac_file commands" >&6;}
12840 case $ac_file$ac_mode in
12842 for ac_file in $CONFIG_FILES; do
12843 # Support "outfile[:infile[:infile...]]"
12845 *:*) ac_file=`echo "$ac_file"|sed 's
%:.
*%%'` ;;
12847 # PO directories have a Makefile.in generated from Makefile.in.in.
12848 case "$ac_file" in */Makefile.in)
12849 # Adjust a relative srcdir.
12850 ac_dir=`echo "$ac_file"|sed 's
%/[^
/][^
/]*$
%%'`
12851 ac_dir_suffix="/`echo "$ac_dir"|sed 's
%^\.
/%%'`"
12852 ac_dots=`echo "$ac_dir_suffix"|sed 's
%/[^
/]*%..
/%g
'`
12853 # In autoconf-2.13 it is called $ac_given_srcdir.
12854 # In autoconf-2.50 it is called $srcdir.
12855 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
12856 case "$ac_given_srcdir" in
12857 .) top_srcdir=`echo $ac_dots|sed 's
%/$
%%'` ;;
12858 /*) top_srcdir="$ac_given_srcdir" ;;
12859 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
12861 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
12862 rm -f "$ac_dir/POTFILES"
12863 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
12864 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
12865 POMAKEFILEDEPS="POTFILES.in"
12866 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
12867 # on $ac_dir but don't depend on user-specified configuration
12869 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
12870 # The LINGUAS file contains the set of available languages.
12871 if test -n "$OBSOLETE_ALL_LINGUAS"; then
12872 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" ||
echo "setting ALL_LINGUAS in configure.in is obsolete"
12874 ALL_LINGUAS_
=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
12875 # Hide the ALL_LINGUAS assigment from automake.
12876 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
12877 POMAKEFILEDEPS
="$POMAKEFILEDEPS LINGUAS"
12879 # The set of available languages was given in configure.in.
12880 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
12883 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
12884 # Compute UPDATEPOFILES
12885 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
12886 # Compute DUMMYPOFILES
12887 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
12889 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
12890 case "$ac_given_srcdir" in
12892 *) srcdirpre
='$(srcdir)/' ;;
12898 for lang
in $ALL_LINGUAS; do
12899 POFILES
="$POFILES $srcdirpre$lang.po"
12900 UPDATEPOFILES
="$UPDATEPOFILES $lang.po-update"
12901 DUMMYPOFILES
="$DUMMYPOFILES $lang.nop"
12902 GMOFILES
="$GMOFILES $srcdirpre$lang.gmo"
12904 # CATALOGS depends on both $ac_dir and the user's LINGUAS
12905 # environment variable.
12907 if test -n "$ALL_LINGUAS"; then
12908 for presentlang
in $ALL_LINGUAS; do
12910 if test "%UNSET%" != "$LINGUAS"; then
12911 desiredlanguages
="$LINGUAS"
12913 desiredlanguages
="$ALL_LINGUAS"
12915 for desiredlang
in $desiredlanguages; do
12916 # Use the presentlang catalog if desiredlang is
12917 # a. equal to presentlang, or
12918 # b. a variant of presentlang (because in this case,
12919 # presentlang can be used as a fallback for messages
12920 # which are not translated in the desiredlang catalog).
12921 case "$desiredlang" in
12922 "$presentlang"*) useit
=yes;;
12925 if test $useit = yes; then
12926 INST_LINGUAS
="$INST_LINGUAS $presentlang"
12931 if test -n "$INST_LINGUAS"; then
12932 for lang
in $INST_LINGUAS; do
12933 CATALOGS
="$CATALOGS $lang.gmo"
12936 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" ||
echo "creating $ac_dir/Makefile"
12937 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"
12938 for f
in "$ac_given_srcdir/$ac_dir"/Rules-
*; do
12939 if test -f "$f"; then
12941 *.orig |
*.bak |
*~
) ;;
12942 *) cat "$f" >> "$ac_dir/Makefile" ;;
12957 ac_clean_files
=$ac_clean_files_save
12959 test $ac_write_fail = 0 ||
12960 as_fn_error $?
"write failure creating $CONFIG_STATUS" "$LINENO" 5
12963 # configure is writing to config.log, and then calls config.status.
12964 # config.status does its own redirection, appending to config.log.
12965 # Unfortunately, on DOS this fails, as config.log is still kept open
12966 # by configure, so config.status won't be able to write to it; its
12967 # output is simply discarded. So we exec the FD to /dev/null,
12968 # effectively closing config.log, so it can be properly (re)opened and
12969 # appended to by config.status. When coming back to configure, we
12970 # need to make the FD available again.
12971 if test "$no_create" != yes; then
12973 ac_config_status_args
=
12974 test "$silent" = yes &&
12975 ac_config_status_args
="$ac_config_status_args --quiet"
12977 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
12979 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12980 # would make configure fail if this is the last instruction.
12981 $ac_cs_success || as_fn_exit
1
12983 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
12984 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12985 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12988 if test -f util
/gen-tarball
; then chmod +x util
/gen-tarball
; fi